ode-explorer 1.4.8-develop.202406041452 → 1.4.8-develop.202406101727
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/index.js +385 -2797
- package/dist/version.txt +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68,9 +68,9 @@ function _mergeNamespaces(n2, m2) {
|
|
|
68
68
|
if (mutation.type !== "childList") {
|
|
69
69
|
continue;
|
|
70
70
|
}
|
|
71
|
-
for (const
|
|
72
|
-
if (
|
|
73
|
-
processPreload(
|
|
71
|
+
for (const node of mutation.addedNodes) {
|
|
72
|
+
if (node.tagName === "LINK" && node.rel === "modulepreload")
|
|
73
|
+
processPreload(node);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}).observe(document, { childList: true, subtree: true });
|
|
@@ -415,10 +415,10 @@ react_production_min.version = "18.2.0";
|
|
|
415
415
|
react.exports = react_production_min;
|
|
416
416
|
}
|
|
417
417
|
var reactExports = react.exports;
|
|
418
|
-
const React
|
|
419
|
-
const React$
|
|
418
|
+
const React = /* @__PURE__ */ getDefaultExportFromCjs$1(reactExports);
|
|
419
|
+
const React$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
420
420
|
__proto__: null,
|
|
421
|
-
default: React
|
|
421
|
+
default: React
|
|
422
422
|
}, [reactExports]);
|
|
423
423
|
/**
|
|
424
424
|
* @license React
|
|
@@ -1344,7 +1344,7 @@ class Translator extends EventEmitter$1 {
|
|
|
1344
1344
|
return false;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
function capitalize
|
|
1347
|
+
function capitalize(string) {
|
|
1348
1348
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
1349
1349
|
}
|
|
1350
1350
|
class LanguageUtil {
|
|
@@ -1382,7 +1382,7 @@ class LanguageUtil {
|
|
|
1382
1382
|
p2[0] = p2[0].toLowerCase();
|
|
1383
1383
|
p2[1] = p2[1].toUpperCase();
|
|
1384
1384
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1385
|
-
p2[1] = capitalize
|
|
1385
|
+
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1386
1386
|
} else if (p2.length === 3) {
|
|
1387
1387
|
p2[0] = p2[0].toLowerCase();
|
|
1388
1388
|
if (p2[1].length === 2)
|
|
@@ -1390,9 +1390,9 @@ class LanguageUtil {
|
|
|
1390
1390
|
if (p2[0] !== "sgn" && p2[2].length === 2)
|
|
1391
1391
|
p2[2] = p2[2].toUpperCase();
|
|
1392
1392
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1393
|
-
p2[1] = capitalize
|
|
1393
|
+
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1394
1394
|
if (specialCases.indexOf(p2[2].toLowerCase()) > -1)
|
|
1395
|
-
p2[2] = capitalize
|
|
1395
|
+
p2[2] = capitalize(p2[2].toLowerCase());
|
|
1396
1396
|
}
|
|
1397
1397
|
return p2.join("-");
|
|
1398
1398
|
}
|
|
@@ -7231,7 +7231,7 @@ var uaParser = { exports: {} };
|
|
|
7231
7231
|
return str.toLowerCase();
|
|
7232
7232
|
}, majorize = function(version) {
|
|
7233
7233
|
return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
|
|
7234
|
-
},
|
|
7234
|
+
}, trim = function(str, len) {
|
|
7235
7235
|
if (typeof str === STR_TYPE) {
|
|
7236
7236
|
str = str.replace(/^\s\s*/, EMPTY);
|
|
7237
7237
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
|
@@ -8067,7 +8067,7 @@ var uaParser = { exports: {} };
|
|
|
8067
8067
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
8068
8068
|
// HbbTV devices
|
|
8069
8069
|
],
|
|
8070
|
-
[[VENDOR,
|
|
8070
|
+
[[VENDOR, trim], [MODEL, trim], [TYPE2, SMARTTV]],
|
|
8071
8071
|
[
|
|
8072
8072
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
8073
8073
|
// SmartTV from Unidentified Vendors
|
|
@@ -8411,7 +8411,7 @@ var uaParser = { exports: {} };
|
|
|
8411
8411
|
return _ua;
|
|
8412
8412
|
};
|
|
8413
8413
|
this.setUA = function(ua3) {
|
|
8414
|
-
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ?
|
|
8414
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
|
|
8415
8415
|
return this;
|
|
8416
8416
|
};
|
|
8417
8417
|
this.setUA(_ua);
|
|
@@ -8460,7 +8460,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8460
8460
|
return t2;
|
|
8461
8461
|
}
|
|
8462
8462
|
return e2;
|
|
8463
|
-
}, i$
|
|
8463
|
+
}, i$1 = (e2, t2, r2, i2, p2) => {
|
|
8464
8464
|
let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
|
|
8465
8465
|
let t3 = 0, r3 = 11;
|
|
8466
8466
|
for (; t3 < e3.length; )
|
|
@@ -8490,7 +8490,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8490
8490
|
}, "");
|
|
8491
8491
|
function u$4(e2) {
|
|
8492
8492
|
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
8493
|
-
return i$
|
|
8493
|
+
return i$1(l2.unshift ? l2.raw ? p$4(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t$3(r2.target), r2.g, r2.o, r2.k);
|
|
8494
8494
|
}
|
|
8495
8495
|
let d$1, f$1, g$1;
|
|
8496
8496
|
u$4.bind({ g: 1 });
|
|
@@ -8972,35 +8972,7 @@ const SvgAlertCircle = ({
|
|
|
8972
8972
|
)
|
|
8973
8973
|
]
|
|
8974
8974
|
}
|
|
8975
|
-
), SvgBookmark$1 = SvgBookmark,
|
|
8976
|
-
title,
|
|
8977
|
-
titleId,
|
|
8978
|
-
...props
|
|
8979
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
8980
|
-
"svg",
|
|
8981
|
-
{
|
|
8982
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8983
|
-
width: "24",
|
|
8984
|
-
height: "24",
|
|
8985
|
-
fill: "none",
|
|
8986
|
-
viewBox: "0 0 24 24",
|
|
8987
|
-
"aria-hidden": "true",
|
|
8988
|
-
"aria-labelledby": titleId,
|
|
8989
|
-
...props,
|
|
8990
|
-
children: [
|
|
8991
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
8992
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8993
|
-
"path",
|
|
8994
|
-
{
|
|
8995
|
-
fill: "currentColor",
|
|
8996
|
-
fillRule: "evenodd",
|
|
8997
|
-
d: "M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5M21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5",
|
|
8998
|
-
clipRule: "evenodd"
|
|
8999
|
-
}
|
|
9000
|
-
)
|
|
9001
|
-
]
|
|
9002
|
-
}
|
|
9003
|
-
), SvgBurgerMenu$1 = SvgBurgerMenu, SvgClose = ({
|
|
8975
|
+
), SvgBookmark$1 = SvgBookmark, SvgClose = ({
|
|
9004
8976
|
title,
|
|
9005
8977
|
titleId,
|
|
9006
8978
|
...props
|
|
@@ -16896,8 +16868,8 @@ const INPUT_VALIDATION_RULES = {
|
|
|
16896
16868
|
required: "required",
|
|
16897
16869
|
validate: "validate"
|
|
16898
16870
|
};
|
|
16899
|
-
const HookFormContext = React
|
|
16900
|
-
const useFormContext = () => React
|
|
16871
|
+
const HookFormContext = React.createContext(null);
|
|
16872
|
+
const useFormContext = () => React.useContext(HookFormContext);
|
|
16901
16873
|
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
16902
16874
|
const result = {
|
|
16903
16875
|
defaultValues: control._defaultValues
|
|
@@ -16925,9 +16897,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
|
|
|
16925
16897
|
var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
|
|
16926
16898
|
var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
|
|
16927
16899
|
function useSubscribe(props) {
|
|
16928
|
-
const _props = React
|
|
16900
|
+
const _props = React.useRef(props);
|
|
16929
16901
|
_props.current = props;
|
|
16930
|
-
React
|
|
16902
|
+
React.useEffect(() => {
|
|
16931
16903
|
const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
|
|
16932
16904
|
next: _props.current.next
|
|
16933
16905
|
});
|
|
@@ -16939,9 +16911,9 @@ function useSubscribe(props) {
|
|
|
16939
16911
|
function useFormState(props) {
|
|
16940
16912
|
const methods = useFormContext();
|
|
16941
16913
|
const { control = methods.control, disabled, name, exact } = props || {};
|
|
16942
|
-
const [formState, updateFormState] = React
|
|
16943
|
-
const _mounted = React
|
|
16944
|
-
const _localProxyFormState = React
|
|
16914
|
+
const [formState, updateFormState] = React.useState(control._formState);
|
|
16915
|
+
const _mounted = React.useRef(true);
|
|
16916
|
+
const _localProxyFormState = React.useRef({
|
|
16945
16917
|
isDirty: false,
|
|
16946
16918
|
isLoading: false,
|
|
16947
16919
|
dirtyFields: false,
|
|
@@ -16950,7 +16922,7 @@ function useFormState(props) {
|
|
|
16950
16922
|
isValid: false,
|
|
16951
16923
|
errors: false
|
|
16952
16924
|
});
|
|
16953
|
-
const _name = React
|
|
16925
|
+
const _name = React.useRef(name);
|
|
16954
16926
|
_name.current = name;
|
|
16955
16927
|
useSubscribe({
|
|
16956
16928
|
disabled,
|
|
@@ -16960,7 +16932,7 @@ function useFormState(props) {
|
|
|
16960
16932
|
}),
|
|
16961
16933
|
subject: control._subjects.state
|
|
16962
16934
|
});
|
|
16963
|
-
React
|
|
16935
|
+
React.useEffect(() => {
|
|
16964
16936
|
_mounted.current = true;
|
|
16965
16937
|
_localProxyFormState.current.isValid && control._updateValid(true);
|
|
16966
16938
|
return () => {
|
|
@@ -16984,7 +16956,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue2) =
|
|
|
16984
16956
|
function useWatch(props) {
|
|
16985
16957
|
const methods = useFormContext();
|
|
16986
16958
|
const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
|
|
16987
|
-
const _name = React
|
|
16959
|
+
const _name = React.useRef(name);
|
|
16988
16960
|
_name.current = name;
|
|
16989
16961
|
useSubscribe({
|
|
16990
16962
|
disabled,
|
|
@@ -16995,8 +16967,8 @@ function useWatch(props) {
|
|
|
16995
16967
|
}
|
|
16996
16968
|
}
|
|
16997
16969
|
});
|
|
16998
|
-
const [value, updateValue] = React
|
|
16999
|
-
React
|
|
16970
|
+
const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
|
|
16971
|
+
React.useEffect(() => control._removeUnmounted());
|
|
17000
16972
|
return value;
|
|
17001
16973
|
}
|
|
17002
16974
|
var isKey = (value) => /^\w*$/.test(value);
|
|
@@ -17032,12 +17004,12 @@ function useController(props) {
|
|
|
17032
17004
|
control,
|
|
17033
17005
|
name
|
|
17034
17006
|
});
|
|
17035
|
-
const _registerProps = React
|
|
17007
|
+
const _registerProps = React.useRef(control.register(name, {
|
|
17036
17008
|
...props.rules,
|
|
17037
17009
|
value,
|
|
17038
17010
|
...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
|
|
17039
17011
|
}));
|
|
17040
|
-
React
|
|
17012
|
+
React.useEffect(() => {
|
|
17041
17013
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
17042
17014
|
const updateMounted = (name2, value2) => {
|
|
17043
17015
|
const field = get(control._fields, name2);
|
|
@@ -17057,7 +17029,7 @@ function useController(props) {
|
|
|
17057
17029
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
17058
17030
|
};
|
|
17059
17031
|
}, [name, control, isArrayField, shouldUnregister]);
|
|
17060
|
-
React
|
|
17032
|
+
React.useEffect(() => {
|
|
17061
17033
|
if (get(control._fields, name)) {
|
|
17062
17034
|
control._updateDisabledField({
|
|
17063
17035
|
disabled,
|
|
@@ -17072,14 +17044,14 @@ function useController(props) {
|
|
|
17072
17044
|
name,
|
|
17073
17045
|
value,
|
|
17074
17046
|
...isBoolean$1(disabled) || isBoolean$1(formState.disabled) ? { disabled: formState.disabled || disabled } : {},
|
|
17075
|
-
onChange: React
|
|
17047
|
+
onChange: React.useCallback((event) => _registerProps.current.onChange({
|
|
17076
17048
|
target: {
|
|
17077
17049
|
value: getEventValue(event),
|
|
17078
17050
|
name
|
|
17079
17051
|
},
|
|
17080
17052
|
type: EVENTS.CHANGE
|
|
17081
17053
|
}), [name]),
|
|
17082
|
-
onBlur: React
|
|
17054
|
+
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
17083
17055
|
target: {
|
|
17084
17056
|
value: get(control._formValues, name),
|
|
17085
17057
|
name
|
|
@@ -18322,9 +18294,9 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18322
18294
|
};
|
|
18323
18295
|
}
|
|
18324
18296
|
function useForm(props = {}) {
|
|
18325
|
-
const _formControl = React
|
|
18326
|
-
const _values = React
|
|
18327
|
-
const [formState, updateFormState] = React
|
|
18297
|
+
const _formControl = React.useRef();
|
|
18298
|
+
const _values = React.useRef();
|
|
18299
|
+
const [formState, updateFormState] = React.useState({
|
|
18328
18300
|
isDirty: false,
|
|
18329
18301
|
isValidating: false,
|
|
18330
18302
|
isLoading: isFunction(props.defaultValues),
|
|
@@ -18355,8 +18327,8 @@ function useForm(props = {}) {
|
|
|
18355
18327
|
}
|
|
18356
18328
|
}
|
|
18357
18329
|
});
|
|
18358
|
-
React
|
|
18359
|
-
React
|
|
18330
|
+
React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18331
|
+
React.useEffect(() => {
|
|
18360
18332
|
if (control._proxyFormState.isDirty) {
|
|
18361
18333
|
const isDirty = control._getDirty();
|
|
18362
18334
|
if (isDirty !== formState.isDirty) {
|
|
@@ -18366,7 +18338,7 @@ function useForm(props = {}) {
|
|
|
18366
18338
|
}
|
|
18367
18339
|
}
|
|
18368
18340
|
}, [control, formState.isDirty]);
|
|
18369
|
-
React
|
|
18341
|
+
React.useEffect(() => {
|
|
18370
18342
|
if (props.values && !deepEqual$1(props.values, _values.current)) {
|
|
18371
18343
|
control._reset(props.values, control._options.resetOptions);
|
|
18372
18344
|
_values.current = props.values;
|
|
@@ -18375,12 +18347,12 @@ function useForm(props = {}) {
|
|
|
18375
18347
|
control._resetDefaultValues();
|
|
18376
18348
|
}
|
|
18377
18349
|
}, [props.values, control]);
|
|
18378
|
-
React
|
|
18350
|
+
React.useEffect(() => {
|
|
18379
18351
|
if (props.errors) {
|
|
18380
18352
|
control._setErrors(props.errors);
|
|
18381
18353
|
}
|
|
18382
18354
|
}, [props.errors, control]);
|
|
18383
|
-
React
|
|
18355
|
+
React.useEffect(() => {
|
|
18384
18356
|
if (!control._state.mount) {
|
|
18385
18357
|
control._updateValid();
|
|
18386
18358
|
control._state.mount = true;
|
|
@@ -18394,9 +18366,9 @@ function useForm(props = {}) {
|
|
|
18394
18366
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
18395
18367
|
return _formControl.current;
|
|
18396
18368
|
}
|
|
18397
|
-
function getWindow$3(
|
|
18369
|
+
function getWindow$3(node) {
|
|
18398
18370
|
var _node$ownerDocument;
|
|
18399
|
-
return (
|
|
18371
|
+
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18400
18372
|
}
|
|
18401
18373
|
function isElement$3(value) {
|
|
18402
18374
|
return value instanceof Element || value instanceof getWindow$3(value).Element;
|
|
@@ -18959,19 +18931,19 @@ const size$2 = function(options) {
|
|
|
18959
18931
|
}
|
|
18960
18932
|
};
|
|
18961
18933
|
};
|
|
18962
|
-
function getNodeName$1(
|
|
18963
|
-
if (isNode$1(
|
|
18964
|
-
return (
|
|
18934
|
+
function getNodeName$1(node) {
|
|
18935
|
+
if (isNode$1(node)) {
|
|
18936
|
+
return (node.nodeName || "").toLowerCase();
|
|
18965
18937
|
}
|
|
18966
18938
|
return "#document";
|
|
18967
18939
|
}
|
|
18968
|
-
function getWindow$2(
|
|
18940
|
+
function getWindow$2(node) {
|
|
18969
18941
|
var _node$ownerDocument;
|
|
18970
|
-
return (
|
|
18942
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18971
18943
|
}
|
|
18972
|
-
function getDocumentElement$1(
|
|
18944
|
+
function getDocumentElement$1(node) {
|
|
18973
18945
|
var _ref;
|
|
18974
|
-
return (_ref = (isNode$1(
|
|
18946
|
+
return (_ref = (isNode$1(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
18975
18947
|
}
|
|
18976
18948
|
function isNode$1(value) {
|
|
18977
18949
|
return value instanceof Node || value instanceof getWindow$2(value).Node;
|
|
@@ -19020,8 +18992,8 @@ function isWebKit() {
|
|
|
19020
18992
|
return false;
|
|
19021
18993
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
19022
18994
|
}
|
|
19023
|
-
function isLastTraversableNode(
|
|
19024
|
-
return ["html", "body", "#document"].includes(getNodeName$1(
|
|
18995
|
+
function isLastTraversableNode(node) {
|
|
18996
|
+
return ["html", "body", "#document"].includes(getNodeName$1(node));
|
|
19025
18997
|
}
|
|
19026
18998
|
function getComputedStyle$3(element) {
|
|
19027
18999
|
return getWindow$2(element).getComputedStyle(element);
|
|
@@ -19038,30 +19010,30 @@ function getNodeScroll$1(element) {
|
|
|
19038
19010
|
scrollTop: element.pageYOffset
|
|
19039
19011
|
};
|
|
19040
19012
|
}
|
|
19041
|
-
function getParentNode$1(
|
|
19042
|
-
if (getNodeName$1(
|
|
19043
|
-
return
|
|
19013
|
+
function getParentNode$1(node) {
|
|
19014
|
+
if (getNodeName$1(node) === "html") {
|
|
19015
|
+
return node;
|
|
19044
19016
|
}
|
|
19045
19017
|
const result = (
|
|
19046
19018
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
isShadowRoot$1(
|
|
19050
|
-
getDocumentElement$1(
|
|
19019
|
+
node.assignedSlot || // DOM Element detected.
|
|
19020
|
+
node.parentNode || // ShadowRoot detected.
|
|
19021
|
+
isShadowRoot$1(node) && node.host || // Fallback.
|
|
19022
|
+
getDocumentElement$1(node)
|
|
19051
19023
|
);
|
|
19052
19024
|
return isShadowRoot$1(result) ? result.host : result;
|
|
19053
19025
|
}
|
|
19054
|
-
function getNearestOverflowAncestor(
|
|
19055
|
-
const parentNode = getParentNode$1(
|
|
19026
|
+
function getNearestOverflowAncestor(node) {
|
|
19027
|
+
const parentNode = getParentNode$1(node);
|
|
19056
19028
|
if (isLastTraversableNode(parentNode)) {
|
|
19057
|
-
return
|
|
19029
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
19058
19030
|
}
|
|
19059
19031
|
if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
|
|
19060
19032
|
return parentNode;
|
|
19061
19033
|
}
|
|
19062
19034
|
return getNearestOverflowAncestor(parentNode);
|
|
19063
19035
|
}
|
|
19064
|
-
function getOverflowAncestors(
|
|
19036
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
19065
19037
|
var _node$ownerDocument2;
|
|
19066
19038
|
if (list === void 0) {
|
|
19067
19039
|
list = [];
|
|
@@ -19069,8 +19041,8 @@ function getOverflowAncestors(node2, list, traverseIframes) {
|
|
|
19069
19041
|
if (traverseIframes === void 0) {
|
|
19070
19042
|
traverseIframes = true;
|
|
19071
19043
|
}
|
|
19072
|
-
const scrollableAncestor = getNearestOverflowAncestor(
|
|
19073
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 =
|
|
19044
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
19045
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
19074
19046
|
const win = getWindow$2(scrollableAncestor);
|
|
19075
19047
|
if (isBody) {
|
|
19076
19048
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
@@ -19742,16 +19714,16 @@ function useFloating$1(options) {
|
|
|
19742
19714
|
}
|
|
19743
19715
|
const [_reference, _setReference] = reactExports.useState(null);
|
|
19744
19716
|
const [_floating, _setFloating] = reactExports.useState(null);
|
|
19745
|
-
const setReference = reactExports.useCallback((
|
|
19746
|
-
if (
|
|
19747
|
-
referenceRef.current =
|
|
19748
|
-
_setReference(
|
|
19717
|
+
const setReference = reactExports.useCallback((node) => {
|
|
19718
|
+
if (node !== referenceRef.current) {
|
|
19719
|
+
referenceRef.current = node;
|
|
19720
|
+
_setReference(node);
|
|
19749
19721
|
}
|
|
19750
19722
|
}, []);
|
|
19751
|
-
const setFloating = reactExports.useCallback((
|
|
19752
|
-
if (
|
|
19753
|
-
floatingRef.current =
|
|
19754
|
-
_setFloating(
|
|
19723
|
+
const setFloating = reactExports.useCallback((node) => {
|
|
19724
|
+
if (node !== floatingRef.current) {
|
|
19725
|
+
floatingRef.current = node;
|
|
19726
|
+
_setFloating(node);
|
|
19755
19727
|
}
|
|
19756
19728
|
}, []);
|
|
19757
19729
|
const referenceEl = externalReference || _reference;
|
|
@@ -19889,7 +19861,7 @@ function useFloatingId() {
|
|
|
19889
19861
|
}, []);
|
|
19890
19862
|
return id2;
|
|
19891
19863
|
}
|
|
19892
|
-
const useReactId = React$
|
|
19864
|
+
const useReactId = React$1[/* @__PURE__ */ "useId".toString()];
|
|
19893
19865
|
const useId = useReactId || useFloatingId;
|
|
19894
19866
|
function createPubSub() {
|
|
19895
19867
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -19909,7 +19881,7 @@ function createPubSub() {
|
|
|
19909
19881
|
}
|
|
19910
19882
|
const FloatingTreeContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
19911
19883
|
const useFloatingTree = () => reactExports.useContext(FloatingTreeContext);
|
|
19912
|
-
const useInsertionEffect = React$
|
|
19884
|
+
const useInsertionEffect = React$1[/* @__PURE__ */ "useInsertionEffect".toString()];
|
|
19913
19885
|
const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
|
|
19914
19886
|
function useEffectEvent(callback) {
|
|
19915
19887
|
const ref2 = reactExports.useRef(() => {
|
|
@@ -19948,23 +19920,23 @@ function useFloating(options) {
|
|
|
19948
19920
|
const dataRef = reactExports.useRef({});
|
|
19949
19921
|
const events2 = reactExports.useState(() => createPubSub())[0];
|
|
19950
19922
|
const floatingId = useId();
|
|
19951
|
-
const setPositionReference = reactExports.useCallback((
|
|
19952
|
-
const positionReference = isElement$3(
|
|
19953
|
-
getBoundingClientRect: () =>
|
|
19954
|
-
contextElement:
|
|
19955
|
-
} :
|
|
19923
|
+
const setPositionReference = reactExports.useCallback((node) => {
|
|
19924
|
+
const positionReference = isElement$3(node) ? {
|
|
19925
|
+
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
19926
|
+
contextElement: node
|
|
19927
|
+
} : node;
|
|
19956
19928
|
position.refs.setReference(positionReference);
|
|
19957
19929
|
}, [position.refs]);
|
|
19958
|
-
const setReference = reactExports.useCallback((
|
|
19959
|
-
if (isElement$3(
|
|
19960
|
-
domReferenceRef.current =
|
|
19961
|
-
setDomReference(
|
|
19930
|
+
const setReference = reactExports.useCallback((node) => {
|
|
19931
|
+
if (isElement$3(node) || node === null) {
|
|
19932
|
+
domReferenceRef.current = node;
|
|
19933
|
+
setDomReference(node);
|
|
19962
19934
|
}
|
|
19963
19935
|
if (isElement$3(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
19964
19936
|
// `null` to support `positionReference` + an unstable `reference`
|
|
19965
19937
|
// callback ref.
|
|
19966
|
-
|
|
19967
|
-
position.refs.setReference(
|
|
19938
|
+
node !== null && !isElement$3(node)) {
|
|
19939
|
+
position.refs.setReference(node);
|
|
19968
19940
|
}
|
|
19969
19941
|
}, [position.refs]);
|
|
19970
19942
|
const refs = reactExports.useMemo(() => ({
|
|
@@ -19989,9 +19961,9 @@ function useFloating(options) {
|
|
|
19989
19961
|
onOpenChange
|
|
19990
19962
|
}), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
|
|
19991
19963
|
index(() => {
|
|
19992
|
-
const
|
|
19993
|
-
if (
|
|
19994
|
-
|
|
19964
|
+
const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
|
|
19965
|
+
if (node) {
|
|
19966
|
+
node.context = context2;
|
|
19995
19967
|
}
|
|
19996
19968
|
});
|
|
19997
19969
|
return reactExports.useMemo(() => ({
|
|
@@ -20991,7 +20963,7 @@ function usePrev(value) {
|
|
|
20991
20963
|
var $node = Symbol.for("Animated:node");
|
|
20992
20964
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
20993
20965
|
var getAnimated = (owner) => owner && owner[$node];
|
|
20994
|
-
var setAnimated = (owner,
|
|
20966
|
+
var setAnimated = (owner, node) => defineHidden(owner, $node, node);
|
|
20995
20967
|
var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
|
|
20996
20968
|
var Animated = class {
|
|
20997
20969
|
constructor() {
|
|
@@ -21118,7 +21090,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21118
21090
|
}
|
|
21119
21091
|
reset() {
|
|
21120
21092
|
if (this.payload) {
|
|
21121
|
-
each(this.payload, (
|
|
21093
|
+
each(this.payload, (node) => node.reset());
|
|
21122
21094
|
}
|
|
21123
21095
|
}
|
|
21124
21096
|
/** Create a payload set. */
|
|
@@ -21136,7 +21108,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21136
21108
|
}
|
|
21137
21109
|
const payload = getPayload(source);
|
|
21138
21110
|
if (payload) {
|
|
21139
|
-
each(payload, (
|
|
21111
|
+
each(payload, (node) => this.add(node));
|
|
21140
21112
|
}
|
|
21141
21113
|
}
|
|
21142
21114
|
};
|
|
@@ -21149,12 +21121,12 @@ var AnimatedArray = class extends AnimatedObject {
|
|
|
21149
21121
|
return new AnimatedArray(source);
|
|
21150
21122
|
}
|
|
21151
21123
|
getValue() {
|
|
21152
|
-
return this.source.map((
|
|
21124
|
+
return this.source.map((node) => node.getValue());
|
|
21153
21125
|
}
|
|
21154
21126
|
setValue(source) {
|
|
21155
21127
|
const payload = this.getPayload();
|
|
21156
21128
|
if (source.length == payload.length) {
|
|
21157
|
-
return payload.map((
|
|
21129
|
+
return payload.map((node, i2) => node.setValue(source[i2])).some(Boolean);
|
|
21158
21130
|
}
|
|
21159
21131
|
super.setValue(source.map(makeAnimated));
|
|
21160
21132
|
return true;
|
|
@@ -21689,8 +21661,8 @@ var FrameValue = class extends FluidValue {
|
|
|
21689
21661
|
}
|
|
21690
21662
|
/** Get the current value */
|
|
21691
21663
|
get() {
|
|
21692
|
-
const
|
|
21693
|
-
return
|
|
21664
|
+
const node = getAnimated(this);
|
|
21665
|
+
return node && node.getValue();
|
|
21694
21666
|
}
|
|
21695
21667
|
/** Create a spring that maps our value to another value */
|
|
21696
21668
|
to(...args) {
|
|
@@ -21780,8 +21752,8 @@ var SpringValue = class extends FrameValue {
|
|
|
21780
21752
|
return getFluidValue(this.animation.to);
|
|
21781
21753
|
}
|
|
21782
21754
|
get velocity() {
|
|
21783
|
-
const
|
|
21784
|
-
return
|
|
21755
|
+
const node = getAnimated(this);
|
|
21756
|
+
return node instanceof AnimatedValue ? node.lastVelocity || 0 : node.getPayload().map((node2) => node2.lastVelocity || 0);
|
|
21785
21757
|
}
|
|
21786
21758
|
/**
|
|
21787
21759
|
* When true, this value has been animated at least once.
|
|
@@ -21820,24 +21792,24 @@ var SpringValue = class extends FrameValue {
|
|
|
21820
21792
|
if (!payload && hasFluidValue(anim.to)) {
|
|
21821
21793
|
toValues = toArray(getFluidValue(anim.to));
|
|
21822
21794
|
}
|
|
21823
|
-
anim.values.forEach((
|
|
21824
|
-
if (
|
|
21795
|
+
anim.values.forEach((node2, i2) => {
|
|
21796
|
+
if (node2.done)
|
|
21825
21797
|
return;
|
|
21826
21798
|
const to2 = (
|
|
21827
21799
|
// Animated strings always go from 0 to 1.
|
|
21828
|
-
|
|
21800
|
+
node2.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
|
|
21829
21801
|
);
|
|
21830
21802
|
let finished = anim.immediate;
|
|
21831
21803
|
let position = to2;
|
|
21832
21804
|
if (!finished) {
|
|
21833
|
-
position =
|
|
21805
|
+
position = node2.lastPosition;
|
|
21834
21806
|
if (config2.tension <= 0) {
|
|
21835
|
-
|
|
21807
|
+
node2.done = true;
|
|
21836
21808
|
return;
|
|
21837
21809
|
}
|
|
21838
|
-
let elapsed =
|
|
21810
|
+
let elapsed = node2.elapsedTime += dt;
|
|
21839
21811
|
const from = anim.fromValues[i2];
|
|
21840
|
-
const v0 =
|
|
21812
|
+
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
|
|
21841
21813
|
let velocity;
|
|
21842
21814
|
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
21843
21815
|
if (!is.und(config2.duration)) {
|
|
@@ -21845,30 +21817,30 @@ var SpringValue = class extends FrameValue {
|
|
|
21845
21817
|
if (config2.duration > 0) {
|
|
21846
21818
|
if (this._memoizedDuration !== config2.duration) {
|
|
21847
21819
|
this._memoizedDuration = config2.duration;
|
|
21848
|
-
if (
|
|
21849
|
-
|
|
21850
|
-
elapsed =
|
|
21820
|
+
if (node2.durationProgress > 0) {
|
|
21821
|
+
node2.elapsedTime = config2.duration * node2.durationProgress;
|
|
21822
|
+
elapsed = node2.elapsedTime += dt;
|
|
21851
21823
|
}
|
|
21852
21824
|
}
|
|
21853
21825
|
p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
|
|
21854
21826
|
p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
|
|
21855
|
-
|
|
21827
|
+
node2.durationProgress = p2;
|
|
21856
21828
|
}
|
|
21857
21829
|
position = from + config2.easing(p2) * (to2 - from);
|
|
21858
|
-
velocity = (position -
|
|
21830
|
+
velocity = (position - node2.lastPosition) / dt;
|
|
21859
21831
|
finished = p2 == 1;
|
|
21860
21832
|
} else if (config2.decay) {
|
|
21861
21833
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
21862
21834
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
21863
21835
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
21864
|
-
finished = Math.abs(
|
|
21836
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
21865
21837
|
velocity = v0 * e2;
|
|
21866
21838
|
} else {
|
|
21867
|
-
velocity =
|
|
21839
|
+
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
21868
21840
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
21869
21841
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
21870
21842
|
const canBounce = !is.und(bounceFactor);
|
|
21871
|
-
const isGrowing = from == to2 ?
|
|
21843
|
+
const isGrowing = from == to2 ? node2.v0 > 0 : from < to2;
|
|
21872
21844
|
let isMoving;
|
|
21873
21845
|
let isBouncing = false;
|
|
21874
21846
|
const step = 1;
|
|
@@ -21895,7 +21867,7 @@ var SpringValue = class extends FrameValue {
|
|
|
21895
21867
|
position = position + velocity * step;
|
|
21896
21868
|
}
|
|
21897
21869
|
}
|
|
21898
|
-
|
|
21870
|
+
node2.lastVelocity = velocity;
|
|
21899
21871
|
if (Number.isNaN(position)) {
|
|
21900
21872
|
console.warn(`Got NaN while animating:`, this);
|
|
21901
21873
|
finished = true;
|
|
@@ -21905,20 +21877,20 @@ var SpringValue = class extends FrameValue {
|
|
|
21905
21877
|
finished = false;
|
|
21906
21878
|
}
|
|
21907
21879
|
if (finished) {
|
|
21908
|
-
|
|
21880
|
+
node2.done = true;
|
|
21909
21881
|
} else {
|
|
21910
21882
|
idle = false;
|
|
21911
21883
|
}
|
|
21912
|
-
if (
|
|
21884
|
+
if (node2.setValue(position, config2.round)) {
|
|
21913
21885
|
changed = true;
|
|
21914
21886
|
}
|
|
21915
21887
|
});
|
|
21916
|
-
const
|
|
21917
|
-
const currVal =
|
|
21888
|
+
const node = getAnimated(this);
|
|
21889
|
+
const currVal = node.getValue();
|
|
21918
21890
|
if (idle) {
|
|
21919
21891
|
const finalVal = getFluidValue(anim.to);
|
|
21920
21892
|
if ((currVal !== finalVal || changed) && !config2.decay) {
|
|
21921
|
-
|
|
21893
|
+
node.setValue(finalVal);
|
|
21922
21894
|
this._onChange(finalVal);
|
|
21923
21895
|
} else if (changed && config2.decay) {
|
|
21924
21896
|
this._onChange(currVal);
|
|
@@ -22148,8 +22120,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22148
22120
|
props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
|
|
22149
22121
|
);
|
|
22150
22122
|
}
|
|
22151
|
-
let
|
|
22152
|
-
if (!
|
|
22123
|
+
let node = getAnimated(this);
|
|
22124
|
+
if (!node || is.und(to2)) {
|
|
22153
22125
|
return resolve(getFinishedResult(this, true));
|
|
22154
22126
|
}
|
|
22155
22127
|
const reset = (
|
|
@@ -22164,16 +22136,16 @@ var SpringValue = class extends FrameValue {
|
|
|
22164
22136
|
const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
|
|
22165
22137
|
if (hasToChanged) {
|
|
22166
22138
|
const nodeType = getAnimatedType(to2);
|
|
22167
|
-
if (nodeType !==
|
|
22139
|
+
if (nodeType !== node.constructor) {
|
|
22168
22140
|
if (immediate) {
|
|
22169
|
-
|
|
22141
|
+
node = this._set(goal);
|
|
22170
22142
|
} else
|
|
22171
22143
|
throw Error(
|
|
22172
|
-
`Cannot animate between ${
|
|
22144
|
+
`Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
|
|
22173
22145
|
);
|
|
22174
22146
|
}
|
|
22175
22147
|
}
|
|
22176
|
-
const goalType =
|
|
22148
|
+
const goalType = node.constructor;
|
|
22177
22149
|
let started = hasFluidValue(to2);
|
|
22178
22150
|
let finished = false;
|
|
22179
22151
|
if (!started) {
|
|
@@ -22195,7 +22167,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22195
22167
|
}
|
|
22196
22168
|
if (!hasAsyncTo) {
|
|
22197
22169
|
if (started || hasFluidValue(prevTo)) {
|
|
22198
|
-
anim.values =
|
|
22170
|
+
anim.values = node.getPayload();
|
|
22199
22171
|
anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
|
|
22200
22172
|
}
|
|
22201
22173
|
if (anim.immediate != immediate) {
|
|
@@ -22317,7 +22289,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22317
22289
|
const anim = this.animation;
|
|
22318
22290
|
getAnimated(this).reset(getFluidValue(anim.to));
|
|
22319
22291
|
if (!anim.immediate) {
|
|
22320
|
-
anim.fromValues = anim.values.map((
|
|
22292
|
+
anim.fromValues = anim.values.map((node) => node.lastPosition);
|
|
22321
22293
|
}
|
|
22322
22294
|
if (!isAnimating(this)) {
|
|
22323
22295
|
setActiveBit(this, true);
|
|
@@ -22342,8 +22314,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22342
22314
|
if (isAnimating(this)) {
|
|
22343
22315
|
setActiveBit(this, false);
|
|
22344
22316
|
const anim = this.animation;
|
|
22345
|
-
each(anim.values, (
|
|
22346
|
-
|
|
22317
|
+
each(anim.values, (node) => {
|
|
22318
|
+
node.done = true;
|
|
22347
22319
|
});
|
|
22348
22320
|
if (anim.toValues) {
|
|
22349
22321
|
anim.onChange = anim.onPause = anim.onResume = void 0;
|
|
@@ -23216,8 +23188,8 @@ var Interpolation = class extends FrameValue {
|
|
|
23216
23188
|
_start() {
|
|
23217
23189
|
if (this.idle && !checkIdle(this._active)) {
|
|
23218
23190
|
this.idle = false;
|
|
23219
|
-
each(getPayload(this), (
|
|
23220
|
-
|
|
23191
|
+
each(getPayload(this), (node) => {
|
|
23192
|
+
node.done = false;
|
|
23221
23193
|
});
|
|
23222
23194
|
if (globals_exports.skipAnimation) {
|
|
23223
23195
|
raf.batchedUpdates(() => this.advance());
|
|
@@ -23282,8 +23254,8 @@ function checkIdle(active) {
|
|
|
23282
23254
|
function becomeIdle(self2) {
|
|
23283
23255
|
if (!self2.idle) {
|
|
23284
23256
|
self2.idle = true;
|
|
23285
|
-
each(getPayload(self2), (
|
|
23286
|
-
|
|
23257
|
+
each(getPayload(self2), (node) => {
|
|
23258
|
+
node.done = true;
|
|
23287
23259
|
});
|
|
23288
23260
|
callFluidObservers(self2, {
|
|
23289
23261
|
type: "idle",
|
|
@@ -23677,30 +23649,30 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
|
|
|
23677
23649
|
function getNodeName(element) {
|
|
23678
23650
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
23679
23651
|
}
|
|
23680
|
-
function getWindow$1(
|
|
23681
|
-
if (
|
|
23652
|
+
function getWindow$1(node) {
|
|
23653
|
+
if (node == null) {
|
|
23682
23654
|
return window;
|
|
23683
23655
|
}
|
|
23684
|
-
if (
|
|
23685
|
-
var ownerDocument =
|
|
23656
|
+
if (node.toString() !== "[object Window]") {
|
|
23657
|
+
var ownerDocument = node.ownerDocument;
|
|
23686
23658
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
23687
23659
|
}
|
|
23688
|
-
return
|
|
23660
|
+
return node;
|
|
23689
23661
|
}
|
|
23690
|
-
function isElement$1(
|
|
23691
|
-
var OwnElement = getWindow$1(
|
|
23692
|
-
return
|
|
23662
|
+
function isElement$1(node) {
|
|
23663
|
+
var OwnElement = getWindow$1(node).Element;
|
|
23664
|
+
return node instanceof OwnElement || node instanceof Element;
|
|
23693
23665
|
}
|
|
23694
|
-
function isHTMLElement(
|
|
23695
|
-
var OwnElement = getWindow$1(
|
|
23696
|
-
return
|
|
23666
|
+
function isHTMLElement(node) {
|
|
23667
|
+
var OwnElement = getWindow$1(node).HTMLElement;
|
|
23668
|
+
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
23697
23669
|
}
|
|
23698
|
-
function isShadowRoot(
|
|
23670
|
+
function isShadowRoot(node) {
|
|
23699
23671
|
if (typeof ShadowRoot === "undefined") {
|
|
23700
23672
|
return false;
|
|
23701
23673
|
}
|
|
23702
|
-
var OwnElement = getWindow$1(
|
|
23703
|
-
return
|
|
23674
|
+
var OwnElement = getWindow$1(node).ShadowRoot;
|
|
23675
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
23704
23676
|
}
|
|
23705
23677
|
function applyStyles(_ref) {
|
|
23706
23678
|
var state = _ref.state;
|
|
@@ -24182,8 +24154,8 @@ function getOppositeVariationPlacement(placement) {
|
|
|
24182
24154
|
return hash$1[matched];
|
|
24183
24155
|
});
|
|
24184
24156
|
}
|
|
24185
|
-
function getWindowScroll(
|
|
24186
|
-
var win = getWindow$1(
|
|
24157
|
+
function getWindowScroll(node) {
|
|
24158
|
+
var win = getWindow$1(node);
|
|
24187
24159
|
var scrollLeft = win.pageXOffset;
|
|
24188
24160
|
var scrollTop = win.pageYOffset;
|
|
24189
24161
|
return {
|
|
@@ -24241,14 +24213,14 @@ function isScrollParent(element) {
|
|
|
24241
24213
|
var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
24242
24214
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
24243
24215
|
}
|
|
24244
|
-
function getScrollParent(
|
|
24245
|
-
if (["html", "body", "#document"].indexOf(getNodeName(
|
|
24246
|
-
return
|
|
24216
|
+
function getScrollParent(node) {
|
|
24217
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
|
|
24218
|
+
return node.ownerDocument.body;
|
|
24247
24219
|
}
|
|
24248
|
-
if (isHTMLElement(
|
|
24249
|
-
return
|
|
24220
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
24221
|
+
return node;
|
|
24250
24222
|
}
|
|
24251
|
-
return getScrollParent(getParentNode(
|
|
24223
|
+
return getScrollParent(getParentNode(node));
|
|
24252
24224
|
}
|
|
24253
24225
|
function listScrollParents(element, list) {
|
|
24254
24226
|
var _element$ownerDocumen;
|
|
@@ -24742,11 +24714,11 @@ function getHTMLElementScroll(element) {
|
|
|
24742
24714
|
scrollTop: element.scrollTop
|
|
24743
24715
|
};
|
|
24744
24716
|
}
|
|
24745
|
-
function getNodeScroll(
|
|
24746
|
-
if (
|
|
24747
|
-
return getWindowScroll(
|
|
24717
|
+
function getNodeScroll(node) {
|
|
24718
|
+
if (node === getWindow$1(node) || !isHTMLElement(node)) {
|
|
24719
|
+
return getWindowScroll(node);
|
|
24748
24720
|
} else {
|
|
24749
|
-
return getHTMLElementScroll(
|
|
24721
|
+
return getHTMLElementScroll(node);
|
|
24750
24722
|
}
|
|
24751
24723
|
}
|
|
24752
24724
|
function isElementScaled(element) {
|
|
@@ -25279,35 +25251,7 @@ const SvgCommunity = ({
|
|
|
25279
25251
|
)
|
|
25280
25252
|
]
|
|
25281
25253
|
}
|
|
25282
|
-
), SvgMyApps$1 = SvgMyApps,
|
|
25283
|
-
title,
|
|
25284
|
-
titleId,
|
|
25285
|
-
...props
|
|
25286
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25287
|
-
"svg",
|
|
25288
|
-
{
|
|
25289
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25290
|
-
width: "24",
|
|
25291
|
-
height: "24",
|
|
25292
|
-
fill: "none",
|
|
25293
|
-
viewBox: "0 0 24 24",
|
|
25294
|
-
"aria-hidden": "true",
|
|
25295
|
-
"aria-labelledby": titleId,
|
|
25296
|
-
...props,
|
|
25297
|
-
children: [
|
|
25298
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25299
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25300
|
-
"path",
|
|
25301
|
-
{
|
|
25302
|
-
fill: "currentColor",
|
|
25303
|
-
fillRule: "evenodd",
|
|
25304
|
-
d: "M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.67.67 0 0 1-.945.121L7.27 8.63a.72.72 0 0 1-.147-.963M9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03S12.814 20 11.73 20c-1.086 0-1.969-.91-1.969-2.03",
|
|
25305
|
-
clipRule: "evenodd"
|
|
25306
|
-
}
|
|
25307
|
-
)
|
|
25308
|
-
]
|
|
25309
|
-
}
|
|
25310
|
-
), SvgNeoAssistance$1 = SvgNeoAssistance, SvgNeoMessaging = ({
|
|
25254
|
+
), SvgMyApps$1 = SvgMyApps, SvgNeoMessaging = ({
|
|
25311
25255
|
title,
|
|
25312
25256
|
titleId,
|
|
25313
25257
|
...props
|
|
@@ -25358,33 +25302,7 @@ const SvgCommunity = ({
|
|
|
25358
25302
|
)
|
|
25359
25303
|
]
|
|
25360
25304
|
}
|
|
25361
|
-
), SvgNewRelease$1 = SvgNewRelease,
|
|
25362
|
-
title,
|
|
25363
|
-
titleId,
|
|
25364
|
-
...props
|
|
25365
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25366
|
-
"svg",
|
|
25367
|
-
{
|
|
25368
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25369
|
-
width: "24",
|
|
25370
|
-
height: "24",
|
|
25371
|
-
fill: "none",
|
|
25372
|
-
viewBox: "0 0 24 24",
|
|
25373
|
-
"aria-hidden": "true",
|
|
25374
|
-
"aria-labelledby": titleId,
|
|
25375
|
-
...props,
|
|
25376
|
-
children: [
|
|
25377
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25378
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25379
|
-
"path",
|
|
25380
|
-
{
|
|
25381
|
-
fill: "currentColor",
|
|
25382
|
-
d: "M11.685 2C8.66 2 6.7 3.277 5.164 5.556A.96.96 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"
|
|
25383
|
-
}
|
|
25384
|
-
)
|
|
25385
|
-
]
|
|
25386
|
-
}
|
|
25387
|
-
), SvgOneAssistance$1 = SvgOneAssistance, SvgOneMessaging = ({
|
|
25305
|
+
), SvgNewRelease$1 = SvgNewRelease, SvgOneMessaging = ({
|
|
25388
25306
|
title,
|
|
25389
25307
|
titleId,
|
|
25390
25308
|
...props
|
|
@@ -25715,11 +25633,11 @@ function getTranslate(el2, axis) {
|
|
|
25715
25633
|
function isObject$1(o2) {
|
|
25716
25634
|
return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
|
|
25717
25635
|
}
|
|
25718
|
-
function isNode(
|
|
25636
|
+
function isNode(node) {
|
|
25719
25637
|
if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
|
|
25720
|
-
return
|
|
25638
|
+
return node instanceof HTMLElement;
|
|
25721
25639
|
}
|
|
25722
|
-
return
|
|
25640
|
+
return node && (node.nodeType === 1 || node.nodeType === 11);
|
|
25723
25641
|
}
|
|
25724
25642
|
function extend$1() {
|
|
25725
25643
|
const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
@@ -26747,8 +26665,8 @@ function updateSlides() {
|
|
|
26747
26665
|
"marginRight": "marginBottom"
|
|
26748
26666
|
}[property];
|
|
26749
26667
|
}
|
|
26750
|
-
function getDirectionPropertyValue(
|
|
26751
|
-
return parseFloat(
|
|
26668
|
+
function getDirectionPropertyValue(node, label) {
|
|
26669
|
+
return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);
|
|
26752
26670
|
}
|
|
26753
26671
|
const params = swiper.params;
|
|
26754
26672
|
const {
|
|
@@ -30348,7 +30266,7 @@ function isChildSwiperSlide(child) {
|
|
|
30348
30266
|
}
|
|
30349
30267
|
function processChildren(c6) {
|
|
30350
30268
|
const slides = [];
|
|
30351
|
-
React
|
|
30269
|
+
React.Children.toArray(c6).forEach((child) => {
|
|
30352
30270
|
if (isChildSwiperSlide(child)) {
|
|
30353
30271
|
slides.push(child);
|
|
30354
30272
|
} else if (child.props && child.props.children) {
|
|
@@ -30365,7 +30283,7 @@ function getChildren(c6) {
|
|
|
30365
30283
|
"wrapper-start": [],
|
|
30366
30284
|
"wrapper-end": []
|
|
30367
30285
|
};
|
|
30368
|
-
React
|
|
30286
|
+
React.Children.toArray(c6).forEach((child) => {
|
|
30369
30287
|
if (isChildSwiperSlide(child)) {
|
|
30370
30288
|
slides.push(child);
|
|
30371
30289
|
} else if (child.props && child.props.slot && slots[child.props.slot]) {
|
|
@@ -30416,7 +30334,7 @@ function renderVirtual(swiper, slides, virtualData) {
|
|
|
30416
30334
|
}
|
|
30417
30335
|
}
|
|
30418
30336
|
return slidesToRender.map((child, index2) => {
|
|
30419
|
-
return /* @__PURE__ */ React
|
|
30337
|
+
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30420
30338
|
swiper,
|
|
30421
30339
|
style,
|
|
30422
30340
|
key: `slide-${index2}`
|
|
@@ -30576,29 +30494,29 @@ const Swiper2 = /* @__PURE__ */ reactExports.forwardRef(function(_temp, external
|
|
|
30576
30494
|
return renderVirtual(swiperRef.current, slides, virtualData);
|
|
30577
30495
|
}
|
|
30578
30496
|
return slides.map((child, index2) => {
|
|
30579
|
-
return /* @__PURE__ */ React
|
|
30497
|
+
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30580
30498
|
swiper: swiperRef.current,
|
|
30581
30499
|
swiperSlideIndex: index2
|
|
30582
30500
|
});
|
|
30583
30501
|
});
|
|
30584
30502
|
}
|
|
30585
|
-
return /* @__PURE__ */ React
|
|
30503
|
+
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30586
30504
|
ref: swiperElRef,
|
|
30587
30505
|
className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
|
|
30588
|
-
}, restProps), /* @__PURE__ */ React
|
|
30506
|
+
}, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
|
|
30589
30507
|
value: swiperRef.current
|
|
30590
|
-
}, slots["container-start"], /* @__PURE__ */ React
|
|
30508
|
+
}, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
|
|
30591
30509
|
className: wrapperClass(swiperParams.wrapperClass)
|
|
30592
|
-
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React
|
|
30510
|
+
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
30593
30511
|
ref: prevElRef,
|
|
30594
30512
|
className: "swiper-button-prev"
|
|
30595
|
-
}), /* @__PURE__ */ React
|
|
30513
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
30596
30514
|
ref: nextElRef,
|
|
30597
30515
|
className: "swiper-button-next"
|
|
30598
|
-
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React
|
|
30516
|
+
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30599
30517
|
ref: scrollbarElRef,
|
|
30600
30518
|
className: "swiper-scrollbar"
|
|
30601
|
-
}), needsPagination(swiperParams) && /* @__PURE__ */ React
|
|
30519
|
+
}), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30602
30520
|
ref: paginationElRef,
|
|
30603
30521
|
className: "swiper-pagination"
|
|
30604
30522
|
}), slots["container-end"]));
|
|
@@ -30664,2329 +30582,25 @@ const SwiperSlide = /* @__PURE__ */ reactExports.forwardRef(function(_temp, exte
|
|
|
30664
30582
|
const onLoad2 = () => {
|
|
30665
30583
|
setLazyLoaded(true);
|
|
30666
30584
|
};
|
|
30667
|
-
return /* @__PURE__ */ React
|
|
30585
|
+
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30668
30586
|
ref: slideElRef,
|
|
30669
30587
|
className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
|
|
30670
30588
|
"data-swiper-slide-index": virtualIndex,
|
|
30671
30589
|
onLoad: onLoad2
|
|
30672
|
-
}, rest), zoom && /* @__PURE__ */ React
|
|
30590
|
+
}, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30673
30591
|
value: slideData
|
|
30674
|
-
}, /* @__PURE__ */ React
|
|
30592
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
30675
30593
|
className: "swiper-zoom-container",
|
|
30676
30594
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
30677
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React
|
|
30595
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30678
30596
|
className: "swiper-lazy-preloader"
|
|
30679
|
-
}))), !zoom && /* @__PURE__ */ React
|
|
30597
|
+
}))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30680
30598
|
value: slideData
|
|
30681
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React
|
|
30599
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30682
30600
|
className: "swiper-lazy-preloader"
|
|
30683
30601
|
})));
|
|
30684
30602
|
});
|
|
30685
30603
|
SwiperSlide.displayName = "SwiperSlide";
|
|
30686
|
-
var lib$3 = {};
|
|
30687
|
-
var lib$2 = {};
|
|
30688
|
-
(function(exports) {
|
|
30689
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30690
|
-
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
|
|
30691
|
-
var ElementType;
|
|
30692
|
-
(function(ElementType2) {
|
|
30693
|
-
ElementType2["Root"] = "root";
|
|
30694
|
-
ElementType2["Text"] = "text";
|
|
30695
|
-
ElementType2["Directive"] = "directive";
|
|
30696
|
-
ElementType2["Comment"] = "comment";
|
|
30697
|
-
ElementType2["Script"] = "script";
|
|
30698
|
-
ElementType2["Style"] = "style";
|
|
30699
|
-
ElementType2["Tag"] = "tag";
|
|
30700
|
-
ElementType2["CDATA"] = "cdata";
|
|
30701
|
-
ElementType2["Doctype"] = "doctype";
|
|
30702
|
-
})(ElementType = exports.ElementType || (exports.ElementType = {}));
|
|
30703
|
-
function isTag2(elem) {
|
|
30704
|
-
return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
|
|
30705
|
-
}
|
|
30706
|
-
exports.isTag = isTag2;
|
|
30707
|
-
exports.Root = ElementType.Root;
|
|
30708
|
-
exports.Text = ElementType.Text;
|
|
30709
|
-
exports.Directive = ElementType.Directive;
|
|
30710
|
-
exports.Comment = ElementType.Comment;
|
|
30711
|
-
exports.Script = ElementType.Script;
|
|
30712
|
-
exports.Style = ElementType.Style;
|
|
30713
|
-
exports.Tag = ElementType.Tag;
|
|
30714
|
-
exports.CDATA = ElementType.CDATA;
|
|
30715
|
-
exports.Doctype = ElementType.Doctype;
|
|
30716
|
-
})(lib$2);
|
|
30717
|
-
var node = {};
|
|
30718
|
-
var __extends = commonjsGlobal$1 && commonjsGlobal$1.__extends || /* @__PURE__ */ function() {
|
|
30719
|
-
var extendStatics = function(d2, b2) {
|
|
30720
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
30721
|
-
d3.__proto__ = b3;
|
|
30722
|
-
} || function(d3, b3) {
|
|
30723
|
-
for (var p2 in b3)
|
|
30724
|
-
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
30725
|
-
d3[p2] = b3[p2];
|
|
30726
|
-
};
|
|
30727
|
-
return extendStatics(d2, b2);
|
|
30728
|
-
};
|
|
30729
|
-
return function(d2, b2) {
|
|
30730
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
30731
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
30732
|
-
extendStatics(d2, b2);
|
|
30733
|
-
function __() {
|
|
30734
|
-
this.constructor = d2;
|
|
30735
|
-
}
|
|
30736
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
30737
|
-
};
|
|
30738
|
-
}();
|
|
30739
|
-
var __assign = commonjsGlobal$1 && commonjsGlobal$1.__assign || function() {
|
|
30740
|
-
__assign = Object.assign || function(t2) {
|
|
30741
|
-
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
30742
|
-
s2 = arguments[i2];
|
|
30743
|
-
for (var p2 in s2)
|
|
30744
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
30745
|
-
t2[p2] = s2[p2];
|
|
30746
|
-
}
|
|
30747
|
-
return t2;
|
|
30748
|
-
};
|
|
30749
|
-
return __assign.apply(this, arguments);
|
|
30750
|
-
};
|
|
30751
|
-
Object.defineProperty(node, "__esModule", { value: true });
|
|
30752
|
-
node.cloneNode = node.hasChildren = node.isDocument = node.isDirective = node.isComment = node.isText = node.isCDATA = node.isTag = node.Element = node.Document = node.CDATA = node.NodeWithChildren = node.ProcessingInstruction = node.Comment = node.Text = node.DataNode = node.Node = void 0;
|
|
30753
|
-
var domelementtype_1 = lib$2;
|
|
30754
|
-
var Node$2 = (
|
|
30755
|
-
/** @class */
|
|
30756
|
-
function() {
|
|
30757
|
-
function Node2() {
|
|
30758
|
-
this.parent = null;
|
|
30759
|
-
this.prev = null;
|
|
30760
|
-
this.next = null;
|
|
30761
|
-
this.startIndex = null;
|
|
30762
|
-
this.endIndex = null;
|
|
30763
|
-
}
|
|
30764
|
-
Object.defineProperty(Node2.prototype, "parentNode", {
|
|
30765
|
-
// Read-write aliases for properties
|
|
30766
|
-
/**
|
|
30767
|
-
* Same as {@link parent}.
|
|
30768
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30769
|
-
*/
|
|
30770
|
-
get: function() {
|
|
30771
|
-
return this.parent;
|
|
30772
|
-
},
|
|
30773
|
-
set: function(parent) {
|
|
30774
|
-
this.parent = parent;
|
|
30775
|
-
},
|
|
30776
|
-
enumerable: false,
|
|
30777
|
-
configurable: true
|
|
30778
|
-
});
|
|
30779
|
-
Object.defineProperty(Node2.prototype, "previousSibling", {
|
|
30780
|
-
/**
|
|
30781
|
-
* Same as {@link prev}.
|
|
30782
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30783
|
-
*/
|
|
30784
|
-
get: function() {
|
|
30785
|
-
return this.prev;
|
|
30786
|
-
},
|
|
30787
|
-
set: function(prev) {
|
|
30788
|
-
this.prev = prev;
|
|
30789
|
-
},
|
|
30790
|
-
enumerable: false,
|
|
30791
|
-
configurable: true
|
|
30792
|
-
});
|
|
30793
|
-
Object.defineProperty(Node2.prototype, "nextSibling", {
|
|
30794
|
-
/**
|
|
30795
|
-
* Same as {@link next}.
|
|
30796
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30797
|
-
*/
|
|
30798
|
-
get: function() {
|
|
30799
|
-
return this.next;
|
|
30800
|
-
},
|
|
30801
|
-
set: function(next) {
|
|
30802
|
-
this.next = next;
|
|
30803
|
-
},
|
|
30804
|
-
enumerable: false,
|
|
30805
|
-
configurable: true
|
|
30806
|
-
});
|
|
30807
|
-
Node2.prototype.cloneNode = function(recursive) {
|
|
30808
|
-
if (recursive === void 0) {
|
|
30809
|
-
recursive = false;
|
|
30810
|
-
}
|
|
30811
|
-
return cloneNode(this, recursive);
|
|
30812
|
-
};
|
|
30813
|
-
return Node2;
|
|
30814
|
-
}()
|
|
30815
|
-
);
|
|
30816
|
-
node.Node = Node$2;
|
|
30817
|
-
var DataNode = (
|
|
30818
|
-
/** @class */
|
|
30819
|
-
function(_super) {
|
|
30820
|
-
__extends(DataNode2, _super);
|
|
30821
|
-
function DataNode2(data) {
|
|
30822
|
-
var _this = _super.call(this) || this;
|
|
30823
|
-
_this.data = data;
|
|
30824
|
-
return _this;
|
|
30825
|
-
}
|
|
30826
|
-
Object.defineProperty(DataNode2.prototype, "nodeValue", {
|
|
30827
|
-
/**
|
|
30828
|
-
* Same as {@link data}.
|
|
30829
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30830
|
-
*/
|
|
30831
|
-
get: function() {
|
|
30832
|
-
return this.data;
|
|
30833
|
-
},
|
|
30834
|
-
set: function(data) {
|
|
30835
|
-
this.data = data;
|
|
30836
|
-
},
|
|
30837
|
-
enumerable: false,
|
|
30838
|
-
configurable: true
|
|
30839
|
-
});
|
|
30840
|
-
return DataNode2;
|
|
30841
|
-
}(Node$2)
|
|
30842
|
-
);
|
|
30843
|
-
node.DataNode = DataNode;
|
|
30844
|
-
var Text$2 = (
|
|
30845
|
-
/** @class */
|
|
30846
|
-
function(_super) {
|
|
30847
|
-
__extends(Text2, _super);
|
|
30848
|
-
function Text2() {
|
|
30849
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30850
|
-
_this.type = domelementtype_1.ElementType.Text;
|
|
30851
|
-
return _this;
|
|
30852
|
-
}
|
|
30853
|
-
Object.defineProperty(Text2.prototype, "nodeType", {
|
|
30854
|
-
get: function() {
|
|
30855
|
-
return 3;
|
|
30856
|
-
},
|
|
30857
|
-
enumerable: false,
|
|
30858
|
-
configurable: true
|
|
30859
|
-
});
|
|
30860
|
-
return Text2;
|
|
30861
|
-
}(DataNode)
|
|
30862
|
-
);
|
|
30863
|
-
node.Text = Text$2;
|
|
30864
|
-
var Comment$1 = (
|
|
30865
|
-
/** @class */
|
|
30866
|
-
function(_super) {
|
|
30867
|
-
__extends(Comment2, _super);
|
|
30868
|
-
function Comment2() {
|
|
30869
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30870
|
-
_this.type = domelementtype_1.ElementType.Comment;
|
|
30871
|
-
return _this;
|
|
30872
|
-
}
|
|
30873
|
-
Object.defineProperty(Comment2.prototype, "nodeType", {
|
|
30874
|
-
get: function() {
|
|
30875
|
-
return 8;
|
|
30876
|
-
},
|
|
30877
|
-
enumerable: false,
|
|
30878
|
-
configurable: true
|
|
30879
|
-
});
|
|
30880
|
-
return Comment2;
|
|
30881
|
-
}(DataNode)
|
|
30882
|
-
);
|
|
30883
|
-
node.Comment = Comment$1;
|
|
30884
|
-
var ProcessingInstruction$1 = (
|
|
30885
|
-
/** @class */
|
|
30886
|
-
function(_super) {
|
|
30887
|
-
__extends(ProcessingInstruction2, _super);
|
|
30888
|
-
function ProcessingInstruction2(name, data) {
|
|
30889
|
-
var _this = _super.call(this, data) || this;
|
|
30890
|
-
_this.name = name;
|
|
30891
|
-
_this.type = domelementtype_1.ElementType.Directive;
|
|
30892
|
-
return _this;
|
|
30893
|
-
}
|
|
30894
|
-
Object.defineProperty(ProcessingInstruction2.prototype, "nodeType", {
|
|
30895
|
-
get: function() {
|
|
30896
|
-
return 1;
|
|
30897
|
-
},
|
|
30898
|
-
enumerable: false,
|
|
30899
|
-
configurable: true
|
|
30900
|
-
});
|
|
30901
|
-
return ProcessingInstruction2;
|
|
30902
|
-
}(DataNode)
|
|
30903
|
-
);
|
|
30904
|
-
node.ProcessingInstruction = ProcessingInstruction$1;
|
|
30905
|
-
var NodeWithChildren = (
|
|
30906
|
-
/** @class */
|
|
30907
|
-
function(_super) {
|
|
30908
|
-
__extends(NodeWithChildren2, _super);
|
|
30909
|
-
function NodeWithChildren2(children) {
|
|
30910
|
-
var _this = _super.call(this) || this;
|
|
30911
|
-
_this.children = children;
|
|
30912
|
-
return _this;
|
|
30913
|
-
}
|
|
30914
|
-
Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
|
|
30915
|
-
// Aliases
|
|
30916
|
-
/** First child of the node. */
|
|
30917
|
-
get: function() {
|
|
30918
|
-
var _a2;
|
|
30919
|
-
return (_a2 = this.children[0]) !== null && _a2 !== void 0 ? _a2 : null;
|
|
30920
|
-
},
|
|
30921
|
-
enumerable: false,
|
|
30922
|
-
configurable: true
|
|
30923
|
-
});
|
|
30924
|
-
Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
|
|
30925
|
-
/** Last child of the node. */
|
|
30926
|
-
get: function() {
|
|
30927
|
-
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
30928
|
-
},
|
|
30929
|
-
enumerable: false,
|
|
30930
|
-
configurable: true
|
|
30931
|
-
});
|
|
30932
|
-
Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
|
|
30933
|
-
/**
|
|
30934
|
-
* Same as {@link children}.
|
|
30935
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30936
|
-
*/
|
|
30937
|
-
get: function() {
|
|
30938
|
-
return this.children;
|
|
30939
|
-
},
|
|
30940
|
-
set: function(children) {
|
|
30941
|
-
this.children = children;
|
|
30942
|
-
},
|
|
30943
|
-
enumerable: false,
|
|
30944
|
-
configurable: true
|
|
30945
|
-
});
|
|
30946
|
-
return NodeWithChildren2;
|
|
30947
|
-
}(Node$2)
|
|
30948
|
-
);
|
|
30949
|
-
node.NodeWithChildren = NodeWithChildren;
|
|
30950
|
-
var CDATA = (
|
|
30951
|
-
/** @class */
|
|
30952
|
-
function(_super) {
|
|
30953
|
-
__extends(CDATA2, _super);
|
|
30954
|
-
function CDATA2() {
|
|
30955
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30956
|
-
_this.type = domelementtype_1.ElementType.CDATA;
|
|
30957
|
-
return _this;
|
|
30958
|
-
}
|
|
30959
|
-
Object.defineProperty(CDATA2.prototype, "nodeType", {
|
|
30960
|
-
get: function() {
|
|
30961
|
-
return 4;
|
|
30962
|
-
},
|
|
30963
|
-
enumerable: false,
|
|
30964
|
-
configurable: true
|
|
30965
|
-
});
|
|
30966
|
-
return CDATA2;
|
|
30967
|
-
}(NodeWithChildren)
|
|
30968
|
-
);
|
|
30969
|
-
node.CDATA = CDATA;
|
|
30970
|
-
var Document = (
|
|
30971
|
-
/** @class */
|
|
30972
|
-
function(_super) {
|
|
30973
|
-
__extends(Document2, _super);
|
|
30974
|
-
function Document2() {
|
|
30975
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30976
|
-
_this.type = domelementtype_1.ElementType.Root;
|
|
30977
|
-
return _this;
|
|
30978
|
-
}
|
|
30979
|
-
Object.defineProperty(Document2.prototype, "nodeType", {
|
|
30980
|
-
get: function() {
|
|
30981
|
-
return 9;
|
|
30982
|
-
},
|
|
30983
|
-
enumerable: false,
|
|
30984
|
-
configurable: true
|
|
30985
|
-
});
|
|
30986
|
-
return Document2;
|
|
30987
|
-
}(NodeWithChildren)
|
|
30988
|
-
);
|
|
30989
|
-
node.Document = Document;
|
|
30990
|
-
var Element$2 = (
|
|
30991
|
-
/** @class */
|
|
30992
|
-
function(_super) {
|
|
30993
|
-
__extends(Element2, _super);
|
|
30994
|
-
function Element2(name, attribs, children, type2) {
|
|
30995
|
-
if (children === void 0) {
|
|
30996
|
-
children = [];
|
|
30997
|
-
}
|
|
30998
|
-
if (type2 === void 0) {
|
|
30999
|
-
type2 = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
|
|
31000
|
-
}
|
|
31001
|
-
var _this = _super.call(this, children) || this;
|
|
31002
|
-
_this.name = name;
|
|
31003
|
-
_this.attribs = attribs;
|
|
31004
|
-
_this.type = type2;
|
|
31005
|
-
return _this;
|
|
31006
|
-
}
|
|
31007
|
-
Object.defineProperty(Element2.prototype, "nodeType", {
|
|
31008
|
-
get: function() {
|
|
31009
|
-
return 1;
|
|
31010
|
-
},
|
|
31011
|
-
enumerable: false,
|
|
31012
|
-
configurable: true
|
|
31013
|
-
});
|
|
31014
|
-
Object.defineProperty(Element2.prototype, "tagName", {
|
|
31015
|
-
// DOM Level 1 aliases
|
|
31016
|
-
/**
|
|
31017
|
-
* Same as {@link name}.
|
|
31018
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
31019
|
-
*/
|
|
31020
|
-
get: function() {
|
|
31021
|
-
return this.name;
|
|
31022
|
-
},
|
|
31023
|
-
set: function(name) {
|
|
31024
|
-
this.name = name;
|
|
31025
|
-
},
|
|
31026
|
-
enumerable: false,
|
|
31027
|
-
configurable: true
|
|
31028
|
-
});
|
|
31029
|
-
Object.defineProperty(Element2.prototype, "attributes", {
|
|
31030
|
-
get: function() {
|
|
31031
|
-
var _this = this;
|
|
31032
|
-
return Object.keys(this.attribs).map(function(name) {
|
|
31033
|
-
var _a2, _b2;
|
|
31034
|
-
return {
|
|
31035
|
-
name,
|
|
31036
|
-
value: _this.attribs[name],
|
|
31037
|
-
namespace: (_a2 = _this["x-attribsNamespace"]) === null || _a2 === void 0 ? void 0 : _a2[name],
|
|
31038
|
-
prefix: (_b2 = _this["x-attribsPrefix"]) === null || _b2 === void 0 ? void 0 : _b2[name]
|
|
31039
|
-
};
|
|
31040
|
-
});
|
|
31041
|
-
},
|
|
31042
|
-
enumerable: false,
|
|
31043
|
-
configurable: true
|
|
31044
|
-
});
|
|
31045
|
-
return Element2;
|
|
31046
|
-
}(NodeWithChildren)
|
|
31047
|
-
);
|
|
31048
|
-
node.Element = Element$2;
|
|
31049
|
-
function isTag(node2) {
|
|
31050
|
-
return (0, domelementtype_1.isTag)(node2);
|
|
31051
|
-
}
|
|
31052
|
-
node.isTag = isTag;
|
|
31053
|
-
function isCDATA(node2) {
|
|
31054
|
-
return node2.type === domelementtype_1.ElementType.CDATA;
|
|
31055
|
-
}
|
|
31056
|
-
node.isCDATA = isCDATA;
|
|
31057
|
-
function isText(node2) {
|
|
31058
|
-
return node2.type === domelementtype_1.ElementType.Text;
|
|
31059
|
-
}
|
|
31060
|
-
node.isText = isText;
|
|
31061
|
-
function isComment(node2) {
|
|
31062
|
-
return node2.type === domelementtype_1.ElementType.Comment;
|
|
31063
|
-
}
|
|
31064
|
-
node.isComment = isComment;
|
|
31065
|
-
function isDirective(node2) {
|
|
31066
|
-
return node2.type === domelementtype_1.ElementType.Directive;
|
|
31067
|
-
}
|
|
31068
|
-
node.isDirective = isDirective;
|
|
31069
|
-
function isDocument(node2) {
|
|
31070
|
-
return node2.type === domelementtype_1.ElementType.Root;
|
|
31071
|
-
}
|
|
31072
|
-
node.isDocument = isDocument;
|
|
31073
|
-
function hasChildren$1(node2) {
|
|
31074
|
-
return Object.prototype.hasOwnProperty.call(node2, "children");
|
|
31075
|
-
}
|
|
31076
|
-
node.hasChildren = hasChildren$1;
|
|
31077
|
-
function cloneNode(node2, recursive) {
|
|
31078
|
-
if (recursive === void 0) {
|
|
31079
|
-
recursive = false;
|
|
31080
|
-
}
|
|
31081
|
-
var result;
|
|
31082
|
-
if (isText(node2)) {
|
|
31083
|
-
result = new Text$2(node2.data);
|
|
31084
|
-
} else if (isComment(node2)) {
|
|
31085
|
-
result = new Comment$1(node2.data);
|
|
31086
|
-
} else if (isTag(node2)) {
|
|
31087
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31088
|
-
var clone_1 = new Element$2(node2.name, __assign({}, node2.attribs), children);
|
|
31089
|
-
children.forEach(function(child) {
|
|
31090
|
-
return child.parent = clone_1;
|
|
31091
|
-
});
|
|
31092
|
-
if (node2.namespace != null) {
|
|
31093
|
-
clone_1.namespace = node2.namespace;
|
|
31094
|
-
}
|
|
31095
|
-
if (node2["x-attribsNamespace"]) {
|
|
31096
|
-
clone_1["x-attribsNamespace"] = __assign({}, node2["x-attribsNamespace"]);
|
|
31097
|
-
}
|
|
31098
|
-
if (node2["x-attribsPrefix"]) {
|
|
31099
|
-
clone_1["x-attribsPrefix"] = __assign({}, node2["x-attribsPrefix"]);
|
|
31100
|
-
}
|
|
31101
|
-
result = clone_1;
|
|
31102
|
-
} else if (isCDATA(node2)) {
|
|
31103
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31104
|
-
var clone_2 = new CDATA(children);
|
|
31105
|
-
children.forEach(function(child) {
|
|
31106
|
-
return child.parent = clone_2;
|
|
31107
|
-
});
|
|
31108
|
-
result = clone_2;
|
|
31109
|
-
} else if (isDocument(node2)) {
|
|
31110
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31111
|
-
var clone_3 = new Document(children);
|
|
31112
|
-
children.forEach(function(child) {
|
|
31113
|
-
return child.parent = clone_3;
|
|
31114
|
-
});
|
|
31115
|
-
if (node2["x-mode"]) {
|
|
31116
|
-
clone_3["x-mode"] = node2["x-mode"];
|
|
31117
|
-
}
|
|
31118
|
-
result = clone_3;
|
|
31119
|
-
} else if (isDirective(node2)) {
|
|
31120
|
-
var instruction = new ProcessingInstruction$1(node2.name, node2.data);
|
|
31121
|
-
if (node2["x-name"] != null) {
|
|
31122
|
-
instruction["x-name"] = node2["x-name"];
|
|
31123
|
-
instruction["x-publicId"] = node2["x-publicId"];
|
|
31124
|
-
instruction["x-systemId"] = node2["x-systemId"];
|
|
31125
|
-
}
|
|
31126
|
-
result = instruction;
|
|
31127
|
-
} else {
|
|
31128
|
-
throw new Error("Not implemented yet: ".concat(node2.type));
|
|
31129
|
-
}
|
|
31130
|
-
result.startIndex = node2.startIndex;
|
|
31131
|
-
result.endIndex = node2.endIndex;
|
|
31132
|
-
if (node2.sourceCodeLocation != null) {
|
|
31133
|
-
result.sourceCodeLocation = node2.sourceCodeLocation;
|
|
31134
|
-
}
|
|
31135
|
-
return result;
|
|
31136
|
-
}
|
|
31137
|
-
node.cloneNode = cloneNode;
|
|
31138
|
-
function cloneChildren(childs) {
|
|
31139
|
-
var children = childs.map(function(child) {
|
|
31140
|
-
return cloneNode(child, true);
|
|
31141
|
-
});
|
|
31142
|
-
for (var i2 = 1; i2 < children.length; i2++) {
|
|
31143
|
-
children[i2].prev = children[i2 - 1];
|
|
31144
|
-
children[i2 - 1].next = children[i2];
|
|
31145
|
-
}
|
|
31146
|
-
return children;
|
|
31147
|
-
}
|
|
31148
|
-
(function(exports) {
|
|
31149
|
-
var __createBinding = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
31150
|
-
if (k22 === void 0)
|
|
31151
|
-
k22 = k2;
|
|
31152
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
31153
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
31154
|
-
desc = { enumerable: true, get: function() {
|
|
31155
|
-
return m2[k2];
|
|
31156
|
-
} };
|
|
31157
|
-
}
|
|
31158
|
-
Object.defineProperty(o2, k22, desc);
|
|
31159
|
-
} : function(o2, m2, k2, k22) {
|
|
31160
|
-
if (k22 === void 0)
|
|
31161
|
-
k22 = k2;
|
|
31162
|
-
o2[k22] = m2[k2];
|
|
31163
|
-
});
|
|
31164
|
-
var __exportStar = commonjsGlobal$1 && commonjsGlobal$1.__exportStar || function(m2, exports2) {
|
|
31165
|
-
for (var p2 in m2)
|
|
31166
|
-
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
|
|
31167
|
-
__createBinding(exports2, m2, p2);
|
|
31168
|
-
};
|
|
31169
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31170
|
-
exports.DomHandler = void 0;
|
|
31171
|
-
var domelementtype_12 = lib$2;
|
|
31172
|
-
var node_js_1 = node;
|
|
31173
|
-
__exportStar(node, exports);
|
|
31174
|
-
var defaultOpts = {
|
|
31175
|
-
withStartIndices: false,
|
|
31176
|
-
withEndIndices: false,
|
|
31177
|
-
xmlMode: false
|
|
31178
|
-
};
|
|
31179
|
-
var DomHandler = (
|
|
31180
|
-
/** @class */
|
|
31181
|
-
function() {
|
|
31182
|
-
function DomHandler2(callback, options, elementCB) {
|
|
31183
|
-
this.dom = [];
|
|
31184
|
-
this.root = new node_js_1.Document(this.dom);
|
|
31185
|
-
this.done = false;
|
|
31186
|
-
this.tagStack = [this.root];
|
|
31187
|
-
this.lastNode = null;
|
|
31188
|
-
this.parser = null;
|
|
31189
|
-
if (typeof options === "function") {
|
|
31190
|
-
elementCB = options;
|
|
31191
|
-
options = defaultOpts;
|
|
31192
|
-
}
|
|
31193
|
-
if (typeof callback === "object") {
|
|
31194
|
-
options = callback;
|
|
31195
|
-
callback = void 0;
|
|
31196
|
-
}
|
|
31197
|
-
this.callback = callback !== null && callback !== void 0 ? callback : null;
|
|
31198
|
-
this.options = options !== null && options !== void 0 ? options : defaultOpts;
|
|
31199
|
-
this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
|
|
31200
|
-
}
|
|
31201
|
-
DomHandler2.prototype.onparserinit = function(parser) {
|
|
31202
|
-
this.parser = parser;
|
|
31203
|
-
};
|
|
31204
|
-
DomHandler2.prototype.onreset = function() {
|
|
31205
|
-
this.dom = [];
|
|
31206
|
-
this.root = new node_js_1.Document(this.dom);
|
|
31207
|
-
this.done = false;
|
|
31208
|
-
this.tagStack = [this.root];
|
|
31209
|
-
this.lastNode = null;
|
|
31210
|
-
this.parser = null;
|
|
31211
|
-
};
|
|
31212
|
-
DomHandler2.prototype.onend = function() {
|
|
31213
|
-
if (this.done)
|
|
31214
|
-
return;
|
|
31215
|
-
this.done = true;
|
|
31216
|
-
this.parser = null;
|
|
31217
|
-
this.handleCallback(null);
|
|
31218
|
-
};
|
|
31219
|
-
DomHandler2.prototype.onerror = function(error) {
|
|
31220
|
-
this.handleCallback(error);
|
|
31221
|
-
};
|
|
31222
|
-
DomHandler2.prototype.onclosetag = function() {
|
|
31223
|
-
this.lastNode = null;
|
|
31224
|
-
var elem = this.tagStack.pop();
|
|
31225
|
-
if (this.options.withEndIndices) {
|
|
31226
|
-
elem.endIndex = this.parser.endIndex;
|
|
31227
|
-
}
|
|
31228
|
-
if (this.elementCB)
|
|
31229
|
-
this.elementCB(elem);
|
|
31230
|
-
};
|
|
31231
|
-
DomHandler2.prototype.onopentag = function(name, attribs) {
|
|
31232
|
-
var type2 = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
|
|
31233
|
-
var element = new node_js_1.Element(name, attribs, void 0, type2);
|
|
31234
|
-
this.addNode(element);
|
|
31235
|
-
this.tagStack.push(element);
|
|
31236
|
-
};
|
|
31237
|
-
DomHandler2.prototype.ontext = function(data) {
|
|
31238
|
-
var lastNode = this.lastNode;
|
|
31239
|
-
if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
|
|
31240
|
-
lastNode.data += data;
|
|
31241
|
-
if (this.options.withEndIndices) {
|
|
31242
|
-
lastNode.endIndex = this.parser.endIndex;
|
|
31243
|
-
}
|
|
31244
|
-
} else {
|
|
31245
|
-
var node2 = new node_js_1.Text(data);
|
|
31246
|
-
this.addNode(node2);
|
|
31247
|
-
this.lastNode = node2;
|
|
31248
|
-
}
|
|
31249
|
-
};
|
|
31250
|
-
DomHandler2.prototype.oncomment = function(data) {
|
|
31251
|
-
if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
|
|
31252
|
-
this.lastNode.data += data;
|
|
31253
|
-
return;
|
|
31254
|
-
}
|
|
31255
|
-
var node2 = new node_js_1.Comment(data);
|
|
31256
|
-
this.addNode(node2);
|
|
31257
|
-
this.lastNode = node2;
|
|
31258
|
-
};
|
|
31259
|
-
DomHandler2.prototype.oncommentend = function() {
|
|
31260
|
-
this.lastNode = null;
|
|
31261
|
-
};
|
|
31262
|
-
DomHandler2.prototype.oncdatastart = function() {
|
|
31263
|
-
var text = new node_js_1.Text("");
|
|
31264
|
-
var node2 = new node_js_1.CDATA([text]);
|
|
31265
|
-
this.addNode(node2);
|
|
31266
|
-
text.parent = node2;
|
|
31267
|
-
this.lastNode = text;
|
|
31268
|
-
};
|
|
31269
|
-
DomHandler2.prototype.oncdataend = function() {
|
|
31270
|
-
this.lastNode = null;
|
|
31271
|
-
};
|
|
31272
|
-
DomHandler2.prototype.onprocessinginstruction = function(name, data) {
|
|
31273
|
-
var node2 = new node_js_1.ProcessingInstruction(name, data);
|
|
31274
|
-
this.addNode(node2);
|
|
31275
|
-
};
|
|
31276
|
-
DomHandler2.prototype.handleCallback = function(error) {
|
|
31277
|
-
if (typeof this.callback === "function") {
|
|
31278
|
-
this.callback(error, this.dom);
|
|
31279
|
-
} else if (error) {
|
|
31280
|
-
throw error;
|
|
31281
|
-
}
|
|
31282
|
-
};
|
|
31283
|
-
DomHandler2.prototype.addNode = function(node2) {
|
|
31284
|
-
var parent = this.tagStack[this.tagStack.length - 1];
|
|
31285
|
-
var previousSibling = parent.children[parent.children.length - 1];
|
|
31286
|
-
if (this.options.withStartIndices) {
|
|
31287
|
-
node2.startIndex = this.parser.startIndex;
|
|
31288
|
-
}
|
|
31289
|
-
if (this.options.withEndIndices) {
|
|
31290
|
-
node2.endIndex = this.parser.endIndex;
|
|
31291
|
-
}
|
|
31292
|
-
parent.children.push(node2);
|
|
31293
|
-
if (previousSibling) {
|
|
31294
|
-
node2.prev = previousSibling;
|
|
31295
|
-
previousSibling.next = node2;
|
|
31296
|
-
}
|
|
31297
|
-
node2.parent = parent;
|
|
31298
|
-
this.lastNode = null;
|
|
31299
|
-
};
|
|
31300
|
-
return DomHandler2;
|
|
31301
|
-
}()
|
|
31302
|
-
);
|
|
31303
|
-
exports.DomHandler = DomHandler;
|
|
31304
|
-
exports.default = DomHandler;
|
|
31305
|
-
})(lib$3);
|
|
31306
|
-
var HTML = "html";
|
|
31307
|
-
var HEAD$1 = "head";
|
|
31308
|
-
var BODY = "body";
|
|
31309
|
-
var FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/;
|
|
31310
|
-
var HEAD_TAG_REGEX = /<head[^]*>/i;
|
|
31311
|
-
var BODY_TAG_REGEX = /<body[^]*>/i;
|
|
31312
|
-
var parseFromDocument = function() {
|
|
31313
|
-
throw new Error(
|
|
31314
|
-
"This browser does not support `document.implementation.createHTMLDocument`"
|
|
31315
|
-
);
|
|
31316
|
-
};
|
|
31317
|
-
var parseFromString = function() {
|
|
31318
|
-
throw new Error(
|
|
31319
|
-
"This browser does not support `DOMParser.prototype.parseFromString`"
|
|
31320
|
-
);
|
|
31321
|
-
};
|
|
31322
|
-
var DOMParser$1 = typeof window === "object" && window.DOMParser;
|
|
31323
|
-
if (typeof DOMParser$1 === "function") {
|
|
31324
|
-
var domParser = new DOMParser$1();
|
|
31325
|
-
var mimeType = "text/html";
|
|
31326
|
-
parseFromString = function(html, tagName2) {
|
|
31327
|
-
if (tagName2) {
|
|
31328
|
-
html = "<" + tagName2 + ">" + html + "</" + tagName2 + ">";
|
|
31329
|
-
}
|
|
31330
|
-
return domParser.parseFromString(html, mimeType);
|
|
31331
|
-
};
|
|
31332
|
-
parseFromDocument = parseFromString;
|
|
31333
|
-
}
|
|
31334
|
-
if (typeof document === "object" && document.implementation) {
|
|
31335
|
-
var doc = document.implementation.createHTMLDocument();
|
|
31336
|
-
parseFromDocument = function(html, tagName2) {
|
|
31337
|
-
if (tagName2) {
|
|
31338
|
-
var element = doc.documentElement.querySelector(tagName2);
|
|
31339
|
-
element.innerHTML = html;
|
|
31340
|
-
return doc;
|
|
31341
|
-
}
|
|
31342
|
-
doc.documentElement.innerHTML = html;
|
|
31343
|
-
return doc;
|
|
31344
|
-
};
|
|
31345
|
-
}
|
|
31346
|
-
var template = typeof document === "object" ? document.createElement("template") : {};
|
|
31347
|
-
var parseFromTemplate;
|
|
31348
|
-
if (template.content) {
|
|
31349
|
-
parseFromTemplate = function(html) {
|
|
31350
|
-
template.innerHTML = html;
|
|
31351
|
-
return template.content.childNodes;
|
|
31352
|
-
};
|
|
31353
|
-
}
|
|
31354
|
-
function domparser$1(html) {
|
|
31355
|
-
var firstTagName;
|
|
31356
|
-
var match = html.match(FIRST_TAG_REGEX);
|
|
31357
|
-
if (match && match[1]) {
|
|
31358
|
-
firstTagName = match[1].toLowerCase();
|
|
31359
|
-
}
|
|
31360
|
-
var doc;
|
|
31361
|
-
var element;
|
|
31362
|
-
var elements;
|
|
31363
|
-
switch (firstTagName) {
|
|
31364
|
-
case HTML:
|
|
31365
|
-
doc = parseFromString(html);
|
|
31366
|
-
if (!HEAD_TAG_REGEX.test(html)) {
|
|
31367
|
-
element = doc.querySelector(HEAD$1);
|
|
31368
|
-
if (element) {
|
|
31369
|
-
element.parentNode.removeChild(element);
|
|
31370
|
-
}
|
|
31371
|
-
}
|
|
31372
|
-
if (!BODY_TAG_REGEX.test(html)) {
|
|
31373
|
-
element = doc.querySelector(BODY);
|
|
31374
|
-
if (element) {
|
|
31375
|
-
element.parentNode.removeChild(element);
|
|
31376
|
-
}
|
|
31377
|
-
}
|
|
31378
|
-
return doc.querySelectorAll(HTML);
|
|
31379
|
-
case HEAD$1:
|
|
31380
|
-
case BODY:
|
|
31381
|
-
doc = parseFromDocument(html);
|
|
31382
|
-
elements = doc.querySelectorAll(firstTagName);
|
|
31383
|
-
if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {
|
|
31384
|
-
return elements[0].parentNode.childNodes;
|
|
31385
|
-
}
|
|
31386
|
-
return elements;
|
|
31387
|
-
default:
|
|
31388
|
-
if (parseFromTemplate) {
|
|
31389
|
-
return parseFromTemplate(html);
|
|
31390
|
-
}
|
|
31391
|
-
element = parseFromDocument(html, BODY).querySelector(BODY);
|
|
31392
|
-
return element.childNodes;
|
|
31393
|
-
}
|
|
31394
|
-
}
|
|
31395
|
-
var domparser_1 = domparser$1;
|
|
31396
|
-
var utilities$5 = {};
|
|
31397
|
-
var constants$1 = {};
|
|
31398
|
-
constants$1.CASE_SENSITIVE_TAG_NAMES = [
|
|
31399
|
-
"animateMotion",
|
|
31400
|
-
"animateTransform",
|
|
31401
|
-
"clipPath",
|
|
31402
|
-
"feBlend",
|
|
31403
|
-
"feColorMatrix",
|
|
31404
|
-
"feComponentTransfer",
|
|
31405
|
-
"feComposite",
|
|
31406
|
-
"feConvolveMatrix",
|
|
31407
|
-
"feDiffuseLighting",
|
|
31408
|
-
"feDisplacementMap",
|
|
31409
|
-
"feDropShadow",
|
|
31410
|
-
"feFlood",
|
|
31411
|
-
"feFuncA",
|
|
31412
|
-
"feFuncB",
|
|
31413
|
-
"feFuncG",
|
|
31414
|
-
"feFuncR",
|
|
31415
|
-
"feGaussianBlur",
|
|
31416
|
-
"feImage",
|
|
31417
|
-
"feMerge",
|
|
31418
|
-
"feMergeNode",
|
|
31419
|
-
"feMorphology",
|
|
31420
|
-
"feOffset",
|
|
31421
|
-
"fePointLight",
|
|
31422
|
-
"feSpecularLighting",
|
|
31423
|
-
"feSpotLight",
|
|
31424
|
-
"feTile",
|
|
31425
|
-
"feTurbulence",
|
|
31426
|
-
"foreignObject",
|
|
31427
|
-
"linearGradient",
|
|
31428
|
-
"radialGradient",
|
|
31429
|
-
"textPath"
|
|
31430
|
-
];
|
|
31431
|
-
var domhandler$1 = lib$3;
|
|
31432
|
-
var constants = constants$1;
|
|
31433
|
-
var CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;
|
|
31434
|
-
var Comment = domhandler$1.Comment;
|
|
31435
|
-
var Element$1 = domhandler$1.Element;
|
|
31436
|
-
var ProcessingInstruction = domhandler$1.ProcessingInstruction;
|
|
31437
|
-
var Text$1 = domhandler$1.Text;
|
|
31438
|
-
var caseSensitiveTagNamesMap = {};
|
|
31439
|
-
var tagName;
|
|
31440
|
-
for (var i$1 = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i$1 < len; i$1++) {
|
|
31441
|
-
tagName = CASE_SENSITIVE_TAG_NAMES[i$1];
|
|
31442
|
-
caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;
|
|
31443
|
-
}
|
|
31444
|
-
function getCaseSensitiveTagName(tagName2) {
|
|
31445
|
-
return caseSensitiveTagNamesMap[tagName2];
|
|
31446
|
-
}
|
|
31447
|
-
function formatAttributes(attributes) {
|
|
31448
|
-
var result = {};
|
|
31449
|
-
var attribute;
|
|
31450
|
-
for (var i2 = 0, len = attributes.length; i2 < len; i2++) {
|
|
31451
|
-
attribute = attributes[i2];
|
|
31452
|
-
result[attribute.name] = attribute.value;
|
|
31453
|
-
}
|
|
31454
|
-
return result;
|
|
31455
|
-
}
|
|
31456
|
-
function formatTagName(tagName2) {
|
|
31457
|
-
tagName2 = tagName2.toLowerCase();
|
|
31458
|
-
var caseSensitiveTagName = getCaseSensitiveTagName(tagName2);
|
|
31459
|
-
if (caseSensitiveTagName) {
|
|
31460
|
-
return caseSensitiveTagName;
|
|
31461
|
-
}
|
|
31462
|
-
return tagName2;
|
|
31463
|
-
}
|
|
31464
|
-
function formatDOM$1(nodes, parent, directive) {
|
|
31465
|
-
parent = parent || null;
|
|
31466
|
-
var result = [];
|
|
31467
|
-
var tagName2;
|
|
31468
|
-
for (var index2 = 0, len = nodes.length; index2 < len; index2++) {
|
|
31469
|
-
var node2 = nodes[index2];
|
|
31470
|
-
var current;
|
|
31471
|
-
switch (node2.nodeType) {
|
|
31472
|
-
case 1:
|
|
31473
|
-
tagName2 = formatTagName(node2.nodeName);
|
|
31474
|
-
current = new Element$1(tagName2, formatAttributes(node2.attributes));
|
|
31475
|
-
current.children = formatDOM$1(
|
|
31476
|
-
// template children are on content
|
|
31477
|
-
tagName2 === "template" ? node2.content.childNodes : node2.childNodes,
|
|
31478
|
-
current
|
|
31479
|
-
);
|
|
31480
|
-
break;
|
|
31481
|
-
case 3:
|
|
31482
|
-
current = new Text$1(node2.nodeValue);
|
|
31483
|
-
break;
|
|
31484
|
-
case 8:
|
|
31485
|
-
current = new Comment(node2.nodeValue);
|
|
31486
|
-
break;
|
|
31487
|
-
default:
|
|
31488
|
-
continue;
|
|
31489
|
-
}
|
|
31490
|
-
var prev = result[index2 - 1] || null;
|
|
31491
|
-
if (prev) {
|
|
31492
|
-
prev.next = current;
|
|
31493
|
-
}
|
|
31494
|
-
current.parent = parent;
|
|
31495
|
-
current.prev = prev;
|
|
31496
|
-
current.next = null;
|
|
31497
|
-
result.push(current);
|
|
31498
|
-
}
|
|
31499
|
-
if (directive) {
|
|
31500
|
-
current = new ProcessingInstruction(
|
|
31501
|
-
directive.substring(0, directive.indexOf(" ")).toLowerCase(),
|
|
31502
|
-
directive
|
|
31503
|
-
);
|
|
31504
|
-
current.next = result[0] || null;
|
|
31505
|
-
current.parent = parent;
|
|
31506
|
-
result.unshift(current);
|
|
31507
|
-
if (result[1]) {
|
|
31508
|
-
result[1].prev = result[0];
|
|
31509
|
-
}
|
|
31510
|
-
}
|
|
31511
|
-
return result;
|
|
31512
|
-
}
|
|
31513
|
-
utilities$5.formatAttributes = formatAttributes;
|
|
31514
|
-
utilities$5.formatDOM = formatDOM$1;
|
|
31515
|
-
var domparser = domparser_1;
|
|
31516
|
-
var utilities$4 = utilities$5;
|
|
31517
|
-
var formatDOM = utilities$4.formatDOM;
|
|
31518
|
-
var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/;
|
|
31519
|
-
function HTMLDOMParser(html) {
|
|
31520
|
-
if (typeof html !== "string") {
|
|
31521
|
-
throw new TypeError("First argument must be a string");
|
|
31522
|
-
}
|
|
31523
|
-
if (html === "") {
|
|
31524
|
-
return [];
|
|
31525
|
-
}
|
|
31526
|
-
var match = html.match(DIRECTIVE_REGEX);
|
|
31527
|
-
var directive;
|
|
31528
|
-
if (match && match[1]) {
|
|
31529
|
-
directive = match[1];
|
|
31530
|
-
}
|
|
31531
|
-
return formatDOM(domparser(html), null, directive);
|
|
31532
|
-
}
|
|
31533
|
-
var htmlToDom = HTMLDOMParser;
|
|
31534
|
-
var lib$1 = {};
|
|
31535
|
-
var possibleStandardNamesOptimized$1 = {};
|
|
31536
|
-
var SAME$1 = 0;
|
|
31537
|
-
possibleStandardNamesOptimized$1.SAME = SAME$1;
|
|
31538
|
-
var CAMELCASE$1 = 1;
|
|
31539
|
-
possibleStandardNamesOptimized$1.CAMELCASE = CAMELCASE$1;
|
|
31540
|
-
possibleStandardNamesOptimized$1.possibleStandardNames = {
|
|
31541
|
-
accept: 0,
|
|
31542
|
-
acceptCharset: 1,
|
|
31543
|
-
"accept-charset": "acceptCharset",
|
|
31544
|
-
accessKey: 1,
|
|
31545
|
-
action: 0,
|
|
31546
|
-
allowFullScreen: 1,
|
|
31547
|
-
alt: 0,
|
|
31548
|
-
as: 0,
|
|
31549
|
-
async: 0,
|
|
31550
|
-
autoCapitalize: 1,
|
|
31551
|
-
autoComplete: 1,
|
|
31552
|
-
autoCorrect: 1,
|
|
31553
|
-
autoFocus: 1,
|
|
31554
|
-
autoPlay: 1,
|
|
31555
|
-
autoSave: 1,
|
|
31556
|
-
capture: 0,
|
|
31557
|
-
cellPadding: 1,
|
|
31558
|
-
cellSpacing: 1,
|
|
31559
|
-
challenge: 0,
|
|
31560
|
-
charSet: 1,
|
|
31561
|
-
checked: 0,
|
|
31562
|
-
children: 0,
|
|
31563
|
-
cite: 0,
|
|
31564
|
-
class: "className",
|
|
31565
|
-
classID: 1,
|
|
31566
|
-
className: 1,
|
|
31567
|
-
cols: 0,
|
|
31568
|
-
colSpan: 1,
|
|
31569
|
-
content: 0,
|
|
31570
|
-
contentEditable: 1,
|
|
31571
|
-
contextMenu: 1,
|
|
31572
|
-
controls: 0,
|
|
31573
|
-
controlsList: 1,
|
|
31574
|
-
coords: 0,
|
|
31575
|
-
crossOrigin: 1,
|
|
31576
|
-
dangerouslySetInnerHTML: 1,
|
|
31577
|
-
data: 0,
|
|
31578
|
-
dateTime: 1,
|
|
31579
|
-
default: 0,
|
|
31580
|
-
defaultChecked: 1,
|
|
31581
|
-
defaultValue: 1,
|
|
31582
|
-
defer: 0,
|
|
31583
|
-
dir: 0,
|
|
31584
|
-
disabled: 0,
|
|
31585
|
-
disablePictureInPicture: 1,
|
|
31586
|
-
disableRemotePlayback: 1,
|
|
31587
|
-
download: 0,
|
|
31588
|
-
draggable: 0,
|
|
31589
|
-
encType: 1,
|
|
31590
|
-
enterKeyHint: 1,
|
|
31591
|
-
for: "htmlFor",
|
|
31592
|
-
form: 0,
|
|
31593
|
-
formMethod: 1,
|
|
31594
|
-
formAction: 1,
|
|
31595
|
-
formEncType: 1,
|
|
31596
|
-
formNoValidate: 1,
|
|
31597
|
-
formTarget: 1,
|
|
31598
|
-
frameBorder: 1,
|
|
31599
|
-
headers: 0,
|
|
31600
|
-
height: 0,
|
|
31601
|
-
hidden: 0,
|
|
31602
|
-
high: 0,
|
|
31603
|
-
href: 0,
|
|
31604
|
-
hrefLang: 1,
|
|
31605
|
-
htmlFor: 1,
|
|
31606
|
-
httpEquiv: 1,
|
|
31607
|
-
"http-equiv": "httpEquiv",
|
|
31608
|
-
icon: 0,
|
|
31609
|
-
id: 0,
|
|
31610
|
-
innerHTML: 1,
|
|
31611
|
-
inputMode: 1,
|
|
31612
|
-
integrity: 0,
|
|
31613
|
-
is: 0,
|
|
31614
|
-
itemID: 1,
|
|
31615
|
-
itemProp: 1,
|
|
31616
|
-
itemRef: 1,
|
|
31617
|
-
itemScope: 1,
|
|
31618
|
-
itemType: 1,
|
|
31619
|
-
keyParams: 1,
|
|
31620
|
-
keyType: 1,
|
|
31621
|
-
kind: 0,
|
|
31622
|
-
label: 0,
|
|
31623
|
-
lang: 0,
|
|
31624
|
-
list: 0,
|
|
31625
|
-
loop: 0,
|
|
31626
|
-
low: 0,
|
|
31627
|
-
manifest: 0,
|
|
31628
|
-
marginWidth: 1,
|
|
31629
|
-
marginHeight: 1,
|
|
31630
|
-
max: 0,
|
|
31631
|
-
maxLength: 1,
|
|
31632
|
-
media: 0,
|
|
31633
|
-
mediaGroup: 1,
|
|
31634
|
-
method: 0,
|
|
31635
|
-
min: 0,
|
|
31636
|
-
minLength: 1,
|
|
31637
|
-
multiple: 0,
|
|
31638
|
-
muted: 0,
|
|
31639
|
-
name: 0,
|
|
31640
|
-
noModule: 1,
|
|
31641
|
-
nonce: 0,
|
|
31642
|
-
noValidate: 1,
|
|
31643
|
-
open: 0,
|
|
31644
|
-
optimum: 0,
|
|
31645
|
-
pattern: 0,
|
|
31646
|
-
placeholder: 0,
|
|
31647
|
-
playsInline: 1,
|
|
31648
|
-
poster: 0,
|
|
31649
|
-
preload: 0,
|
|
31650
|
-
profile: 0,
|
|
31651
|
-
radioGroup: 1,
|
|
31652
|
-
readOnly: 1,
|
|
31653
|
-
referrerPolicy: 1,
|
|
31654
|
-
rel: 0,
|
|
31655
|
-
required: 0,
|
|
31656
|
-
reversed: 0,
|
|
31657
|
-
role: 0,
|
|
31658
|
-
rows: 0,
|
|
31659
|
-
rowSpan: 1,
|
|
31660
|
-
sandbox: 0,
|
|
31661
|
-
scope: 0,
|
|
31662
|
-
scoped: 0,
|
|
31663
|
-
scrolling: 0,
|
|
31664
|
-
seamless: 0,
|
|
31665
|
-
selected: 0,
|
|
31666
|
-
shape: 0,
|
|
31667
|
-
size: 0,
|
|
31668
|
-
sizes: 0,
|
|
31669
|
-
span: 0,
|
|
31670
|
-
spellCheck: 1,
|
|
31671
|
-
src: 0,
|
|
31672
|
-
srcDoc: 1,
|
|
31673
|
-
srcLang: 1,
|
|
31674
|
-
srcSet: 1,
|
|
31675
|
-
start: 0,
|
|
31676
|
-
step: 0,
|
|
31677
|
-
style: 0,
|
|
31678
|
-
summary: 0,
|
|
31679
|
-
tabIndex: 1,
|
|
31680
|
-
target: 0,
|
|
31681
|
-
title: 0,
|
|
31682
|
-
type: 0,
|
|
31683
|
-
useMap: 1,
|
|
31684
|
-
value: 0,
|
|
31685
|
-
width: 0,
|
|
31686
|
-
wmode: 0,
|
|
31687
|
-
wrap: 0,
|
|
31688
|
-
about: 0,
|
|
31689
|
-
accentHeight: 1,
|
|
31690
|
-
"accent-height": "accentHeight",
|
|
31691
|
-
accumulate: 0,
|
|
31692
|
-
additive: 0,
|
|
31693
|
-
alignmentBaseline: 1,
|
|
31694
|
-
"alignment-baseline": "alignmentBaseline",
|
|
31695
|
-
allowReorder: 1,
|
|
31696
|
-
alphabetic: 0,
|
|
31697
|
-
amplitude: 0,
|
|
31698
|
-
arabicForm: 1,
|
|
31699
|
-
"arabic-form": "arabicForm",
|
|
31700
|
-
ascent: 0,
|
|
31701
|
-
attributeName: 1,
|
|
31702
|
-
attributeType: 1,
|
|
31703
|
-
autoReverse: 1,
|
|
31704
|
-
azimuth: 0,
|
|
31705
|
-
baseFrequency: 1,
|
|
31706
|
-
baselineShift: 1,
|
|
31707
|
-
"baseline-shift": "baselineShift",
|
|
31708
|
-
baseProfile: 1,
|
|
31709
|
-
bbox: 0,
|
|
31710
|
-
begin: 0,
|
|
31711
|
-
bias: 0,
|
|
31712
|
-
by: 0,
|
|
31713
|
-
calcMode: 1,
|
|
31714
|
-
capHeight: 1,
|
|
31715
|
-
"cap-height": "capHeight",
|
|
31716
|
-
clip: 0,
|
|
31717
|
-
clipPath: 1,
|
|
31718
|
-
"clip-path": "clipPath",
|
|
31719
|
-
clipPathUnits: 1,
|
|
31720
|
-
clipRule: 1,
|
|
31721
|
-
"clip-rule": "clipRule",
|
|
31722
|
-
color: 0,
|
|
31723
|
-
colorInterpolation: 1,
|
|
31724
|
-
"color-interpolation": "colorInterpolation",
|
|
31725
|
-
colorInterpolationFilters: 1,
|
|
31726
|
-
"color-interpolation-filters": "colorInterpolationFilters",
|
|
31727
|
-
colorProfile: 1,
|
|
31728
|
-
"color-profile": "colorProfile",
|
|
31729
|
-
colorRendering: 1,
|
|
31730
|
-
"color-rendering": "colorRendering",
|
|
31731
|
-
contentScriptType: 1,
|
|
31732
|
-
contentStyleType: 1,
|
|
31733
|
-
cursor: 0,
|
|
31734
|
-
cx: 0,
|
|
31735
|
-
cy: 0,
|
|
31736
|
-
d: 0,
|
|
31737
|
-
datatype: 0,
|
|
31738
|
-
decelerate: 0,
|
|
31739
|
-
descent: 0,
|
|
31740
|
-
diffuseConstant: 1,
|
|
31741
|
-
direction: 0,
|
|
31742
|
-
display: 0,
|
|
31743
|
-
divisor: 0,
|
|
31744
|
-
dominantBaseline: 1,
|
|
31745
|
-
"dominant-baseline": "dominantBaseline",
|
|
31746
|
-
dur: 0,
|
|
31747
|
-
dx: 0,
|
|
31748
|
-
dy: 0,
|
|
31749
|
-
edgeMode: 1,
|
|
31750
|
-
elevation: 0,
|
|
31751
|
-
enableBackground: 1,
|
|
31752
|
-
"enable-background": "enableBackground",
|
|
31753
|
-
end: 0,
|
|
31754
|
-
exponent: 0,
|
|
31755
|
-
externalResourcesRequired: 1,
|
|
31756
|
-
fill: 0,
|
|
31757
|
-
fillOpacity: 1,
|
|
31758
|
-
"fill-opacity": "fillOpacity",
|
|
31759
|
-
fillRule: 1,
|
|
31760
|
-
"fill-rule": "fillRule",
|
|
31761
|
-
filter: 0,
|
|
31762
|
-
filterRes: 1,
|
|
31763
|
-
filterUnits: 1,
|
|
31764
|
-
floodOpacity: 1,
|
|
31765
|
-
"flood-opacity": "floodOpacity",
|
|
31766
|
-
floodColor: 1,
|
|
31767
|
-
"flood-color": "floodColor",
|
|
31768
|
-
focusable: 0,
|
|
31769
|
-
fontFamily: 1,
|
|
31770
|
-
"font-family": "fontFamily",
|
|
31771
|
-
fontSize: 1,
|
|
31772
|
-
"font-size": "fontSize",
|
|
31773
|
-
fontSizeAdjust: 1,
|
|
31774
|
-
"font-size-adjust": "fontSizeAdjust",
|
|
31775
|
-
fontStretch: 1,
|
|
31776
|
-
"font-stretch": "fontStretch",
|
|
31777
|
-
fontStyle: 1,
|
|
31778
|
-
"font-style": "fontStyle",
|
|
31779
|
-
fontVariant: 1,
|
|
31780
|
-
"font-variant": "fontVariant",
|
|
31781
|
-
fontWeight: 1,
|
|
31782
|
-
"font-weight": "fontWeight",
|
|
31783
|
-
format: 0,
|
|
31784
|
-
from: 0,
|
|
31785
|
-
fx: 0,
|
|
31786
|
-
fy: 0,
|
|
31787
|
-
g1: 0,
|
|
31788
|
-
g2: 0,
|
|
31789
|
-
glyphName: 1,
|
|
31790
|
-
"glyph-name": "glyphName",
|
|
31791
|
-
glyphOrientationHorizontal: 1,
|
|
31792
|
-
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
31793
|
-
glyphOrientationVertical: 1,
|
|
31794
|
-
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
31795
|
-
glyphRef: 1,
|
|
31796
|
-
gradientTransform: 1,
|
|
31797
|
-
gradientUnits: 1,
|
|
31798
|
-
hanging: 0,
|
|
31799
|
-
horizAdvX: 1,
|
|
31800
|
-
"horiz-adv-x": "horizAdvX",
|
|
31801
|
-
horizOriginX: 1,
|
|
31802
|
-
"horiz-origin-x": "horizOriginX",
|
|
31803
|
-
ideographic: 0,
|
|
31804
|
-
imageRendering: 1,
|
|
31805
|
-
"image-rendering": "imageRendering",
|
|
31806
|
-
in2: 0,
|
|
31807
|
-
in: 0,
|
|
31808
|
-
inlist: 0,
|
|
31809
|
-
intercept: 0,
|
|
31810
|
-
k1: 0,
|
|
31811
|
-
k2: 0,
|
|
31812
|
-
k3: 0,
|
|
31813
|
-
k4: 0,
|
|
31814
|
-
k: 0,
|
|
31815
|
-
kernelMatrix: 1,
|
|
31816
|
-
kernelUnitLength: 1,
|
|
31817
|
-
kerning: 0,
|
|
31818
|
-
keyPoints: 1,
|
|
31819
|
-
keySplines: 1,
|
|
31820
|
-
keyTimes: 1,
|
|
31821
|
-
lengthAdjust: 1,
|
|
31822
|
-
letterSpacing: 1,
|
|
31823
|
-
"letter-spacing": "letterSpacing",
|
|
31824
|
-
lightingColor: 1,
|
|
31825
|
-
"lighting-color": "lightingColor",
|
|
31826
|
-
limitingConeAngle: 1,
|
|
31827
|
-
local: 0,
|
|
31828
|
-
markerEnd: 1,
|
|
31829
|
-
"marker-end": "markerEnd",
|
|
31830
|
-
markerHeight: 1,
|
|
31831
|
-
markerMid: 1,
|
|
31832
|
-
"marker-mid": "markerMid",
|
|
31833
|
-
markerStart: 1,
|
|
31834
|
-
"marker-start": "markerStart",
|
|
31835
|
-
markerUnits: 1,
|
|
31836
|
-
markerWidth: 1,
|
|
31837
|
-
mask: 0,
|
|
31838
|
-
maskContentUnits: 1,
|
|
31839
|
-
maskUnits: 1,
|
|
31840
|
-
mathematical: 0,
|
|
31841
|
-
mode: 0,
|
|
31842
|
-
numOctaves: 1,
|
|
31843
|
-
offset: 0,
|
|
31844
|
-
opacity: 0,
|
|
31845
|
-
operator: 0,
|
|
31846
|
-
order: 0,
|
|
31847
|
-
orient: 0,
|
|
31848
|
-
orientation: 0,
|
|
31849
|
-
origin: 0,
|
|
31850
|
-
overflow: 0,
|
|
31851
|
-
overlinePosition: 1,
|
|
31852
|
-
"overline-position": "overlinePosition",
|
|
31853
|
-
overlineThickness: 1,
|
|
31854
|
-
"overline-thickness": "overlineThickness",
|
|
31855
|
-
paintOrder: 1,
|
|
31856
|
-
"paint-order": "paintOrder",
|
|
31857
|
-
panose1: 0,
|
|
31858
|
-
"panose-1": "panose1",
|
|
31859
|
-
pathLength: 1,
|
|
31860
|
-
patternContentUnits: 1,
|
|
31861
|
-
patternTransform: 1,
|
|
31862
|
-
patternUnits: 1,
|
|
31863
|
-
pointerEvents: 1,
|
|
31864
|
-
"pointer-events": "pointerEvents",
|
|
31865
|
-
points: 0,
|
|
31866
|
-
pointsAtX: 1,
|
|
31867
|
-
pointsAtY: 1,
|
|
31868
|
-
pointsAtZ: 1,
|
|
31869
|
-
prefix: 0,
|
|
31870
|
-
preserveAlpha: 1,
|
|
31871
|
-
preserveAspectRatio: 1,
|
|
31872
|
-
primitiveUnits: 1,
|
|
31873
|
-
property: 0,
|
|
31874
|
-
r: 0,
|
|
31875
|
-
radius: 0,
|
|
31876
|
-
refX: 1,
|
|
31877
|
-
refY: 1,
|
|
31878
|
-
renderingIntent: 1,
|
|
31879
|
-
"rendering-intent": "renderingIntent",
|
|
31880
|
-
repeatCount: 1,
|
|
31881
|
-
repeatDur: 1,
|
|
31882
|
-
requiredExtensions: 1,
|
|
31883
|
-
requiredFeatures: 1,
|
|
31884
|
-
resource: 0,
|
|
31885
|
-
restart: 0,
|
|
31886
|
-
result: 0,
|
|
31887
|
-
results: 0,
|
|
31888
|
-
rotate: 0,
|
|
31889
|
-
rx: 0,
|
|
31890
|
-
ry: 0,
|
|
31891
|
-
scale: 0,
|
|
31892
|
-
security: 0,
|
|
31893
|
-
seed: 0,
|
|
31894
|
-
shapeRendering: 1,
|
|
31895
|
-
"shape-rendering": "shapeRendering",
|
|
31896
|
-
slope: 0,
|
|
31897
|
-
spacing: 0,
|
|
31898
|
-
specularConstant: 1,
|
|
31899
|
-
specularExponent: 1,
|
|
31900
|
-
speed: 0,
|
|
31901
|
-
spreadMethod: 1,
|
|
31902
|
-
startOffset: 1,
|
|
31903
|
-
stdDeviation: 1,
|
|
31904
|
-
stemh: 0,
|
|
31905
|
-
stemv: 0,
|
|
31906
|
-
stitchTiles: 1,
|
|
31907
|
-
stopColor: 1,
|
|
31908
|
-
"stop-color": "stopColor",
|
|
31909
|
-
stopOpacity: 1,
|
|
31910
|
-
"stop-opacity": "stopOpacity",
|
|
31911
|
-
strikethroughPosition: 1,
|
|
31912
|
-
"strikethrough-position": "strikethroughPosition",
|
|
31913
|
-
strikethroughThickness: 1,
|
|
31914
|
-
"strikethrough-thickness": "strikethroughThickness",
|
|
31915
|
-
string: 0,
|
|
31916
|
-
stroke: 0,
|
|
31917
|
-
strokeDasharray: 1,
|
|
31918
|
-
"stroke-dasharray": "strokeDasharray",
|
|
31919
|
-
strokeDashoffset: 1,
|
|
31920
|
-
"stroke-dashoffset": "strokeDashoffset",
|
|
31921
|
-
strokeLinecap: 1,
|
|
31922
|
-
"stroke-linecap": "strokeLinecap",
|
|
31923
|
-
strokeLinejoin: 1,
|
|
31924
|
-
"stroke-linejoin": "strokeLinejoin",
|
|
31925
|
-
strokeMiterlimit: 1,
|
|
31926
|
-
"stroke-miterlimit": "strokeMiterlimit",
|
|
31927
|
-
strokeWidth: 1,
|
|
31928
|
-
"stroke-width": "strokeWidth",
|
|
31929
|
-
strokeOpacity: 1,
|
|
31930
|
-
"stroke-opacity": "strokeOpacity",
|
|
31931
|
-
suppressContentEditableWarning: 1,
|
|
31932
|
-
suppressHydrationWarning: 1,
|
|
31933
|
-
surfaceScale: 1,
|
|
31934
|
-
systemLanguage: 1,
|
|
31935
|
-
tableValues: 1,
|
|
31936
|
-
targetX: 1,
|
|
31937
|
-
targetY: 1,
|
|
31938
|
-
textAnchor: 1,
|
|
31939
|
-
"text-anchor": "textAnchor",
|
|
31940
|
-
textDecoration: 1,
|
|
31941
|
-
"text-decoration": "textDecoration",
|
|
31942
|
-
textLength: 1,
|
|
31943
|
-
textRendering: 1,
|
|
31944
|
-
"text-rendering": "textRendering",
|
|
31945
|
-
to: 0,
|
|
31946
|
-
transform: 0,
|
|
31947
|
-
typeof: 0,
|
|
31948
|
-
u1: 0,
|
|
31949
|
-
u2: 0,
|
|
31950
|
-
underlinePosition: 1,
|
|
31951
|
-
"underline-position": "underlinePosition",
|
|
31952
|
-
underlineThickness: 1,
|
|
31953
|
-
"underline-thickness": "underlineThickness",
|
|
31954
|
-
unicode: 0,
|
|
31955
|
-
unicodeBidi: 1,
|
|
31956
|
-
"unicode-bidi": "unicodeBidi",
|
|
31957
|
-
unicodeRange: 1,
|
|
31958
|
-
"unicode-range": "unicodeRange",
|
|
31959
|
-
unitsPerEm: 1,
|
|
31960
|
-
"units-per-em": "unitsPerEm",
|
|
31961
|
-
unselectable: 0,
|
|
31962
|
-
vAlphabetic: 1,
|
|
31963
|
-
"v-alphabetic": "vAlphabetic",
|
|
31964
|
-
values: 0,
|
|
31965
|
-
vectorEffect: 1,
|
|
31966
|
-
"vector-effect": "vectorEffect",
|
|
31967
|
-
version: 0,
|
|
31968
|
-
vertAdvY: 1,
|
|
31969
|
-
"vert-adv-y": "vertAdvY",
|
|
31970
|
-
vertOriginX: 1,
|
|
31971
|
-
"vert-origin-x": "vertOriginX",
|
|
31972
|
-
vertOriginY: 1,
|
|
31973
|
-
"vert-origin-y": "vertOriginY",
|
|
31974
|
-
vHanging: 1,
|
|
31975
|
-
"v-hanging": "vHanging",
|
|
31976
|
-
vIdeographic: 1,
|
|
31977
|
-
"v-ideographic": "vIdeographic",
|
|
31978
|
-
viewBox: 1,
|
|
31979
|
-
viewTarget: 1,
|
|
31980
|
-
visibility: 0,
|
|
31981
|
-
vMathematical: 1,
|
|
31982
|
-
"v-mathematical": "vMathematical",
|
|
31983
|
-
vocab: 0,
|
|
31984
|
-
widths: 0,
|
|
31985
|
-
wordSpacing: 1,
|
|
31986
|
-
"word-spacing": "wordSpacing",
|
|
31987
|
-
writingMode: 1,
|
|
31988
|
-
"writing-mode": "writingMode",
|
|
31989
|
-
x1: 0,
|
|
31990
|
-
x2: 0,
|
|
31991
|
-
x: 0,
|
|
31992
|
-
xChannelSelector: 1,
|
|
31993
|
-
xHeight: 1,
|
|
31994
|
-
"x-height": "xHeight",
|
|
31995
|
-
xlinkActuate: 1,
|
|
31996
|
-
"xlink:actuate": "xlinkActuate",
|
|
31997
|
-
xlinkArcrole: 1,
|
|
31998
|
-
"xlink:arcrole": "xlinkArcrole",
|
|
31999
|
-
xlinkHref: 1,
|
|
32000
|
-
"xlink:href": "xlinkHref",
|
|
32001
|
-
xlinkRole: 1,
|
|
32002
|
-
"xlink:role": "xlinkRole",
|
|
32003
|
-
xlinkShow: 1,
|
|
32004
|
-
"xlink:show": "xlinkShow",
|
|
32005
|
-
xlinkTitle: 1,
|
|
32006
|
-
"xlink:title": "xlinkTitle",
|
|
32007
|
-
xlinkType: 1,
|
|
32008
|
-
"xlink:type": "xlinkType",
|
|
32009
|
-
xmlBase: 1,
|
|
32010
|
-
"xml:base": "xmlBase",
|
|
32011
|
-
xmlLang: 1,
|
|
32012
|
-
"xml:lang": "xmlLang",
|
|
32013
|
-
xmlns: 0,
|
|
32014
|
-
"xml:space": "xmlSpace",
|
|
32015
|
-
xmlnsXlink: 1,
|
|
32016
|
-
"xmlns:xlink": "xmlnsXlink",
|
|
32017
|
-
xmlSpace: 1,
|
|
32018
|
-
y1: 0,
|
|
32019
|
-
y2: 0,
|
|
32020
|
-
y: 0,
|
|
32021
|
-
yChannelSelector: 1,
|
|
32022
|
-
z: 0,
|
|
32023
|
-
zoomAndPan: 1
|
|
32024
|
-
};
|
|
32025
|
-
Object.defineProperty(lib$1, "__esModule", { value: true });
|
|
32026
|
-
function _slicedToArray(arr2, i2) {
|
|
32027
|
-
return _arrayWithHoles(arr2) || _iterableToArrayLimit(arr2, i2) || _unsupportedIterableToArray(arr2, i2) || _nonIterableRest();
|
|
32028
|
-
}
|
|
32029
|
-
function _arrayWithHoles(arr2) {
|
|
32030
|
-
if (Array.isArray(arr2))
|
|
32031
|
-
return arr2;
|
|
32032
|
-
}
|
|
32033
|
-
function _iterableToArrayLimit(arr2, i2) {
|
|
32034
|
-
var _i2 = arr2 == null ? null : typeof Symbol !== "undefined" && arr2[Symbol.iterator] || arr2["@@iterator"];
|
|
32035
|
-
if (_i2 == null)
|
|
32036
|
-
return;
|
|
32037
|
-
var _arr = [];
|
|
32038
|
-
var _n = true;
|
|
32039
|
-
var _d2 = false;
|
|
32040
|
-
var _s, _e2;
|
|
32041
|
-
try {
|
|
32042
|
-
for (_i2 = _i2.call(arr2); !(_n = (_s = _i2.next()).done); _n = true) {
|
|
32043
|
-
_arr.push(_s.value);
|
|
32044
|
-
if (i2 && _arr.length === i2)
|
|
32045
|
-
break;
|
|
32046
|
-
}
|
|
32047
|
-
} catch (err2) {
|
|
32048
|
-
_d2 = true;
|
|
32049
|
-
_e2 = err2;
|
|
32050
|
-
} finally {
|
|
32051
|
-
try {
|
|
32052
|
-
if (!_n && _i2["return"] != null)
|
|
32053
|
-
_i2["return"]();
|
|
32054
|
-
} finally {
|
|
32055
|
-
if (_d2)
|
|
32056
|
-
throw _e2;
|
|
32057
|
-
}
|
|
32058
|
-
}
|
|
32059
|
-
return _arr;
|
|
32060
|
-
}
|
|
32061
|
-
function _unsupportedIterableToArray(o2, minLen) {
|
|
32062
|
-
if (!o2)
|
|
32063
|
-
return;
|
|
32064
|
-
if (typeof o2 === "string")
|
|
32065
|
-
return _arrayLikeToArray(o2, minLen);
|
|
32066
|
-
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
32067
|
-
if (n2 === "Object" && o2.constructor)
|
|
32068
|
-
n2 = o2.constructor.name;
|
|
32069
|
-
if (n2 === "Map" || n2 === "Set")
|
|
32070
|
-
return Array.from(o2);
|
|
32071
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
32072
|
-
return _arrayLikeToArray(o2, minLen);
|
|
32073
|
-
}
|
|
32074
|
-
function _arrayLikeToArray(arr2, len) {
|
|
32075
|
-
if (len == null || len > arr2.length)
|
|
32076
|
-
len = arr2.length;
|
|
32077
|
-
for (var i2 = 0, arr22 = new Array(len); i2 < len; i2++)
|
|
32078
|
-
arr22[i2] = arr2[i2];
|
|
32079
|
-
return arr22;
|
|
32080
|
-
}
|
|
32081
|
-
function _nonIterableRest() {
|
|
32082
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32083
|
-
}
|
|
32084
|
-
var RESERVED = 0;
|
|
32085
|
-
var STRING = 1;
|
|
32086
|
-
var BOOLEANISH_STRING = 2;
|
|
32087
|
-
var BOOLEAN = 3;
|
|
32088
|
-
var OVERLOADED_BOOLEAN = 4;
|
|
32089
|
-
var NUMERIC = 5;
|
|
32090
|
-
var POSITIVE_NUMERIC = 6;
|
|
32091
|
-
function getPropertyInfo(name) {
|
|
32092
|
-
return properties.hasOwnProperty(name) ? properties[name] : null;
|
|
32093
|
-
}
|
|
32094
|
-
function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
|
|
32095
|
-
this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN;
|
|
32096
|
-
this.attributeName = attributeName;
|
|
32097
|
-
this.attributeNamespace = attributeNamespace;
|
|
32098
|
-
this.mustUseProperty = mustUseProperty;
|
|
32099
|
-
this.propertyName = name;
|
|
32100
|
-
this.type = type2;
|
|
32101
|
-
this.sanitizeURL = sanitizeURL;
|
|
32102
|
-
this.removeEmptyString = removeEmptyString;
|
|
32103
|
-
}
|
|
32104
|
-
var properties = {};
|
|
32105
|
-
var reservedProps = [
|
|
32106
|
-
"children",
|
|
32107
|
-
"dangerouslySetInnerHTML",
|
|
32108
|
-
// TODO: This prevents the assignment of defaultValue to regular
|
|
32109
|
-
// elements (not just inputs). Now that ReactDOMInput assigns to the
|
|
32110
|
-
// defaultValue property -- do we need this?
|
|
32111
|
-
"defaultValue",
|
|
32112
|
-
"defaultChecked",
|
|
32113
|
-
"innerHTML",
|
|
32114
|
-
"suppressContentEditableWarning",
|
|
32115
|
-
"suppressHydrationWarning",
|
|
32116
|
-
"style"
|
|
32117
|
-
];
|
|
32118
|
-
reservedProps.forEach(function(name) {
|
|
32119
|
-
properties[name] = new PropertyInfoRecord(
|
|
32120
|
-
name,
|
|
32121
|
-
RESERVED,
|
|
32122
|
-
false,
|
|
32123
|
-
// mustUseProperty
|
|
32124
|
-
name,
|
|
32125
|
-
// attributeName
|
|
32126
|
-
null,
|
|
32127
|
-
// attributeNamespace
|
|
32128
|
-
false,
|
|
32129
|
-
// sanitizeURL
|
|
32130
|
-
false
|
|
32131
|
-
);
|
|
32132
|
-
});
|
|
32133
|
-
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) {
|
|
32134
|
-
var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], attributeName = _ref2[1];
|
|
32135
|
-
properties[name] = new PropertyInfoRecord(
|
|
32136
|
-
name,
|
|
32137
|
-
STRING,
|
|
32138
|
-
false,
|
|
32139
|
-
// mustUseProperty
|
|
32140
|
-
attributeName,
|
|
32141
|
-
// attributeName
|
|
32142
|
-
null,
|
|
32143
|
-
// attributeNamespace
|
|
32144
|
-
false,
|
|
32145
|
-
// sanitizeURL
|
|
32146
|
-
false
|
|
32147
|
-
);
|
|
32148
|
-
});
|
|
32149
|
-
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) {
|
|
32150
|
-
properties[name] = new PropertyInfoRecord(
|
|
32151
|
-
name,
|
|
32152
|
-
BOOLEANISH_STRING,
|
|
32153
|
-
false,
|
|
32154
|
-
// mustUseProperty
|
|
32155
|
-
name.toLowerCase(),
|
|
32156
|
-
// attributeName
|
|
32157
|
-
null,
|
|
32158
|
-
// attributeNamespace
|
|
32159
|
-
false,
|
|
32160
|
-
// sanitizeURL
|
|
32161
|
-
false
|
|
32162
|
-
);
|
|
32163
|
-
});
|
|
32164
|
-
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) {
|
|
32165
|
-
properties[name] = new PropertyInfoRecord(
|
|
32166
|
-
name,
|
|
32167
|
-
BOOLEANISH_STRING,
|
|
32168
|
-
false,
|
|
32169
|
-
// mustUseProperty
|
|
32170
|
-
name,
|
|
32171
|
-
// attributeName
|
|
32172
|
-
null,
|
|
32173
|
-
// attributeNamespace
|
|
32174
|
-
false,
|
|
32175
|
-
// sanitizeURL
|
|
32176
|
-
false
|
|
32177
|
-
);
|
|
32178
|
-
});
|
|
32179
|
-
[
|
|
32180
|
-
"allowFullScreen",
|
|
32181
|
-
"async",
|
|
32182
|
-
// Note: there is a special case that prevents it from being written to the DOM
|
|
32183
|
-
// on the client side because the browsers are inconsistent. Instead we call focus().
|
|
32184
|
-
"autoFocus",
|
|
32185
|
-
"autoPlay",
|
|
32186
|
-
"controls",
|
|
32187
|
-
"default",
|
|
32188
|
-
"defer",
|
|
32189
|
-
"disabled",
|
|
32190
|
-
"disablePictureInPicture",
|
|
32191
|
-
"disableRemotePlayback",
|
|
32192
|
-
"formNoValidate",
|
|
32193
|
-
"hidden",
|
|
32194
|
-
"loop",
|
|
32195
|
-
"noModule",
|
|
32196
|
-
"noValidate",
|
|
32197
|
-
"open",
|
|
32198
|
-
"playsInline",
|
|
32199
|
-
"readOnly",
|
|
32200
|
-
"required",
|
|
32201
|
-
"reversed",
|
|
32202
|
-
"scoped",
|
|
32203
|
-
"seamless",
|
|
32204
|
-
// Microdata
|
|
32205
|
-
"itemScope"
|
|
32206
|
-
].forEach(function(name) {
|
|
32207
|
-
properties[name] = new PropertyInfoRecord(
|
|
32208
|
-
name,
|
|
32209
|
-
BOOLEAN,
|
|
32210
|
-
false,
|
|
32211
|
-
// mustUseProperty
|
|
32212
|
-
name.toLowerCase(),
|
|
32213
|
-
// attributeName
|
|
32214
|
-
null,
|
|
32215
|
-
// attributeNamespace
|
|
32216
|
-
false,
|
|
32217
|
-
// sanitizeURL
|
|
32218
|
-
false
|
|
32219
|
-
);
|
|
32220
|
-
});
|
|
32221
|
-
[
|
|
32222
|
-
"checked",
|
|
32223
|
-
// Note: `option.selected` is not updated if `select.multiple` is
|
|
32224
|
-
// disabled with `removeAttribute`. We have special logic for handling this.
|
|
32225
|
-
"multiple",
|
|
32226
|
-
"muted",
|
|
32227
|
-
"selected"
|
|
32228
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32229
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32230
|
-
// instead in the assignment below.
|
|
32231
|
-
].forEach(function(name) {
|
|
32232
|
-
properties[name] = new PropertyInfoRecord(
|
|
32233
|
-
name,
|
|
32234
|
-
BOOLEAN,
|
|
32235
|
-
true,
|
|
32236
|
-
// mustUseProperty
|
|
32237
|
-
name,
|
|
32238
|
-
// attributeName
|
|
32239
|
-
null,
|
|
32240
|
-
// attributeNamespace
|
|
32241
|
-
false,
|
|
32242
|
-
// sanitizeURL
|
|
32243
|
-
false
|
|
32244
|
-
);
|
|
32245
|
-
});
|
|
32246
|
-
[
|
|
32247
|
-
"capture",
|
|
32248
|
-
"download"
|
|
32249
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32250
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32251
|
-
// instead in the assignment below.
|
|
32252
|
-
].forEach(function(name) {
|
|
32253
|
-
properties[name] = new PropertyInfoRecord(
|
|
32254
|
-
name,
|
|
32255
|
-
OVERLOADED_BOOLEAN,
|
|
32256
|
-
false,
|
|
32257
|
-
// mustUseProperty
|
|
32258
|
-
name,
|
|
32259
|
-
// attributeName
|
|
32260
|
-
null,
|
|
32261
|
-
// attributeNamespace
|
|
32262
|
-
false,
|
|
32263
|
-
// sanitizeURL
|
|
32264
|
-
false
|
|
32265
|
-
);
|
|
32266
|
-
});
|
|
32267
|
-
[
|
|
32268
|
-
"cols",
|
|
32269
|
-
"rows",
|
|
32270
|
-
"size",
|
|
32271
|
-
"span"
|
|
32272
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32273
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32274
|
-
// instead in the assignment below.
|
|
32275
|
-
].forEach(function(name) {
|
|
32276
|
-
properties[name] = new PropertyInfoRecord(
|
|
32277
|
-
name,
|
|
32278
|
-
POSITIVE_NUMERIC,
|
|
32279
|
-
false,
|
|
32280
|
-
// mustUseProperty
|
|
32281
|
-
name,
|
|
32282
|
-
// attributeName
|
|
32283
|
-
null,
|
|
32284
|
-
// attributeNamespace
|
|
32285
|
-
false,
|
|
32286
|
-
// sanitizeURL
|
|
32287
|
-
false
|
|
32288
|
-
);
|
|
32289
|
-
});
|
|
32290
|
-
["rowSpan", "start"].forEach(function(name) {
|
|
32291
|
-
properties[name] = new PropertyInfoRecord(
|
|
32292
|
-
name,
|
|
32293
|
-
NUMERIC,
|
|
32294
|
-
false,
|
|
32295
|
-
// mustUseProperty
|
|
32296
|
-
name.toLowerCase(),
|
|
32297
|
-
// attributeName
|
|
32298
|
-
null,
|
|
32299
|
-
// attributeNamespace
|
|
32300
|
-
false,
|
|
32301
|
-
// sanitizeURL
|
|
32302
|
-
false
|
|
32303
|
-
);
|
|
32304
|
-
});
|
|
32305
|
-
var CAMELIZE = /[\-\:]([a-z])/g;
|
|
32306
|
-
var capitalize$1 = function capitalize(token) {
|
|
32307
|
-
return token[1].toUpperCase();
|
|
32308
|
-
};
|
|
32309
|
-
[
|
|
32310
|
-
"accent-height",
|
|
32311
|
-
"alignment-baseline",
|
|
32312
|
-
"arabic-form",
|
|
32313
|
-
"baseline-shift",
|
|
32314
|
-
"cap-height",
|
|
32315
|
-
"clip-path",
|
|
32316
|
-
"clip-rule",
|
|
32317
|
-
"color-interpolation",
|
|
32318
|
-
"color-interpolation-filters",
|
|
32319
|
-
"color-profile",
|
|
32320
|
-
"color-rendering",
|
|
32321
|
-
"dominant-baseline",
|
|
32322
|
-
"enable-background",
|
|
32323
|
-
"fill-opacity",
|
|
32324
|
-
"fill-rule",
|
|
32325
|
-
"flood-color",
|
|
32326
|
-
"flood-opacity",
|
|
32327
|
-
"font-family",
|
|
32328
|
-
"font-size",
|
|
32329
|
-
"font-size-adjust",
|
|
32330
|
-
"font-stretch",
|
|
32331
|
-
"font-style",
|
|
32332
|
-
"font-variant",
|
|
32333
|
-
"font-weight",
|
|
32334
|
-
"glyph-name",
|
|
32335
|
-
"glyph-orientation-horizontal",
|
|
32336
|
-
"glyph-orientation-vertical",
|
|
32337
|
-
"horiz-adv-x",
|
|
32338
|
-
"horiz-origin-x",
|
|
32339
|
-
"image-rendering",
|
|
32340
|
-
"letter-spacing",
|
|
32341
|
-
"lighting-color",
|
|
32342
|
-
"marker-end",
|
|
32343
|
-
"marker-mid",
|
|
32344
|
-
"marker-start",
|
|
32345
|
-
"overline-position",
|
|
32346
|
-
"overline-thickness",
|
|
32347
|
-
"paint-order",
|
|
32348
|
-
"panose-1",
|
|
32349
|
-
"pointer-events",
|
|
32350
|
-
"rendering-intent",
|
|
32351
|
-
"shape-rendering",
|
|
32352
|
-
"stop-color",
|
|
32353
|
-
"stop-opacity",
|
|
32354
|
-
"strikethrough-position",
|
|
32355
|
-
"strikethrough-thickness",
|
|
32356
|
-
"stroke-dasharray",
|
|
32357
|
-
"stroke-dashoffset",
|
|
32358
|
-
"stroke-linecap",
|
|
32359
|
-
"stroke-linejoin",
|
|
32360
|
-
"stroke-miterlimit",
|
|
32361
|
-
"stroke-opacity",
|
|
32362
|
-
"stroke-width",
|
|
32363
|
-
"text-anchor",
|
|
32364
|
-
"text-decoration",
|
|
32365
|
-
"text-rendering",
|
|
32366
|
-
"underline-position",
|
|
32367
|
-
"underline-thickness",
|
|
32368
|
-
"unicode-bidi",
|
|
32369
|
-
"unicode-range",
|
|
32370
|
-
"units-per-em",
|
|
32371
|
-
"v-alphabetic",
|
|
32372
|
-
"v-hanging",
|
|
32373
|
-
"v-ideographic",
|
|
32374
|
-
"v-mathematical",
|
|
32375
|
-
"vector-effect",
|
|
32376
|
-
"vert-adv-y",
|
|
32377
|
-
"vert-origin-x",
|
|
32378
|
-
"vert-origin-y",
|
|
32379
|
-
"word-spacing",
|
|
32380
|
-
"writing-mode",
|
|
32381
|
-
"xmlns:xlink",
|
|
32382
|
-
"x-height"
|
|
32383
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32384
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32385
|
-
// instead in the assignment below.
|
|
32386
|
-
].forEach(function(attributeName) {
|
|
32387
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32388
|
-
properties[name] = new PropertyInfoRecord(
|
|
32389
|
-
name,
|
|
32390
|
-
STRING,
|
|
32391
|
-
false,
|
|
32392
|
-
// mustUseProperty
|
|
32393
|
-
attributeName,
|
|
32394
|
-
null,
|
|
32395
|
-
// attributeNamespace
|
|
32396
|
-
false,
|
|
32397
|
-
// sanitizeURL
|
|
32398
|
-
false
|
|
32399
|
-
);
|
|
32400
|
-
});
|
|
32401
|
-
[
|
|
32402
|
-
"xlink:actuate",
|
|
32403
|
-
"xlink:arcrole",
|
|
32404
|
-
"xlink:role",
|
|
32405
|
-
"xlink:show",
|
|
32406
|
-
"xlink:title",
|
|
32407
|
-
"xlink:type"
|
|
32408
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32409
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32410
|
-
// instead in the assignment below.
|
|
32411
|
-
].forEach(function(attributeName) {
|
|
32412
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32413
|
-
properties[name] = new PropertyInfoRecord(
|
|
32414
|
-
name,
|
|
32415
|
-
STRING,
|
|
32416
|
-
false,
|
|
32417
|
-
// mustUseProperty
|
|
32418
|
-
attributeName,
|
|
32419
|
-
"http://www.w3.org/1999/xlink",
|
|
32420
|
-
false,
|
|
32421
|
-
// sanitizeURL
|
|
32422
|
-
false
|
|
32423
|
-
);
|
|
32424
|
-
});
|
|
32425
|
-
[
|
|
32426
|
-
"xml:base",
|
|
32427
|
-
"xml:lang",
|
|
32428
|
-
"xml:space"
|
|
32429
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32430
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32431
|
-
// instead in the assignment below.
|
|
32432
|
-
].forEach(function(attributeName) {
|
|
32433
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32434
|
-
properties[name] = new PropertyInfoRecord(
|
|
32435
|
-
name,
|
|
32436
|
-
STRING,
|
|
32437
|
-
false,
|
|
32438
|
-
// mustUseProperty
|
|
32439
|
-
attributeName,
|
|
32440
|
-
"http://www.w3.org/XML/1998/namespace",
|
|
32441
|
-
false,
|
|
32442
|
-
// sanitizeURL
|
|
32443
|
-
false
|
|
32444
|
-
);
|
|
32445
|
-
});
|
|
32446
|
-
["tabIndex", "crossOrigin"].forEach(function(attributeName) {
|
|
32447
|
-
properties[attributeName] = new PropertyInfoRecord(
|
|
32448
|
-
attributeName,
|
|
32449
|
-
STRING,
|
|
32450
|
-
false,
|
|
32451
|
-
// mustUseProperty
|
|
32452
|
-
attributeName.toLowerCase(),
|
|
32453
|
-
// attributeName
|
|
32454
|
-
null,
|
|
32455
|
-
// attributeNamespace
|
|
32456
|
-
false,
|
|
32457
|
-
// sanitizeURL
|
|
32458
|
-
false
|
|
32459
|
-
);
|
|
32460
|
-
});
|
|
32461
|
-
var xlinkHref = "xlinkHref";
|
|
32462
|
-
properties[xlinkHref] = new PropertyInfoRecord(
|
|
32463
|
-
"xlinkHref",
|
|
32464
|
-
STRING,
|
|
32465
|
-
false,
|
|
32466
|
-
// mustUseProperty
|
|
32467
|
-
"xlink:href",
|
|
32468
|
-
"http://www.w3.org/1999/xlink",
|
|
32469
|
-
true,
|
|
32470
|
-
// sanitizeURL
|
|
32471
|
-
false
|
|
32472
|
-
);
|
|
32473
|
-
["src", "href", "action", "formAction"].forEach(function(attributeName) {
|
|
32474
|
-
properties[attributeName] = new PropertyInfoRecord(
|
|
32475
|
-
attributeName,
|
|
32476
|
-
STRING,
|
|
32477
|
-
false,
|
|
32478
|
-
// mustUseProperty
|
|
32479
|
-
attributeName.toLowerCase(),
|
|
32480
|
-
// attributeName
|
|
32481
|
-
null,
|
|
32482
|
-
// attributeNamespace
|
|
32483
|
-
true,
|
|
32484
|
-
// sanitizeURL
|
|
32485
|
-
true
|
|
32486
|
-
);
|
|
32487
|
-
});
|
|
32488
|
-
var _require = possibleStandardNamesOptimized$1, CAMELCASE = _require.CAMELCASE, SAME = _require.SAME, possibleStandardNamesOptimized = _require.possibleStandardNames;
|
|
32489
|
-
var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
32490
|
-
var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
32491
|
-
var isCustomAttribute = RegExp.prototype.test.bind(
|
|
32492
|
-
// eslint-disable-next-line no-misleading-character-class
|
|
32493
|
-
new RegExp("^(data|aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$")
|
|
32494
|
-
);
|
|
32495
|
-
var possibleStandardNames = Object.keys(possibleStandardNamesOptimized).reduce(function(accumulator, standardName) {
|
|
32496
|
-
var propName = possibleStandardNamesOptimized[standardName];
|
|
32497
|
-
if (propName === SAME) {
|
|
32498
|
-
accumulator[standardName] = standardName;
|
|
32499
|
-
} else if (propName === CAMELCASE) {
|
|
32500
|
-
accumulator[standardName.toLowerCase()] = standardName;
|
|
32501
|
-
} else {
|
|
32502
|
-
accumulator[standardName] = propName;
|
|
32503
|
-
}
|
|
32504
|
-
return accumulator;
|
|
32505
|
-
}, {});
|
|
32506
|
-
lib$1.BOOLEAN = BOOLEAN;
|
|
32507
|
-
lib$1.BOOLEANISH_STRING = BOOLEANISH_STRING;
|
|
32508
|
-
lib$1.NUMERIC = NUMERIC;
|
|
32509
|
-
lib$1.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;
|
|
32510
|
-
lib$1.POSITIVE_NUMERIC = POSITIVE_NUMERIC;
|
|
32511
|
-
lib$1.RESERVED = RESERVED;
|
|
32512
|
-
lib$1.STRING = STRING;
|
|
32513
|
-
lib$1.getPropertyInfo = getPropertyInfo;
|
|
32514
|
-
lib$1.isCustomAttribute = isCustomAttribute;
|
|
32515
|
-
lib$1.possibleStandardNames = possibleStandardNames;
|
|
32516
|
-
var cjs = {};
|
|
32517
|
-
var styleToObject = { exports: {} };
|
|
32518
|
-
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
32519
|
-
var NEWLINE_REGEX = /\n/g;
|
|
32520
|
-
var WHITESPACE_REGEX = /^\s*/;
|
|
32521
|
-
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
32522
|
-
var COLON_REGEX = /^:\s*/;
|
|
32523
|
-
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
32524
|
-
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
32525
|
-
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
32526
|
-
var NEWLINE = "\n";
|
|
32527
|
-
var FORWARD_SLASH = "/";
|
|
32528
|
-
var ASTERISK = "*";
|
|
32529
|
-
var EMPTY_STRING = "";
|
|
32530
|
-
var TYPE_COMMENT = "comment";
|
|
32531
|
-
var TYPE_DECLARATION = "declaration";
|
|
32532
|
-
var inlineStyleParser = function(style, options) {
|
|
32533
|
-
if (typeof style !== "string") {
|
|
32534
|
-
throw new TypeError("First argument must be a string");
|
|
32535
|
-
}
|
|
32536
|
-
if (!style)
|
|
32537
|
-
return [];
|
|
32538
|
-
options = options || {};
|
|
32539
|
-
var lineno = 1;
|
|
32540
|
-
var column = 1;
|
|
32541
|
-
function updatePosition(str) {
|
|
32542
|
-
var lines = str.match(NEWLINE_REGEX);
|
|
32543
|
-
if (lines)
|
|
32544
|
-
lineno += lines.length;
|
|
32545
|
-
var i2 = str.lastIndexOf(NEWLINE);
|
|
32546
|
-
column = ~i2 ? str.length - i2 : column + str.length;
|
|
32547
|
-
}
|
|
32548
|
-
function position() {
|
|
32549
|
-
var start2 = { line: lineno, column };
|
|
32550
|
-
return function(node2) {
|
|
32551
|
-
node2.position = new Position(start2);
|
|
32552
|
-
whitespace();
|
|
32553
|
-
return node2;
|
|
32554
|
-
};
|
|
32555
|
-
}
|
|
32556
|
-
function Position(start2) {
|
|
32557
|
-
this.start = start2;
|
|
32558
|
-
this.end = { line: lineno, column };
|
|
32559
|
-
this.source = options.source;
|
|
32560
|
-
}
|
|
32561
|
-
Position.prototype.content = style;
|
|
32562
|
-
function error(msg) {
|
|
32563
|
-
var err2 = new Error(
|
|
32564
|
-
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
32565
|
-
);
|
|
32566
|
-
err2.reason = msg;
|
|
32567
|
-
err2.filename = options.source;
|
|
32568
|
-
err2.line = lineno;
|
|
32569
|
-
err2.column = column;
|
|
32570
|
-
err2.source = style;
|
|
32571
|
-
if (options.silent)
|
|
32572
|
-
;
|
|
32573
|
-
else {
|
|
32574
|
-
throw err2;
|
|
32575
|
-
}
|
|
32576
|
-
}
|
|
32577
|
-
function match(re2) {
|
|
32578
|
-
var m2 = re2.exec(style);
|
|
32579
|
-
if (!m2)
|
|
32580
|
-
return;
|
|
32581
|
-
var str = m2[0];
|
|
32582
|
-
updatePosition(str);
|
|
32583
|
-
style = style.slice(str.length);
|
|
32584
|
-
return m2;
|
|
32585
|
-
}
|
|
32586
|
-
function whitespace() {
|
|
32587
|
-
match(WHITESPACE_REGEX);
|
|
32588
|
-
}
|
|
32589
|
-
function comments(rules) {
|
|
32590
|
-
var c6;
|
|
32591
|
-
rules = rules || [];
|
|
32592
|
-
while (c6 = comment()) {
|
|
32593
|
-
if (c6 !== false) {
|
|
32594
|
-
rules.push(c6);
|
|
32595
|
-
}
|
|
32596
|
-
}
|
|
32597
|
-
return rules;
|
|
32598
|
-
}
|
|
32599
|
-
function comment() {
|
|
32600
|
-
var pos = position();
|
|
32601
|
-
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1))
|
|
32602
|
-
return;
|
|
32603
|
-
var i2 = 2;
|
|
32604
|
-
while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
|
|
32605
|
-
++i2;
|
|
32606
|
-
}
|
|
32607
|
-
i2 += 2;
|
|
32608
|
-
if (EMPTY_STRING === style.charAt(i2 - 1)) {
|
|
32609
|
-
return error("End of comment missing");
|
|
32610
|
-
}
|
|
32611
|
-
var str = style.slice(2, i2 - 2);
|
|
32612
|
-
column += 2;
|
|
32613
|
-
updatePosition(str);
|
|
32614
|
-
style = style.slice(i2);
|
|
32615
|
-
column += 2;
|
|
32616
|
-
return pos({
|
|
32617
|
-
type: TYPE_COMMENT,
|
|
32618
|
-
comment: str
|
|
32619
|
-
});
|
|
32620
|
-
}
|
|
32621
|
-
function declaration() {
|
|
32622
|
-
var pos = position();
|
|
32623
|
-
var prop = match(PROPERTY_REGEX);
|
|
32624
|
-
if (!prop)
|
|
32625
|
-
return;
|
|
32626
|
-
comment();
|
|
32627
|
-
if (!match(COLON_REGEX))
|
|
32628
|
-
return error("property missing ':'");
|
|
32629
|
-
var val = match(VALUE_REGEX);
|
|
32630
|
-
var ret = pos({
|
|
32631
|
-
type: TYPE_DECLARATION,
|
|
32632
|
-
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
32633
|
-
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
32634
|
-
});
|
|
32635
|
-
match(SEMICOLON_REGEX);
|
|
32636
|
-
return ret;
|
|
32637
|
-
}
|
|
32638
|
-
function declarations() {
|
|
32639
|
-
var decls = [];
|
|
32640
|
-
comments(decls);
|
|
32641
|
-
var decl;
|
|
32642
|
-
while (decl = declaration()) {
|
|
32643
|
-
if (decl !== false) {
|
|
32644
|
-
decls.push(decl);
|
|
32645
|
-
comments(decls);
|
|
32646
|
-
}
|
|
32647
|
-
}
|
|
32648
|
-
return decls;
|
|
32649
|
-
}
|
|
32650
|
-
whitespace();
|
|
32651
|
-
return declarations();
|
|
32652
|
-
};
|
|
32653
|
-
function trim(str) {
|
|
32654
|
-
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
32655
|
-
}
|
|
32656
|
-
var parse$2 = inlineStyleParser;
|
|
32657
|
-
function StyleToObject(style, iterator) {
|
|
32658
|
-
var output = null;
|
|
32659
|
-
if (!style || typeof style !== "string") {
|
|
32660
|
-
return output;
|
|
32661
|
-
}
|
|
32662
|
-
var declaration;
|
|
32663
|
-
var declarations = parse$2(style);
|
|
32664
|
-
var hasIterator = typeof iterator === "function";
|
|
32665
|
-
var property;
|
|
32666
|
-
var value;
|
|
32667
|
-
for (var i2 = 0, len = declarations.length; i2 < len; i2++) {
|
|
32668
|
-
declaration = declarations[i2];
|
|
32669
|
-
property = declaration.property;
|
|
32670
|
-
value = declaration.value;
|
|
32671
|
-
if (hasIterator) {
|
|
32672
|
-
iterator(property, value, declaration);
|
|
32673
|
-
} else if (value) {
|
|
32674
|
-
output || (output = {});
|
|
32675
|
-
output[property] = value;
|
|
32676
|
-
}
|
|
32677
|
-
}
|
|
32678
|
-
return output;
|
|
32679
|
-
}
|
|
32680
|
-
styleToObject.exports = StyleToObject;
|
|
32681
|
-
styleToObject.exports.default = StyleToObject;
|
|
32682
|
-
var styleToObjectExports = styleToObject.exports;
|
|
32683
|
-
var utilities$3 = {};
|
|
32684
|
-
utilities$3.__esModule = true;
|
|
32685
|
-
utilities$3.camelCase = void 0;
|
|
32686
|
-
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
|
|
32687
|
-
var HYPHEN_REGEX = /-([a-z])/g;
|
|
32688
|
-
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
32689
|
-
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
32690
|
-
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
32691
|
-
var skipCamelCase = function(property) {
|
|
32692
|
-
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
32693
|
-
};
|
|
32694
|
-
var capitalize2 = function(match, character) {
|
|
32695
|
-
return character.toUpperCase();
|
|
32696
|
-
};
|
|
32697
|
-
var trimHyphen = function(match, prefix2) {
|
|
32698
|
-
return "".concat(prefix2, "-");
|
|
32699
|
-
};
|
|
32700
|
-
var camelCase = function(property, options) {
|
|
32701
|
-
if (options === void 0) {
|
|
32702
|
-
options = {};
|
|
32703
|
-
}
|
|
32704
|
-
if (skipCamelCase(property)) {
|
|
32705
|
-
return property;
|
|
32706
|
-
}
|
|
32707
|
-
property = property.toLowerCase();
|
|
32708
|
-
if (options.reactCompat) {
|
|
32709
|
-
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32710
|
-
} else {
|
|
32711
|
-
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32712
|
-
}
|
|
32713
|
-
return property.replace(HYPHEN_REGEX, capitalize2);
|
|
32714
|
-
};
|
|
32715
|
-
utilities$3.camelCase = camelCase;
|
|
32716
|
-
(function(exports) {
|
|
32717
|
-
var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod) {
|
|
32718
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32719
|
-
};
|
|
32720
|
-
exports.__esModule = true;
|
|
32721
|
-
var style_to_object_1 = __importDefault(styleToObjectExports);
|
|
32722
|
-
var utilities_1 = utilities$3;
|
|
32723
|
-
function StyleToJS(style, options) {
|
|
32724
|
-
var output = {};
|
|
32725
|
-
if (!style || typeof style !== "string") {
|
|
32726
|
-
return output;
|
|
32727
|
-
}
|
|
32728
|
-
(0, style_to_object_1["default"])(style, function(property, value) {
|
|
32729
|
-
if (property && value) {
|
|
32730
|
-
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
32731
|
-
}
|
|
32732
|
-
});
|
|
32733
|
-
return output;
|
|
32734
|
-
}
|
|
32735
|
-
exports["default"] = StyleToJS;
|
|
32736
|
-
})(cjs);
|
|
32737
|
-
var React$1 = reactExports;
|
|
32738
|
-
var styleToJS = cjs.default;
|
|
32739
|
-
function invertObject(obj, override) {
|
|
32740
|
-
if (!obj || typeof obj !== "object") {
|
|
32741
|
-
throw new TypeError("First argument must be an object");
|
|
32742
|
-
}
|
|
32743
|
-
var isOverridePresent = typeof override === "function";
|
|
32744
|
-
var overrides = {};
|
|
32745
|
-
var result = {};
|
|
32746
|
-
for (var key in obj) {
|
|
32747
|
-
var value = obj[key];
|
|
32748
|
-
if (isOverridePresent) {
|
|
32749
|
-
overrides = override(key, value);
|
|
32750
|
-
if (overrides && overrides.length === 2) {
|
|
32751
|
-
result[overrides[0]] = overrides[1];
|
|
32752
|
-
continue;
|
|
32753
|
-
}
|
|
32754
|
-
}
|
|
32755
|
-
if (typeof value === "string") {
|
|
32756
|
-
result[value] = key;
|
|
32757
|
-
}
|
|
32758
|
-
}
|
|
32759
|
-
return result;
|
|
32760
|
-
}
|
|
32761
|
-
var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
32762
|
-
"annotation-xml",
|
|
32763
|
-
"color-profile",
|
|
32764
|
-
"font-face",
|
|
32765
|
-
"font-face-src",
|
|
32766
|
-
"font-face-uri",
|
|
32767
|
-
"font-face-format",
|
|
32768
|
-
"font-face-name",
|
|
32769
|
-
"missing-glyph"
|
|
32770
|
-
]);
|
|
32771
|
-
function isCustomComponent(tagName2, props) {
|
|
32772
|
-
if (tagName2.indexOf("-") === -1) {
|
|
32773
|
-
return props && typeof props.is === "string";
|
|
32774
|
-
}
|
|
32775
|
-
if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName2)) {
|
|
32776
|
-
return false;
|
|
32777
|
-
}
|
|
32778
|
-
return true;
|
|
32779
|
-
}
|
|
32780
|
-
var STYLE_TO_JS_OPTIONS = { reactCompat: true };
|
|
32781
|
-
function setStyleProp$1(style, props) {
|
|
32782
|
-
if (style === null || style === void 0) {
|
|
32783
|
-
return;
|
|
32784
|
-
}
|
|
32785
|
-
try {
|
|
32786
|
-
props.style = styleToJS(style, STYLE_TO_JS_OPTIONS);
|
|
32787
|
-
} catch (err2) {
|
|
32788
|
-
props.style = {};
|
|
32789
|
-
}
|
|
32790
|
-
}
|
|
32791
|
-
var PRESERVE_CUSTOM_ATTRIBUTES = React$1.version.split(".")[0] >= 16;
|
|
32792
|
-
var ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
32793
|
-
"tr",
|
|
32794
|
-
"tbody",
|
|
32795
|
-
"thead",
|
|
32796
|
-
"tfoot",
|
|
32797
|
-
"colgroup",
|
|
32798
|
-
"table",
|
|
32799
|
-
"head",
|
|
32800
|
-
"html",
|
|
32801
|
-
"frameset"
|
|
32802
|
-
]);
|
|
32803
|
-
function canTextBeChildOfNode$1(node2) {
|
|
32804
|
-
return !ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node2.name);
|
|
32805
|
-
}
|
|
32806
|
-
function returnFirstArg(arg) {
|
|
32807
|
-
return arg;
|
|
32808
|
-
}
|
|
32809
|
-
var utilities$2 = {
|
|
32810
|
-
PRESERVE_CUSTOM_ATTRIBUTES,
|
|
32811
|
-
ELEMENTS_WITH_NO_TEXT_CHILDREN,
|
|
32812
|
-
invertObject,
|
|
32813
|
-
isCustomComponent,
|
|
32814
|
-
setStyleProp: setStyleProp$1,
|
|
32815
|
-
canTextBeChildOfNode: canTextBeChildOfNode$1,
|
|
32816
|
-
returnFirstArg
|
|
32817
|
-
};
|
|
32818
|
-
var reactProperty = lib$1;
|
|
32819
|
-
var utilities$1 = utilities$2;
|
|
32820
|
-
var UNCONTROLLED_COMPONENT_ATTRIBUTES = ["checked", "value"];
|
|
32821
|
-
var UNCONTROLLED_COMPONENT_NAMES = ["input", "select", "textarea"];
|
|
32822
|
-
var VALUE_ONLY_INPUTS = {
|
|
32823
|
-
reset: true,
|
|
32824
|
-
submit: true
|
|
32825
|
-
};
|
|
32826
|
-
var attributesToProps$3 = function attributesToProps(attributes, nodeName) {
|
|
32827
|
-
attributes = attributes || {};
|
|
32828
|
-
var attributeName;
|
|
32829
|
-
var attributeNameLowerCased;
|
|
32830
|
-
var attributeValue;
|
|
32831
|
-
var propName;
|
|
32832
|
-
var propertyInfo;
|
|
32833
|
-
var props = {};
|
|
32834
|
-
var inputIsValueOnly = attributes.type && VALUE_ONLY_INPUTS[attributes.type];
|
|
32835
|
-
for (attributeName in attributes) {
|
|
32836
|
-
attributeValue = attributes[attributeName];
|
|
32837
|
-
if (reactProperty.isCustomAttribute(attributeName)) {
|
|
32838
|
-
props[attributeName] = attributeValue;
|
|
32839
|
-
continue;
|
|
32840
|
-
}
|
|
32841
|
-
attributeNameLowerCased = attributeName.toLowerCase();
|
|
32842
|
-
propName = getPropName(attributeNameLowerCased);
|
|
32843
|
-
if (propName) {
|
|
32844
|
-
propertyInfo = reactProperty.getPropertyInfo(propName);
|
|
32845
|
-
if (UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 && UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 && !inputIsValueOnly) {
|
|
32846
|
-
propName = getPropName("default" + attributeNameLowerCased);
|
|
32847
|
-
}
|
|
32848
|
-
props[propName] = attributeValue;
|
|
32849
|
-
switch (propertyInfo && propertyInfo.type) {
|
|
32850
|
-
case reactProperty.BOOLEAN:
|
|
32851
|
-
props[propName] = true;
|
|
32852
|
-
break;
|
|
32853
|
-
case reactProperty.OVERLOADED_BOOLEAN:
|
|
32854
|
-
if (attributeValue === "") {
|
|
32855
|
-
props[propName] = true;
|
|
32856
|
-
}
|
|
32857
|
-
break;
|
|
32858
|
-
}
|
|
32859
|
-
continue;
|
|
32860
|
-
}
|
|
32861
|
-
if (utilities$1.PRESERVE_CUSTOM_ATTRIBUTES) {
|
|
32862
|
-
props[attributeName] = attributeValue;
|
|
32863
|
-
}
|
|
32864
|
-
}
|
|
32865
|
-
utilities$1.setStyleProp(attributes.style, props);
|
|
32866
|
-
return props;
|
|
32867
|
-
};
|
|
32868
|
-
function getPropName(attributeName) {
|
|
32869
|
-
return reactProperty.possibleStandardNames[attributeName];
|
|
32870
|
-
}
|
|
32871
|
-
var React = reactExports;
|
|
32872
|
-
var attributesToProps$2 = attributesToProps$3;
|
|
32873
|
-
var utilities = utilities$2;
|
|
32874
|
-
var setStyleProp = utilities.setStyleProp;
|
|
32875
|
-
var canTextBeChildOfNode = utilities.canTextBeChildOfNode;
|
|
32876
|
-
function domToReact$2(nodes, options) {
|
|
32877
|
-
options = options || {};
|
|
32878
|
-
var library = options.library || React;
|
|
32879
|
-
var cloneElement = library.cloneElement;
|
|
32880
|
-
var createElement2 = library.createElement;
|
|
32881
|
-
var isValidElement = library.isValidElement;
|
|
32882
|
-
var result = [];
|
|
32883
|
-
var node2;
|
|
32884
|
-
var isWhitespace;
|
|
32885
|
-
var hasReplace = typeof options.replace === "function";
|
|
32886
|
-
var transform = options.transform || utilities.returnFirstArg;
|
|
32887
|
-
var replaceElement;
|
|
32888
|
-
var props;
|
|
32889
|
-
var children;
|
|
32890
|
-
var trim2 = options.trim;
|
|
32891
|
-
for (var i2 = 0, len = nodes.length; i2 < len; i2++) {
|
|
32892
|
-
node2 = nodes[i2];
|
|
32893
|
-
if (hasReplace) {
|
|
32894
|
-
replaceElement = options.replace(node2);
|
|
32895
|
-
if (isValidElement(replaceElement)) {
|
|
32896
|
-
if (len > 1) {
|
|
32897
|
-
replaceElement = cloneElement(replaceElement, {
|
|
32898
|
-
key: replaceElement.key || i2
|
|
32899
|
-
});
|
|
32900
|
-
}
|
|
32901
|
-
result.push(transform(replaceElement, node2, i2));
|
|
32902
|
-
continue;
|
|
32903
|
-
}
|
|
32904
|
-
}
|
|
32905
|
-
if (node2.type === "text") {
|
|
32906
|
-
isWhitespace = !node2.data.trim().length;
|
|
32907
|
-
if (isWhitespace && node2.parent && !canTextBeChildOfNode(node2.parent)) {
|
|
32908
|
-
continue;
|
|
32909
|
-
}
|
|
32910
|
-
if (trim2 && isWhitespace) {
|
|
32911
|
-
continue;
|
|
32912
|
-
}
|
|
32913
|
-
result.push(transform(node2.data, node2, i2));
|
|
32914
|
-
continue;
|
|
32915
|
-
}
|
|
32916
|
-
props = node2.attribs;
|
|
32917
|
-
if (skipAttributesToProps(node2)) {
|
|
32918
|
-
setStyleProp(props.style, props);
|
|
32919
|
-
} else if (props) {
|
|
32920
|
-
props = attributesToProps$2(props, node2.name);
|
|
32921
|
-
}
|
|
32922
|
-
children = null;
|
|
32923
|
-
switch (node2.type) {
|
|
32924
|
-
case "script":
|
|
32925
|
-
case "style":
|
|
32926
|
-
if (node2.children[0]) {
|
|
32927
|
-
props.dangerouslySetInnerHTML = {
|
|
32928
|
-
__html: node2.children[0].data
|
|
32929
|
-
};
|
|
32930
|
-
}
|
|
32931
|
-
break;
|
|
32932
|
-
case "tag":
|
|
32933
|
-
if (node2.name === "textarea" && node2.children[0]) {
|
|
32934
|
-
props.defaultValue = node2.children[0].data;
|
|
32935
|
-
} else if (node2.children && node2.children.length) {
|
|
32936
|
-
children = domToReact$2(node2.children, options);
|
|
32937
|
-
}
|
|
32938
|
-
break;
|
|
32939
|
-
default:
|
|
32940
|
-
continue;
|
|
32941
|
-
}
|
|
32942
|
-
if (len > 1) {
|
|
32943
|
-
props.key = i2;
|
|
32944
|
-
}
|
|
32945
|
-
result.push(transform(createElement2(node2.name, props, children), node2, i2));
|
|
32946
|
-
}
|
|
32947
|
-
return result.length === 1 ? result[0] : result;
|
|
32948
|
-
}
|
|
32949
|
-
function skipAttributesToProps(node2) {
|
|
32950
|
-
return utilities.PRESERVE_CUSTOM_ATTRIBUTES && node2.type === "tag" && utilities.isCustomComponent(node2.name, node2.attribs);
|
|
32951
|
-
}
|
|
32952
|
-
var domToReact_1 = domToReact$2;
|
|
32953
|
-
var domhandler = lib$3;
|
|
32954
|
-
var htmlToDOM = htmlToDom;
|
|
32955
|
-
var attributesToProps$1 = attributesToProps$3;
|
|
32956
|
-
var domToReact$1 = domToReact_1;
|
|
32957
|
-
htmlToDOM = /* istanbul ignore next */
|
|
32958
|
-
typeof htmlToDOM.default === "function" ? htmlToDOM.default : htmlToDOM;
|
|
32959
|
-
var domParserOptions = { lowerCaseAttributeNames: false };
|
|
32960
|
-
function HTMLReactParser(html, options) {
|
|
32961
|
-
if (typeof html !== "string") {
|
|
32962
|
-
throw new TypeError("First argument must be a string");
|
|
32963
|
-
}
|
|
32964
|
-
if (html === "") {
|
|
32965
|
-
return [];
|
|
32966
|
-
}
|
|
32967
|
-
options = options || {};
|
|
32968
|
-
return domToReact$1(
|
|
32969
|
-
htmlToDOM(html, options.htmlparser2 || domParserOptions),
|
|
32970
|
-
options
|
|
32971
|
-
);
|
|
32972
|
-
}
|
|
32973
|
-
HTMLReactParser.domToReact = domToReact$1;
|
|
32974
|
-
HTMLReactParser.htmlToDOM = htmlToDOM;
|
|
32975
|
-
HTMLReactParser.attributesToProps = attributesToProps$1;
|
|
32976
|
-
HTMLReactParser.Comment = domhandler.Comment;
|
|
32977
|
-
HTMLReactParser.Element = domhandler.Element;
|
|
32978
|
-
HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
|
|
32979
|
-
HTMLReactParser.Text = domhandler.Text;
|
|
32980
|
-
var htmlReactParser = HTMLReactParser;
|
|
32981
|
-
HTMLReactParser.default = HTMLReactParser;
|
|
32982
|
-
const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(htmlReactParser);
|
|
32983
|
-
var domToReact = HTMLReactParser$1.domToReact;
|
|
32984
|
-
HTMLReactParser$1.htmlToDOM;
|
|
32985
|
-
var attributesToProps2 = HTMLReactParser$1.attributesToProps;
|
|
32986
|
-
HTMLReactParser$1.Comment;
|
|
32987
|
-
HTMLReactParser$1.Element;
|
|
32988
|
-
HTMLReactParser$1.ProcessingInstruction;
|
|
32989
|
-
HTMLReactParser$1.Text;
|
|
32990
30604
|
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
32991
30605
|
const Z_FIXED$1 = 4;
|
|
32992
30606
|
const Z_BINARY = 0;
|
|
@@ -33337,7 +30951,7 @@ const build_tree = (s2, desc) => {
|
|
|
33337
30951
|
const elems = desc.stat_desc.elems;
|
|
33338
30952
|
let n2, m2;
|
|
33339
30953
|
let max_code = -1;
|
|
33340
|
-
let
|
|
30954
|
+
let node;
|
|
33341
30955
|
s2.heap_len = 0;
|
|
33342
30956
|
s2.heap_max = HEAP_SIZE$1;
|
|
33343
30957
|
for (n2 = 0; n2 < elems; n2++) {
|
|
@@ -33349,19 +30963,19 @@ const build_tree = (s2, desc) => {
|
|
|
33349
30963
|
}
|
|
33350
30964
|
}
|
|
33351
30965
|
while (s2.heap_len < 2) {
|
|
33352
|
-
|
|
33353
|
-
tree[
|
|
33354
|
-
s2.depth[
|
|
30966
|
+
node = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
|
|
30967
|
+
tree[node * 2] = 1;
|
|
30968
|
+
s2.depth[node] = 0;
|
|
33355
30969
|
s2.opt_len--;
|
|
33356
30970
|
if (has_stree) {
|
|
33357
|
-
s2.static_len -= stree[
|
|
30971
|
+
s2.static_len -= stree[node * 2 + 1];
|
|
33358
30972
|
}
|
|
33359
30973
|
}
|
|
33360
30974
|
desc.max_code = max_code;
|
|
33361
30975
|
for (n2 = s2.heap_len >> 1; n2 >= 1; n2--) {
|
|
33362
30976
|
pqdownheap(s2, tree, n2);
|
|
33363
30977
|
}
|
|
33364
|
-
|
|
30978
|
+
node = elems;
|
|
33365
30979
|
do {
|
|
33366
30980
|
n2 = s2.heap[
|
|
33367
30981
|
1
|
|
@@ -33383,13 +30997,13 @@ const build_tree = (s2, desc) => {
|
|
|
33383
30997
|
];
|
|
33384
30998
|
s2.heap[--s2.heap_max] = n2;
|
|
33385
30999
|
s2.heap[--s2.heap_max] = m2;
|
|
33386
|
-
tree[
|
|
33387
|
-
s2.depth[
|
|
33388
|
-
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] =
|
|
31000
|
+
tree[node * 2] = tree[n2 * 2] + tree[m2 * 2];
|
|
31001
|
+
s2.depth[node] = (s2.depth[n2] >= s2.depth[m2] ? s2.depth[n2] : s2.depth[m2]) + 1;
|
|
31002
|
+
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] = node;
|
|
33389
31003
|
s2.heap[
|
|
33390
31004
|
1
|
|
33391
31005
|
/*SMALLEST*/
|
|
33392
|
-
] =
|
|
31006
|
+
] = node++;
|
|
33393
31007
|
pqdownheap(
|
|
33394
31008
|
s2,
|
|
33395
31009
|
tree,
|
|
@@ -39304,13 +36918,13 @@ var listGetNode = function(list, key) {
|
|
|
39304
36918
|
}
|
|
39305
36919
|
};
|
|
39306
36920
|
var listGet = function(objects, key) {
|
|
39307
|
-
var
|
|
39308
|
-
return
|
|
36921
|
+
var node = listGetNode(objects, key);
|
|
36922
|
+
return node && node.value;
|
|
39309
36923
|
};
|
|
39310
36924
|
var listSet = function(objects, key, value) {
|
|
39311
|
-
var
|
|
39312
|
-
if (
|
|
39313
|
-
|
|
36925
|
+
var node = listGetNode(objects, key);
|
|
36926
|
+
if (node) {
|
|
36927
|
+
node.value = value;
|
|
39314
36928
|
} else {
|
|
39315
36929
|
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
39316
36930
|
{
|
|
@@ -44122,12 +41736,12 @@ function generateUniformsSync(group, uniformData) {
|
|
|
44122
41736
|
break;
|
|
44123
41737
|
}
|
|
44124
41738
|
if (!parsed) {
|
|
44125
|
-
const
|
|
41739
|
+
const template = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
|
|
44126
41740
|
funcFragments.push(`
|
|
44127
41741
|
cu = ud["${i2}"];
|
|
44128
41742
|
cv = cu.value;
|
|
44129
41743
|
v = uv["${i2}"];
|
|
44130
|
-
${
|
|
41744
|
+
${template};`);
|
|
44131
41745
|
}
|
|
44132
41746
|
}
|
|
44133
41747
|
return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
|
|
@@ -45546,8 +43160,8 @@ class Texture extends EventEmitter2 {
|
|
|
45546
43160
|
* @param anchor - Default anchor point used for sprite placement / rotation
|
|
45547
43161
|
* @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
|
|
45548
43162
|
*/
|
|
45549
|
-
constructor(baseTexture, frame, orig,
|
|
45550
|
-
if (super(), this.noFrame = false, frame || (this.noFrame = true, frame = new Rectangle(0, 0, 1, 1)), baseTexture instanceof Texture && (baseTexture = baseTexture.baseTexture), this.baseTexture = baseTexture, this._frame = frame, this.trim =
|
|
43163
|
+
constructor(baseTexture, frame, orig, trim, rotate, anchor, borders) {
|
|
43164
|
+
if (super(), this.noFrame = false, frame || (this.noFrame = true, frame = new Rectangle(0, 0, 1, 1)), baseTexture instanceof Texture && (baseTexture = baseTexture.baseTexture), this.baseTexture = baseTexture, this._frame = frame, this.trim = trim, this.valid = false, this.destroyed = false, this._uvs = DEFAULT_UVS, this.uvMatrix = null, this.orig = orig || frame, this._rotate = Number(rotate || 0), rotate === true)
|
|
45551
43165
|
this._rotate = 2;
|
|
45552
43166
|
else if (this._rotate % 2 !== 0)
|
|
45553
43167
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -46787,14 +44401,14 @@ class TextureMatrix {
|
|
|
46787
44401
|
this._textureID = tex._updateID, this._updateID++;
|
|
46788
44402
|
const uvs = tex._uvs;
|
|
46789
44403
|
this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
|
|
46790
|
-
const orig = tex.orig,
|
|
46791
|
-
|
|
46792
|
-
orig.width /
|
|
44404
|
+
const orig = tex.orig, trim = tex.trim;
|
|
44405
|
+
trim && (tempMat$1.set(
|
|
44406
|
+
orig.width / trim.width,
|
|
46793
44407
|
0,
|
|
46794
44408
|
0,
|
|
46795
|
-
orig.height /
|
|
46796
|
-
-
|
|
46797
|
-
-
|
|
44409
|
+
orig.height / trim.height,
|
|
44410
|
+
-trim.x / trim.width,
|
|
44411
|
+
-trim.y / trim.height
|
|
46798
44412
|
), this.mapCoord.append(tempMat$1));
|
|
46799
44413
|
const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
|
|
46800
44414
|
return frame[0] = (tex._frame.x + margin + offset2) / texBase.width, frame[1] = (tex._frame.y + margin + offset2) / texBase.height, frame[2] = (tex._frame.x + tex._frame.width - margin + offset2) / texBase.width, frame[3] = (tex._frame.y + tex._frame.height - margin + offset2) / texBase.height, this.uClampOffset[0] = offset2 / texBase.realWidth, this.uClampOffset[1] = offset2 / texBase.realHeight, this.isSimple = tex._frame.width === texBase.width && tex._frame.height === texBase.height && tex.rotate === 0, true;
|
|
@@ -47628,12 +45242,12 @@ function generateUniformBufferSync(group, uniformData) {
|
|
|
47628
45242
|
|
|
47629
45243
|
`);
|
|
47630
45244
|
} else {
|
|
47631
|
-
const
|
|
45245
|
+
const template = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
|
|
47632
45246
|
funcFragments.push(`
|
|
47633
45247
|
cv = ud.${name}.value;
|
|
47634
45248
|
v = uv.${name};
|
|
47635
45249
|
offset = ${uboElement.offset / 4};
|
|
47636
|
-
${
|
|
45250
|
+
${template};
|
|
47637
45251
|
`);
|
|
47638
45252
|
}
|
|
47639
45253
|
}
|
|
@@ -51202,9 +48816,9 @@ class Sprite extends Container {
|
|
|
51202
48816
|
if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
|
|
51203
48817
|
return;
|
|
51204
48818
|
this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
|
|
51205
|
-
const wt = this.transform.worldTransform, a2 = wt.a, b2 = wt.b, c6 = wt.c, d2 = wt.d, tx = wt.tx, ty = wt.ty, vertexData = this.vertexData,
|
|
48819
|
+
const wt = this.transform.worldTransform, a2 = wt.a, b2 = wt.b, c6 = wt.c, d2 = wt.d, tx = wt.tx, ty = wt.ty, vertexData = this.vertexData, trim = texture.trim, orig = texture.orig, anchor = this._anchor;
|
|
51206
48820
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
51207
|
-
if (
|
|
48821
|
+
if (trim ? (w1 = trim.x - anchor._x * orig.width, w0 = w1 + trim.width, h1 = trim.y - anchor._y * orig.height, h0 = h1 + trim.height) : (w1 = -anchor._x * orig.width, w0 = w1 + orig.width, h1 = -anchor._y * orig.height, h0 = h1 + orig.height), vertexData[0] = a2 * w1 + c6 * h1 + tx, vertexData[1] = d2 * h1 + b2 * w1 + ty, vertexData[2] = a2 * w0 + c6 * h1 + tx, vertexData[3] = d2 * h1 + b2 * w0 + ty, vertexData[4] = a2 * w0 + c6 * h0 + tx, vertexData[5] = d2 * h0 + b2 * w0 + ty, vertexData[6] = a2 * w1 + c6 * h0 + tx, vertexData[7] = d2 * h0 + b2 * w1 + ty, this._roundPixels) {
|
|
51208
48822
|
const resolution = settings.RESOLUTION;
|
|
51209
48823
|
for (let i2 = 0; i2 < vertexData.length; ++i2)
|
|
51210
48824
|
vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
|
|
@@ -51238,8 +48852,8 @@ class Sprite extends Container {
|
|
|
51238
48852
|
}
|
|
51239
48853
|
/** Updates the bounds of the sprite. */
|
|
51240
48854
|
_calculateBounds() {
|
|
51241
|
-
const
|
|
51242
|
-
!
|
|
48855
|
+
const trim = this._texture.trim, orig = this._texture.orig;
|
|
48856
|
+
!trim || trim.width === orig.width && trim.height === orig.height ? (this.calculateVertices(), this._bounds.addQuad(this.vertexData)) : (this.calculateTrimmedVertices(), this._bounds.addQuad(this.vertexTrimmedData));
|
|
51243
48857
|
}
|
|
51244
48858
|
/**
|
|
51245
48859
|
* Gets the local bounds of the sprite object.
|
|
@@ -51648,7 +49262,7 @@ const contextSettings = {
|
|
|
51648
49262
|
static measureFont(font) {
|
|
51649
49263
|
if (_TextMetrics2._fonts[font])
|
|
51650
49264
|
return _TextMetrics2._fonts[font];
|
|
51651
|
-
const
|
|
49265
|
+
const properties = {
|
|
51652
49266
|
ascent: 0,
|
|
51653
49267
|
descent: 0,
|
|
51654
49268
|
fontSize: 0
|
|
@@ -51658,7 +49272,7 @@ const contextSettings = {
|
|
|
51658
49272
|
let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
|
|
51659
49273
|
const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
|
|
51660
49274
|
if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
|
|
51661
|
-
return _TextMetrics2._fonts[font] =
|
|
49275
|
+
return _TextMetrics2._fonts[font] = properties, properties;
|
|
51662
49276
|
canvas.width = width, canvas.height = height, context2.fillStyle = "#f00", context2.fillRect(0, 0, width, height), context2.font = font, context2.textBaseline = "alphabetic", context2.fillStyle = "#000", context2.fillText(metricsString, 0, baseline);
|
|
51663
49277
|
const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
|
|
51664
49278
|
let i2 = 0, idx = 0, stop2 = false;
|
|
@@ -51673,7 +49287,7 @@ const contextSettings = {
|
|
|
51673
49287
|
else
|
|
51674
49288
|
break;
|
|
51675
49289
|
}
|
|
51676
|
-
for (
|
|
49290
|
+
for (properties.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
|
|
51677
49291
|
for (let j2 = 0; j2 < line; j2 += 4)
|
|
51678
49292
|
if (imagedata[idx + j2] !== 255) {
|
|
51679
49293
|
stop2 = true;
|
|
@@ -51684,7 +49298,7 @@ const contextSettings = {
|
|
|
51684
49298
|
else
|
|
51685
49299
|
break;
|
|
51686
49300
|
}
|
|
51687
|
-
return
|
|
49301
|
+
return properties.descent = i2 - baseline, properties.fontSize = properties.ascent + properties.descent, _TextMetrics2._fonts[font] = properties, properties;
|
|
51688
49302
|
}
|
|
51689
49303
|
/**
|
|
51690
49304
|
* Clear font metrics in metrics cache.
|
|
@@ -52056,8 +49670,8 @@ const genericFontFamilies = [
|
|
|
52056
49670
|
get trim() {
|
|
52057
49671
|
return this._trim;
|
|
52058
49672
|
}
|
|
52059
|
-
set trim(
|
|
52060
|
-
this._trim !==
|
|
49673
|
+
set trim(trim) {
|
|
49674
|
+
this._trim !== trim && (this._trim = trim, this.styleID++);
|
|
52061
49675
|
}
|
|
52062
49676
|
/**
|
|
52063
49677
|
* How newlines and spaces should be handled.
|
|
@@ -56648,10 +54262,10 @@ class ParticleBuffer {
|
|
|
56648
54262
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
56649
54263
|
* @param {number} size - The size of the batch.
|
|
56650
54264
|
*/
|
|
56651
|
-
constructor(
|
|
54265
|
+
constructor(properties, dynamicPropertyFlags, size2) {
|
|
56652
54266
|
this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
|
|
56653
|
-
for (let i2 = 0; i2 <
|
|
56654
|
-
let property =
|
|
54267
|
+
for (let i2 = 0; i2 < properties.length; ++i2) {
|
|
54268
|
+
let property = properties[i2];
|
|
56655
54269
|
property = {
|
|
56656
54270
|
attributeName: property.attributeName,
|
|
56657
54271
|
size: property.size,
|
|
@@ -56888,8 +54502,8 @@ class ParticleRenderer extends ObjectRenderer {
|
|
|
56888
54502
|
uploadVertices(children, startIndex, amount, array, stride, offset2) {
|
|
56889
54503
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
56890
54504
|
for (let i2 = 0; i2 < amount; ++i2) {
|
|
56891
|
-
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y,
|
|
56892
|
-
|
|
54505
|
+
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y, trim = texture.trim, orig = texture.orig;
|
|
54506
|
+
trim ? (w1 = trim.x - sprite.anchor.x * orig.width, w0 = w1 + trim.width, h1 = trim.y - sprite.anchor.y * orig.height, h0 = h1 + trim.height) : (w0 = orig.width * (1 - sprite.anchor.x), w1 = orig.width * -sprite.anchor.x, h0 = orig.height * (1 - sprite.anchor.y), h1 = orig.height * -sprite.anchor.y), array[offset2] = w1 * sx, array[offset2 + 1] = h1 * sy, array[offset2 + stride] = w0 * sx, array[offset2 + stride + 1] = h1 * sy, array[offset2 + stride * 2] = w0 * sx, array[offset2 + stride * 2 + 1] = h0 * sy, array[offset2 + stride * 3] = w1 * sx, array[offset2 + stride * 3 + 1] = h0 * sy, offset2 += stride * 4;
|
|
56893
54507
|
}
|
|
56894
54508
|
}
|
|
56895
54509
|
/**
|
|
@@ -57430,10 +55044,10 @@ const GAUSSIAN_VALUES = {
|
|
|
57430
55044
|
function generateBlurFragSource(kernelSize) {
|
|
57431
55045
|
const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
|
|
57432
55046
|
let fragSource = fragTemplate, blurLoop = "";
|
|
57433
|
-
const
|
|
55047
|
+
const template = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
|
|
57434
55048
|
let value;
|
|
57435
55049
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
57436
|
-
let blur =
|
|
55050
|
+
let blur = template.replace("%index%", i2.toString());
|
|
57437
55051
|
value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
|
|
57438
55052
|
`;
|
|
57439
55053
|
}
|
|
@@ -57472,10 +55086,10 @@ const vertTemplate = `
|
|
|
57472
55086
|
}`;
|
|
57473
55087
|
function generateBlurVertSource(kernelSize, x2) {
|
|
57474
55088
|
const halfLength = Math.ceil(kernelSize / 2);
|
|
57475
|
-
let vertSource = vertTemplate, blurLoop = "",
|
|
57476
|
-
x2 ?
|
|
55089
|
+
let vertSource = vertTemplate, blurLoop = "", template;
|
|
55090
|
+
x2 ? template = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : template = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
|
|
57477
55091
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
57478
|
-
let blur =
|
|
55092
|
+
let blur = template.replace("%index%", i2.toString());
|
|
57479
55093
|
blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
|
|
57480
55094
|
`;
|
|
57481
55095
|
}
|
|
@@ -61616,7 +59230,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61616
59230
|
for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
|
|
61617
59231
|
const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
|
|
61618
59232
|
if (rect) {
|
|
61619
|
-
let frame = null,
|
|
59233
|
+
let frame = null, trim = null;
|
|
61620
59234
|
const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
|
|
61621
59235
|
0,
|
|
61622
59236
|
0,
|
|
@@ -61633,7 +59247,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61633
59247
|
Math.floor(rect.y) / this.resolution,
|
|
61634
59248
|
Math.floor(rect.w) / this.resolution,
|
|
61635
59249
|
Math.floor(rect.h) / this.resolution
|
|
61636
|
-
), data.trimmed !== false && data.spriteSourceSize && (
|
|
59250
|
+
), data.trimmed !== false && data.spriteSourceSize && (trim = new Rectangle(
|
|
61637
59251
|
Math.floor(data.spriteSourceSize.x) / this.resolution,
|
|
61638
59252
|
Math.floor(data.spriteSourceSize.y) / this.resolution,
|
|
61639
59253
|
Math.floor(rect.w) / this.resolution,
|
|
@@ -61642,7 +59256,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61642
59256
|
this.baseTexture,
|
|
61643
59257
|
frame,
|
|
61644
59258
|
orig,
|
|
61645
|
-
|
|
59259
|
+
trim,
|
|
61646
59260
|
data.rotated ? 2 : 0,
|
|
61647
59261
|
data.anchor,
|
|
61648
59262
|
data.borders
|
|
@@ -62439,15 +60053,13 @@ function useConf({
|
|
|
62439
60053
|
}) {
|
|
62440
60054
|
return useQuery({
|
|
62441
60055
|
queryKey: ["conf"],
|
|
62442
|
-
queryFn: async () => await odeServices.conf().getConf(appCode)
|
|
62443
|
-
suspense: true
|
|
60056
|
+
queryFn: async () => await odeServices.conf().getConf(appCode)
|
|
62444
60057
|
});
|
|
62445
60058
|
}
|
|
62446
60059
|
function useSession() {
|
|
62447
60060
|
return useQuery({
|
|
62448
60061
|
queryKey: ["session"],
|
|
62449
|
-
queryFn: async () => await odeServices.session().getSession()
|
|
62450
|
-
suspense: true
|
|
60062
|
+
queryFn: async () => await odeServices.session().getSession()
|
|
62451
60063
|
});
|
|
62452
60064
|
}
|
|
62453
60065
|
const OdeClientContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
@@ -62542,6 +60154,10 @@ function useBookmark() {
|
|
|
62542
60154
|
return set2.add(el2.displayName), !duplicate;
|
|
62543
60155
|
});
|
|
62544
60156
|
}
|
|
60157
|
+
const MockedDataContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
60158
|
+
function useMockedData() {
|
|
60159
|
+
return reactExports.useContext(MockedDataContext);
|
|
60160
|
+
}
|
|
62545
60161
|
const isActionAvailable = (workflow, actions) => {
|
|
62546
60162
|
const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
|
|
62547
60163
|
return found && found.length > 0;
|
|
@@ -62553,10 +60169,7 @@ const isActionAvailable = (workflow, actions) => {
|
|
|
62553
60169
|
timelinegenerator: "TimelineGenerator",
|
|
62554
60170
|
wiki: "Wiki",
|
|
62555
60171
|
exercizer: "Exercizer"
|
|
62556
|
-
}
|
|
62557
|
-
function useMockedData() {
|
|
62558
|
-
return reactExports.useContext(MockedDataContext);
|
|
62559
|
-
}
|
|
60172
|
+
};
|
|
62560
60173
|
function mergeRefs(...refs) {
|
|
62561
60174
|
return (val) => {
|
|
62562
60175
|
setRef(val, ...refs);
|
|
@@ -62711,7 +60324,7 @@ function useClickOutside(handler, events2, nodes) {
|
|
|
62711
60324
|
} = event ?? {};
|
|
62712
60325
|
if (Array.isArray(nodes)) {
|
|
62713
60326
|
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
|
62714
|
-
nodes.every((
|
|
60327
|
+
nodes.every((node) => !!node && !event.composedPath().includes(node)) && !shouldIgnore && handler();
|
|
62715
60328
|
} else
|
|
62716
60329
|
ref2.current && !ref2.current.contains(target) && handler();
|
|
62717
60330
|
};
|
|
@@ -62948,10 +60561,10 @@ function useHover() {
|
|
|
62948
60561
|
};
|
|
62949
60562
|
return reactExports.useEffect(
|
|
62950
60563
|
() => {
|
|
62951
|
-
const
|
|
62952
|
-
if (
|
|
62953
|
-
return
|
|
62954
|
-
|
|
60564
|
+
const node = ref2.current;
|
|
60565
|
+
if (node)
|
|
60566
|
+
return node.addEventListener("mouseover", handleMouseOver), node.addEventListener("mouseout", handleMouseOut), () => {
|
|
60567
|
+
node.removeEventListener("mouseover", handleMouseOver), node.removeEventListener("mouseout", handleMouseOut);
|
|
62955
60568
|
};
|
|
62956
60569
|
},
|
|
62957
60570
|
[ref2]
|
|
@@ -62997,12 +60610,12 @@ function useToggle(initialState2 = false) {
|
|
|
62997
60610
|
function useTrapFocus() {
|
|
62998
60611
|
const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
62999
60612
|
return reactExports.useEffect(() => {
|
|
63000
|
-
const
|
|
60613
|
+
const node = ref2.current, firstFocusableElement = node.querySelectorAll(focusableElements)[0], focusableContent = node.querySelectorAll(focusableElements), lastFocusableElement = ref2 && (focusableContent == null ? void 0 : focusableContent[focusableContent.length - 1]), handleKeydown = (event) => {
|
|
63001
60614
|
event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
|
|
63002
60615
|
};
|
|
63003
|
-
if (
|
|
63004
|
-
return
|
|
63005
|
-
|
|
60616
|
+
if (node)
|
|
60617
|
+
return node.addEventListener("keydown", handleKeydown), () => {
|
|
60618
|
+
node.removeEventListener("keydown", handleKeydown);
|
|
63006
60619
|
};
|
|
63007
60620
|
}, []), ref2;
|
|
63008
60621
|
}
|
|
@@ -63203,6 +60816,98 @@ function useXitiTrackPageLoad() {
|
|
|
63203
60816
|
xitiStatus
|
|
63204
60817
|
};
|
|
63205
60818
|
}
|
|
60819
|
+
function useZendeskGuide() {
|
|
60820
|
+
const sessionQuery = useSession(), {
|
|
60821
|
+
isAdml
|
|
60822
|
+
} = useIsAdml(), {
|
|
60823
|
+
theme
|
|
60824
|
+
} = useOdeTheme(), isMobileView = window.innerWidth <= 768, hasSupportWorkflow = useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"), [locationPathname, setLocationPathname] = reactExports.useState(""), [dataModule, setDataModule] = reactExports.useState(void 0), setZendeskGuideLabels = () => {
|
|
60825
|
+
var _a2;
|
|
60826
|
+
const modulePathnameSplit = locationPathname.split("/");
|
|
60827
|
+
let moduleLabel = "", labels = "";
|
|
60828
|
+
if (dataModule != null && dataModule.labels && Object.keys(dataModule == null ? void 0 : dataModule.labels).length > 0 && modulePathnameSplit.length > 1) {
|
|
60829
|
+
for (let i2 = 1; i2 < modulePathnameSplit.length; i2++)
|
|
60830
|
+
modulePathnameSplit[i2].length > 0 && modulePathnameSplit[i2].match(/\d/) == null && (moduleLabel.length === 0 ? moduleLabel = modulePathnameSplit[i2] : moduleLabel = moduleLabel + "/" + modulePathnameSplit[i2]);
|
|
60831
|
+
dataModule != null && dataModule.labels && Object.prototype.hasOwnProperty.call(dataModule == null ? void 0 : dataModule.labels, moduleLabel) ? labels = dataModule == null ? void 0 : dataModule.labels[moduleLabel] : dataModule != null && dataModule.default && String(dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60832
|
+
} else
|
|
60833
|
+
dataModule != null && dataModule.default && String(dataModule == null ? void 0 : dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60834
|
+
if (modulePathnameSplit.includes("collaborativewall") && modulePathnameSplit.includes("id") && isMobileView && window.zE("webWidget", "hide"), labels.includes("${adml}") && (isAdml ? labels = labels.replace("${adml}", "adml") : labels = labels.replace("/${adml}", "")), labels.includes("${profile}")) {
|
|
60835
|
+
const userProfile = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.userProfile[0]) || "";
|
|
60836
|
+
labels = labels.replace("${profile}", userProfile.toLowerCase());
|
|
60837
|
+
}
|
|
60838
|
+
labels.includes("${theme") && (theme != null && theme.is1d ? labels = labels.replace("${theme}", "1D") : labels = labels.replace("${theme}", "2D")), window.zE("webWidget", "helpCenter:setSuggestions", {
|
|
60839
|
+
labels: [labels]
|
|
60840
|
+
});
|
|
60841
|
+
};
|
|
60842
|
+
return reactExports.useEffect(() => {
|
|
60843
|
+
window.location.pathname !== locationPathname && setLocationPathname(window.location.pathname), !(dataModule === void 0 || Object.keys(dataModule).length === 0) && setZendeskGuideLabels();
|
|
60844
|
+
}, [window.location.pathname, dataModule]), reactExports.useEffect(() => {
|
|
60845
|
+
document.getElementById("ze-snippet") || hasSupportWorkflow === void 0 || (async () => {
|
|
60846
|
+
var _a2;
|
|
60847
|
+
const zendeskGuideConfig = await odeServices.http().get("/zendeskGuide/config");
|
|
60848
|
+
if (zendeskGuideConfig && zendeskGuideConfig.key && zendeskGuideConfig.key !== "") {
|
|
60849
|
+
const scriptZendesk = document.createElement("script");
|
|
60850
|
+
scriptZendesk.id = "ze-snippet", scriptZendesk.src = `https://static.zdassets.com/ekr/snippet.js?key=${zendeskGuideConfig.key}`;
|
|
60851
|
+
const currentLanguage = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.currentLanguage) || "fr";
|
|
60852
|
+
document.body.appendChild(scriptZendesk).onload = () => {
|
|
60853
|
+
currentLanguage === "es" ? window.zE(function() {
|
|
60854
|
+
window.zE.setLocale("es-419");
|
|
60855
|
+
}) : window.zE(function() {
|
|
60856
|
+
window.zE.setLocale("fr");
|
|
60857
|
+
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
|
|
60858
|
+
webWidget: {
|
|
60859
|
+
color: {
|
|
60860
|
+
theme: zendeskGuideConfig.color || "#ffc400"
|
|
60861
|
+
},
|
|
60862
|
+
zIndex: 3,
|
|
60863
|
+
launcher: {
|
|
60864
|
+
mobile: {
|
|
60865
|
+
labelVisible: true
|
|
60866
|
+
}
|
|
60867
|
+
},
|
|
60868
|
+
contactForm: {
|
|
60869
|
+
suppress: !hasSupportWorkflow
|
|
60870
|
+
},
|
|
60871
|
+
helpCenter: {
|
|
60872
|
+
messageButton: {
|
|
60873
|
+
"*": "Assistance ENT",
|
|
60874
|
+
"es-419": "Asistencia ENT"
|
|
60875
|
+
}
|
|
60876
|
+
}
|
|
60877
|
+
}
|
|
60878
|
+
}), window.addEventListener("scroll", () => {
|
|
60879
|
+
window.zE("webWidget", "updateSettings", {
|
|
60880
|
+
webWidget: {
|
|
60881
|
+
launcher: {
|
|
60882
|
+
mobile: {
|
|
60883
|
+
labelVisible: window.scrollY <= 5
|
|
60884
|
+
}
|
|
60885
|
+
}
|
|
60886
|
+
}
|
|
60887
|
+
});
|
|
60888
|
+
}), window.zE("webWidget:on", "open", function() {
|
|
60889
|
+
hasSupportWorkflow && window.zE("webWidget", "updateSettings", {
|
|
60890
|
+
webWidget: {
|
|
60891
|
+
contactForm: {
|
|
60892
|
+
suppress: false
|
|
60893
|
+
}
|
|
60894
|
+
}
|
|
60895
|
+
});
|
|
60896
|
+
}), window.zE("webWidget:on", "userEvent", function(ref2) {
|
|
60897
|
+
const category = ref2.category, action = ref2.action, properties = ref2.properties;
|
|
60898
|
+
action === "Contact Form Shown" && category === "Zendesk Web Widget" && properties && properties.name === "contact-form" && hasSupportWorkflow && (window.zE("webWidget", "updateSettings", {
|
|
60899
|
+
webWidget: {
|
|
60900
|
+
contactForm: {
|
|
60901
|
+
suppress: true
|
|
60902
|
+
}
|
|
60903
|
+
}
|
|
60904
|
+
}), window.zE("webWidget", "close"), window.open("/support", "_blank"));
|
|
60905
|
+
});
|
|
60906
|
+
};
|
|
60907
|
+
}
|
|
60908
|
+
})();
|
|
60909
|
+
}, [hasSupportWorkflow]), null;
|
|
60910
|
+
}
|
|
63206
60911
|
const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
|
|
63207
60912
|
src,
|
|
63208
60913
|
alt,
|
|
@@ -64018,8 +61723,8 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
64018
61723
|
}
|
|
64019
61724
|
});
|
|
64020
61725
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
64021
|
-
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { id: id2, ref: ref2, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${id2}_ref`, ref: (
|
|
64022
|
-
modalRef.current =
|
|
61726
|
+
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { id: id2, ref: ref2, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${id2}_ref`, ref: (node) => {
|
|
61727
|
+
modalRef.current = node, isOpen2 && (trapRef.current = node);
|
|
64023
61728
|
}, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
|
|
64024
61729
|
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
|
|
64025
61730
|
opacity: 0.65
|
|
@@ -64171,7 +61876,7 @@ const TreeItem = (props) => {
|
|
|
64171
61876
|
reactExports.useEffect(() => {
|
|
64172
61877
|
if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
|
|
64173
61878
|
const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
|
|
64174
|
-
selectedNodesIds.some((
|
|
61879
|
+
selectedNodesIds.some((node) => node === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node === nodeId) : (setExpanded(false), false));
|
|
64175
61880
|
} else
|
|
64176
61881
|
setExpanded(false);
|
|
64177
61882
|
}, [nodeId, selectedNodesIds]);
|
|
@@ -64220,7 +61925,7 @@ const TreeItem = (props) => {
|
|
|
64220
61925
|
onTreeItemFocus == null || onTreeItemFocus(nodeId);
|
|
64221
61926
|
}, handleItemBlur = (nodeId) => {
|
|
64222
61927
|
onTreeItemBlur == null || onTreeItemBlur(nodeId);
|
|
64223
|
-
}, renderTree = (
|
|
61928
|
+
}, renderTree = (node) => /* @__PURE__ */ jsxRuntimeExports.jsx(TreeItem$1, { nodeId: node.id, label: node.name, section: node.section, selectedNodesIds, selected: selectedItem === node.id, onItemSelect: handlers.select, onItemFold: handleItemFold, onItemUnfold: handleItemUnfold, onItemFocus: handleItemFocus, onItemBlur: handleItemBlur, children: Array.isArray(node.children) ? node.children.map((item) => renderTree(item)) : null }, node.id);
|
|
64224
61929
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
|
|
64225
61930
|
}), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
|
|
64226
61931
|
children
|
|
@@ -65381,17 +63086,17 @@ const stripAccents = (input) => {
|
|
|
65381
63086
|
}, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
|
|
65382
63087
|
const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
|
|
65383
63088
|
return ignoreInvalid ? harmonized.replace(/\s+/g, delimiter) : harmonized.replace(new RegExp(`[^a-z0-9${safeDelimiter}]+`, "g"), delimiter).replace(new RegExp(`${safeDelimiter}+`, "g"), delimiter).replace(new RegExp(`^${safeDelimiter}`, "g"), "").replace(new RegExp(`${safeDelimiter}$`, "g"), "");
|
|
65384
|
-
}, slugify = (
|
|
65385
|
-
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !
|
|
63089
|
+
}, slugify = (node, options = { delimiter: "-", prefix: "" }) => {
|
|
63090
|
+
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node || typeof node == "boolean")
|
|
65386
63091
|
return "";
|
|
65387
63092
|
const { delimiter, prefix: prefix2 } = options;
|
|
65388
|
-
if (typeof
|
|
63093
|
+
if (typeof node == "boolean")
|
|
65389
63094
|
return "";
|
|
65390
|
-
if (typeof
|
|
65391
|
-
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(
|
|
63095
|
+
if (typeof node == "string" || typeof node == "number") {
|
|
63096
|
+
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node), delimiter);
|
|
65392
63097
|
return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
|
|
65393
63098
|
}
|
|
65394
|
-
return "children" in
|
|
63099
|
+
return "children" in node ? slugify(node.children) : "type" in node ? slugify(node.props.children, options) : Symbol.iterator in node ? slugify(Array.from(node).map((subNode) => slugify(subNode, { delimiter })).join(delimiter), options) : "";
|
|
65395
63100
|
};
|
|
65396
63101
|
var _default = slugify$1.default = slugify;
|
|
65397
63102
|
const useSlug = ({
|
|
@@ -66133,101 +63838,7 @@ const WidgetAppsFooter = () => {
|
|
|
66133
63838
|
!bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
|
|
66134
63839
|
bookmarkedApps.slice(0, 6).map((app, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: app.address, className: "bookmarked-app", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AppIcon$1, { app, size: "32" }) }, index2))
|
|
66135
63840
|
] });
|
|
66136
|
-
}
|
|
66137
|
-
function Help({
|
|
66138
|
-
isHelpOpen,
|
|
66139
|
-
setIsHelpOpen,
|
|
66140
|
-
parsedHeadline,
|
|
66141
|
-
parsedContent,
|
|
66142
|
-
error
|
|
66143
|
-
}) {
|
|
66144
|
-
const {
|
|
66145
|
-
t: t2
|
|
66146
|
-
} = useTranslation(), handleHelpOpen = () => {
|
|
66147
|
-
setIsHelpOpen(false);
|
|
66148
|
-
};
|
|
66149
|
-
return isHelpOpen ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "help-modal", isOpen: isHelpOpen, onModalClose: handleHelpOpen, scrollable: true, size: "lg", children: [
|
|
66150
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: handleHelpOpen, children: t2("navbar.help") }),
|
|
66151
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Subtitle, { children: error ? t2("help.notfound.title") : parsedHeadline }),
|
|
66152
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { className: error ? "d-flex" : null, children: error ? t2("help.notfound.text") : parsedContent })
|
|
66153
|
-
] }), document.getElementById("portal")) : null;
|
|
66154
|
-
}
|
|
66155
|
-
function useHelp() {
|
|
66156
|
-
var _a2, _b2, _c2, _d2, _e2;
|
|
66157
|
-
const {
|
|
66158
|
-
appCode
|
|
66159
|
-
} = useOdeClient(), {
|
|
66160
|
-
theme
|
|
66161
|
-
} = useOdeTheme(), [html, setHtml] = reactExports.useState(""), [visibility, setVisibility] = reactExports.useState(true), [isModalOpen, setIsModalOpen] = reactExports.useState(false), [error, setError] = reactExports.useState(false), helpPath = theme != null && theme.is1d ? "/help-1d" : "/help-2d";
|
|
66162
|
-
reactExports.useEffect(() => {
|
|
66163
|
-
(async () => {
|
|
66164
|
-
let helpURL = "";
|
|
66165
|
-
helpURL = helpPath + "/application/" + appCode + "/", !appCode && window.location.pathname !== "/adapter" ? helpURL = helpPath + "/application/portal/" : window.location.pathname === "/adapter" ? helpURL = helpPath + "/application/" + window.location.search.split("eliot=")[1].split("&")[0] + "/" : window.location.pathname.includes("/directory/class-admin") ? helpURL = helpPath + "/application/parametrage-de-la-classe/" : (window.location.pathname.includes("/userbook/mon-compte") || window.location.pathname.includes("/timeline/preferencesView") || window.location.pathname.includes("/timeline/historyView")) && (helpURL = helpPath + "/application/userbook/");
|
|
66166
|
-
try {
|
|
66167
|
-
const res = await fetch(helpURL), html2 = await res.text();
|
|
66168
|
-
if (res.status === 404) {
|
|
66169
|
-
setError(true);
|
|
66170
|
-
return;
|
|
66171
|
-
}
|
|
66172
|
-
setHtml(html2), setError(false);
|
|
66173
|
-
} catch (error2) {
|
|
66174
|
-
setError(true), console.error(error2);
|
|
66175
|
-
}
|
|
66176
|
-
})();
|
|
66177
|
-
}, [appCode, helpPath]);
|
|
66178
|
-
const parsedHTML = HTMLReactParser$1(html, {
|
|
66179
|
-
replace: (domNode) => {
|
|
66180
|
-
const typedDomNode = domNode;
|
|
66181
|
-
if (typedDomNode.attribs && typedDomNode.attribs.id === "TOC")
|
|
66182
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { id: "TOC", children: [
|
|
66183
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => {
|
|
66184
|
-
setVisibility(!visibility);
|
|
66185
|
-
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgBurgerMenu$1, {}) }),
|
|
66186
|
-
domToReact(typedDomNode.children, {
|
|
66187
|
-
replace: (domNode2) => {
|
|
66188
|
-
const typedDomNode2 = domNode2;
|
|
66189
|
-
if (typedDomNode2.attribs && typedDomNode2.name === "ul")
|
|
66190
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { id: "TOC-list", style: {
|
|
66191
|
-
display: visibility ? "block" : "none"
|
|
66192
|
-
}, children: domToReact(typedDomNode2.children, {
|
|
66193
|
-
replace: (domNode3) => {
|
|
66194
|
-
const typedDomNode3 = domNode3;
|
|
66195
|
-
if (typedDomNode3.attribs && typedDomNode3.name === "a")
|
|
66196
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { ...attributesToProps2(typedDomNode3.attribs), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: () => {
|
|
66197
|
-
setVisibility(false);
|
|
66198
|
-
}, children: domToReact(typedDomNode3.children) }) });
|
|
66199
|
-
}
|
|
66200
|
-
}) });
|
|
66201
|
-
}
|
|
66202
|
-
})
|
|
66203
|
-
] });
|
|
66204
|
-
if (typedDomNode.attribs && typedDomNode.attribs.class === "section level2") {
|
|
66205
|
-
const props = attributesToProps2(domNode.attribs);
|
|
66206
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: "section level2", style: {
|
|
66207
|
-
display: typedDomNode.attribs.id !== "présentation" ? "none" : "block"
|
|
66208
|
-
}, children: domToReact(typedDomNode.children, {
|
|
66209
|
-
replace: (domNode2) => {
|
|
66210
|
-
const typedDomNode2 = domNode2;
|
|
66211
|
-
if (typedDomNode2.attribs && typedDomNode2.name === "img") {
|
|
66212
|
-
const attribs = domNode2.attribs.src;
|
|
66213
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { ...attributesToProps2(typedDomNode2.attribs), src: `${helpPath}/${attribs}`, alt: "" });
|
|
66214
|
-
}
|
|
66215
|
-
}
|
|
66216
|
-
}) });
|
|
66217
|
-
}
|
|
66218
|
-
}
|
|
66219
|
-
}), parsedContent = (_c2 = (_b2 = (_a2 = parsedHTML == null ? void 0 : parsedHTML.props) == null ? void 0 : _a2.children.find((child) => child.type === "body")) == null ? void 0 : _b2.props) == null ? void 0 : _c2.children, parsedHeadline = (_e2 = (_d2 = parsedContent == null ? void 0 : parsedContent.find((child) => child.type === "p")) == null ? void 0 : _d2.props) == null ? void 0 : _e2.children;
|
|
66220
|
-
return {
|
|
66221
|
-
html,
|
|
66222
|
-
visibility,
|
|
66223
|
-
isModalOpen,
|
|
66224
|
-
setIsModalOpen,
|
|
66225
|
-
parsedContent,
|
|
66226
|
-
parsedHeadline,
|
|
66227
|
-
error
|
|
66228
|
-
};
|
|
66229
|
-
}
|
|
66230
|
-
const SearchEngine = () => {
|
|
63841
|
+
}, SearchEngine = () => {
|
|
66231
63842
|
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
66232
63843
|
t: t2
|
|
66233
63844
|
} = useTranslation();
|
|
@@ -66261,15 +63872,8 @@ const SearchEngine = () => {
|
|
|
66261
63872
|
user,
|
|
66262
63873
|
avatar
|
|
66263
63874
|
} = useUser(), {
|
|
66264
|
-
currentLanguage,
|
|
66265
63875
|
currentApp
|
|
66266
|
-
} = useOdeClient(), {
|
|
66267
|
-
isModalOpen: isHelpOpen,
|
|
66268
|
-
setIsModalOpen: setIsHelpOpen,
|
|
66269
|
-
parsedContent,
|
|
66270
|
-
parsedHeadline,
|
|
66271
|
-
error
|
|
66272
|
-
} = useHelp(), classes2 = clsx("header", {
|
|
63876
|
+
} = useOdeClient(), classes2 = clsx("header", {
|
|
66273
63877
|
"no-2d": is1d,
|
|
66274
63878
|
"no-1d": !is1d
|
|
66275
63879
|
}), {
|
|
@@ -66305,15 +63909,6 @@ const SearchEngine = () => {
|
|
|
66305
63909
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
|
|
66306
63910
|
] }) }),
|
|
66307
63911
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, { link: "/userbook/mon-compte", className: "dropdown-item", translate: t2("navbar.myaccount"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneProfile$1, { className: "icon user" }) }) }),
|
|
66308
|
-
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66309
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: () => {
|
|
66310
|
-
setIsHelpOpen(true);
|
|
66311
|
-
}, children: [
|
|
66312
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneAssistance$1, { className: "icon help" }),
|
|
66313
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.help") })
|
|
66314
|
-
] }),
|
|
66315
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66316
|
-
] }) : null,
|
|
66317
63912
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
|
|
66318
63913
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
|
|
66319
63914
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
|
|
@@ -66358,15 +63953,6 @@ const SearchEngine = () => {
|
|
|
66358
63953
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
|
|
66359
63954
|
hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages2 })
|
|
66360
63955
|
] }) }),
|
|
66361
|
-
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66362
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
|
|
66363
|
-
setIsHelpOpen(true);
|
|
66364
|
-
}, children: [
|
|
66365
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoAssistance$1, { color: "#fff" }),
|
|
66366
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("support") })
|
|
66367
|
-
] }),
|
|
66368
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66369
|
-
] }) : null,
|
|
66370
63956
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
|
|
66371
63957
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "nav-link btn btn-naked d-md-none", type: "button", "aria-controls": "dropdown-navbar", "aria-expanded": !isCollapsed, "aria-label": t2("navbar.open.menu"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { className: "icon rafter-down", width: "20", height: "20", color: "#fff" }) }),
|
|
66372
63958
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
@@ -66401,7 +63987,9 @@ const SearchEngine = () => {
|
|
|
66401
63987
|
showCookiesConsent,
|
|
66402
63988
|
handleConsultCookies,
|
|
66403
63989
|
handleCloseCookiesConsent
|
|
66404
|
-
} = useCookiesConsent()
|
|
63990
|
+
} = useCookiesConsent();
|
|
63991
|
+
useZendeskGuide();
|
|
63992
|
+
const classes2 = clsx("d-flex flex-column bg-white", {
|
|
66405
63993
|
"container-fluid": !headless,
|
|
66406
63994
|
"rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
|
|
66407
63995
|
"mt-24": (theme == null ? void 0 : theme.is1d) && !headless
|
|
@@ -66640,7 +64228,7 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
|
|
|
66640
64228
|
var withSelectorExports = withSelector.exports;
|
|
66641
64229
|
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs$1(withSelectorExports);
|
|
66642
64230
|
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
66643
|
-
const { useDebugValue } = React
|
|
64231
|
+
const { useDebugValue } = React;
|
|
66644
64232
|
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
66645
64233
|
let didWarnAboutEqualityFn = false;
|
|
66646
64234
|
const identity = (arg) => arg;
|
|
@@ -66887,11 +64475,11 @@ class TreeNodeFolderWrapper {
|
|
|
66887
64475
|
}
|
|
66888
64476
|
}
|
|
66889
64477
|
const wrapTreeNode = (treeNode, folders, parentId) => {
|
|
66890
|
-
return modifyNode(treeNode, (
|
|
66891
|
-
if (
|
|
66892
|
-
|
|
64478
|
+
return modifyNode(treeNode, (node) => {
|
|
64479
|
+
if (node.id === parentId) {
|
|
64480
|
+
node.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
|
|
66893
64481
|
}
|
|
66894
|
-
return
|
|
64482
|
+
return node;
|
|
66895
64483
|
});
|
|
66896
64484
|
};
|
|
66897
64485
|
const initialState = {
|
|
@@ -67288,45 +64876,45 @@ const useTrashModal = () => {
|
|
|
67288
64876
|
};
|
|
67289
64877
|
};
|
|
67290
64878
|
function addNode(treeData, { parentId, newFolder }) {
|
|
67291
|
-
return modifyNode(treeData, (
|
|
64879
|
+
return modifyNode(treeData, (node) => {
|
|
67292
64880
|
var _a2;
|
|
67293
|
-
if (
|
|
64881
|
+
if (node.id === parentId) {
|
|
67294
64882
|
const parentAncestors = [
|
|
67295
|
-
...((_a2 =
|
|
64883
|
+
...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
|
|
67296
64884
|
];
|
|
67297
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
64885
|
+
const ancestors = arrayUnique([...parentAncestors, node.id]);
|
|
67298
64886
|
const newNode = {
|
|
67299
|
-
...
|
|
64887
|
+
...node,
|
|
67300
64888
|
children: [
|
|
67301
|
-
...
|
|
64889
|
+
...node.children || [],
|
|
67302
64890
|
new TreeNodeFolderWrapper({ ...newFolder, ancestors })
|
|
67303
64891
|
]
|
|
67304
64892
|
};
|
|
67305
64893
|
return newNode;
|
|
67306
64894
|
} else {
|
|
67307
|
-
return
|
|
64895
|
+
return node;
|
|
67308
64896
|
}
|
|
67309
64897
|
});
|
|
67310
64898
|
}
|
|
67311
64899
|
function deleteNode(treeData, { folders }) {
|
|
67312
|
-
return modifyNode(treeData, (
|
|
67313
|
-
if (folders.includes(
|
|
64900
|
+
return modifyNode(treeData, (node) => {
|
|
64901
|
+
if (folders.includes(node.id)) {
|
|
67314
64902
|
return void 0;
|
|
67315
64903
|
} else {
|
|
67316
|
-
return
|
|
64904
|
+
return node;
|
|
67317
64905
|
}
|
|
67318
64906
|
});
|
|
67319
64907
|
}
|
|
67320
64908
|
function moveNode(treeData, { destinationId, folders }) {
|
|
67321
|
-
return modifyNode(treeData, (
|
|
64909
|
+
return modifyNode(treeData, (node, parent) => {
|
|
67322
64910
|
var _a2, _b2;
|
|
67323
|
-
if (destinationId ===
|
|
64911
|
+
if (destinationId === node.id) {
|
|
67324
64912
|
const parentAncestors = [
|
|
67325
|
-
...((_a2 =
|
|
64913
|
+
...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
|
|
67326
64914
|
];
|
|
67327
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
67328
|
-
const newChildren = [...
|
|
67329
|
-
const childrenIds = ((_b2 =
|
|
64915
|
+
const ancestors = arrayUnique([...parentAncestors, node.id]);
|
|
64916
|
+
const newChildren = [...node.children || []];
|
|
64917
|
+
const childrenIds = ((_b2 = node.children) == null ? void 0 : _b2.map((child) => child.id)) || [];
|
|
67330
64918
|
for (const folder of folders) {
|
|
67331
64919
|
if (!childrenIds.includes(folder)) {
|
|
67332
64920
|
const item = findNodeById(folder, treeData);
|
|
@@ -67340,23 +64928,23 @@ function moveNode(treeData, { destinationId, folders }) {
|
|
|
67340
64928
|
}
|
|
67341
64929
|
}
|
|
67342
64930
|
const newNode = {
|
|
67343
|
-
...
|
|
64931
|
+
...node,
|
|
67344
64932
|
children: newChildren
|
|
67345
64933
|
};
|
|
67346
64934
|
return newNode;
|
|
67347
|
-
} else if (folders.includes(
|
|
64935
|
+
} else if (folders.includes(node.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
|
|
67348
64936
|
return void 0;
|
|
67349
64937
|
} else {
|
|
67350
|
-
return
|
|
64938
|
+
return node;
|
|
67351
64939
|
}
|
|
67352
64940
|
});
|
|
67353
64941
|
}
|
|
67354
64942
|
function updateNode(treeData, { folderId, newFolder }) {
|
|
67355
|
-
return modifyNode(treeData, (
|
|
67356
|
-
if (
|
|
64943
|
+
return modifyNode(treeData, (node) => {
|
|
64944
|
+
if (node.id === folderId) {
|
|
67357
64945
|
return new TreeNodeFolderWrapper(newFolder);
|
|
67358
64946
|
} else {
|
|
67359
|
-
return
|
|
64947
|
+
return node;
|
|
67360
64948
|
}
|
|
67361
64949
|
});
|
|
67362
64950
|
}
|
|
@@ -68913,10 +66501,10 @@ const ResourcesList = ({
|
|
|
68913
66501
|
setSelectedResources([...selectedResources, resource]);
|
|
68914
66502
|
}
|
|
68915
66503
|
const classes2 = clsx("grid ps-0 list-unstyled");
|
|
68916
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React
|
|
66504
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
68917
66505
|
/* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
|
|
68918
66506
|
// eslint-disable-next-line react/no-array-index-key
|
|
68919
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(React
|
|
66507
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
|
|
68920
66508
|
const { id: id2, updatedAt } = resource;
|
|
68921
66509
|
const time = fromNow(updatedAt);
|
|
68922
66510
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|