ode-explorer 1.4.10 → 1.4.11-develop.202406111045
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.html +12 -18
- package/dist/index.js +555 -2840
- package/dist/version.txt +1 -1
- package/lib/ActionBarContainer.js +199 -198
- package/lib/DeleteModal.js +3 -3
- package/lib/ExportModal.js +53 -0
- package/lib/FolderModal.js +23 -22
- package/lib/Library.js +1 -1
- package/lib/MoveModal.js +6 -6
- package/lib/ResourcesList.js +70 -206
- package/lib/features/ActionBar/Export/ExportModal.d.ts +11 -0
- package/lib/features/ActionBar/Export/useExportModal.d.ts +3 -0
- package/lib/features/ActionBar/useActionBar.d.ts +4 -1
- package/lib/index2.js +250 -249
- package/package.json +7 -21
- package/lib/config/index.d.ts +0 -3
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
|
}
|
|
@@ -4239,7 +4239,10 @@ instance.use(Backend).use(initReactI18next).init({
|
|
|
4239
4239
|
prefix: "[[",
|
|
4240
4240
|
suffix: "]]"
|
|
4241
4241
|
},
|
|
4242
|
-
debug: false
|
|
4242
|
+
debug: false,
|
|
4243
|
+
react: {
|
|
4244
|
+
useSuspense: false
|
|
4245
|
+
}
|
|
4243
4246
|
});
|
|
4244
4247
|
var Subscribable = class {
|
|
4245
4248
|
constructor() {
|
|
@@ -7228,7 +7231,7 @@ var uaParser = { exports: {} };
|
|
|
7228
7231
|
return str.toLowerCase();
|
|
7229
7232
|
}, majorize = function(version) {
|
|
7230
7233
|
return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
|
|
7231
|
-
},
|
|
7234
|
+
}, trim = function(str, len) {
|
|
7232
7235
|
if (typeof str === STR_TYPE) {
|
|
7233
7236
|
str = str.replace(/^\s\s*/, EMPTY);
|
|
7234
7237
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
|
@@ -8064,7 +8067,7 @@ var uaParser = { exports: {} };
|
|
|
8064
8067
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
8065
8068
|
// HbbTV devices
|
|
8066
8069
|
],
|
|
8067
|
-
[[VENDOR,
|
|
8070
|
+
[[VENDOR, trim], [MODEL, trim], [TYPE2, SMARTTV]],
|
|
8068
8071
|
[
|
|
8069
8072
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
8070
8073
|
// SmartTV from Unidentified Vendors
|
|
@@ -8408,7 +8411,7 @@ var uaParser = { exports: {} };
|
|
|
8408
8411
|
return _ua;
|
|
8409
8412
|
};
|
|
8410
8413
|
this.setUA = function(ua3) {
|
|
8411
|
-
_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;
|
|
8412
8415
|
return this;
|
|
8413
8416
|
};
|
|
8414
8417
|
this.setUA(_ua);
|
|
@@ -8457,7 +8460,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8457
8460
|
return t2;
|
|
8458
8461
|
}
|
|
8459
8462
|
return e2;
|
|
8460
|
-
}, i$
|
|
8463
|
+
}, i$1 = (e2, t2, r2, i2, p2) => {
|
|
8461
8464
|
let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
|
|
8462
8465
|
let t3 = 0, r3 = 11;
|
|
8463
8466
|
for (; t3 < e3.length; )
|
|
@@ -8487,7 +8490,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8487
8490
|
}, "");
|
|
8488
8491
|
function u$4(e2) {
|
|
8489
8492
|
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
8490
|
-
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);
|
|
8491
8494
|
}
|
|
8492
8495
|
let d$1, f$1, g$1;
|
|
8493
8496
|
u$4.bind({ g: 1 });
|
|
@@ -8969,35 +8972,7 @@ const SvgAlertCircle = ({
|
|
|
8969
8972
|
)
|
|
8970
8973
|
]
|
|
8971
8974
|
}
|
|
8972
|
-
), SvgBookmark$1 = SvgBookmark,
|
|
8973
|
-
title,
|
|
8974
|
-
titleId,
|
|
8975
|
-
...props
|
|
8976
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
8977
|
-
"svg",
|
|
8978
|
-
{
|
|
8979
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8980
|
-
width: "24",
|
|
8981
|
-
height: "24",
|
|
8982
|
-
fill: "none",
|
|
8983
|
-
viewBox: "0 0 24 24",
|
|
8984
|
-
"aria-hidden": "true",
|
|
8985
|
-
"aria-labelledby": titleId,
|
|
8986
|
-
...props,
|
|
8987
|
-
children: [
|
|
8988
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
8989
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8990
|
-
"path",
|
|
8991
|
-
{
|
|
8992
|
-
fill: "currentColor",
|
|
8993
|
-
fillRule: "evenodd",
|
|
8994
|
-
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",
|
|
8995
|
-
clipRule: "evenodd"
|
|
8996
|
-
}
|
|
8997
|
-
)
|
|
8998
|
-
]
|
|
8999
|
-
}
|
|
9000
|
-
), SvgBurgerMenu$1 = SvgBurgerMenu, SvgClose = ({
|
|
8975
|
+
), SvgBookmark$1 = SvgBookmark, SvgClose = ({
|
|
9001
8976
|
title,
|
|
9002
8977
|
titleId,
|
|
9003
8978
|
...props
|
|
@@ -16893,8 +16868,8 @@ const INPUT_VALIDATION_RULES = {
|
|
|
16893
16868
|
required: "required",
|
|
16894
16869
|
validate: "validate"
|
|
16895
16870
|
};
|
|
16896
|
-
const HookFormContext = React
|
|
16897
|
-
const useFormContext = () => React
|
|
16871
|
+
const HookFormContext = React.createContext(null);
|
|
16872
|
+
const useFormContext = () => React.useContext(HookFormContext);
|
|
16898
16873
|
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
16899
16874
|
const result = {
|
|
16900
16875
|
defaultValues: control._defaultValues
|
|
@@ -16922,9 +16897,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
|
|
|
16922
16897
|
var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
|
|
16923
16898
|
var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
|
|
16924
16899
|
function useSubscribe(props) {
|
|
16925
|
-
const _props = React
|
|
16900
|
+
const _props = React.useRef(props);
|
|
16926
16901
|
_props.current = props;
|
|
16927
|
-
React
|
|
16902
|
+
React.useEffect(() => {
|
|
16928
16903
|
const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
|
|
16929
16904
|
next: _props.current.next
|
|
16930
16905
|
});
|
|
@@ -16936,9 +16911,9 @@ function useSubscribe(props) {
|
|
|
16936
16911
|
function useFormState(props) {
|
|
16937
16912
|
const methods = useFormContext();
|
|
16938
16913
|
const { control = methods.control, disabled, name, exact } = props || {};
|
|
16939
|
-
const [formState, updateFormState] = React
|
|
16940
|
-
const _mounted = React
|
|
16941
|
-
const _localProxyFormState = React
|
|
16914
|
+
const [formState, updateFormState] = React.useState(control._formState);
|
|
16915
|
+
const _mounted = React.useRef(true);
|
|
16916
|
+
const _localProxyFormState = React.useRef({
|
|
16942
16917
|
isDirty: false,
|
|
16943
16918
|
isLoading: false,
|
|
16944
16919
|
dirtyFields: false,
|
|
@@ -16947,7 +16922,7 @@ function useFormState(props) {
|
|
|
16947
16922
|
isValid: false,
|
|
16948
16923
|
errors: false
|
|
16949
16924
|
});
|
|
16950
|
-
const _name = React
|
|
16925
|
+
const _name = React.useRef(name);
|
|
16951
16926
|
_name.current = name;
|
|
16952
16927
|
useSubscribe({
|
|
16953
16928
|
disabled,
|
|
@@ -16957,7 +16932,7 @@ function useFormState(props) {
|
|
|
16957
16932
|
}),
|
|
16958
16933
|
subject: control._subjects.state
|
|
16959
16934
|
});
|
|
16960
|
-
React
|
|
16935
|
+
React.useEffect(() => {
|
|
16961
16936
|
_mounted.current = true;
|
|
16962
16937
|
_localProxyFormState.current.isValid && control._updateValid(true);
|
|
16963
16938
|
return () => {
|
|
@@ -16981,7 +16956,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue2) =
|
|
|
16981
16956
|
function useWatch(props) {
|
|
16982
16957
|
const methods = useFormContext();
|
|
16983
16958
|
const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
|
|
16984
|
-
const _name = React
|
|
16959
|
+
const _name = React.useRef(name);
|
|
16985
16960
|
_name.current = name;
|
|
16986
16961
|
useSubscribe({
|
|
16987
16962
|
disabled,
|
|
@@ -16992,8 +16967,8 @@ function useWatch(props) {
|
|
|
16992
16967
|
}
|
|
16993
16968
|
}
|
|
16994
16969
|
});
|
|
16995
|
-
const [value, updateValue] = React
|
|
16996
|
-
React
|
|
16970
|
+
const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
|
|
16971
|
+
React.useEffect(() => control._removeUnmounted());
|
|
16997
16972
|
return value;
|
|
16998
16973
|
}
|
|
16999
16974
|
var isKey = (value) => /^\w*$/.test(value);
|
|
@@ -17029,12 +17004,12 @@ function useController(props) {
|
|
|
17029
17004
|
control,
|
|
17030
17005
|
name
|
|
17031
17006
|
});
|
|
17032
|
-
const _registerProps = React
|
|
17007
|
+
const _registerProps = React.useRef(control.register(name, {
|
|
17033
17008
|
...props.rules,
|
|
17034
17009
|
value,
|
|
17035
17010
|
...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
|
|
17036
17011
|
}));
|
|
17037
|
-
React
|
|
17012
|
+
React.useEffect(() => {
|
|
17038
17013
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
17039
17014
|
const updateMounted = (name2, value2) => {
|
|
17040
17015
|
const field = get(control._fields, name2);
|
|
@@ -17054,7 +17029,7 @@ function useController(props) {
|
|
|
17054
17029
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
17055
17030
|
};
|
|
17056
17031
|
}, [name, control, isArrayField, shouldUnregister]);
|
|
17057
|
-
React
|
|
17032
|
+
React.useEffect(() => {
|
|
17058
17033
|
if (get(control._fields, name)) {
|
|
17059
17034
|
control._updateDisabledField({
|
|
17060
17035
|
disabled,
|
|
@@ -17068,15 +17043,15 @@ function useController(props) {
|
|
|
17068
17043
|
field: {
|
|
17069
17044
|
name,
|
|
17070
17045
|
value,
|
|
17071
|
-
...isBoolean$1(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
|
|
17072
|
-
onChange: React
|
|
17046
|
+
...isBoolean$1(disabled) || isBoolean$1(formState.disabled) ? { disabled: formState.disabled || disabled } : {},
|
|
17047
|
+
onChange: React.useCallback((event) => _registerProps.current.onChange({
|
|
17073
17048
|
target: {
|
|
17074
17049
|
value: getEventValue(event),
|
|
17075
17050
|
name
|
|
17076
17051
|
},
|
|
17077
17052
|
type: EVENTS.CHANGE
|
|
17078
17053
|
}), [name]),
|
|
17079
|
-
onBlur: React
|
|
17054
|
+
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
17080
17055
|
target: {
|
|
17081
17056
|
value: get(control._formValues, name),
|
|
17082
17057
|
name
|
|
@@ -17582,7 +17557,7 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
17582
17557
|
touchedFields: {},
|
|
17583
17558
|
dirtyFields: {},
|
|
17584
17559
|
errors: _options.errors || {},
|
|
17585
|
-
disabled:
|
|
17560
|
+
disabled: false
|
|
17586
17561
|
};
|
|
17587
17562
|
let _fields = {};
|
|
17588
17563
|
let _defaultValues = isObject$3(_options.defaultValues) || isObject$3(_options.values) ? cloneObject(_options.defaultValues || _options.values) || {} : {};
|
|
@@ -17613,6 +17588,7 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
17613
17588
|
array: createSubject(),
|
|
17614
17589
|
state: createSubject()
|
|
17615
17590
|
};
|
|
17591
|
+
const shouldCaptureDirtyFields = props.resetOptions && props.resetOptions.keepDirtyValues;
|
|
17616
17592
|
const validationModeBeforeSubmit = getValidationModes(_options.mode);
|
|
17617
17593
|
const validationModeAfterSubmit = getValidationModes(_options.reValidateMode);
|
|
17618
17594
|
const shouldDisplayAllAssociatedErrors = _options.criteriaMode === VALIDATION_MODE.all;
|
|
@@ -18140,17 +18116,17 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18140
18116
|
const resetField = (name, options = {}) => {
|
|
18141
18117
|
if (get(_fields, name)) {
|
|
18142
18118
|
if (isUndefined(options.defaultValue)) {
|
|
18143
|
-
setValue(name,
|
|
18119
|
+
setValue(name, get(_defaultValues, name));
|
|
18144
18120
|
} else {
|
|
18145
18121
|
setValue(name, options.defaultValue);
|
|
18146
|
-
set(_defaultValues, name,
|
|
18122
|
+
set(_defaultValues, name, options.defaultValue);
|
|
18147
18123
|
}
|
|
18148
18124
|
if (!options.keepTouched) {
|
|
18149
18125
|
unset(_formState.touchedFields, name);
|
|
18150
18126
|
}
|
|
18151
18127
|
if (!options.keepDirty) {
|
|
18152
18128
|
unset(_formState.dirtyFields, name);
|
|
18153
|
-
_formState.isDirty = options.defaultValue ? _getDirty(name,
|
|
18129
|
+
_formState.isDirty = options.defaultValue ? _getDirty(name, get(_defaultValues, name)) : _getDirty();
|
|
18154
18130
|
}
|
|
18155
18131
|
if (!options.keepError) {
|
|
18156
18132
|
unset(_formState.errors, name);
|
|
@@ -18167,7 +18143,7 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18167
18143
|
_defaultValues = updatedValues;
|
|
18168
18144
|
}
|
|
18169
18145
|
if (!keepStateOptions.keepValues) {
|
|
18170
|
-
if (keepStateOptions.keepDirtyValues) {
|
|
18146
|
+
if (keepStateOptions.keepDirtyValues || shouldCaptureDirtyFields) {
|
|
18171
18147
|
for (const fieldName of _names.mount) {
|
|
18172
18148
|
get(_formState.dirtyFields, fieldName) ? set(values, fieldName, get(_formValues, fieldName)) : setValue(fieldName, get(values, fieldName));
|
|
18173
18149
|
}
|
|
@@ -18318,9 +18294,9 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18318
18294
|
};
|
|
18319
18295
|
}
|
|
18320
18296
|
function useForm(props = {}) {
|
|
18321
|
-
const _formControl = React
|
|
18322
|
-
const _values = React
|
|
18323
|
-
const [formState, updateFormState] = React
|
|
18297
|
+
const _formControl = React.useRef();
|
|
18298
|
+
const _values = React.useRef();
|
|
18299
|
+
const [formState, updateFormState] = React.useState({
|
|
18324
18300
|
isDirty: false,
|
|
18325
18301
|
isValidating: false,
|
|
18326
18302
|
isLoading: isFunction(props.defaultValues),
|
|
@@ -18332,7 +18308,7 @@ function useForm(props = {}) {
|
|
|
18332
18308
|
dirtyFields: {},
|
|
18333
18309
|
touchedFields: {},
|
|
18334
18310
|
errors: props.errors || {},
|
|
18335
|
-
disabled:
|
|
18311
|
+
disabled: false,
|
|
18336
18312
|
defaultValues: isFunction(props.defaultValues) ? void 0 : props.defaultValues
|
|
18337
18313
|
});
|
|
18338
18314
|
if (!_formControl.current) {
|
|
@@ -18351,8 +18327,8 @@ function useForm(props = {}) {
|
|
|
18351
18327
|
}
|
|
18352
18328
|
}
|
|
18353
18329
|
});
|
|
18354
|
-
React
|
|
18355
|
-
React
|
|
18330
|
+
React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18331
|
+
React.useEffect(() => {
|
|
18356
18332
|
if (control._proxyFormState.isDirty) {
|
|
18357
18333
|
const isDirty = control._getDirty();
|
|
18358
18334
|
if (isDirty !== formState.isDirty) {
|
|
@@ -18362,7 +18338,7 @@ function useForm(props = {}) {
|
|
|
18362
18338
|
}
|
|
18363
18339
|
}
|
|
18364
18340
|
}, [control, formState.isDirty]);
|
|
18365
|
-
React
|
|
18341
|
+
React.useEffect(() => {
|
|
18366
18342
|
if (props.values && !deepEqual$1(props.values, _values.current)) {
|
|
18367
18343
|
control._reset(props.values, control._options.resetOptions);
|
|
18368
18344
|
_values.current = props.values;
|
|
@@ -18371,12 +18347,12 @@ function useForm(props = {}) {
|
|
|
18371
18347
|
control._resetDefaultValues();
|
|
18372
18348
|
}
|
|
18373
18349
|
}, [props.values, control]);
|
|
18374
|
-
React
|
|
18350
|
+
React.useEffect(() => {
|
|
18375
18351
|
if (props.errors) {
|
|
18376
18352
|
control._setErrors(props.errors);
|
|
18377
18353
|
}
|
|
18378
18354
|
}, [props.errors, control]);
|
|
18379
|
-
React
|
|
18355
|
+
React.useEffect(() => {
|
|
18380
18356
|
if (!control._state.mount) {
|
|
18381
18357
|
control._updateValid();
|
|
18382
18358
|
control._state.mount = true;
|
|
@@ -18390,9 +18366,9 @@ function useForm(props = {}) {
|
|
|
18390
18366
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
18391
18367
|
return _formControl.current;
|
|
18392
18368
|
}
|
|
18393
|
-
function getWindow$3(
|
|
18369
|
+
function getWindow$3(node) {
|
|
18394
18370
|
var _node$ownerDocument;
|
|
18395
|
-
return (
|
|
18371
|
+
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18396
18372
|
}
|
|
18397
18373
|
function isElement$3(value) {
|
|
18398
18374
|
return value instanceof Element || value instanceof getWindow$3(value).Element;
|
|
@@ -18955,19 +18931,19 @@ const size$2 = function(options) {
|
|
|
18955
18931
|
}
|
|
18956
18932
|
};
|
|
18957
18933
|
};
|
|
18958
|
-
function getNodeName$1(
|
|
18959
|
-
if (isNode$1(
|
|
18960
|
-
return (
|
|
18934
|
+
function getNodeName$1(node) {
|
|
18935
|
+
if (isNode$1(node)) {
|
|
18936
|
+
return (node.nodeName || "").toLowerCase();
|
|
18961
18937
|
}
|
|
18962
18938
|
return "#document";
|
|
18963
18939
|
}
|
|
18964
|
-
function getWindow$2(
|
|
18940
|
+
function getWindow$2(node) {
|
|
18965
18941
|
var _node$ownerDocument;
|
|
18966
|
-
return (
|
|
18942
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18967
18943
|
}
|
|
18968
|
-
function getDocumentElement$1(
|
|
18944
|
+
function getDocumentElement$1(node) {
|
|
18969
18945
|
var _ref;
|
|
18970
|
-
return (_ref = (isNode$1(
|
|
18946
|
+
return (_ref = (isNode$1(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
18971
18947
|
}
|
|
18972
18948
|
function isNode$1(value) {
|
|
18973
18949
|
return value instanceof Node || value instanceof getWindow$2(value).Node;
|
|
@@ -19016,8 +18992,8 @@ function isWebKit() {
|
|
|
19016
18992
|
return false;
|
|
19017
18993
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
19018
18994
|
}
|
|
19019
|
-
function isLastTraversableNode(
|
|
19020
|
-
return ["html", "body", "#document"].includes(getNodeName$1(
|
|
18995
|
+
function isLastTraversableNode(node) {
|
|
18996
|
+
return ["html", "body", "#document"].includes(getNodeName$1(node));
|
|
19021
18997
|
}
|
|
19022
18998
|
function getComputedStyle$3(element) {
|
|
19023
18999
|
return getWindow$2(element).getComputedStyle(element);
|
|
@@ -19034,30 +19010,30 @@ function getNodeScroll$1(element) {
|
|
|
19034
19010
|
scrollTop: element.pageYOffset
|
|
19035
19011
|
};
|
|
19036
19012
|
}
|
|
19037
|
-
function getParentNode$1(
|
|
19038
|
-
if (getNodeName$1(
|
|
19039
|
-
return
|
|
19013
|
+
function getParentNode$1(node) {
|
|
19014
|
+
if (getNodeName$1(node) === "html") {
|
|
19015
|
+
return node;
|
|
19040
19016
|
}
|
|
19041
19017
|
const result = (
|
|
19042
19018
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
isShadowRoot$1(
|
|
19046
|
-
getDocumentElement$1(
|
|
19019
|
+
node.assignedSlot || // DOM Element detected.
|
|
19020
|
+
node.parentNode || // ShadowRoot detected.
|
|
19021
|
+
isShadowRoot$1(node) && node.host || // Fallback.
|
|
19022
|
+
getDocumentElement$1(node)
|
|
19047
19023
|
);
|
|
19048
19024
|
return isShadowRoot$1(result) ? result.host : result;
|
|
19049
19025
|
}
|
|
19050
|
-
function getNearestOverflowAncestor(
|
|
19051
|
-
const parentNode = getParentNode$1(
|
|
19026
|
+
function getNearestOverflowAncestor(node) {
|
|
19027
|
+
const parentNode = getParentNode$1(node);
|
|
19052
19028
|
if (isLastTraversableNode(parentNode)) {
|
|
19053
|
-
return
|
|
19029
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
19054
19030
|
}
|
|
19055
19031
|
if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
|
|
19056
19032
|
return parentNode;
|
|
19057
19033
|
}
|
|
19058
19034
|
return getNearestOverflowAncestor(parentNode);
|
|
19059
19035
|
}
|
|
19060
|
-
function getOverflowAncestors(
|
|
19036
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
19061
19037
|
var _node$ownerDocument2;
|
|
19062
19038
|
if (list === void 0) {
|
|
19063
19039
|
list = [];
|
|
@@ -19065,8 +19041,8 @@ function getOverflowAncestors(node2, list, traverseIframes) {
|
|
|
19065
19041
|
if (traverseIframes === void 0) {
|
|
19066
19042
|
traverseIframes = true;
|
|
19067
19043
|
}
|
|
19068
|
-
const scrollableAncestor = getNearestOverflowAncestor(
|
|
19069
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 =
|
|
19044
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
19045
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
19070
19046
|
const win = getWindow$2(scrollableAncestor);
|
|
19071
19047
|
if (isBody) {
|
|
19072
19048
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
@@ -19738,16 +19714,16 @@ function useFloating$1(options) {
|
|
|
19738
19714
|
}
|
|
19739
19715
|
const [_reference, _setReference] = reactExports.useState(null);
|
|
19740
19716
|
const [_floating, _setFloating] = reactExports.useState(null);
|
|
19741
|
-
const setReference = reactExports.useCallback((
|
|
19742
|
-
if (
|
|
19743
|
-
referenceRef.current =
|
|
19744
|
-
_setReference(
|
|
19717
|
+
const setReference = reactExports.useCallback((node) => {
|
|
19718
|
+
if (node !== referenceRef.current) {
|
|
19719
|
+
referenceRef.current = node;
|
|
19720
|
+
_setReference(node);
|
|
19745
19721
|
}
|
|
19746
19722
|
}, []);
|
|
19747
|
-
const setFloating = reactExports.useCallback((
|
|
19748
|
-
if (
|
|
19749
|
-
floatingRef.current =
|
|
19750
|
-
_setFloating(
|
|
19723
|
+
const setFloating = reactExports.useCallback((node) => {
|
|
19724
|
+
if (node !== floatingRef.current) {
|
|
19725
|
+
floatingRef.current = node;
|
|
19726
|
+
_setFloating(node);
|
|
19751
19727
|
}
|
|
19752
19728
|
}, []);
|
|
19753
19729
|
const referenceEl = externalReference || _reference;
|
|
@@ -19885,7 +19861,7 @@ function useFloatingId() {
|
|
|
19885
19861
|
}, []);
|
|
19886
19862
|
return id2;
|
|
19887
19863
|
}
|
|
19888
|
-
const useReactId = React$
|
|
19864
|
+
const useReactId = React$1[/* @__PURE__ */ "useId".toString()];
|
|
19889
19865
|
const useId = useReactId || useFloatingId;
|
|
19890
19866
|
function createPubSub() {
|
|
19891
19867
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -19905,7 +19881,7 @@ function createPubSub() {
|
|
|
19905
19881
|
}
|
|
19906
19882
|
const FloatingTreeContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
19907
19883
|
const useFloatingTree = () => reactExports.useContext(FloatingTreeContext);
|
|
19908
|
-
const useInsertionEffect = React$
|
|
19884
|
+
const useInsertionEffect = React$1[/* @__PURE__ */ "useInsertionEffect".toString()];
|
|
19909
19885
|
const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
|
|
19910
19886
|
function useEffectEvent(callback) {
|
|
19911
19887
|
const ref2 = reactExports.useRef(() => {
|
|
@@ -19944,23 +19920,23 @@ function useFloating(options) {
|
|
|
19944
19920
|
const dataRef = reactExports.useRef({});
|
|
19945
19921
|
const events2 = reactExports.useState(() => createPubSub())[0];
|
|
19946
19922
|
const floatingId = useId();
|
|
19947
|
-
const setPositionReference = reactExports.useCallback((
|
|
19948
|
-
const positionReference = isElement$3(
|
|
19949
|
-
getBoundingClientRect: () =>
|
|
19950
|
-
contextElement:
|
|
19951
|
-
} :
|
|
19923
|
+
const setPositionReference = reactExports.useCallback((node) => {
|
|
19924
|
+
const positionReference = isElement$3(node) ? {
|
|
19925
|
+
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
19926
|
+
contextElement: node
|
|
19927
|
+
} : node;
|
|
19952
19928
|
position.refs.setReference(positionReference);
|
|
19953
19929
|
}, [position.refs]);
|
|
19954
|
-
const setReference = reactExports.useCallback((
|
|
19955
|
-
if (isElement$3(
|
|
19956
|
-
domReferenceRef.current =
|
|
19957
|
-
setDomReference(
|
|
19930
|
+
const setReference = reactExports.useCallback((node) => {
|
|
19931
|
+
if (isElement$3(node) || node === null) {
|
|
19932
|
+
domReferenceRef.current = node;
|
|
19933
|
+
setDomReference(node);
|
|
19958
19934
|
}
|
|
19959
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
|
|
19960
19936
|
// `null` to support `positionReference` + an unstable `reference`
|
|
19961
19937
|
// callback ref.
|
|
19962
|
-
|
|
19963
|
-
position.refs.setReference(
|
|
19938
|
+
node !== null && !isElement$3(node)) {
|
|
19939
|
+
position.refs.setReference(node);
|
|
19964
19940
|
}
|
|
19965
19941
|
}, [position.refs]);
|
|
19966
19942
|
const refs = reactExports.useMemo(() => ({
|
|
@@ -19985,9 +19961,9 @@ function useFloating(options) {
|
|
|
19985
19961
|
onOpenChange
|
|
19986
19962
|
}), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
|
|
19987
19963
|
index(() => {
|
|
19988
|
-
const
|
|
19989
|
-
if (
|
|
19990
|
-
|
|
19964
|
+
const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
|
|
19965
|
+
if (node) {
|
|
19966
|
+
node.context = context2;
|
|
19991
19967
|
}
|
|
19992
19968
|
});
|
|
19993
19969
|
return reactExports.useMemo(() => ({
|
|
@@ -20987,7 +20963,7 @@ function usePrev(value) {
|
|
|
20987
20963
|
var $node = Symbol.for("Animated:node");
|
|
20988
20964
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
20989
20965
|
var getAnimated = (owner) => owner && owner[$node];
|
|
20990
|
-
var setAnimated = (owner,
|
|
20966
|
+
var setAnimated = (owner, node) => defineHidden(owner, $node, node);
|
|
20991
20967
|
var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
|
|
20992
20968
|
var Animated = class {
|
|
20993
20969
|
constructor() {
|
|
@@ -21114,7 +21090,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21114
21090
|
}
|
|
21115
21091
|
reset() {
|
|
21116
21092
|
if (this.payload) {
|
|
21117
|
-
each(this.payload, (
|
|
21093
|
+
each(this.payload, (node) => node.reset());
|
|
21118
21094
|
}
|
|
21119
21095
|
}
|
|
21120
21096
|
/** Create a payload set. */
|
|
@@ -21132,7 +21108,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21132
21108
|
}
|
|
21133
21109
|
const payload = getPayload(source);
|
|
21134
21110
|
if (payload) {
|
|
21135
|
-
each(payload, (
|
|
21111
|
+
each(payload, (node) => this.add(node));
|
|
21136
21112
|
}
|
|
21137
21113
|
}
|
|
21138
21114
|
};
|
|
@@ -21145,12 +21121,12 @@ var AnimatedArray = class extends AnimatedObject {
|
|
|
21145
21121
|
return new AnimatedArray(source);
|
|
21146
21122
|
}
|
|
21147
21123
|
getValue() {
|
|
21148
|
-
return this.source.map((
|
|
21124
|
+
return this.source.map((node) => node.getValue());
|
|
21149
21125
|
}
|
|
21150
21126
|
setValue(source) {
|
|
21151
21127
|
const payload = this.getPayload();
|
|
21152
21128
|
if (source.length == payload.length) {
|
|
21153
|
-
return payload.map((
|
|
21129
|
+
return payload.map((node, i2) => node.setValue(source[i2])).some(Boolean);
|
|
21154
21130
|
}
|
|
21155
21131
|
super.setValue(source.map(makeAnimated));
|
|
21156
21132
|
return true;
|
|
@@ -21685,8 +21661,8 @@ var FrameValue = class extends FluidValue {
|
|
|
21685
21661
|
}
|
|
21686
21662
|
/** Get the current value */
|
|
21687
21663
|
get() {
|
|
21688
|
-
const
|
|
21689
|
-
return
|
|
21664
|
+
const node = getAnimated(this);
|
|
21665
|
+
return node && node.getValue();
|
|
21690
21666
|
}
|
|
21691
21667
|
/** Create a spring that maps our value to another value */
|
|
21692
21668
|
to(...args) {
|
|
@@ -21776,8 +21752,8 @@ var SpringValue = class extends FrameValue {
|
|
|
21776
21752
|
return getFluidValue(this.animation.to);
|
|
21777
21753
|
}
|
|
21778
21754
|
get velocity() {
|
|
21779
|
-
const
|
|
21780
|
-
return
|
|
21755
|
+
const node = getAnimated(this);
|
|
21756
|
+
return node instanceof AnimatedValue ? node.lastVelocity || 0 : node.getPayload().map((node2) => node2.lastVelocity || 0);
|
|
21781
21757
|
}
|
|
21782
21758
|
/**
|
|
21783
21759
|
* When true, this value has been animated at least once.
|
|
@@ -21816,24 +21792,24 @@ var SpringValue = class extends FrameValue {
|
|
|
21816
21792
|
if (!payload && hasFluidValue(anim.to)) {
|
|
21817
21793
|
toValues = toArray(getFluidValue(anim.to));
|
|
21818
21794
|
}
|
|
21819
|
-
anim.values.forEach((
|
|
21820
|
-
if (
|
|
21795
|
+
anim.values.forEach((node2, i2) => {
|
|
21796
|
+
if (node2.done)
|
|
21821
21797
|
return;
|
|
21822
21798
|
const to2 = (
|
|
21823
21799
|
// Animated strings always go from 0 to 1.
|
|
21824
|
-
|
|
21800
|
+
node2.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
|
|
21825
21801
|
);
|
|
21826
21802
|
let finished = anim.immediate;
|
|
21827
21803
|
let position = to2;
|
|
21828
21804
|
if (!finished) {
|
|
21829
|
-
position =
|
|
21805
|
+
position = node2.lastPosition;
|
|
21830
21806
|
if (config2.tension <= 0) {
|
|
21831
|
-
|
|
21807
|
+
node2.done = true;
|
|
21832
21808
|
return;
|
|
21833
21809
|
}
|
|
21834
|
-
let elapsed =
|
|
21810
|
+
let elapsed = node2.elapsedTime += dt;
|
|
21835
21811
|
const from = anim.fromValues[i2];
|
|
21836
|
-
const v0 =
|
|
21812
|
+
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
|
|
21837
21813
|
let velocity;
|
|
21838
21814
|
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
21839
21815
|
if (!is.und(config2.duration)) {
|
|
@@ -21841,30 +21817,30 @@ var SpringValue = class extends FrameValue {
|
|
|
21841
21817
|
if (config2.duration > 0) {
|
|
21842
21818
|
if (this._memoizedDuration !== config2.duration) {
|
|
21843
21819
|
this._memoizedDuration = config2.duration;
|
|
21844
|
-
if (
|
|
21845
|
-
|
|
21846
|
-
elapsed =
|
|
21820
|
+
if (node2.durationProgress > 0) {
|
|
21821
|
+
node2.elapsedTime = config2.duration * node2.durationProgress;
|
|
21822
|
+
elapsed = node2.elapsedTime += dt;
|
|
21847
21823
|
}
|
|
21848
21824
|
}
|
|
21849
21825
|
p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
|
|
21850
21826
|
p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
|
|
21851
|
-
|
|
21827
|
+
node2.durationProgress = p2;
|
|
21852
21828
|
}
|
|
21853
21829
|
position = from + config2.easing(p2) * (to2 - from);
|
|
21854
|
-
velocity = (position -
|
|
21830
|
+
velocity = (position - node2.lastPosition) / dt;
|
|
21855
21831
|
finished = p2 == 1;
|
|
21856
21832
|
} else if (config2.decay) {
|
|
21857
21833
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
21858
21834
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
21859
21835
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
21860
|
-
finished = Math.abs(
|
|
21836
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
21861
21837
|
velocity = v0 * e2;
|
|
21862
21838
|
} else {
|
|
21863
|
-
velocity =
|
|
21839
|
+
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
21864
21840
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
21865
21841
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
21866
21842
|
const canBounce = !is.und(bounceFactor);
|
|
21867
|
-
const isGrowing = from == to2 ?
|
|
21843
|
+
const isGrowing = from == to2 ? node2.v0 > 0 : from < to2;
|
|
21868
21844
|
let isMoving;
|
|
21869
21845
|
let isBouncing = false;
|
|
21870
21846
|
const step = 1;
|
|
@@ -21891,7 +21867,7 @@ var SpringValue = class extends FrameValue {
|
|
|
21891
21867
|
position = position + velocity * step;
|
|
21892
21868
|
}
|
|
21893
21869
|
}
|
|
21894
|
-
|
|
21870
|
+
node2.lastVelocity = velocity;
|
|
21895
21871
|
if (Number.isNaN(position)) {
|
|
21896
21872
|
console.warn(`Got NaN while animating:`, this);
|
|
21897
21873
|
finished = true;
|
|
@@ -21901,20 +21877,20 @@ var SpringValue = class extends FrameValue {
|
|
|
21901
21877
|
finished = false;
|
|
21902
21878
|
}
|
|
21903
21879
|
if (finished) {
|
|
21904
|
-
|
|
21880
|
+
node2.done = true;
|
|
21905
21881
|
} else {
|
|
21906
21882
|
idle = false;
|
|
21907
21883
|
}
|
|
21908
|
-
if (
|
|
21884
|
+
if (node2.setValue(position, config2.round)) {
|
|
21909
21885
|
changed = true;
|
|
21910
21886
|
}
|
|
21911
21887
|
});
|
|
21912
|
-
const
|
|
21913
|
-
const currVal =
|
|
21888
|
+
const node = getAnimated(this);
|
|
21889
|
+
const currVal = node.getValue();
|
|
21914
21890
|
if (idle) {
|
|
21915
21891
|
const finalVal = getFluidValue(anim.to);
|
|
21916
21892
|
if ((currVal !== finalVal || changed) && !config2.decay) {
|
|
21917
|
-
|
|
21893
|
+
node.setValue(finalVal);
|
|
21918
21894
|
this._onChange(finalVal);
|
|
21919
21895
|
} else if (changed && config2.decay) {
|
|
21920
21896
|
this._onChange(currVal);
|
|
@@ -22144,8 +22120,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22144
22120
|
props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
|
|
22145
22121
|
);
|
|
22146
22122
|
}
|
|
22147
|
-
let
|
|
22148
|
-
if (!
|
|
22123
|
+
let node = getAnimated(this);
|
|
22124
|
+
if (!node || is.und(to2)) {
|
|
22149
22125
|
return resolve(getFinishedResult(this, true));
|
|
22150
22126
|
}
|
|
22151
22127
|
const reset = (
|
|
@@ -22160,16 +22136,16 @@ var SpringValue = class extends FrameValue {
|
|
|
22160
22136
|
const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
|
|
22161
22137
|
if (hasToChanged) {
|
|
22162
22138
|
const nodeType = getAnimatedType(to2);
|
|
22163
|
-
if (nodeType !==
|
|
22139
|
+
if (nodeType !== node.constructor) {
|
|
22164
22140
|
if (immediate) {
|
|
22165
|
-
|
|
22141
|
+
node = this._set(goal);
|
|
22166
22142
|
} else
|
|
22167
22143
|
throw Error(
|
|
22168
|
-
`Cannot animate between ${
|
|
22144
|
+
`Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
|
|
22169
22145
|
);
|
|
22170
22146
|
}
|
|
22171
22147
|
}
|
|
22172
|
-
const goalType =
|
|
22148
|
+
const goalType = node.constructor;
|
|
22173
22149
|
let started = hasFluidValue(to2);
|
|
22174
22150
|
let finished = false;
|
|
22175
22151
|
if (!started) {
|
|
@@ -22191,7 +22167,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22191
22167
|
}
|
|
22192
22168
|
if (!hasAsyncTo) {
|
|
22193
22169
|
if (started || hasFluidValue(prevTo)) {
|
|
22194
|
-
anim.values =
|
|
22170
|
+
anim.values = node.getPayload();
|
|
22195
22171
|
anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
|
|
22196
22172
|
}
|
|
22197
22173
|
if (anim.immediate != immediate) {
|
|
@@ -22313,7 +22289,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22313
22289
|
const anim = this.animation;
|
|
22314
22290
|
getAnimated(this).reset(getFluidValue(anim.to));
|
|
22315
22291
|
if (!anim.immediate) {
|
|
22316
|
-
anim.fromValues = anim.values.map((
|
|
22292
|
+
anim.fromValues = anim.values.map((node) => node.lastPosition);
|
|
22317
22293
|
}
|
|
22318
22294
|
if (!isAnimating(this)) {
|
|
22319
22295
|
setActiveBit(this, true);
|
|
@@ -22338,8 +22314,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22338
22314
|
if (isAnimating(this)) {
|
|
22339
22315
|
setActiveBit(this, false);
|
|
22340
22316
|
const anim = this.animation;
|
|
22341
|
-
each(anim.values, (
|
|
22342
|
-
|
|
22317
|
+
each(anim.values, (node) => {
|
|
22318
|
+
node.done = true;
|
|
22343
22319
|
});
|
|
22344
22320
|
if (anim.toValues) {
|
|
22345
22321
|
anim.onChange = anim.onPause = anim.onResume = void 0;
|
|
@@ -23212,8 +23188,8 @@ var Interpolation = class extends FrameValue {
|
|
|
23212
23188
|
_start() {
|
|
23213
23189
|
if (this.idle && !checkIdle(this._active)) {
|
|
23214
23190
|
this.idle = false;
|
|
23215
|
-
each(getPayload(this), (
|
|
23216
|
-
|
|
23191
|
+
each(getPayload(this), (node) => {
|
|
23192
|
+
node.done = false;
|
|
23217
23193
|
});
|
|
23218
23194
|
if (globals_exports.skipAnimation) {
|
|
23219
23195
|
raf.batchedUpdates(() => this.advance());
|
|
@@ -23278,8 +23254,8 @@ function checkIdle(active) {
|
|
|
23278
23254
|
function becomeIdle(self2) {
|
|
23279
23255
|
if (!self2.idle) {
|
|
23280
23256
|
self2.idle = true;
|
|
23281
|
-
each(getPayload(self2), (
|
|
23282
|
-
|
|
23257
|
+
each(getPayload(self2), (node) => {
|
|
23258
|
+
node.done = true;
|
|
23283
23259
|
});
|
|
23284
23260
|
callFluidObservers(self2, {
|
|
23285
23261
|
type: "idle",
|
|
@@ -23673,30 +23649,30 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
|
|
|
23673
23649
|
function getNodeName(element) {
|
|
23674
23650
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
23675
23651
|
}
|
|
23676
|
-
function getWindow$1(
|
|
23677
|
-
if (
|
|
23652
|
+
function getWindow$1(node) {
|
|
23653
|
+
if (node == null) {
|
|
23678
23654
|
return window;
|
|
23679
23655
|
}
|
|
23680
|
-
if (
|
|
23681
|
-
var ownerDocument =
|
|
23656
|
+
if (node.toString() !== "[object Window]") {
|
|
23657
|
+
var ownerDocument = node.ownerDocument;
|
|
23682
23658
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
23683
23659
|
}
|
|
23684
|
-
return
|
|
23660
|
+
return node;
|
|
23685
23661
|
}
|
|
23686
|
-
function isElement$1(
|
|
23687
|
-
var OwnElement = getWindow$1(
|
|
23688
|
-
return
|
|
23662
|
+
function isElement$1(node) {
|
|
23663
|
+
var OwnElement = getWindow$1(node).Element;
|
|
23664
|
+
return node instanceof OwnElement || node instanceof Element;
|
|
23689
23665
|
}
|
|
23690
|
-
function isHTMLElement(
|
|
23691
|
-
var OwnElement = getWindow$1(
|
|
23692
|
-
return
|
|
23666
|
+
function isHTMLElement(node) {
|
|
23667
|
+
var OwnElement = getWindow$1(node).HTMLElement;
|
|
23668
|
+
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
23693
23669
|
}
|
|
23694
|
-
function isShadowRoot(
|
|
23670
|
+
function isShadowRoot(node) {
|
|
23695
23671
|
if (typeof ShadowRoot === "undefined") {
|
|
23696
23672
|
return false;
|
|
23697
23673
|
}
|
|
23698
|
-
var OwnElement = getWindow$1(
|
|
23699
|
-
return
|
|
23674
|
+
var OwnElement = getWindow$1(node).ShadowRoot;
|
|
23675
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
23700
23676
|
}
|
|
23701
23677
|
function applyStyles(_ref) {
|
|
23702
23678
|
var state = _ref.state;
|
|
@@ -24178,8 +24154,8 @@ function getOppositeVariationPlacement(placement) {
|
|
|
24178
24154
|
return hash$1[matched];
|
|
24179
24155
|
});
|
|
24180
24156
|
}
|
|
24181
|
-
function getWindowScroll(
|
|
24182
|
-
var win = getWindow$1(
|
|
24157
|
+
function getWindowScroll(node) {
|
|
24158
|
+
var win = getWindow$1(node);
|
|
24183
24159
|
var scrollLeft = win.pageXOffset;
|
|
24184
24160
|
var scrollTop = win.pageYOffset;
|
|
24185
24161
|
return {
|
|
@@ -24237,14 +24213,14 @@ function isScrollParent(element) {
|
|
|
24237
24213
|
var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
24238
24214
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
24239
24215
|
}
|
|
24240
|
-
function getScrollParent(
|
|
24241
|
-
if (["html", "body", "#document"].indexOf(getNodeName(
|
|
24242
|
-
return
|
|
24216
|
+
function getScrollParent(node) {
|
|
24217
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
|
|
24218
|
+
return node.ownerDocument.body;
|
|
24243
24219
|
}
|
|
24244
|
-
if (isHTMLElement(
|
|
24245
|
-
return
|
|
24220
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
24221
|
+
return node;
|
|
24246
24222
|
}
|
|
24247
|
-
return getScrollParent(getParentNode(
|
|
24223
|
+
return getScrollParent(getParentNode(node));
|
|
24248
24224
|
}
|
|
24249
24225
|
function listScrollParents(element, list) {
|
|
24250
24226
|
var _element$ownerDocumen;
|
|
@@ -24738,11 +24714,11 @@ function getHTMLElementScroll(element) {
|
|
|
24738
24714
|
scrollTop: element.scrollTop
|
|
24739
24715
|
};
|
|
24740
24716
|
}
|
|
24741
|
-
function getNodeScroll(
|
|
24742
|
-
if (
|
|
24743
|
-
return getWindowScroll(
|
|
24717
|
+
function getNodeScroll(node) {
|
|
24718
|
+
if (node === getWindow$1(node) || !isHTMLElement(node)) {
|
|
24719
|
+
return getWindowScroll(node);
|
|
24744
24720
|
} else {
|
|
24745
|
-
return getHTMLElementScroll(
|
|
24721
|
+
return getHTMLElementScroll(node);
|
|
24746
24722
|
}
|
|
24747
24723
|
}
|
|
24748
24724
|
function isElementScaled(element) {
|
|
@@ -25275,35 +25251,7 @@ const SvgCommunity = ({
|
|
|
25275
25251
|
)
|
|
25276
25252
|
]
|
|
25277
25253
|
}
|
|
25278
|
-
), SvgMyApps$1 = SvgMyApps,
|
|
25279
|
-
title,
|
|
25280
|
-
titleId,
|
|
25281
|
-
...props
|
|
25282
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25283
|
-
"svg",
|
|
25284
|
-
{
|
|
25285
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25286
|
-
width: "24",
|
|
25287
|
-
height: "24",
|
|
25288
|
-
fill: "none",
|
|
25289
|
-
viewBox: "0 0 24 24",
|
|
25290
|
-
"aria-hidden": "true",
|
|
25291
|
-
"aria-labelledby": titleId,
|
|
25292
|
-
...props,
|
|
25293
|
-
children: [
|
|
25294
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25295
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25296
|
-
"path",
|
|
25297
|
-
{
|
|
25298
|
-
fill: "currentColor",
|
|
25299
|
-
fillRule: "evenodd",
|
|
25300
|
-
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",
|
|
25301
|
-
clipRule: "evenodd"
|
|
25302
|
-
}
|
|
25303
|
-
)
|
|
25304
|
-
]
|
|
25305
|
-
}
|
|
25306
|
-
), SvgNeoAssistance$1 = SvgNeoAssistance, SvgNeoMessaging = ({
|
|
25254
|
+
), SvgMyApps$1 = SvgMyApps, SvgNeoMessaging = ({
|
|
25307
25255
|
title,
|
|
25308
25256
|
titleId,
|
|
25309
25257
|
...props
|
|
@@ -25354,33 +25302,7 @@ const SvgCommunity = ({
|
|
|
25354
25302
|
)
|
|
25355
25303
|
]
|
|
25356
25304
|
}
|
|
25357
|
-
), SvgNewRelease$1 = SvgNewRelease,
|
|
25358
|
-
title,
|
|
25359
|
-
titleId,
|
|
25360
|
-
...props
|
|
25361
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25362
|
-
"svg",
|
|
25363
|
-
{
|
|
25364
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25365
|
-
width: "24",
|
|
25366
|
-
height: "24",
|
|
25367
|
-
fill: "none",
|
|
25368
|
-
viewBox: "0 0 24 24",
|
|
25369
|
-
"aria-hidden": "true",
|
|
25370
|
-
"aria-labelledby": titleId,
|
|
25371
|
-
...props,
|
|
25372
|
-
children: [
|
|
25373
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25374
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25375
|
-
"path",
|
|
25376
|
-
{
|
|
25377
|
-
fill: "currentColor",
|
|
25378
|
-
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"
|
|
25379
|
-
}
|
|
25380
|
-
)
|
|
25381
|
-
]
|
|
25382
|
-
}
|
|
25383
|
-
), SvgOneAssistance$1 = SvgOneAssistance, SvgOneMessaging = ({
|
|
25305
|
+
), SvgNewRelease$1 = SvgNewRelease, SvgOneMessaging = ({
|
|
25384
25306
|
title,
|
|
25385
25307
|
titleId,
|
|
25386
25308
|
...props
|
|
@@ -25711,11 +25633,11 @@ function getTranslate(el2, axis) {
|
|
|
25711
25633
|
function isObject$1(o2) {
|
|
25712
25634
|
return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
|
|
25713
25635
|
}
|
|
25714
|
-
function isNode(
|
|
25636
|
+
function isNode(node) {
|
|
25715
25637
|
if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
|
|
25716
|
-
return
|
|
25638
|
+
return node instanceof HTMLElement;
|
|
25717
25639
|
}
|
|
25718
|
-
return
|
|
25640
|
+
return node && (node.nodeType === 1 || node.nodeType === 11);
|
|
25719
25641
|
}
|
|
25720
25642
|
function extend$1() {
|
|
25721
25643
|
const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
@@ -26743,8 +26665,8 @@ function updateSlides() {
|
|
|
26743
26665
|
"marginRight": "marginBottom"
|
|
26744
26666
|
}[property];
|
|
26745
26667
|
}
|
|
26746
|
-
function getDirectionPropertyValue(
|
|
26747
|
-
return parseFloat(
|
|
26668
|
+
function getDirectionPropertyValue(node, label) {
|
|
26669
|
+
return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);
|
|
26748
26670
|
}
|
|
26749
26671
|
const params = swiper.params;
|
|
26750
26672
|
const {
|
|
@@ -30344,7 +30266,7 @@ function isChildSwiperSlide(child) {
|
|
|
30344
30266
|
}
|
|
30345
30267
|
function processChildren(c6) {
|
|
30346
30268
|
const slides = [];
|
|
30347
|
-
React
|
|
30269
|
+
React.Children.toArray(c6).forEach((child) => {
|
|
30348
30270
|
if (isChildSwiperSlide(child)) {
|
|
30349
30271
|
slides.push(child);
|
|
30350
30272
|
} else if (child.props && child.props.children) {
|
|
@@ -30361,7 +30283,7 @@ function getChildren(c6) {
|
|
|
30361
30283
|
"wrapper-start": [],
|
|
30362
30284
|
"wrapper-end": []
|
|
30363
30285
|
};
|
|
30364
|
-
React
|
|
30286
|
+
React.Children.toArray(c6).forEach((child) => {
|
|
30365
30287
|
if (isChildSwiperSlide(child)) {
|
|
30366
30288
|
slides.push(child);
|
|
30367
30289
|
} else if (child.props && child.props.slot && slots[child.props.slot]) {
|
|
@@ -30412,7 +30334,7 @@ function renderVirtual(swiper, slides, virtualData) {
|
|
|
30412
30334
|
}
|
|
30413
30335
|
}
|
|
30414
30336
|
return slidesToRender.map((child, index2) => {
|
|
30415
|
-
return /* @__PURE__ */ React
|
|
30337
|
+
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30416
30338
|
swiper,
|
|
30417
30339
|
style,
|
|
30418
30340
|
key: `slide-${index2}`
|
|
@@ -30572,29 +30494,29 @@ const Swiper2 = /* @__PURE__ */ reactExports.forwardRef(function(_temp, external
|
|
|
30572
30494
|
return renderVirtual(swiperRef.current, slides, virtualData);
|
|
30573
30495
|
}
|
|
30574
30496
|
return slides.map((child, index2) => {
|
|
30575
|
-
return /* @__PURE__ */ React
|
|
30497
|
+
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30576
30498
|
swiper: swiperRef.current,
|
|
30577
30499
|
swiperSlideIndex: index2
|
|
30578
30500
|
});
|
|
30579
30501
|
});
|
|
30580
30502
|
}
|
|
30581
|
-
return /* @__PURE__ */ React
|
|
30503
|
+
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30582
30504
|
ref: swiperElRef,
|
|
30583
30505
|
className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
|
|
30584
|
-
}, restProps), /* @__PURE__ */ React
|
|
30506
|
+
}, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
|
|
30585
30507
|
value: swiperRef.current
|
|
30586
|
-
}, slots["container-start"], /* @__PURE__ */ React
|
|
30508
|
+
}, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
|
|
30587
30509
|
className: wrapperClass(swiperParams.wrapperClass)
|
|
30588
|
-
}, 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", {
|
|
30589
30511
|
ref: prevElRef,
|
|
30590
30512
|
className: "swiper-button-prev"
|
|
30591
|
-
}), /* @__PURE__ */ React
|
|
30513
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
30592
30514
|
ref: nextElRef,
|
|
30593
30515
|
className: "swiper-button-next"
|
|
30594
|
-
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React
|
|
30516
|
+
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30595
30517
|
ref: scrollbarElRef,
|
|
30596
30518
|
className: "swiper-scrollbar"
|
|
30597
|
-
}), needsPagination(swiperParams) && /* @__PURE__ */ React
|
|
30519
|
+
}), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30598
30520
|
ref: paginationElRef,
|
|
30599
30521
|
className: "swiper-pagination"
|
|
30600
30522
|
}), slots["container-end"]));
|
|
@@ -30660,2329 +30582,25 @@ const SwiperSlide = /* @__PURE__ */ reactExports.forwardRef(function(_temp, exte
|
|
|
30660
30582
|
const onLoad2 = () => {
|
|
30661
30583
|
setLazyLoaded(true);
|
|
30662
30584
|
};
|
|
30663
|
-
return /* @__PURE__ */ React
|
|
30585
|
+
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30664
30586
|
ref: slideElRef,
|
|
30665
30587
|
className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
|
|
30666
30588
|
"data-swiper-slide-index": virtualIndex,
|
|
30667
30589
|
onLoad: onLoad2
|
|
30668
|
-
}, rest), zoom && /* @__PURE__ */ React
|
|
30590
|
+
}, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30669
30591
|
value: slideData
|
|
30670
|
-
}, /* @__PURE__ */ React
|
|
30592
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
30671
30593
|
className: "swiper-zoom-container",
|
|
30672
30594
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
30673
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React
|
|
30595
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30674
30596
|
className: "swiper-lazy-preloader"
|
|
30675
|
-
}))), !zoom && /* @__PURE__ */ React
|
|
30597
|
+
}))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30676
30598
|
value: slideData
|
|
30677
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React
|
|
30599
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30678
30600
|
className: "swiper-lazy-preloader"
|
|
30679
30601
|
})));
|
|
30680
30602
|
});
|
|
30681
30603
|
SwiperSlide.displayName = "SwiperSlide";
|
|
30682
|
-
var lib$3 = {};
|
|
30683
|
-
var lib$2 = {};
|
|
30684
|
-
(function(exports) {
|
|
30685
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30686
|
-
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
|
|
30687
|
-
var ElementType;
|
|
30688
|
-
(function(ElementType2) {
|
|
30689
|
-
ElementType2["Root"] = "root";
|
|
30690
|
-
ElementType2["Text"] = "text";
|
|
30691
|
-
ElementType2["Directive"] = "directive";
|
|
30692
|
-
ElementType2["Comment"] = "comment";
|
|
30693
|
-
ElementType2["Script"] = "script";
|
|
30694
|
-
ElementType2["Style"] = "style";
|
|
30695
|
-
ElementType2["Tag"] = "tag";
|
|
30696
|
-
ElementType2["CDATA"] = "cdata";
|
|
30697
|
-
ElementType2["Doctype"] = "doctype";
|
|
30698
|
-
})(ElementType = exports.ElementType || (exports.ElementType = {}));
|
|
30699
|
-
function isTag2(elem) {
|
|
30700
|
-
return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
|
|
30701
|
-
}
|
|
30702
|
-
exports.isTag = isTag2;
|
|
30703
|
-
exports.Root = ElementType.Root;
|
|
30704
|
-
exports.Text = ElementType.Text;
|
|
30705
|
-
exports.Directive = ElementType.Directive;
|
|
30706
|
-
exports.Comment = ElementType.Comment;
|
|
30707
|
-
exports.Script = ElementType.Script;
|
|
30708
|
-
exports.Style = ElementType.Style;
|
|
30709
|
-
exports.Tag = ElementType.Tag;
|
|
30710
|
-
exports.CDATA = ElementType.CDATA;
|
|
30711
|
-
exports.Doctype = ElementType.Doctype;
|
|
30712
|
-
})(lib$2);
|
|
30713
|
-
var node = {};
|
|
30714
|
-
var __extends = commonjsGlobal$1 && commonjsGlobal$1.__extends || /* @__PURE__ */ function() {
|
|
30715
|
-
var extendStatics = function(d2, b2) {
|
|
30716
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
30717
|
-
d3.__proto__ = b3;
|
|
30718
|
-
} || function(d3, b3) {
|
|
30719
|
-
for (var p2 in b3)
|
|
30720
|
-
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
30721
|
-
d3[p2] = b3[p2];
|
|
30722
|
-
};
|
|
30723
|
-
return extendStatics(d2, b2);
|
|
30724
|
-
};
|
|
30725
|
-
return function(d2, b2) {
|
|
30726
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
30727
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
30728
|
-
extendStatics(d2, b2);
|
|
30729
|
-
function __() {
|
|
30730
|
-
this.constructor = d2;
|
|
30731
|
-
}
|
|
30732
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
30733
|
-
};
|
|
30734
|
-
}();
|
|
30735
|
-
var __assign = commonjsGlobal$1 && commonjsGlobal$1.__assign || function() {
|
|
30736
|
-
__assign = Object.assign || function(t2) {
|
|
30737
|
-
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
30738
|
-
s2 = arguments[i2];
|
|
30739
|
-
for (var p2 in s2)
|
|
30740
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
30741
|
-
t2[p2] = s2[p2];
|
|
30742
|
-
}
|
|
30743
|
-
return t2;
|
|
30744
|
-
};
|
|
30745
|
-
return __assign.apply(this, arguments);
|
|
30746
|
-
};
|
|
30747
|
-
Object.defineProperty(node, "__esModule", { value: true });
|
|
30748
|
-
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;
|
|
30749
|
-
var domelementtype_1 = lib$2;
|
|
30750
|
-
var Node$2 = (
|
|
30751
|
-
/** @class */
|
|
30752
|
-
function() {
|
|
30753
|
-
function Node2() {
|
|
30754
|
-
this.parent = null;
|
|
30755
|
-
this.prev = null;
|
|
30756
|
-
this.next = null;
|
|
30757
|
-
this.startIndex = null;
|
|
30758
|
-
this.endIndex = null;
|
|
30759
|
-
}
|
|
30760
|
-
Object.defineProperty(Node2.prototype, "parentNode", {
|
|
30761
|
-
// Read-write aliases for properties
|
|
30762
|
-
/**
|
|
30763
|
-
* Same as {@link parent}.
|
|
30764
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30765
|
-
*/
|
|
30766
|
-
get: function() {
|
|
30767
|
-
return this.parent;
|
|
30768
|
-
},
|
|
30769
|
-
set: function(parent) {
|
|
30770
|
-
this.parent = parent;
|
|
30771
|
-
},
|
|
30772
|
-
enumerable: false,
|
|
30773
|
-
configurable: true
|
|
30774
|
-
});
|
|
30775
|
-
Object.defineProperty(Node2.prototype, "previousSibling", {
|
|
30776
|
-
/**
|
|
30777
|
-
* Same as {@link prev}.
|
|
30778
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30779
|
-
*/
|
|
30780
|
-
get: function() {
|
|
30781
|
-
return this.prev;
|
|
30782
|
-
},
|
|
30783
|
-
set: function(prev) {
|
|
30784
|
-
this.prev = prev;
|
|
30785
|
-
},
|
|
30786
|
-
enumerable: false,
|
|
30787
|
-
configurable: true
|
|
30788
|
-
});
|
|
30789
|
-
Object.defineProperty(Node2.prototype, "nextSibling", {
|
|
30790
|
-
/**
|
|
30791
|
-
* Same as {@link next}.
|
|
30792
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30793
|
-
*/
|
|
30794
|
-
get: function() {
|
|
30795
|
-
return this.next;
|
|
30796
|
-
},
|
|
30797
|
-
set: function(next) {
|
|
30798
|
-
this.next = next;
|
|
30799
|
-
},
|
|
30800
|
-
enumerable: false,
|
|
30801
|
-
configurable: true
|
|
30802
|
-
});
|
|
30803
|
-
Node2.prototype.cloneNode = function(recursive) {
|
|
30804
|
-
if (recursive === void 0) {
|
|
30805
|
-
recursive = false;
|
|
30806
|
-
}
|
|
30807
|
-
return cloneNode(this, recursive);
|
|
30808
|
-
};
|
|
30809
|
-
return Node2;
|
|
30810
|
-
}()
|
|
30811
|
-
);
|
|
30812
|
-
node.Node = Node$2;
|
|
30813
|
-
var DataNode = (
|
|
30814
|
-
/** @class */
|
|
30815
|
-
function(_super) {
|
|
30816
|
-
__extends(DataNode2, _super);
|
|
30817
|
-
function DataNode2(data) {
|
|
30818
|
-
var _this = _super.call(this) || this;
|
|
30819
|
-
_this.data = data;
|
|
30820
|
-
return _this;
|
|
30821
|
-
}
|
|
30822
|
-
Object.defineProperty(DataNode2.prototype, "nodeValue", {
|
|
30823
|
-
/**
|
|
30824
|
-
* Same as {@link data}.
|
|
30825
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30826
|
-
*/
|
|
30827
|
-
get: function() {
|
|
30828
|
-
return this.data;
|
|
30829
|
-
},
|
|
30830
|
-
set: function(data) {
|
|
30831
|
-
this.data = data;
|
|
30832
|
-
},
|
|
30833
|
-
enumerable: false,
|
|
30834
|
-
configurable: true
|
|
30835
|
-
});
|
|
30836
|
-
return DataNode2;
|
|
30837
|
-
}(Node$2)
|
|
30838
|
-
);
|
|
30839
|
-
node.DataNode = DataNode;
|
|
30840
|
-
var Text$2 = (
|
|
30841
|
-
/** @class */
|
|
30842
|
-
function(_super) {
|
|
30843
|
-
__extends(Text2, _super);
|
|
30844
|
-
function Text2() {
|
|
30845
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30846
|
-
_this.type = domelementtype_1.ElementType.Text;
|
|
30847
|
-
return _this;
|
|
30848
|
-
}
|
|
30849
|
-
Object.defineProperty(Text2.prototype, "nodeType", {
|
|
30850
|
-
get: function() {
|
|
30851
|
-
return 3;
|
|
30852
|
-
},
|
|
30853
|
-
enumerable: false,
|
|
30854
|
-
configurable: true
|
|
30855
|
-
});
|
|
30856
|
-
return Text2;
|
|
30857
|
-
}(DataNode)
|
|
30858
|
-
);
|
|
30859
|
-
node.Text = Text$2;
|
|
30860
|
-
var Comment$1 = (
|
|
30861
|
-
/** @class */
|
|
30862
|
-
function(_super) {
|
|
30863
|
-
__extends(Comment2, _super);
|
|
30864
|
-
function Comment2() {
|
|
30865
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30866
|
-
_this.type = domelementtype_1.ElementType.Comment;
|
|
30867
|
-
return _this;
|
|
30868
|
-
}
|
|
30869
|
-
Object.defineProperty(Comment2.prototype, "nodeType", {
|
|
30870
|
-
get: function() {
|
|
30871
|
-
return 8;
|
|
30872
|
-
},
|
|
30873
|
-
enumerable: false,
|
|
30874
|
-
configurable: true
|
|
30875
|
-
});
|
|
30876
|
-
return Comment2;
|
|
30877
|
-
}(DataNode)
|
|
30878
|
-
);
|
|
30879
|
-
node.Comment = Comment$1;
|
|
30880
|
-
var ProcessingInstruction$1 = (
|
|
30881
|
-
/** @class */
|
|
30882
|
-
function(_super) {
|
|
30883
|
-
__extends(ProcessingInstruction2, _super);
|
|
30884
|
-
function ProcessingInstruction2(name, data) {
|
|
30885
|
-
var _this = _super.call(this, data) || this;
|
|
30886
|
-
_this.name = name;
|
|
30887
|
-
_this.type = domelementtype_1.ElementType.Directive;
|
|
30888
|
-
return _this;
|
|
30889
|
-
}
|
|
30890
|
-
Object.defineProperty(ProcessingInstruction2.prototype, "nodeType", {
|
|
30891
|
-
get: function() {
|
|
30892
|
-
return 1;
|
|
30893
|
-
},
|
|
30894
|
-
enumerable: false,
|
|
30895
|
-
configurable: true
|
|
30896
|
-
});
|
|
30897
|
-
return ProcessingInstruction2;
|
|
30898
|
-
}(DataNode)
|
|
30899
|
-
);
|
|
30900
|
-
node.ProcessingInstruction = ProcessingInstruction$1;
|
|
30901
|
-
var NodeWithChildren = (
|
|
30902
|
-
/** @class */
|
|
30903
|
-
function(_super) {
|
|
30904
|
-
__extends(NodeWithChildren2, _super);
|
|
30905
|
-
function NodeWithChildren2(children) {
|
|
30906
|
-
var _this = _super.call(this) || this;
|
|
30907
|
-
_this.children = children;
|
|
30908
|
-
return _this;
|
|
30909
|
-
}
|
|
30910
|
-
Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
|
|
30911
|
-
// Aliases
|
|
30912
|
-
/** First child of the node. */
|
|
30913
|
-
get: function() {
|
|
30914
|
-
var _a2;
|
|
30915
|
-
return (_a2 = this.children[0]) !== null && _a2 !== void 0 ? _a2 : null;
|
|
30916
|
-
},
|
|
30917
|
-
enumerable: false,
|
|
30918
|
-
configurable: true
|
|
30919
|
-
});
|
|
30920
|
-
Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
|
|
30921
|
-
/** Last child of the node. */
|
|
30922
|
-
get: function() {
|
|
30923
|
-
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
30924
|
-
},
|
|
30925
|
-
enumerable: false,
|
|
30926
|
-
configurable: true
|
|
30927
|
-
});
|
|
30928
|
-
Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
|
|
30929
|
-
/**
|
|
30930
|
-
* Same as {@link children}.
|
|
30931
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30932
|
-
*/
|
|
30933
|
-
get: function() {
|
|
30934
|
-
return this.children;
|
|
30935
|
-
},
|
|
30936
|
-
set: function(children) {
|
|
30937
|
-
this.children = children;
|
|
30938
|
-
},
|
|
30939
|
-
enumerable: false,
|
|
30940
|
-
configurable: true
|
|
30941
|
-
});
|
|
30942
|
-
return NodeWithChildren2;
|
|
30943
|
-
}(Node$2)
|
|
30944
|
-
);
|
|
30945
|
-
node.NodeWithChildren = NodeWithChildren;
|
|
30946
|
-
var CDATA = (
|
|
30947
|
-
/** @class */
|
|
30948
|
-
function(_super) {
|
|
30949
|
-
__extends(CDATA2, _super);
|
|
30950
|
-
function CDATA2() {
|
|
30951
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30952
|
-
_this.type = domelementtype_1.ElementType.CDATA;
|
|
30953
|
-
return _this;
|
|
30954
|
-
}
|
|
30955
|
-
Object.defineProperty(CDATA2.prototype, "nodeType", {
|
|
30956
|
-
get: function() {
|
|
30957
|
-
return 4;
|
|
30958
|
-
},
|
|
30959
|
-
enumerable: false,
|
|
30960
|
-
configurable: true
|
|
30961
|
-
});
|
|
30962
|
-
return CDATA2;
|
|
30963
|
-
}(NodeWithChildren)
|
|
30964
|
-
);
|
|
30965
|
-
node.CDATA = CDATA;
|
|
30966
|
-
var Document = (
|
|
30967
|
-
/** @class */
|
|
30968
|
-
function(_super) {
|
|
30969
|
-
__extends(Document2, _super);
|
|
30970
|
-
function Document2() {
|
|
30971
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30972
|
-
_this.type = domelementtype_1.ElementType.Root;
|
|
30973
|
-
return _this;
|
|
30974
|
-
}
|
|
30975
|
-
Object.defineProperty(Document2.prototype, "nodeType", {
|
|
30976
|
-
get: function() {
|
|
30977
|
-
return 9;
|
|
30978
|
-
},
|
|
30979
|
-
enumerable: false,
|
|
30980
|
-
configurable: true
|
|
30981
|
-
});
|
|
30982
|
-
return Document2;
|
|
30983
|
-
}(NodeWithChildren)
|
|
30984
|
-
);
|
|
30985
|
-
node.Document = Document;
|
|
30986
|
-
var Element$2 = (
|
|
30987
|
-
/** @class */
|
|
30988
|
-
function(_super) {
|
|
30989
|
-
__extends(Element2, _super);
|
|
30990
|
-
function Element2(name, attribs, children, type2) {
|
|
30991
|
-
if (children === void 0) {
|
|
30992
|
-
children = [];
|
|
30993
|
-
}
|
|
30994
|
-
if (type2 === void 0) {
|
|
30995
|
-
type2 = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
|
|
30996
|
-
}
|
|
30997
|
-
var _this = _super.call(this, children) || this;
|
|
30998
|
-
_this.name = name;
|
|
30999
|
-
_this.attribs = attribs;
|
|
31000
|
-
_this.type = type2;
|
|
31001
|
-
return _this;
|
|
31002
|
-
}
|
|
31003
|
-
Object.defineProperty(Element2.prototype, "nodeType", {
|
|
31004
|
-
get: function() {
|
|
31005
|
-
return 1;
|
|
31006
|
-
},
|
|
31007
|
-
enumerable: false,
|
|
31008
|
-
configurable: true
|
|
31009
|
-
});
|
|
31010
|
-
Object.defineProperty(Element2.prototype, "tagName", {
|
|
31011
|
-
// DOM Level 1 aliases
|
|
31012
|
-
/**
|
|
31013
|
-
* Same as {@link name}.
|
|
31014
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
31015
|
-
*/
|
|
31016
|
-
get: function() {
|
|
31017
|
-
return this.name;
|
|
31018
|
-
},
|
|
31019
|
-
set: function(name) {
|
|
31020
|
-
this.name = name;
|
|
31021
|
-
},
|
|
31022
|
-
enumerable: false,
|
|
31023
|
-
configurable: true
|
|
31024
|
-
});
|
|
31025
|
-
Object.defineProperty(Element2.prototype, "attributes", {
|
|
31026
|
-
get: function() {
|
|
31027
|
-
var _this = this;
|
|
31028
|
-
return Object.keys(this.attribs).map(function(name) {
|
|
31029
|
-
var _a2, _b2;
|
|
31030
|
-
return {
|
|
31031
|
-
name,
|
|
31032
|
-
value: _this.attribs[name],
|
|
31033
|
-
namespace: (_a2 = _this["x-attribsNamespace"]) === null || _a2 === void 0 ? void 0 : _a2[name],
|
|
31034
|
-
prefix: (_b2 = _this["x-attribsPrefix"]) === null || _b2 === void 0 ? void 0 : _b2[name]
|
|
31035
|
-
};
|
|
31036
|
-
});
|
|
31037
|
-
},
|
|
31038
|
-
enumerable: false,
|
|
31039
|
-
configurable: true
|
|
31040
|
-
});
|
|
31041
|
-
return Element2;
|
|
31042
|
-
}(NodeWithChildren)
|
|
31043
|
-
);
|
|
31044
|
-
node.Element = Element$2;
|
|
31045
|
-
function isTag(node2) {
|
|
31046
|
-
return (0, domelementtype_1.isTag)(node2);
|
|
31047
|
-
}
|
|
31048
|
-
node.isTag = isTag;
|
|
31049
|
-
function isCDATA(node2) {
|
|
31050
|
-
return node2.type === domelementtype_1.ElementType.CDATA;
|
|
31051
|
-
}
|
|
31052
|
-
node.isCDATA = isCDATA;
|
|
31053
|
-
function isText(node2) {
|
|
31054
|
-
return node2.type === domelementtype_1.ElementType.Text;
|
|
31055
|
-
}
|
|
31056
|
-
node.isText = isText;
|
|
31057
|
-
function isComment(node2) {
|
|
31058
|
-
return node2.type === domelementtype_1.ElementType.Comment;
|
|
31059
|
-
}
|
|
31060
|
-
node.isComment = isComment;
|
|
31061
|
-
function isDirective(node2) {
|
|
31062
|
-
return node2.type === domelementtype_1.ElementType.Directive;
|
|
31063
|
-
}
|
|
31064
|
-
node.isDirective = isDirective;
|
|
31065
|
-
function isDocument(node2) {
|
|
31066
|
-
return node2.type === domelementtype_1.ElementType.Root;
|
|
31067
|
-
}
|
|
31068
|
-
node.isDocument = isDocument;
|
|
31069
|
-
function hasChildren$1(node2) {
|
|
31070
|
-
return Object.prototype.hasOwnProperty.call(node2, "children");
|
|
31071
|
-
}
|
|
31072
|
-
node.hasChildren = hasChildren$1;
|
|
31073
|
-
function cloneNode(node2, recursive) {
|
|
31074
|
-
if (recursive === void 0) {
|
|
31075
|
-
recursive = false;
|
|
31076
|
-
}
|
|
31077
|
-
var result;
|
|
31078
|
-
if (isText(node2)) {
|
|
31079
|
-
result = new Text$2(node2.data);
|
|
31080
|
-
} else if (isComment(node2)) {
|
|
31081
|
-
result = new Comment$1(node2.data);
|
|
31082
|
-
} else if (isTag(node2)) {
|
|
31083
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31084
|
-
var clone_1 = new Element$2(node2.name, __assign({}, node2.attribs), children);
|
|
31085
|
-
children.forEach(function(child) {
|
|
31086
|
-
return child.parent = clone_1;
|
|
31087
|
-
});
|
|
31088
|
-
if (node2.namespace != null) {
|
|
31089
|
-
clone_1.namespace = node2.namespace;
|
|
31090
|
-
}
|
|
31091
|
-
if (node2["x-attribsNamespace"]) {
|
|
31092
|
-
clone_1["x-attribsNamespace"] = __assign({}, node2["x-attribsNamespace"]);
|
|
31093
|
-
}
|
|
31094
|
-
if (node2["x-attribsPrefix"]) {
|
|
31095
|
-
clone_1["x-attribsPrefix"] = __assign({}, node2["x-attribsPrefix"]);
|
|
31096
|
-
}
|
|
31097
|
-
result = clone_1;
|
|
31098
|
-
} else if (isCDATA(node2)) {
|
|
31099
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31100
|
-
var clone_2 = new CDATA(children);
|
|
31101
|
-
children.forEach(function(child) {
|
|
31102
|
-
return child.parent = clone_2;
|
|
31103
|
-
});
|
|
31104
|
-
result = clone_2;
|
|
31105
|
-
} else if (isDocument(node2)) {
|
|
31106
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31107
|
-
var clone_3 = new Document(children);
|
|
31108
|
-
children.forEach(function(child) {
|
|
31109
|
-
return child.parent = clone_3;
|
|
31110
|
-
});
|
|
31111
|
-
if (node2["x-mode"]) {
|
|
31112
|
-
clone_3["x-mode"] = node2["x-mode"];
|
|
31113
|
-
}
|
|
31114
|
-
result = clone_3;
|
|
31115
|
-
} else if (isDirective(node2)) {
|
|
31116
|
-
var instruction = new ProcessingInstruction$1(node2.name, node2.data);
|
|
31117
|
-
if (node2["x-name"] != null) {
|
|
31118
|
-
instruction["x-name"] = node2["x-name"];
|
|
31119
|
-
instruction["x-publicId"] = node2["x-publicId"];
|
|
31120
|
-
instruction["x-systemId"] = node2["x-systemId"];
|
|
31121
|
-
}
|
|
31122
|
-
result = instruction;
|
|
31123
|
-
} else {
|
|
31124
|
-
throw new Error("Not implemented yet: ".concat(node2.type));
|
|
31125
|
-
}
|
|
31126
|
-
result.startIndex = node2.startIndex;
|
|
31127
|
-
result.endIndex = node2.endIndex;
|
|
31128
|
-
if (node2.sourceCodeLocation != null) {
|
|
31129
|
-
result.sourceCodeLocation = node2.sourceCodeLocation;
|
|
31130
|
-
}
|
|
31131
|
-
return result;
|
|
31132
|
-
}
|
|
31133
|
-
node.cloneNode = cloneNode;
|
|
31134
|
-
function cloneChildren(childs) {
|
|
31135
|
-
var children = childs.map(function(child) {
|
|
31136
|
-
return cloneNode(child, true);
|
|
31137
|
-
});
|
|
31138
|
-
for (var i2 = 1; i2 < children.length; i2++) {
|
|
31139
|
-
children[i2].prev = children[i2 - 1];
|
|
31140
|
-
children[i2 - 1].next = children[i2];
|
|
31141
|
-
}
|
|
31142
|
-
return children;
|
|
31143
|
-
}
|
|
31144
|
-
(function(exports) {
|
|
31145
|
-
var __createBinding = commonjsGlobal$1 && commonjsGlobal$1.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
31146
|
-
if (k22 === void 0)
|
|
31147
|
-
k22 = k2;
|
|
31148
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
31149
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
31150
|
-
desc = { enumerable: true, get: function() {
|
|
31151
|
-
return m2[k2];
|
|
31152
|
-
} };
|
|
31153
|
-
}
|
|
31154
|
-
Object.defineProperty(o2, k22, desc);
|
|
31155
|
-
} : function(o2, m2, k2, k22) {
|
|
31156
|
-
if (k22 === void 0)
|
|
31157
|
-
k22 = k2;
|
|
31158
|
-
o2[k22] = m2[k2];
|
|
31159
|
-
});
|
|
31160
|
-
var __exportStar = commonjsGlobal$1 && commonjsGlobal$1.__exportStar || function(m2, exports2) {
|
|
31161
|
-
for (var p2 in m2)
|
|
31162
|
-
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
|
|
31163
|
-
__createBinding(exports2, m2, p2);
|
|
31164
|
-
};
|
|
31165
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31166
|
-
exports.DomHandler = void 0;
|
|
31167
|
-
var domelementtype_12 = lib$2;
|
|
31168
|
-
var node_js_1 = node;
|
|
31169
|
-
__exportStar(node, exports);
|
|
31170
|
-
var defaultOpts = {
|
|
31171
|
-
withStartIndices: false,
|
|
31172
|
-
withEndIndices: false,
|
|
31173
|
-
xmlMode: false
|
|
31174
|
-
};
|
|
31175
|
-
var DomHandler = (
|
|
31176
|
-
/** @class */
|
|
31177
|
-
function() {
|
|
31178
|
-
function DomHandler2(callback, options, elementCB) {
|
|
31179
|
-
this.dom = [];
|
|
31180
|
-
this.root = new node_js_1.Document(this.dom);
|
|
31181
|
-
this.done = false;
|
|
31182
|
-
this.tagStack = [this.root];
|
|
31183
|
-
this.lastNode = null;
|
|
31184
|
-
this.parser = null;
|
|
31185
|
-
if (typeof options === "function") {
|
|
31186
|
-
elementCB = options;
|
|
31187
|
-
options = defaultOpts;
|
|
31188
|
-
}
|
|
31189
|
-
if (typeof callback === "object") {
|
|
31190
|
-
options = callback;
|
|
31191
|
-
callback = void 0;
|
|
31192
|
-
}
|
|
31193
|
-
this.callback = callback !== null && callback !== void 0 ? callback : null;
|
|
31194
|
-
this.options = options !== null && options !== void 0 ? options : defaultOpts;
|
|
31195
|
-
this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
|
|
31196
|
-
}
|
|
31197
|
-
DomHandler2.prototype.onparserinit = function(parser) {
|
|
31198
|
-
this.parser = parser;
|
|
31199
|
-
};
|
|
31200
|
-
DomHandler2.prototype.onreset = function() {
|
|
31201
|
-
this.dom = [];
|
|
31202
|
-
this.root = new node_js_1.Document(this.dom);
|
|
31203
|
-
this.done = false;
|
|
31204
|
-
this.tagStack = [this.root];
|
|
31205
|
-
this.lastNode = null;
|
|
31206
|
-
this.parser = null;
|
|
31207
|
-
};
|
|
31208
|
-
DomHandler2.prototype.onend = function() {
|
|
31209
|
-
if (this.done)
|
|
31210
|
-
return;
|
|
31211
|
-
this.done = true;
|
|
31212
|
-
this.parser = null;
|
|
31213
|
-
this.handleCallback(null);
|
|
31214
|
-
};
|
|
31215
|
-
DomHandler2.prototype.onerror = function(error) {
|
|
31216
|
-
this.handleCallback(error);
|
|
31217
|
-
};
|
|
31218
|
-
DomHandler2.prototype.onclosetag = function() {
|
|
31219
|
-
this.lastNode = null;
|
|
31220
|
-
var elem = this.tagStack.pop();
|
|
31221
|
-
if (this.options.withEndIndices) {
|
|
31222
|
-
elem.endIndex = this.parser.endIndex;
|
|
31223
|
-
}
|
|
31224
|
-
if (this.elementCB)
|
|
31225
|
-
this.elementCB(elem);
|
|
31226
|
-
};
|
|
31227
|
-
DomHandler2.prototype.onopentag = function(name, attribs) {
|
|
31228
|
-
var type2 = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
|
|
31229
|
-
var element = new node_js_1.Element(name, attribs, void 0, type2);
|
|
31230
|
-
this.addNode(element);
|
|
31231
|
-
this.tagStack.push(element);
|
|
31232
|
-
};
|
|
31233
|
-
DomHandler2.prototype.ontext = function(data) {
|
|
31234
|
-
var lastNode = this.lastNode;
|
|
31235
|
-
if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
|
|
31236
|
-
lastNode.data += data;
|
|
31237
|
-
if (this.options.withEndIndices) {
|
|
31238
|
-
lastNode.endIndex = this.parser.endIndex;
|
|
31239
|
-
}
|
|
31240
|
-
} else {
|
|
31241
|
-
var node2 = new node_js_1.Text(data);
|
|
31242
|
-
this.addNode(node2);
|
|
31243
|
-
this.lastNode = node2;
|
|
31244
|
-
}
|
|
31245
|
-
};
|
|
31246
|
-
DomHandler2.prototype.oncomment = function(data) {
|
|
31247
|
-
if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
|
|
31248
|
-
this.lastNode.data += data;
|
|
31249
|
-
return;
|
|
31250
|
-
}
|
|
31251
|
-
var node2 = new node_js_1.Comment(data);
|
|
31252
|
-
this.addNode(node2);
|
|
31253
|
-
this.lastNode = node2;
|
|
31254
|
-
};
|
|
31255
|
-
DomHandler2.prototype.oncommentend = function() {
|
|
31256
|
-
this.lastNode = null;
|
|
31257
|
-
};
|
|
31258
|
-
DomHandler2.prototype.oncdatastart = function() {
|
|
31259
|
-
var text = new node_js_1.Text("");
|
|
31260
|
-
var node2 = new node_js_1.CDATA([text]);
|
|
31261
|
-
this.addNode(node2);
|
|
31262
|
-
text.parent = node2;
|
|
31263
|
-
this.lastNode = text;
|
|
31264
|
-
};
|
|
31265
|
-
DomHandler2.prototype.oncdataend = function() {
|
|
31266
|
-
this.lastNode = null;
|
|
31267
|
-
};
|
|
31268
|
-
DomHandler2.prototype.onprocessinginstruction = function(name, data) {
|
|
31269
|
-
var node2 = new node_js_1.ProcessingInstruction(name, data);
|
|
31270
|
-
this.addNode(node2);
|
|
31271
|
-
};
|
|
31272
|
-
DomHandler2.prototype.handleCallback = function(error) {
|
|
31273
|
-
if (typeof this.callback === "function") {
|
|
31274
|
-
this.callback(error, this.dom);
|
|
31275
|
-
} else if (error) {
|
|
31276
|
-
throw error;
|
|
31277
|
-
}
|
|
31278
|
-
};
|
|
31279
|
-
DomHandler2.prototype.addNode = function(node2) {
|
|
31280
|
-
var parent = this.tagStack[this.tagStack.length - 1];
|
|
31281
|
-
var previousSibling = parent.children[parent.children.length - 1];
|
|
31282
|
-
if (this.options.withStartIndices) {
|
|
31283
|
-
node2.startIndex = this.parser.startIndex;
|
|
31284
|
-
}
|
|
31285
|
-
if (this.options.withEndIndices) {
|
|
31286
|
-
node2.endIndex = this.parser.endIndex;
|
|
31287
|
-
}
|
|
31288
|
-
parent.children.push(node2);
|
|
31289
|
-
if (previousSibling) {
|
|
31290
|
-
node2.prev = previousSibling;
|
|
31291
|
-
previousSibling.next = node2;
|
|
31292
|
-
}
|
|
31293
|
-
node2.parent = parent;
|
|
31294
|
-
this.lastNode = null;
|
|
31295
|
-
};
|
|
31296
|
-
return DomHandler2;
|
|
31297
|
-
}()
|
|
31298
|
-
);
|
|
31299
|
-
exports.DomHandler = DomHandler;
|
|
31300
|
-
exports.default = DomHandler;
|
|
31301
|
-
})(lib$3);
|
|
31302
|
-
var HTML = "html";
|
|
31303
|
-
var HEAD$1 = "head";
|
|
31304
|
-
var BODY = "body";
|
|
31305
|
-
var FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/;
|
|
31306
|
-
var HEAD_TAG_REGEX = /<head[^]*>/i;
|
|
31307
|
-
var BODY_TAG_REGEX = /<body[^]*>/i;
|
|
31308
|
-
var parseFromDocument = function() {
|
|
31309
|
-
throw new Error(
|
|
31310
|
-
"This browser does not support `document.implementation.createHTMLDocument`"
|
|
31311
|
-
);
|
|
31312
|
-
};
|
|
31313
|
-
var parseFromString = function() {
|
|
31314
|
-
throw new Error(
|
|
31315
|
-
"This browser does not support `DOMParser.prototype.parseFromString`"
|
|
31316
|
-
);
|
|
31317
|
-
};
|
|
31318
|
-
var DOMParser$1 = typeof window === "object" && window.DOMParser;
|
|
31319
|
-
if (typeof DOMParser$1 === "function") {
|
|
31320
|
-
var domParser = new DOMParser$1();
|
|
31321
|
-
var mimeType = "text/html";
|
|
31322
|
-
parseFromString = function(html, tagName2) {
|
|
31323
|
-
if (tagName2) {
|
|
31324
|
-
html = "<" + tagName2 + ">" + html + "</" + tagName2 + ">";
|
|
31325
|
-
}
|
|
31326
|
-
return domParser.parseFromString(html, mimeType);
|
|
31327
|
-
};
|
|
31328
|
-
parseFromDocument = parseFromString;
|
|
31329
|
-
}
|
|
31330
|
-
if (typeof document === "object" && document.implementation) {
|
|
31331
|
-
var doc = document.implementation.createHTMLDocument();
|
|
31332
|
-
parseFromDocument = function(html, tagName2) {
|
|
31333
|
-
if (tagName2) {
|
|
31334
|
-
var element = doc.documentElement.querySelector(tagName2);
|
|
31335
|
-
element.innerHTML = html;
|
|
31336
|
-
return doc;
|
|
31337
|
-
}
|
|
31338
|
-
doc.documentElement.innerHTML = html;
|
|
31339
|
-
return doc;
|
|
31340
|
-
};
|
|
31341
|
-
}
|
|
31342
|
-
var template = typeof document === "object" ? document.createElement("template") : {};
|
|
31343
|
-
var parseFromTemplate;
|
|
31344
|
-
if (template.content) {
|
|
31345
|
-
parseFromTemplate = function(html) {
|
|
31346
|
-
template.innerHTML = html;
|
|
31347
|
-
return template.content.childNodes;
|
|
31348
|
-
};
|
|
31349
|
-
}
|
|
31350
|
-
function domparser$1(html) {
|
|
31351
|
-
var firstTagName;
|
|
31352
|
-
var match = html.match(FIRST_TAG_REGEX);
|
|
31353
|
-
if (match && match[1]) {
|
|
31354
|
-
firstTagName = match[1].toLowerCase();
|
|
31355
|
-
}
|
|
31356
|
-
var doc;
|
|
31357
|
-
var element;
|
|
31358
|
-
var elements;
|
|
31359
|
-
switch (firstTagName) {
|
|
31360
|
-
case HTML:
|
|
31361
|
-
doc = parseFromString(html);
|
|
31362
|
-
if (!HEAD_TAG_REGEX.test(html)) {
|
|
31363
|
-
element = doc.querySelector(HEAD$1);
|
|
31364
|
-
if (element) {
|
|
31365
|
-
element.parentNode.removeChild(element);
|
|
31366
|
-
}
|
|
31367
|
-
}
|
|
31368
|
-
if (!BODY_TAG_REGEX.test(html)) {
|
|
31369
|
-
element = doc.querySelector(BODY);
|
|
31370
|
-
if (element) {
|
|
31371
|
-
element.parentNode.removeChild(element);
|
|
31372
|
-
}
|
|
31373
|
-
}
|
|
31374
|
-
return doc.querySelectorAll(HTML);
|
|
31375
|
-
case HEAD$1:
|
|
31376
|
-
case BODY:
|
|
31377
|
-
doc = parseFromDocument(html);
|
|
31378
|
-
elements = doc.querySelectorAll(firstTagName);
|
|
31379
|
-
if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {
|
|
31380
|
-
return elements[0].parentNode.childNodes;
|
|
31381
|
-
}
|
|
31382
|
-
return elements;
|
|
31383
|
-
default:
|
|
31384
|
-
if (parseFromTemplate) {
|
|
31385
|
-
return parseFromTemplate(html);
|
|
31386
|
-
}
|
|
31387
|
-
element = parseFromDocument(html, BODY).querySelector(BODY);
|
|
31388
|
-
return element.childNodes;
|
|
31389
|
-
}
|
|
31390
|
-
}
|
|
31391
|
-
var domparser_1 = domparser$1;
|
|
31392
|
-
var utilities$5 = {};
|
|
31393
|
-
var constants$1 = {};
|
|
31394
|
-
constants$1.CASE_SENSITIVE_TAG_NAMES = [
|
|
31395
|
-
"animateMotion",
|
|
31396
|
-
"animateTransform",
|
|
31397
|
-
"clipPath",
|
|
31398
|
-
"feBlend",
|
|
31399
|
-
"feColorMatrix",
|
|
31400
|
-
"feComponentTransfer",
|
|
31401
|
-
"feComposite",
|
|
31402
|
-
"feConvolveMatrix",
|
|
31403
|
-
"feDiffuseLighting",
|
|
31404
|
-
"feDisplacementMap",
|
|
31405
|
-
"feDropShadow",
|
|
31406
|
-
"feFlood",
|
|
31407
|
-
"feFuncA",
|
|
31408
|
-
"feFuncB",
|
|
31409
|
-
"feFuncG",
|
|
31410
|
-
"feFuncR",
|
|
31411
|
-
"feGaussianBlur",
|
|
31412
|
-
"feImage",
|
|
31413
|
-
"feMerge",
|
|
31414
|
-
"feMergeNode",
|
|
31415
|
-
"feMorphology",
|
|
31416
|
-
"feOffset",
|
|
31417
|
-
"fePointLight",
|
|
31418
|
-
"feSpecularLighting",
|
|
31419
|
-
"feSpotLight",
|
|
31420
|
-
"feTile",
|
|
31421
|
-
"feTurbulence",
|
|
31422
|
-
"foreignObject",
|
|
31423
|
-
"linearGradient",
|
|
31424
|
-
"radialGradient",
|
|
31425
|
-
"textPath"
|
|
31426
|
-
];
|
|
31427
|
-
var domhandler$1 = lib$3;
|
|
31428
|
-
var constants = constants$1;
|
|
31429
|
-
var CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;
|
|
31430
|
-
var Comment = domhandler$1.Comment;
|
|
31431
|
-
var Element$1 = domhandler$1.Element;
|
|
31432
|
-
var ProcessingInstruction = domhandler$1.ProcessingInstruction;
|
|
31433
|
-
var Text$1 = domhandler$1.Text;
|
|
31434
|
-
var caseSensitiveTagNamesMap = {};
|
|
31435
|
-
var tagName;
|
|
31436
|
-
for (var i$1 = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i$1 < len; i$1++) {
|
|
31437
|
-
tagName = CASE_SENSITIVE_TAG_NAMES[i$1];
|
|
31438
|
-
caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;
|
|
31439
|
-
}
|
|
31440
|
-
function getCaseSensitiveTagName(tagName2) {
|
|
31441
|
-
return caseSensitiveTagNamesMap[tagName2];
|
|
31442
|
-
}
|
|
31443
|
-
function formatAttributes(attributes) {
|
|
31444
|
-
var result = {};
|
|
31445
|
-
var attribute;
|
|
31446
|
-
for (var i2 = 0, len = attributes.length; i2 < len; i2++) {
|
|
31447
|
-
attribute = attributes[i2];
|
|
31448
|
-
result[attribute.name] = attribute.value;
|
|
31449
|
-
}
|
|
31450
|
-
return result;
|
|
31451
|
-
}
|
|
31452
|
-
function formatTagName(tagName2) {
|
|
31453
|
-
tagName2 = tagName2.toLowerCase();
|
|
31454
|
-
var caseSensitiveTagName = getCaseSensitiveTagName(tagName2);
|
|
31455
|
-
if (caseSensitiveTagName) {
|
|
31456
|
-
return caseSensitiveTagName;
|
|
31457
|
-
}
|
|
31458
|
-
return tagName2;
|
|
31459
|
-
}
|
|
31460
|
-
function formatDOM$1(nodes, parent, directive) {
|
|
31461
|
-
parent = parent || null;
|
|
31462
|
-
var result = [];
|
|
31463
|
-
var tagName2;
|
|
31464
|
-
for (var index2 = 0, len = nodes.length; index2 < len; index2++) {
|
|
31465
|
-
var node2 = nodes[index2];
|
|
31466
|
-
var current;
|
|
31467
|
-
switch (node2.nodeType) {
|
|
31468
|
-
case 1:
|
|
31469
|
-
tagName2 = formatTagName(node2.nodeName);
|
|
31470
|
-
current = new Element$1(tagName2, formatAttributes(node2.attributes));
|
|
31471
|
-
current.children = formatDOM$1(
|
|
31472
|
-
// template children are on content
|
|
31473
|
-
tagName2 === "template" ? node2.content.childNodes : node2.childNodes,
|
|
31474
|
-
current
|
|
31475
|
-
);
|
|
31476
|
-
break;
|
|
31477
|
-
case 3:
|
|
31478
|
-
current = new Text$1(node2.nodeValue);
|
|
31479
|
-
break;
|
|
31480
|
-
case 8:
|
|
31481
|
-
current = new Comment(node2.nodeValue);
|
|
31482
|
-
break;
|
|
31483
|
-
default:
|
|
31484
|
-
continue;
|
|
31485
|
-
}
|
|
31486
|
-
var prev = result[index2 - 1] || null;
|
|
31487
|
-
if (prev) {
|
|
31488
|
-
prev.next = current;
|
|
31489
|
-
}
|
|
31490
|
-
current.parent = parent;
|
|
31491
|
-
current.prev = prev;
|
|
31492
|
-
current.next = null;
|
|
31493
|
-
result.push(current);
|
|
31494
|
-
}
|
|
31495
|
-
if (directive) {
|
|
31496
|
-
current = new ProcessingInstruction(
|
|
31497
|
-
directive.substring(0, directive.indexOf(" ")).toLowerCase(),
|
|
31498
|
-
directive
|
|
31499
|
-
);
|
|
31500
|
-
current.next = result[0] || null;
|
|
31501
|
-
current.parent = parent;
|
|
31502
|
-
result.unshift(current);
|
|
31503
|
-
if (result[1]) {
|
|
31504
|
-
result[1].prev = result[0];
|
|
31505
|
-
}
|
|
31506
|
-
}
|
|
31507
|
-
return result;
|
|
31508
|
-
}
|
|
31509
|
-
utilities$5.formatAttributes = formatAttributes;
|
|
31510
|
-
utilities$5.formatDOM = formatDOM$1;
|
|
31511
|
-
var domparser = domparser_1;
|
|
31512
|
-
var utilities$4 = utilities$5;
|
|
31513
|
-
var formatDOM = utilities$4.formatDOM;
|
|
31514
|
-
var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/;
|
|
31515
|
-
function HTMLDOMParser(html) {
|
|
31516
|
-
if (typeof html !== "string") {
|
|
31517
|
-
throw new TypeError("First argument must be a string");
|
|
31518
|
-
}
|
|
31519
|
-
if (html === "") {
|
|
31520
|
-
return [];
|
|
31521
|
-
}
|
|
31522
|
-
var match = html.match(DIRECTIVE_REGEX);
|
|
31523
|
-
var directive;
|
|
31524
|
-
if (match && match[1]) {
|
|
31525
|
-
directive = match[1];
|
|
31526
|
-
}
|
|
31527
|
-
return formatDOM(domparser(html), null, directive);
|
|
31528
|
-
}
|
|
31529
|
-
var htmlToDom = HTMLDOMParser;
|
|
31530
|
-
var lib$1 = {};
|
|
31531
|
-
var possibleStandardNamesOptimized$1 = {};
|
|
31532
|
-
var SAME$1 = 0;
|
|
31533
|
-
possibleStandardNamesOptimized$1.SAME = SAME$1;
|
|
31534
|
-
var CAMELCASE$1 = 1;
|
|
31535
|
-
possibleStandardNamesOptimized$1.CAMELCASE = CAMELCASE$1;
|
|
31536
|
-
possibleStandardNamesOptimized$1.possibleStandardNames = {
|
|
31537
|
-
accept: 0,
|
|
31538
|
-
acceptCharset: 1,
|
|
31539
|
-
"accept-charset": "acceptCharset",
|
|
31540
|
-
accessKey: 1,
|
|
31541
|
-
action: 0,
|
|
31542
|
-
allowFullScreen: 1,
|
|
31543
|
-
alt: 0,
|
|
31544
|
-
as: 0,
|
|
31545
|
-
async: 0,
|
|
31546
|
-
autoCapitalize: 1,
|
|
31547
|
-
autoComplete: 1,
|
|
31548
|
-
autoCorrect: 1,
|
|
31549
|
-
autoFocus: 1,
|
|
31550
|
-
autoPlay: 1,
|
|
31551
|
-
autoSave: 1,
|
|
31552
|
-
capture: 0,
|
|
31553
|
-
cellPadding: 1,
|
|
31554
|
-
cellSpacing: 1,
|
|
31555
|
-
challenge: 0,
|
|
31556
|
-
charSet: 1,
|
|
31557
|
-
checked: 0,
|
|
31558
|
-
children: 0,
|
|
31559
|
-
cite: 0,
|
|
31560
|
-
class: "className",
|
|
31561
|
-
classID: 1,
|
|
31562
|
-
className: 1,
|
|
31563
|
-
cols: 0,
|
|
31564
|
-
colSpan: 1,
|
|
31565
|
-
content: 0,
|
|
31566
|
-
contentEditable: 1,
|
|
31567
|
-
contextMenu: 1,
|
|
31568
|
-
controls: 0,
|
|
31569
|
-
controlsList: 1,
|
|
31570
|
-
coords: 0,
|
|
31571
|
-
crossOrigin: 1,
|
|
31572
|
-
dangerouslySetInnerHTML: 1,
|
|
31573
|
-
data: 0,
|
|
31574
|
-
dateTime: 1,
|
|
31575
|
-
default: 0,
|
|
31576
|
-
defaultChecked: 1,
|
|
31577
|
-
defaultValue: 1,
|
|
31578
|
-
defer: 0,
|
|
31579
|
-
dir: 0,
|
|
31580
|
-
disabled: 0,
|
|
31581
|
-
disablePictureInPicture: 1,
|
|
31582
|
-
disableRemotePlayback: 1,
|
|
31583
|
-
download: 0,
|
|
31584
|
-
draggable: 0,
|
|
31585
|
-
encType: 1,
|
|
31586
|
-
enterKeyHint: 1,
|
|
31587
|
-
for: "htmlFor",
|
|
31588
|
-
form: 0,
|
|
31589
|
-
formMethod: 1,
|
|
31590
|
-
formAction: 1,
|
|
31591
|
-
formEncType: 1,
|
|
31592
|
-
formNoValidate: 1,
|
|
31593
|
-
formTarget: 1,
|
|
31594
|
-
frameBorder: 1,
|
|
31595
|
-
headers: 0,
|
|
31596
|
-
height: 0,
|
|
31597
|
-
hidden: 0,
|
|
31598
|
-
high: 0,
|
|
31599
|
-
href: 0,
|
|
31600
|
-
hrefLang: 1,
|
|
31601
|
-
htmlFor: 1,
|
|
31602
|
-
httpEquiv: 1,
|
|
31603
|
-
"http-equiv": "httpEquiv",
|
|
31604
|
-
icon: 0,
|
|
31605
|
-
id: 0,
|
|
31606
|
-
innerHTML: 1,
|
|
31607
|
-
inputMode: 1,
|
|
31608
|
-
integrity: 0,
|
|
31609
|
-
is: 0,
|
|
31610
|
-
itemID: 1,
|
|
31611
|
-
itemProp: 1,
|
|
31612
|
-
itemRef: 1,
|
|
31613
|
-
itemScope: 1,
|
|
31614
|
-
itemType: 1,
|
|
31615
|
-
keyParams: 1,
|
|
31616
|
-
keyType: 1,
|
|
31617
|
-
kind: 0,
|
|
31618
|
-
label: 0,
|
|
31619
|
-
lang: 0,
|
|
31620
|
-
list: 0,
|
|
31621
|
-
loop: 0,
|
|
31622
|
-
low: 0,
|
|
31623
|
-
manifest: 0,
|
|
31624
|
-
marginWidth: 1,
|
|
31625
|
-
marginHeight: 1,
|
|
31626
|
-
max: 0,
|
|
31627
|
-
maxLength: 1,
|
|
31628
|
-
media: 0,
|
|
31629
|
-
mediaGroup: 1,
|
|
31630
|
-
method: 0,
|
|
31631
|
-
min: 0,
|
|
31632
|
-
minLength: 1,
|
|
31633
|
-
multiple: 0,
|
|
31634
|
-
muted: 0,
|
|
31635
|
-
name: 0,
|
|
31636
|
-
noModule: 1,
|
|
31637
|
-
nonce: 0,
|
|
31638
|
-
noValidate: 1,
|
|
31639
|
-
open: 0,
|
|
31640
|
-
optimum: 0,
|
|
31641
|
-
pattern: 0,
|
|
31642
|
-
placeholder: 0,
|
|
31643
|
-
playsInline: 1,
|
|
31644
|
-
poster: 0,
|
|
31645
|
-
preload: 0,
|
|
31646
|
-
profile: 0,
|
|
31647
|
-
radioGroup: 1,
|
|
31648
|
-
readOnly: 1,
|
|
31649
|
-
referrerPolicy: 1,
|
|
31650
|
-
rel: 0,
|
|
31651
|
-
required: 0,
|
|
31652
|
-
reversed: 0,
|
|
31653
|
-
role: 0,
|
|
31654
|
-
rows: 0,
|
|
31655
|
-
rowSpan: 1,
|
|
31656
|
-
sandbox: 0,
|
|
31657
|
-
scope: 0,
|
|
31658
|
-
scoped: 0,
|
|
31659
|
-
scrolling: 0,
|
|
31660
|
-
seamless: 0,
|
|
31661
|
-
selected: 0,
|
|
31662
|
-
shape: 0,
|
|
31663
|
-
size: 0,
|
|
31664
|
-
sizes: 0,
|
|
31665
|
-
span: 0,
|
|
31666
|
-
spellCheck: 1,
|
|
31667
|
-
src: 0,
|
|
31668
|
-
srcDoc: 1,
|
|
31669
|
-
srcLang: 1,
|
|
31670
|
-
srcSet: 1,
|
|
31671
|
-
start: 0,
|
|
31672
|
-
step: 0,
|
|
31673
|
-
style: 0,
|
|
31674
|
-
summary: 0,
|
|
31675
|
-
tabIndex: 1,
|
|
31676
|
-
target: 0,
|
|
31677
|
-
title: 0,
|
|
31678
|
-
type: 0,
|
|
31679
|
-
useMap: 1,
|
|
31680
|
-
value: 0,
|
|
31681
|
-
width: 0,
|
|
31682
|
-
wmode: 0,
|
|
31683
|
-
wrap: 0,
|
|
31684
|
-
about: 0,
|
|
31685
|
-
accentHeight: 1,
|
|
31686
|
-
"accent-height": "accentHeight",
|
|
31687
|
-
accumulate: 0,
|
|
31688
|
-
additive: 0,
|
|
31689
|
-
alignmentBaseline: 1,
|
|
31690
|
-
"alignment-baseline": "alignmentBaseline",
|
|
31691
|
-
allowReorder: 1,
|
|
31692
|
-
alphabetic: 0,
|
|
31693
|
-
amplitude: 0,
|
|
31694
|
-
arabicForm: 1,
|
|
31695
|
-
"arabic-form": "arabicForm",
|
|
31696
|
-
ascent: 0,
|
|
31697
|
-
attributeName: 1,
|
|
31698
|
-
attributeType: 1,
|
|
31699
|
-
autoReverse: 1,
|
|
31700
|
-
azimuth: 0,
|
|
31701
|
-
baseFrequency: 1,
|
|
31702
|
-
baselineShift: 1,
|
|
31703
|
-
"baseline-shift": "baselineShift",
|
|
31704
|
-
baseProfile: 1,
|
|
31705
|
-
bbox: 0,
|
|
31706
|
-
begin: 0,
|
|
31707
|
-
bias: 0,
|
|
31708
|
-
by: 0,
|
|
31709
|
-
calcMode: 1,
|
|
31710
|
-
capHeight: 1,
|
|
31711
|
-
"cap-height": "capHeight",
|
|
31712
|
-
clip: 0,
|
|
31713
|
-
clipPath: 1,
|
|
31714
|
-
"clip-path": "clipPath",
|
|
31715
|
-
clipPathUnits: 1,
|
|
31716
|
-
clipRule: 1,
|
|
31717
|
-
"clip-rule": "clipRule",
|
|
31718
|
-
color: 0,
|
|
31719
|
-
colorInterpolation: 1,
|
|
31720
|
-
"color-interpolation": "colorInterpolation",
|
|
31721
|
-
colorInterpolationFilters: 1,
|
|
31722
|
-
"color-interpolation-filters": "colorInterpolationFilters",
|
|
31723
|
-
colorProfile: 1,
|
|
31724
|
-
"color-profile": "colorProfile",
|
|
31725
|
-
colorRendering: 1,
|
|
31726
|
-
"color-rendering": "colorRendering",
|
|
31727
|
-
contentScriptType: 1,
|
|
31728
|
-
contentStyleType: 1,
|
|
31729
|
-
cursor: 0,
|
|
31730
|
-
cx: 0,
|
|
31731
|
-
cy: 0,
|
|
31732
|
-
d: 0,
|
|
31733
|
-
datatype: 0,
|
|
31734
|
-
decelerate: 0,
|
|
31735
|
-
descent: 0,
|
|
31736
|
-
diffuseConstant: 1,
|
|
31737
|
-
direction: 0,
|
|
31738
|
-
display: 0,
|
|
31739
|
-
divisor: 0,
|
|
31740
|
-
dominantBaseline: 1,
|
|
31741
|
-
"dominant-baseline": "dominantBaseline",
|
|
31742
|
-
dur: 0,
|
|
31743
|
-
dx: 0,
|
|
31744
|
-
dy: 0,
|
|
31745
|
-
edgeMode: 1,
|
|
31746
|
-
elevation: 0,
|
|
31747
|
-
enableBackground: 1,
|
|
31748
|
-
"enable-background": "enableBackground",
|
|
31749
|
-
end: 0,
|
|
31750
|
-
exponent: 0,
|
|
31751
|
-
externalResourcesRequired: 1,
|
|
31752
|
-
fill: 0,
|
|
31753
|
-
fillOpacity: 1,
|
|
31754
|
-
"fill-opacity": "fillOpacity",
|
|
31755
|
-
fillRule: 1,
|
|
31756
|
-
"fill-rule": "fillRule",
|
|
31757
|
-
filter: 0,
|
|
31758
|
-
filterRes: 1,
|
|
31759
|
-
filterUnits: 1,
|
|
31760
|
-
floodOpacity: 1,
|
|
31761
|
-
"flood-opacity": "floodOpacity",
|
|
31762
|
-
floodColor: 1,
|
|
31763
|
-
"flood-color": "floodColor",
|
|
31764
|
-
focusable: 0,
|
|
31765
|
-
fontFamily: 1,
|
|
31766
|
-
"font-family": "fontFamily",
|
|
31767
|
-
fontSize: 1,
|
|
31768
|
-
"font-size": "fontSize",
|
|
31769
|
-
fontSizeAdjust: 1,
|
|
31770
|
-
"font-size-adjust": "fontSizeAdjust",
|
|
31771
|
-
fontStretch: 1,
|
|
31772
|
-
"font-stretch": "fontStretch",
|
|
31773
|
-
fontStyle: 1,
|
|
31774
|
-
"font-style": "fontStyle",
|
|
31775
|
-
fontVariant: 1,
|
|
31776
|
-
"font-variant": "fontVariant",
|
|
31777
|
-
fontWeight: 1,
|
|
31778
|
-
"font-weight": "fontWeight",
|
|
31779
|
-
format: 0,
|
|
31780
|
-
from: 0,
|
|
31781
|
-
fx: 0,
|
|
31782
|
-
fy: 0,
|
|
31783
|
-
g1: 0,
|
|
31784
|
-
g2: 0,
|
|
31785
|
-
glyphName: 1,
|
|
31786
|
-
"glyph-name": "glyphName",
|
|
31787
|
-
glyphOrientationHorizontal: 1,
|
|
31788
|
-
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
31789
|
-
glyphOrientationVertical: 1,
|
|
31790
|
-
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
31791
|
-
glyphRef: 1,
|
|
31792
|
-
gradientTransform: 1,
|
|
31793
|
-
gradientUnits: 1,
|
|
31794
|
-
hanging: 0,
|
|
31795
|
-
horizAdvX: 1,
|
|
31796
|
-
"horiz-adv-x": "horizAdvX",
|
|
31797
|
-
horizOriginX: 1,
|
|
31798
|
-
"horiz-origin-x": "horizOriginX",
|
|
31799
|
-
ideographic: 0,
|
|
31800
|
-
imageRendering: 1,
|
|
31801
|
-
"image-rendering": "imageRendering",
|
|
31802
|
-
in2: 0,
|
|
31803
|
-
in: 0,
|
|
31804
|
-
inlist: 0,
|
|
31805
|
-
intercept: 0,
|
|
31806
|
-
k1: 0,
|
|
31807
|
-
k2: 0,
|
|
31808
|
-
k3: 0,
|
|
31809
|
-
k4: 0,
|
|
31810
|
-
k: 0,
|
|
31811
|
-
kernelMatrix: 1,
|
|
31812
|
-
kernelUnitLength: 1,
|
|
31813
|
-
kerning: 0,
|
|
31814
|
-
keyPoints: 1,
|
|
31815
|
-
keySplines: 1,
|
|
31816
|
-
keyTimes: 1,
|
|
31817
|
-
lengthAdjust: 1,
|
|
31818
|
-
letterSpacing: 1,
|
|
31819
|
-
"letter-spacing": "letterSpacing",
|
|
31820
|
-
lightingColor: 1,
|
|
31821
|
-
"lighting-color": "lightingColor",
|
|
31822
|
-
limitingConeAngle: 1,
|
|
31823
|
-
local: 0,
|
|
31824
|
-
markerEnd: 1,
|
|
31825
|
-
"marker-end": "markerEnd",
|
|
31826
|
-
markerHeight: 1,
|
|
31827
|
-
markerMid: 1,
|
|
31828
|
-
"marker-mid": "markerMid",
|
|
31829
|
-
markerStart: 1,
|
|
31830
|
-
"marker-start": "markerStart",
|
|
31831
|
-
markerUnits: 1,
|
|
31832
|
-
markerWidth: 1,
|
|
31833
|
-
mask: 0,
|
|
31834
|
-
maskContentUnits: 1,
|
|
31835
|
-
maskUnits: 1,
|
|
31836
|
-
mathematical: 0,
|
|
31837
|
-
mode: 0,
|
|
31838
|
-
numOctaves: 1,
|
|
31839
|
-
offset: 0,
|
|
31840
|
-
opacity: 0,
|
|
31841
|
-
operator: 0,
|
|
31842
|
-
order: 0,
|
|
31843
|
-
orient: 0,
|
|
31844
|
-
orientation: 0,
|
|
31845
|
-
origin: 0,
|
|
31846
|
-
overflow: 0,
|
|
31847
|
-
overlinePosition: 1,
|
|
31848
|
-
"overline-position": "overlinePosition",
|
|
31849
|
-
overlineThickness: 1,
|
|
31850
|
-
"overline-thickness": "overlineThickness",
|
|
31851
|
-
paintOrder: 1,
|
|
31852
|
-
"paint-order": "paintOrder",
|
|
31853
|
-
panose1: 0,
|
|
31854
|
-
"panose-1": "panose1",
|
|
31855
|
-
pathLength: 1,
|
|
31856
|
-
patternContentUnits: 1,
|
|
31857
|
-
patternTransform: 1,
|
|
31858
|
-
patternUnits: 1,
|
|
31859
|
-
pointerEvents: 1,
|
|
31860
|
-
"pointer-events": "pointerEvents",
|
|
31861
|
-
points: 0,
|
|
31862
|
-
pointsAtX: 1,
|
|
31863
|
-
pointsAtY: 1,
|
|
31864
|
-
pointsAtZ: 1,
|
|
31865
|
-
prefix: 0,
|
|
31866
|
-
preserveAlpha: 1,
|
|
31867
|
-
preserveAspectRatio: 1,
|
|
31868
|
-
primitiveUnits: 1,
|
|
31869
|
-
property: 0,
|
|
31870
|
-
r: 0,
|
|
31871
|
-
radius: 0,
|
|
31872
|
-
refX: 1,
|
|
31873
|
-
refY: 1,
|
|
31874
|
-
renderingIntent: 1,
|
|
31875
|
-
"rendering-intent": "renderingIntent",
|
|
31876
|
-
repeatCount: 1,
|
|
31877
|
-
repeatDur: 1,
|
|
31878
|
-
requiredExtensions: 1,
|
|
31879
|
-
requiredFeatures: 1,
|
|
31880
|
-
resource: 0,
|
|
31881
|
-
restart: 0,
|
|
31882
|
-
result: 0,
|
|
31883
|
-
results: 0,
|
|
31884
|
-
rotate: 0,
|
|
31885
|
-
rx: 0,
|
|
31886
|
-
ry: 0,
|
|
31887
|
-
scale: 0,
|
|
31888
|
-
security: 0,
|
|
31889
|
-
seed: 0,
|
|
31890
|
-
shapeRendering: 1,
|
|
31891
|
-
"shape-rendering": "shapeRendering",
|
|
31892
|
-
slope: 0,
|
|
31893
|
-
spacing: 0,
|
|
31894
|
-
specularConstant: 1,
|
|
31895
|
-
specularExponent: 1,
|
|
31896
|
-
speed: 0,
|
|
31897
|
-
spreadMethod: 1,
|
|
31898
|
-
startOffset: 1,
|
|
31899
|
-
stdDeviation: 1,
|
|
31900
|
-
stemh: 0,
|
|
31901
|
-
stemv: 0,
|
|
31902
|
-
stitchTiles: 1,
|
|
31903
|
-
stopColor: 1,
|
|
31904
|
-
"stop-color": "stopColor",
|
|
31905
|
-
stopOpacity: 1,
|
|
31906
|
-
"stop-opacity": "stopOpacity",
|
|
31907
|
-
strikethroughPosition: 1,
|
|
31908
|
-
"strikethrough-position": "strikethroughPosition",
|
|
31909
|
-
strikethroughThickness: 1,
|
|
31910
|
-
"strikethrough-thickness": "strikethroughThickness",
|
|
31911
|
-
string: 0,
|
|
31912
|
-
stroke: 0,
|
|
31913
|
-
strokeDasharray: 1,
|
|
31914
|
-
"stroke-dasharray": "strokeDasharray",
|
|
31915
|
-
strokeDashoffset: 1,
|
|
31916
|
-
"stroke-dashoffset": "strokeDashoffset",
|
|
31917
|
-
strokeLinecap: 1,
|
|
31918
|
-
"stroke-linecap": "strokeLinecap",
|
|
31919
|
-
strokeLinejoin: 1,
|
|
31920
|
-
"stroke-linejoin": "strokeLinejoin",
|
|
31921
|
-
strokeMiterlimit: 1,
|
|
31922
|
-
"stroke-miterlimit": "strokeMiterlimit",
|
|
31923
|
-
strokeWidth: 1,
|
|
31924
|
-
"stroke-width": "strokeWidth",
|
|
31925
|
-
strokeOpacity: 1,
|
|
31926
|
-
"stroke-opacity": "strokeOpacity",
|
|
31927
|
-
suppressContentEditableWarning: 1,
|
|
31928
|
-
suppressHydrationWarning: 1,
|
|
31929
|
-
surfaceScale: 1,
|
|
31930
|
-
systemLanguage: 1,
|
|
31931
|
-
tableValues: 1,
|
|
31932
|
-
targetX: 1,
|
|
31933
|
-
targetY: 1,
|
|
31934
|
-
textAnchor: 1,
|
|
31935
|
-
"text-anchor": "textAnchor",
|
|
31936
|
-
textDecoration: 1,
|
|
31937
|
-
"text-decoration": "textDecoration",
|
|
31938
|
-
textLength: 1,
|
|
31939
|
-
textRendering: 1,
|
|
31940
|
-
"text-rendering": "textRendering",
|
|
31941
|
-
to: 0,
|
|
31942
|
-
transform: 0,
|
|
31943
|
-
typeof: 0,
|
|
31944
|
-
u1: 0,
|
|
31945
|
-
u2: 0,
|
|
31946
|
-
underlinePosition: 1,
|
|
31947
|
-
"underline-position": "underlinePosition",
|
|
31948
|
-
underlineThickness: 1,
|
|
31949
|
-
"underline-thickness": "underlineThickness",
|
|
31950
|
-
unicode: 0,
|
|
31951
|
-
unicodeBidi: 1,
|
|
31952
|
-
"unicode-bidi": "unicodeBidi",
|
|
31953
|
-
unicodeRange: 1,
|
|
31954
|
-
"unicode-range": "unicodeRange",
|
|
31955
|
-
unitsPerEm: 1,
|
|
31956
|
-
"units-per-em": "unitsPerEm",
|
|
31957
|
-
unselectable: 0,
|
|
31958
|
-
vAlphabetic: 1,
|
|
31959
|
-
"v-alphabetic": "vAlphabetic",
|
|
31960
|
-
values: 0,
|
|
31961
|
-
vectorEffect: 1,
|
|
31962
|
-
"vector-effect": "vectorEffect",
|
|
31963
|
-
version: 0,
|
|
31964
|
-
vertAdvY: 1,
|
|
31965
|
-
"vert-adv-y": "vertAdvY",
|
|
31966
|
-
vertOriginX: 1,
|
|
31967
|
-
"vert-origin-x": "vertOriginX",
|
|
31968
|
-
vertOriginY: 1,
|
|
31969
|
-
"vert-origin-y": "vertOriginY",
|
|
31970
|
-
vHanging: 1,
|
|
31971
|
-
"v-hanging": "vHanging",
|
|
31972
|
-
vIdeographic: 1,
|
|
31973
|
-
"v-ideographic": "vIdeographic",
|
|
31974
|
-
viewBox: 1,
|
|
31975
|
-
viewTarget: 1,
|
|
31976
|
-
visibility: 0,
|
|
31977
|
-
vMathematical: 1,
|
|
31978
|
-
"v-mathematical": "vMathematical",
|
|
31979
|
-
vocab: 0,
|
|
31980
|
-
widths: 0,
|
|
31981
|
-
wordSpacing: 1,
|
|
31982
|
-
"word-spacing": "wordSpacing",
|
|
31983
|
-
writingMode: 1,
|
|
31984
|
-
"writing-mode": "writingMode",
|
|
31985
|
-
x1: 0,
|
|
31986
|
-
x2: 0,
|
|
31987
|
-
x: 0,
|
|
31988
|
-
xChannelSelector: 1,
|
|
31989
|
-
xHeight: 1,
|
|
31990
|
-
"x-height": "xHeight",
|
|
31991
|
-
xlinkActuate: 1,
|
|
31992
|
-
"xlink:actuate": "xlinkActuate",
|
|
31993
|
-
xlinkArcrole: 1,
|
|
31994
|
-
"xlink:arcrole": "xlinkArcrole",
|
|
31995
|
-
xlinkHref: 1,
|
|
31996
|
-
"xlink:href": "xlinkHref",
|
|
31997
|
-
xlinkRole: 1,
|
|
31998
|
-
"xlink:role": "xlinkRole",
|
|
31999
|
-
xlinkShow: 1,
|
|
32000
|
-
"xlink:show": "xlinkShow",
|
|
32001
|
-
xlinkTitle: 1,
|
|
32002
|
-
"xlink:title": "xlinkTitle",
|
|
32003
|
-
xlinkType: 1,
|
|
32004
|
-
"xlink:type": "xlinkType",
|
|
32005
|
-
xmlBase: 1,
|
|
32006
|
-
"xml:base": "xmlBase",
|
|
32007
|
-
xmlLang: 1,
|
|
32008
|
-
"xml:lang": "xmlLang",
|
|
32009
|
-
xmlns: 0,
|
|
32010
|
-
"xml:space": "xmlSpace",
|
|
32011
|
-
xmlnsXlink: 1,
|
|
32012
|
-
"xmlns:xlink": "xmlnsXlink",
|
|
32013
|
-
xmlSpace: 1,
|
|
32014
|
-
y1: 0,
|
|
32015
|
-
y2: 0,
|
|
32016
|
-
y: 0,
|
|
32017
|
-
yChannelSelector: 1,
|
|
32018
|
-
z: 0,
|
|
32019
|
-
zoomAndPan: 1
|
|
32020
|
-
};
|
|
32021
|
-
Object.defineProperty(lib$1, "__esModule", { value: true });
|
|
32022
|
-
function _slicedToArray(arr2, i2) {
|
|
32023
|
-
return _arrayWithHoles(arr2) || _iterableToArrayLimit(arr2, i2) || _unsupportedIterableToArray(arr2, i2) || _nonIterableRest();
|
|
32024
|
-
}
|
|
32025
|
-
function _arrayWithHoles(arr2) {
|
|
32026
|
-
if (Array.isArray(arr2))
|
|
32027
|
-
return arr2;
|
|
32028
|
-
}
|
|
32029
|
-
function _iterableToArrayLimit(arr2, i2) {
|
|
32030
|
-
var _i2 = arr2 == null ? null : typeof Symbol !== "undefined" && arr2[Symbol.iterator] || arr2["@@iterator"];
|
|
32031
|
-
if (_i2 == null)
|
|
32032
|
-
return;
|
|
32033
|
-
var _arr = [];
|
|
32034
|
-
var _n = true;
|
|
32035
|
-
var _d2 = false;
|
|
32036
|
-
var _s, _e2;
|
|
32037
|
-
try {
|
|
32038
|
-
for (_i2 = _i2.call(arr2); !(_n = (_s = _i2.next()).done); _n = true) {
|
|
32039
|
-
_arr.push(_s.value);
|
|
32040
|
-
if (i2 && _arr.length === i2)
|
|
32041
|
-
break;
|
|
32042
|
-
}
|
|
32043
|
-
} catch (err2) {
|
|
32044
|
-
_d2 = true;
|
|
32045
|
-
_e2 = err2;
|
|
32046
|
-
} finally {
|
|
32047
|
-
try {
|
|
32048
|
-
if (!_n && _i2["return"] != null)
|
|
32049
|
-
_i2["return"]();
|
|
32050
|
-
} finally {
|
|
32051
|
-
if (_d2)
|
|
32052
|
-
throw _e2;
|
|
32053
|
-
}
|
|
32054
|
-
}
|
|
32055
|
-
return _arr;
|
|
32056
|
-
}
|
|
32057
|
-
function _unsupportedIterableToArray(o2, minLen) {
|
|
32058
|
-
if (!o2)
|
|
32059
|
-
return;
|
|
32060
|
-
if (typeof o2 === "string")
|
|
32061
|
-
return _arrayLikeToArray(o2, minLen);
|
|
32062
|
-
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
32063
|
-
if (n2 === "Object" && o2.constructor)
|
|
32064
|
-
n2 = o2.constructor.name;
|
|
32065
|
-
if (n2 === "Map" || n2 === "Set")
|
|
32066
|
-
return Array.from(o2);
|
|
32067
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
32068
|
-
return _arrayLikeToArray(o2, minLen);
|
|
32069
|
-
}
|
|
32070
|
-
function _arrayLikeToArray(arr2, len) {
|
|
32071
|
-
if (len == null || len > arr2.length)
|
|
32072
|
-
len = arr2.length;
|
|
32073
|
-
for (var i2 = 0, arr22 = new Array(len); i2 < len; i2++)
|
|
32074
|
-
arr22[i2] = arr2[i2];
|
|
32075
|
-
return arr22;
|
|
32076
|
-
}
|
|
32077
|
-
function _nonIterableRest() {
|
|
32078
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32079
|
-
}
|
|
32080
|
-
var RESERVED = 0;
|
|
32081
|
-
var STRING = 1;
|
|
32082
|
-
var BOOLEANISH_STRING = 2;
|
|
32083
|
-
var BOOLEAN = 3;
|
|
32084
|
-
var OVERLOADED_BOOLEAN = 4;
|
|
32085
|
-
var NUMERIC = 5;
|
|
32086
|
-
var POSITIVE_NUMERIC = 6;
|
|
32087
|
-
function getPropertyInfo(name) {
|
|
32088
|
-
return properties.hasOwnProperty(name) ? properties[name] : null;
|
|
32089
|
-
}
|
|
32090
|
-
function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
|
|
32091
|
-
this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN;
|
|
32092
|
-
this.attributeName = attributeName;
|
|
32093
|
-
this.attributeNamespace = attributeNamespace;
|
|
32094
|
-
this.mustUseProperty = mustUseProperty;
|
|
32095
|
-
this.propertyName = name;
|
|
32096
|
-
this.type = type2;
|
|
32097
|
-
this.sanitizeURL = sanitizeURL;
|
|
32098
|
-
this.removeEmptyString = removeEmptyString;
|
|
32099
|
-
}
|
|
32100
|
-
var properties = {};
|
|
32101
|
-
var reservedProps = [
|
|
32102
|
-
"children",
|
|
32103
|
-
"dangerouslySetInnerHTML",
|
|
32104
|
-
// TODO: This prevents the assignment of defaultValue to regular
|
|
32105
|
-
// elements (not just inputs). Now that ReactDOMInput assigns to the
|
|
32106
|
-
// defaultValue property -- do we need this?
|
|
32107
|
-
"defaultValue",
|
|
32108
|
-
"defaultChecked",
|
|
32109
|
-
"innerHTML",
|
|
32110
|
-
"suppressContentEditableWarning",
|
|
32111
|
-
"suppressHydrationWarning",
|
|
32112
|
-
"style"
|
|
32113
|
-
];
|
|
32114
|
-
reservedProps.forEach(function(name) {
|
|
32115
|
-
properties[name] = new PropertyInfoRecord(
|
|
32116
|
-
name,
|
|
32117
|
-
RESERVED,
|
|
32118
|
-
false,
|
|
32119
|
-
// mustUseProperty
|
|
32120
|
-
name,
|
|
32121
|
-
// attributeName
|
|
32122
|
-
null,
|
|
32123
|
-
// attributeNamespace
|
|
32124
|
-
false,
|
|
32125
|
-
// sanitizeURL
|
|
32126
|
-
false
|
|
32127
|
-
);
|
|
32128
|
-
});
|
|
32129
|
-
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) {
|
|
32130
|
-
var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], attributeName = _ref2[1];
|
|
32131
|
-
properties[name] = new PropertyInfoRecord(
|
|
32132
|
-
name,
|
|
32133
|
-
STRING,
|
|
32134
|
-
false,
|
|
32135
|
-
// mustUseProperty
|
|
32136
|
-
attributeName,
|
|
32137
|
-
// attributeName
|
|
32138
|
-
null,
|
|
32139
|
-
// attributeNamespace
|
|
32140
|
-
false,
|
|
32141
|
-
// sanitizeURL
|
|
32142
|
-
false
|
|
32143
|
-
);
|
|
32144
|
-
});
|
|
32145
|
-
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) {
|
|
32146
|
-
properties[name] = new PropertyInfoRecord(
|
|
32147
|
-
name,
|
|
32148
|
-
BOOLEANISH_STRING,
|
|
32149
|
-
false,
|
|
32150
|
-
// mustUseProperty
|
|
32151
|
-
name.toLowerCase(),
|
|
32152
|
-
// attributeName
|
|
32153
|
-
null,
|
|
32154
|
-
// attributeNamespace
|
|
32155
|
-
false,
|
|
32156
|
-
// sanitizeURL
|
|
32157
|
-
false
|
|
32158
|
-
);
|
|
32159
|
-
});
|
|
32160
|
-
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) {
|
|
32161
|
-
properties[name] = new PropertyInfoRecord(
|
|
32162
|
-
name,
|
|
32163
|
-
BOOLEANISH_STRING,
|
|
32164
|
-
false,
|
|
32165
|
-
// mustUseProperty
|
|
32166
|
-
name,
|
|
32167
|
-
// attributeName
|
|
32168
|
-
null,
|
|
32169
|
-
// attributeNamespace
|
|
32170
|
-
false,
|
|
32171
|
-
// sanitizeURL
|
|
32172
|
-
false
|
|
32173
|
-
);
|
|
32174
|
-
});
|
|
32175
|
-
[
|
|
32176
|
-
"allowFullScreen",
|
|
32177
|
-
"async",
|
|
32178
|
-
// Note: there is a special case that prevents it from being written to the DOM
|
|
32179
|
-
// on the client side because the browsers are inconsistent. Instead we call focus().
|
|
32180
|
-
"autoFocus",
|
|
32181
|
-
"autoPlay",
|
|
32182
|
-
"controls",
|
|
32183
|
-
"default",
|
|
32184
|
-
"defer",
|
|
32185
|
-
"disabled",
|
|
32186
|
-
"disablePictureInPicture",
|
|
32187
|
-
"disableRemotePlayback",
|
|
32188
|
-
"formNoValidate",
|
|
32189
|
-
"hidden",
|
|
32190
|
-
"loop",
|
|
32191
|
-
"noModule",
|
|
32192
|
-
"noValidate",
|
|
32193
|
-
"open",
|
|
32194
|
-
"playsInline",
|
|
32195
|
-
"readOnly",
|
|
32196
|
-
"required",
|
|
32197
|
-
"reversed",
|
|
32198
|
-
"scoped",
|
|
32199
|
-
"seamless",
|
|
32200
|
-
// Microdata
|
|
32201
|
-
"itemScope"
|
|
32202
|
-
].forEach(function(name) {
|
|
32203
|
-
properties[name] = new PropertyInfoRecord(
|
|
32204
|
-
name,
|
|
32205
|
-
BOOLEAN,
|
|
32206
|
-
false,
|
|
32207
|
-
// mustUseProperty
|
|
32208
|
-
name.toLowerCase(),
|
|
32209
|
-
// attributeName
|
|
32210
|
-
null,
|
|
32211
|
-
// attributeNamespace
|
|
32212
|
-
false,
|
|
32213
|
-
// sanitizeURL
|
|
32214
|
-
false
|
|
32215
|
-
);
|
|
32216
|
-
});
|
|
32217
|
-
[
|
|
32218
|
-
"checked",
|
|
32219
|
-
// Note: `option.selected` is not updated if `select.multiple` is
|
|
32220
|
-
// disabled with `removeAttribute`. We have special logic for handling this.
|
|
32221
|
-
"multiple",
|
|
32222
|
-
"muted",
|
|
32223
|
-
"selected"
|
|
32224
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32225
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32226
|
-
// instead in the assignment below.
|
|
32227
|
-
].forEach(function(name) {
|
|
32228
|
-
properties[name] = new PropertyInfoRecord(
|
|
32229
|
-
name,
|
|
32230
|
-
BOOLEAN,
|
|
32231
|
-
true,
|
|
32232
|
-
// mustUseProperty
|
|
32233
|
-
name,
|
|
32234
|
-
// attributeName
|
|
32235
|
-
null,
|
|
32236
|
-
// attributeNamespace
|
|
32237
|
-
false,
|
|
32238
|
-
// sanitizeURL
|
|
32239
|
-
false
|
|
32240
|
-
);
|
|
32241
|
-
});
|
|
32242
|
-
[
|
|
32243
|
-
"capture",
|
|
32244
|
-
"download"
|
|
32245
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32246
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32247
|
-
// instead in the assignment below.
|
|
32248
|
-
].forEach(function(name) {
|
|
32249
|
-
properties[name] = new PropertyInfoRecord(
|
|
32250
|
-
name,
|
|
32251
|
-
OVERLOADED_BOOLEAN,
|
|
32252
|
-
false,
|
|
32253
|
-
// mustUseProperty
|
|
32254
|
-
name,
|
|
32255
|
-
// attributeName
|
|
32256
|
-
null,
|
|
32257
|
-
// attributeNamespace
|
|
32258
|
-
false,
|
|
32259
|
-
// sanitizeURL
|
|
32260
|
-
false
|
|
32261
|
-
);
|
|
32262
|
-
});
|
|
32263
|
-
[
|
|
32264
|
-
"cols",
|
|
32265
|
-
"rows",
|
|
32266
|
-
"size",
|
|
32267
|
-
"span"
|
|
32268
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32269
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32270
|
-
// instead in the assignment below.
|
|
32271
|
-
].forEach(function(name) {
|
|
32272
|
-
properties[name] = new PropertyInfoRecord(
|
|
32273
|
-
name,
|
|
32274
|
-
POSITIVE_NUMERIC,
|
|
32275
|
-
false,
|
|
32276
|
-
// mustUseProperty
|
|
32277
|
-
name,
|
|
32278
|
-
// attributeName
|
|
32279
|
-
null,
|
|
32280
|
-
// attributeNamespace
|
|
32281
|
-
false,
|
|
32282
|
-
// sanitizeURL
|
|
32283
|
-
false
|
|
32284
|
-
);
|
|
32285
|
-
});
|
|
32286
|
-
["rowSpan", "start"].forEach(function(name) {
|
|
32287
|
-
properties[name] = new PropertyInfoRecord(
|
|
32288
|
-
name,
|
|
32289
|
-
NUMERIC,
|
|
32290
|
-
false,
|
|
32291
|
-
// mustUseProperty
|
|
32292
|
-
name.toLowerCase(),
|
|
32293
|
-
// attributeName
|
|
32294
|
-
null,
|
|
32295
|
-
// attributeNamespace
|
|
32296
|
-
false,
|
|
32297
|
-
// sanitizeURL
|
|
32298
|
-
false
|
|
32299
|
-
);
|
|
32300
|
-
});
|
|
32301
|
-
var CAMELIZE = /[\-\:]([a-z])/g;
|
|
32302
|
-
var capitalize$1 = function capitalize(token) {
|
|
32303
|
-
return token[1].toUpperCase();
|
|
32304
|
-
};
|
|
32305
|
-
[
|
|
32306
|
-
"accent-height",
|
|
32307
|
-
"alignment-baseline",
|
|
32308
|
-
"arabic-form",
|
|
32309
|
-
"baseline-shift",
|
|
32310
|
-
"cap-height",
|
|
32311
|
-
"clip-path",
|
|
32312
|
-
"clip-rule",
|
|
32313
|
-
"color-interpolation",
|
|
32314
|
-
"color-interpolation-filters",
|
|
32315
|
-
"color-profile",
|
|
32316
|
-
"color-rendering",
|
|
32317
|
-
"dominant-baseline",
|
|
32318
|
-
"enable-background",
|
|
32319
|
-
"fill-opacity",
|
|
32320
|
-
"fill-rule",
|
|
32321
|
-
"flood-color",
|
|
32322
|
-
"flood-opacity",
|
|
32323
|
-
"font-family",
|
|
32324
|
-
"font-size",
|
|
32325
|
-
"font-size-adjust",
|
|
32326
|
-
"font-stretch",
|
|
32327
|
-
"font-style",
|
|
32328
|
-
"font-variant",
|
|
32329
|
-
"font-weight",
|
|
32330
|
-
"glyph-name",
|
|
32331
|
-
"glyph-orientation-horizontal",
|
|
32332
|
-
"glyph-orientation-vertical",
|
|
32333
|
-
"horiz-adv-x",
|
|
32334
|
-
"horiz-origin-x",
|
|
32335
|
-
"image-rendering",
|
|
32336
|
-
"letter-spacing",
|
|
32337
|
-
"lighting-color",
|
|
32338
|
-
"marker-end",
|
|
32339
|
-
"marker-mid",
|
|
32340
|
-
"marker-start",
|
|
32341
|
-
"overline-position",
|
|
32342
|
-
"overline-thickness",
|
|
32343
|
-
"paint-order",
|
|
32344
|
-
"panose-1",
|
|
32345
|
-
"pointer-events",
|
|
32346
|
-
"rendering-intent",
|
|
32347
|
-
"shape-rendering",
|
|
32348
|
-
"stop-color",
|
|
32349
|
-
"stop-opacity",
|
|
32350
|
-
"strikethrough-position",
|
|
32351
|
-
"strikethrough-thickness",
|
|
32352
|
-
"stroke-dasharray",
|
|
32353
|
-
"stroke-dashoffset",
|
|
32354
|
-
"stroke-linecap",
|
|
32355
|
-
"stroke-linejoin",
|
|
32356
|
-
"stroke-miterlimit",
|
|
32357
|
-
"stroke-opacity",
|
|
32358
|
-
"stroke-width",
|
|
32359
|
-
"text-anchor",
|
|
32360
|
-
"text-decoration",
|
|
32361
|
-
"text-rendering",
|
|
32362
|
-
"underline-position",
|
|
32363
|
-
"underline-thickness",
|
|
32364
|
-
"unicode-bidi",
|
|
32365
|
-
"unicode-range",
|
|
32366
|
-
"units-per-em",
|
|
32367
|
-
"v-alphabetic",
|
|
32368
|
-
"v-hanging",
|
|
32369
|
-
"v-ideographic",
|
|
32370
|
-
"v-mathematical",
|
|
32371
|
-
"vector-effect",
|
|
32372
|
-
"vert-adv-y",
|
|
32373
|
-
"vert-origin-x",
|
|
32374
|
-
"vert-origin-y",
|
|
32375
|
-
"word-spacing",
|
|
32376
|
-
"writing-mode",
|
|
32377
|
-
"xmlns:xlink",
|
|
32378
|
-
"x-height"
|
|
32379
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32380
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32381
|
-
// instead in the assignment below.
|
|
32382
|
-
].forEach(function(attributeName) {
|
|
32383
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32384
|
-
properties[name] = new PropertyInfoRecord(
|
|
32385
|
-
name,
|
|
32386
|
-
STRING,
|
|
32387
|
-
false,
|
|
32388
|
-
// mustUseProperty
|
|
32389
|
-
attributeName,
|
|
32390
|
-
null,
|
|
32391
|
-
// attributeNamespace
|
|
32392
|
-
false,
|
|
32393
|
-
// sanitizeURL
|
|
32394
|
-
false
|
|
32395
|
-
);
|
|
32396
|
-
});
|
|
32397
|
-
[
|
|
32398
|
-
"xlink:actuate",
|
|
32399
|
-
"xlink:arcrole",
|
|
32400
|
-
"xlink:role",
|
|
32401
|
-
"xlink:show",
|
|
32402
|
-
"xlink:title",
|
|
32403
|
-
"xlink:type"
|
|
32404
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32405
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32406
|
-
// instead in the assignment below.
|
|
32407
|
-
].forEach(function(attributeName) {
|
|
32408
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32409
|
-
properties[name] = new PropertyInfoRecord(
|
|
32410
|
-
name,
|
|
32411
|
-
STRING,
|
|
32412
|
-
false,
|
|
32413
|
-
// mustUseProperty
|
|
32414
|
-
attributeName,
|
|
32415
|
-
"http://www.w3.org/1999/xlink",
|
|
32416
|
-
false,
|
|
32417
|
-
// sanitizeURL
|
|
32418
|
-
false
|
|
32419
|
-
);
|
|
32420
|
-
});
|
|
32421
|
-
[
|
|
32422
|
-
"xml:base",
|
|
32423
|
-
"xml:lang",
|
|
32424
|
-
"xml:space"
|
|
32425
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32426
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32427
|
-
// instead in the assignment below.
|
|
32428
|
-
].forEach(function(attributeName) {
|
|
32429
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32430
|
-
properties[name] = new PropertyInfoRecord(
|
|
32431
|
-
name,
|
|
32432
|
-
STRING,
|
|
32433
|
-
false,
|
|
32434
|
-
// mustUseProperty
|
|
32435
|
-
attributeName,
|
|
32436
|
-
"http://www.w3.org/XML/1998/namespace",
|
|
32437
|
-
false,
|
|
32438
|
-
// sanitizeURL
|
|
32439
|
-
false
|
|
32440
|
-
);
|
|
32441
|
-
});
|
|
32442
|
-
["tabIndex", "crossOrigin"].forEach(function(attributeName) {
|
|
32443
|
-
properties[attributeName] = new PropertyInfoRecord(
|
|
32444
|
-
attributeName,
|
|
32445
|
-
STRING,
|
|
32446
|
-
false,
|
|
32447
|
-
// mustUseProperty
|
|
32448
|
-
attributeName.toLowerCase(),
|
|
32449
|
-
// attributeName
|
|
32450
|
-
null,
|
|
32451
|
-
// attributeNamespace
|
|
32452
|
-
false,
|
|
32453
|
-
// sanitizeURL
|
|
32454
|
-
false
|
|
32455
|
-
);
|
|
32456
|
-
});
|
|
32457
|
-
var xlinkHref = "xlinkHref";
|
|
32458
|
-
properties[xlinkHref] = new PropertyInfoRecord(
|
|
32459
|
-
"xlinkHref",
|
|
32460
|
-
STRING,
|
|
32461
|
-
false,
|
|
32462
|
-
// mustUseProperty
|
|
32463
|
-
"xlink:href",
|
|
32464
|
-
"http://www.w3.org/1999/xlink",
|
|
32465
|
-
true,
|
|
32466
|
-
// sanitizeURL
|
|
32467
|
-
false
|
|
32468
|
-
);
|
|
32469
|
-
["src", "href", "action", "formAction"].forEach(function(attributeName) {
|
|
32470
|
-
properties[attributeName] = new PropertyInfoRecord(
|
|
32471
|
-
attributeName,
|
|
32472
|
-
STRING,
|
|
32473
|
-
false,
|
|
32474
|
-
// mustUseProperty
|
|
32475
|
-
attributeName.toLowerCase(),
|
|
32476
|
-
// attributeName
|
|
32477
|
-
null,
|
|
32478
|
-
// attributeNamespace
|
|
32479
|
-
true,
|
|
32480
|
-
// sanitizeURL
|
|
32481
|
-
true
|
|
32482
|
-
);
|
|
32483
|
-
});
|
|
32484
|
-
var _require = possibleStandardNamesOptimized$1, CAMELCASE = _require.CAMELCASE, SAME = _require.SAME, possibleStandardNamesOptimized = _require.possibleStandardNames;
|
|
32485
|
-
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";
|
|
32486
|
-
var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
32487
|
-
var isCustomAttribute = RegExp.prototype.test.bind(
|
|
32488
|
-
// eslint-disable-next-line no-misleading-character-class
|
|
32489
|
-
new RegExp("^(data|aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$")
|
|
32490
|
-
);
|
|
32491
|
-
var possibleStandardNames = Object.keys(possibleStandardNamesOptimized).reduce(function(accumulator, standardName) {
|
|
32492
|
-
var propName = possibleStandardNamesOptimized[standardName];
|
|
32493
|
-
if (propName === SAME) {
|
|
32494
|
-
accumulator[standardName] = standardName;
|
|
32495
|
-
} else if (propName === CAMELCASE) {
|
|
32496
|
-
accumulator[standardName.toLowerCase()] = standardName;
|
|
32497
|
-
} else {
|
|
32498
|
-
accumulator[standardName] = propName;
|
|
32499
|
-
}
|
|
32500
|
-
return accumulator;
|
|
32501
|
-
}, {});
|
|
32502
|
-
lib$1.BOOLEAN = BOOLEAN;
|
|
32503
|
-
lib$1.BOOLEANISH_STRING = BOOLEANISH_STRING;
|
|
32504
|
-
lib$1.NUMERIC = NUMERIC;
|
|
32505
|
-
lib$1.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;
|
|
32506
|
-
lib$1.POSITIVE_NUMERIC = POSITIVE_NUMERIC;
|
|
32507
|
-
lib$1.RESERVED = RESERVED;
|
|
32508
|
-
lib$1.STRING = STRING;
|
|
32509
|
-
lib$1.getPropertyInfo = getPropertyInfo;
|
|
32510
|
-
lib$1.isCustomAttribute = isCustomAttribute;
|
|
32511
|
-
lib$1.possibleStandardNames = possibleStandardNames;
|
|
32512
|
-
var cjs = {};
|
|
32513
|
-
var styleToObject = { exports: {} };
|
|
32514
|
-
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
32515
|
-
var NEWLINE_REGEX = /\n/g;
|
|
32516
|
-
var WHITESPACE_REGEX = /^\s*/;
|
|
32517
|
-
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
32518
|
-
var COLON_REGEX = /^:\s*/;
|
|
32519
|
-
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
32520
|
-
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
32521
|
-
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
32522
|
-
var NEWLINE = "\n";
|
|
32523
|
-
var FORWARD_SLASH = "/";
|
|
32524
|
-
var ASTERISK = "*";
|
|
32525
|
-
var EMPTY_STRING = "";
|
|
32526
|
-
var TYPE_COMMENT = "comment";
|
|
32527
|
-
var TYPE_DECLARATION = "declaration";
|
|
32528
|
-
var inlineStyleParser = function(style, options) {
|
|
32529
|
-
if (typeof style !== "string") {
|
|
32530
|
-
throw new TypeError("First argument must be a string");
|
|
32531
|
-
}
|
|
32532
|
-
if (!style)
|
|
32533
|
-
return [];
|
|
32534
|
-
options = options || {};
|
|
32535
|
-
var lineno = 1;
|
|
32536
|
-
var column = 1;
|
|
32537
|
-
function updatePosition(str) {
|
|
32538
|
-
var lines = str.match(NEWLINE_REGEX);
|
|
32539
|
-
if (lines)
|
|
32540
|
-
lineno += lines.length;
|
|
32541
|
-
var i2 = str.lastIndexOf(NEWLINE);
|
|
32542
|
-
column = ~i2 ? str.length - i2 : column + str.length;
|
|
32543
|
-
}
|
|
32544
|
-
function position() {
|
|
32545
|
-
var start2 = { line: lineno, column };
|
|
32546
|
-
return function(node2) {
|
|
32547
|
-
node2.position = new Position(start2);
|
|
32548
|
-
whitespace();
|
|
32549
|
-
return node2;
|
|
32550
|
-
};
|
|
32551
|
-
}
|
|
32552
|
-
function Position(start2) {
|
|
32553
|
-
this.start = start2;
|
|
32554
|
-
this.end = { line: lineno, column };
|
|
32555
|
-
this.source = options.source;
|
|
32556
|
-
}
|
|
32557
|
-
Position.prototype.content = style;
|
|
32558
|
-
function error(msg) {
|
|
32559
|
-
var err2 = new Error(
|
|
32560
|
-
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
32561
|
-
);
|
|
32562
|
-
err2.reason = msg;
|
|
32563
|
-
err2.filename = options.source;
|
|
32564
|
-
err2.line = lineno;
|
|
32565
|
-
err2.column = column;
|
|
32566
|
-
err2.source = style;
|
|
32567
|
-
if (options.silent)
|
|
32568
|
-
;
|
|
32569
|
-
else {
|
|
32570
|
-
throw err2;
|
|
32571
|
-
}
|
|
32572
|
-
}
|
|
32573
|
-
function match(re2) {
|
|
32574
|
-
var m2 = re2.exec(style);
|
|
32575
|
-
if (!m2)
|
|
32576
|
-
return;
|
|
32577
|
-
var str = m2[0];
|
|
32578
|
-
updatePosition(str);
|
|
32579
|
-
style = style.slice(str.length);
|
|
32580
|
-
return m2;
|
|
32581
|
-
}
|
|
32582
|
-
function whitespace() {
|
|
32583
|
-
match(WHITESPACE_REGEX);
|
|
32584
|
-
}
|
|
32585
|
-
function comments(rules) {
|
|
32586
|
-
var c6;
|
|
32587
|
-
rules = rules || [];
|
|
32588
|
-
while (c6 = comment()) {
|
|
32589
|
-
if (c6 !== false) {
|
|
32590
|
-
rules.push(c6);
|
|
32591
|
-
}
|
|
32592
|
-
}
|
|
32593
|
-
return rules;
|
|
32594
|
-
}
|
|
32595
|
-
function comment() {
|
|
32596
|
-
var pos = position();
|
|
32597
|
-
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1))
|
|
32598
|
-
return;
|
|
32599
|
-
var i2 = 2;
|
|
32600
|
-
while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
|
|
32601
|
-
++i2;
|
|
32602
|
-
}
|
|
32603
|
-
i2 += 2;
|
|
32604
|
-
if (EMPTY_STRING === style.charAt(i2 - 1)) {
|
|
32605
|
-
return error("End of comment missing");
|
|
32606
|
-
}
|
|
32607
|
-
var str = style.slice(2, i2 - 2);
|
|
32608
|
-
column += 2;
|
|
32609
|
-
updatePosition(str);
|
|
32610
|
-
style = style.slice(i2);
|
|
32611
|
-
column += 2;
|
|
32612
|
-
return pos({
|
|
32613
|
-
type: TYPE_COMMENT,
|
|
32614
|
-
comment: str
|
|
32615
|
-
});
|
|
32616
|
-
}
|
|
32617
|
-
function declaration() {
|
|
32618
|
-
var pos = position();
|
|
32619
|
-
var prop = match(PROPERTY_REGEX);
|
|
32620
|
-
if (!prop)
|
|
32621
|
-
return;
|
|
32622
|
-
comment();
|
|
32623
|
-
if (!match(COLON_REGEX))
|
|
32624
|
-
return error("property missing ':'");
|
|
32625
|
-
var val = match(VALUE_REGEX);
|
|
32626
|
-
var ret = pos({
|
|
32627
|
-
type: TYPE_DECLARATION,
|
|
32628
|
-
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
32629
|
-
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
32630
|
-
});
|
|
32631
|
-
match(SEMICOLON_REGEX);
|
|
32632
|
-
return ret;
|
|
32633
|
-
}
|
|
32634
|
-
function declarations() {
|
|
32635
|
-
var decls = [];
|
|
32636
|
-
comments(decls);
|
|
32637
|
-
var decl;
|
|
32638
|
-
while (decl = declaration()) {
|
|
32639
|
-
if (decl !== false) {
|
|
32640
|
-
decls.push(decl);
|
|
32641
|
-
comments(decls);
|
|
32642
|
-
}
|
|
32643
|
-
}
|
|
32644
|
-
return decls;
|
|
32645
|
-
}
|
|
32646
|
-
whitespace();
|
|
32647
|
-
return declarations();
|
|
32648
|
-
};
|
|
32649
|
-
function trim(str) {
|
|
32650
|
-
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
32651
|
-
}
|
|
32652
|
-
var parse$2 = inlineStyleParser;
|
|
32653
|
-
function StyleToObject(style, iterator) {
|
|
32654
|
-
var output = null;
|
|
32655
|
-
if (!style || typeof style !== "string") {
|
|
32656
|
-
return output;
|
|
32657
|
-
}
|
|
32658
|
-
var declaration;
|
|
32659
|
-
var declarations = parse$2(style);
|
|
32660
|
-
var hasIterator = typeof iterator === "function";
|
|
32661
|
-
var property;
|
|
32662
|
-
var value;
|
|
32663
|
-
for (var i2 = 0, len = declarations.length; i2 < len; i2++) {
|
|
32664
|
-
declaration = declarations[i2];
|
|
32665
|
-
property = declaration.property;
|
|
32666
|
-
value = declaration.value;
|
|
32667
|
-
if (hasIterator) {
|
|
32668
|
-
iterator(property, value, declaration);
|
|
32669
|
-
} else if (value) {
|
|
32670
|
-
output || (output = {});
|
|
32671
|
-
output[property] = value;
|
|
32672
|
-
}
|
|
32673
|
-
}
|
|
32674
|
-
return output;
|
|
32675
|
-
}
|
|
32676
|
-
styleToObject.exports = StyleToObject;
|
|
32677
|
-
styleToObject.exports.default = StyleToObject;
|
|
32678
|
-
var styleToObjectExports = styleToObject.exports;
|
|
32679
|
-
var utilities$3 = {};
|
|
32680
|
-
utilities$3.__esModule = true;
|
|
32681
|
-
utilities$3.camelCase = void 0;
|
|
32682
|
-
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
|
|
32683
|
-
var HYPHEN_REGEX = /-([a-z])/g;
|
|
32684
|
-
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
32685
|
-
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
32686
|
-
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
32687
|
-
var skipCamelCase = function(property) {
|
|
32688
|
-
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
32689
|
-
};
|
|
32690
|
-
var capitalize2 = function(match, character) {
|
|
32691
|
-
return character.toUpperCase();
|
|
32692
|
-
};
|
|
32693
|
-
var trimHyphen = function(match, prefix2) {
|
|
32694
|
-
return "".concat(prefix2, "-");
|
|
32695
|
-
};
|
|
32696
|
-
var camelCase = function(property, options) {
|
|
32697
|
-
if (options === void 0) {
|
|
32698
|
-
options = {};
|
|
32699
|
-
}
|
|
32700
|
-
if (skipCamelCase(property)) {
|
|
32701
|
-
return property;
|
|
32702
|
-
}
|
|
32703
|
-
property = property.toLowerCase();
|
|
32704
|
-
if (options.reactCompat) {
|
|
32705
|
-
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32706
|
-
} else {
|
|
32707
|
-
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32708
|
-
}
|
|
32709
|
-
return property.replace(HYPHEN_REGEX, capitalize2);
|
|
32710
|
-
};
|
|
32711
|
-
utilities$3.camelCase = camelCase;
|
|
32712
|
-
(function(exports) {
|
|
32713
|
-
var __importDefault = commonjsGlobal$1 && commonjsGlobal$1.__importDefault || function(mod) {
|
|
32714
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32715
|
-
};
|
|
32716
|
-
exports.__esModule = true;
|
|
32717
|
-
var style_to_object_1 = __importDefault(styleToObjectExports);
|
|
32718
|
-
var utilities_1 = utilities$3;
|
|
32719
|
-
function StyleToJS(style, options) {
|
|
32720
|
-
var output = {};
|
|
32721
|
-
if (!style || typeof style !== "string") {
|
|
32722
|
-
return output;
|
|
32723
|
-
}
|
|
32724
|
-
(0, style_to_object_1["default"])(style, function(property, value) {
|
|
32725
|
-
if (property && value) {
|
|
32726
|
-
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
32727
|
-
}
|
|
32728
|
-
});
|
|
32729
|
-
return output;
|
|
32730
|
-
}
|
|
32731
|
-
exports["default"] = StyleToJS;
|
|
32732
|
-
})(cjs);
|
|
32733
|
-
var React$1 = reactExports;
|
|
32734
|
-
var styleToJS = cjs.default;
|
|
32735
|
-
function invertObject(obj, override) {
|
|
32736
|
-
if (!obj || typeof obj !== "object") {
|
|
32737
|
-
throw new TypeError("First argument must be an object");
|
|
32738
|
-
}
|
|
32739
|
-
var isOverridePresent = typeof override === "function";
|
|
32740
|
-
var overrides = {};
|
|
32741
|
-
var result = {};
|
|
32742
|
-
for (var key in obj) {
|
|
32743
|
-
var value = obj[key];
|
|
32744
|
-
if (isOverridePresent) {
|
|
32745
|
-
overrides = override(key, value);
|
|
32746
|
-
if (overrides && overrides.length === 2) {
|
|
32747
|
-
result[overrides[0]] = overrides[1];
|
|
32748
|
-
continue;
|
|
32749
|
-
}
|
|
32750
|
-
}
|
|
32751
|
-
if (typeof value === "string") {
|
|
32752
|
-
result[value] = key;
|
|
32753
|
-
}
|
|
32754
|
-
}
|
|
32755
|
-
return result;
|
|
32756
|
-
}
|
|
32757
|
-
var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
32758
|
-
"annotation-xml",
|
|
32759
|
-
"color-profile",
|
|
32760
|
-
"font-face",
|
|
32761
|
-
"font-face-src",
|
|
32762
|
-
"font-face-uri",
|
|
32763
|
-
"font-face-format",
|
|
32764
|
-
"font-face-name",
|
|
32765
|
-
"missing-glyph"
|
|
32766
|
-
]);
|
|
32767
|
-
function isCustomComponent(tagName2, props) {
|
|
32768
|
-
if (tagName2.indexOf("-") === -1) {
|
|
32769
|
-
return props && typeof props.is === "string";
|
|
32770
|
-
}
|
|
32771
|
-
if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName2)) {
|
|
32772
|
-
return false;
|
|
32773
|
-
}
|
|
32774
|
-
return true;
|
|
32775
|
-
}
|
|
32776
|
-
var STYLE_TO_JS_OPTIONS = { reactCompat: true };
|
|
32777
|
-
function setStyleProp$1(style, props) {
|
|
32778
|
-
if (style === null || style === void 0) {
|
|
32779
|
-
return;
|
|
32780
|
-
}
|
|
32781
|
-
try {
|
|
32782
|
-
props.style = styleToJS(style, STYLE_TO_JS_OPTIONS);
|
|
32783
|
-
} catch (err2) {
|
|
32784
|
-
props.style = {};
|
|
32785
|
-
}
|
|
32786
|
-
}
|
|
32787
|
-
var PRESERVE_CUSTOM_ATTRIBUTES = React$1.version.split(".")[0] >= 16;
|
|
32788
|
-
var ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
32789
|
-
"tr",
|
|
32790
|
-
"tbody",
|
|
32791
|
-
"thead",
|
|
32792
|
-
"tfoot",
|
|
32793
|
-
"colgroup",
|
|
32794
|
-
"table",
|
|
32795
|
-
"head",
|
|
32796
|
-
"html",
|
|
32797
|
-
"frameset"
|
|
32798
|
-
]);
|
|
32799
|
-
function canTextBeChildOfNode$1(node2) {
|
|
32800
|
-
return !ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node2.name);
|
|
32801
|
-
}
|
|
32802
|
-
function returnFirstArg(arg) {
|
|
32803
|
-
return arg;
|
|
32804
|
-
}
|
|
32805
|
-
var utilities$2 = {
|
|
32806
|
-
PRESERVE_CUSTOM_ATTRIBUTES,
|
|
32807
|
-
ELEMENTS_WITH_NO_TEXT_CHILDREN,
|
|
32808
|
-
invertObject,
|
|
32809
|
-
isCustomComponent,
|
|
32810
|
-
setStyleProp: setStyleProp$1,
|
|
32811
|
-
canTextBeChildOfNode: canTextBeChildOfNode$1,
|
|
32812
|
-
returnFirstArg
|
|
32813
|
-
};
|
|
32814
|
-
var reactProperty = lib$1;
|
|
32815
|
-
var utilities$1 = utilities$2;
|
|
32816
|
-
var UNCONTROLLED_COMPONENT_ATTRIBUTES = ["checked", "value"];
|
|
32817
|
-
var UNCONTROLLED_COMPONENT_NAMES = ["input", "select", "textarea"];
|
|
32818
|
-
var VALUE_ONLY_INPUTS = {
|
|
32819
|
-
reset: true,
|
|
32820
|
-
submit: true
|
|
32821
|
-
};
|
|
32822
|
-
var attributesToProps$3 = function attributesToProps(attributes, nodeName) {
|
|
32823
|
-
attributes = attributes || {};
|
|
32824
|
-
var attributeName;
|
|
32825
|
-
var attributeNameLowerCased;
|
|
32826
|
-
var attributeValue;
|
|
32827
|
-
var propName;
|
|
32828
|
-
var propertyInfo;
|
|
32829
|
-
var props = {};
|
|
32830
|
-
var inputIsValueOnly = attributes.type && VALUE_ONLY_INPUTS[attributes.type];
|
|
32831
|
-
for (attributeName in attributes) {
|
|
32832
|
-
attributeValue = attributes[attributeName];
|
|
32833
|
-
if (reactProperty.isCustomAttribute(attributeName)) {
|
|
32834
|
-
props[attributeName] = attributeValue;
|
|
32835
|
-
continue;
|
|
32836
|
-
}
|
|
32837
|
-
attributeNameLowerCased = attributeName.toLowerCase();
|
|
32838
|
-
propName = getPropName(attributeNameLowerCased);
|
|
32839
|
-
if (propName) {
|
|
32840
|
-
propertyInfo = reactProperty.getPropertyInfo(propName);
|
|
32841
|
-
if (UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 && UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 && !inputIsValueOnly) {
|
|
32842
|
-
propName = getPropName("default" + attributeNameLowerCased);
|
|
32843
|
-
}
|
|
32844
|
-
props[propName] = attributeValue;
|
|
32845
|
-
switch (propertyInfo && propertyInfo.type) {
|
|
32846
|
-
case reactProperty.BOOLEAN:
|
|
32847
|
-
props[propName] = true;
|
|
32848
|
-
break;
|
|
32849
|
-
case reactProperty.OVERLOADED_BOOLEAN:
|
|
32850
|
-
if (attributeValue === "") {
|
|
32851
|
-
props[propName] = true;
|
|
32852
|
-
}
|
|
32853
|
-
break;
|
|
32854
|
-
}
|
|
32855
|
-
continue;
|
|
32856
|
-
}
|
|
32857
|
-
if (utilities$1.PRESERVE_CUSTOM_ATTRIBUTES) {
|
|
32858
|
-
props[attributeName] = attributeValue;
|
|
32859
|
-
}
|
|
32860
|
-
}
|
|
32861
|
-
utilities$1.setStyleProp(attributes.style, props);
|
|
32862
|
-
return props;
|
|
32863
|
-
};
|
|
32864
|
-
function getPropName(attributeName) {
|
|
32865
|
-
return reactProperty.possibleStandardNames[attributeName];
|
|
32866
|
-
}
|
|
32867
|
-
var React = reactExports;
|
|
32868
|
-
var attributesToProps$2 = attributesToProps$3;
|
|
32869
|
-
var utilities = utilities$2;
|
|
32870
|
-
var setStyleProp = utilities.setStyleProp;
|
|
32871
|
-
var canTextBeChildOfNode = utilities.canTextBeChildOfNode;
|
|
32872
|
-
function domToReact$2(nodes, options) {
|
|
32873
|
-
options = options || {};
|
|
32874
|
-
var library = options.library || React;
|
|
32875
|
-
var cloneElement = library.cloneElement;
|
|
32876
|
-
var createElement2 = library.createElement;
|
|
32877
|
-
var isValidElement = library.isValidElement;
|
|
32878
|
-
var result = [];
|
|
32879
|
-
var node2;
|
|
32880
|
-
var isWhitespace;
|
|
32881
|
-
var hasReplace = typeof options.replace === "function";
|
|
32882
|
-
var transform = options.transform || utilities.returnFirstArg;
|
|
32883
|
-
var replaceElement;
|
|
32884
|
-
var props;
|
|
32885
|
-
var children;
|
|
32886
|
-
var trim2 = options.trim;
|
|
32887
|
-
for (var i2 = 0, len = nodes.length; i2 < len; i2++) {
|
|
32888
|
-
node2 = nodes[i2];
|
|
32889
|
-
if (hasReplace) {
|
|
32890
|
-
replaceElement = options.replace(node2);
|
|
32891
|
-
if (isValidElement(replaceElement)) {
|
|
32892
|
-
if (len > 1) {
|
|
32893
|
-
replaceElement = cloneElement(replaceElement, {
|
|
32894
|
-
key: replaceElement.key || i2
|
|
32895
|
-
});
|
|
32896
|
-
}
|
|
32897
|
-
result.push(transform(replaceElement, node2, i2));
|
|
32898
|
-
continue;
|
|
32899
|
-
}
|
|
32900
|
-
}
|
|
32901
|
-
if (node2.type === "text") {
|
|
32902
|
-
isWhitespace = !node2.data.trim().length;
|
|
32903
|
-
if (isWhitespace && node2.parent && !canTextBeChildOfNode(node2.parent)) {
|
|
32904
|
-
continue;
|
|
32905
|
-
}
|
|
32906
|
-
if (trim2 && isWhitespace) {
|
|
32907
|
-
continue;
|
|
32908
|
-
}
|
|
32909
|
-
result.push(transform(node2.data, node2, i2));
|
|
32910
|
-
continue;
|
|
32911
|
-
}
|
|
32912
|
-
props = node2.attribs;
|
|
32913
|
-
if (skipAttributesToProps(node2)) {
|
|
32914
|
-
setStyleProp(props.style, props);
|
|
32915
|
-
} else if (props) {
|
|
32916
|
-
props = attributesToProps$2(props, node2.name);
|
|
32917
|
-
}
|
|
32918
|
-
children = null;
|
|
32919
|
-
switch (node2.type) {
|
|
32920
|
-
case "script":
|
|
32921
|
-
case "style":
|
|
32922
|
-
if (node2.children[0]) {
|
|
32923
|
-
props.dangerouslySetInnerHTML = {
|
|
32924
|
-
__html: node2.children[0].data
|
|
32925
|
-
};
|
|
32926
|
-
}
|
|
32927
|
-
break;
|
|
32928
|
-
case "tag":
|
|
32929
|
-
if (node2.name === "textarea" && node2.children[0]) {
|
|
32930
|
-
props.defaultValue = node2.children[0].data;
|
|
32931
|
-
} else if (node2.children && node2.children.length) {
|
|
32932
|
-
children = domToReact$2(node2.children, options);
|
|
32933
|
-
}
|
|
32934
|
-
break;
|
|
32935
|
-
default:
|
|
32936
|
-
continue;
|
|
32937
|
-
}
|
|
32938
|
-
if (len > 1) {
|
|
32939
|
-
props.key = i2;
|
|
32940
|
-
}
|
|
32941
|
-
result.push(transform(createElement2(node2.name, props, children), node2, i2));
|
|
32942
|
-
}
|
|
32943
|
-
return result.length === 1 ? result[0] : result;
|
|
32944
|
-
}
|
|
32945
|
-
function skipAttributesToProps(node2) {
|
|
32946
|
-
return utilities.PRESERVE_CUSTOM_ATTRIBUTES && node2.type === "tag" && utilities.isCustomComponent(node2.name, node2.attribs);
|
|
32947
|
-
}
|
|
32948
|
-
var domToReact_1 = domToReact$2;
|
|
32949
|
-
var domhandler = lib$3;
|
|
32950
|
-
var htmlToDOM = htmlToDom;
|
|
32951
|
-
var attributesToProps$1 = attributesToProps$3;
|
|
32952
|
-
var domToReact$1 = domToReact_1;
|
|
32953
|
-
htmlToDOM = /* istanbul ignore next */
|
|
32954
|
-
typeof htmlToDOM.default === "function" ? htmlToDOM.default : htmlToDOM;
|
|
32955
|
-
var domParserOptions = { lowerCaseAttributeNames: false };
|
|
32956
|
-
function HTMLReactParser(html, options) {
|
|
32957
|
-
if (typeof html !== "string") {
|
|
32958
|
-
throw new TypeError("First argument must be a string");
|
|
32959
|
-
}
|
|
32960
|
-
if (html === "") {
|
|
32961
|
-
return [];
|
|
32962
|
-
}
|
|
32963
|
-
options = options || {};
|
|
32964
|
-
return domToReact$1(
|
|
32965
|
-
htmlToDOM(html, options.htmlparser2 || domParserOptions),
|
|
32966
|
-
options
|
|
32967
|
-
);
|
|
32968
|
-
}
|
|
32969
|
-
HTMLReactParser.domToReact = domToReact$1;
|
|
32970
|
-
HTMLReactParser.htmlToDOM = htmlToDOM;
|
|
32971
|
-
HTMLReactParser.attributesToProps = attributesToProps$1;
|
|
32972
|
-
HTMLReactParser.Comment = domhandler.Comment;
|
|
32973
|
-
HTMLReactParser.Element = domhandler.Element;
|
|
32974
|
-
HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
|
|
32975
|
-
HTMLReactParser.Text = domhandler.Text;
|
|
32976
|
-
var htmlReactParser = HTMLReactParser;
|
|
32977
|
-
HTMLReactParser.default = HTMLReactParser;
|
|
32978
|
-
const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs$1(htmlReactParser);
|
|
32979
|
-
var domToReact = HTMLReactParser$1.domToReact;
|
|
32980
|
-
HTMLReactParser$1.htmlToDOM;
|
|
32981
|
-
var attributesToProps2 = HTMLReactParser$1.attributesToProps;
|
|
32982
|
-
HTMLReactParser$1.Comment;
|
|
32983
|
-
HTMLReactParser$1.Element;
|
|
32984
|
-
HTMLReactParser$1.ProcessingInstruction;
|
|
32985
|
-
HTMLReactParser$1.Text;
|
|
32986
30604
|
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
32987
30605
|
const Z_FIXED$1 = 4;
|
|
32988
30606
|
const Z_BINARY = 0;
|
|
@@ -33333,7 +30951,7 @@ const build_tree = (s2, desc) => {
|
|
|
33333
30951
|
const elems = desc.stat_desc.elems;
|
|
33334
30952
|
let n2, m2;
|
|
33335
30953
|
let max_code = -1;
|
|
33336
|
-
let
|
|
30954
|
+
let node;
|
|
33337
30955
|
s2.heap_len = 0;
|
|
33338
30956
|
s2.heap_max = HEAP_SIZE$1;
|
|
33339
30957
|
for (n2 = 0; n2 < elems; n2++) {
|
|
@@ -33345,19 +30963,19 @@ const build_tree = (s2, desc) => {
|
|
|
33345
30963
|
}
|
|
33346
30964
|
}
|
|
33347
30965
|
while (s2.heap_len < 2) {
|
|
33348
|
-
|
|
33349
|
-
tree[
|
|
33350
|
-
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;
|
|
33351
30969
|
s2.opt_len--;
|
|
33352
30970
|
if (has_stree) {
|
|
33353
|
-
s2.static_len -= stree[
|
|
30971
|
+
s2.static_len -= stree[node * 2 + 1];
|
|
33354
30972
|
}
|
|
33355
30973
|
}
|
|
33356
30974
|
desc.max_code = max_code;
|
|
33357
30975
|
for (n2 = s2.heap_len >> 1; n2 >= 1; n2--) {
|
|
33358
30976
|
pqdownheap(s2, tree, n2);
|
|
33359
30977
|
}
|
|
33360
|
-
|
|
30978
|
+
node = elems;
|
|
33361
30979
|
do {
|
|
33362
30980
|
n2 = s2.heap[
|
|
33363
30981
|
1
|
|
@@ -33379,13 +30997,13 @@ const build_tree = (s2, desc) => {
|
|
|
33379
30997
|
];
|
|
33380
30998
|
s2.heap[--s2.heap_max] = n2;
|
|
33381
30999
|
s2.heap[--s2.heap_max] = m2;
|
|
33382
|
-
tree[
|
|
33383
|
-
s2.depth[
|
|
33384
|
-
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;
|
|
33385
31003
|
s2.heap[
|
|
33386
31004
|
1
|
|
33387
31005
|
/*SMALLEST*/
|
|
33388
|
-
] =
|
|
31006
|
+
] = node++;
|
|
33389
31007
|
pqdownheap(
|
|
33390
31008
|
s2,
|
|
33391
31009
|
tree,
|
|
@@ -39300,13 +36918,13 @@ var listGetNode = function(list, key) {
|
|
|
39300
36918
|
}
|
|
39301
36919
|
};
|
|
39302
36920
|
var listGet = function(objects, key) {
|
|
39303
|
-
var
|
|
39304
|
-
return
|
|
36921
|
+
var node = listGetNode(objects, key);
|
|
36922
|
+
return node && node.value;
|
|
39305
36923
|
};
|
|
39306
36924
|
var listSet = function(objects, key, value) {
|
|
39307
|
-
var
|
|
39308
|
-
if (
|
|
39309
|
-
|
|
36925
|
+
var node = listGetNode(objects, key);
|
|
36926
|
+
if (node) {
|
|
36927
|
+
node.value = value;
|
|
39310
36928
|
} else {
|
|
39311
36929
|
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
39312
36930
|
{
|
|
@@ -44118,12 +41736,12 @@ function generateUniformsSync(group, uniformData) {
|
|
|
44118
41736
|
break;
|
|
44119
41737
|
}
|
|
44120
41738
|
if (!parsed) {
|
|
44121
|
-
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`);
|
|
44122
41740
|
funcFragments.push(`
|
|
44123
41741
|
cu = ud["${i2}"];
|
|
44124
41742
|
cv = cu.value;
|
|
44125
41743
|
v = uv["${i2}"];
|
|
44126
|
-
${
|
|
41744
|
+
${template};`);
|
|
44127
41745
|
}
|
|
44128
41746
|
}
|
|
44129
41747
|
return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
|
|
@@ -45542,8 +43160,8 @@ class Texture extends EventEmitter2 {
|
|
|
45542
43160
|
* @param anchor - Default anchor point used for sprite placement / rotation
|
|
45543
43161
|
* @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
|
|
45544
43162
|
*/
|
|
45545
|
-
constructor(baseTexture, frame, orig,
|
|
45546
|
-
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)
|
|
45547
43165
|
this._rotate = 2;
|
|
45548
43166
|
else if (this._rotate % 2 !== 0)
|
|
45549
43167
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -46783,14 +44401,14 @@ class TextureMatrix {
|
|
|
46783
44401
|
this._textureID = tex._updateID, this._updateID++;
|
|
46784
44402
|
const uvs = tex._uvs;
|
|
46785
44403
|
this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
|
|
46786
|
-
const orig = tex.orig,
|
|
46787
|
-
|
|
46788
|
-
orig.width /
|
|
44404
|
+
const orig = tex.orig, trim = tex.trim;
|
|
44405
|
+
trim && (tempMat$1.set(
|
|
44406
|
+
orig.width / trim.width,
|
|
46789
44407
|
0,
|
|
46790
44408
|
0,
|
|
46791
|
-
orig.height /
|
|
46792
|
-
-
|
|
46793
|
-
-
|
|
44409
|
+
orig.height / trim.height,
|
|
44410
|
+
-trim.x / trim.width,
|
|
44411
|
+
-trim.y / trim.height
|
|
46794
44412
|
), this.mapCoord.append(tempMat$1));
|
|
46795
44413
|
const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
|
|
46796
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;
|
|
@@ -47624,12 +45242,12 @@ function generateUniformBufferSync(group, uniformData) {
|
|
|
47624
45242
|
|
|
47625
45243
|
`);
|
|
47626
45244
|
} else {
|
|
47627
|
-
const
|
|
45245
|
+
const template = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
|
|
47628
45246
|
funcFragments.push(`
|
|
47629
45247
|
cv = ud.${name}.value;
|
|
47630
45248
|
v = uv.${name};
|
|
47631
45249
|
offset = ${uboElement.offset / 4};
|
|
47632
|
-
${
|
|
45250
|
+
${template};
|
|
47633
45251
|
`);
|
|
47634
45252
|
}
|
|
47635
45253
|
}
|
|
@@ -51198,9 +48816,9 @@ class Sprite extends Container {
|
|
|
51198
48816
|
if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
|
|
51199
48817
|
return;
|
|
51200
48818
|
this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
|
|
51201
|
-
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;
|
|
51202
48820
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
51203
|
-
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) {
|
|
51204
48822
|
const resolution = settings.RESOLUTION;
|
|
51205
48823
|
for (let i2 = 0; i2 < vertexData.length; ++i2)
|
|
51206
48824
|
vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
|
|
@@ -51234,8 +48852,8 @@ class Sprite extends Container {
|
|
|
51234
48852
|
}
|
|
51235
48853
|
/** Updates the bounds of the sprite. */
|
|
51236
48854
|
_calculateBounds() {
|
|
51237
|
-
const
|
|
51238
|
-
!
|
|
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));
|
|
51239
48857
|
}
|
|
51240
48858
|
/**
|
|
51241
48859
|
* Gets the local bounds of the sprite object.
|
|
@@ -51644,7 +49262,7 @@ const contextSettings = {
|
|
|
51644
49262
|
static measureFont(font) {
|
|
51645
49263
|
if (_TextMetrics2._fonts[font])
|
|
51646
49264
|
return _TextMetrics2._fonts[font];
|
|
51647
|
-
const
|
|
49265
|
+
const properties = {
|
|
51648
49266
|
ascent: 0,
|
|
51649
49267
|
descent: 0,
|
|
51650
49268
|
fontSize: 0
|
|
@@ -51654,7 +49272,7 @@ const contextSettings = {
|
|
|
51654
49272
|
let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
|
|
51655
49273
|
const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
|
|
51656
49274
|
if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
|
|
51657
|
-
return _TextMetrics2._fonts[font] =
|
|
49275
|
+
return _TextMetrics2._fonts[font] = properties, properties;
|
|
51658
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);
|
|
51659
49277
|
const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
|
|
51660
49278
|
let i2 = 0, idx = 0, stop2 = false;
|
|
@@ -51669,7 +49287,7 @@ const contextSettings = {
|
|
|
51669
49287
|
else
|
|
51670
49288
|
break;
|
|
51671
49289
|
}
|
|
51672
|
-
for (
|
|
49290
|
+
for (properties.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
|
|
51673
49291
|
for (let j2 = 0; j2 < line; j2 += 4)
|
|
51674
49292
|
if (imagedata[idx + j2] !== 255) {
|
|
51675
49293
|
stop2 = true;
|
|
@@ -51680,7 +49298,7 @@ const contextSettings = {
|
|
|
51680
49298
|
else
|
|
51681
49299
|
break;
|
|
51682
49300
|
}
|
|
51683
|
-
return
|
|
49301
|
+
return properties.descent = i2 - baseline, properties.fontSize = properties.ascent + properties.descent, _TextMetrics2._fonts[font] = properties, properties;
|
|
51684
49302
|
}
|
|
51685
49303
|
/**
|
|
51686
49304
|
* Clear font metrics in metrics cache.
|
|
@@ -52052,8 +49670,8 @@ const genericFontFamilies = [
|
|
|
52052
49670
|
get trim() {
|
|
52053
49671
|
return this._trim;
|
|
52054
49672
|
}
|
|
52055
|
-
set trim(
|
|
52056
|
-
this._trim !==
|
|
49673
|
+
set trim(trim) {
|
|
49674
|
+
this._trim !== trim && (this._trim = trim, this.styleID++);
|
|
52057
49675
|
}
|
|
52058
49676
|
/**
|
|
52059
49677
|
* How newlines and spaces should be handled.
|
|
@@ -56644,10 +54262,10 @@ class ParticleBuffer {
|
|
|
56644
54262
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
56645
54263
|
* @param {number} size - The size of the batch.
|
|
56646
54264
|
*/
|
|
56647
|
-
constructor(
|
|
54265
|
+
constructor(properties, dynamicPropertyFlags, size2) {
|
|
56648
54266
|
this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
|
|
56649
|
-
for (let i2 = 0; i2 <
|
|
56650
|
-
let property =
|
|
54267
|
+
for (let i2 = 0; i2 < properties.length; ++i2) {
|
|
54268
|
+
let property = properties[i2];
|
|
56651
54269
|
property = {
|
|
56652
54270
|
attributeName: property.attributeName,
|
|
56653
54271
|
size: property.size,
|
|
@@ -56884,8 +54502,8 @@ class ParticleRenderer extends ObjectRenderer {
|
|
|
56884
54502
|
uploadVertices(children, startIndex, amount, array, stride, offset2) {
|
|
56885
54503
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
56886
54504
|
for (let i2 = 0; i2 < amount; ++i2) {
|
|
56887
|
-
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y,
|
|
56888
|
-
|
|
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;
|
|
56889
54507
|
}
|
|
56890
54508
|
}
|
|
56891
54509
|
/**
|
|
@@ -57426,10 +55044,10 @@ const GAUSSIAN_VALUES = {
|
|
|
57426
55044
|
function generateBlurFragSource(kernelSize) {
|
|
57427
55045
|
const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
|
|
57428
55046
|
let fragSource = fragTemplate, blurLoop = "";
|
|
57429
|
-
const
|
|
55047
|
+
const template = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
|
|
57430
55048
|
let value;
|
|
57431
55049
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
57432
|
-
let blur =
|
|
55050
|
+
let blur = template.replace("%index%", i2.toString());
|
|
57433
55051
|
value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
|
|
57434
55052
|
`;
|
|
57435
55053
|
}
|
|
@@ -57468,10 +55086,10 @@ const vertTemplate = `
|
|
|
57468
55086
|
}`;
|
|
57469
55087
|
function generateBlurVertSource(kernelSize, x2) {
|
|
57470
55088
|
const halfLength = Math.ceil(kernelSize / 2);
|
|
57471
|
-
let vertSource = vertTemplate, blurLoop = "",
|
|
57472
|
-
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);";
|
|
57473
55091
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
57474
|
-
let blur =
|
|
55092
|
+
let blur = template.replace("%index%", i2.toString());
|
|
57475
55093
|
blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
|
|
57476
55094
|
`;
|
|
57477
55095
|
}
|
|
@@ -61612,7 +59230,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61612
59230
|
for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
|
|
61613
59231
|
const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
|
|
61614
59232
|
if (rect) {
|
|
61615
|
-
let frame = null,
|
|
59233
|
+
let frame = null, trim = null;
|
|
61616
59234
|
const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
|
|
61617
59235
|
0,
|
|
61618
59236
|
0,
|
|
@@ -61629,7 +59247,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61629
59247
|
Math.floor(rect.y) / this.resolution,
|
|
61630
59248
|
Math.floor(rect.w) / this.resolution,
|
|
61631
59249
|
Math.floor(rect.h) / this.resolution
|
|
61632
|
-
), data.trimmed !== false && data.spriteSourceSize && (
|
|
59250
|
+
), data.trimmed !== false && data.spriteSourceSize && (trim = new Rectangle(
|
|
61633
59251
|
Math.floor(data.spriteSourceSize.x) / this.resolution,
|
|
61634
59252
|
Math.floor(data.spriteSourceSize.y) / this.resolution,
|
|
61635
59253
|
Math.floor(rect.w) / this.resolution,
|
|
@@ -61638,7 +59256,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61638
59256
|
this.baseTexture,
|
|
61639
59257
|
frame,
|
|
61640
59258
|
orig,
|
|
61641
|
-
|
|
59259
|
+
trim,
|
|
61642
59260
|
data.rotated ? 2 : 0,
|
|
61643
59261
|
data.anchor,
|
|
61644
59262
|
data.borders
|
|
@@ -62435,15 +60053,13 @@ function useConf({
|
|
|
62435
60053
|
}) {
|
|
62436
60054
|
return useQuery({
|
|
62437
60055
|
queryKey: ["conf"],
|
|
62438
|
-
queryFn: async () => await odeServices.conf().getConf(appCode)
|
|
62439
|
-
suspense: true
|
|
60056
|
+
queryFn: async () => await odeServices.conf().getConf(appCode)
|
|
62440
60057
|
});
|
|
62441
60058
|
}
|
|
62442
60059
|
function useSession() {
|
|
62443
60060
|
return useQuery({
|
|
62444
60061
|
queryKey: ["session"],
|
|
62445
|
-
queryFn: async () => await odeServices.session().getSession()
|
|
62446
|
-
suspense: true
|
|
60062
|
+
queryFn: async () => await odeServices.session().getSession()
|
|
62447
60063
|
});
|
|
62448
60064
|
}
|
|
62449
60065
|
const OdeClientContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
@@ -62538,6 +60154,10 @@ function useBookmark() {
|
|
|
62538
60154
|
return set2.add(el2.displayName), !duplicate;
|
|
62539
60155
|
});
|
|
62540
60156
|
}
|
|
60157
|
+
const MockedDataContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
60158
|
+
function useMockedData() {
|
|
60159
|
+
return reactExports.useContext(MockedDataContext);
|
|
60160
|
+
}
|
|
62541
60161
|
const isActionAvailable = (workflow, actions) => {
|
|
62542
60162
|
const found = actions == null ? void 0 : actions.filter((action) => action.id === workflow && action.available);
|
|
62543
60163
|
return found && found.length > 0;
|
|
@@ -62549,10 +60169,7 @@ const isActionAvailable = (workflow, actions) => {
|
|
|
62549
60169
|
timelinegenerator: "TimelineGenerator",
|
|
62550
60170
|
wiki: "Wiki",
|
|
62551
60171
|
exercizer: "Exercizer"
|
|
62552
|
-
}
|
|
62553
|
-
function useMockedData() {
|
|
62554
|
-
return reactExports.useContext(MockedDataContext);
|
|
62555
|
-
}
|
|
60172
|
+
};
|
|
62556
60173
|
function mergeRefs(...refs) {
|
|
62557
60174
|
return (val) => {
|
|
62558
60175
|
setRef(val, ...refs);
|
|
@@ -62648,6 +60265,55 @@ const localizedFormat = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatE
|
|
|
62648
60265
|
dayjs.extend(relativeTime);
|
|
62649
60266
|
dayjs.extend(customParseFormat);
|
|
62650
60267
|
dayjs.extend(localizedFormat);
|
|
60268
|
+
function useDate() {
|
|
60269
|
+
const {
|
|
60270
|
+
currentLanguage
|
|
60271
|
+
} = useOdeClient(), parseDate = reactExports.useCallback((date, lang) => {
|
|
60272
|
+
if (date.length < 11)
|
|
60273
|
+
return dayjs(date, ["YYYY-MM-DD"], lang);
|
|
60274
|
+
if (date.split("").findIndex((char) => "0" > char || char > "9") < 0)
|
|
60275
|
+
return dayjs(Number.parseInt(date)).locale(currentLanguage);
|
|
60276
|
+
{
|
|
60277
|
+
let day = dayjs(date).locale(currentLanguage);
|
|
60278
|
+
return day.isValid() || (day = dayjs(date, ["YYYY-MM-DD HH:mm:ss.SSS"]).locale(currentLanguage)), day;
|
|
60279
|
+
}
|
|
60280
|
+
}, [currentLanguage]), fromNow = reactExports.useCallback((date) => {
|
|
60281
|
+
let computedDate = dayjs();
|
|
60282
|
+
try {
|
|
60283
|
+
return typeof date > "u" ? "" : (typeof date == "string" ? computedDate = parseDate(date) : typeof date == "number" ? computedDate = dayjs(date).locale(currentLanguage) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)).locale(currentLanguage) : typeof date.$date == "string" && (computedDate = parseDate(date.$date)), computedDate.isValid() ? computedDate.fromNow() : "");
|
|
60284
|
+
} catch {
|
|
60285
|
+
return "";
|
|
60286
|
+
}
|
|
60287
|
+
}, [currentLanguage, parseDate]), formatDate = reactExports.useCallback((date, format = "short") => {
|
|
60288
|
+
let computedDate = dayjs();
|
|
60289
|
+
try {
|
|
60290
|
+
if (typeof date > "u")
|
|
60291
|
+
return "";
|
|
60292
|
+
typeof date == "string" ? computedDate = parseDate(date) : typeof date.$date == "number" ? computedDate = dayjs(new Date(date.$date)).locale(currentLanguage) : typeof date.$date == "string" && (computedDate = parseDate(date.$date));
|
|
60293
|
+
let dayjsFormat = "";
|
|
60294
|
+
switch (format) {
|
|
60295
|
+
case "short":
|
|
60296
|
+
dayjsFormat = "L";
|
|
60297
|
+
break;
|
|
60298
|
+
case "long":
|
|
60299
|
+
dayjsFormat = "LL";
|
|
60300
|
+
break;
|
|
60301
|
+
case "abbr":
|
|
60302
|
+
dayjsFormat = "ll";
|
|
60303
|
+
break;
|
|
60304
|
+
default:
|
|
60305
|
+
dayjsFormat = format;
|
|
60306
|
+
}
|
|
60307
|
+
return computedDate.isValid() ? computedDate.locale(currentLanguage).format(dayjsFormat) : "";
|
|
60308
|
+
} catch {
|
|
60309
|
+
return "";
|
|
60310
|
+
}
|
|
60311
|
+
}, [currentLanguage, parseDate]);
|
|
60312
|
+
return {
|
|
60313
|
+
fromNow,
|
|
60314
|
+
formatDate
|
|
60315
|
+
};
|
|
60316
|
+
}
|
|
62651
60317
|
const DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
|
62652
60318
|
function useClickOutside(handler, events2, nodes) {
|
|
62653
60319
|
const ref2 = reactExports.useRef();
|
|
@@ -62658,7 +60324,7 @@ function useClickOutside(handler, events2, nodes) {
|
|
|
62658
60324
|
} = event ?? {};
|
|
62659
60325
|
if (Array.isArray(nodes)) {
|
|
62660
60326
|
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
|
62661
|
-
nodes.every((
|
|
60327
|
+
nodes.every((node) => !!node && !event.composedPath().includes(node)) && !shouldIgnore && handler();
|
|
62662
60328
|
} else
|
|
62663
60329
|
ref2.current && !ref2.current.contains(target) && handler();
|
|
62664
60330
|
};
|
|
@@ -62895,10 +60561,10 @@ function useHover() {
|
|
|
62895
60561
|
};
|
|
62896
60562
|
return reactExports.useEffect(
|
|
62897
60563
|
() => {
|
|
62898
|
-
const
|
|
62899
|
-
if (
|
|
62900
|
-
return
|
|
62901
|
-
|
|
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);
|
|
62902
60568
|
};
|
|
62903
60569
|
},
|
|
62904
60570
|
[ref2]
|
|
@@ -62944,12 +60610,12 @@ function useToggle(initialState2 = false) {
|
|
|
62944
60610
|
function useTrapFocus() {
|
|
62945
60611
|
const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
62946
60612
|
return reactExports.useEffect(() => {
|
|
62947
|
-
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) => {
|
|
62948
60614
|
event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
|
|
62949
60615
|
};
|
|
62950
|
-
if (
|
|
62951
|
-
return
|
|
62952
|
-
|
|
60616
|
+
if (node)
|
|
60617
|
+
return node.addEventListener("keydown", handleKeydown), () => {
|
|
60618
|
+
node.removeEventListener("keydown", handleKeydown);
|
|
62953
60619
|
};
|
|
62954
60620
|
}, []), ref2;
|
|
62955
60621
|
}
|
|
@@ -63150,6 +60816,98 @@ function useXitiTrackPageLoad() {
|
|
|
63150
60816
|
xitiStatus
|
|
63151
60817
|
};
|
|
63152
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
|
+
}
|
|
63153
60911
|
const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
|
|
63154
60912
|
src,
|
|
63155
60913
|
alt,
|
|
@@ -63965,8 +61723,8 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
63965
61723
|
}
|
|
63966
61724
|
});
|
|
63967
61725
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
63968
|
-
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: (
|
|
63969
|
-
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);
|
|
63970
61728
|
}, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
|
|
63971
61729
|
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
|
|
63972
61730
|
opacity: 0.65
|
|
@@ -64118,7 +61876,7 @@ const TreeItem = (props) => {
|
|
|
64118
61876
|
reactExports.useEffect(() => {
|
|
64119
61877
|
if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
|
|
64120
61878
|
const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
|
|
64121
|
-
selectedNodesIds.some((
|
|
61879
|
+
selectedNodesIds.some((node) => node === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node === nodeId) : (setExpanded(false), false));
|
|
64122
61880
|
} else
|
|
64123
61881
|
setExpanded(false);
|
|
64124
61882
|
}, [nodeId, selectedNodesIds]);
|
|
@@ -64167,30 +61925,30 @@ const TreeItem = (props) => {
|
|
|
64167
61925
|
onTreeItemFocus == null || onTreeItemFocus(nodeId);
|
|
64168
61926
|
}, handleItemBlur = (nodeId) => {
|
|
64169
61927
|
onTreeItemBlur == null || onTreeItemBlur(nodeId);
|
|
64170
|
-
}, 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);
|
|
64171
61929
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
|
|
64172
61930
|
}), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
|
|
64173
61931
|
children
|
|
64174
61932
|
}, ref2) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "visually-hidden", ref: ref2, children })), VisuallyHidden$1 = VisuallyHidden, getOnboardingTrash = async (key) => await odeServices.conf().getPreference(key), saveOnboardingTrash = async (key) => await odeServices.conf().savePreference(key, JSON.stringify({
|
|
64175
|
-
|
|
61933
|
+
key: false
|
|
64176
61934
|
})), useOnboardingModal = (id2) => {
|
|
64177
|
-
const [isOpen, setIsOpen] = reactExports.useState(true), [
|
|
61935
|
+
const [isOpen, setIsOpen] = reactExports.useState(true), [isOnboarding, setIsOnboarding] = reactExports.useState(false);
|
|
64178
61936
|
return reactExports.useEffect(() => {
|
|
64179
61937
|
(async () => {
|
|
64180
61938
|
const response = await getOnboardingTrash(id2);
|
|
64181
61939
|
if (response) {
|
|
64182
61940
|
const {
|
|
64183
|
-
|
|
61941
|
+
key
|
|
64184
61942
|
} = response;
|
|
64185
|
-
|
|
61943
|
+
setIsOnboarding(key);
|
|
64186
61944
|
return;
|
|
64187
61945
|
}
|
|
64188
|
-
|
|
61946
|
+
setIsOnboarding(true);
|
|
64189
61947
|
})();
|
|
64190
61948
|
}, [id2]), {
|
|
64191
61949
|
isOpen,
|
|
64192
61950
|
setIsOpen,
|
|
64193
|
-
|
|
61951
|
+
isOnboarding,
|
|
64194
61952
|
handleSavePreference: async () => {
|
|
64195
61953
|
await saveOnboardingTrash(id2), setIsOpen(false);
|
|
64196
61954
|
}
|
|
@@ -64202,7 +61960,7 @@ const TreeItem = (props) => {
|
|
|
64202
61960
|
}) => {
|
|
64203
61961
|
const [imagePath] = usePaths(), [swiperInstance, setSwiperInstance] = reactExports.useState(), [swiperProgress, setSwiperprogress] = reactExports.useState(0), {
|
|
64204
61962
|
isOpen,
|
|
64205
|
-
|
|
61963
|
+
isOnboarding,
|
|
64206
61964
|
setIsOpen,
|
|
64207
61965
|
handleSavePreference
|
|
64208
61966
|
} = useOnboardingModal(id2);
|
|
@@ -64220,7 +61978,7 @@ const TreeItem = (props) => {
|
|
|
64220
61978
|
closeText,
|
|
64221
61979
|
nextText
|
|
64222
61980
|
} = modalOptions;
|
|
64223
|
-
return
|
|
61981
|
+
return isOnboarding ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(false), children: [
|
|
64224
61982
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: () => setIsOpen(false), children: t2(title || "explorer.modal.onboarding.trash.title") }),
|
|
64225
61983
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Swiper2, { modules: [Pagination], onSwiper: (swiper) => {
|
|
64226
61984
|
setSwiperInstance(swiper);
|
|
@@ -65328,17 +63086,17 @@ const stripAccents = (input) => {
|
|
|
65328
63086
|
}, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
|
|
65329
63087
|
const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
|
|
65330
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"), "");
|
|
65331
|
-
}, slugify = (
|
|
65332
|
-
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")
|
|
65333
63091
|
return "";
|
|
65334
63092
|
const { delimiter, prefix: prefix2 } = options;
|
|
65335
|
-
if (typeof
|
|
63093
|
+
if (typeof node == "boolean")
|
|
65336
63094
|
return "";
|
|
65337
|
-
if (typeof
|
|
65338
|
-
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);
|
|
65339
63097
|
return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
|
|
65340
63098
|
}
|
|
65341
|
-
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) : "";
|
|
65342
63100
|
};
|
|
65343
63101
|
var _default = slugify$1.default = slugify;
|
|
65344
63102
|
const useSlug = ({
|
|
@@ -66080,101 +63838,7 @@ const WidgetAppsFooter = () => {
|
|
|
66080
63838
|
!bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
|
|
66081
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))
|
|
66082
63840
|
] });
|
|
66083
|
-
}
|
|
66084
|
-
function Help({
|
|
66085
|
-
isHelpOpen,
|
|
66086
|
-
setIsHelpOpen,
|
|
66087
|
-
parsedHeadline,
|
|
66088
|
-
parsedContent,
|
|
66089
|
-
error
|
|
66090
|
-
}) {
|
|
66091
|
-
const {
|
|
66092
|
-
t: t2
|
|
66093
|
-
} = useTranslation(), handleHelpOpen = () => {
|
|
66094
|
-
setIsHelpOpen(false);
|
|
66095
|
-
};
|
|
66096
|
-
return isHelpOpen ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "help-modal", isOpen: isHelpOpen, onModalClose: handleHelpOpen, scrollable: true, size: "lg", children: [
|
|
66097
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: handleHelpOpen, children: t2("navbar.help") }),
|
|
66098
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Subtitle, { children: error ? t2("help.notfound.title") : parsedHeadline }),
|
|
66099
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { className: error ? "d-flex" : null, children: error ? t2("help.notfound.text") : parsedContent })
|
|
66100
|
-
] }), document.getElementById("portal")) : null;
|
|
66101
|
-
}
|
|
66102
|
-
function useHelp() {
|
|
66103
|
-
var _a2, _b2, _c2, _d2, _e2;
|
|
66104
|
-
const {
|
|
66105
|
-
appCode
|
|
66106
|
-
} = useOdeClient(), {
|
|
66107
|
-
theme
|
|
66108
|
-
} = 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";
|
|
66109
|
-
reactExports.useEffect(() => {
|
|
66110
|
-
(async () => {
|
|
66111
|
-
let helpURL = "";
|
|
66112
|
-
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/");
|
|
66113
|
-
try {
|
|
66114
|
-
const res = await fetch(helpURL), html2 = await res.text();
|
|
66115
|
-
if (res.status === 404) {
|
|
66116
|
-
setError(true);
|
|
66117
|
-
return;
|
|
66118
|
-
}
|
|
66119
|
-
setHtml(html2), setError(false);
|
|
66120
|
-
} catch (error2) {
|
|
66121
|
-
setError(true), console.error(error2);
|
|
66122
|
-
}
|
|
66123
|
-
})();
|
|
66124
|
-
}, [appCode, helpPath]);
|
|
66125
|
-
const parsedHTML = HTMLReactParser$1(html, {
|
|
66126
|
-
replace: (domNode) => {
|
|
66127
|
-
const typedDomNode = domNode;
|
|
66128
|
-
if (typedDomNode.attribs && typedDomNode.attribs.id === "TOC")
|
|
66129
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { id: "TOC", children: [
|
|
66130
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => {
|
|
66131
|
-
setVisibility(!visibility);
|
|
66132
|
-
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgBurgerMenu$1, {}) }),
|
|
66133
|
-
domToReact(typedDomNode.children, {
|
|
66134
|
-
replace: (domNode2) => {
|
|
66135
|
-
const typedDomNode2 = domNode2;
|
|
66136
|
-
if (typedDomNode2.attribs && typedDomNode2.name === "ul")
|
|
66137
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { id: "TOC-list", style: {
|
|
66138
|
-
display: visibility ? "block" : "none"
|
|
66139
|
-
}, children: domToReact(typedDomNode2.children, {
|
|
66140
|
-
replace: (domNode3) => {
|
|
66141
|
-
const typedDomNode3 = domNode3;
|
|
66142
|
-
if (typedDomNode3.attribs && typedDomNode3.name === "a")
|
|
66143
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { ...attributesToProps2(typedDomNode3.attribs), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: () => {
|
|
66144
|
-
setVisibility(false);
|
|
66145
|
-
}, children: domToReact(typedDomNode3.children) }) });
|
|
66146
|
-
}
|
|
66147
|
-
}) });
|
|
66148
|
-
}
|
|
66149
|
-
})
|
|
66150
|
-
] });
|
|
66151
|
-
if (typedDomNode.attribs && typedDomNode.attribs.class === "section level2") {
|
|
66152
|
-
const props = attributesToProps2(domNode.attribs);
|
|
66153
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: "section level2", style: {
|
|
66154
|
-
display: typedDomNode.attribs.id !== "présentation" ? "none" : "block"
|
|
66155
|
-
}, children: domToReact(typedDomNode.children, {
|
|
66156
|
-
replace: (domNode2) => {
|
|
66157
|
-
const typedDomNode2 = domNode2;
|
|
66158
|
-
if (typedDomNode2.attribs && typedDomNode2.name === "img") {
|
|
66159
|
-
const attribs = domNode2.attribs.src;
|
|
66160
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { ...attributesToProps2(typedDomNode2.attribs), src: `${helpPath}/${attribs}`, alt: "" });
|
|
66161
|
-
}
|
|
66162
|
-
}
|
|
66163
|
-
}) });
|
|
66164
|
-
}
|
|
66165
|
-
}
|
|
66166
|
-
}), 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;
|
|
66167
|
-
return {
|
|
66168
|
-
html,
|
|
66169
|
-
visibility,
|
|
66170
|
-
isModalOpen,
|
|
66171
|
-
setIsModalOpen,
|
|
66172
|
-
parsedContent,
|
|
66173
|
-
parsedHeadline,
|
|
66174
|
-
error
|
|
66175
|
-
};
|
|
66176
|
-
}
|
|
66177
|
-
const SearchEngine = () => {
|
|
63841
|
+
}, SearchEngine = () => {
|
|
66178
63842
|
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
66179
63843
|
t: t2
|
|
66180
63844
|
} = useTranslation();
|
|
@@ -66208,15 +63872,8 @@ const SearchEngine = () => {
|
|
|
66208
63872
|
user,
|
|
66209
63873
|
avatar
|
|
66210
63874
|
} = useUser(), {
|
|
66211
|
-
currentLanguage,
|
|
66212
63875
|
currentApp
|
|
66213
|
-
} = useOdeClient(), {
|
|
66214
|
-
isModalOpen: isHelpOpen,
|
|
66215
|
-
setIsModalOpen: setIsHelpOpen,
|
|
66216
|
-
parsedContent,
|
|
66217
|
-
parsedHeadline,
|
|
66218
|
-
error
|
|
66219
|
-
} = useHelp(), classes2 = clsx("header", {
|
|
63876
|
+
} = useOdeClient(), classes2 = clsx("header", {
|
|
66220
63877
|
"no-2d": is1d,
|
|
66221
63878
|
"no-1d": !is1d
|
|
66222
63879
|
}), {
|
|
@@ -66252,15 +63909,6 @@ const SearchEngine = () => {
|
|
|
66252
63909
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
|
|
66253
63910
|
] }) }),
|
|
66254
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" }) }) }),
|
|
66255
|
-
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66256
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: () => {
|
|
66257
|
-
setIsHelpOpen(true);
|
|
66258
|
-
}, children: [
|
|
66259
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneAssistance$1, { className: "icon help" }),
|
|
66260
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.help") })
|
|
66261
|
-
] }),
|
|
66262
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66263
|
-
] }) : null,
|
|
66264
63912
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
|
|
66265
63913
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
|
|
66266
63914
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
|
|
@@ -66305,15 +63953,6 @@ const SearchEngine = () => {
|
|
|
66305
63953
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
|
|
66306
63954
|
hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages2 })
|
|
66307
63955
|
] }) }),
|
|
66308
|
-
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66309
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
|
|
66310
|
-
setIsHelpOpen(true);
|
|
66311
|
-
}, children: [
|
|
66312
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoAssistance$1, { color: "#fff" }),
|
|
66313
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("support") })
|
|
66314
|
-
] }),
|
|
66315
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66316
|
-
] }) : null,
|
|
66317
63956
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
|
|
66318
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" }) }),
|
|
66319
63958
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
@@ -66348,7 +63987,9 @@ const SearchEngine = () => {
|
|
|
66348
63987
|
showCookiesConsent,
|
|
66349
63988
|
handleConsultCookies,
|
|
66350
63989
|
handleCloseCookiesConsent
|
|
66351
|
-
} = useCookiesConsent()
|
|
63990
|
+
} = useCookiesConsent();
|
|
63991
|
+
useZendeskGuide();
|
|
63992
|
+
const classes2 = clsx("d-flex flex-column bg-white", {
|
|
66352
63993
|
"container-fluid": !headless,
|
|
66353
63994
|
"rounded-4 border": (theme == null ? void 0 : theme.is1d) && !headless,
|
|
66354
63995
|
"mt-24": (theme == null ? void 0 : theme.is1d) && !headless
|
|
@@ -66587,7 +64228,7 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
|
|
|
66587
64228
|
var withSelectorExports = withSelector.exports;
|
|
66588
64229
|
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs$1(withSelectorExports);
|
|
66589
64230
|
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
66590
|
-
const { useDebugValue } = React
|
|
64231
|
+
const { useDebugValue } = React;
|
|
66591
64232
|
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
66592
64233
|
let didWarnAboutEqualityFn = false;
|
|
66593
64234
|
const identity = (arg) => arg;
|
|
@@ -66834,11 +64475,11 @@ class TreeNodeFolderWrapper {
|
|
|
66834
64475
|
}
|
|
66835
64476
|
}
|
|
66836
64477
|
const wrapTreeNode = (treeNode, folders, parentId) => {
|
|
66837
|
-
return modifyNode(treeNode, (
|
|
66838
|
-
if (
|
|
66839
|
-
|
|
64478
|
+
return modifyNode(treeNode, (node) => {
|
|
64479
|
+
if (node.id === parentId) {
|
|
64480
|
+
node.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
|
|
66840
64481
|
}
|
|
66841
|
-
return
|
|
64482
|
+
return node;
|
|
66842
64483
|
});
|
|
66843
64484
|
};
|
|
66844
64485
|
const initialState = {
|
|
@@ -67182,7 +64823,7 @@ const useSearchForm = () => {
|
|
|
67182
64823
|
function ExplorerBreadcrumb() {
|
|
67183
64824
|
const { appCode } = useOdeClient();
|
|
67184
64825
|
const { gotoPreviousFolder } = useStoreActions();
|
|
67185
|
-
const { t: t2 } = useTranslation();
|
|
64826
|
+
const { t: t2 } = useTranslation(["common", appCode]);
|
|
67186
64827
|
const { inputSearch } = useSearchForm();
|
|
67187
64828
|
const selectedNodesIds = useSelectedNodesIds();
|
|
67188
64829
|
const isTrashFolder = useIsTrash();
|
|
@@ -67235,45 +64876,45 @@ const useTrashModal = () => {
|
|
|
67235
64876
|
};
|
|
67236
64877
|
};
|
|
67237
64878
|
function addNode(treeData, { parentId, newFolder }) {
|
|
67238
|
-
return modifyNode(treeData, (
|
|
64879
|
+
return modifyNode(treeData, (node) => {
|
|
67239
64880
|
var _a2;
|
|
67240
|
-
if (
|
|
64881
|
+
if (node.id === parentId) {
|
|
67241
64882
|
const parentAncestors = [
|
|
67242
|
-
...((_a2 =
|
|
64883
|
+
...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
|
|
67243
64884
|
];
|
|
67244
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
64885
|
+
const ancestors = arrayUnique([...parentAncestors, node.id]);
|
|
67245
64886
|
const newNode = {
|
|
67246
|
-
...
|
|
64887
|
+
...node,
|
|
67247
64888
|
children: [
|
|
67248
|
-
...
|
|
64889
|
+
...node.children || [],
|
|
67249
64890
|
new TreeNodeFolderWrapper({ ...newFolder, ancestors })
|
|
67250
64891
|
]
|
|
67251
64892
|
};
|
|
67252
64893
|
return newNode;
|
|
67253
64894
|
} else {
|
|
67254
|
-
return
|
|
64895
|
+
return node;
|
|
67255
64896
|
}
|
|
67256
64897
|
});
|
|
67257
64898
|
}
|
|
67258
64899
|
function deleteNode(treeData, { folders }) {
|
|
67259
|
-
return modifyNode(treeData, (
|
|
67260
|
-
if (folders.includes(
|
|
64900
|
+
return modifyNode(treeData, (node) => {
|
|
64901
|
+
if (folders.includes(node.id)) {
|
|
67261
64902
|
return void 0;
|
|
67262
64903
|
} else {
|
|
67263
|
-
return
|
|
64904
|
+
return node;
|
|
67264
64905
|
}
|
|
67265
64906
|
});
|
|
67266
64907
|
}
|
|
67267
64908
|
function moveNode(treeData, { destinationId, folders }) {
|
|
67268
|
-
return modifyNode(treeData, (
|
|
64909
|
+
return modifyNode(treeData, (node, parent) => {
|
|
67269
64910
|
var _a2, _b2;
|
|
67270
|
-
if (destinationId ===
|
|
64911
|
+
if (destinationId === node.id) {
|
|
67271
64912
|
const parentAncestors = [
|
|
67272
|
-
...((_a2 =
|
|
64913
|
+
...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
|
|
67273
64914
|
];
|
|
67274
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
67275
|
-
const newChildren = [...
|
|
67276
|
-
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)) || [];
|
|
67277
64918
|
for (const folder of folders) {
|
|
67278
64919
|
if (!childrenIds.includes(folder)) {
|
|
67279
64920
|
const item = findNodeById(folder, treeData);
|
|
@@ -67287,23 +64928,23 @@ function moveNode(treeData, { destinationId, folders }) {
|
|
|
67287
64928
|
}
|
|
67288
64929
|
}
|
|
67289
64930
|
const newNode = {
|
|
67290
|
-
...
|
|
64931
|
+
...node,
|
|
67291
64932
|
children: newChildren
|
|
67292
64933
|
};
|
|
67293
64934
|
return newNode;
|
|
67294
|
-
} else if (folders.includes(
|
|
64935
|
+
} else if (folders.includes(node.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
|
|
67295
64936
|
return void 0;
|
|
67296
64937
|
} else {
|
|
67297
|
-
return
|
|
64938
|
+
return node;
|
|
67298
64939
|
}
|
|
67299
64940
|
});
|
|
67300
64941
|
}
|
|
67301
64942
|
function updateNode(treeData, { folderId, newFolder }) {
|
|
67302
|
-
return modifyNode(treeData, (
|
|
67303
|
-
if (
|
|
64943
|
+
return modifyNode(treeData, (node) => {
|
|
64944
|
+
if (node.id === folderId) {
|
|
67304
64945
|
return new TreeNodeFolderWrapper(newFolder);
|
|
67305
64946
|
} else {
|
|
67306
|
-
return
|
|
64947
|
+
return node;
|
|
67307
64948
|
}
|
|
67308
64949
|
});
|
|
67309
64950
|
}
|
|
@@ -67638,7 +65279,7 @@ const useCopyResource = () => {
|
|
|
67638
65279
|
}
|
|
67639
65280
|
);
|
|
67640
65281
|
}
|
|
67641
|
-
if (currentFolder.id && currentFolder.id !==
|
|
65282
|
+
if (currentFolder.id && currentFolder.id !== FOLDER.DEFAULT) {
|
|
67642
65283
|
moveToFolder({
|
|
67643
65284
|
searchParams,
|
|
67644
65285
|
resourceIds: [data.duplicateId],
|
|
@@ -68020,10 +65661,9 @@ const useCreateResource = () => {
|
|
|
68020
65661
|
var _a2, _b2, _c2;
|
|
68021
65662
|
await queryClient2.cancelQueries({ queryKey });
|
|
68022
65663
|
const previousData = queryClient2.getQueryData(queryKey);
|
|
68023
|
-
const { thumbnail } = variables;
|
|
68024
65664
|
const newResource = {
|
|
68025
65665
|
...variables,
|
|
68026
|
-
thumbnail:
|
|
65666
|
+
thumbnail: data.thumbnail || "",
|
|
68027
65667
|
application,
|
|
68028
65668
|
assetId: data._id || data.entId || "",
|
|
68029
65669
|
id: data._id || data.entId || "",
|
|
@@ -68087,7 +65727,7 @@ const List = () => {
|
|
|
68087
65727
|
const treeData = useTreeData();
|
|
68088
65728
|
const toast = useToast();
|
|
68089
65729
|
const { appCode } = useOdeClient();
|
|
68090
|
-
const { t: t2 } = useTranslation();
|
|
65730
|
+
const { t: t2 } = useTranslation([appCode]);
|
|
68091
65731
|
const { setSearchParams, setSearchConfig, setTreeData } = useStoreActions();
|
|
68092
65732
|
const { data, isError: isError2, error, isLoading, isFetching, fetchNextPage } = useSearchContext();
|
|
68093
65733
|
const hasNoFolders = (data == null ? void 0 : data.pages[0].folders.length) === 0;
|
|
@@ -68222,7 +65862,7 @@ const SearchForm = () => {
|
|
|
68222
65862
|
"form",
|
|
68223
65863
|
{
|
|
68224
65864
|
noValidate: true,
|
|
68225
|
-
className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative
|
|
65865
|
+
className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8",
|
|
68226
65866
|
ref: formRef,
|
|
68227
65867
|
children: [
|
|
68228
65868
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "search", className: "input-group", children: [
|
|
@@ -68330,7 +65970,10 @@ const TreeViewContainer = () => {
|
|
|
68330
65970
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
68331
65971
|
TreeView$1,
|
|
68332
65972
|
{
|
|
68333
|
-
data:
|
|
65973
|
+
data: {
|
|
65974
|
+
...treeData,
|
|
65975
|
+
name: t2("explorer.filters.mine", { ns: appCode })
|
|
65976
|
+
},
|
|
68334
65977
|
selectedNodesIds,
|
|
68335
65978
|
onTreeItemSelect: selectTreeItem,
|
|
68336
65979
|
onTreeItemFold: foldTreeItem,
|
|
@@ -68748,7 +66391,7 @@ const ResourceCard = ({
|
|
|
68748
66391
|
Image$2,
|
|
68749
66392
|
{
|
|
68750
66393
|
alt: "",
|
|
68751
|
-
src: resource == null ? void 0 : resource.thumbnail
|
|
66394
|
+
src: `${resource == null ? void 0 : resource.thumbnail}?thumbnail=80x80`,
|
|
68752
66395
|
objectFit: "cover",
|
|
68753
66396
|
className: "h-full w-100"
|
|
68754
66397
|
}
|
|
@@ -68805,13 +66448,13 @@ const ResourceCard = ({
|
|
|
68805
66448
|
);
|
|
68806
66449
|
};
|
|
68807
66450
|
ResourceCard.displayName = "ResourceCard";
|
|
68808
|
-
dayjs.extend(relativeTime);
|
|
68809
66451
|
const ResourcesList = ({
|
|
68810
66452
|
data,
|
|
68811
66453
|
fetchNextPage
|
|
68812
66454
|
}) => {
|
|
68813
|
-
const { currentApp
|
|
66455
|
+
const { currentApp } = useOdeClient();
|
|
68814
66456
|
const { t: t2 } = useTranslation();
|
|
66457
|
+
const { fromNow } = useDate();
|
|
68815
66458
|
const searchParams = useSearchParams();
|
|
68816
66459
|
const resourceIds = useResourceIds();
|
|
68817
66460
|
const selectedResources = useSelectedResources();
|
|
@@ -68858,12 +66501,12 @@ const ResourcesList = ({
|
|
|
68858
66501
|
setSelectedResources([...selectedResources, resource]);
|
|
68859
66502
|
}
|
|
68860
66503
|
const classes2 = clsx("grid ps-0 list-unstyled");
|
|
68861
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React
|
|
66504
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
68862
66505
|
/* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
|
|
68863
66506
|
// eslint-disable-next-line react/no-array-index-key
|
|
68864
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(React
|
|
66507
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
|
|
68865
66508
|
const { id: id2, updatedAt } = resource;
|
|
68866
|
-
const time =
|
|
66509
|
+
const time = fromNow(updatedAt);
|
|
68867
66510
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
68868
66511
|
animated.li,
|
|
68869
66512
|
{
|
|
@@ -69005,6 +66648,7 @@ function FolderModal$1({
|
|
|
69005
66648
|
type: "text",
|
|
69006
66649
|
...register("name", {
|
|
69007
66650
|
required: true,
|
|
66651
|
+
maxLength: 60,
|
|
69008
66652
|
pattern: {
|
|
69009
66653
|
value: /[^ ]/,
|
|
69010
66654
|
message: "invalid title"
|
|
@@ -69012,7 +66656,8 @@ function FolderModal$1({
|
|
|
69012
66656
|
}),
|
|
69013
66657
|
placeholder: t2("explorer.create.folder.name"),
|
|
69014
66658
|
size: "md",
|
|
69015
|
-
"aria-required": true
|
|
66659
|
+
"aria-required": true,
|
|
66660
|
+
maxLength: 60
|
|
69016
66661
|
}
|
|
69017
66662
|
)
|
|
69018
66663
|
] }) }) }),
|
|
@@ -69134,7 +66779,7 @@ const Library = () => {
|
|
|
69134
66779
|
href: libraryUrl,
|
|
69135
66780
|
target: "_blank",
|
|
69136
66781
|
rel: "noreferrer",
|
|
69137
|
-
className: "d-inline-flex gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
|
|
66782
|
+
className: "d-inline-flex align-items-center gap-4 btn btn-ghost-primary py-0 p-0 pe-8",
|
|
69138
66783
|
children: [
|
|
69139
66784
|
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: t2("explorer.libray.btn") }),
|
|
69140
66785
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgArrowRight$1, {})
|
|
@@ -69276,14 +66921,10 @@ function useActionBar() {
|
|
|
69276
66921
|
case ACTION.UPD_PROPS:
|
|
69277
66922
|
case "edit":
|
|
69278
66923
|
return onEdit();
|
|
69279
|
-
case "export":
|
|
69280
|
-
if (resourceIds.length > 0) {
|
|
69281
|
-
return onExport();
|
|
69282
|
-
} else {
|
|
69283
|
-
return null;
|
|
69284
|
-
}
|
|
69285
66924
|
case ACTION.SHARE:
|
|
69286
66925
|
return setOpenedModalName("share");
|
|
66926
|
+
case ACTION.EXPORT:
|
|
66927
|
+
return setOpenedModalName("export");
|
|
69287
66928
|
default:
|
|
69288
66929
|
throw Error(`Unknown action: ${action.id}`);
|
|
69289
66930
|
}
|
|
@@ -69355,6 +66996,8 @@ function useActionBar() {
|
|
|
69355
66996
|
const onEditResourceCancel = onFinish("edit_resource");
|
|
69356
66997
|
const onShareResourceSuccess = onFinish("share");
|
|
69357
66998
|
const onShareResourceCancel = onFinish("share");
|
|
66999
|
+
const onExportCancel = onFinish("export");
|
|
67000
|
+
const onExportSuccess = onFinish("export");
|
|
69358
67001
|
async function onCopy() {
|
|
69359
67002
|
if (selectedResources && selectedResources.length > 0) {
|
|
69360
67003
|
const selectedResource = selectedResources[0];
|
|
@@ -69371,12 +67014,6 @@ function useActionBar() {
|
|
|
69371
67014
|
setOpenedModalName("edit_folder");
|
|
69372
67015
|
}
|
|
69373
67016
|
}
|
|
69374
|
-
function onExport() {
|
|
69375
|
-
if (resourceIds && resourceIds.length > 0) {
|
|
69376
|
-
const selectedResource = selectedResources[0].assetId;
|
|
69377
|
-
goToExport({ searchParams, assetId: selectedResource });
|
|
69378
|
-
}
|
|
69379
|
-
}
|
|
69380
67017
|
function overrideLabel(action) {
|
|
69381
67018
|
if (action.id === "edit" && folderIds.length > 0) {
|
|
69382
67019
|
return "explorer.rename";
|
|
@@ -69410,6 +67047,9 @@ function useActionBar() {
|
|
|
69410
67047
|
isShareResourceOpen: openedModalName === "share",
|
|
69411
67048
|
onShareResourceCancel,
|
|
69412
67049
|
onShareResourceSuccess,
|
|
67050
|
+
isExportModalOpen: openedModalName === "export",
|
|
67051
|
+
onExportCancel,
|
|
67052
|
+
onExportSuccess,
|
|
69413
67053
|
onClearActionBar
|
|
69414
67054
|
};
|
|
69415
67055
|
}
|
|
@@ -69459,6 +67099,7 @@ const UpdateModal = reactExports.lazy(
|
|
|
69459
67099
|
const DeleteModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => DeleteModal$1), true ? void 0 : void 0));
|
|
69460
67100
|
const MoveModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => MoveModal$1), true ? void 0 : void 0));
|
|
69461
67101
|
const FolderModal = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => FolderModal$2), true ? void 0 : void 0));
|
|
67102
|
+
const ExportModal$2 = reactExports.lazy(async () => await __vitePreload(() => Promise.resolve().then(() => ExportModal$1), true ? void 0 : void 0));
|
|
69462
67103
|
function ActionBarContainer() {
|
|
69463
67104
|
const { appCode } = useOdeClient();
|
|
69464
67105
|
const { t: t2 } = useTranslation();
|
|
@@ -69479,6 +67120,9 @@ function ActionBarContainer() {
|
|
|
69479
67120
|
isShareResourceOpen,
|
|
69480
67121
|
onShareResourceCancel,
|
|
69481
67122
|
onShareResourceSuccess,
|
|
67123
|
+
isExportModalOpen,
|
|
67124
|
+
onExportCancel,
|
|
67125
|
+
onExportSuccess,
|
|
69482
67126
|
onMoveCancel,
|
|
69483
67127
|
onMoveSuccess,
|
|
69484
67128
|
onDeleteCancel,
|
|
@@ -69502,8 +67146,8 @@ function ActionBarContainer() {
|
|
|
69502
67146
|
return isActionBarOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
69503
67147
|
animated.div,
|
|
69504
67148
|
{
|
|
69505
|
-
className: "position-fixed bottom-0 start-0 end-0
|
|
69506
|
-
style,
|
|
67149
|
+
className: "position-fixed bottom-0 start-0 end-0",
|
|
67150
|
+
style: { ...style, zIndex: 4 },
|
|
69507
67151
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionBar$1$1, { children: actions == null ? void 0 : actions.filter(
|
|
69508
67152
|
(action) => action.available && action.target === "actionbar"
|
|
69509
67153
|
).map((action) => {
|
|
@@ -69607,6 +67251,14 @@ function ActionBarContainer() {
|
|
|
69607
67251
|
}
|
|
69608
67252
|
) : null
|
|
69609
67253
|
}
|
|
67254
|
+
),
|
|
67255
|
+
isExportModalOpen && selectedResource && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67256
|
+
ExportModal$2,
|
|
67257
|
+
{
|
|
67258
|
+
isOpen: isExportModalOpen,
|
|
67259
|
+
onCancel: onExportCancel,
|
|
67260
|
+
onSuccess: onExportSuccess
|
|
67261
|
+
}
|
|
69610
67262
|
)
|
|
69611
67263
|
] })
|
|
69612
67264
|
] });
|
|
@@ -69860,6 +67512,69 @@ const MoveModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
69860
67512
|
__proto__: null,
|
|
69861
67513
|
default: MoveModal
|
|
69862
67514
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
67515
|
+
const useExportModal = (onSuccess) => {
|
|
67516
|
+
const selectedResources = useSelectedResources();
|
|
67517
|
+
const searchParams = useSearchParams();
|
|
67518
|
+
const toast = useToast();
|
|
67519
|
+
const { t: t2 } = useTranslation();
|
|
67520
|
+
const handleExportClick = () => {
|
|
67521
|
+
if (selectedResources.length) {
|
|
67522
|
+
goToExport({ searchParams, assetId: selectedResources[0].assetId });
|
|
67523
|
+
onSuccess();
|
|
67524
|
+
} else {
|
|
67525
|
+
toast.error(t2("explorer.error.noResourceSelected"));
|
|
67526
|
+
}
|
|
67527
|
+
};
|
|
67528
|
+
return { handleExportClick };
|
|
67529
|
+
};
|
|
67530
|
+
function ExportModal({
|
|
67531
|
+
isOpen,
|
|
67532
|
+
onSuccess,
|
|
67533
|
+
onCancel
|
|
67534
|
+
}) {
|
|
67535
|
+
const { handleExportClick } = useExportModal(onSuccess);
|
|
67536
|
+
const { t: t2 } = useTranslation();
|
|
67537
|
+
return reactDomExports.createPortal(
|
|
67538
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { isOpen, onModalClose: onCancel, id: "exportModal", children: [
|
|
67539
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: onCancel, children: t2("explorer.export.title") }),
|
|
67540
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Body, { children: [
|
|
67541
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { children: [
|
|
67542
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.1") }),
|
|
67543
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.2") }),
|
|
67544
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: t2("explorer.export.body.info.3") })
|
|
67545
|
+
] }),
|
|
67546
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Alert$1, { type: "warning", children: t2("explorer.export.body.warning") })
|
|
67547
|
+
] }),
|
|
67548
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Footer, { children: [
|
|
67549
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67550
|
+
Button$1,
|
|
67551
|
+
{
|
|
67552
|
+
color: "tertiary",
|
|
67553
|
+
onClick: onCancel,
|
|
67554
|
+
type: "button",
|
|
67555
|
+
variant: "ghost",
|
|
67556
|
+
children: t2("explorer.cancel")
|
|
67557
|
+
}
|
|
67558
|
+
),
|
|
67559
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67560
|
+
Button$1,
|
|
67561
|
+
{
|
|
67562
|
+
color: "primary",
|
|
67563
|
+
onClick: handleExportClick,
|
|
67564
|
+
type: "button",
|
|
67565
|
+
variant: "filled",
|
|
67566
|
+
children: t2("explorer.actions.export")
|
|
67567
|
+
}
|
|
67568
|
+
)
|
|
67569
|
+
] })
|
|
67570
|
+
] }),
|
|
67571
|
+
document.getElementById("portal")
|
|
67572
|
+
);
|
|
67573
|
+
}
|
|
67574
|
+
const ExportModal$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
67575
|
+
__proto__: null,
|
|
67576
|
+
default: ExportModal
|
|
67577
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
69863
67578
|
function __vite__mapDeps(indexes) {
|
|
69864
67579
|
if (!__vite__mapDeps.viteFileDeps) {
|
|
69865
67580
|
__vite__mapDeps.viteFileDeps = []
|