@moda/om 19.7.1 → 19.8.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/dist/index.cjs.js CHANGED
@@ -23,1003 +23,1074 @@ function _interopNamespaceDefault(e) {
23
23
 
24
24
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
25
25
 
26
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
27
-
28
26
  function getDefaultExportFromCjs (x) {
29
27
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
30
28
  }
31
29
 
32
- (function (module, exports) {
33
- (function (global, factory) {
34
- factory() ;
35
- })(commonjsGlobal, function () {
36
-
37
- /**
38
- * Applies the :focus-visible polyfill at the given scope.
39
- * A scope in this case is either the top-level Document or a Shadow Root.
40
- *
41
- * @param {(Document|ShadowRoot)} scope
42
- * @see https://github.com/WICG/focus-visible
43
- */
44
- function applyFocusVisiblePolyfill(scope) {
45
- var hadKeyboardEvent = true;
46
- var hadFocusVisibleRecently = false;
47
- var hadFocusVisibleRecentlyTimeout = null;
48
- var inputTypesAllowlist = {
49
- text: true,
50
- search: true,
51
- url: true,
52
- tel: true,
53
- email: true,
54
- password: true,
55
- number: true,
56
- date: true,
57
- month: true,
58
- week: true,
59
- time: true,
60
- datetime: true,
61
- 'datetime-local': true
62
- };
30
+ var focusVisible$1 = {exports: {}};
63
31
 
64
- /**
65
- * Helper function for legacy browsers and iframes which sometimes focus
66
- * elements like document, body, and non-interactive SVG.
67
- * @param {Element} el
68
- */
69
- function isValidFocusTarget(el) {
70
- if (el && el !== document && el.nodeName !== 'HTML' && el.nodeName !== 'BODY' && 'classList' in el && 'contains' in el.classList) {
71
- return true;
72
- }
73
- return false;
74
- }
32
+ var focusVisible = focusVisible$1.exports;
33
+ var hasRequiredFocusVisible;
34
+ function requireFocusVisible() {
35
+ if (hasRequiredFocusVisible) return focusVisible$1.exports;
36
+ hasRequiredFocusVisible = 1;
37
+ (function (module, exports) {
38
+ (function (global, factory) {
39
+ factory() ;
40
+ })(focusVisible, function () {
75
41
 
76
42
  /**
77
- * Computes whether the given element should automatically trigger the
78
- * `focus-visible` class being added, i.e. whether it should always match
79
- * `:focus-visible` when focused.
80
- * @param {Element} el
81
- * @return {boolean}
43
+ * Applies the :focus-visible polyfill at the given scope.
44
+ * A scope in this case is either the top-level Document or a Shadow Root.
45
+ *
46
+ * @param {(Document|ShadowRoot)} scope
47
+ * @see https://github.com/WICG/focus-visible
82
48
  */
83
- function focusTriggersKeyboardModality(el) {
84
- var type = el.type;
85
- var tagName = el.tagName;
86
- if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {
87
- return true;
88
- }
89
- if (tagName === 'TEXTAREA' && !el.readOnly) {
90
- return true;
91
- }
92
- if (el.isContentEditable) {
93
- return true;
94
- }
95
- return false;
96
- }
49
+ function applyFocusVisiblePolyfill(scope) {
50
+ var hadKeyboardEvent = true;
51
+ var hadFocusVisibleRecently = false;
52
+ var hadFocusVisibleRecentlyTimeout = null;
53
+ var inputTypesAllowlist = {
54
+ text: true,
55
+ search: true,
56
+ url: true,
57
+ tel: true,
58
+ email: true,
59
+ password: true,
60
+ number: true,
61
+ date: true,
62
+ month: true,
63
+ week: true,
64
+ time: true,
65
+ datetime: true,
66
+ 'datetime-local': true
67
+ };
97
68
 
98
- /**
99
- * Add the `focus-visible` class to the given element if it was not added by
100
- * the author.
101
- * @param {Element} el
102
- */
103
- function addFocusVisibleClass(el) {
104
- if (el.classList.contains('focus-visible')) {
105
- return;
69
+ /**
70
+ * Helper function for legacy browsers and iframes which sometimes focus
71
+ * elements like document, body, and non-interactive SVG.
72
+ * @param {Element} el
73
+ */
74
+ function isValidFocusTarget(el) {
75
+ if (el && el !== document && el.nodeName !== 'HTML' && el.nodeName !== 'BODY' && 'classList' in el && 'contains' in el.classList) {
76
+ return true;
77
+ }
78
+ return false;
106
79
  }
107
- el.classList.add('focus-visible');
108
- el.setAttribute('data-focus-visible-added', '');
109
- }
110
80
 
111
- /**
112
- * Remove the `focus-visible` class from the given element if it was not
113
- * originally added by the author.
114
- * @param {Element} el
115
- */
116
- function removeFocusVisibleClass(el) {
117
- if (!el.hasAttribute('data-focus-visible-added')) {
118
- return;
81
+ /**
82
+ * Computes whether the given element should automatically trigger the
83
+ * `focus-visible` class being added, i.e. whether it should always match
84
+ * `:focus-visible` when focused.
85
+ * @param {Element} el
86
+ * @return {boolean}
87
+ */
88
+ function focusTriggersKeyboardModality(el) {
89
+ var type = el.type;
90
+ var tagName = el.tagName;
91
+ if (tagName === 'INPUT' && inputTypesAllowlist[type] && !el.readOnly) {
92
+ return true;
93
+ }
94
+ if (tagName === 'TEXTAREA' && !el.readOnly) {
95
+ return true;
96
+ }
97
+ if (el.isContentEditable) {
98
+ return true;
99
+ }
100
+ return false;
119
101
  }
120
- el.classList.remove('focus-visible');
121
- el.removeAttribute('data-focus-visible-added');
122
- }
123
102
 
124
- /**
125
- * If the most recent user interaction was via the keyboard;
126
- * and the key press did not include a meta, alt/option, or control key;
127
- * then the modality is keyboard. Otherwise, the modality is not keyboard.
128
- * Apply `focus-visible` to any current active element and keep track
129
- * of our keyboard modality state with `hadKeyboardEvent`.
130
- * @param {KeyboardEvent} e
131
- */
132
- function onKeyDown(e) {
133
- if (e.metaKey || e.altKey || e.ctrlKey) {
134
- return;
135
- }
136
- if (isValidFocusTarget(scope.activeElement)) {
137
- addFocusVisibleClass(scope.activeElement);
103
+ /**
104
+ * Add the `focus-visible` class to the given element if it was not added by
105
+ * the author.
106
+ * @param {Element} el
107
+ */
108
+ function addFocusVisibleClass(el) {
109
+ if (el.classList.contains('focus-visible')) {
110
+ return;
111
+ }
112
+ el.classList.add('focus-visible');
113
+ el.setAttribute('data-focus-visible-added', '');
114
+ }
115
+
116
+ /**
117
+ * Remove the `focus-visible` class from the given element if it was not
118
+ * originally added by the author.
119
+ * @param {Element} el
120
+ */
121
+ function removeFocusVisibleClass(el) {
122
+ if (!el.hasAttribute('data-focus-visible-added')) {
123
+ return;
124
+ }
125
+ el.classList.remove('focus-visible');
126
+ el.removeAttribute('data-focus-visible-added');
127
+ }
128
+
129
+ /**
130
+ * If the most recent user interaction was via the keyboard;
131
+ * and the key press did not include a meta, alt/option, or control key;
132
+ * then the modality is keyboard. Otherwise, the modality is not keyboard.
133
+ * Apply `focus-visible` to any current active element and keep track
134
+ * of our keyboard modality state with `hadKeyboardEvent`.
135
+ * @param {KeyboardEvent} e
136
+ */
137
+ function onKeyDown(e) {
138
+ if (e.metaKey || e.altKey || e.ctrlKey) {
139
+ return;
140
+ }
141
+ if (isValidFocusTarget(scope.activeElement)) {
142
+ addFocusVisibleClass(scope.activeElement);
143
+ }
144
+ hadKeyboardEvent = true;
145
+ }
146
+
147
+ /**
148
+ * If at any point a user clicks with a pointing device, ensure that we change
149
+ * the modality away from keyboard.
150
+ * This avoids the situation where a user presses a key on an already focused
151
+ * element, and then clicks on a different element, focusing it with a
152
+ * pointing device, while we still think we're in keyboard modality.
153
+ * @param {Event} e
154
+ */
155
+ function onPointerDown(e) {
156
+ hadKeyboardEvent = false;
157
+ }
158
+
159
+ /**
160
+ * On `focus`, add the `focus-visible` class to the target if:
161
+ * - the target received focus as a result of keyboard navigation, or
162
+ * - the event target is an element that will likely require interaction
163
+ * via the keyboard (e.g. a text box)
164
+ * @param {Event} e
165
+ */
166
+ function onFocus(e) {
167
+ // Prevent IE from focusing the document or HTML element.
168
+ if (!isValidFocusTarget(e.target)) {
169
+ return;
170
+ }
171
+ if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {
172
+ addFocusVisibleClass(e.target);
173
+ }
138
174
  }
139
- hadKeyboardEvent = true;
140
- }
141
-
142
- /**
143
- * If at any point a user clicks with a pointing device, ensure that we change
144
- * the modality away from keyboard.
145
- * This avoids the situation where a user presses a key on an already focused
146
- * element, and then clicks on a different element, focusing it with a
147
- * pointing device, while we still think we're in keyboard modality.
148
- * @param {Event} e
149
- */
150
- function onPointerDown(e) {
151
- hadKeyboardEvent = false;
152
- }
153
175
 
154
- /**
155
- * On `focus`, add the `focus-visible` class to the target if:
156
- * - the target received focus as a result of keyboard navigation, or
157
- * - the event target is an element that will likely require interaction
158
- * via the keyboard (e.g. a text box)
159
- * @param {Event} e
160
- */
161
- function onFocus(e) {
162
- // Prevent IE from focusing the document or HTML element.
163
- if (!isValidFocusTarget(e.target)) {
164
- return;
165
- }
166
- if (hadKeyboardEvent || focusTriggersKeyboardModality(e.target)) {
167
- addFocusVisibleClass(e.target);
176
+ /**
177
+ * On `blur`, remove the `focus-visible` class from the target.
178
+ * @param {Event} e
179
+ */
180
+ function onBlur(e) {
181
+ if (!isValidFocusTarget(e.target)) {
182
+ return;
183
+ }
184
+ if (e.target.classList.contains('focus-visible') || e.target.hasAttribute('data-focus-visible-added')) {
185
+ // To detect a tab/window switch, we look for a blur event followed
186
+ // rapidly by a visibility change.
187
+ // If we don't see a visibility change within 100ms, it's probably a
188
+ // regular focus change.
189
+ hadFocusVisibleRecently = true;
190
+ window.clearTimeout(hadFocusVisibleRecentlyTimeout);
191
+ hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
192
+ hadFocusVisibleRecently = false;
193
+ }, 100);
194
+ removeFocusVisibleClass(e.target);
195
+ }
168
196
  }
169
- }
170
197
 
171
- /**
172
- * On `blur`, remove the `focus-visible` class from the target.
173
- * @param {Event} e
174
- */
175
- function onBlur(e) {
176
- if (!isValidFocusTarget(e.target)) {
177
- return;
178
- }
179
- if (e.target.classList.contains('focus-visible') || e.target.hasAttribute('data-focus-visible-added')) {
180
- // To detect a tab/window switch, we look for a blur event followed
181
- // rapidly by a visibility change.
182
- // If we don't see a visibility change within 100ms, it's probably a
183
- // regular focus change.
184
- hadFocusVisibleRecently = true;
185
- window.clearTimeout(hadFocusVisibleRecentlyTimeout);
186
- hadFocusVisibleRecentlyTimeout = window.setTimeout(function () {
187
- hadFocusVisibleRecently = false;
188
- }, 100);
189
- removeFocusVisibleClass(e.target);
198
+ /**
199
+ * If the user changes tabs, keep track of whether or not the previously
200
+ * focused element had .focus-visible.
201
+ * @param {Event} e
202
+ */
203
+ function onVisibilityChange(e) {
204
+ if (document.visibilityState === 'hidden') {
205
+ // If the tab becomes active again, the browser will handle calling focus
206
+ // on the element (Safari actually calls it twice).
207
+ // If this tab change caused a blur on an element with focus-visible,
208
+ // re-apply the class when the user switches back to the tab.
209
+ if (hadFocusVisibleRecently) {
210
+ hadKeyboardEvent = true;
211
+ }
212
+ addInitialPointerMoveListeners();
213
+ }
190
214
  }
191
- }
192
215
 
193
- /**
194
- * If the user changes tabs, keep track of whether or not the previously
195
- * focused element had .focus-visible.
196
- * @param {Event} e
197
- */
198
- function onVisibilityChange(e) {
199
- if (document.visibilityState === 'hidden') {
200
- // If the tab becomes active again, the browser will handle calling focus
201
- // on the element (Safari actually calls it twice).
202
- // If this tab change caused a blur on an element with focus-visible,
203
- // re-apply the class when the user switches back to the tab.
204
- if (hadFocusVisibleRecently) {
205
- hadKeyboardEvent = true;
216
+ /**
217
+ * Add a group of listeners to detect usage of any pointing devices.
218
+ * These listeners will be added when the polyfill first loads, and anytime
219
+ * the window is blurred, so that they are active when the window regains
220
+ * focus.
221
+ */
222
+ function addInitialPointerMoveListeners() {
223
+ document.addEventListener('mousemove', onInitialPointerMove);
224
+ document.addEventListener('mousedown', onInitialPointerMove);
225
+ document.addEventListener('mouseup', onInitialPointerMove);
226
+ document.addEventListener('pointermove', onInitialPointerMove);
227
+ document.addEventListener('pointerdown', onInitialPointerMove);
228
+ document.addEventListener('pointerup', onInitialPointerMove);
229
+ document.addEventListener('touchmove', onInitialPointerMove);
230
+ document.addEventListener('touchstart', onInitialPointerMove);
231
+ document.addEventListener('touchend', onInitialPointerMove);
232
+ }
233
+ function removeInitialPointerMoveListeners() {
234
+ document.removeEventListener('mousemove', onInitialPointerMove);
235
+ document.removeEventListener('mousedown', onInitialPointerMove);
236
+ document.removeEventListener('mouseup', onInitialPointerMove);
237
+ document.removeEventListener('pointermove', onInitialPointerMove);
238
+ document.removeEventListener('pointerdown', onInitialPointerMove);
239
+ document.removeEventListener('pointerup', onInitialPointerMove);
240
+ document.removeEventListener('touchmove', onInitialPointerMove);
241
+ document.removeEventListener('touchstart', onInitialPointerMove);
242
+ document.removeEventListener('touchend', onInitialPointerMove);
243
+ }
244
+
245
+ /**
246
+ * When the polfyill first loads, assume the user is in keyboard modality.
247
+ * If any event is received from a pointing device (e.g. mouse, pointer,
248
+ * touch), turn off keyboard modality.
249
+ * This accounts for situations where focus enters the page from the URL bar.
250
+ * @param {Event} e
251
+ */
252
+ function onInitialPointerMove(e) {
253
+ // Work around a Safari quirk that fires a mousemove on <html> whenever the
254
+ // window blurs, even if you're tabbing out of the page. ¯\_(ツ)_/¯
255
+ if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {
256
+ return;
206
257
  }
207
- addInitialPointerMoveListeners();
258
+ hadKeyboardEvent = false;
259
+ removeInitialPointerMoveListeners();
260
+ }
261
+
262
+ // For some kinds of state, we are interested in changes at the global scope
263
+ // only. For example, global pointer input, global key presses and global
264
+ // visibility change should affect the state at every scope:
265
+ document.addEventListener('keydown', onKeyDown, true);
266
+ document.addEventListener('mousedown', onPointerDown, true);
267
+ document.addEventListener('pointerdown', onPointerDown, true);
268
+ document.addEventListener('touchstart', onPointerDown, true);
269
+ document.addEventListener('visibilitychange', onVisibilityChange, true);
270
+ addInitialPointerMoveListeners();
271
+
272
+ // For focus and blur, we specifically care about state changes in the local
273
+ // scope. This is because focus / blur events that originate from within a
274
+ // shadow root are not re-dispatched from the host element if it was already
275
+ // the active element in its own scope:
276
+ scope.addEventListener('focus', onFocus, true);
277
+ scope.addEventListener('blur', onBlur, true);
278
+
279
+ // We detect that a node is a ShadowRoot by ensuring that it is a
280
+ // DocumentFragment and also has a host property. This check covers native
281
+ // implementation and polyfill implementation transparently. If we only cared
282
+ // about the native implementation, we could just check if the scope was
283
+ // an instance of a ShadowRoot.
284
+ if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {
285
+ // Since a ShadowRoot is a special kind of DocumentFragment, it does not
286
+ // have a root element to add a class to. So, we add this attribute to the
287
+ // host element instead:
288
+ scope.host.setAttribute('data-js-focus-visible', '');
289
+ } else if (scope.nodeType === Node.DOCUMENT_NODE) {
290
+ document.documentElement.classList.add('js-focus-visible');
291
+ document.documentElement.setAttribute('data-js-focus-visible', '');
292
+ }
293
+ }
294
+
295
+ // It is important to wrap all references to global window and document in
296
+ // these checks to support server-side rendering use cases
297
+ // @see https://github.com/WICG/focus-visible/issues/199
298
+ if (typeof window !== 'undefined' && typeof document !== 'undefined') {
299
+ // Make the polyfill helper globally available. This can be used as a signal
300
+ // to interested libraries that wish to coordinate with the polyfill for e.g.,
301
+ // applying the polyfill to a shadow root:
302
+ window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;
303
+
304
+ // Notify interested libraries of the polyfill's presence, in case the
305
+ // polyfill was loaded lazily:
306
+ var event;
307
+ try {
308
+ event = new CustomEvent('focus-visible-polyfill-ready');
309
+ } catch (error) {
310
+ // IE11 does not support using CustomEvent as a constructor directly:
311
+ event = document.createEvent('CustomEvent');
312
+ event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});
208
313
  }
314
+ window.dispatchEvent(event);
209
315
  }
210
-
211
- /**
212
- * Add a group of listeners to detect usage of any pointing devices.
213
- * These listeners will be added when the polyfill first loads, and anytime
214
- * the window is blurred, so that they are active when the window regains
215
- * focus.
216
- */
217
- function addInitialPointerMoveListeners() {
218
- document.addEventListener('mousemove', onInitialPointerMove);
219
- document.addEventListener('mousedown', onInitialPointerMove);
220
- document.addEventListener('mouseup', onInitialPointerMove);
221
- document.addEventListener('pointermove', onInitialPointerMove);
222
- document.addEventListener('pointerdown', onInitialPointerMove);
223
- document.addEventListener('pointerup', onInitialPointerMove);
224
- document.addEventListener('touchmove', onInitialPointerMove);
225
- document.addEventListener('touchstart', onInitialPointerMove);
226
- document.addEventListener('touchend', onInitialPointerMove);
227
- }
228
- function removeInitialPointerMoveListeners() {
229
- document.removeEventListener('mousemove', onInitialPointerMove);
230
- document.removeEventListener('mousedown', onInitialPointerMove);
231
- document.removeEventListener('mouseup', onInitialPointerMove);
232
- document.removeEventListener('pointermove', onInitialPointerMove);
233
- document.removeEventListener('pointerdown', onInitialPointerMove);
234
- document.removeEventListener('pointerup', onInitialPointerMove);
235
- document.removeEventListener('touchmove', onInitialPointerMove);
236
- document.removeEventListener('touchstart', onInitialPointerMove);
237
- document.removeEventListener('touchend', onInitialPointerMove);
316
+ if (typeof document !== 'undefined') {
317
+ // Apply the polyfill to the global document, so that no JavaScript
318
+ // coordination is required to use the polyfill in the top-level document:
319
+ applyFocusVisiblePolyfill(document);
238
320
  }
321
+ });
322
+ })();
323
+ return focusVisible$1.exports;
324
+ }
239
325
 
240
- /**
241
- * When the polfyill first loads, assume the user is in keyboard modality.
242
- * If any event is received from a pointing device (e.g. mouse, pointer,
243
- * touch), turn off keyboard modality.
244
- * This accounts for situations where focus enters the page from the URL bar.
245
- * @param {Event} e
246
- */
247
- function onInitialPointerMove(e) {
248
- // Work around a Safari quirk that fires a mousemove on <html> whenever the
249
- // window blurs, even if you're tabbing out of the page. ¯\_(ツ)_/¯
250
- if (e.target.nodeName && e.target.nodeName.toLowerCase() === 'html') {
251
- return;
252
- }
253
- hadKeyboardEvent = false;
254
- removeInitialPointerMoveListeners();
255
- }
256
-
257
- // For some kinds of state, we are interested in changes at the global scope
258
- // only. For example, global pointer input, global key presses and global
259
- // visibility change should affect the state at every scope:
260
- document.addEventListener('keydown', onKeyDown, true);
261
- document.addEventListener('mousedown', onPointerDown, true);
262
- document.addEventListener('pointerdown', onPointerDown, true);
263
- document.addEventListener('touchstart', onPointerDown, true);
264
- document.addEventListener('visibilitychange', onVisibilityChange, true);
265
- addInitialPointerMoveListeners();
266
-
267
- // For focus and blur, we specifically care about state changes in the local
268
- // scope. This is because focus / blur events that originate from within a
269
- // shadow root are not re-dispatched from the host element if it was already
270
- // the active element in its own scope:
271
- scope.addEventListener('focus', onFocus, true);
272
- scope.addEventListener('blur', onBlur, true);
273
-
274
- // We detect that a node is a ShadowRoot by ensuring that it is a
275
- // DocumentFragment and also has a host property. This check covers native
276
- // implementation and polyfill implementation transparently. If we only cared
277
- // about the native implementation, we could just check if the scope was
278
- // an instance of a ShadowRoot.
279
- if (scope.nodeType === Node.DOCUMENT_FRAGMENT_NODE && scope.host) {
280
- // Since a ShadowRoot is a special kind of DocumentFragment, it does not
281
- // have a root element to add a class to. So, we add this attribute to the
282
- // host element instead:
283
- scope.host.setAttribute('data-js-focus-visible', '');
284
- } else if (scope.nodeType === Node.DOCUMENT_NODE) {
285
- document.documentElement.classList.add('js-focus-visible');
286
- document.documentElement.setAttribute('data-js-focus-visible', '');
287
- }
288
- }
289
-
290
- // It is important to wrap all references to global window and document in
291
- // these checks to support server-side rendering use cases
292
- // @see https://github.com/WICG/focus-visible/issues/199
293
- if (typeof window !== 'undefined' && typeof document !== 'undefined') {
294
- // Make the polyfill helper globally available. This can be used as a signal
295
- // to interested libraries that wish to coordinate with the polyfill for e.g.,
296
- // applying the polyfill to a shadow root:
297
- window.applyFocusVisiblePolyfill = applyFocusVisiblePolyfill;
298
-
299
- // Notify interested libraries of the polyfill's presence, in case the
300
- // polyfill was loaded lazily:
301
- var event;
302
- try {
303
- event = new CustomEvent('focus-visible-polyfill-ready');
304
- } catch (error) {
305
- // IE11 does not support using CustomEvent as a constructor directly:
306
- event = document.createEvent('CustomEvent');
307
- event.initCustomEvent('focus-visible-polyfill-ready', false, false, {});
308
- }
309
- window.dispatchEvent(event);
310
- }
311
- if (typeof document !== 'undefined') {
312
- // Apply the polyfill to the global document, so that no JavaScript
313
- // coordination is required to use the polyfill in the top-level document:
314
- applyFocusVisiblePolyfill(document);
315
- }
316
- });
317
- })();
326
+ requireFocusVisible();
318
327
 
319
328
  var dist$4 = {};
320
329
 
321
330
  var colors = {};
322
331
 
323
- Object.defineProperty(colors, "__esModule", {
324
- value: true
325
- });
326
- colors.colors = void 0;
327
- // THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
328
- colors.colors = {
329
- "all": {
330
- "coal": "rgb(0, 0, 0)",
331
- "ink": "rgb(25, 26, 27)",
332
- "cement": "rgb(101, 101, 102)",
333
- "fog": "rgb(151, 152, 153)",
334
- "elephant": "rgb(202, 203, 204)",
335
- "noise": "rgb(242, 243, 245)",
336
- "snow": "rgb(255, 255, 255)",
337
- "strawberry": "rgb(250, 222, 221)",
338
- "code-red": "rgb(238, 7, 0)",
339
- "mint": "rgb(227, 251, 226)",
340
- "money-good": "rgb(4, 108, 0)",
341
- "fuchsia": "rgb(196, 76, 176)",
342
- "dark-fuchsia": "rgb(180, 60, 160)",
343
- "teal": "rgb(0, 111, 98)",
344
- "ivory": "rgb(242, 233, 219)",
345
- "klein-blue": "rgb(38, 48, 120)",
346
- "persian-blue": "rgb(30, 34, 170)",
347
- "brick": "rgb(147, 58, 32)",
348
- "goldenrod": "rgb(186, 145, 46)",
349
- "seafoam": "rgb(177, 191, 170)",
350
- "coral": "rgb(255, 146, 121)",
351
- "burnt-orange": "rgb(213, 107, 39)",
352
- "lilac": "rgb(215, 179, 208)",
353
- "forest-green": "rgb(0, 55, 40)",
354
- "cream": "rgb(248, 245, 238)",
355
- "cornflower-blue": "rgb(127, 154, 207)",
356
- "moss-green": "rgb(104, 104, 59)",
357
- "blush": "rgb(243, 222, 217)",
358
- "canary": "rgb(240, 246, 89)"
359
- },
360
- "ui": {
361
- "strawberry": "rgb(250, 222, 221)",
362
- "code-red": "rgb(238, 7, 0)",
363
- "mint": "rgb(227, 251, 226)",
364
- "money-good": "rgb(4, 108, 0)",
365
- "fuchsia": "rgb(196, 76, 176)",
366
- "dark-fuchsia": "rgb(180, 60, 160)",
367
- "teal": "rgb(0, 111, 98)",
368
- "ivory": "rgb(242, 233, 219)"
369
- },
370
- "global": {
371
- "klein-blue": "rgb(38, 48, 120)",
372
- "persian-blue": "rgb(30, 34, 170)",
373
- "brick": "rgb(147, 58, 32)",
374
- "goldenrod": "rgb(186, 145, 46)",
375
- "seafoam": "rgb(177, 191, 170)",
376
- "coral": "rgb(255, 146, 121)"
377
- },
378
- "mens": {
379
- "cornflower-blue": "rgb(127, 154, 207)",
380
- "moss-green": "rgb(104, 104, 59)",
381
- "blush": "rgb(243, 222, 217)",
382
- "noise": "rgb(242, 243, 245)",
383
- "canary": "rgb(240, 246, 89)"
384
- },
385
- "womens": {
386
- "burnt-orange": "rgb(213, 107, 39)",
387
- "lilac": "rgb(215, 179, 208)",
388
- "forest-green": "rgb(0, 55, 40)",
389
- "cream": "rgb(248, 245, 238)",
390
- "fuchsia": "rgb(196, 76, 176)",
391
- "dark-fuchsia": "rgb(180, 60, 160)"
392
- },
393
- "greyscale": {
394
- "coal": "rgb(0, 0, 0)",
395
- "ink": "rgb(25, 26, 27)",
396
- "cement": "rgb(101, 101, 102)",
397
- "fog": "rgb(151, 152, 153)",
398
- "elephant": "rgb(202, 203, 204)",
399
- "noise": "rgb(242, 243, 245)",
400
- "snow": "rgb(255, 255, 255)"
401
- }
402
- };
403
-
404
- var typography = {};
405
-
406
- Object.defineProperty(typography, "__esModule", {
407
- value: true
408
- });
409
- typography.typography = void 0;
410
- // THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
411
- typography.typography = {
412
- "fonts": {
413
- "sans": ["Moda Operandi Sans", "Arial", "sans-serif"],
414
- "serif": ["Moda Operandi Serif", "Times New Roman", "Times", "serif"],
415
- "code": ["Menlo", "Monaco", "Consolas", "Courier New", "monospace"]
416
- },
417
- "line-heights": [1.1, 1.2, 1.4, 1.6],
418
- "letter-spacing": [0, "0.02em", "0.04em", "0.1em"],
419
- "font-scale": ["0.75rem", "0.8125rem", "1rem", "1.25rem", "1.5rem", "2rem", "3rem", "3.75rem", "6rem"],
420
- "root-font-size": "16px",
421
- "text-treatments": {
422
- "display": {
423
- "font-size": "6rem",
424
- "line-height": 1.1,
425
- "letter-spacing": 0
426
- },
427
- "h1": {
428
- "font-size": "3.75rem",
429
- "line-height": 1.2,
430
- "letter-spacing": 0
431
- },
432
- "h2": {
433
- "font-size": "3rem",
434
- "line-height": 1.1,
435
- "letter-spacing": 0
436
- },
437
- "h3": {
438
- "font-size": "2rem",
439
- "line-height": 1.2,
440
- "letter-spacing": 0
441
- },
442
- "h4": {
443
- "font-size": "1.5rem",
444
- "line-height": 1.4,
445
- "letter-spacing": 0
332
+ var hasRequiredColors;
333
+ function requireColors() {
334
+ if (hasRequiredColors) return colors;
335
+ hasRequiredColors = 1;
336
+ Object.defineProperty(colors, "__esModule", {
337
+ value: true
338
+ });
339
+ colors.colors = void 0;
340
+ // THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
341
+ colors.colors = {
342
+ "all": {
343
+ "coal": "rgb(0, 0, 0)",
344
+ "ink": "rgb(25, 26, 27)",
345
+ "cement": "rgb(101, 101, 102)",
346
+ "fog": "rgb(151, 152, 153)",
347
+ "elephant": "rgb(202, 203, 204)",
348
+ "noise": "rgb(242, 243, 245)",
349
+ "snow": "rgb(255, 255, 255)",
350
+ "strawberry": "rgb(250, 222, 221)",
351
+ "code-red": "rgb(238, 7, 0)",
352
+ "mint": "rgb(227, 251, 226)",
353
+ "money-good": "rgb(4, 108, 0)",
354
+ "fuchsia": "rgb(196, 76, 176)",
355
+ "dark-fuchsia": "rgb(180, 60, 160)",
356
+ "teal": "rgb(0, 111, 98)",
357
+ "ivory": "rgb(242, 233, 219)",
358
+ "klein-blue": "rgb(38, 48, 120)",
359
+ "persian-blue": "rgb(30, 34, 170)",
360
+ "brick": "rgb(147, 58, 32)",
361
+ "goldenrod": "rgb(186, 145, 46)",
362
+ "seafoam": "rgb(177, 191, 170)",
363
+ "coral": "rgb(255, 146, 121)",
364
+ "burnt-orange": "rgb(213, 107, 39)",
365
+ "lilac": "rgb(215, 179, 208)",
366
+ "forest-green": "rgb(0, 55, 40)",
367
+ "cream": "rgb(248, 245, 238)",
368
+ "cornflower-blue": "rgb(127, 154, 207)",
369
+ "moss-green": "rgb(104, 104, 59)",
370
+ "blush": "rgb(243, 222, 217)",
371
+ "canary": "rgb(240, 246, 89)"
446
372
  },
447
- "h5": {
448
- "font-size": "1.25rem",
449
- "line-height": 1.4,
450
- "letter-spacing": "0.02em"
373
+ "ui": {
374
+ "strawberry": "rgb(250, 222, 221)",
375
+ "code-red": "rgb(238, 7, 0)",
376
+ "mint": "rgb(227, 251, 226)",
377
+ "money-good": "rgb(4, 108, 0)",
378
+ "fuchsia": "rgb(196, 76, 176)",
379
+ "dark-fuchsia": "rgb(180, 60, 160)",
380
+ "teal": "rgb(0, 111, 98)",
381
+ "ivory": "rgb(242, 233, 219)"
451
382
  },
452
- "h6": {
453
- "font-size": "1rem",
454
- "line-height": 1.4,
455
- "letter-spacing": "0.04em"
383
+ "global": {
384
+ "klein-blue": "rgb(38, 48, 120)",
385
+ "persian-blue": "rgb(30, 34, 170)",
386
+ "brick": "rgb(147, 58, 32)",
387
+ "goldenrod": "rgb(186, 145, 46)",
388
+ "seafoam": "rgb(177, 191, 170)",
389
+ "coral": "rgb(255, 146, 121)"
456
390
  },
457
- "body1": {
458
- "font-size": "0.8125rem",
459
- "line-height": 1.6,
460
- "letter-spacing": "0.04em"
391
+ "mens": {
392
+ "cornflower-blue": "rgb(127, 154, 207)",
393
+ "moss-green": "rgb(104, 104, 59)",
394
+ "blush": "rgb(243, 222, 217)",
395
+ "noise": "rgb(242, 243, 245)",
396
+ "canary": "rgb(240, 246, 89)"
461
397
  },
462
- "bold1": {
463
- "font-size": "0.8125rem",
464
- "line-height": 1.6,
465
- "letter-spacing": "0.1em",
466
- "font-weight": "bold"
398
+ "womens": {
399
+ "burnt-orange": "rgb(213, 107, 39)",
400
+ "lilac": "rgb(215, 179, 208)",
401
+ "forest-green": "rgb(0, 55, 40)",
402
+ "cream": "rgb(248, 245, 238)",
403
+ "fuchsia": "rgb(196, 76, 176)",
404
+ "dark-fuchsia": "rgb(180, 60, 160)"
467
405
  },
468
- "body2": {
469
- "font-size": "0.75rem",
470
- "line-height": 1.4,
471
- "letter-spacing": "0.04em"
406
+ "greyscale": {
407
+ "coal": "rgb(0, 0, 0)",
408
+ "ink": "rgb(25, 26, 27)",
409
+ "cement": "rgb(101, 101, 102)",
410
+ "fog": "rgb(151, 152, 153)",
411
+ "elephant": "rgb(202, 203, 204)",
412
+ "noise": "rgb(242, 243, 245)",
413
+ "snow": "rgb(255, 255, 255)"
414
+ }
415
+ };
416
+ return colors;
417
+ }
418
+
419
+ var typography = {};
420
+
421
+ var hasRequiredTypography;
422
+ function requireTypography() {
423
+ if (hasRequiredTypography) return typography;
424
+ hasRequiredTypography = 1;
425
+ Object.defineProperty(typography, "__esModule", {
426
+ value: true
427
+ });
428
+ typography.typography = void 0;
429
+ // THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
430
+ typography.typography = {
431
+ "fonts": {
432
+ "sans": ["Moda Operandi Sans", "Arial", "sans-serif"],
433
+ "serif": ["Moda Operandi Serif", "Times New Roman", "Times", "serif"],
434
+ "code": ["Menlo", "Monaco", "Consolas", "Courier New", "monospace"]
472
435
  },
473
- "eyebrow": {
474
- "font-size": "0.75rem",
475
- "line-height": 1.4,
476
- "letter-spacing": "0.1em",
477
- "text-transform": "uppercase"
436
+ "line-heights": [1.1, 1.2, 1.4, 1.6],
437
+ "letter-spacing": [0, "0.02em", "0.04em", "0.1em"],
438
+ "font-scale": ["0.75rem", "0.8125rem", "1rem", "1.25rem", "1.5rem", "2rem", "3rem", "3.75rem", "6rem"],
439
+ "root-font-size": "16px",
440
+ "text-treatments": {
441
+ "display": {
442
+ "font-size": "6rem",
443
+ "line-height": 1.1,
444
+ "letter-spacing": 0
445
+ },
446
+ "h1": {
447
+ "font-size": "3.75rem",
448
+ "line-height": 1.2,
449
+ "letter-spacing": 0
450
+ },
451
+ "h2": {
452
+ "font-size": "3rem",
453
+ "line-height": 1.1,
454
+ "letter-spacing": 0
455
+ },
456
+ "h3": {
457
+ "font-size": "2rem",
458
+ "line-height": 1.2,
459
+ "letter-spacing": 0
460
+ },
461
+ "h4": {
462
+ "font-size": "1.5rem",
463
+ "line-height": 1.4,
464
+ "letter-spacing": 0
465
+ },
466
+ "h5": {
467
+ "font-size": "1.25rem",
468
+ "line-height": 1.4,
469
+ "letter-spacing": "0.02em"
470
+ },
471
+ "h6": {
472
+ "font-size": "1rem",
473
+ "line-height": 1.4,
474
+ "letter-spacing": "0.04em"
475
+ },
476
+ "body1": {
477
+ "font-size": "0.8125rem",
478
+ "line-height": 1.6,
479
+ "letter-spacing": "0.04em"
480
+ },
481
+ "bold1": {
482
+ "font-size": "0.8125rem",
483
+ "line-height": 1.6,
484
+ "letter-spacing": "0.1em",
485
+ "font-weight": "bold"
486
+ },
487
+ "body2": {
488
+ "font-size": "0.75rem",
489
+ "line-height": 1.4,
490
+ "letter-spacing": "0.04em"
491
+ },
492
+ "eyebrow": {
493
+ "font-size": "0.75rem",
494
+ "line-height": 1.4,
495
+ "letter-spacing": "0.1em",
496
+ "text-transform": "uppercase"
497
+ }
478
498
  }
479
- }
480
- };
499
+ };
500
+ return typography;
501
+ }
481
502
 
482
503
  var space = {};
483
504
 
484
- Object.defineProperty(space, "__esModule", {
485
- value: true
486
- });
487
- space.space = void 0;
488
- // THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
489
- space.space = {
490
- "scale": ["0rem", "0.25rem", "0.5rem", "0.75rem", "1rem", "1.5rem", "2rem", "3rem", "4rem", "6rem", "8rem", "12rem", "24rem"],
491
- "map": {
492
- "0x": "0rem",
493
- "quarter-x": "0.25rem",
494
- "half-x": "0.5rem",
495
- "three-quarter-x": "0.75rem",
496
- "1x": "1rem",
497
- "one-and-a-half-x": "1.5rem",
498
- "2x": "2rem",
499
- "3x": "3rem",
500
- "4x": "4rem",
501
- "6x": "6rem",
502
- "8x": "8rem",
503
- "12x": "12rem",
504
- "24x": "24rem"
505
- }
506
- };
505
+ var hasRequiredSpace;
506
+ function requireSpace() {
507
+ if (hasRequiredSpace) return space;
508
+ hasRequiredSpace = 1;
509
+ Object.defineProperty(space, "__esModule", {
510
+ value: true
511
+ });
512
+ space.space = void 0;
513
+ // THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
514
+ space.space = {
515
+ "scale": ["0rem", "0.25rem", "0.5rem", "0.75rem", "1rem", "1.5rem", "2rem", "3rem", "4rem", "6rem", "8rem", "12rem", "24rem"],
516
+ "map": {
517
+ "0x": "0rem",
518
+ "quarter-x": "0.25rem",
519
+ "half-x": "0.5rem",
520
+ "three-quarter-x": "0.75rem",
521
+ "1x": "1rem",
522
+ "one-and-a-half-x": "1.5rem",
523
+ "2x": "2rem",
524
+ "3x": "3rem",
525
+ "4x": "4rem",
526
+ "6x": "6rem",
527
+ "8x": "8rem",
528
+ "12x": "12rem",
529
+ "24x": "24rem"
530
+ }
531
+ };
532
+ return space;
533
+ }
507
534
 
508
535
  var breakpoints = {};
509
536
 
510
- Object.defineProperty(breakpoints, "__esModule", {
511
- value: true
512
- });
513
- breakpoints.breakpoints = void 0;
514
- // THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
515
- breakpoints.breakpoints = {
516
- "xs": "25rem",
517
- "sm": "48rem",
518
- "md": "62rem",
519
- "lg": "80rem",
520
- "xl": "100rem"
521
- };
537
+ var hasRequiredBreakpoints;
538
+ function requireBreakpoints() {
539
+ if (hasRequiredBreakpoints) return breakpoints;
540
+ hasRequiredBreakpoints = 1;
541
+ Object.defineProperty(breakpoints, "__esModule", {
542
+ value: true
543
+ });
544
+ breakpoints.breakpoints = void 0;
545
+ // THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
546
+ breakpoints.breakpoints = {
547
+ "xs": "25rem",
548
+ "sm": "48rem",
549
+ "md": "62rem",
550
+ "lg": "80rem",
551
+ "xl": "100rem"
552
+ };
553
+ return breakpoints;
554
+ }
522
555
 
523
556
  var helpers = {};
524
557
 
525
558
  var colorString = {exports: {}};
526
559
 
527
- var colorName = {
528
- "aliceblue": [240, 248, 255],
529
- "antiquewhite": [250, 235, 215],
530
- "aqua": [0, 255, 255],
531
- "aquamarine": [127, 255, 212],
532
- "azure": [240, 255, 255],
533
- "beige": [245, 245, 220],
534
- "bisque": [255, 228, 196],
535
- "black": [0, 0, 0],
536
- "blanchedalmond": [255, 235, 205],
537
- "blue": [0, 0, 255],
538
- "blueviolet": [138, 43, 226],
539
- "brown": [165, 42, 42],
540
- "burlywood": [222, 184, 135],
541
- "cadetblue": [95, 158, 160],
542
- "chartreuse": [127, 255, 0],
543
- "chocolate": [210, 105, 30],
544
- "coral": [255, 127, 80],
545
- "cornflowerblue": [100, 149, 237],
546
- "cornsilk": [255, 248, 220],
547
- "crimson": [220, 20, 60],
548
- "cyan": [0, 255, 255],
549
- "darkblue": [0, 0, 139],
550
- "darkcyan": [0, 139, 139],
551
- "darkgoldenrod": [184, 134, 11],
552
- "darkgray": [169, 169, 169],
553
- "darkgreen": [0, 100, 0],
554
- "darkgrey": [169, 169, 169],
555
- "darkkhaki": [189, 183, 107],
556
- "darkmagenta": [139, 0, 139],
557
- "darkolivegreen": [85, 107, 47],
558
- "darkorange": [255, 140, 0],
559
- "darkorchid": [153, 50, 204],
560
- "darkred": [139, 0, 0],
561
- "darksalmon": [233, 150, 122],
562
- "darkseagreen": [143, 188, 143],
563
- "darkslateblue": [72, 61, 139],
564
- "darkslategray": [47, 79, 79],
565
- "darkslategrey": [47, 79, 79],
566
- "darkturquoise": [0, 206, 209],
567
- "darkviolet": [148, 0, 211],
568
- "deeppink": [255, 20, 147],
569
- "deepskyblue": [0, 191, 255],
570
- "dimgray": [105, 105, 105],
571
- "dimgrey": [105, 105, 105],
572
- "dodgerblue": [30, 144, 255],
573
- "firebrick": [178, 34, 34],
574
- "floralwhite": [255, 250, 240],
575
- "forestgreen": [34, 139, 34],
576
- "fuchsia": [255, 0, 255],
577
- "gainsboro": [220, 220, 220],
578
- "ghostwhite": [248, 248, 255],
579
- "gold": [255, 215, 0],
580
- "goldenrod": [218, 165, 32],
581
- "gray": [128, 128, 128],
582
- "green": [0, 128, 0],
583
- "greenyellow": [173, 255, 47],
584
- "grey": [128, 128, 128],
585
- "honeydew": [240, 255, 240],
586
- "hotpink": [255, 105, 180],
587
- "indianred": [205, 92, 92],
588
- "indigo": [75, 0, 130],
589
- "ivory": [255, 255, 240],
590
- "khaki": [240, 230, 140],
591
- "lavender": [230, 230, 250],
592
- "lavenderblush": [255, 240, 245],
593
- "lawngreen": [124, 252, 0],
594
- "lemonchiffon": [255, 250, 205],
595
- "lightblue": [173, 216, 230],
596
- "lightcoral": [240, 128, 128],
597
- "lightcyan": [224, 255, 255],
598
- "lightgoldenrodyellow": [250, 250, 210],
599
- "lightgray": [211, 211, 211],
600
- "lightgreen": [144, 238, 144],
601
- "lightgrey": [211, 211, 211],
602
- "lightpink": [255, 182, 193],
603
- "lightsalmon": [255, 160, 122],
604
- "lightseagreen": [32, 178, 170],
605
- "lightskyblue": [135, 206, 250],
606
- "lightslategray": [119, 136, 153],
607
- "lightslategrey": [119, 136, 153],
608
- "lightsteelblue": [176, 196, 222],
609
- "lightyellow": [255, 255, 224],
610
- "lime": [0, 255, 0],
611
- "limegreen": [50, 205, 50],
612
- "linen": [250, 240, 230],
613
- "magenta": [255, 0, 255],
614
- "maroon": [128, 0, 0],
615
- "mediumaquamarine": [102, 205, 170],
616
- "mediumblue": [0, 0, 205],
617
- "mediumorchid": [186, 85, 211],
618
- "mediumpurple": [147, 112, 219],
619
- "mediumseagreen": [60, 179, 113],
620
- "mediumslateblue": [123, 104, 238],
621
- "mediumspringgreen": [0, 250, 154],
622
- "mediumturquoise": [72, 209, 204],
623
- "mediumvioletred": [199, 21, 133],
624
- "midnightblue": [25, 25, 112],
625
- "mintcream": [245, 255, 250],
626
- "mistyrose": [255, 228, 225],
627
- "moccasin": [255, 228, 181],
628
- "navajowhite": [255, 222, 173],
629
- "navy": [0, 0, 128],
630
- "oldlace": [253, 245, 230],
631
- "olive": [128, 128, 0],
632
- "olivedrab": [107, 142, 35],
633
- "orange": [255, 165, 0],
634
- "orangered": [255, 69, 0],
635
- "orchid": [218, 112, 214],
636
- "palegoldenrod": [238, 232, 170],
637
- "palegreen": [152, 251, 152],
638
- "paleturquoise": [175, 238, 238],
639
- "palevioletred": [219, 112, 147],
640
- "papayawhip": [255, 239, 213],
641
- "peachpuff": [255, 218, 185],
642
- "peru": [205, 133, 63],
643
- "pink": [255, 192, 203],
644
- "plum": [221, 160, 221],
645
- "powderblue": [176, 224, 230],
646
- "purple": [128, 0, 128],
647
- "rebeccapurple": [102, 51, 153],
648
- "red": [255, 0, 0],
649
- "rosybrown": [188, 143, 143],
650
- "royalblue": [65, 105, 225],
651
- "saddlebrown": [139, 69, 19],
652
- "salmon": [250, 128, 114],
653
- "sandybrown": [244, 164, 96],
654
- "seagreen": [46, 139, 87],
655
- "seashell": [255, 245, 238],
656
- "sienna": [160, 82, 45],
657
- "silver": [192, 192, 192],
658
- "skyblue": [135, 206, 235],
659
- "slateblue": [106, 90, 205],
660
- "slategray": [112, 128, 144],
661
- "slategrey": [112, 128, 144],
662
- "snow": [255, 250, 250],
663
- "springgreen": [0, 255, 127],
664
- "steelblue": [70, 130, 180],
665
- "tan": [210, 180, 140],
666
- "teal": [0, 128, 128],
667
- "thistle": [216, 191, 216],
668
- "tomato": [255, 99, 71],
669
- "turquoise": [64, 224, 208],
670
- "violet": [238, 130, 238],
671
- "wheat": [245, 222, 179],
672
- "white": [255, 255, 255],
673
- "whitesmoke": [245, 245, 245],
674
- "yellow": [255, 255, 0],
675
- "yellowgreen": [154, 205, 50]
676
- };
560
+ var colorName;
561
+ var hasRequiredColorName;
562
+ function requireColorName() {
563
+ if (hasRequiredColorName) return colorName;
564
+ hasRequiredColorName = 1;
565
+ colorName = {
566
+ "aliceblue": [240, 248, 255],
567
+ "antiquewhite": [250, 235, 215],
568
+ "aqua": [0, 255, 255],
569
+ "aquamarine": [127, 255, 212],
570
+ "azure": [240, 255, 255],
571
+ "beige": [245, 245, 220],
572
+ "bisque": [255, 228, 196],
573
+ "black": [0, 0, 0],
574
+ "blanchedalmond": [255, 235, 205],
575
+ "blue": [0, 0, 255],
576
+ "blueviolet": [138, 43, 226],
577
+ "brown": [165, 42, 42],
578
+ "burlywood": [222, 184, 135],
579
+ "cadetblue": [95, 158, 160],
580
+ "chartreuse": [127, 255, 0],
581
+ "chocolate": [210, 105, 30],
582
+ "coral": [255, 127, 80],
583
+ "cornflowerblue": [100, 149, 237],
584
+ "cornsilk": [255, 248, 220],
585
+ "crimson": [220, 20, 60],
586
+ "cyan": [0, 255, 255],
587
+ "darkblue": [0, 0, 139],
588
+ "darkcyan": [0, 139, 139],
589
+ "darkgoldenrod": [184, 134, 11],
590
+ "darkgray": [169, 169, 169],
591
+ "darkgreen": [0, 100, 0],
592
+ "darkgrey": [169, 169, 169],
593
+ "darkkhaki": [189, 183, 107],
594
+ "darkmagenta": [139, 0, 139],
595
+ "darkolivegreen": [85, 107, 47],
596
+ "darkorange": [255, 140, 0],
597
+ "darkorchid": [153, 50, 204],
598
+ "darkred": [139, 0, 0],
599
+ "darksalmon": [233, 150, 122],
600
+ "darkseagreen": [143, 188, 143],
601
+ "darkslateblue": [72, 61, 139],
602
+ "darkslategray": [47, 79, 79],
603
+ "darkslategrey": [47, 79, 79],
604
+ "darkturquoise": [0, 206, 209],
605
+ "darkviolet": [148, 0, 211],
606
+ "deeppink": [255, 20, 147],
607
+ "deepskyblue": [0, 191, 255],
608
+ "dimgray": [105, 105, 105],
609
+ "dimgrey": [105, 105, 105],
610
+ "dodgerblue": [30, 144, 255],
611
+ "firebrick": [178, 34, 34],
612
+ "floralwhite": [255, 250, 240],
613
+ "forestgreen": [34, 139, 34],
614
+ "fuchsia": [255, 0, 255],
615
+ "gainsboro": [220, 220, 220],
616
+ "ghostwhite": [248, 248, 255],
617
+ "gold": [255, 215, 0],
618
+ "goldenrod": [218, 165, 32],
619
+ "gray": [128, 128, 128],
620
+ "green": [0, 128, 0],
621
+ "greenyellow": [173, 255, 47],
622
+ "grey": [128, 128, 128],
623
+ "honeydew": [240, 255, 240],
624
+ "hotpink": [255, 105, 180],
625
+ "indianred": [205, 92, 92],
626
+ "indigo": [75, 0, 130],
627
+ "ivory": [255, 255, 240],
628
+ "khaki": [240, 230, 140],
629
+ "lavender": [230, 230, 250],
630
+ "lavenderblush": [255, 240, 245],
631
+ "lawngreen": [124, 252, 0],
632
+ "lemonchiffon": [255, 250, 205],
633
+ "lightblue": [173, 216, 230],
634
+ "lightcoral": [240, 128, 128],
635
+ "lightcyan": [224, 255, 255],
636
+ "lightgoldenrodyellow": [250, 250, 210],
637
+ "lightgray": [211, 211, 211],
638
+ "lightgreen": [144, 238, 144],
639
+ "lightgrey": [211, 211, 211],
640
+ "lightpink": [255, 182, 193],
641
+ "lightsalmon": [255, 160, 122],
642
+ "lightseagreen": [32, 178, 170],
643
+ "lightskyblue": [135, 206, 250],
644
+ "lightslategray": [119, 136, 153],
645
+ "lightslategrey": [119, 136, 153],
646
+ "lightsteelblue": [176, 196, 222],
647
+ "lightyellow": [255, 255, 224],
648
+ "lime": [0, 255, 0],
649
+ "limegreen": [50, 205, 50],
650
+ "linen": [250, 240, 230],
651
+ "magenta": [255, 0, 255],
652
+ "maroon": [128, 0, 0],
653
+ "mediumaquamarine": [102, 205, 170],
654
+ "mediumblue": [0, 0, 205],
655
+ "mediumorchid": [186, 85, 211],
656
+ "mediumpurple": [147, 112, 219],
657
+ "mediumseagreen": [60, 179, 113],
658
+ "mediumslateblue": [123, 104, 238],
659
+ "mediumspringgreen": [0, 250, 154],
660
+ "mediumturquoise": [72, 209, 204],
661
+ "mediumvioletred": [199, 21, 133],
662
+ "midnightblue": [25, 25, 112],
663
+ "mintcream": [245, 255, 250],
664
+ "mistyrose": [255, 228, 225],
665
+ "moccasin": [255, 228, 181],
666
+ "navajowhite": [255, 222, 173],
667
+ "navy": [0, 0, 128],
668
+ "oldlace": [253, 245, 230],
669
+ "olive": [128, 128, 0],
670
+ "olivedrab": [107, 142, 35],
671
+ "orange": [255, 165, 0],
672
+ "orangered": [255, 69, 0],
673
+ "orchid": [218, 112, 214],
674
+ "palegoldenrod": [238, 232, 170],
675
+ "palegreen": [152, 251, 152],
676
+ "paleturquoise": [175, 238, 238],
677
+ "palevioletred": [219, 112, 147],
678
+ "papayawhip": [255, 239, 213],
679
+ "peachpuff": [255, 218, 185],
680
+ "peru": [205, 133, 63],
681
+ "pink": [255, 192, 203],
682
+ "plum": [221, 160, 221],
683
+ "powderblue": [176, 224, 230],
684
+ "purple": [128, 0, 128],
685
+ "rebeccapurple": [102, 51, 153],
686
+ "red": [255, 0, 0],
687
+ "rosybrown": [188, 143, 143],
688
+ "royalblue": [65, 105, 225],
689
+ "saddlebrown": [139, 69, 19],
690
+ "salmon": [250, 128, 114],
691
+ "sandybrown": [244, 164, 96],
692
+ "seagreen": [46, 139, 87],
693
+ "seashell": [255, 245, 238],
694
+ "sienna": [160, 82, 45],
695
+ "silver": [192, 192, 192],
696
+ "skyblue": [135, 206, 235],
697
+ "slateblue": [106, 90, 205],
698
+ "slategray": [112, 128, 144],
699
+ "slategrey": [112, 128, 144],
700
+ "snow": [255, 250, 250],
701
+ "springgreen": [0, 255, 127],
702
+ "steelblue": [70, 130, 180],
703
+ "tan": [210, 180, 140],
704
+ "teal": [0, 128, 128],
705
+ "thistle": [216, 191, 216],
706
+ "tomato": [255, 99, 71],
707
+ "turquoise": [64, 224, 208],
708
+ "violet": [238, 130, 238],
709
+ "wheat": [245, 222, 179],
710
+ "white": [255, 255, 255],
711
+ "whitesmoke": [245, 245, 245],
712
+ "yellow": [255, 255, 0],
713
+ "yellowgreen": [154, 205, 50]
714
+ };
715
+ return colorName;
716
+ }
677
717
 
678
718
  var simpleSwizzle = {exports: {}};
679
719
 
680
- var isArrayish$1 = function isArrayish(obj) {
681
- if (!obj || typeof obj === 'string') {
682
- return false;
683
- }
684
- return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && (obj.splice instanceof Function || Object.getOwnPropertyDescriptor(obj, obj.length - 1) && obj.constructor.name !== 'String');
685
- };
720
+ var isArrayish;
721
+ var hasRequiredIsArrayish;
722
+ function requireIsArrayish() {
723
+ if (hasRequiredIsArrayish) return isArrayish;
724
+ hasRequiredIsArrayish = 1;
725
+ isArrayish = function isArrayish(obj) {
726
+ if (!obj || typeof obj === 'string') {
727
+ return false;
728
+ }
729
+ return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && (obj.splice instanceof Function || Object.getOwnPropertyDescriptor(obj, obj.length - 1) && obj.constructor.name !== 'String');
730
+ };
731
+ return isArrayish;
732
+ }
686
733
 
687
- var isArrayish = isArrayish$1;
688
- var concat = Array.prototype.concat;
689
- var slice = Array.prototype.slice;
690
- var swizzle$1 = simpleSwizzle.exports = function swizzle(args) {
691
- var results = [];
692
- for (var i = 0, len = args.length; i < len; i++) {
693
- var arg = args[i];
694
- if (isArrayish(arg)) {
695
- // http://jsperf.com/javascript-array-concat-vs-push/98
696
- results = concat.call(results, slice.call(arg));
697
- } else {
698
- results.push(arg);
734
+ var hasRequiredSimpleSwizzle;
735
+ function requireSimpleSwizzle() {
736
+ if (hasRequiredSimpleSwizzle) return simpleSwizzle.exports;
737
+ hasRequiredSimpleSwizzle = 1;
738
+ var isArrayish = requireIsArrayish();
739
+ var concat = Array.prototype.concat;
740
+ var slice = Array.prototype.slice;
741
+ var swizzle = simpleSwizzle.exports = function swizzle(args) {
742
+ var results = [];
743
+ for (var i = 0, len = args.length; i < len; i++) {
744
+ var arg = args[i];
745
+ if (isArrayish(arg)) {
746
+ // http://jsperf.com/javascript-array-concat-vs-push/98
747
+ results = concat.call(results, slice.call(arg));
748
+ } else {
749
+ results.push(arg);
750
+ }
699
751
  }
700
- }
701
- return results;
702
- };
703
- swizzle$1.wrap = function (fn) {
704
- return function () {
705
- return fn(swizzle$1(arguments));
752
+ return results;
706
753
  };
707
- };
708
- var simpleSwizzleExports = simpleSwizzle.exports;
754
+ swizzle.wrap = function (fn) {
755
+ return function () {
756
+ return fn(swizzle(arguments));
757
+ };
758
+ };
759
+ return simpleSwizzle.exports;
760
+ }
709
761
 
710
762
  /* MIT license */
711
- var colorNames = colorName;
712
- var swizzle = simpleSwizzleExports;
713
- var hasOwnProperty = Object.hasOwnProperty;
714
- var reverseNames = Object.create(null);
715
-
716
- // create a list of reverse color names
717
- for (var name in colorNames) {
718
- if (hasOwnProperty.call(colorNames, name)) {
719
- reverseNames[colorNames[name]] = name;
720
- }
721
- }
722
- var cs = colorString.exports = {
723
- to: {},
724
- get: {}
725
- };
726
- cs.get = function (string) {
727
- var prefix = string.substring(0, 3).toLowerCase();
728
- var val;
729
- var model;
730
- switch (prefix) {
731
- case 'hsl':
732
- val = cs.get.hsl(string);
733
- model = 'hsl';
734
- break;
735
- case 'hwb':
736
- val = cs.get.hwb(string);
737
- model = 'hwb';
738
- break;
739
- default:
740
- val = cs.get.rgb(string);
741
- model = 'rgb';
742
- break;
743
- }
744
- if (!val) {
745
- return null;
746
- }
747
- return {
748
- model: model,
749
- value: val
763
+ var hasRequiredColorString;
764
+ function requireColorString() {
765
+ if (hasRequiredColorString) return colorString.exports;
766
+ hasRequiredColorString = 1;
767
+ var colorNames = requireColorName();
768
+ var swizzle = requireSimpleSwizzle();
769
+ var hasOwnProperty = Object.hasOwnProperty;
770
+ var reverseNames = Object.create(null);
771
+
772
+ // create a list of reverse color names
773
+ for (var name in colorNames) {
774
+ if (hasOwnProperty.call(colorNames, name)) {
775
+ reverseNames[colorNames[name]] = name;
776
+ }
777
+ }
778
+ var cs = colorString.exports = {
779
+ to: {},
780
+ get: {}
750
781
  };
751
- };
752
- cs.get.rgb = function (string) {
753
- if (!string) {
754
- return null;
755
- }
756
- var abbr = /^#([a-f0-9]{3,4})$/i;
757
- var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
758
- var rgba = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
759
- var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
760
- var keyword = /^(\w+)$/;
761
- var rgb = [0, 0, 0, 1];
762
- var match;
763
- var i;
764
- var hexAlpha;
765
- if (match = string.match(hex)) {
766
- hexAlpha = match[2];
767
- match = match[1];
768
- for (i = 0; i < 3; i++) {
769
- // https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19
770
- var i2 = i * 2;
771
- rgb[i] = parseInt(match.slice(i2, i2 + 2), 16);
772
- }
773
- if (hexAlpha) {
774
- rgb[3] = parseInt(hexAlpha, 16) / 255;
775
- }
776
- } else if (match = string.match(abbr)) {
777
- match = match[1];
778
- hexAlpha = match[3];
779
- for (i = 0; i < 3; i++) {
780
- rgb[i] = parseInt(match[i] + match[i], 16);
782
+ cs.get = function (string) {
783
+ var prefix = string.substring(0, 3).toLowerCase();
784
+ var val;
785
+ var model;
786
+ switch (prefix) {
787
+ case 'hsl':
788
+ val = cs.get.hsl(string);
789
+ model = 'hsl';
790
+ break;
791
+ case 'hwb':
792
+ val = cs.get.hwb(string);
793
+ model = 'hwb';
794
+ break;
795
+ default:
796
+ val = cs.get.rgb(string);
797
+ model = 'rgb';
798
+ break;
781
799
  }
782
- if (hexAlpha) {
783
- rgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;
800
+ if (!val) {
801
+ return null;
784
802
  }
785
- } else if (match = string.match(rgba)) {
786
- for (i = 0; i < 3; i++) {
787
- rgb[i] = parseInt(match[i + 1], 0);
803
+ return {
804
+ model: model,
805
+ value: val
806
+ };
807
+ };
808
+ cs.get.rgb = function (string) {
809
+ if (!string) {
810
+ return null;
788
811
  }
789
- if (match[4]) {
790
- if (match[5]) {
791
- rgb[3] = parseFloat(match[4]) * 0.01;
792
- } else {
793
- rgb[3] = parseFloat(match[4]);
812
+ var abbr = /^#([a-f0-9]{3,4})$/i;
813
+ var hex = /^#([a-f0-9]{6})([a-f0-9]{2})?$/i;
814
+ var rgba = /^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
815
+ var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;
816
+ var keyword = /^(\w+)$/;
817
+ var rgb = [0, 0, 0, 1];
818
+ var match;
819
+ var i;
820
+ var hexAlpha;
821
+ if (match = string.match(hex)) {
822
+ hexAlpha = match[2];
823
+ match = match[1];
824
+ for (i = 0; i < 3; i++) {
825
+ // https://jsperf.com/slice-vs-substr-vs-substring-methods-long-string/19
826
+ var i2 = i * 2;
827
+ rgb[i] = parseInt(match.slice(i2, i2 + 2), 16);
828
+ }
829
+ if (hexAlpha) {
830
+ rgb[3] = parseInt(hexAlpha, 16) / 255;
831
+ }
832
+ } else if (match = string.match(abbr)) {
833
+ match = match[1];
834
+ hexAlpha = match[3];
835
+ for (i = 0; i < 3; i++) {
836
+ rgb[i] = parseInt(match[i] + match[i], 16);
837
+ }
838
+ if (hexAlpha) {
839
+ rgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255;
840
+ }
841
+ } else if (match = string.match(rgba)) {
842
+ for (i = 0; i < 3; i++) {
843
+ rgb[i] = parseInt(match[i + 1], 0);
844
+ }
845
+ if (match[4]) {
846
+ if (match[5]) {
847
+ rgb[3] = parseFloat(match[4]) * 0.01;
848
+ } else {
849
+ rgb[3] = parseFloat(match[4]);
850
+ }
794
851
  }
852
+ } else if (match = string.match(per)) {
853
+ for (i = 0; i < 3; i++) {
854
+ rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);
855
+ }
856
+ if (match[4]) {
857
+ if (match[5]) {
858
+ rgb[3] = parseFloat(match[4]) * 0.01;
859
+ } else {
860
+ rgb[3] = parseFloat(match[4]);
861
+ }
862
+ }
863
+ } else if (match = string.match(keyword)) {
864
+ if (match[1] === 'transparent') {
865
+ return [0, 0, 0, 0];
866
+ }
867
+ if (!hasOwnProperty.call(colorNames, match[1])) {
868
+ return null;
869
+ }
870
+ rgb = colorNames[match[1]];
871
+ rgb[3] = 1;
872
+ return rgb;
873
+ } else {
874
+ return null;
795
875
  }
796
- } else if (match = string.match(per)) {
797
876
  for (i = 0; i < 3; i++) {
798
- rgb[i] = Math.round(parseFloat(match[i + 1]) * 2.55);
877
+ rgb[i] = clamp(rgb[i], 0, 255);
799
878
  }
800
- if (match[4]) {
801
- if (match[5]) {
802
- rgb[3] = parseFloat(match[4]) * 0.01;
803
- } else {
804
- rgb[3] = parseFloat(match[4]);
805
- }
879
+ rgb[3] = clamp(rgb[3], 0, 1);
880
+ return rgb;
881
+ };
882
+ cs.get.hsl = function (string) {
883
+ if (!string) {
884
+ return null;
806
885
  }
807
- } else if (match = string.match(keyword)) {
808
- if (match[1] === 'transparent') {
809
- return [0, 0, 0, 0];
886
+ var hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;
887
+ var match = string.match(hsl);
888
+ if (match) {
889
+ var alpha = parseFloat(match[4]);
890
+ var h = (parseFloat(match[1]) % 360 + 360) % 360;
891
+ var s = clamp(parseFloat(match[2]), 0, 100);
892
+ var l = clamp(parseFloat(match[3]), 0, 100);
893
+ var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
894
+ return [h, s, l, a];
810
895
  }
811
- if (!hasOwnProperty.call(colorNames, match[1])) {
896
+ return null;
897
+ };
898
+ cs.get.hwb = function (string) {
899
+ if (!string) {
812
900
  return null;
813
901
  }
814
- rgb = colorNames[match[1]];
815
- rgb[3] = 1;
816
- return rgb;
817
- } else {
818
- return null;
819
- }
820
- for (i = 0; i < 3; i++) {
821
- rgb[i] = clamp(rgb[i], 0, 255);
822
- }
823
- rgb[3] = clamp(rgb[3], 0, 1);
824
- return rgb;
825
- };
826
- cs.get.hsl = function (string) {
827
- if (!string) {
828
- return null;
829
- }
830
- var hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;
831
- var match = string.match(hsl);
832
- if (match) {
833
- var alpha = parseFloat(match[4]);
834
- var h = (parseFloat(match[1]) % 360 + 360) % 360;
835
- var s = clamp(parseFloat(match[2]), 0, 100);
836
- var l = clamp(parseFloat(match[3]), 0, 100);
837
- var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
838
- return [h, s, l, a];
839
- }
840
- return null;
841
- };
842
- cs.get.hwb = function (string) {
843
- if (!string) {
902
+ var hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;
903
+ var match = string.match(hwb);
904
+ if (match) {
905
+ var alpha = parseFloat(match[4]);
906
+ var h = (parseFloat(match[1]) % 360 + 360) % 360;
907
+ var w = clamp(parseFloat(match[2]), 0, 100);
908
+ var b = clamp(parseFloat(match[3]), 0, 100);
909
+ var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
910
+ return [h, w, b, a];
911
+ }
844
912
  return null;
845
- }
846
- var hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;
847
- var match = string.match(hwb);
848
- if (match) {
849
- var alpha = parseFloat(match[4]);
850
- var h = (parseFloat(match[1]) % 360 + 360) % 360;
851
- var w = clamp(parseFloat(match[2]), 0, 100);
852
- var b = clamp(parseFloat(match[3]), 0, 100);
853
- var a = clamp(isNaN(alpha) ? 1 : alpha, 0, 1);
854
- return [h, w, b, a];
855
- }
856
- return null;
857
- };
858
- cs.to.hex = function () {
859
- var rgba = swizzle(arguments);
860
- return '#' + hexDouble(rgba[0]) + hexDouble(rgba[1]) + hexDouble(rgba[2]) + (rgba[3] < 1 ? hexDouble(Math.round(rgba[3] * 255)) : '');
861
- };
862
- cs.to.rgb = function () {
863
- var rgba = swizzle(arguments);
864
- return rgba.length < 4 || rgba[3] === 1 ? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')' : 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';
865
- };
866
- cs.to.rgb.percent = function () {
867
- var rgba = swizzle(arguments);
868
- var r = Math.round(rgba[0] / 255 * 100);
869
- var g = Math.round(rgba[1] / 255 * 100);
870
- var b = Math.round(rgba[2] / 255 * 100);
871
- return rgba.length < 4 || rgba[3] === 1 ? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)' : 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';
872
- };
873
- cs.to.hsl = function () {
874
- var hsla = swizzle(arguments);
875
- return hsla.length < 4 || hsla[3] === 1 ? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)' : 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';
876
- };
877
-
878
- // hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax
879
- // (hwb have alpha optional & 1 is default value)
880
- cs.to.hwb = function () {
881
- var hwba = swizzle(arguments);
882
- var a = '';
883
- if (hwba.length >= 4 && hwba[3] !== 1) {
884
- a = ', ' + hwba[3];
885
- }
886
- return 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';
887
- };
888
- cs.to.keyword = function (rgb) {
889
- return reverseNames[rgb.slice(0, 3)];
890
- };
891
-
892
- // helpers
893
- function clamp(num, min, max) {
894
- return Math.min(Math.max(min, num), max);
895
- }
896
- function hexDouble(num) {
897
- var str = Math.round(num).toString(16).toUpperCase();
898
- return str.length < 2 ? '0' + str : str;
899
- }
900
- var colorStringExports = colorString.exports;
901
-
902
- (function (exports) {
903
-
904
- var __assign = commonjsGlobal && commonjsGlobal.__assign || function () {
905
- __assign = Object.assign || function (t) {
906
- for (var s, i = 1, n = arguments.length; i < n; i++) {
907
- s = arguments[i];
908
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
909
- }
910
- return t;
911
- };
912
- return __assign.apply(this, arguments);
913
913
  };
914
- var __spreadArray = commonjsGlobal && commonjsGlobal.__spreadArray || function (to, from, pack) {
915
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
916
- if (ar || !(i in from)) {
917
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
918
- ar[i] = from[i];
919
- }
920
- }
921
- return to.concat(ar || Array.prototype.slice.call(from));
914
+ cs.to.hex = function () {
915
+ var rgba = swizzle(arguments);
916
+ return '#' + hexDouble(rgba[0]) + hexDouble(rgba[1]) + hexDouble(rgba[2]) + (rgba[3] < 1 ? hexDouble(Math.round(rgba[3] * 255)) : '');
922
917
  };
923
- Object.defineProperty(exports, "__esModule", {
924
- value: true
925
- });
926
- exports.spacing = exports.colorInHex = exports.color = exports.remToUnitlessPx = exports.text = void 0;
927
- var colorString = colorStringExports;
928
- var colors_1 = colors;
929
- var space_1 = space;
930
- var typography_1 = typography;
931
- var text = function text(name, font) {
932
- if (font === void 0) {
933
- font = 'sans';
934
- }
935
- var treatment = typography_1.typography['text-treatments'][name];
936
- return __assign(__assign({}, treatment), {
937
- 'font-family': typography_1.typography.fonts[font].join(','),
938
- 'line-height': "".concat(treatment['line-height'])
939
- });
918
+ cs.to.rgb = function () {
919
+ var rgba = swizzle(arguments);
920
+ return rgba.length < 4 || rgba[3] === 1 ? 'rgb(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ')' : 'rgba(' + Math.round(rgba[0]) + ', ' + Math.round(rgba[1]) + ', ' + Math.round(rgba[2]) + ', ' + rgba[3] + ')';
940
921
  };
941
- exports.text = text;
942
- var remToUnitlessPx = function remToUnitlessPx(value) {
943
- return parseFloat(value) * parseInt(typography_1.typography['root-font-size'], 10);
922
+ cs.to.rgb.percent = function () {
923
+ var rgba = swizzle(arguments);
924
+ var r = Math.round(rgba[0] / 255 * 100);
925
+ var g = Math.round(rgba[1] / 255 * 100);
926
+ var b = Math.round(rgba[2] / 255 * 100);
927
+ return rgba.length < 4 || rgba[3] === 1 ? 'rgb(' + r + '%, ' + g + '%, ' + b + '%)' : 'rgba(' + r + '%, ' + g + '%, ' + b + '%, ' + rgba[3] + ')';
944
928
  };
945
- exports.remToUnitlessPx = remToUnitlessPx;
946
- var color = function color(name, alpha) {
947
- var _a;
948
- var color = colors_1.colors.all[name];
949
- return alpha != null ?
950
- // eslint-disable-next-line @typescript-eslint/no-magic-numbers
951
- colorString.to.rgb(__spreadArray(__spreadArray([], ((_a = colorString.get.rgb(color)) === null || _a === void 0 ? void 0 : _a.slice(0, 3)) || [], true), [alpha], false)) : color;
929
+ cs.to.hsl = function () {
930
+ var hsla = swizzle(arguments);
931
+ return hsla.length < 4 || hsla[3] === 1 ? 'hsl(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%)' : 'hsla(' + hsla[0] + ', ' + hsla[1] + '%, ' + hsla[2] + '%, ' + hsla[3] + ')';
952
932
  };
953
- exports.color = color;
954
- var colorInHex = function colorInHex(name, alpha) {
955
- return colorString.to.hex(colorString.get.rgb((0, exports.color)(name, alpha)));
933
+
934
+ // hwb is a bit different than rgb(a) & hsl(a) since there is no alpha specific syntax
935
+ // (hwb have alpha optional & 1 is default value)
936
+ cs.to.hwb = function () {
937
+ var hwba = swizzle(arguments);
938
+ var a = '';
939
+ if (hwba.length >= 4 && hwba[3] !== 1) {
940
+ a = ', ' + hwba[3];
941
+ }
942
+ return 'hwb(' + hwba[0] + ', ' + hwba[1] + '%, ' + hwba[2] + '%' + a + ')';
956
943
  };
957
- exports.colorInHex = colorInHex;
958
- var spacing = function spacing(topY, rightX, bottom, left) {
959
- return [topY, rightX, bottom, left].reduce(function (acc, value) {
960
- var _a;
961
- if (value === undefined) return acc;
962
- return [acc, (_a = space_1.space.scale[Number(value)]) !== null && _a !== void 0 ? _a : value].join(' ');
963
- }, '');
944
+ cs.to.keyword = function (rgb) {
945
+ return reverseNames[rgb.slice(0, 3)];
964
946
  };
965
- exports.spacing = spacing;
966
- })(helpers);
967
947
 
968
- (function (exports) {
948
+ // helpers
949
+ function clamp(num, min, max) {
950
+ return Math.min(Math.max(min, num), max);
951
+ }
952
+ function hexDouble(num) {
953
+ var str = Math.round(num).toString(16).toUpperCase();
954
+ return str.length < 2 ? '0' + str : str;
955
+ }
956
+ return colorString.exports;
957
+ }
969
958
 
970
- var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function (o, m, k, k2) {
971
- if (k2 === undefined) k2 = k;
972
- var desc = Object.getOwnPropertyDescriptor(m, k);
973
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
974
- desc = {
975
- enumerable: true,
976
- get: function get() {
977
- return m[k];
959
+ var hasRequiredHelpers;
960
+ function requireHelpers() {
961
+ if (hasRequiredHelpers) return helpers;
962
+ hasRequiredHelpers = 1;
963
+ (function (exports) {
964
+
965
+ var __assign = helpers && helpers.__assign || function () {
966
+ __assign = Object.assign || function (t) {
967
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
968
+ s = arguments[i];
969
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
978
970
  }
971
+ return t;
979
972
  };
980
- }
981
- Object.defineProperty(o, k2, desc);
982
- } : function (o, m, k, k2) {
983
- if (k2 === undefined) k2 = k;
984
- o[k2] = m[k];
985
- });
986
- var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
987
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
988
- };
989
- Object.defineProperty(exports, "__esModule", {
990
- value: true
991
- });
992
- exports.breakpoints = exports.space = exports.typography = exports.colors = void 0;
993
- var colors_1 = colors;
994
- Object.defineProperty(exports, "colors", {
995
- enumerable: true,
996
- get: function get() {
997
- return colors_1.colors;
998
- }
999
- });
1000
- var typography_1 = typography;
1001
- Object.defineProperty(exports, "typography", {
1002
- enumerable: true,
1003
- get: function get() {
1004
- return typography_1.typography;
1005
- }
1006
- });
1007
- var space_1 = space;
1008
- Object.defineProperty(exports, "space", {
1009
- enumerable: true,
1010
- get: function get() {
1011
- return space_1.space;
1012
- }
1013
- });
1014
- var breakpoints_1 = breakpoints;
1015
- Object.defineProperty(exports, "breakpoints", {
1016
- enumerable: true,
1017
- get: function get() {
1018
- return breakpoints_1.breakpoints;
1019
- }
1020
- });
1021
- __exportStar(helpers, exports);
1022
- })(dist$4);
973
+ return __assign.apply(this, arguments);
974
+ };
975
+ var __spreadArray = helpers && helpers.__spreadArray || function (to, from, pack) {
976
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
977
+ if (ar || !(i in from)) {
978
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
979
+ ar[i] = from[i];
980
+ }
981
+ }
982
+ return to.concat(ar || Array.prototype.slice.call(from));
983
+ };
984
+ Object.defineProperty(exports, "__esModule", {
985
+ value: true
986
+ });
987
+ exports.spacing = exports.colorInHex = exports.color = exports.remToUnitlessPx = exports.text = void 0;
988
+ var colorString = requireColorString();
989
+ var colors_1 = requireColors();
990
+ var space_1 = requireSpace();
991
+ var typography_1 = requireTypography();
992
+ var text = function text(name, font) {
993
+ if (font === void 0) {
994
+ font = 'sans';
995
+ }
996
+ var treatment = typography_1.typography['text-treatments'][name];
997
+ return __assign(__assign({}, treatment), {
998
+ 'font-family': typography_1.typography.fonts[font].join(','),
999
+ 'line-height': "".concat(treatment['line-height'])
1000
+ });
1001
+ };
1002
+ exports.text = text;
1003
+ var remToUnitlessPx = function remToUnitlessPx(value) {
1004
+ return parseFloat(value) * parseInt(typography_1.typography['root-font-size'], 10);
1005
+ };
1006
+ exports.remToUnitlessPx = remToUnitlessPx;
1007
+ var color = function color(name, alpha) {
1008
+ var _a;
1009
+ var color = colors_1.colors.all[name];
1010
+ return alpha != null ?
1011
+ // eslint-disable-next-line @typescript-eslint/no-magic-numbers
1012
+ colorString.to.rgb(__spreadArray(__spreadArray([], ((_a = colorString.get.rgb(color)) === null || _a === void 0 ? void 0 : _a.slice(0, 3)) || [], true), [alpha], false)) : color;
1013
+ };
1014
+ exports.color = color;
1015
+ var colorInHex = function colorInHex(name, alpha) {
1016
+ return colorString.to.hex(colorString.get.rgb((0, exports.color)(name, alpha)));
1017
+ };
1018
+ exports.colorInHex = colorInHex;
1019
+ var spacing = function spacing(topY, rightX, bottom, left) {
1020
+ return [topY, rightX, bottom, left].reduce(function (acc, value) {
1021
+ var _a;
1022
+ if (value === undefined) return acc;
1023
+ return [acc, (_a = space_1.space.scale[Number(value)]) !== null && _a !== void 0 ? _a : value].join(' ');
1024
+ }, '');
1025
+ };
1026
+ exports.spacing = spacing;
1027
+ })(helpers);
1028
+ return helpers;
1029
+ }
1030
+
1031
+ var hasRequiredDist$4;
1032
+ function requireDist$4() {
1033
+ if (hasRequiredDist$4) return dist$4;
1034
+ hasRequiredDist$4 = 1;
1035
+ (function (exports) {
1036
+
1037
+ var __createBinding = dist$4 && dist$4.__createBinding || (Object.create ? function (o, m, k, k2) {
1038
+ if (k2 === undefined) k2 = k;
1039
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1040
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1041
+ desc = {
1042
+ enumerable: true,
1043
+ get: function get() {
1044
+ return m[k];
1045
+ }
1046
+ };
1047
+ }
1048
+ Object.defineProperty(o, k2, desc);
1049
+ } : function (o, m, k, k2) {
1050
+ if (k2 === undefined) k2 = k;
1051
+ o[k2] = m[k];
1052
+ });
1053
+ var __exportStar = dist$4 && dist$4.__exportStar || function (m, exports) {
1054
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1055
+ };
1056
+ Object.defineProperty(exports, "__esModule", {
1057
+ value: true
1058
+ });
1059
+ exports.breakpoints = exports.space = exports.typography = exports.colors = void 0;
1060
+ var colors_1 = requireColors();
1061
+ Object.defineProperty(exports, "colors", {
1062
+ enumerable: true,
1063
+ get: function get() {
1064
+ return colors_1.colors;
1065
+ }
1066
+ });
1067
+ var typography_1 = requireTypography();
1068
+ Object.defineProperty(exports, "typography", {
1069
+ enumerable: true,
1070
+ get: function get() {
1071
+ return typography_1.typography;
1072
+ }
1073
+ });
1074
+ var space_1 = requireSpace();
1075
+ Object.defineProperty(exports, "space", {
1076
+ enumerable: true,
1077
+ get: function get() {
1078
+ return space_1.space;
1079
+ }
1080
+ });
1081
+ var breakpoints_1 = requireBreakpoints();
1082
+ Object.defineProperty(exports, "breakpoints", {
1083
+ enumerable: true,
1084
+ get: function get() {
1085
+ return breakpoints_1.breakpoints;
1086
+ }
1087
+ });
1088
+ __exportStar(requireHelpers(), exports);
1089
+ })(dist$4);
1090
+ return dist$4;
1091
+ }
1092
+
1093
+ var distExports$4 = requireDist$4();
1023
1094
 
1024
1095
  function _arrayLikeToArray(r, a) {
1025
1096
  (null == a || a > r.length) && (a = r.length);
@@ -1220,61 +1291,68 @@ var isRenderProps = function isRenderProps(children) {
1220
1291
 
1221
1292
  var classnames = {exports: {}};
1222
1293
 
1223
- (function (module) {
1224
- /* global define */
1294
+ var hasRequiredClassnames;
1295
+ function requireClassnames() {
1296
+ if (hasRequiredClassnames) return classnames.exports;
1297
+ hasRequiredClassnames = 1;
1298
+ (function (module) {
1299
+ /* global define */
1225
1300
 
1226
- (function () {
1301
+ (function () {
1227
1302
 
1228
- var hasOwn = {}.hasOwnProperty;
1229
- function classNames() {
1230
- var classes = '';
1231
- for (var i = 0; i < arguments.length; i++) {
1232
- var arg = arguments[i];
1233
- if (arg) {
1234
- classes = appendClass(classes, parseValue(arg));
1303
+ var hasOwn = {}.hasOwnProperty;
1304
+ function classNames() {
1305
+ var classes = '';
1306
+ for (var i = 0; i < arguments.length; i++) {
1307
+ var arg = arguments[i];
1308
+ if (arg) {
1309
+ classes = appendClass(classes, parseValue(arg));
1310
+ }
1235
1311
  }
1312
+ return classes;
1236
1313
  }
1237
- return classes;
1238
- }
1239
- function parseValue(arg) {
1240
- if (typeof arg === 'string' || typeof arg === 'number') {
1241
- return arg;
1242
- }
1243
- if (_typeof$1(arg) !== 'object') {
1244
- return '';
1245
- }
1246
- if (Array.isArray(arg)) {
1247
- return classNames.apply(null, arg);
1248
- }
1249
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
1250
- return arg.toString();
1251
- }
1252
- var classes = '';
1253
- for (var key in arg) {
1254
- if (hasOwn.call(arg, key) && arg[key]) {
1255
- classes = appendClass(classes, key);
1314
+ function parseValue(arg) {
1315
+ if (typeof arg === 'string' || typeof arg === 'number') {
1316
+ return arg;
1317
+ }
1318
+ if (_typeof$1(arg) !== 'object') {
1319
+ return '';
1320
+ }
1321
+ if (Array.isArray(arg)) {
1322
+ return classNames.apply(null, arg);
1256
1323
  }
1324
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
1325
+ return arg.toString();
1326
+ }
1327
+ var classes = '';
1328
+ for (var key in arg) {
1329
+ if (hasOwn.call(arg, key) && arg[key]) {
1330
+ classes = appendClass(classes, key);
1331
+ }
1332
+ }
1333
+ return classes;
1257
1334
  }
1258
- return classes;
1259
- }
1260
- function appendClass(value, newClass) {
1261
- if (!newClass) {
1262
- return value;
1335
+ function appendClass(value, newClass) {
1336
+ if (!newClass) {
1337
+ return value;
1338
+ }
1339
+ if (value) {
1340
+ return value + ' ' + newClass;
1341
+ }
1342
+ return value + newClass;
1263
1343
  }
1264
- if (value) {
1265
- return value + ' ' + newClass;
1344
+ if (module.exports) {
1345
+ classNames["default"] = classNames;
1346
+ module.exports = classNames;
1347
+ } else {
1348
+ window.classNames = classNames;
1266
1349
  }
1267
- return value + newClass;
1268
- }
1269
- if (module.exports) {
1270
- classNames["default"] = classNames;
1271
- module.exports = classNames;
1272
- } else {
1273
- window.classNames = classNames;
1274
- }
1275
- })();
1276
- })(classnames);
1277
- var classnamesExports = classnames.exports;
1350
+ })();
1351
+ })(classnames);
1352
+ return classnames.exports;
1353
+ }
1354
+
1355
+ var classnamesExports = requireClassnames();
1278
1356
  var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
1279
1357
 
1280
1358
  var _excluded$G = ["className", "children", "space", "direction", "alignItems", "justifyContent", "style"];
@@ -1405,15 +1483,15 @@ PERFORMANCE OF THIS SOFTWARE.
1405
1483
  /* global Reflect, Promise, SuppressedError, Symbol */
1406
1484
 
1407
1485
 
1408
- var __assign$b = function() {
1409
- __assign$b = Object.assign || function __assign(t) {
1486
+ var __assign$a = function() {
1487
+ __assign$a = Object.assign || function __assign(t) {
1410
1488
  for (var s, i = 1, n = arguments.length; i < n; i++) {
1411
1489
  s = arguments[i];
1412
1490
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
1413
1491
  }
1414
1492
  return t;
1415
1493
  };
1416
- return __assign$b.apply(this, arguments);
1494
+ return __assign$a.apply(this, arguments);
1417
1495
  };
1418
1496
 
1419
1497
  function __rest$a(s, e) {
@@ -1657,7 +1735,7 @@ function createSidecarMedium(options) {
1657
1735
  options = {};
1658
1736
  }
1659
1737
  var medium = innerCreateMedium(null);
1660
- medium.options = __assign$b({
1738
+ medium.options = __assign$a({
1661
1739
  async: true,
1662
1740
  ssr: false
1663
1741
  }, options);
@@ -1674,7 +1752,7 @@ var SideCar$1 = function SideCar(_a) {
1674
1752
  if (!Target) {
1675
1753
  throw new Error('Sidecar medium not found');
1676
1754
  }
1677
- return /*#__PURE__*/React__namespace.createElement(Target, __assign$b({}, rest));
1755
+ return /*#__PURE__*/React__namespace.createElement(Target, __assign$a({}, rest));
1678
1756
  };
1679
1757
  SideCar$1.isSideCarExport = true;
1680
1758
  function exportSidecar(medium, exported) {
@@ -1715,8 +1793,8 @@ var RemoveScroll = /*#__PURE__*/React__namespace.forwardRef(function (props, par
1715
1793
  rest = __rest$a(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
1716
1794
  var SideCar = sideCar;
1717
1795
  var containerRef = useMergeRefs([ref, parentRef]);
1718
- var containerProps = __assign$b(__assign$b({}, rest), callbacks);
1719
- return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, enabled && ( /*#__PURE__*/React__namespace.createElement(SideCar, {
1796
+ var containerProps = __assign$a(__assign$a({}, rest), callbacks);
1797
+ return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, enabled && (/*#__PURE__*/React__namespace.createElement(SideCar, {
1720
1798
  sideCar: effectCar$1,
1721
1799
  removeScrollBar: removeScrollBar,
1722
1800
  shards: shards,
@@ -1726,9 +1804,9 @@ var RemoveScroll = /*#__PURE__*/React__namespace.forwardRef(function (props, par
1726
1804
  allowPinchZoom: !!allowPinchZoom,
1727
1805
  lockRef: ref,
1728
1806
  gapMode: gapMode
1729
- })), forwardProps ? ( /*#__PURE__*/React__namespace.cloneElement(React__namespace.Children.only(children), __assign$b(__assign$b({}, containerProps), {
1807
+ })), forwardProps ? (/*#__PURE__*/React__namespace.cloneElement(React__namespace.Children.only(children), __assign$a(__assign$a({}, containerProps), {
1730
1808
  ref: containerRef
1731
- }))) : ( /*#__PURE__*/React__namespace.createElement(Container, __assign$b({}, containerProps, {
1809
+ }))) : (/*#__PURE__*/React__namespace.createElement(Container, __assign$a({}, containerProps, {
1732
1810
  className: className,
1733
1811
  ref: containerRef
1734
1812
  }), children)));
@@ -1744,18 +1822,13 @@ RemoveScroll.classNames = {
1744
1822
  };
1745
1823
 
1746
1824
  function _extends() {
1747
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1748
- for (var i = 1; i < arguments.length; i++) {
1749
- var source = arguments[i];
1750
- for (var key in source) {
1751
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1752
- target[key] = source[key];
1753
- }
1754
- }
1825
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
1826
+ for (var e = 1; e < arguments.length; e++) {
1827
+ var t = arguments[e];
1828
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1755
1829
  }
1756
- return target;
1757
- };
1758
- return _extends.apply(this, arguments);
1830
+ return n;
1831
+ }, _extends.apply(null, arguments);
1759
1832
  }
1760
1833
 
1761
1834
  var propTypes = {exports: {}};
@@ -2172,9 +2245,9 @@ function requireCheckPropTypes() {
2172
2245
  hasRequiredCheckPropTypes = 1;
2173
2246
  var printWarning = function printWarning() {};
2174
2247
  if (process.env.NODE_ENV !== 'production') {
2175
- var ReactPropTypesSecret = requireReactPropTypesSecret();
2248
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
2176
2249
  var loggedTypeFailures = {};
2177
- var has = requireHas();
2250
+ var has = /*@__PURE__*/requireHas();
2178
2251
  printWarning = function printWarning(text) {
2179
2252
  var message = 'Warning: ' + text;
2180
2253
  if (typeof console !== 'undefined') {
@@ -2256,9 +2329,9 @@ function requireFactoryWithTypeCheckers() {
2256
2329
  hasRequiredFactoryWithTypeCheckers = 1;
2257
2330
  var ReactIs = requireReactIs();
2258
2331
  var assign = requireObjectAssign();
2259
- var ReactPropTypesSecret = requireReactPropTypesSecret();
2260
- var has = requireHas();
2261
- var checkPropTypes = requireCheckPropTypes();
2332
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
2333
+ var has = /*@__PURE__*/requireHas();
2334
+ var checkPropTypes = /*@__PURE__*/requireCheckPropTypes();
2262
2335
  var printWarning = function printWarning() {};
2263
2336
  if (process.env.NODE_ENV !== 'production') {
2264
2337
  printWarning = function printWarning(text) {
@@ -2807,7 +2880,7 @@ var hasRequiredFactoryWithThrowingShims;
2807
2880
  function requireFactoryWithThrowingShims() {
2808
2881
  if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
2809
2882
  hasRequiredFactoryWithThrowingShims = 1;
2810
- var ReactPropTypesSecret = requireReactPropTypesSecret();
2883
+ var ReactPropTypesSecret = /*@__PURE__*/requireReactPropTypesSecret();
2811
2884
  function emptyFunction() {}
2812
2885
  function emptyFunctionWithReset() {}
2813
2886
  emptyFunctionWithReset.resetWarningCache = emptyFunction;
@@ -2862,19 +2935,26 @@ function requireFactoryWithThrowingShims() {
2862
2935
  * This source code is licensed under the MIT license found in the
2863
2936
  * LICENSE file in the root directory of this source tree.
2864
2937
  */
2865
- if (process.env.NODE_ENV !== 'production') {
2866
- var ReactIs = requireReactIs();
2938
+ var hasRequiredPropTypes;
2939
+ function requirePropTypes() {
2940
+ if (hasRequiredPropTypes) return propTypes.exports;
2941
+ hasRequiredPropTypes = 1;
2942
+ if (process.env.NODE_ENV !== 'production') {
2943
+ var ReactIs = requireReactIs();
2867
2944
 
2868
- // By explicitly using `prop-types` you are opting into new development behavior.
2869
- // http://fb.me/prop-types-in-prod
2870
- var throwOnDirectAccess = true;
2871
- propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
2872
- } else {
2873
- // By explicitly using `prop-types` you are opting into new production behavior.
2874
- // http://fb.me/prop-types-in-prod
2875
- propTypes.exports = requireFactoryWithThrowingShims()();
2945
+ // By explicitly using `prop-types` you are opting into new development behavior.
2946
+ // http://fb.me/prop-types-in-prod
2947
+ var throwOnDirectAccess = true;
2948
+ propTypes.exports = /*@__PURE__*/requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
2949
+ } else {
2950
+ // By explicitly using `prop-types` you are opting into new production behavior.
2951
+ // http://fb.me/prop-types-in-prod
2952
+ propTypes.exports = /*@__PURE__*/requireFactoryWithThrowingShims()();
2953
+ }
2954
+ return propTypes.exports;
2876
2955
  }
2877
- var propTypesExports = propTypes.exports;
2956
+
2957
+ var propTypesExports = /*@__PURE__*/ requirePropTypes();
2878
2958
  var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
2879
2959
 
2880
2960
  /**
@@ -3150,7 +3230,7 @@ var FocusOn$1 = /*#__PURE__*/React__namespace.forwardRef(function (props, parent
3150
3230
  var onActivation = lockProps.onActivation,
3151
3231
  onDeactivation = lockProps.onDeactivation,
3152
3232
  restProps = __rest$a(lockProps, ["onActivation", "onDeactivation"]);
3153
- var appliedLockProps = __assign$b(__assign$b({}, restProps), {
3233
+ var appliedLockProps = __assign$a(__assign$a({}, restProps), {
3154
3234
  as: as,
3155
3235
  style: style,
3156
3236
  sideCar: sideCar,
@@ -3175,25 +3255,21 @@ var FocusOn$1 = /*#__PURE__*/React__namespace.forwardRef(function (props, parent
3175
3255
  lockProps: appliedLockProps,
3176
3256
  focusOptions: preventScrollOnFocus ? PREVENT_SCROLL : undefined,
3177
3257
  as: RemoveScroll
3178
- }, children), enabled && ( /*#__PURE__*/React__namespace.createElement(SideCar, __assign$b({}, rest, {
3258
+ }, children), enabled && (/*#__PURE__*/React__namespace.createElement(SideCar, __assign$a({}, rest, {
3179
3259
  sideCar: effectCar,
3180
3260
  setLockProps: setLockProps,
3181
3261
  shards: shards
3182
3262
  }))));
3183
3263
  });
3184
3264
 
3185
- function _setPrototypeOf(o, p) {
3186
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
3187
- o.__proto__ = p;
3188
- return o;
3189
- };
3190
- return _setPrototypeOf(o, p);
3265
+ function _setPrototypeOf(t, e) {
3266
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
3267
+ return t.__proto__ = e, t;
3268
+ }, _setPrototypeOf(t, e);
3191
3269
  }
3192
3270
 
3193
- function _inheritsLoose(subClass, superClass) {
3194
- subClass.prototype = Object.create(superClass.prototype);
3195
- subClass.prototype.constructor = subClass;
3196
- _setPrototypeOf(subClass, superClass);
3271
+ function _inheritsLoose(t, o) {
3272
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
3197
3273
  }
3198
3274
 
3199
3275
  function _typeof(o) {
@@ -3222,19 +3298,13 @@ function toPropertyKey(t) {
3222
3298
  return "symbol" == _typeof(i) ? i : i + "";
3223
3299
  }
3224
3300
 
3225
- function _defineProperty(obj, key, value) {
3226
- key = toPropertyKey(key);
3227
- if (key in obj) {
3228
- Object.defineProperty(obj, key, {
3229
- value: value,
3230
- enumerable: true,
3231
- configurable: true,
3232
- writable: true
3233
- });
3234
- } else {
3235
- obj[key] = value;
3236
- }
3237
- return obj;
3301
+ function _defineProperty(e, r, t) {
3302
+ return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
3303
+ value: t,
3304
+ enumerable: !0,
3305
+ configurable: !0,
3306
+ writable: !0
3307
+ }) : e[r] = t, e;
3238
3308
  }
3239
3309
 
3240
3310
  function withSideEffect(reducePropsToState, handleStateChangeOnClient) {
@@ -4675,6 +4745,9 @@ var alwaysContainsScroll = function alwaysContainsScroll(node) {
4675
4745
  return node.tagName === 'TEXTAREA';
4676
4746
  };
4677
4747
  var elementCanBeScrolled = function elementCanBeScrolled(node, overflow) {
4748
+ if (!(node instanceof Element)) {
4749
+ return false;
4750
+ }
4678
4751
  var styles = window.getComputedStyle(node);
4679
4752
  return (
4680
4753
  // not-not-scrollable
@@ -4700,9 +4773,9 @@ var locationCouldBeScrolled = function locationCouldBeScrolled(axis, node) {
4700
4773
  var isScrollable = elementCouldBeScrolled(axis, current);
4701
4774
  if (isScrollable) {
4702
4775
  var _a = getScrollVariables(axis, current),
4703
- s = _a[1],
4704
- d = _a[2];
4705
- if (s > d) {
4776
+ scrollHeight = _a[1],
4777
+ clientHeight = _a[2];
4778
+ if (scrollHeight > clientHeight) {
4706
4779
  return true;
4707
4780
  }
4708
4781
  }
@@ -4821,7 +4894,7 @@ function RemoveScrollSideCar(props) {
4821
4894
  return;
4822
4895
  }, [props.inert, props.lockRef.current, props.shards]);
4823
4896
  var shouldCancelEvent = React__namespace.useCallback(function (event, parent) {
4824
- if ('touches' in event && event.touches.length === 2) {
4897
+ if ('touches' in event && event.touches.length === 2 || event.type === 'wheel' && event.ctrlKey) {
4825
4898
  return !lastProps.current.allowPinchZoom;
4826
4899
  }
4827
4900
  var touch = getTouchXY(event);
@@ -5016,21 +5089,25 @@ var applyAttributeToOthers = function applyAttributeToOthers(originalTarget, par
5016
5089
  if (elementsToKeep.has(node)) {
5017
5090
  _deep(node);
5018
5091
  } else {
5019
- var attr = node.getAttribute(controlAttribute);
5020
- var alreadyHidden = attr !== null && attr !== 'false';
5021
- var counterValue = (counterMap.get(node) || 0) + 1;
5022
- var markerValue = (markerCounter.get(node) || 0) + 1;
5023
- counterMap.set(node, counterValue);
5024
- markerCounter.set(node, markerValue);
5025
- hiddenNodes.push(node);
5026
- if (counterValue === 1 && alreadyHidden) {
5027
- uncontrolledNodes.set(node, true);
5028
- }
5029
- if (markerValue === 1) {
5030
- node.setAttribute(markerName, 'true');
5031
- }
5032
- if (!alreadyHidden) {
5033
- node.setAttribute(controlAttribute, 'true');
5092
+ try {
5093
+ var attr = node.getAttribute(controlAttribute);
5094
+ var alreadyHidden = attr !== null && attr !== 'false';
5095
+ var counterValue = (counterMap.get(node) || 0) + 1;
5096
+ var markerValue = (markerCounter.get(node) || 0) + 1;
5097
+ counterMap.set(node, counterValue);
5098
+ markerCounter.set(node, markerValue);
5099
+ hiddenNodes.push(node);
5100
+ if (counterValue === 1 && alreadyHidden) {
5101
+ uncontrolledNodes.set(node, true);
5102
+ }
5103
+ if (markerValue === 1) {
5104
+ node.setAttribute(markerName, 'true');
5105
+ }
5106
+ if (!alreadyHidden) {
5107
+ node.setAttribute(controlAttribute, 'true');
5108
+ }
5109
+ } catch (e) {
5110
+ console.error('aria-hidden: cannot operate on ', node, e);
5034
5111
  }
5035
5112
  }
5036
5113
  });
@@ -5201,10 +5278,10 @@ function Effect(_a) {
5201
5278
  var SideCar = exportSidecar(effectCar, Effect);
5202
5279
 
5203
5280
  var RequireSideCar = function RequireSideCar(props) {
5204
- return /*#__PURE__*/React__namespace.createElement(SideCar, __assign$b({}, props));
5281
+ return /*#__PURE__*/React__namespace.createElement(SideCar, __assign$a({}, props));
5205
5282
  };
5206
5283
  var FocusOn = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
5207
- return /*#__PURE__*/React__namespace.createElement(FocusOn$1, __assign$b({}, props, {
5284
+ return /*#__PURE__*/React__namespace.createElement(FocusOn$1, __assign$a({}, props, {
5208
5285
  ref: ref,
5209
5286
  sideCar: RequireSideCar
5210
5287
  }));
@@ -5214,87 +5291,101 @@ var dist$3 = {};
5214
5291
 
5215
5292
  var scale = {};
5216
5293
 
5217
- (function (exports) {
5294
+ var hasRequiredScale;
5295
+ function requireScale() {
5296
+ if (hasRequiredScale) return scale;
5297
+ hasRequiredScale = 1;
5298
+ (function (exports) {
5218
5299
 
5219
- var __assign = commonjsGlobal && commonjsGlobal.__assign || function () {
5220
- __assign = Object.assign || function (t) {
5221
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5222
- s = arguments[i];
5223
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
5300
+ var __assign = scale && scale.__assign || function () {
5301
+ __assign = Object.assign || function (t) {
5302
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5303
+ s = arguments[i];
5304
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
5305
+ }
5306
+ return t;
5307
+ };
5308
+ return __assign.apply(this, arguments);
5309
+ };
5310
+ var __rest = scale && scale.__rest || function (s, e) {
5311
+ var t = {};
5312
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
5313
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5314
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
5224
5315
  }
5225
5316
  return t;
5226
5317
  };
5227
- return __assign.apply(this, arguments);
5228
- };
5229
- var __rest = commonjsGlobal && commonjsGlobal.__rest || function (s, e) {
5230
- var t = {};
5231
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
5232
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5233
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
5234
- }
5235
- return t;
5236
- };
5237
- Object.defineProperty(exports, "__esModule", {
5238
- value: true
5239
- });
5240
- exports.scale = exports.paddingBottom = exports.factor = void 0;
5241
- exports.factor = function (_a) {
5242
- var width = _a.width,
5243
- height = _a.height,
5244
- dimensions = __rest(_a, ["width", "height"]);
5245
- if ("maxHeight" in dimensions && !("maxWidth" in dimensions)) return dimensions.maxHeight / height;
5246
- if ("maxWidth" in dimensions && !("maxHeight" in dimensions)) return dimensions.maxWidth / width;
5247
- return Math.min(dimensions.maxWidth / width, dimensions.maxHeight / height);
5248
- };
5249
- exports.paddingBottom = function (_a) {
5250
- var width = _a.width,
5251
- height = _a.height;
5252
- return height / width * 100.0 + "%";
5253
- };
5254
- exports.scale = function (_a) {
5255
- var width = _a.width,
5256
- height = _a.height,
5257
- dimensions = __rest(_a, ["width", "height"]);
5258
- var scale = exports.factor(__assign({
5259
- width: width,
5260
- height: height
5261
- }, dimensions));
5262
- var scaledWidth = Math.floor(width * scale);
5263
- var scaledHeight = Math.floor(height * scale);
5264
- return {
5265
- width: scaledWidth,
5266
- height: scaledHeight,
5267
- paddingBottom: exports.paddingBottom({
5318
+ Object.defineProperty(exports, "__esModule", {
5319
+ value: true
5320
+ });
5321
+ exports.scale = exports.paddingBottom = exports.factor = void 0;
5322
+ exports.factor = function (_a) {
5323
+ var width = _a.width,
5324
+ height = _a.height,
5325
+ dimensions = __rest(_a, ["width", "height"]);
5326
+ if ("maxHeight" in dimensions && !("maxWidth" in dimensions)) return dimensions.maxHeight / height;
5327
+ if ("maxWidth" in dimensions && !("maxHeight" in dimensions)) return dimensions.maxWidth / width;
5328
+ return Math.min(dimensions.maxWidth / width, dimensions.maxHeight / height);
5329
+ };
5330
+ exports.paddingBottom = function (_a) {
5331
+ var width = _a.width,
5332
+ height = _a.height;
5333
+ return height / width * 100.0 + "%";
5334
+ };
5335
+ exports.scale = function (_a) {
5336
+ var width = _a.width,
5337
+ height = _a.height,
5338
+ dimensions = __rest(_a, ["width", "height"]);
5339
+ var scale = exports.factor(__assign({
5268
5340
  width: width,
5269
5341
  height: height
5270
- }),
5271
- scale: scale
5342
+ }, dimensions));
5343
+ var scaledWidth = Math.floor(width * scale);
5344
+ var scaledHeight = Math.floor(height * scale);
5345
+ return {
5346
+ width: scaledWidth,
5347
+ height: scaledHeight,
5348
+ paddingBottom: exports.paddingBottom({
5349
+ width: width,
5350
+ height: height
5351
+ }),
5352
+ scale: scale
5353
+ };
5272
5354
  };
5273
- };
5274
- })(scale);
5355
+ })(scale);
5356
+ return scale;
5357
+ }
5275
5358
 
5276
- (function (exports) {
5359
+ var hasRequiredDist$3;
5360
+ function requireDist$3() {
5361
+ if (hasRequiredDist$3) return dist$3;
5362
+ hasRequiredDist$3 = 1;
5363
+ (function (exports) {
5277
5364
 
5278
- var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function (o, m, k, k2) {
5279
- if (k2 === undefined) k2 = k;
5280
- Object.defineProperty(o, k2, {
5281
- enumerable: true,
5282
- get: function get() {
5283
- return m[k];
5284
- }
5365
+ var __createBinding = dist$3 && dist$3.__createBinding || (Object.create ? function (o, m, k, k2) {
5366
+ if (k2 === undefined) k2 = k;
5367
+ Object.defineProperty(o, k2, {
5368
+ enumerable: true,
5369
+ get: function get() {
5370
+ return m[k];
5371
+ }
5372
+ });
5373
+ } : function (o, m, k, k2) {
5374
+ if (k2 === undefined) k2 = k;
5375
+ o[k2] = m[k];
5285
5376
  });
5286
- } : function (o, m, k, k2) {
5287
- if (k2 === undefined) k2 = k;
5288
- o[k2] = m[k];
5289
- });
5290
- var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function (m, exports) {
5291
- for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
5292
- };
5293
- Object.defineProperty(exports, "__esModule", {
5294
- value: true
5295
- });
5296
- __exportStar(scale, exports);
5297
- })(dist$3);
5377
+ var __exportStar = dist$3 && dist$3.__exportStar || function (m, exports) {
5378
+ for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
5379
+ };
5380
+ Object.defineProperty(exports, "__esModule", {
5381
+ value: true
5382
+ });
5383
+ __exportStar(requireScale(), exports);
5384
+ })(dist$3);
5385
+ return dist$3;
5386
+ }
5387
+
5388
+ var distExports$3 = requireDist$3();
5298
5389
 
5299
5390
  var _excluded$D = ["aspectWidth", "aspectHeight", "maxWidth", "maxHeight", "outlined", "children", "className"];
5300
5391
  var DEFAULT_PRODUCT_ASPECT_WIDTH = 128;
@@ -5305,18 +5396,18 @@ var scaleDimensions = function scaleDimensions(_ref) {
5305
5396
  height = _ref.height,
5306
5397
  maxWidth = _ref.maxWidth,
5307
5398
  maxHeight = _ref.maxHeight;
5308
- if (maxWidth && maxHeight) return dist$3.scale({
5399
+ if (maxWidth && maxHeight) return distExports$3.scale({
5309
5400
  width: width,
5310
5401
  height: height,
5311
5402
  maxWidth: maxWidth,
5312
5403
  maxHeight: maxHeight
5313
5404
  });
5314
- if (maxWidth) return dist$3.scale({
5405
+ if (maxWidth) return distExports$3.scale({
5315
5406
  width: width,
5316
5407
  height: height,
5317
5408
  maxWidth: maxWidth
5318
5409
  });
5319
- if (maxHeight) return dist$3.scale({
5410
+ if (maxHeight) return distExports$3.scale({
5320
5411
  width: width,
5321
5412
  height: height,
5322
5413
  maxHeight: maxHeight
@@ -5324,7 +5415,7 @@ var scaleDimensions = function scaleDimensions(_ref) {
5324
5415
  return {
5325
5416
  width: width,
5326
5417
  height: height,
5327
- paddingBottom: dist$3.paddingBottom({
5418
+ paddingBottom: distExports$3.paddingBottom({
5328
5419
  width: width,
5329
5420
  height: height
5330
5421
  }),
@@ -5392,7 +5483,7 @@ var Breadcrumbs = function Breadcrumbs(_ref) {
5392
5483
  itemType: "http://schema.org/BreadcrumbList",
5393
5484
  className: classNames('Breadcrumbs', className)
5394
5485
  }, rest), React.Children.map(children, function (child, index) {
5395
- if ( /*#__PURE__*/React.isValidElement(child)) {
5486
+ if (/*#__PURE__*/React.isValidElement(child)) {
5396
5487
  position = position + 1;
5397
5488
  return /*#__PURE__*/React.cloneElement(child, _objectSpread2(_objectSpread2({}, child.props), {}, {
5398
5489
  key: index,
@@ -6266,7 +6357,7 @@ function _xfilter(f) {
6266
6357
  *
6267
6358
  * R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
6268
6359
  */
6269
- var filter = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
6360
+ var filter = /*#__PURE__*/_curry2(/*#__PURE__*/_dispatchable(['fantasy-land/filter', 'filter'], _xfilter, function (pred, filterable) {
6270
6361
  return _isObject(filterable) ? _arrayReduce(function (acc, key) {
6271
6362
  if (pred(filterable[key])) {
6272
6363
  acc[key] = filterable[key];
@@ -6487,7 +6578,7 @@ var _xmap = function _xmap(f) {
6487
6578
  * @symb R.map(f, { x: a, y: b }) = { x: f(a), y: f(b) }
6488
6579
  * @symb R.map(f, functor_o) = functor_o.map(f)
6489
6580
  */
6490
- var map = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
6581
+ var map = /*#__PURE__*/_curry2(/*#__PURE__*/_dispatchable(['fantasy-land/map', 'map'], _xmap, function map(fn, functor) {
6491
6582
  switch (Object.prototype.toString.call(functor)) {
6492
6583
  case '[object Function]':
6493
6584
  return curryN(functor.length, function () {
@@ -6979,7 +7070,7 @@ function _xuniqBy(f) {
6979
7070
  *
6980
7071
  * R.uniqBy(Math.abs, [-1, -5, 2, 10, 1, 2]); //=> [-1, -5, 2, 10]
6981
7072
  */
6982
- var uniqBy = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable([], _xuniqBy, function (fn, list) {
7073
+ var uniqBy = /*#__PURE__*/_curry2(/*#__PURE__*/_dispatchable([], _xuniqBy, function (fn, list) {
6983
7074
  var set = new _Set();
6984
7075
  var result = [];
6985
7076
  var idx = 0;
@@ -7081,7 +7172,7 @@ var range = /*#__PURE__*/_curry2(function range(from, to) {
7081
7172
  return result;
7082
7173
  });
7083
7174
 
7084
- var breakpointKeys = Object.keys(dist$4.breakpoints);
7175
+ var breakpointKeys = Object.keys(distExports$4.breakpoints);
7085
7176
 
7086
7177
  // eslint-disable-next-line @typescript-eslint/no-magic-numbers
7087
7178
  var ONE_PIXEL = 1 / 16;
@@ -7092,19 +7183,19 @@ var getMediaQueryBounds = function getMediaQueryBounds(_ref) {
7092
7183
  case 'at':
7093
7184
  {
7094
7185
  var prevIndex = breakpointKeys.indexOf(breakpoint) - 1;
7095
- var prevWidth = prevIndex === -1 ? 0 : parseInt(dist$4.breakpoints[breakpointKeys[prevIndex]], 10) + ONE_PIXEL;
7186
+ var prevWidth = prevIndex === -1 ? 0 : parseInt(distExports$4.breakpoints[breakpointKeys[prevIndex]], 10) + ONE_PIXEL;
7096
7187
  return {
7097
7188
  min: prevWidth,
7098
- max: parseInt(dist$4.breakpoints[breakpoint], 10)
7189
+ max: parseInt(distExports$4.breakpoints[breakpoint], 10)
7099
7190
  };
7100
7191
  }
7101
7192
  case 'gt':
7102
7193
  return {
7103
- min: parseInt(dist$4.breakpoints[breakpoint], 10) + ONE_PIXEL
7194
+ min: parseInt(distExports$4.breakpoints[breakpoint], 10) + ONE_PIXEL
7104
7195
  };
7105
7196
  case 'lt':
7106
7197
  return {
7107
- max: parseInt(dist$4.breakpoints[breakpoint], 10)
7198
+ max: parseInt(distExports$4.breakpoints[breakpoint], 10)
7108
7199
  };
7109
7200
  }
7110
7201
  };
@@ -7226,15 +7317,15 @@ var Button = function Button(_ref) {
7226
7317
  }, rest));
7227
7318
  };
7228
7319
 
7229
- var __assign$a = undefined && undefined.__assign || function () {
7230
- __assign$a = Object.assign || function (t) {
7320
+ var __assign$9 = undefined && undefined.__assign || function () {
7321
+ __assign$9 = Object.assign || function (t) {
7231
7322
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7232
7323
  s = arguments[i];
7233
7324
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7234
7325
  }
7235
7326
  return t;
7236
7327
  };
7237
- return __assign$a.apply(this, arguments);
7328
+ return __assign$9.apply(this, arguments);
7238
7329
  };
7239
7330
  var __rest$9 = undefined && undefined.__rest || function (s, e) {
7240
7331
  var t = {};
@@ -7252,7 +7343,7 @@ var Checkmark16 = function Checkmark16(_a) {
7252
7343
  _d = _a.width,
7253
7344
  width = _d === void 0 ? '16px' : _d,
7254
7345
  rest = __rest$9(_a, ["color", "height", "width"]);
7255
- var svgStyle = __assign$a({
7346
+ var svgStyle = __assign$9({
7256
7347
  "position": "absolute",
7257
7348
  "top": "0",
7258
7349
  "right": "0",
@@ -7263,8 +7354,8 @@ var Checkmark16 = function Checkmark16(_a) {
7263
7354
  }, {
7264
7355
  fill: color
7265
7356
  });
7266
- return /*#__PURE__*/React__namespace.createElement("div", __assign$a({
7267
- style: __assign$a({
7357
+ return /*#__PURE__*/React__namespace.createElement("div", __assign$9({
7358
+ style: __assign$9({
7268
7359
  "position": "relative"
7269
7360
  }, {
7270
7361
  height: height,
@@ -7279,15 +7370,15 @@ var Checkmark16 = function Checkmark16(_a) {
7279
7370
  };
7280
7371
  Checkmark16.displayName = 'Checkmark16';
7281
7372
 
7282
- var __assign$9 = undefined && undefined.__assign || function () {
7283
- __assign$9 = Object.assign || function (t) {
7373
+ var __assign$8 = undefined && undefined.__assign || function () {
7374
+ __assign$8 = Object.assign || function (t) {
7284
7375
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7285
7376
  s = arguments[i];
7286
7377
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7287
7378
  }
7288
7379
  return t;
7289
7380
  };
7290
- return __assign$9.apply(this, arguments);
7381
+ return __assign$8.apply(this, arguments);
7291
7382
  };
7292
7383
  var __rest$8 = undefined && undefined.__rest || function (s, e) {
7293
7384
  var t = {};
@@ -7305,7 +7396,7 @@ var Circle12 = function Circle12(_a) {
7305
7396
  _d = _a.width,
7306
7397
  width = _d === void 0 ? '12px' : _d,
7307
7398
  rest = __rest$8(_a, ["color", "height", "width"]);
7308
- var svgStyle = __assign$9({
7399
+ var svgStyle = __assign$8({
7309
7400
  "position": "absolute",
7310
7401
  "top": "0",
7311
7402
  "right": "0",
@@ -7316,8 +7407,8 @@ var Circle12 = function Circle12(_a) {
7316
7407
  }, {
7317
7408
  fill: color
7318
7409
  });
7319
- return /*#__PURE__*/React__namespace.createElement("div", __assign$9({
7320
- style: __assign$9({
7410
+ return /*#__PURE__*/React__namespace.createElement("div", __assign$8({
7411
+ style: __assign$8({
7321
7412
  "position": "relative"
7322
7413
  }, {
7323
7414
  height: height,
@@ -7573,7 +7664,7 @@ var ModalOverlay = function ModalOverlay(_ref) {
7573
7664
  };
7574
7665
  }, [element]);
7575
7666
  if (!element) return null;
7576
- return /*#__PURE__*/require$$1.createPortal( /*#__PURE__*/React.createElement(Overlay, _extends$1({
7667
+ return /*#__PURE__*/require$$1.createPortal(/*#__PURE__*/React.createElement(Overlay, _extends$1({
7577
7668
  className: classNames('ModalOverlay', overlayClassName),
7578
7669
  show: show
7579
7670
  }, rest), /*#__PURE__*/React.createElement(Modal, {
@@ -7602,7 +7693,7 @@ var Text = function Text(_ref) {
7602
7693
  return /*#__PURE__*/React.createElement(Component, _extends$1({
7603
7694
  className: classNames("Text Text--".concat(treatment, " ").concat(family ? "Text--".concat(family) : ''), className),
7604
7695
  style: _objectSpread2({
7605
- color: dist$4.colors.all[color]
7696
+ color: distExports$4.colors.all[color]
7606
7697
  }, style)
7607
7698
  }, rest), children);
7608
7699
  };
@@ -9293,377 +9384,430 @@ function requireReactInputMask_development() {
9293
9384
  return reactInputMask_development;
9294
9385
  }
9295
9386
 
9296
- if (process.env.NODE_ENV === 'production') {
9297
- reactInputMask.exports = requireReactInputMask_production_min();
9298
- } else {
9299
- reactInputMask.exports = requireReactInputMask_development();
9387
+ var hasRequiredReactInputMask;
9388
+ function requireReactInputMask() {
9389
+ if (hasRequiredReactInputMask) return reactInputMask.exports;
9390
+ hasRequiredReactInputMask = 1;
9391
+ if (process.env.NODE_ENV === 'production') {
9392
+ reactInputMask.exports = requireReactInputMask_production_min();
9393
+ } else {
9394
+ reactInputMask.exports = requireReactInputMask_development();
9395
+ }
9396
+ return reactInputMask.exports;
9300
9397
  }
9301
- var reactInputMaskExports = reactInputMask.exports;
9398
+
9399
+ var reactInputMaskExports = requireReactInputMask();
9302
9400
  var InputMask = /*@__PURE__*/getDefaultExportFromCjs(reactInputMaskExports);
9303
9401
 
9304
- var cardTypes$1 = {
9305
- visa: {
9306
- niceType: "Visa",
9307
- type: "visa",
9308
- patterns: [4],
9309
- gaps: [4, 8, 12],
9310
- lengths: [16, 18, 19],
9311
- code: {
9312
- name: "CVV",
9313
- size: 3
9314
- }
9315
- },
9316
- mastercard: {
9317
- niceType: "Mastercard",
9318
- type: "mastercard",
9319
- patterns: [[51, 55], [2221, 2229], [223, 229], [23, 26], [270, 271], 2720],
9320
- gaps: [4, 8, 12],
9321
- lengths: [16],
9322
- code: {
9323
- name: "CVC",
9324
- size: 3
9325
- }
9326
- },
9327
- "american-express": {
9328
- niceType: "American Express",
9329
- type: "american-express",
9330
- patterns: [34, 37],
9331
- gaps: [4, 10],
9332
- lengths: [15],
9333
- code: {
9334
- name: "CID",
9335
- size: 4
9336
- }
9337
- },
9338
- "diners-club": {
9339
- niceType: "Diners Club",
9340
- type: "diners-club",
9341
- patterns: [[300, 305], 36, 38, 39],
9342
- gaps: [4, 10],
9343
- lengths: [14, 16, 19],
9344
- code: {
9345
- name: "CVV",
9346
- size: 3
9347
- }
9348
- },
9349
- discover: {
9350
- niceType: "Discover",
9351
- type: "discover",
9352
- patterns: [6011, [644, 649], 65],
9353
- gaps: [4, 8, 12],
9354
- lengths: [16, 19],
9355
- code: {
9356
- name: "CID",
9357
- size: 3
9358
- }
9359
- },
9360
- jcb: {
9361
- niceType: "JCB",
9362
- type: "jcb",
9363
- patterns: [2131, 1800, [3528, 3589]],
9364
- gaps: [4, 8, 12],
9365
- lengths: [16, 17, 18, 19],
9366
- code: {
9367
- name: "CVV",
9368
- size: 3
9369
- }
9370
- },
9371
- unionpay: {
9372
- niceType: "UnionPay",
9373
- type: "unionpay",
9374
- patterns: [620, [62100, 62182], [62184, 62187], [62185, 62197], [62200, 62205], [622010, 622999], 622018, [62207, 62209], [623, 626], 6270, 6272, 6276, [627700, 627779], [627781, 627799], [6282, 6289], 6291, 6292, 810, [8110, 8131], [8132, 8151], [8152, 8163], [8164, 8171]],
9375
- gaps: [4, 8, 12],
9376
- lengths: [14, 15, 16, 17, 18, 19],
9377
- code: {
9378
- name: "CVN",
9379
- size: 3
9380
- }
9381
- },
9382
- maestro: {
9383
- niceType: "Maestro",
9384
- type: "maestro",
9385
- patterns: [493698, [500000, 504174], [504176, 506698], [506779, 508999], [56, 59], 63, 67, 6],
9386
- gaps: [4, 8, 12],
9387
- lengths: [12, 13, 14, 15, 16, 17, 18, 19],
9388
- code: {
9389
- name: "CVC",
9390
- size: 3
9391
- }
9392
- },
9393
- elo: {
9394
- niceType: "Elo",
9395
- type: "elo",
9396
- patterns: [401178, 401179, 438935, 457631, 457632, 431274, 451416, 457393, 504175, [506699, 506778], [509000, 509999], 627780, 636297, 636368, [650031, 650033], [650035, 650051], [650405, 650439], [650485, 650538], [650541, 650598], [650700, 650718], [650720, 650727], [650901, 650978], [651652, 651679], [655000, 655019], [655021, 655058]],
9397
- gaps: [4, 8, 12],
9398
- lengths: [16],
9399
- code: {
9400
- name: "CVE",
9401
- size: 3
9402
- }
9403
- },
9404
- mir: {
9405
- niceType: "Mir",
9406
- type: "mir",
9407
- patterns: [[2200, 2204]],
9408
- gaps: [4, 8, 12],
9409
- lengths: [16, 17, 18, 19],
9410
- code: {
9411
- name: "CVP2",
9412
- size: 3
9413
- }
9414
- },
9415
- hiper: {
9416
- niceType: "Hiper",
9417
- type: "hiper",
9418
- patterns: [637095, 63737423, 63743358, 637568, 637599, 637609, 637612],
9419
- gaps: [4, 8, 12],
9420
- lengths: [16],
9421
- code: {
9422
- name: "CVC",
9423
- size: 3
9424
- }
9425
- },
9426
- hipercard: {
9427
- niceType: "Hipercard",
9428
- type: "hipercard",
9429
- patterns: [606282],
9430
- gaps: [4, 8, 12],
9431
- lengths: [16],
9432
- code: {
9433
- name: "CVC",
9434
- size: 3
9402
+ var cardTypes_1;
9403
+ var hasRequiredCardTypes;
9404
+ function requireCardTypes() {
9405
+ if (hasRequiredCardTypes) return cardTypes_1;
9406
+ hasRequiredCardTypes = 1;
9407
+ var cardTypes = {
9408
+ visa: {
9409
+ niceType: "Visa",
9410
+ type: "visa",
9411
+ patterns: [4],
9412
+ gaps: [4, 8, 12],
9413
+ lengths: [16, 18, 19],
9414
+ code: {
9415
+ name: "CVV",
9416
+ size: 3
9417
+ }
9418
+ },
9419
+ mastercard: {
9420
+ niceType: "Mastercard",
9421
+ type: "mastercard",
9422
+ patterns: [[51, 55], [2221, 2229], [223, 229], [23, 26], [270, 271], 2720],
9423
+ gaps: [4, 8, 12],
9424
+ lengths: [16],
9425
+ code: {
9426
+ name: "CVC",
9427
+ size: 3
9428
+ }
9429
+ },
9430
+ "american-express": {
9431
+ niceType: "American Express",
9432
+ type: "american-express",
9433
+ patterns: [34, 37],
9434
+ gaps: [4, 10],
9435
+ lengths: [15],
9436
+ code: {
9437
+ name: "CID",
9438
+ size: 4
9439
+ }
9440
+ },
9441
+ "diners-club": {
9442
+ niceType: "Diners Club",
9443
+ type: "diners-club",
9444
+ patterns: [[300, 305], 36, 38, 39],
9445
+ gaps: [4, 10],
9446
+ lengths: [14, 16, 19],
9447
+ code: {
9448
+ name: "CVV",
9449
+ size: 3
9450
+ }
9451
+ },
9452
+ discover: {
9453
+ niceType: "Discover",
9454
+ type: "discover",
9455
+ patterns: [6011, [644, 649], 65],
9456
+ gaps: [4, 8, 12],
9457
+ lengths: [16, 19],
9458
+ code: {
9459
+ name: "CID",
9460
+ size: 3
9461
+ }
9462
+ },
9463
+ jcb: {
9464
+ niceType: "JCB",
9465
+ type: "jcb",
9466
+ patterns: [2131, 1800, [3528, 3589]],
9467
+ gaps: [4, 8, 12],
9468
+ lengths: [16, 17, 18, 19],
9469
+ code: {
9470
+ name: "CVV",
9471
+ size: 3
9472
+ }
9473
+ },
9474
+ unionpay: {
9475
+ niceType: "UnionPay",
9476
+ type: "unionpay",
9477
+ patterns: [620, [62100, 62182], [62184, 62187], [62185, 62197], [62200, 62205], [622010, 622999], 622018, [62207, 62209], [623, 626], 6270, 6272, 6276, [627700, 627779], [627781, 627799], [6282, 6289], 6291, 6292, 810, [8110, 8131], [8132, 8151], [8152, 8163], [8164, 8171]],
9478
+ gaps: [4, 8, 12],
9479
+ lengths: [14, 15, 16, 17, 18, 19],
9480
+ code: {
9481
+ name: "CVN",
9482
+ size: 3
9483
+ }
9484
+ },
9485
+ maestro: {
9486
+ niceType: "Maestro",
9487
+ type: "maestro",
9488
+ patterns: [493698, [500000, 504174], [504176, 506698], [506779, 508999], [56, 59], 63, 67, 6],
9489
+ gaps: [4, 8, 12],
9490
+ lengths: [12, 13, 14, 15, 16, 17, 18, 19],
9491
+ code: {
9492
+ name: "CVC",
9493
+ size: 3
9494
+ }
9495
+ },
9496
+ elo: {
9497
+ niceType: "Elo",
9498
+ type: "elo",
9499
+ patterns: [401178, 401179, 438935, 457631, 457632, 431274, 451416, 457393, 504175, [506699, 506778], [509000, 509999], 627780, 636297, 636368, [650031, 650033], [650035, 650051], [650405, 650439], [650485, 650538], [650541, 650598], [650700, 650718], [650720, 650727], [650901, 650978], [651652, 651679], [655000, 655019], [655021, 655058]],
9500
+ gaps: [4, 8, 12],
9501
+ lengths: [16],
9502
+ code: {
9503
+ name: "CVE",
9504
+ size: 3
9505
+ }
9506
+ },
9507
+ mir: {
9508
+ niceType: "Mir",
9509
+ type: "mir",
9510
+ patterns: [[2200, 2204]],
9511
+ gaps: [4, 8, 12],
9512
+ lengths: [16, 17, 18, 19],
9513
+ code: {
9514
+ name: "CVP2",
9515
+ size: 3
9516
+ }
9517
+ },
9518
+ hiper: {
9519
+ niceType: "Hiper",
9520
+ type: "hiper",
9521
+ patterns: [637095, 63737423, 63743358, 637568, 637599, 637609, 637612],
9522
+ gaps: [4, 8, 12],
9523
+ lengths: [16],
9524
+ code: {
9525
+ name: "CVC",
9526
+ size: 3
9527
+ }
9528
+ },
9529
+ hipercard: {
9530
+ niceType: "Hipercard",
9531
+ type: "hipercard",
9532
+ patterns: [606282],
9533
+ gaps: [4, 8, 12],
9534
+ lengths: [16],
9535
+ code: {
9536
+ name: "CVC",
9537
+ size: 3
9538
+ }
9435
9539
  }
9436
- }
9437
- };
9438
- var cardTypes_1 = cardTypes$1;
9540
+ };
9541
+ cardTypes_1 = cardTypes;
9542
+ return cardTypes_1;
9543
+ }
9439
9544
 
9440
- var addMatchingCardsToResults$1 = {};
9545
+ var addMatchingCardsToResults = {};
9441
9546
 
9442
- var clone$1 = {};
9547
+ var clone = {};
9443
9548
 
9444
- Object.defineProperty(clone$1, "__esModule", {
9445
- value: true
9446
- });
9447
- clone$1.clone = void 0;
9448
- function clone(originalObject) {
9449
- if (!originalObject) {
9450
- return null;
9549
+ var hasRequiredClone;
9550
+ function requireClone() {
9551
+ if (hasRequiredClone) return clone;
9552
+ hasRequiredClone = 1;
9553
+ Object.defineProperty(clone, "__esModule", {
9554
+ value: true
9555
+ });
9556
+ clone.clone = void 0;
9557
+ function clone$1(originalObject) {
9558
+ if (!originalObject) {
9559
+ return null;
9560
+ }
9561
+ return JSON.parse(JSON.stringify(originalObject));
9451
9562
  }
9452
- return JSON.parse(JSON.stringify(originalObject));
9563
+ clone.clone = clone$1;
9564
+ return clone;
9453
9565
  }
9454
- clone$1.clone = clone;
9455
9566
 
9456
- var matches$1 = {};
9567
+ var matches = {};
9457
9568
 
9458
- /*
9459
- * Adapted from https://github.com/polvo-labs/card-type/blob/aaab11f80fa1939bccc8f24905a06ae3cd864356/src/cardType.js#L37-L42
9460
- * */
9461
- Object.defineProperty(matches$1, "__esModule", {
9462
- value: true
9463
- });
9464
- matches$1.matches = void 0;
9465
- function matchesRange(cardNumber, min, max) {
9466
- var maxLengthToCheck = String(min).length;
9467
- var substr = cardNumber.substr(0, maxLengthToCheck);
9468
- var integerRepresentationOfCardNumber = parseInt(substr, 10);
9469
- min = parseInt(String(min).substr(0, substr.length), 10);
9470
- max = parseInt(String(max).substr(0, substr.length), 10);
9471
- return integerRepresentationOfCardNumber >= min && integerRepresentationOfCardNumber <= max;
9472
- }
9473
- function matchesPattern(cardNumber, pattern) {
9474
- pattern = String(pattern);
9475
- return pattern.substring(0, cardNumber.length) === cardNumber.substring(0, pattern.length);
9476
- }
9477
- function matches(cardNumber, pattern) {
9478
- if (Array.isArray(pattern)) {
9479
- return matchesRange(cardNumber, pattern[0], pattern[1]);
9569
+ var hasRequiredMatches;
9570
+ function requireMatches() {
9571
+ if (hasRequiredMatches) return matches;
9572
+ hasRequiredMatches = 1;
9573
+ /*
9574
+ * Adapted from https://github.com/polvo-labs/card-type/blob/aaab11f80fa1939bccc8f24905a06ae3cd864356/src/cardType.js#L37-L42
9575
+ * */
9576
+ Object.defineProperty(matches, "__esModule", {
9577
+ value: true
9578
+ });
9579
+ matches.matches = void 0;
9580
+ function matchesRange(cardNumber, min, max) {
9581
+ var maxLengthToCheck = String(min).length;
9582
+ var substr = cardNumber.substr(0, maxLengthToCheck);
9583
+ var integerRepresentationOfCardNumber = parseInt(substr, 10);
9584
+ min = parseInt(String(min).substr(0, substr.length), 10);
9585
+ max = parseInt(String(max).substr(0, substr.length), 10);
9586
+ return integerRepresentationOfCardNumber >= min && integerRepresentationOfCardNumber <= max;
9587
+ }
9588
+ function matchesPattern(cardNumber, pattern) {
9589
+ pattern = String(pattern);
9590
+ return pattern.substring(0, cardNumber.length) === cardNumber.substring(0, pattern.length);
9591
+ }
9592
+ function matches$1(cardNumber, pattern) {
9593
+ if (Array.isArray(pattern)) {
9594
+ return matchesRange(cardNumber, pattern[0], pattern[1]);
9595
+ }
9596
+ return matchesPattern(cardNumber, pattern);
9480
9597
  }
9481
- return matchesPattern(cardNumber, pattern);
9598
+ matches.matches = matches$1;
9599
+ return matches;
9482
9600
  }
9483
- matches$1.matches = matches;
9484
9601
 
9485
- Object.defineProperty(addMatchingCardsToResults$1, "__esModule", {
9486
- value: true
9487
- });
9488
- addMatchingCardsToResults$1.addMatchingCardsToResults = void 0;
9489
- var clone_1$1 = clone$1;
9490
- var matches_1 = matches$1;
9491
- function addMatchingCardsToResults(cardNumber, cardConfiguration, results) {
9492
- var i, patternLength;
9493
- for (i = 0; i < cardConfiguration.patterns.length; i++) {
9494
- var pattern = cardConfiguration.patterns[i];
9495
- if (!(0, matches_1.matches)(cardNumber, pattern)) {
9496
- continue;
9497
- }
9498
- var clonedCardConfiguration = (0, clone_1$1.clone)(cardConfiguration);
9499
- if (Array.isArray(pattern)) {
9500
- patternLength = String(pattern[0]).length;
9501
- } else {
9502
- patternLength = String(pattern).length;
9503
- }
9504
- if (cardNumber.length >= patternLength) {
9505
- clonedCardConfiguration.matchStrength = patternLength;
9602
+ var hasRequiredAddMatchingCardsToResults;
9603
+ function requireAddMatchingCardsToResults() {
9604
+ if (hasRequiredAddMatchingCardsToResults) return addMatchingCardsToResults;
9605
+ hasRequiredAddMatchingCardsToResults = 1;
9606
+ Object.defineProperty(addMatchingCardsToResults, "__esModule", {
9607
+ value: true
9608
+ });
9609
+ addMatchingCardsToResults.addMatchingCardsToResults = void 0;
9610
+ var clone_1 = requireClone();
9611
+ var matches_1 = requireMatches();
9612
+ function addMatchingCardsToResults$1(cardNumber, cardConfiguration, results) {
9613
+ var i, patternLength;
9614
+ for (i = 0; i < cardConfiguration.patterns.length; i++) {
9615
+ var pattern = cardConfiguration.patterns[i];
9616
+ if (!(0, matches_1.matches)(cardNumber, pattern)) {
9617
+ continue;
9618
+ }
9619
+ var clonedCardConfiguration = (0, clone_1.clone)(cardConfiguration);
9620
+ if (Array.isArray(pattern)) {
9621
+ patternLength = String(pattern[0]).length;
9622
+ } else {
9623
+ patternLength = String(pattern).length;
9624
+ }
9625
+ if (cardNumber.length >= patternLength) {
9626
+ clonedCardConfiguration.matchStrength = patternLength;
9627
+ }
9628
+ results.push(clonedCardConfiguration);
9629
+ break;
9506
9630
  }
9507
- results.push(clonedCardConfiguration);
9508
- break;
9509
9631
  }
9632
+ addMatchingCardsToResults.addMatchingCardsToResults = addMatchingCardsToResults$1;
9633
+ return addMatchingCardsToResults;
9510
9634
  }
9511
- addMatchingCardsToResults$1.addMatchingCardsToResults = addMatchingCardsToResults;
9512
9635
 
9513
- var isValidInputType$1 = {};
9636
+ var isValidInputType = {};
9514
9637
 
9515
- Object.defineProperty(isValidInputType$1, "__esModule", {
9516
- value: true
9517
- });
9518
- isValidInputType$1.isValidInputType = void 0;
9519
- function isValidInputType(cardNumber) {
9520
- return typeof cardNumber === "string" || cardNumber instanceof String;
9638
+ var hasRequiredIsValidInputType;
9639
+ function requireIsValidInputType() {
9640
+ if (hasRequiredIsValidInputType) return isValidInputType;
9641
+ hasRequiredIsValidInputType = 1;
9642
+ Object.defineProperty(isValidInputType, "__esModule", {
9643
+ value: true
9644
+ });
9645
+ isValidInputType.isValidInputType = void 0;
9646
+ function isValidInputType$1(cardNumber) {
9647
+ return typeof cardNumber === "string" || cardNumber instanceof String;
9648
+ }
9649
+ isValidInputType.isValidInputType = isValidInputType$1;
9650
+ return isValidInputType;
9521
9651
  }
9522
- isValidInputType$1.isValidInputType = isValidInputType;
9523
9652
 
9524
- var findBestMatch$1 = {};
9653
+ var findBestMatch = {};
9525
9654
 
9526
- Object.defineProperty(findBestMatch$1, "__esModule", {
9527
- value: true
9528
- });
9529
- findBestMatch$1.findBestMatch = void 0;
9530
- function hasEnoughResultsToDetermineBestMatch(results) {
9531
- var numberOfResultsWithMaxStrengthProperty = results.filter(function (result) {
9532
- return result.matchStrength;
9533
- }).length;
9534
- /*
9535
- * if all possible results have a maxStrength property that means the card
9536
- * number is sufficiently long enough to determine conclusively what the card
9537
- * type is
9538
- * */
9539
- return numberOfResultsWithMaxStrengthProperty > 0 && numberOfResultsWithMaxStrengthProperty === results.length;
9540
- }
9541
- function findBestMatch(results) {
9542
- if (!hasEnoughResultsToDetermineBestMatch(results)) {
9543
- return null;
9544
- }
9545
- return results.reduce(function (bestMatch, result) {
9546
- if (!bestMatch) {
9547
- return result;
9548
- }
9655
+ var hasRequiredFindBestMatch;
9656
+ function requireFindBestMatch() {
9657
+ if (hasRequiredFindBestMatch) return findBestMatch;
9658
+ hasRequiredFindBestMatch = 1;
9659
+ Object.defineProperty(findBestMatch, "__esModule", {
9660
+ value: true
9661
+ });
9662
+ findBestMatch.findBestMatch = void 0;
9663
+ function hasEnoughResultsToDetermineBestMatch(results) {
9664
+ var numberOfResultsWithMaxStrengthProperty = results.filter(function (result) {
9665
+ return result.matchStrength;
9666
+ }).length;
9549
9667
  /*
9550
- * If the current best match pattern is less specific than this result, set
9551
- * the result as the new best match
9668
+ * if all possible results have a maxStrength property that means the card
9669
+ * number is sufficiently long enough to determine conclusively what the card
9670
+ * type is
9552
9671
  * */
9553
- if (Number(bestMatch.matchStrength) < Number(result.matchStrength)) {
9554
- return result;
9672
+ return numberOfResultsWithMaxStrengthProperty > 0 && numberOfResultsWithMaxStrengthProperty === results.length;
9673
+ }
9674
+ function findBestMatch$1(results) {
9675
+ if (!hasEnoughResultsToDetermineBestMatch(results)) {
9676
+ return null;
9555
9677
  }
9556
- return bestMatch;
9557
- });
9678
+ return results.reduce(function (bestMatch, result) {
9679
+ if (!bestMatch) {
9680
+ return result;
9681
+ }
9682
+ /*
9683
+ * If the current best match pattern is less specific than this result, set
9684
+ * the result as the new best match
9685
+ * */
9686
+ if (Number(bestMatch.matchStrength) < Number(result.matchStrength)) {
9687
+ return result;
9688
+ }
9689
+ return bestMatch;
9690
+ });
9691
+ }
9692
+ findBestMatch.findBestMatch = findBestMatch$1;
9693
+ return findBestMatch;
9558
9694
  }
9559
- findBestMatch$1.findBestMatch = findBestMatch;
9560
9695
 
9561
- var __assign$8 = commonjsGlobal && commonjsGlobal.__assign || function () {
9562
- __assign$8 = Object.assign || function (t) {
9563
- for (var s, i = 1, n = arguments.length; i < n; i++) {
9564
- s = arguments[i];
9565
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9566
- }
9567
- return t;
9696
+ var dist$2;
9697
+ var hasRequiredDist$2;
9698
+ function requireDist$2() {
9699
+ if (hasRequiredDist$2) return dist$2;
9700
+ hasRequiredDist$2 = 1;
9701
+ var __assign = dist$2 && dist$2.__assign || function () {
9702
+ __assign = Object.assign || function (t) {
9703
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
9704
+ s = arguments[i];
9705
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
9706
+ }
9707
+ return t;
9708
+ };
9709
+ return __assign.apply(this, arguments);
9568
9710
  };
9569
- return __assign$8.apply(this, arguments);
9570
- };
9571
- var cardTypes = cardTypes_1;
9572
- var add_matching_cards_to_results_1 = addMatchingCardsToResults$1;
9573
- var is_valid_input_type_1 = isValidInputType$1;
9574
- var find_best_match_1 = findBestMatch$1;
9575
- var clone_1 = clone$1;
9576
- var customCards = {};
9577
- var cardNames = {
9578
- VISA: "visa",
9579
- MASTERCARD: "mastercard",
9580
- AMERICAN_EXPRESS: "american-express",
9581
- DINERS_CLUB: "diners-club",
9582
- DISCOVER: "discover",
9583
- JCB: "jcb",
9584
- UNIONPAY: "unionpay",
9585
- MAESTRO: "maestro",
9586
- ELO: "elo",
9587
- MIR: "mir",
9588
- HIPER: "hiper",
9589
- HIPERCARD: "hipercard"
9590
- };
9591
- var ORIGINAL_TEST_ORDER = [cardNames.VISA, cardNames.MASTERCARD, cardNames.AMERICAN_EXPRESS, cardNames.DINERS_CLUB, cardNames.DISCOVER, cardNames.JCB, cardNames.UNIONPAY, cardNames.MAESTRO, cardNames.ELO, cardNames.MIR, cardNames.HIPER, cardNames.HIPERCARD];
9592
- var testOrder = (0, clone_1.clone)(ORIGINAL_TEST_ORDER);
9593
- function findType(cardType) {
9594
- return customCards[cardType] || cardTypes[cardType];
9595
- }
9596
- function getAllCardTypes() {
9597
- return testOrder.map(function (cardType) {
9598
- return (0, clone_1.clone)(findType(cardType));
9599
- });
9600
- }
9601
- function getCardPosition(name, ignoreErrorForNotExisting) {
9602
- if (ignoreErrorForNotExisting === void 0) {
9603
- ignoreErrorForNotExisting = false;
9711
+ var cardTypes = requireCardTypes();
9712
+ var add_matching_cards_to_results_1 = requireAddMatchingCardsToResults();
9713
+ var is_valid_input_type_1 = requireIsValidInputType();
9714
+ var find_best_match_1 = requireFindBestMatch();
9715
+ var clone_1 = requireClone();
9716
+ var customCards = {};
9717
+ var cardNames = {
9718
+ VISA: "visa",
9719
+ MASTERCARD: "mastercard",
9720
+ AMERICAN_EXPRESS: "american-express",
9721
+ DINERS_CLUB: "diners-club",
9722
+ DISCOVER: "discover",
9723
+ JCB: "jcb",
9724
+ UNIONPAY: "unionpay",
9725
+ MAESTRO: "maestro",
9726
+ ELO: "elo",
9727
+ MIR: "mir",
9728
+ HIPER: "hiper",
9729
+ HIPERCARD: "hipercard"
9730
+ };
9731
+ var ORIGINAL_TEST_ORDER = [cardNames.VISA, cardNames.MASTERCARD, cardNames.AMERICAN_EXPRESS, cardNames.DINERS_CLUB, cardNames.DISCOVER, cardNames.JCB, cardNames.UNIONPAY, cardNames.MAESTRO, cardNames.ELO, cardNames.MIR, cardNames.HIPER, cardNames.HIPERCARD];
9732
+ var testOrder = (0, clone_1.clone)(ORIGINAL_TEST_ORDER);
9733
+ function findType(cardType) {
9734
+ return customCards[cardType] || cardTypes[cardType];
9735
+ }
9736
+ function getAllCardTypes() {
9737
+ return testOrder.map(function (cardType) {
9738
+ return (0, clone_1.clone)(findType(cardType));
9739
+ });
9604
9740
  }
9605
- var position = testOrder.indexOf(name);
9606
- if (!ignoreErrorForNotExisting && position === -1) {
9607
- throw new Error('"' + name + '" is not a supported card type.');
9741
+ function getCardPosition(name, ignoreErrorForNotExisting) {
9742
+ if (ignoreErrorForNotExisting === void 0) {
9743
+ ignoreErrorForNotExisting = false;
9744
+ }
9745
+ var position = testOrder.indexOf(name);
9746
+ if (!ignoreErrorForNotExisting && position === -1) {
9747
+ throw new Error('"' + name + '" is not a supported card type.');
9748
+ }
9749
+ return position;
9608
9750
  }
9609
- return position;
9610
- }
9611
- function creditCardType(cardNumber) {
9612
- var results = [];
9613
- if (!(0, is_valid_input_type_1.isValidInputType)(cardNumber)) {
9751
+ function creditCardType(cardNumber) {
9752
+ var results = [];
9753
+ if (!(0, is_valid_input_type_1.isValidInputType)(cardNumber)) {
9754
+ return results;
9755
+ }
9756
+ if (cardNumber.length === 0) {
9757
+ return getAllCardTypes();
9758
+ }
9759
+ testOrder.forEach(function (cardType) {
9760
+ var cardConfiguration = findType(cardType);
9761
+ (0, add_matching_cards_to_results_1.addMatchingCardsToResults)(cardNumber, cardConfiguration, results);
9762
+ });
9763
+ var bestMatch = (0, find_best_match_1.findBestMatch)(results);
9764
+ if (bestMatch) {
9765
+ return [bestMatch];
9766
+ }
9614
9767
  return results;
9615
9768
  }
9616
- if (cardNumber.length === 0) {
9617
- return getAllCardTypes();
9618
- }
9619
- testOrder.forEach(function (cardType) {
9620
- var cardConfiguration = findType(cardType);
9621
- (0, add_matching_cards_to_results_1.addMatchingCardsToResults)(cardNumber, cardConfiguration, results);
9622
- });
9623
- var bestMatch = (0, find_best_match_1.findBestMatch)(results);
9624
- if (bestMatch) {
9625
- return [bestMatch];
9626
- }
9627
- return results;
9769
+ creditCardType.getTypeInfo = function (cardType) {
9770
+ return (0, clone_1.clone)(findType(cardType));
9771
+ };
9772
+ creditCardType.removeCard = function (name) {
9773
+ var position = getCardPosition(name);
9774
+ testOrder.splice(position, 1);
9775
+ };
9776
+ creditCardType.addCard = function (config) {
9777
+ var existingCardPosition = getCardPosition(config.type, true);
9778
+ customCards[config.type] = config;
9779
+ if (existingCardPosition === -1) {
9780
+ testOrder.push(config.type);
9781
+ }
9782
+ };
9783
+ creditCardType.updateCard = function (cardType, updates) {
9784
+ var originalObject = customCards[cardType] || cardTypes[cardType];
9785
+ if (!originalObject) {
9786
+ throw new Error("\"".concat(cardType, "\" is not a recognized type. Use `addCard` instead.'"));
9787
+ }
9788
+ if (updates.type && originalObject.type !== updates.type) {
9789
+ throw new Error("Cannot overwrite type parameter.");
9790
+ }
9791
+ var clonedCard = (0, clone_1.clone)(originalObject);
9792
+ clonedCard = __assign(__assign({}, clonedCard), updates);
9793
+ customCards[clonedCard.type] = clonedCard;
9794
+ };
9795
+ creditCardType.changeOrder = function (name, position) {
9796
+ var currentPosition = getCardPosition(name);
9797
+ testOrder.splice(currentPosition, 1);
9798
+ testOrder.splice(position, 0, name);
9799
+ };
9800
+ creditCardType.resetModifications = function () {
9801
+ testOrder = (0, clone_1.clone)(ORIGINAL_TEST_ORDER);
9802
+ customCards = {};
9803
+ };
9804
+ creditCardType.types = cardNames;
9805
+ dist$2 = creditCardType;
9806
+ return dist$2;
9628
9807
  }
9629
- creditCardType.getTypeInfo = function (cardType) {
9630
- return (0, clone_1.clone)(findType(cardType));
9631
- };
9632
- creditCardType.removeCard = function (name) {
9633
- var position = getCardPosition(name);
9634
- testOrder.splice(position, 1);
9635
- };
9636
- creditCardType.addCard = function (config) {
9637
- var existingCardPosition = getCardPosition(config.type, true);
9638
- customCards[config.type] = config;
9639
- if (existingCardPosition === -1) {
9640
- testOrder.push(config.type);
9641
- }
9642
- };
9643
- creditCardType.updateCard = function (cardType, updates) {
9644
- var originalObject = customCards[cardType] || cardTypes[cardType];
9645
- if (!originalObject) {
9646
- throw new Error("\"".concat(cardType, "\" is not a recognized type. Use `addCard` instead.'"));
9647
- }
9648
- if (updates.type && originalObject.type !== updates.type) {
9649
- throw new Error("Cannot overwrite type parameter.");
9650
- }
9651
- var clonedCard = (0, clone_1.clone)(originalObject);
9652
- clonedCard = __assign$8(__assign$8({}, clonedCard), updates);
9653
- customCards[clonedCard.type] = clonedCard;
9654
- };
9655
- creditCardType.changeOrder = function (name, position) {
9656
- var currentPosition = getCardPosition(name);
9657
- testOrder.splice(currentPosition, 1);
9658
- testOrder.splice(position, 0, name);
9659
- };
9660
- creditCardType.resetModifications = function () {
9661
- testOrder = (0, clone_1.clone)(ORIGINAL_TEST_ORDER);
9662
- customCards = {};
9663
- };
9664
- creditCardType.types = cardNames;
9665
- var dist$2 = creditCardType;
9666
- var creditCardType$1 = /*@__PURE__*/getDefaultExportFromCjs(dist$2);
9808
+
9809
+ var distExports$2 = requireDist$2();
9810
+ var creditCardType = /*@__PURE__*/getDefaultExportFromCjs(distExports$2);
9667
9811
 
9668
9812
  var __assign$7 = undefined && undefined.__assign || function () {
9669
9813
  __assign$7 = Object.assign || function (t) {
@@ -9857,27 +10001,41 @@ var dist$1 = {};
9857
10001
 
9858
10002
  var mapCursorToMax = {};
9859
10003
 
9860
- Object.defineProperty(mapCursorToMax, "__esModule", {
9861
- value: true
9862
- });
9863
- mapCursorToMax.mapCursorToMax = function (cursor, max) {
9864
- if (max === 0) return 0;
9865
- if (cursor >= 0) return cursor % max;
9866
- var modulo = cursor % max;
9867
- if (modulo === 0) return Math.abs(modulo); // -0
9868
- return modulo + max;
9869
- };
9870
-
9871
- (function (exports) {
9872
-
9873
- function __export(m) {
9874
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
9875
- }
9876
- Object.defineProperty(exports, "__esModule", {
10004
+ var hasRequiredMapCursorToMax;
10005
+ function requireMapCursorToMax() {
10006
+ if (hasRequiredMapCursorToMax) return mapCursorToMax;
10007
+ hasRequiredMapCursorToMax = 1;
10008
+ Object.defineProperty(mapCursorToMax, "__esModule", {
9877
10009
  value: true
9878
10010
  });
9879
- __export(mapCursorToMax);
9880
- })(dist$1);
10011
+ mapCursorToMax.mapCursorToMax = function (cursor, max) {
10012
+ if (max === 0) return 0;
10013
+ if (cursor >= 0) return cursor % max;
10014
+ var modulo = cursor % max;
10015
+ if (modulo === 0) return Math.abs(modulo); // -0
10016
+ return modulo + max;
10017
+ };
10018
+ return mapCursorToMax;
10019
+ }
10020
+
10021
+ var hasRequiredDist$1;
10022
+ function requireDist$1() {
10023
+ if (hasRequiredDist$1) return dist$1;
10024
+ hasRequiredDist$1 = 1;
10025
+ (function (exports) {
10026
+
10027
+ function __export(m) {
10028
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
10029
+ }
10030
+ Object.defineProperty(exports, "__esModule", {
10031
+ value: true
10032
+ });
10033
+ __export(requireMapCursorToMax());
10034
+ })(dist$1);
10035
+ return dist$1;
10036
+ }
10037
+
10038
+ var distExports$1 = requireDist$1();
9881
10039
 
9882
10040
  var reducer$1 = function reducer(state, action) {
9883
10041
  switch (action.type) {
@@ -9941,7 +10099,7 @@ var useKeyboardListNavigation = function useKeyboardListNavigation(_ref) {
9941
10099
  dispatch = _useReducer2[1];
9942
10100
  var searchTerm = React.useRef('');
9943
10101
  var idleTimeout = React.useRef(null);
9944
- var index = dist$1.mapCursorToMax(state.cursor, list.length);
10102
+ var index = distExports$1.mapCursorToMax(state.cursor, list.length);
9945
10103
  var handleKeyDown = React.useCallback(function (event) {
9946
10104
  switch (event.key) {
9947
10105
  case 'ArrowUp':
@@ -10162,7 +10320,8 @@ var Search20 = function Search20(_a) {
10162
10320
  };
10163
10321
  Search20.displayName = 'Search20';
10164
10322
 
10165
- var _excluded$l = ["className", "onChange", "onClear", "roundBorders", "noBorders", "value"];
10323
+ var _excluded$l = ["className", "onChange", "onClear", "roundBorders", "noBorders", "value", "searchIconSize"];
10324
+ var SEARCH_ICON_DEFAULT_SIZE = 20;
10166
10325
  var DEFAULT_INPUT_VALUE = '';
10167
10326
  var SearchInput = function SearchInput(_ref) {
10168
10327
  var className = _ref.className,
@@ -10174,6 +10333,8 @@ var SearchInput = function SearchInput(_ref) {
10174
10333
  noBorders = _ref$noBorders === void 0 ? false : _ref$noBorders,
10175
10334
  _ref$value = _ref.value,
10176
10335
  value = _ref$value === void 0 ? DEFAULT_INPUT_VALUE : _ref$value,
10336
+ _ref$searchIconSize = _ref.searchIconSize,
10337
+ searchIconSize = _ref$searchIconSize === void 0 ? SEARCH_ICON_DEFAULT_SIZE : _ref$searchIconSize,
10177
10338
  rest = _objectWithoutProperties(_ref, _excluded$l);
10178
10339
  var ref = React.useRef(null);
10179
10340
  var _useState = React.useState(value),
@@ -10198,7 +10359,10 @@ var SearchInput = function SearchInput(_ref) {
10198
10359
  className: classNames('SearchInput', className)
10199
10360
  }, /*#__PURE__*/React.createElement("div", {
10200
10361
  className: "SearchInput__icon"
10201
- }, /*#__PURE__*/React.createElement(Search20, null)), /*#__PURE__*/React.createElement(TextInput, _extends$1({
10362
+ }, /*#__PURE__*/React.createElement(Search20, {
10363
+ height: "".concat(searchIconSize, "px"),
10364
+ width: "".concat(searchIconSize, "px")
10365
+ })), /*#__PURE__*/React.createElement(TextInput, _extends$1({
10202
10366
  className: classNames('SearchInput__input', {
10203
10367
  'SearchInput__input--round-borders': roundBorders,
10204
10368
  'SearchInput__input--no-borders': noBorders
@@ -10958,7 +11122,7 @@ var CreditCardNumberInput = function CreditCardNumberInput(_ref) {
10958
11122
  value = _useState2[0],
10959
11123
  setValue = _useState2[1];
10960
11124
  var mask = React.useMemo(function () {
10961
- var cardType = creditCardType$1(value)[0];
11125
+ var cardType = creditCardType(value)[0];
10962
11126
  if (!cardType) return DEFAULT_MASK;
10963
11127
  var gaps = cardType.gaps,
10964
11128
  lengths = cardType.lengths;
@@ -11105,53 +11269,67 @@ var dist = {};
11105
11269
 
11106
11270
  var useCursor = {};
11107
11271
 
11108
- Object.defineProperty(useCursor, "__esModule", {
11109
- value: true
11110
- });
11111
- var react_1 = React;
11112
- var map_cursor_to_max_1 = dist$1;
11113
- useCursor.useCursor = function (_a) {
11114
- var max = _a.max,
11115
- _b = _a.initialCursor,
11116
- initialCursor = _b === void 0 ? 0 : _b;
11117
- var _c = react_1.useState(initialCursor),
11118
- cursor = _c[0],
11119
- setCursor = _c[1];
11120
- react_1.useEffect(function () {
11121
- return setCursor(initialCursor);
11122
- }, [initialCursor]);
11123
- var handlePrev = react_1.useCallback(function () {
11124
- return setCursor(function (n) {
11125
- return n - 1;
11126
- });
11127
- }, []);
11128
- var handleNext = react_1.useCallback(function () {
11129
- return setCursor(function (n) {
11130
- return n + 1;
11131
- });
11132
- }, []);
11133
- var index = react_1.useMemo(function () {
11134
- return map_cursor_to_max_1.mapCursorToMax(cursor, max);
11135
- }, [cursor, max]);
11136
- return {
11137
- handlePrev: handlePrev,
11138
- handleNext: handleNext,
11139
- setCursor: setCursor,
11140
- cursor: cursor,
11141
- index: index
11272
+ var hasRequiredUseCursor;
11273
+ function requireUseCursor() {
11274
+ if (hasRequiredUseCursor) return useCursor;
11275
+ hasRequiredUseCursor = 1;
11276
+ Object.defineProperty(useCursor, "__esModule", {
11277
+ value: true
11278
+ });
11279
+ var react_1 = React;
11280
+ var map_cursor_to_max_1 = requireDist$1();
11281
+ useCursor.useCursor = function (_a) {
11282
+ var max = _a.max,
11283
+ _b = _a.initialCursor,
11284
+ initialCursor = _b === void 0 ? 0 : _b;
11285
+ var _c = react_1.useState(initialCursor),
11286
+ cursor = _c[0],
11287
+ setCursor = _c[1];
11288
+ react_1.useEffect(function () {
11289
+ return setCursor(initialCursor);
11290
+ }, [initialCursor]);
11291
+ var handlePrev = react_1.useCallback(function () {
11292
+ return setCursor(function (n) {
11293
+ return n - 1;
11294
+ });
11295
+ }, []);
11296
+ var handleNext = react_1.useCallback(function () {
11297
+ return setCursor(function (n) {
11298
+ return n + 1;
11299
+ });
11300
+ }, []);
11301
+ var index = react_1.useMemo(function () {
11302
+ return map_cursor_to_max_1.mapCursorToMax(cursor, max);
11303
+ }, [cursor, max]);
11304
+ return {
11305
+ handlePrev: handlePrev,
11306
+ handleNext: handleNext,
11307
+ setCursor: setCursor,
11308
+ cursor: cursor,
11309
+ index: index
11310
+ };
11142
11311
  };
11143
- };
11312
+ return useCursor;
11313
+ }
11144
11314
 
11145
- (function (exports) {
11315
+ var hasRequiredDist;
11316
+ function requireDist() {
11317
+ if (hasRequiredDist) return dist;
11318
+ hasRequiredDist = 1;
11319
+ (function (exports) {
11146
11320
 
11147
- function __export(m) {
11148
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
11149
- }
11150
- Object.defineProperty(exports, "__esModule", {
11151
- value: true
11152
- });
11153
- __export(useCursor);
11154
- })(dist);
11321
+ function __export(m) {
11322
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
11323
+ }
11324
+ Object.defineProperty(exports, "__esModule", {
11325
+ value: true
11326
+ });
11327
+ __export(requireUseCursor());
11328
+ })(dist);
11329
+ return dist;
11330
+ }
11331
+
11332
+ var distExports = requireDist();
11155
11333
 
11156
11334
  var Window = function Window(props) {
11157
11335
  return /*#__PURE__*/React.createElement("svg", _extends$1({
@@ -11294,7 +11472,7 @@ var FRAMES = [Triangle, Diamond, ArcWindow, Circle];
11294
11472
  var Loading = function Loading(_ref) {
11295
11473
  var className = _ref.className,
11296
11474
  rest = _objectWithoutProperties(_ref, _excluded$a);
11297
- var _useCursor = dist.useCursor({
11475
+ var _useCursor = distExports.useCursor({
11298
11476
  max: FRAMES.length
11299
11477
  }),
11300
11478
  index = _useCursor.index,
@@ -11370,7 +11548,7 @@ var LoadingBalls = function LoadingBalls(_ref) {
11370
11548
  var INTERVAL_MS = 250;
11371
11549
  var LoadingShapes = function LoadingShapes() {
11372
11550
  var items = [Triangle, Diamond, ArcWindow, Circle];
11373
- var _useCursor = dist.useCursor({
11551
+ var _useCursor = distExports.useCursor({
11374
11552
  max: items.length
11375
11553
  }),
11376
11554
  index = _useCursor.index,
@@ -12069,10 +12247,10 @@ var VerticalDivider = function VerticalDivider(_ref) {
12069
12247
  };
12070
12248
 
12071
12249
  var tokens = {
12072
- colors: dist$4.colors,
12073
- typography: dist$4.typography,
12074
- space: dist$4.space,
12075
- breakpoints: dist$4.breakpoints
12250
+ colors: distExports$4.colors,
12251
+ typography: distExports$4.typography,
12252
+ space: distExports$4.space,
12253
+ breakpoints: distExports$4.breakpoints
12076
12254
  };
12077
12255
  var Utilities = {
12078
12256
  States: States