@dnb/eufemia 9.33.0 → 9.34.0
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/CHANGELOG.md +12 -0
- package/cjs/components/upload/UploadFileListCell.js +1 -1
- package/cjs/components/upload/useUpload.js +1 -1
- package/cjs/shared/Eufemia.js +1 -1
- package/cjs/shared/MediaQuery.d.ts +4 -2
- package/cjs/shared/MediaQuery.js +2 -0
- package/cjs/shared/MediaQueryUtils.d.ts +6 -2
- package/cjs/shared/MediaQueryUtils.js +10 -4
- package/cjs/shared/index.d.ts +2 -1
- package/cjs/shared/index.js +10 -1
- package/cjs/shared/useMedia.d.ts +25 -0
- package/cjs/shared/useMedia.js +185 -0
- package/components/upload/UploadFileListCell.js +1 -1
- package/components/upload/useUpload.js +1 -1
- package/es/components/upload/UploadFileListCell.js +1 -1
- package/es/components/upload/useUpload.js +1 -1
- package/es/shared/Eufemia.js +1 -1
- package/es/shared/MediaQuery.d.ts +4 -2
- package/es/shared/MediaQuery.js +2 -0
- package/es/shared/MediaQueryUtils.d.ts +6 -2
- package/es/shared/MediaQueryUtils.js +12 -6
- package/es/shared/index.d.ts +2 -1
- package/es/shared/index.js +2 -1
- package/es/shared/useMedia.d.ts +25 -0
- package/es/shared/useMedia.js +103 -0
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +1 -1
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +2 -2
- package/esm/dnb-ui-web-components.min.mjs +2 -2
- package/package.json +1 -1
- package/shared/Eufemia.js +1 -1
- package/shared/MediaQuery.d.ts +4 -2
- package/shared/MediaQuery.js +2 -0
- package/shared/MediaQueryUtils.d.ts +6 -2
- package/shared/MediaQueryUtils.js +12 -6
- package/shared/index.d.ts +2 -1
- package/shared/index.js +2 -1
- package/shared/useMedia.d.ts +25 -0
- package/shared/useMedia.js +126 -0
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +1 -1
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +2 -2
- package/umd/dnb-ui-web-components.min.js +2 -2
package/package.json
CHANGED
package/shared/Eufemia.js
CHANGED
package/shared/MediaQuery.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ContextProps } from './Context';
|
|
2
3
|
import { onMediaQueryChange } from './MediaQueryUtils';
|
|
3
4
|
import type { MediaQueryProps, MediaQueryState, MediaQueryListener } from './MediaQueryUtils';
|
|
4
5
|
export type { MediaQueryProps };
|
|
5
6
|
export { onMediaQueryChange };
|
|
6
7
|
export default class MediaQuery extends React.PureComponent<MediaQueryProps, MediaQueryState> {
|
|
7
|
-
static contextType: React.Context<
|
|
8
|
+
static contextType: React.Context<ContextProps>;
|
|
8
9
|
listener: MediaQueryListener;
|
|
10
|
+
context: ContextProps;
|
|
9
11
|
state: {
|
|
10
12
|
match: any;
|
|
11
13
|
mediaQueryList: any;
|
|
12
14
|
};
|
|
13
|
-
constructor(props:
|
|
15
|
+
constructor(props: MediaQueryProps, context: ContextProps);
|
|
14
16
|
componentDidMount(): void;
|
|
15
17
|
componentWillUnmount(): void;
|
|
16
18
|
componentDidUpdate(props: any): void;
|
package/shared/MediaQuery.js
CHANGED
|
@@ -34,6 +34,8 @@ var MediaQuery = function (_React$PureComponent) {
|
|
|
34
34
|
|
|
35
35
|
_defineProperty(_assertThisInitialized(_this), "listener", void 0);
|
|
36
36
|
|
|
37
|
+
_defineProperty(_assertThisInitialized(_this), "context", void 0);
|
|
38
|
+
|
|
37
39
|
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
38
40
|
match: null,
|
|
39
41
|
mediaQueryList: null
|
|
@@ -32,6 +32,10 @@ export declare type MediaQueryProperties = {
|
|
|
32
32
|
* If set to true, no MediaQuery will be used.
|
|
33
33
|
*/
|
|
34
34
|
disabled?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* If set to true, no Eufemia warning will be shown when window.matchMedia is undefined
|
|
37
|
+
*/
|
|
38
|
+
dismissWarning?: boolean;
|
|
35
39
|
/**
|
|
36
40
|
* For debugging
|
|
37
41
|
*/
|
|
@@ -80,7 +84,7 @@ export declare const isMatchMediaSupported: () => boolean;
|
|
|
80
84
|
* @property {boolean} log - print used query to console
|
|
81
85
|
* @returns MediaQueryList type
|
|
82
86
|
*/
|
|
83
|
-
export declare function makeMediaQueryList({ query, when, not, log, disabled, }?: MediaQueryProperties, breakpoints?: MediaQueryBreakpoints): MediaQueryList;
|
|
87
|
+
export declare function makeMediaQueryList({ query, when, not, log, disabled, dismissWarning, }?: MediaQueryProperties, breakpoints?: MediaQueryBreakpoints): MediaQueryList;
|
|
84
88
|
/**
|
|
85
89
|
* Adds a listener to the window.matchMedia Browser API
|
|
86
90
|
*
|
|
@@ -88,7 +92,7 @@ export declare function makeMediaQueryList({ query, when, not, log, disabled, }?
|
|
|
88
92
|
* @param {function} callback callback function
|
|
89
93
|
* @returns function to remove listeners when called
|
|
90
94
|
*/
|
|
91
|
-
export declare function createMediaQueryListener(mediaQueryList: MediaQueryList, callback: (matches: boolean, event:
|
|
95
|
+
export declare function createMediaQueryListener(mediaQueryList: MediaQueryList, callback: (matches: boolean, event: Partial<MediaQueryListEvent>) => void): MediaQueryListener;
|
|
92
96
|
/**
|
|
93
97
|
* Builds a valid media query we can use on window.matchMedia(...)
|
|
94
98
|
*
|
|
@@ -22,8 +22,8 @@ import "core-js/modules/es.array.reduce.js";
|
|
|
22
22
|
import "core-js/modules/es.array.sort.js";
|
|
23
23
|
import "core-js/modules/es.object.entries.js";
|
|
24
24
|
import "core-js/modules/es.object.keys.js";
|
|
25
|
-
import { isTrue, toKebabCase
|
|
26
|
-
import { IS_IE11 } from './helpers';
|
|
25
|
+
import { isTrue, toKebabCase } from './component-helper';
|
|
26
|
+
import { IS_IE11, warn } from './helpers';
|
|
27
27
|
export var defaultBreakpoints = {
|
|
28
28
|
small: '40em',
|
|
29
29
|
medium: '50em',
|
|
@@ -72,11 +72,18 @@ export function makeMediaQueryList() {
|
|
|
72
72
|
_ref2$log = _ref2.log,
|
|
73
73
|
log = _ref2$log === void 0 ? false : _ref2$log,
|
|
74
74
|
_ref2$disabled = _ref2.disabled,
|
|
75
|
-
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled
|
|
75
|
+
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
76
|
+
_ref2$dismissWarning = _ref2.dismissWarning,
|
|
77
|
+
dismissWarning = _ref2$dismissWarning === void 0 ? false : _ref2$dismissWarning;
|
|
76
78
|
|
|
77
79
|
var breakpoints = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
80
|
+
var isSupported = isMatchMediaSupported();
|
|
81
|
+
|
|
82
|
+
if (disabled || !isSupported) {
|
|
83
|
+
if (!dismissWarning && !isSupported) {
|
|
84
|
+
warn('window.matchMedia is "undefined"');
|
|
85
|
+
}
|
|
78
86
|
|
|
79
|
-
if (disabled || !isMatchMediaSupported()) {
|
|
80
87
|
return null;
|
|
81
88
|
}
|
|
82
89
|
|
|
@@ -92,14 +99,13 @@ export function makeMediaQueryList() {
|
|
|
92
99
|
var mediaQueryList = window.matchMedia(mediaQueryString);
|
|
93
100
|
|
|
94
101
|
if (log) {
|
|
95
|
-
|
|
102
|
+
warn('MediaQuery:', mediaQueryString);
|
|
96
103
|
}
|
|
97
104
|
|
|
98
105
|
return mediaQueryList;
|
|
99
106
|
}
|
|
100
107
|
export function createMediaQueryListener(mediaQueryList, callback) {
|
|
101
108
|
if (!mediaQueryList) {
|
|
102
|
-
warn('Invalid MediaQueryList was given');
|
|
103
109
|
return function () {
|
|
104
110
|
return null;
|
|
105
111
|
};
|
package/shared/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import Context from "./Context";
|
|
|
3
3
|
import Provider from "./Provider";
|
|
4
4
|
import MediaQuery from "./MediaQuery";
|
|
5
5
|
import useMediaQuery from "./useMediaQuery";
|
|
6
|
-
|
|
6
|
+
import useMedia from "./useMedia";
|
|
7
|
+
export { Context, Provider, MediaQuery, useMediaQuery, useMedia };
|
package/shared/index.js
CHANGED
|
@@ -2,5 +2,6 @@ import Context from './Context';
|
|
|
2
2
|
import Provider from './Provider';
|
|
3
3
|
import MediaQuery from './MediaQuery';
|
|
4
4
|
import useMediaQuery from './useMediaQuery';
|
|
5
|
+
import useMedia from './useMedia';
|
|
5
6
|
export * from './SpacingHelper';
|
|
6
|
-
export { Context, Provider, MediaQuery, useMediaQuery };
|
|
7
|
+
export { Context, Provider, MediaQuery, useMediaQuery, useMedia };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { MediaQueryCondition } from './MediaQueryUtils';
|
|
2
|
+
export declare type UseMediaProps = {
|
|
3
|
+
/**
|
|
4
|
+
* If set to true, no MediaQuery will be used.
|
|
5
|
+
* Default: false
|
|
6
|
+
*/
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* For debugging
|
|
10
|
+
*/
|
|
11
|
+
log?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare type UseMediaQueries = {
|
|
14
|
+
small: MediaQueryCondition;
|
|
15
|
+
medium: MediaQueryCondition;
|
|
16
|
+
large: MediaQueryCondition;
|
|
17
|
+
};
|
|
18
|
+
export declare const queries: UseMediaQueries;
|
|
19
|
+
export declare type UseMediaResult = {
|
|
20
|
+
isSmall: boolean;
|
|
21
|
+
isMedium: boolean;
|
|
22
|
+
isLarge: boolean;
|
|
23
|
+
isSSR: boolean;
|
|
24
|
+
};
|
|
25
|
+
export default function useMedia(props?: UseMediaProps): UseMediaResult;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import "core-js/modules/es.object.keys.js";
|
|
2
|
+
import "core-js/modules/es.symbol.js";
|
|
3
|
+
import "core-js/modules/es.array.filter.js";
|
|
4
|
+
import "core-js/modules/es.object.get-own-property-descriptor.js";
|
|
5
|
+
import "core-js/modules/es.object.get-own-property-descriptors.js";
|
|
6
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
|
+
|
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
10
|
+
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
12
|
+
|
|
13
|
+
import "core-js/modules/es.array.reduce.js";
|
|
14
|
+
import "core-js/modules/es.object.to-string.js";
|
|
15
|
+
import "core-js/modules/es.object.entries.js";
|
|
16
|
+
import "core-js/modules/es.function.name.js";
|
|
17
|
+
import "core-js/modules/web.dom-collections.for-each.js";
|
|
18
|
+
import "core-js/modules/es.object.values.js";
|
|
19
|
+
import React from 'react';
|
|
20
|
+
import Context from './Context';
|
|
21
|
+
import { makeMediaQueryList, createMediaQueryListener, isMatchMediaSupported } from './MediaQueryUtils';
|
|
22
|
+
import { toPascalCase } from './component-helper';
|
|
23
|
+
export var queries = {
|
|
24
|
+
small: {
|
|
25
|
+
min: 0,
|
|
26
|
+
max: 'small'
|
|
27
|
+
},
|
|
28
|
+
medium: {
|
|
29
|
+
min: 'small',
|
|
30
|
+
max: 'medium'
|
|
31
|
+
},
|
|
32
|
+
large: {
|
|
33
|
+
min: 'medium'
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
export default function useMedia() {
|
|
37
|
+
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
38
|
+
var disabled = props.disabled,
|
|
39
|
+
log = props.log;
|
|
40
|
+
|
|
41
|
+
var makeResult = function makeResult() {
|
|
42
|
+
return Object.entries(queries).reduce(function (acc, _ref) {
|
|
43
|
+
var _item$mediaQueryList;
|
|
44
|
+
|
|
45
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
46
|
+
key = _ref2[0],
|
|
47
|
+
when = _ref2[1];
|
|
48
|
+
|
|
49
|
+
var name = "is".concat(toPascalCase(key));
|
|
50
|
+
|
|
51
|
+
if (disabled) {
|
|
52
|
+
acc[name] = false;
|
|
53
|
+
return acc;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
defaults.current[name] = false;
|
|
57
|
+
var item = runQuery({
|
|
58
|
+
name: name,
|
|
59
|
+
when: when
|
|
60
|
+
});
|
|
61
|
+
acc[name] = (item === null || item === void 0 ? void 0 : (_item$mediaQueryList = item.mediaQueryList) === null || _item$mediaQueryList === void 0 ? void 0 : _item$mediaQueryList.matches) || false;
|
|
62
|
+
refs.current[key] = item;
|
|
63
|
+
return acc;
|
|
64
|
+
}, {
|
|
65
|
+
isSSR: !isMatchMediaSupported()
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
var runQuery = function runQuery(_ref3) {
|
|
70
|
+
var when = _ref3.when,
|
|
71
|
+
name = _ref3.name;
|
|
72
|
+
|
|
73
|
+
if (!isMatchMediaSupported()) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
var mediaQueryList = makeMediaQueryList({
|
|
78
|
+
when: when,
|
|
79
|
+
disabled: disabled,
|
|
80
|
+
log: log,
|
|
81
|
+
dismissWarning: true
|
|
82
|
+
}, context.breakpoints);
|
|
83
|
+
var event = createMediaQueryListener(mediaQueryList, function (match) {
|
|
84
|
+
if (!disabledRef.current && match) {
|
|
85
|
+
var state = _objectSpread(_objectSpread({}, defaults.current), {}, {
|
|
86
|
+
isSSR: result.isSSR
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
state[name] = match;
|
|
90
|
+
updateRerender(state);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
return {
|
|
94
|
+
event: event,
|
|
95
|
+
mediaQueryList: mediaQueryList
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
React.useEffect(function () {
|
|
100
|
+
if (disabledRef.current && !disabled) {
|
|
101
|
+
updateRerender(makeResult());
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
disabledRef.current = disabled;
|
|
105
|
+
}, [disabled]);
|
|
106
|
+
React.useEffect(function () {
|
|
107
|
+
return removeListeners;
|
|
108
|
+
}, []);
|
|
109
|
+
var context = React.useContext(Context);
|
|
110
|
+
var refs = React.useRef({});
|
|
111
|
+
var defaults = React.useRef({});
|
|
112
|
+
var disabledRef = React.useRef(disabled);
|
|
113
|
+
|
|
114
|
+
var _React$useState = React.useState(makeResult),
|
|
115
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
116
|
+
result = _React$useState2[0],
|
|
117
|
+
updateRerender = _React$useState2[1];
|
|
118
|
+
|
|
119
|
+
var removeListeners = function removeListeners() {
|
|
120
|
+
Object.values(refs.current).forEach(function (item) {
|
|
121
|
+
return (item === null || item === void 0 ? void 0 : item.event) && item.event();
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
return result;
|
|
126
|
+
}
|
package/umd/dnb-ui-basis.min.js
CHANGED
|
@@ -9,4 +9,4 @@ for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=
|
|
|
9
9
|
* @link https://github.com/ten1seven/what-input
|
|
10
10
|
* @license MIT
|
|
11
11
|
*/
|
|
12
|
-
!function(t,e){var n;n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e){t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,n="initial",r=n,o=Date.now(),i="false",u=["button","input","select","textarea"],a=[],c=[16,17,18,91,93],f=[],s={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},l=!1,d={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},h=!1;try{var v=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,v)}catch(t){}var g=function(){var t=!!h&&{passive:!0};document.addEventListener("DOMContentLoaded",y),window.PointerEvent?(window.addEventListener("pointerdown",m),window.addEventListener("pointermove",b)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",m),window.addEventListener("MSPointerMove",b)):(window.addEventListener("mousedown",m),window.addEventListener("mousemove",b),"ontouchstart"in window&&(window.addEventListener("touchstart",m,t),window.addEventListener("touchend",m))),window.addEventListener(k(),b,t),window.addEventListener("keydown",m),window.addEventListener("keyup",m),window.addEventListener("focusin",x),window.addEventListener("focusout",E)},y=function(){if(i=!(t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(t){}w("input"),w("intent")},m=function(t){var e=t.which,o=s[t.type];"pointer"===o&&(o=S(t));var i=!f.length&&-1===c.indexOf(e),a=f.length&&-1!==f.indexOf(e),l="keyboard"===o&&e&&(i||a)||"mouse"===o||"touch"===o;if(L(o)&&(l=!1),l&&n!==o&&(O("input",n=o),w("input")),l&&r!==o){var d=document.activeElement;d&&d.nodeName&&(-1===u.indexOf(d.nodeName.toLowerCase())||"button"===d.nodeName.toLowerCase()&&!P(d,"form"))&&(O("intent",r=o),w("intent"))}},w=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),j(e)},b=function(t){var e=s[t.type];"pointer"===e&&(e=S(t)),A(t),(!l&&!L(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(O("intent",r=e),w("intent"))},x=function(n){n.target.nodeName?(e=n.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),n.target.classList&&n.target.classList.length&&t.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):E()},E=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},O=function(t,e){if(i)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},S=function(t){return"number"==typeof t.pointerType?p[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},L=function(t){var e=Date.now(),r="mouse"===t&&"touch"===n&&e-o<200;return o=e,r},k=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},j=function(t){for(var e=0,o=a.length;e<o;e++)a[e].type===t&&a[e].fn.call(void 0,"input"===t?n:r)},A=function(t){d.x!==t.screenX||d.y!==t.screenY?(l=!1,d.x=t.screenX,d.y=t.screenY):l=!0},P=function(t,e){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return t.closest(e);do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(s[k()]="mouse",g()),{ask:function(t){return"intent"===t?r:n},element:function(){return e},ignoreKeys:function(t){c=t},specificKeys:function(t){f=t},registerOnChange:function(t,e){a.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,n=a.length;e<n;e++)if(a[e].fn===t)return e}(t);(e||0===e)&&a.splice(e,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},t.exports=n()}(av);var cv=av.exports;!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),u=new A(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=L(u,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=s(t,e,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,u),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function g(){}function y(){}function m(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(P([])));x&&x!==n&&r.call(x,i)&&(w=x);var E=m.prototype=g.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,u,a){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,a)}))}a(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function L(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return u.next=u}}return{next:R}}function R(){return{value:e,done:!0}}return y.prototype=m,c(E,"constructor",m),c(m,"constructor",y),y.displayName=c(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,a,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},O(S.prototype),c(S.prototype,u,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new S(f(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},O(E),c(E,a,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=r.call(u,"catchLoc"),f=r.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var fv=Nr,sv=i,lv=a,dv=Yr,pv=$,hv=Tt,vv=Vn,gv=Hu,yv=di,mv=ls,wv=Q,bv=qt("isConcatSpreadable"),xv=9007199254740991,Ev="Maximum allowed index exceeded",Ov=sv.TypeError,Sv=wv>=51||!lv((function(){var t=[];return t[bv]=!1,t.concat()[0]!==t})),Lv=mv("concat"),kv=function(t){if(!pv(t))return!1;var e=t[bv];return void 0!==e?!!e:dv(t)};fv({target:"Array",proto:!0,forced:!Sv||!Lv},{concat:function(t){var e,n,r,o,i,u=hv(this),a=yv(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(kv(i=-1===e?u:arguments[e])){if(c+(o=vv(i))>xv)throw Ov(Ev);for(n=0;n<o;n++,c++)n in i&&gv(a,c,i[n])}else{if(c>=xv)throw Ov(Ev);gv(a,c++,i)}return a.length=c,a}});var jv,Av,Pv,Rv,Tv,Cv,Iv,_v,Mv="Mac|iPad|iPhone|iPod",Nv="Linux";"undefined"!=typeof navigator&&/edge/i.test(null===(jv=navigator)||void 0===jv?void 0:jv.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(Av=navigator)||void 0===Av?void 0:Av.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(Pv=navigator)||void 0===Pv?void 0:Pv.userAgent)&&/chrome/i.test(null===(Rv=navigator)||void 0===Rv?void 0:Rv.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(Tv=navigator)||void 0===Tv?void 0:Tv.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(Cv=navigator)||void 0===Cv?void 0:Cv.userAgent),"undefined"!=typeof navigator&&new RegExp(Mv,"i").test(null===(Iv=navigator)||void 0===Iv?void 0:Iv.platform),"undefined"!=typeof navigator&&new RegExp(Nv,"i").test(null===(_v=navigator)||void 0===_v?void 0:_v.platform);function Fv(){var t=function t(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof navigator){try{"undefined"!=typeof window&&window.IS_TEST?document.documentElement.setAttribute("data-os","other"):null!==navigator.platform.match(new RegExp(Mv))?document.documentElement.setAttribute("data-os","mac"):null!==navigator.platform.match(new RegExp("Win"))?document.documentElement.setAttribute("data-os","win"):null!==navigator.platform.match(new RegExp(Nv))&&document.documentElement.setAttribute("data-os","linux")}catch(t){}document.removeEventListener("DOMContentLoaded",t)}};"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}!function(){if("undefined"!=typeof window){var t=function(){function t(){Qu(this,t)}return ta(t,[{key:"version",get:function(){return"9.33.0"}}]),t}();window.Eufemia=new t}}(),cv.specificKeys([9]),Fv(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qu(this,t),ea(this,"checkOutsideClick",(function(t){var e=t.event,n=t.ignoreElements,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var o=e.target;if("HTML"===(null==o?void 0:o.tagName)&&(e.pageX>document.documentElement.clientWidth-40||e.pageY>document.documentElement.clientHeight-40))return;if(Dv(o))return;for(var i,u=0,a=n.length;u<a;++u)if(i=o,n[u])do{if(i===n[u])return;i=i&&i.parentNode}while(i);"function"==typeof r&&r()}catch(t){}})),this.handleClickOutside||"undefined"==typeof document||"undefined"==typeof window||(Array.isArray(e)||(e=[e]),this.handleClickOutside=function(t){r.checkOutsideClick({event:t,ignoreElements:e},(function(){return"function"==typeof n&&n({event:t})}))},document.addEventListener("mousedown",this.handleClickOutside),this.keydownCallback=function(t){"esc"===uv(t)&&(window.removeEventListener("keydown",r.keydownCallback),"function"==typeof n&&n({event:t}))},window.addEventListener("keydown",this.keydownCallback),o.includedKeys&&(this.keyupCallback=function(t){var e=uv(t);o.includedKeys.includes(e)&&"function"==typeof r.handleClickOutside&&r.handleClickOutside(t,(function(){r.keyupCallback&&window.removeEventListener("keyup",r.keyupCallback)}))},window.addEventListener("keyup",this.keyupCallback)))}ta(t,[{key:"remove",value:function(){this.handleClickOutside&&"undefined"!=typeof document&&(document.removeEventListener("mousedown",this.handleClickOutside),this.handleClickOutside=null),this.keydownCallback&&"undefined"!=typeof window&&(window.removeEventListener("keydown",this.keydownCallback),this.keydownCallback=null),this.keyupCallback&&"undefined"!=typeof window&&(window.removeEventListener("keyup",this.keyupCallback),this.keyupCallback=null)}}])}();var Dv=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&Gv(t)},Gv=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};t.defineNavigator=Fv,t.isTouchDevice=function(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
12
|
+
!function(t,e){var n;n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=t,n.c=e,n.p="",n(0)}([function(t,e){t.exports=function(){if("undefined"==typeof document||"undefined"==typeof window)return{ask:function(){return"initial"},element:function(){return null},ignoreKeys:function(){},specificKeys:function(){},registerOnChange:function(){},unRegisterOnChange:function(){}};var t=document.documentElement,e=null,n="initial",r=n,o=Date.now(),i="false",u=["button","input","select","textarea"],a=[],c=[16,17,18,91,93],f=[],s={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch",touchend:"touch"},l=!1,d={x:null,y:null},p={2:"touch",3:"touch",4:"mouse"},h=!1;try{var v=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,v)}catch(t){}var g=function(){var t=!!h&&{passive:!0};document.addEventListener("DOMContentLoaded",y),window.PointerEvent?(window.addEventListener("pointerdown",m),window.addEventListener("pointermove",b)):window.MSPointerEvent?(window.addEventListener("MSPointerDown",m),window.addEventListener("MSPointerMove",b)):(window.addEventListener("mousedown",m),window.addEventListener("mousemove",b),"ontouchstart"in window&&(window.addEventListener("touchstart",m,t),window.addEventListener("touchend",m))),window.addEventListener(k(),b,t),window.addEventListener("keydown",m),window.addEventListener("keyup",m),window.addEventListener("focusin",x),window.addEventListener("focusout",E)},y=function(){if(i=!(t.getAttribute("data-whatpersist")||"false"===document.body.getAttribute("data-whatpersist")))try{window.sessionStorage.getItem("what-input")&&(n=window.sessionStorage.getItem("what-input")),window.sessionStorage.getItem("what-intent")&&(r=window.sessionStorage.getItem("what-intent"))}catch(t){}w("input"),w("intent")},m=function(t){var e=t.which,o=s[t.type];"pointer"===o&&(o=S(t));var i=!f.length&&-1===c.indexOf(e),a=f.length&&-1!==f.indexOf(e),l="keyboard"===o&&e&&(i||a)||"mouse"===o||"touch"===o;if(L(o)&&(l=!1),l&&n!==o&&(O("input",n=o),w("input")),l&&r!==o){var d=document.activeElement;d&&d.nodeName&&(-1===u.indexOf(d.nodeName.toLowerCase())||"button"===d.nodeName.toLowerCase()&&!P(d,"form"))&&(O("intent",r=o),w("intent"))}},w=function(e){t.setAttribute("data-what"+e,"input"===e?n:r),j(e)},b=function(t){var e=s[t.type];"pointer"===e&&(e=S(t)),A(t),(!l&&!L(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(O("intent",r=e),w("intent"))},x=function(n){n.target.nodeName?(e=n.target.nodeName.toLowerCase(),t.setAttribute("data-whatelement",e),n.target.classList&&n.target.classList.length&&t.setAttribute("data-whatclasses",n.target.classList.toString().replace(" ",","))):E()},E=function(){e=null,t.removeAttribute("data-whatelement"),t.removeAttribute("data-whatclasses")},O=function(t,e){if(i)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},S=function(t){return"number"==typeof t.pointerType?p[t.pointerType]:"pen"===t.pointerType?"touch":t.pointerType},L=function(t){var e=Date.now(),r="mouse"===t&&"touch"===n&&e-o<200;return o=e,r},k=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"},j=function(t){for(var e=0,o=a.length;e<o;e++)a[e].type===t&&a[e].fn.call(void 0,"input"===t?n:r)},A=function(t){d.x!==t.screenX||d.y!==t.screenY?(l=!1,d.x=t.screenX,d.y=t.screenY):l=!0},P=function(t,e){var n=window.Element.prototype;if(n.matches||(n.matches=n.msMatchesSelector||n.webkitMatchesSelector),n.closest)return t.closest(e);do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null};return"addEventListener"in window&&Array.prototype.indexOf&&(s[k()]="mouse",g()),{ask:function(t){return"intent"===t?r:n},element:function(){return e},ignoreKeys:function(t){c=t},specificKeys:function(t){f=t},registerOnChange:function(t,e){a.push({fn:t,type:e||"input"})},unRegisterOnChange:function(t){var e=function(t){for(var e=0,n=a.length;e<n;e++)if(a[e].fn===t)return e}(t);(e||0===e)&&a.splice(e,1)},clearStorage:function(){window.sessionStorage.clear()}}}()}])},t.exports=n()}(av);var cv=av.exports;!function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var o=e&&e.prototype instanceof g?e:g,i=Object.create(o.prototype),u=new A(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var a=L(u,n);if(a){if(a===v)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=s(t,e,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(t,n,u),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function g(){}function y(){}function m(){}var w={};c(w,i,(function(){return this}));var b=Object.getPrototypeOf,x=b&&b(b(P([])));x&&x!==n&&r.call(x,i)&&(w=x);var E=m.prototype=g.prototype=Object.create(w);function O(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(o,i,u,a){var c=s(t[o],t,i);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"==typeof l&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,u,a)}),(function(t){n("throw",t,u,a)})):e.resolve(l).then((function(t){f.value=t,u(f)}),(function(t){return n("throw",t,u,a)}))}a(c.arg)}var o;this._invoke=function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}}function L(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,L(t,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=s(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,v;var i=o.arg;return i?i.done?(n[t.resultName]=i.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,v):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function P(t){if(t){var n=t[i];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,u=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return u.next=u}}return{next:R}}function R(){return{value:e,done:!0}}return y.prototype=m,c(E,"constructor",m),c(m,"constructor",y),y.displayName=c(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,a,"GeneratorFunction")),t.prototype=Object.create(E),t},t.awrap=function(t){return{__await:t}},O(S.prototype),c(S.prototype,u,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new S(f(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},O(E),c(E,a,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=P,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(j),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return a.type="throw",a.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],a=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var c=r.call(u,"catchLoc"),f=r.call(u,"finallyLoc");if(c&&f){if(this.prev<u.catchLoc)return o(u.catchLoc,!0);if(this.prev<u.finallyLoc)return o(u.finallyLoc)}else if(c){if(this.prev<u.catchLoc)return o(u.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return o(u.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var u=i?i.completion:{};return u.type=t,u.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(u)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:P(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var fv=Nr,sv=i,lv=a,dv=Yr,pv=$,hv=Tt,vv=Vn,gv=Hu,yv=di,mv=ls,wv=Q,bv=qt("isConcatSpreadable"),xv=9007199254740991,Ev="Maximum allowed index exceeded",Ov=sv.TypeError,Sv=wv>=51||!lv((function(){var t=[];return t[bv]=!1,t.concat()[0]!==t})),Lv=mv("concat"),kv=function(t){if(!pv(t))return!1;var e=t[bv];return void 0!==e?!!e:dv(t)};fv({target:"Array",proto:!0,forced:!Sv||!Lv},{concat:function(t){var e,n,r,o,i,u=hv(this),a=yv(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(kv(i=-1===e?u:arguments[e])){if(c+(o=vv(i))>xv)throw Ov(Ev);for(n=0;n<o;n++,c++)n in i&&gv(a,c,i[n])}else{if(c>=xv)throw Ov(Ev);gv(a,c++,i)}return a.length=c,a}});var jv,Av,Pv,Rv,Tv,Cv,Iv,_v,Mv="Mac|iPad|iPhone|iPod",Nv="Linux";"undefined"!=typeof navigator&&/edge/i.test(null===(jv=navigator)||void 0===jv?void 0:jv.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(Av=navigator)||void 0===Av?void 0:Av.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(Pv=navigator)||void 0===Pv?void 0:Pv.userAgent)&&/chrome/i.test(null===(Rv=navigator)||void 0===Rv?void 0:Rv.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(Tv=navigator)||void 0===Tv?void 0:Tv.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(Cv=navigator)||void 0===Cv?void 0:Cv.userAgent),"undefined"!=typeof navigator&&new RegExp(Mv,"i").test(null===(Iv=navigator)||void 0===Iv?void 0:Iv.platform),"undefined"!=typeof navigator&&new RegExp(Nv,"i").test(null===(_v=navigator)||void 0===_v?void 0:_v.platform);function Fv(){var t=function t(){if("undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!=typeof navigator){try{"undefined"!=typeof window&&window.IS_TEST?document.documentElement.setAttribute("data-os","other"):null!==navigator.platform.match(new RegExp(Mv))?document.documentElement.setAttribute("data-os","mac"):null!==navigator.platform.match(new RegExp("Win"))?document.documentElement.setAttribute("data-os","win"):null!==navigator.platform.match(new RegExp(Nv))&&document.documentElement.setAttribute("data-os","linux")}catch(t){}document.removeEventListener("DOMContentLoaded",t)}};"undefined"!=typeof document&&"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()}!function(){if("undefined"!=typeof window){var t=function(){function t(){Qu(this,t)}return ta(t,[{key:"version",get:function(){return"9.34.0"}}]),t}();window.Eufemia=new t}}(),cv.specificKeys([9]),Fv(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Qu(this,t),ea(this,"checkOutsideClick",(function(t){var e=t.event,n=t.ignoreElements,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;try{var o=e.target;if("HTML"===(null==o?void 0:o.tagName)&&(e.pageX>document.documentElement.clientWidth-40||e.pageY>document.documentElement.clientHeight-40))return;if(Dv(o))return;for(var i,u=0,a=n.length;u<a;++u)if(i=o,n[u])do{if(i===n[u])return;i=i&&i.parentNode}while(i);"function"==typeof r&&r()}catch(t){}})),this.handleClickOutside||"undefined"==typeof document||"undefined"==typeof window||(Array.isArray(e)||(e=[e]),this.handleClickOutside=function(t){r.checkOutsideClick({event:t,ignoreElements:e},(function(){return"function"==typeof n&&n({event:t})}))},document.addEventListener("mousedown",this.handleClickOutside),this.keydownCallback=function(t){"esc"===uv(t)&&(window.removeEventListener("keydown",r.keydownCallback),"function"==typeof n&&n({event:t}))},window.addEventListener("keydown",this.keydownCallback),o.includedKeys&&(this.keyupCallback=function(t){var e=uv(t);o.includedKeys.includes(e)&&"function"==typeof r.handleClickOutside&&r.handleClickOutside(t,(function(){r.keyupCallback&&window.removeEventListener("keyup",r.keyupCallback)}))},window.addEventListener("keyup",this.keyupCallback)))}ta(t,[{key:"remove",value:function(){this.handleClickOutside&&"undefined"!=typeof document&&(document.removeEventListener("mousedown",this.handleClickOutside),this.handleClickOutside=null),this.keydownCallback&&"undefined"!=typeof window&&(window.removeEventListener("keydown",this.keydownCallback),this.keydownCallback=null),this.keyupCallback&&"undefined"!=typeof window&&(window.removeEventListener("keyup",this.keyupCallback),this.keyupCallback=null)}}])}();var Dv=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&Gv(t)},Gv=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};t.defineNavigator=Fv,t.isTouchDevice=function(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1},Object.defineProperty(t,"__esModule",{value:!0})}));
|