@dnb/eufemia 9.47.3 → 9.47.5

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 CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to @dnb/eufemia will be documented in this file. See
4
4
  [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.47.5](https://github.com/dnbexperience/eufemia/compare/v9.47.4...v9.47.5) (2023-05-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **InputMasked:** duplicate decimal number when typing ([#2344](https://github.com/dnbexperience/eufemia/issues/2344)) ([0d66dc0](https://github.com/dnbexperience/eufemia/commit/0d66dc06a9dab2eb9d91f93948337dff78f9346b))
12
+
13
+ ## [9.47.4](https://github.com/dnbexperience/eufemia/compare/v9.47.3...v9.47.4) (2023-05-03)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * **InputMasked:** on custom mask – avoid interaction stall after focus ([#2270](https://github.com/dnbexperience/eufemia/issues/2270)) ([2201ea9](https://github.com/dnbexperience/eufemia/commit/2201ea9e2e764e8ff7a98d591d2916fd3cb37814))
19
+
6
20
  ## [9.47.3](https://github.com/dnbexperience/eufemia/compare/v9.47.2...v9.47.3) (2023-03-27)
7
21
 
8
22
 
@@ -429,7 +429,7 @@ var useCallEvent = function useCallEvent(_ref2) {
429
429
  var cleaned_value = cleanedValue;
430
430
 
431
431
  if (name === 'on_change' && numberValue === 0) {
432
- (0, _InputMaskedUtils.correctCaretPosition)(event.target, maskParams);
432
+ (0, _InputMaskedUtils.correctCaretPosition)(event.target, maskParams, props);
433
433
  }
434
434
 
435
435
  var result = (0, _componentHelper.dispatchCustomElementEvent)(props, name, {
@@ -445,7 +445,7 @@ var useCallEvent = function useCallEvent(_ref2) {
445
445
  }
446
446
 
447
447
  if ((name === 'on_focus' || name === 'on_mouse_up') && !props.selectall) {
448
- (0, _InputMaskedUtils.correctCaretPosition)(event.target, maskParams);
448
+ (0, _InputMaskedUtils.correctCaretPosition)(event.target, maskParams, props);
449
449
  }
450
450
 
451
451
  return result;
@@ -31,7 +31,7 @@ export const invisibleSpace: "​";
31
31
  export function isRequestingLocaleSupport(props: object): boolean;
32
32
  export function isRequestingNumberMask(props: object): boolean;
33
33
  export function correctNumberValue({ localValue, props, locale, maskParams, }: object): string;
34
- export function correctCaretPosition(element: Element, maskParams: any): void;
34
+ export function correctCaretPosition(element: Element, maskParams: any, props: any): void;
35
35
  export function handlePercentMask({ props, locale, maskParams }: object): any;
36
36
  export function handleCurrencyMask({ mask_options, currency_mask }: object): any;
37
37
  export function handleNumberMask({ mask_options, number_mask }: object): any;
@@ -48,10 +48,12 @@ require("core-js/modules/es.parse-float.js");
48
48
 
49
49
  require("core-js/modules/es.array.index-of.js");
50
50
 
51
- require("core-js/modules/es.array.slice.js");
52
-
53
51
  require("core-js/modules/es.regexp.exec.js");
54
52
 
53
+ require("core-js/modules/es.string.split.js");
54
+
55
+ require("core-js/modules/es.array.slice.js");
56
+
55
57
  require("core-js/modules/es.string.replace.js");
56
58
 
57
59
  require("core-js/modules/es.string.ends-with.js");
@@ -60,6 +62,10 @@ require("core-js/modules/es.array.concat.js");
60
62
 
61
63
  require("core-js/modules/es.string.starts-with.js");
62
64
 
65
+ require("core-js/modules/es.regexp.constructor.js");
66
+
67
+ require("core-js/modules/es.regexp.to-string.js");
68
+
63
69
  require("core-js/modules/es.string.match.js");
64
70
 
65
71
  var _NumberUtils = require("../number-format/NumberUtils");
@@ -133,9 +139,13 @@ var correctNumberValue = function correctNumberValue(_ref5) {
133
139
 
134
140
  if (maskParams.integerLimit && typeof maskParams.integerLimit === 'number') {
135
141
  var limit = maskParams.integerLimit;
136
- var integers = value.slice(0, limit);
137
- var decimals = decimalPos > 0 ? value.slice(decimalPos) : '';
138
- value = integers + decimals;
142
+ var integers = value.split('.')[0];
143
+ var isNegative = parseFloat(integers) < 0;
144
+
145
+ if (integers.length - (isNegative ? 1 : 0) > limit) {
146
+ var decimals = decimalPos > 0 ? value.slice(decimalPos) : '';
147
+ value = integers.slice(0, limit + (isNegative ? 1 : 0)) + decimals;
148
+ }
139
149
  }
140
150
 
141
151
  var shouldHaveDecimals = maskParams.allowDecimal || maskParams.decimalLimit > 0 && maskParams.allowDecimal !== false;
@@ -190,20 +200,19 @@ var correctNumberValue = function correctNumberValue(_ref5) {
190
200
 
191
201
  exports.correctNumberValue = correctNumberValue;
192
202
 
193
- var correctCaretPosition = function correctCaretPosition(element, maskParams) {
203
+ var correctCaretPosition = function correctCaretPosition(element, maskParams, props) {
194
204
  var correction = function correction() {
195
205
  try {
196
206
  var suffix = maskParams === null || maskParams === void 0 ? void 0 : maskParams.suffix;
197
207
  var prefix = maskParams === null || maskParams === void 0 ? void 0 : maskParams.prefix;
208
+ var start = element.selectionStart;
209
+ var end = element.selectionEnd;
198
210
 
199
- if (suffix || prefix) {
200
- var start = element.selectionStart;
201
- var end = element.selectionEnd;
202
-
203
- if (start !== end) {
204
- return;
205
- }
211
+ if (start !== end) {
212
+ return;
213
+ }
206
214
 
215
+ if (suffix || prefix) {
207
216
  var suffixStart = element.value.indexOf(suffix);
208
217
  var suffixEnd = suffixStart + (suffix === null || suffix === void 0 ? void 0 : suffix.length);
209
218
  var pos = undefined;
@@ -232,6 +241,28 @@ var correctCaretPosition = function correctCaretPosition(element, maskParams) {
232
241
  if (!isNaN(parseFloat(pos))) {
233
242
  (0, _createTextMaskInputElement.safeSetSelection)(element, pos);
234
243
  }
244
+ } else if (props !== null && props !== void 0 && props.mask && element.value.length === end) {
245
+ var chars = element.value.split('');
246
+
247
+ for (var l = chars.length, i = l - 1; i >= 0; i--) {
248
+ var _char = chars[i];
249
+ var mask = props.mask[i];
250
+
251
+ if (_char && _char !== invisibleSpace && mask instanceof RegExp && mask.test(_char)) {
252
+ for (var n = i + 1; n < l; n++) {
253
+ var _mask$test;
254
+
255
+ var _mask = props.mask[n];
256
+
257
+ if ((_mask === null || _mask === void 0 ? void 0 : (_mask$test = _mask.test) === null || _mask$test === void 0 ? void 0 : _mask$test.call(_mask, _mask)) === false) {
258
+ (0, _createTextMaskInputElement.safeSetSelection)(element, n);
259
+ break;
260
+ }
261
+ }
262
+
263
+ break;
264
+ }
265
+ }
235
266
  }
236
267
  } catch (e) {
237
268
  (0, _componentHelper.warn)(e);
@@ -21,7 +21,7 @@ function init() {
21
21
  _createClass(Eufemia, [{
22
22
  key: "version",
23
23
  get: function get() {
24
- return '9.47.3';
24
+ return '9.47.5';
25
25
  }
26
26
  }]);
27
27
 
@@ -336,7 +336,7 @@ var useCallEvent = function useCallEvent(_ref2) {
336
336
  var cleaned_value = cleanedValue;
337
337
 
338
338
  if (name === 'on_change' && numberValue === 0) {
339
- correctCaretPosition(event.target, maskParams);
339
+ correctCaretPosition(event.target, maskParams, props);
340
340
  }
341
341
 
342
342
  var result = dispatchCustomElementEvent(props, name, {
@@ -352,7 +352,7 @@ var useCallEvent = function useCallEvent(_ref2) {
352
352
  }
353
353
 
354
354
  if ((name === 'on_focus' || name === 'on_mouse_up') && !props.selectall) {
355
- correctCaretPosition(event.target, maskParams);
355
+ correctCaretPosition(event.target, maskParams, props);
356
356
  }
357
357
 
358
358
  return result;
@@ -31,7 +31,7 @@ export const invisibleSpace: "​";
31
31
  export function isRequestingLocaleSupport(props: object): boolean;
32
32
  export function isRequestingNumberMask(props: object): boolean;
33
33
  export function correctNumberValue({ localValue, props, locale, maskParams, }: object): string;
34
- export function correctCaretPosition(element: Element, maskParams: any): void;
34
+ export function correctCaretPosition(element: Element, maskParams: any, props: any): void;
35
35
  export function handlePercentMask({ props, locale, maskParams }: object): any;
36
36
  export function handleCurrencyMask({ mask_options, currency_mask }: object): any;
37
37
  export function handleNumberMask({ mask_options, number_mask }: object): any;
@@ -16,12 +16,15 @@ import "core-js/modules/es.object.entries.js";
16
16
  import "core-js/modules/es.array.includes.js";
17
17
  import "core-js/modules/es.parse-float.js";
18
18
  import "core-js/modules/es.array.index-of.js";
19
- import "core-js/modules/es.array.slice.js";
20
19
  import "core-js/modules/es.regexp.exec.js";
20
+ import "core-js/modules/es.string.split.js";
21
+ import "core-js/modules/es.array.slice.js";
21
22
  import "core-js/modules/es.string.replace.js";
22
23
  import "core-js/modules/es.string.ends-with.js";
23
24
  import "core-js/modules/es.array.concat.js";
24
25
  import "core-js/modules/es.string.starts-with.js";
26
+ import "core-js/modules/es.regexp.constructor.js";
27
+ import "core-js/modules/es.regexp.to-string.js";
25
28
  import "core-js/modules/es.string.match.js";
26
29
  import { format, getDecimalSeparator, getThousandsSeparator } from '../number-format/NumberUtils';
27
30
  import { warn } from '../../shared/component-helper';
@@ -64,9 +67,13 @@ export var correctNumberValue = function correctNumberValue(_ref5) {
64
67
 
65
68
  if (maskParams.integerLimit && typeof maskParams.integerLimit === 'number') {
66
69
  var limit = maskParams.integerLimit;
67
- var integers = value.slice(0, limit);
68
- var decimals = decimalPos > 0 ? value.slice(decimalPos) : '';
69
- value = integers + decimals;
70
+ var integers = value.split('.')[0];
71
+ var isNegative = parseFloat(integers) < 0;
72
+
73
+ if (integers.length - (isNegative ? 1 : 0) > limit) {
74
+ var decimals = decimalPos > 0 ? value.slice(decimalPos) : '';
75
+ value = integers.slice(0, limit + (isNegative ? 1 : 0)) + decimals;
76
+ }
70
77
  }
71
78
 
72
79
  var shouldHaveDecimals = maskParams.allowDecimal || maskParams.decimalLimit > 0 && maskParams.allowDecimal !== false;
@@ -118,20 +125,19 @@ export var correctNumberValue = function correctNumberValue(_ref5) {
118
125
 
119
126
  return value;
120
127
  };
121
- export var correctCaretPosition = function correctCaretPosition(element, maskParams) {
128
+ export var correctCaretPosition = function correctCaretPosition(element, maskParams, props) {
122
129
  var correction = function correction() {
123
130
  try {
124
131
  var suffix = maskParams === null || maskParams === void 0 ? void 0 : maskParams.suffix;
125
132
  var prefix = maskParams === null || maskParams === void 0 ? void 0 : maskParams.prefix;
133
+ var start = element.selectionStart;
134
+ var end = element.selectionEnd;
126
135
 
127
- if (suffix || prefix) {
128
- var start = element.selectionStart;
129
- var end = element.selectionEnd;
130
-
131
- if (start !== end) {
132
- return;
133
- }
136
+ if (start !== end) {
137
+ return;
138
+ }
134
139
 
140
+ if (suffix || prefix) {
135
141
  var suffixStart = element.value.indexOf(suffix);
136
142
  var suffixEnd = suffixStart + (suffix === null || suffix === void 0 ? void 0 : suffix.length);
137
143
  var pos = undefined;
@@ -160,6 +166,28 @@ export var correctCaretPosition = function correctCaretPosition(element, maskPar
160
166
  if (!isNaN(parseFloat(pos))) {
161
167
  safeSetSelection(element, pos);
162
168
  }
169
+ } else if (props !== null && props !== void 0 && props.mask && element.value.length === end) {
170
+ var chars = element.value.split('');
171
+
172
+ for (var l = chars.length, i = l - 1; i >= 0; i--) {
173
+ var _char = chars[i];
174
+ var mask = props.mask[i];
175
+
176
+ if (_char && _char !== invisibleSpace && mask instanceof RegExp && mask.test(_char)) {
177
+ for (var n = i + 1; n < l; n++) {
178
+ var _mask$test;
179
+
180
+ var _mask = props.mask[n];
181
+
182
+ if ((_mask === null || _mask === void 0 ? void 0 : (_mask$test = _mask.test) === null || _mask$test === void 0 ? void 0 : _mask$test.call(_mask, _mask)) === false) {
183
+ safeSetSelection(element, n);
184
+ break;
185
+ }
186
+ }
187
+
188
+ break;
189
+ }
190
+ }
163
191
  }
164
192
  } catch (e) {
165
193
  warn(e);
@@ -308,7 +308,7 @@ const useCallEvent = ({
308
308
  const cleaned_value = cleanedValue;
309
309
 
310
310
  if (name === 'on_change' && numberValue === 0) {
311
- correctCaretPosition(event.target, maskParams);
311
+ correctCaretPosition(event.target, maskParams, props);
312
312
  }
313
313
 
314
314
  const result = dispatchCustomElementEvent(props, name, {
@@ -324,7 +324,7 @@ const useCallEvent = ({
324
324
  }
325
325
 
326
326
  if ((name === 'on_focus' || name === 'on_mouse_up') && !props.selectall) {
327
- correctCaretPosition(event.target, maskParams);
327
+ correctCaretPosition(event.target, maskParams, props);
328
328
  }
329
329
 
330
330
  return result;
@@ -31,7 +31,7 @@ export const invisibleSpace: "​";
31
31
  export function isRequestingLocaleSupport(props: object): boolean;
32
32
  export function isRequestingNumberMask(props: object): boolean;
33
33
  export function correctNumberValue({ localValue, props, locale, maskParams, }: object): string;
34
- export function correctCaretPosition(element: Element, maskParams: any): void;
34
+ export function correctCaretPosition(element: Element, maskParams: any, props: any): void;
35
35
  export function handlePercentMask({ props, locale, maskParams }: object): any;
36
36
  export function handleCurrencyMask({ mask_options, currency_mask }: object): any;
37
37
  export function handleNumberMask({ mask_options, number_mask }: object): any;
@@ -33,9 +33,13 @@ export const correctNumberValue = ({
33
33
 
34
34
  if (maskParams.integerLimit && typeof maskParams.integerLimit === 'number') {
35
35
  const limit = maskParams.integerLimit;
36
- const integers = value.slice(0, limit);
37
- const decimals = decimalPos > 0 ? value.slice(decimalPos) : '';
38
- value = integers + decimals;
36
+ const integers = value.split('.')[0];
37
+ const isNegative = parseFloat(integers) < 0;
38
+
39
+ if (integers.length - (isNegative ? 1 : 0) > limit) {
40
+ const decimals = decimalPos > 0 ? value.slice(decimalPos) : '';
41
+ value = integers.slice(0, limit + (isNegative ? 1 : 0)) + decimals;
42
+ }
39
43
  }
40
44
 
41
45
  const shouldHaveDecimals = maskParams.allowDecimal || maskParams.decimalLimit > 0 && maskParams.allowDecimal !== false;
@@ -87,20 +91,19 @@ export const correctNumberValue = ({
87
91
 
88
92
  return value;
89
93
  };
90
- export const correctCaretPosition = (element, maskParams) => {
94
+ export const correctCaretPosition = (element, maskParams, props) => {
91
95
  const correction = () => {
92
96
  try {
93
97
  const suffix = maskParams === null || maskParams === void 0 ? void 0 : maskParams.suffix;
94
98
  const prefix = maskParams === null || maskParams === void 0 ? void 0 : maskParams.prefix;
99
+ const start = element.selectionStart;
100
+ const end = element.selectionEnd;
95
101
 
96
- if (suffix || prefix) {
97
- const start = element.selectionStart;
98
- const end = element.selectionEnd;
99
-
100
- if (start !== end) {
101
- return;
102
- }
102
+ if (start !== end) {
103
+ return;
104
+ }
103
105
 
106
+ if (suffix || prefix) {
104
107
  const suffixStart = element.value.indexOf(suffix);
105
108
  const suffixEnd = suffixStart + (suffix === null || suffix === void 0 ? void 0 : suffix.length);
106
109
  let pos = undefined;
@@ -129,6 +132,28 @@ export const correctCaretPosition = (element, maskParams) => {
129
132
  if (!isNaN(parseFloat(pos))) {
130
133
  safeSetSelection(element, pos);
131
134
  }
135
+ } else if (props !== null && props !== void 0 && props.mask && element.value.length === end) {
136
+ const chars = element.value.split('');
137
+
138
+ for (let l = chars.length, i = l - 1; i >= 0; i--) {
139
+ const char = chars[i];
140
+ const mask = props.mask[i];
141
+
142
+ if (char && char !== invisibleSpace && mask instanceof RegExp && mask.test(char)) {
143
+ for (let n = i + 1; n < l; n++) {
144
+ var _mask$test;
145
+
146
+ const mask = props.mask[n];
147
+
148
+ if ((mask === null || mask === void 0 ? void 0 : (_mask$test = mask.test) === null || _mask$test === void 0 ? void 0 : _mask$test.call(mask, mask)) === false) {
149
+ safeSetSelection(element, n);
150
+ break;
151
+ }
152
+ }
153
+
154
+ break;
155
+ }
156
+ }
132
157
  }
133
158
  } catch (e) {
134
159
  warn(e);
@@ -2,7 +2,7 @@ export function init() {
2
2
  if (typeof window !== 'undefined') {
3
3
  class Eufemia {
4
4
  get version() {
5
- return '9.47.3';
5
+ return '9.47.5';
6
6
  }
7
7
 
8
8
  }
@@ -2,4 +2,4 @@ import"react";var t="undefined"!=typeof global?global:"undefined"!=typeof self?s
2
2
  /*!
3
3
  * Programatically add the following
4
4
  */
5
- for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var u=e.names=e.title={};for(i in r)u[r[i]]=i;for(var a in o)r[a]=o[a]}(Qv,Qv.exports);var Zv,ty=Qv.exports,ey={exports:{}};Zv=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 y=function(){var t=!!h&&{passive:!0};document.addEventListener("DOMContentLoaded",g),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)},g=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=O(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&&(S("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"))&&(S("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=O(t)),A(t),(!l&&!L(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(S("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")},S=function(t,e){if(i)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},O=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",y()),{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()}}}()}])};var ny=ey.exports=Zv();!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 y?e:y,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 C()}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 y(){}function g(){}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=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(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:C}}function C(){return{value:e,done:!0}}return g.prototype=m,c(E,"constructor",m),c(m,"constructor",g),g.displayName=c(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"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}},S(O.prototype),c(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new O(f(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},S(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 ry=TypeError,oy=zr,iy=u,uy=di,ay=H,cy=Ft,fy=nr,sy=function(t){if(t>9007199254740991)throw ry("Maximum allowed index exceeded");return t},ly=Io,dy=Ti,py=fl,hy=ot,vy=ee("isConcatSpreadable"),yy=hy>=51||!iy((function(){var t=[];return t[vy]=!1,t.concat()[0]!==t})),gy=py("concat"),my=function(t){if(!ay(t))return!1;var e=t[vy];return void 0!==e?!!e:uy(t)};oy({target:"Array",proto:!0,arity:1,forced:!yy||!gy},{concat:function(t){var e,n,r,o,i,u=cy(this),a=dy(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(my(i=-1===e?u:arguments[e]))for(o=fy(i),sy(c+o),n=0;n<o;n++,c++)n in i&&ly(a,c,i[n]);else sy(c+1),ly(a,c++,i);return a.length=c,a}});var wy,by,xy,Ey,Sy,Oy,Ly,ky;"undefined"!=typeof navigator&&/edge/i.test(null===(wy=navigator)||void 0===wy?void 0:wy.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(by=navigator)||void 0===by?void 0:by.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(xy=navigator)||void 0===xy?void 0:xy.userAgent)&&/chrome/i.test(null===(Ey=navigator)||void 0===Ey?void 0:Ey.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(Sy=navigator)||void 0===Sy?void 0:Sy.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(Oy=navigator)||void 0===Oy?void 0:Oy.userAgent),"undefined"!=typeof navigator&&new RegExp("Mac|iPad|iPhone|iPod","i").test(null===(Ly=navigator)||void 0===Ly?void 0:Ly.platform),"undefined"!=typeof navigator&&new RegExp("Linux","i").test(null===(ky=navigator)||void 0===ky?void 0:ky.platform);function jy(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1}function Ay(){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("Mac|iPad|iPhone|iPod"))?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("Linux"))&&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(){Ja(this,t)}return Za(t,[{key:"version",get:function(){return"9.47.3"}}]),t}();window.Eufemia=new t}}(),ny.specificKeys([9]),Ay(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ja(this,t),tc(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(Py(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"===ty(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=ty(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)))}Za(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 Py=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&Cy(t)},Cy=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};export{Ay as defineNavigator,jy as isTouchDevice};
5
+ for(i=97;i<123;i++)r[String.fromCharCode(i)]=i-32;for(var i=48;i<58;i++)r[i-48]=i;for(i=1;i<13;i++)r["f"+i]=i+111;for(i=0;i<10;i++)r["numpad "+i]=i+96;var u=e.names=e.title={};for(i in r)u[r[i]]=i;for(var a in o)r[a]=o[a]}(Qv,Qv.exports);var Zv,ty=Qv.exports,ey={exports:{}};Zv=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 y=function(){var t=!!h&&{passive:!0};document.addEventListener("DOMContentLoaded",g),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)},g=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=O(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&&(S("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"))&&(S("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=O(t)),A(t),(!l&&!L(e)||l&&"wheel"===t.type||"mousewheel"===t.type||"DOMMouseScroll"===t.type)&&r!==e&&(S("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")},S=function(t,e){if(i)try{window.sessionStorage.setItem("what-"+t,e)}catch(t){}},O=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",y()),{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()}}}()}])};var ny=ey.exports=Zv();!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 y?e:y,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 C()}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 y(){}function g(){}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=y.prototype=Object.create(w);function S(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(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:C}}function C(){return{value:e,done:!0}}return g.prototype=m,c(E,"constructor",m),c(m,"constructor",g),g.displayName=c(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"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}},S(O.prototype),c(O.prototype,u,(function(){return this})),t.AsyncIterator=O,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var u=new O(f(e,n,r,o),i);return t.isGeneratorFunction(n)?u:u.next().then((function(t){return t.done?t.value:u.next()}))},S(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 ry=TypeError,oy=zr,iy=u,uy=di,ay=H,cy=Ft,fy=nr,sy=function(t){if(t>9007199254740991)throw ry("Maximum allowed index exceeded");return t},ly=Io,dy=Ti,py=fl,hy=ot,vy=ee("isConcatSpreadable"),yy=hy>=51||!iy((function(){var t=[];return t[vy]=!1,t.concat()[0]!==t})),gy=py("concat"),my=function(t){if(!ay(t))return!1;var e=t[vy];return void 0!==e?!!e:uy(t)};oy({target:"Array",proto:!0,arity:1,forced:!yy||!gy},{concat:function(t){var e,n,r,o,i,u=cy(this),a=dy(u,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(my(i=-1===e?u:arguments[e]))for(o=fy(i),sy(c+o),n=0;n<o;n++,c++)n in i&&ly(a,c,i[n]);else sy(c+1),ly(a,c++,i);return a.length=c,a}});var wy,by,xy,Ey,Sy,Oy,Ly,ky;"undefined"!=typeof navigator&&/edge/i.test(null===(wy=navigator)||void 0===wy?void 0:wy.userAgent),"undefined"!=typeof navigator&&new RegExp("iOS|iPhone|iPad|iPod","i").test(null===(by=navigator)||void 0===by?void 0:by.platform),"undefined"!=typeof navigator&&/safari/i.test(null===(xy=navigator)||void 0===xy?void 0:xy.userAgent)&&/chrome/i.test(null===(Ey=navigator)||void 0===Ey?void 0:Ey.userAgent),"undefined"!=typeof navigator&&new RegExp("Win","i").test(null===(Sy=navigator)||void 0===Sy?void 0:Sy.platform),"undefined"!=typeof navigator&&new RegExp("Android","i").test(null===(Oy=navigator)||void 0===Oy?void 0:Oy.userAgent),"undefined"!=typeof navigator&&new RegExp("Mac|iPad|iPhone|iPod","i").test(null===(Ly=navigator)||void 0===Ly?void 0:Ly.platform),"undefined"!=typeof navigator&&new RegExp("Linux","i").test(null===(ky=navigator)||void 0===ky?void 0:ky.platform);function jy(){if("undefined"!=typeof document){var t=!1;try{t=document.documentElement.getAttribute("data-whatintent")}catch(t){}return"touch"===t}return!1}function Ay(){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("Mac|iPad|iPhone|iPod"))?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("Linux"))&&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(){Ja(this,t)}return Za(t,[{key:"version",get:function(){return"9.47.5"}}]),t}();window.Eufemia=new t}}(),ny.specificKeys([9]),Ay(),function(){function t(e,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Ja(this,t),tc(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(Py(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"===ty(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=ty(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)))}Za(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 Py=function(t){return t&&(t.scrollHeight>t.offsetHeight||t.scrollWidth>t.offsetWidth)&&Cy(t)},Cy=function(t){var e="undefined"!=typeof window?window.getComputedStyle(t):{};return/scroll|auto/i.test((e.overflow||"")+(e.overflowX||"")+(e.overflowY||""))};export{Ay as defineNavigator,jy as isTouchDevice};