dce-reactkit 4.0.0-beta.1 → 4.0.0-beta.3
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/README.md +0 -20
- package/dist/cjs/index.js +2486 -1252
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/cjs/types/components/Tooltip.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +4 -1
- package/dist/esm/index.js +2483 -1251
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/esm/types/components/Tooltip.d.ts +1 -1
- package/dist/esm/types/index.d.ts +4 -1
- package/dist/index.d.ts +23 -3
- package/package.json +6 -10
- package/src/components/Tooltip.tsx +1 -1
- package/src/index.ts +6 -0
- package/dist/cjs/types/components/ItemPicker/index.test.d.ts +0 -1
- package/dist/esm/types/components/ItemPicker/index.test.d.ts +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
7
7
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
8
|
-
var ReactDOM = require('react-dom');
|
|
9
8
|
var freeRegularSvgIcons = require('@fortawesome/free-regular-svg-icons');
|
|
10
9
|
|
|
11
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -30,9 +29,8 @@ function _interopNamespace(e) {
|
|
|
30
29
|
|
|
31
30
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
31
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
|
-
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
/*! *****************************************************************************
|
|
36
34
|
Copyright (c) Microsoft Corporation.
|
|
37
35
|
|
|
38
36
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -199,6 +197,706 @@ const LogBuiltInMetadata = {
|
|
|
199
197
|
},
|
|
200
198
|
};
|
|
201
199
|
|
|
200
|
+
function getDefaultExportFromCjs (x) {
|
|
201
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
var reactDom = {exports: {}};
|
|
205
|
+
|
|
206
|
+
var reactDom_production = {};
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @license React
|
|
210
|
+
* react-dom.production.js
|
|
211
|
+
*
|
|
212
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the MIT license found in the
|
|
215
|
+
* LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/
|
|
217
|
+
|
|
218
|
+
var hasRequiredReactDom_production;
|
|
219
|
+
|
|
220
|
+
function requireReactDom_production () {
|
|
221
|
+
if (hasRequiredReactDom_production) return reactDom_production;
|
|
222
|
+
hasRequiredReactDom_production = 1;
|
|
223
|
+
var React = React__default["default"];
|
|
224
|
+
function formatProdErrorMessage(code) {
|
|
225
|
+
var url = "https://react.dev/errors/" + code;
|
|
226
|
+
if (1 < arguments.length) {
|
|
227
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
228
|
+
for (var i = 2; i < arguments.length; i++)
|
|
229
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
230
|
+
}
|
|
231
|
+
return (
|
|
232
|
+
"Minified React error #" +
|
|
233
|
+
code +
|
|
234
|
+
"; visit " +
|
|
235
|
+
url +
|
|
236
|
+
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
function noop() {}
|
|
240
|
+
var Internals = {
|
|
241
|
+
d: {
|
|
242
|
+
f: noop,
|
|
243
|
+
r: function () {
|
|
244
|
+
throw Error(formatProdErrorMessage(522));
|
|
245
|
+
},
|
|
246
|
+
D: noop,
|
|
247
|
+
C: noop,
|
|
248
|
+
L: noop,
|
|
249
|
+
m: noop,
|
|
250
|
+
X: noop,
|
|
251
|
+
S: noop,
|
|
252
|
+
M: noop
|
|
253
|
+
},
|
|
254
|
+
p: 0,
|
|
255
|
+
findDOMNode: null
|
|
256
|
+
},
|
|
257
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
258
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
259
|
+
var key =
|
|
260
|
+
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
261
|
+
return {
|
|
262
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
263
|
+
key: null == key ? null : "" + key,
|
|
264
|
+
children: children,
|
|
265
|
+
containerInfo: containerInfo,
|
|
266
|
+
implementation: implementation
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
var ReactSharedInternals =
|
|
270
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
271
|
+
function getCrossOriginStringAs(as, input) {
|
|
272
|
+
if ("font" === as) return "";
|
|
273
|
+
if ("string" === typeof input)
|
|
274
|
+
return "use-credentials" === input ? input : "";
|
|
275
|
+
}
|
|
276
|
+
reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
277
|
+
Internals;
|
|
278
|
+
reactDom_production.createPortal = function (children, container) {
|
|
279
|
+
var key =
|
|
280
|
+
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
281
|
+
if (
|
|
282
|
+
!container ||
|
|
283
|
+
(1 !== container.nodeType &&
|
|
284
|
+
9 !== container.nodeType &&
|
|
285
|
+
11 !== container.nodeType)
|
|
286
|
+
)
|
|
287
|
+
throw Error(formatProdErrorMessage(299));
|
|
288
|
+
return createPortal$1(children, container, null, key);
|
|
289
|
+
};
|
|
290
|
+
reactDom_production.flushSync = function (fn) {
|
|
291
|
+
var previousTransition = ReactSharedInternals.T,
|
|
292
|
+
previousUpdatePriority = Internals.p;
|
|
293
|
+
try {
|
|
294
|
+
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();
|
|
295
|
+
} finally {
|
|
296
|
+
(ReactSharedInternals.T = previousTransition),
|
|
297
|
+
(Internals.p = previousUpdatePriority),
|
|
298
|
+
Internals.d.f();
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
reactDom_production.preconnect = function (href, options) {
|
|
302
|
+
"string" === typeof href &&
|
|
303
|
+
(options
|
|
304
|
+
? ((options = options.crossOrigin),
|
|
305
|
+
(options =
|
|
306
|
+
"string" === typeof options
|
|
307
|
+
? "use-credentials" === options
|
|
308
|
+
? options
|
|
309
|
+
: ""
|
|
310
|
+
: void 0))
|
|
311
|
+
: (options = null),
|
|
312
|
+
Internals.d.C(href, options));
|
|
313
|
+
};
|
|
314
|
+
reactDom_production.prefetchDNS = function (href) {
|
|
315
|
+
"string" === typeof href && Internals.d.D(href);
|
|
316
|
+
};
|
|
317
|
+
reactDom_production.preinit = function (href, options) {
|
|
318
|
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
319
|
+
var as = options.as,
|
|
320
|
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
|
321
|
+
integrity =
|
|
322
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
323
|
+
fetchPriority =
|
|
324
|
+
"string" === typeof options.fetchPriority
|
|
325
|
+
? options.fetchPriority
|
|
326
|
+
: void 0;
|
|
327
|
+
"style" === as
|
|
328
|
+
? Internals.d.S(
|
|
329
|
+
href,
|
|
330
|
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
331
|
+
{
|
|
332
|
+
crossOrigin: crossOrigin,
|
|
333
|
+
integrity: integrity,
|
|
334
|
+
fetchPriority: fetchPriority
|
|
335
|
+
}
|
|
336
|
+
)
|
|
337
|
+
: "script" === as &&
|
|
338
|
+
Internals.d.X(href, {
|
|
339
|
+
crossOrigin: crossOrigin,
|
|
340
|
+
integrity: integrity,
|
|
341
|
+
fetchPriority: fetchPriority,
|
|
342
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
reactDom_production.preinitModule = function (href, options) {
|
|
347
|
+
if ("string" === typeof href)
|
|
348
|
+
if ("object" === typeof options && null !== options) {
|
|
349
|
+
if (null == options.as || "script" === options.as) {
|
|
350
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
351
|
+
options.as,
|
|
352
|
+
options.crossOrigin
|
|
353
|
+
);
|
|
354
|
+
Internals.d.M(href, {
|
|
355
|
+
crossOrigin: crossOrigin,
|
|
356
|
+
integrity:
|
|
357
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
358
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
} else null == options && Internals.d.M(href);
|
|
362
|
+
};
|
|
363
|
+
reactDom_production.preload = function (href, options) {
|
|
364
|
+
if (
|
|
365
|
+
"string" === typeof href &&
|
|
366
|
+
"object" === typeof options &&
|
|
367
|
+
null !== options &&
|
|
368
|
+
"string" === typeof options.as
|
|
369
|
+
) {
|
|
370
|
+
var as = options.as,
|
|
371
|
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|
372
|
+
Internals.d.L(href, as, {
|
|
373
|
+
crossOrigin: crossOrigin,
|
|
374
|
+
integrity:
|
|
375
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
376
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
377
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
378
|
+
fetchPriority:
|
|
379
|
+
"string" === typeof options.fetchPriority
|
|
380
|
+
? options.fetchPriority
|
|
381
|
+
: void 0,
|
|
382
|
+
referrerPolicy:
|
|
383
|
+
"string" === typeof options.referrerPolicy
|
|
384
|
+
? options.referrerPolicy
|
|
385
|
+
: void 0,
|
|
386
|
+
imageSrcSet:
|
|
387
|
+
"string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
388
|
+
imageSizes:
|
|
389
|
+
"string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
390
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
reactDom_production.preloadModule = function (href, options) {
|
|
395
|
+
if ("string" === typeof href)
|
|
396
|
+
if (options) {
|
|
397
|
+
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|
398
|
+
Internals.d.m(href, {
|
|
399
|
+
as:
|
|
400
|
+
"string" === typeof options.as && "script" !== options.as
|
|
401
|
+
? options.as
|
|
402
|
+
: void 0,
|
|
403
|
+
crossOrigin: crossOrigin,
|
|
404
|
+
integrity:
|
|
405
|
+
"string" === typeof options.integrity ? options.integrity : void 0
|
|
406
|
+
});
|
|
407
|
+
} else Internals.d.m(href);
|
|
408
|
+
};
|
|
409
|
+
reactDom_production.requestFormReset = function (form) {
|
|
410
|
+
Internals.d.r(form);
|
|
411
|
+
};
|
|
412
|
+
reactDom_production.unstable_batchedUpdates = function (fn, a) {
|
|
413
|
+
return fn(a);
|
|
414
|
+
};
|
|
415
|
+
reactDom_production.useFormState = function (action, initialState, permalink) {
|
|
416
|
+
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
417
|
+
};
|
|
418
|
+
reactDom_production.useFormStatus = function () {
|
|
419
|
+
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
420
|
+
};
|
|
421
|
+
reactDom_production.version = "19.0.0";
|
|
422
|
+
return reactDom_production;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
var reactDom_development = {};
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* @license React
|
|
429
|
+
* react-dom.development.js
|
|
430
|
+
*
|
|
431
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
432
|
+
*
|
|
433
|
+
* This source code is licensed under the MIT license found in the
|
|
434
|
+
* LICENSE file in the root directory of this source tree.
|
|
435
|
+
*/
|
|
436
|
+
|
|
437
|
+
var hasRequiredReactDom_development;
|
|
438
|
+
|
|
439
|
+
function requireReactDom_development () {
|
|
440
|
+
if (hasRequiredReactDom_development) return reactDom_development;
|
|
441
|
+
hasRequiredReactDom_development = 1;
|
|
442
|
+
"production" !== process.env.NODE_ENV &&
|
|
443
|
+
(function () {
|
|
444
|
+
function noop() {}
|
|
445
|
+
function testStringCoercion(value) {
|
|
446
|
+
return "" + value;
|
|
447
|
+
}
|
|
448
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
449
|
+
var key =
|
|
450
|
+
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
451
|
+
try {
|
|
452
|
+
testStringCoercion(key);
|
|
453
|
+
var JSCompiler_inline_result = !1;
|
|
454
|
+
} catch (e) {
|
|
455
|
+
JSCompiler_inline_result = !0;
|
|
456
|
+
}
|
|
457
|
+
JSCompiler_inline_result &&
|
|
458
|
+
(console.error(
|
|
459
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
460
|
+
("function" === typeof Symbol &&
|
|
461
|
+
Symbol.toStringTag &&
|
|
462
|
+
key[Symbol.toStringTag]) ||
|
|
463
|
+
key.constructor.name ||
|
|
464
|
+
"Object"
|
|
465
|
+
),
|
|
466
|
+
testStringCoercion(key));
|
|
467
|
+
return {
|
|
468
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
469
|
+
key: null == key ? null : "" + key,
|
|
470
|
+
children: children,
|
|
471
|
+
containerInfo: containerInfo,
|
|
472
|
+
implementation: implementation
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
function getCrossOriginStringAs(as, input) {
|
|
476
|
+
if ("font" === as) return "";
|
|
477
|
+
if ("string" === typeof input)
|
|
478
|
+
return "use-credentials" === input ? input : "";
|
|
479
|
+
}
|
|
480
|
+
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
481
|
+
return null === thing
|
|
482
|
+
? "`null`"
|
|
483
|
+
: void 0 === thing
|
|
484
|
+
? "`undefined`"
|
|
485
|
+
: "" === thing
|
|
486
|
+
? "an empty string"
|
|
487
|
+
: 'something with type "' + typeof thing + '"';
|
|
488
|
+
}
|
|
489
|
+
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
490
|
+
return null === thing
|
|
491
|
+
? "`null`"
|
|
492
|
+
: void 0 === thing
|
|
493
|
+
? "`undefined`"
|
|
494
|
+
: "" === thing
|
|
495
|
+
? "an empty string"
|
|
496
|
+
: "string" === typeof thing
|
|
497
|
+
? JSON.stringify(thing)
|
|
498
|
+
: "number" === typeof thing
|
|
499
|
+
? "`" + thing + "`"
|
|
500
|
+
: 'something with type "' + typeof thing + '"';
|
|
501
|
+
}
|
|
502
|
+
function resolveDispatcher() {
|
|
503
|
+
var dispatcher = ReactSharedInternals.H;
|
|
504
|
+
null === dispatcher &&
|
|
505
|
+
console.error(
|
|
506
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
507
|
+
);
|
|
508
|
+
return dispatcher;
|
|
509
|
+
}
|
|
510
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
511
|
+
"function" ===
|
|
512
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
513
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
514
|
+
var React = React__default["default"],
|
|
515
|
+
Internals = {
|
|
516
|
+
d: {
|
|
517
|
+
f: noop,
|
|
518
|
+
r: function () {
|
|
519
|
+
throw Error(
|
|
520
|
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
521
|
+
);
|
|
522
|
+
},
|
|
523
|
+
D: noop,
|
|
524
|
+
C: noop,
|
|
525
|
+
L: noop,
|
|
526
|
+
m: noop,
|
|
527
|
+
X: noop,
|
|
528
|
+
S: noop,
|
|
529
|
+
M: noop
|
|
530
|
+
},
|
|
531
|
+
p: 0,
|
|
532
|
+
findDOMNode: null
|
|
533
|
+
},
|
|
534
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
535
|
+
ReactSharedInternals =
|
|
536
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
537
|
+
("function" === typeof Map &&
|
|
538
|
+
null != Map.prototype &&
|
|
539
|
+
"function" === typeof Map.prototype.forEach &&
|
|
540
|
+
"function" === typeof Set &&
|
|
541
|
+
null != Set.prototype &&
|
|
542
|
+
"function" === typeof Set.prototype.clear &&
|
|
543
|
+
"function" === typeof Set.prototype.forEach) ||
|
|
544
|
+
console.error(
|
|
545
|
+
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
546
|
+
);
|
|
547
|
+
reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
548
|
+
Internals;
|
|
549
|
+
reactDom_development.createPortal = function (children, container) {
|
|
550
|
+
var key =
|
|
551
|
+
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
552
|
+
if (
|
|
553
|
+
!container ||
|
|
554
|
+
(1 !== container.nodeType &&
|
|
555
|
+
9 !== container.nodeType &&
|
|
556
|
+
11 !== container.nodeType)
|
|
557
|
+
)
|
|
558
|
+
throw Error("Target container is not a DOM element.");
|
|
559
|
+
return createPortal$1(children, container, null, key);
|
|
560
|
+
};
|
|
561
|
+
reactDom_development.flushSync = function (fn) {
|
|
562
|
+
var previousTransition = ReactSharedInternals.T,
|
|
563
|
+
previousUpdatePriority = Internals.p;
|
|
564
|
+
try {
|
|
565
|
+
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))
|
|
566
|
+
return fn();
|
|
567
|
+
} finally {
|
|
568
|
+
(ReactSharedInternals.T = previousTransition),
|
|
569
|
+
(Internals.p = previousUpdatePriority),
|
|
570
|
+
Internals.d.f() &&
|
|
571
|
+
console.error(
|
|
572
|
+
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
573
|
+
);
|
|
574
|
+
}
|
|
575
|
+
};
|
|
576
|
+
reactDom_development.preconnect = function (href, options) {
|
|
577
|
+
"string" === typeof href && href
|
|
578
|
+
? null != options && "object" !== typeof options
|
|
579
|
+
? console.error(
|
|
580
|
+
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
581
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
582
|
+
)
|
|
583
|
+
: null != options &&
|
|
584
|
+
"string" !== typeof options.crossOrigin &&
|
|
585
|
+
console.error(
|
|
586
|
+
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
587
|
+
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
588
|
+
)
|
|
589
|
+
: console.error(
|
|
590
|
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
591
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
592
|
+
);
|
|
593
|
+
"string" === typeof href &&
|
|
594
|
+
(options
|
|
595
|
+
? ((options = options.crossOrigin),
|
|
596
|
+
(options =
|
|
597
|
+
"string" === typeof options
|
|
598
|
+
? "use-credentials" === options
|
|
599
|
+
? options
|
|
600
|
+
: ""
|
|
601
|
+
: void 0))
|
|
602
|
+
: (options = null),
|
|
603
|
+
Internals.d.C(href, options));
|
|
604
|
+
};
|
|
605
|
+
reactDom_development.prefetchDNS = function (href) {
|
|
606
|
+
if ("string" !== typeof href || !href)
|
|
607
|
+
console.error(
|
|
608
|
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
609
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
610
|
+
);
|
|
611
|
+
else if (1 < arguments.length) {
|
|
612
|
+
var options = arguments[1];
|
|
613
|
+
"object" === typeof options && options.hasOwnProperty("crossOrigin")
|
|
614
|
+
? console.error(
|
|
615
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
616
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
617
|
+
)
|
|
618
|
+
: console.error(
|
|
619
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
620
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
621
|
+
);
|
|
622
|
+
}
|
|
623
|
+
"string" === typeof href && Internals.d.D(href);
|
|
624
|
+
};
|
|
625
|
+
reactDom_development.preinit = function (href, options) {
|
|
626
|
+
"string" === typeof href && href
|
|
627
|
+
? null == options || "object" !== typeof options
|
|
628
|
+
? console.error(
|
|
629
|
+
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
630
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
631
|
+
)
|
|
632
|
+
: "style" !== options.as &&
|
|
633
|
+
"script" !== options.as &&
|
|
634
|
+
console.error(
|
|
635
|
+
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
636
|
+
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
637
|
+
)
|
|
638
|
+
: console.error(
|
|
639
|
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
640
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
641
|
+
);
|
|
642
|
+
if (
|
|
643
|
+
"string" === typeof href &&
|
|
644
|
+
options &&
|
|
645
|
+
"string" === typeof options.as
|
|
646
|
+
) {
|
|
647
|
+
var as = options.as,
|
|
648
|
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
|
649
|
+
integrity =
|
|
650
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
651
|
+
fetchPriority =
|
|
652
|
+
"string" === typeof options.fetchPriority
|
|
653
|
+
? options.fetchPriority
|
|
654
|
+
: void 0;
|
|
655
|
+
"style" === as
|
|
656
|
+
? Internals.d.S(
|
|
657
|
+
href,
|
|
658
|
+
"string" === typeof options.precedence
|
|
659
|
+
? options.precedence
|
|
660
|
+
: void 0,
|
|
661
|
+
{
|
|
662
|
+
crossOrigin: crossOrigin,
|
|
663
|
+
integrity: integrity,
|
|
664
|
+
fetchPriority: fetchPriority
|
|
665
|
+
}
|
|
666
|
+
)
|
|
667
|
+
: "script" === as &&
|
|
668
|
+
Internals.d.X(href, {
|
|
669
|
+
crossOrigin: crossOrigin,
|
|
670
|
+
integrity: integrity,
|
|
671
|
+
fetchPriority: fetchPriority,
|
|
672
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
};
|
|
676
|
+
reactDom_development.preinitModule = function (href, options) {
|
|
677
|
+
var encountered = "";
|
|
678
|
+
("string" === typeof href && href) ||
|
|
679
|
+
(encountered +=
|
|
680
|
+
" The `href` argument encountered was " +
|
|
681
|
+
getValueDescriptorExpectingObjectForWarning(href) +
|
|
682
|
+
".");
|
|
683
|
+
void 0 !== options && "object" !== typeof options
|
|
684
|
+
? (encountered +=
|
|
685
|
+
" The `options` argument encountered was " +
|
|
686
|
+
getValueDescriptorExpectingObjectForWarning(options) +
|
|
687
|
+
".")
|
|
688
|
+
: options &&
|
|
689
|
+
"as" in options &&
|
|
690
|
+
"script" !== options.as &&
|
|
691
|
+
(encountered +=
|
|
692
|
+
" The `as` option encountered was " +
|
|
693
|
+
getValueDescriptorExpectingEnumForWarning(options.as) +
|
|
694
|
+
".");
|
|
695
|
+
if (encountered)
|
|
696
|
+
console.error(
|
|
697
|
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
698
|
+
encountered
|
|
699
|
+
);
|
|
700
|
+
else
|
|
701
|
+
switch (
|
|
702
|
+
((encountered =
|
|
703
|
+
options && "string" === typeof options.as ? options.as : "script"),
|
|
704
|
+
encountered)
|
|
705
|
+
) {
|
|
706
|
+
case "script":
|
|
707
|
+
break;
|
|
708
|
+
default:
|
|
709
|
+
(encountered =
|
|
710
|
+
getValueDescriptorExpectingEnumForWarning(encountered)),
|
|
711
|
+
console.error(
|
|
712
|
+
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
713
|
+
encountered,
|
|
714
|
+
href
|
|
715
|
+
);
|
|
716
|
+
}
|
|
717
|
+
if ("string" === typeof href)
|
|
718
|
+
if ("object" === typeof options && null !== options) {
|
|
719
|
+
if (null == options.as || "script" === options.as)
|
|
720
|
+
(encountered = getCrossOriginStringAs(
|
|
721
|
+
options.as,
|
|
722
|
+
options.crossOrigin
|
|
723
|
+
)),
|
|
724
|
+
Internals.d.M(href, {
|
|
725
|
+
crossOrigin: encountered,
|
|
726
|
+
integrity:
|
|
727
|
+
"string" === typeof options.integrity
|
|
728
|
+
? options.integrity
|
|
729
|
+
: void 0,
|
|
730
|
+
nonce:
|
|
731
|
+
"string" === typeof options.nonce ? options.nonce : void 0
|
|
732
|
+
});
|
|
733
|
+
} else null == options && Internals.d.M(href);
|
|
734
|
+
};
|
|
735
|
+
reactDom_development.preload = function (href, options) {
|
|
736
|
+
var encountered = "";
|
|
737
|
+
("string" === typeof href && href) ||
|
|
738
|
+
(encountered +=
|
|
739
|
+
" The `href` argument encountered was " +
|
|
740
|
+
getValueDescriptorExpectingObjectForWarning(href) +
|
|
741
|
+
".");
|
|
742
|
+
null == options || "object" !== typeof options
|
|
743
|
+
? (encountered +=
|
|
744
|
+
" The `options` argument encountered was " +
|
|
745
|
+
getValueDescriptorExpectingObjectForWarning(options) +
|
|
746
|
+
".")
|
|
747
|
+
: ("string" === typeof options.as && options.as) ||
|
|
748
|
+
(encountered +=
|
|
749
|
+
" The `as` option encountered was " +
|
|
750
|
+
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
751
|
+
".");
|
|
752
|
+
encountered &&
|
|
753
|
+
console.error(
|
|
754
|
+
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
755
|
+
encountered
|
|
756
|
+
);
|
|
757
|
+
if (
|
|
758
|
+
"string" === typeof href &&
|
|
759
|
+
"object" === typeof options &&
|
|
760
|
+
null !== options &&
|
|
761
|
+
"string" === typeof options.as
|
|
762
|
+
) {
|
|
763
|
+
encountered = options.as;
|
|
764
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
765
|
+
encountered,
|
|
766
|
+
options.crossOrigin
|
|
767
|
+
);
|
|
768
|
+
Internals.d.L(href, encountered, {
|
|
769
|
+
crossOrigin: crossOrigin,
|
|
770
|
+
integrity:
|
|
771
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
772
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
773
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
774
|
+
fetchPriority:
|
|
775
|
+
"string" === typeof options.fetchPriority
|
|
776
|
+
? options.fetchPriority
|
|
777
|
+
: void 0,
|
|
778
|
+
referrerPolicy:
|
|
779
|
+
"string" === typeof options.referrerPolicy
|
|
780
|
+
? options.referrerPolicy
|
|
781
|
+
: void 0,
|
|
782
|
+
imageSrcSet:
|
|
783
|
+
"string" === typeof options.imageSrcSet
|
|
784
|
+
? options.imageSrcSet
|
|
785
|
+
: void 0,
|
|
786
|
+
imageSizes:
|
|
787
|
+
"string" === typeof options.imageSizes
|
|
788
|
+
? options.imageSizes
|
|
789
|
+
: void 0,
|
|
790
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
};
|
|
794
|
+
reactDom_development.preloadModule = function (href, options) {
|
|
795
|
+
var encountered = "";
|
|
796
|
+
("string" === typeof href && href) ||
|
|
797
|
+
(encountered +=
|
|
798
|
+
" The `href` argument encountered was " +
|
|
799
|
+
getValueDescriptorExpectingObjectForWarning(href) +
|
|
800
|
+
".");
|
|
801
|
+
void 0 !== options && "object" !== typeof options
|
|
802
|
+
? (encountered +=
|
|
803
|
+
" The `options` argument encountered was " +
|
|
804
|
+
getValueDescriptorExpectingObjectForWarning(options) +
|
|
805
|
+
".")
|
|
806
|
+
: options &&
|
|
807
|
+
"as" in options &&
|
|
808
|
+
"string" !== typeof options.as &&
|
|
809
|
+
(encountered +=
|
|
810
|
+
" The `as` option encountered was " +
|
|
811
|
+
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
812
|
+
".");
|
|
813
|
+
encountered &&
|
|
814
|
+
console.error(
|
|
815
|
+
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
816
|
+
encountered
|
|
817
|
+
);
|
|
818
|
+
"string" === typeof href &&
|
|
819
|
+
(options
|
|
820
|
+
? ((encountered = getCrossOriginStringAs(
|
|
821
|
+
options.as,
|
|
822
|
+
options.crossOrigin
|
|
823
|
+
)),
|
|
824
|
+
Internals.d.m(href, {
|
|
825
|
+
as:
|
|
826
|
+
"string" === typeof options.as && "script" !== options.as
|
|
827
|
+
? options.as
|
|
828
|
+
: void 0,
|
|
829
|
+
crossOrigin: encountered,
|
|
830
|
+
integrity:
|
|
831
|
+
"string" === typeof options.integrity
|
|
832
|
+
? options.integrity
|
|
833
|
+
: void 0
|
|
834
|
+
}))
|
|
835
|
+
: Internals.d.m(href));
|
|
836
|
+
};
|
|
837
|
+
reactDom_development.requestFormReset = function (form) {
|
|
838
|
+
Internals.d.r(form);
|
|
839
|
+
};
|
|
840
|
+
reactDom_development.unstable_batchedUpdates = function (fn, a) {
|
|
841
|
+
return fn(a);
|
|
842
|
+
};
|
|
843
|
+
reactDom_development.useFormState = function (action, initialState, permalink) {
|
|
844
|
+
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
845
|
+
};
|
|
846
|
+
reactDom_development.useFormStatus = function () {
|
|
847
|
+
return resolveDispatcher().useHostTransitionStatus();
|
|
848
|
+
};
|
|
849
|
+
reactDom_development.version = "19.0.0";
|
|
850
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
851
|
+
"function" ===
|
|
852
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
853
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
854
|
+
})();
|
|
855
|
+
return reactDom_development;
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
(function (module) {
|
|
859
|
+
|
|
860
|
+
function checkDCE() {
|
|
861
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
862
|
+
if (
|
|
863
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
|
864
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
|
865
|
+
) {
|
|
866
|
+
return;
|
|
867
|
+
}
|
|
868
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
869
|
+
// This branch is unreachable because this function is only called
|
|
870
|
+
// in production, but the condition is true only in development.
|
|
871
|
+
// Therefore if the branch is still here, dead code elimination wasn't
|
|
872
|
+
// properly applied.
|
|
873
|
+
// Don't change the message. React DevTools relies on it. Also make sure
|
|
874
|
+
// this message doesn't occur elsewhere in this function, or it will cause
|
|
875
|
+
// a false positive.
|
|
876
|
+
throw new Error('^_^');
|
|
877
|
+
}
|
|
878
|
+
try {
|
|
879
|
+
// Verify that the code above has been dead code eliminated (DCE'd).
|
|
880
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
881
|
+
} catch (err) {
|
|
882
|
+
// DevTools shouldn't crash React, no matter what.
|
|
883
|
+
// We should still report in case we break this code.
|
|
884
|
+
console.error(err);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
if (process.env.NODE_ENV === 'production') {
|
|
889
|
+
// DCE check should happen before ReactDOM bundle executes so that
|
|
890
|
+
// DevTools can report bad minification during injection.
|
|
891
|
+
checkDCE();
|
|
892
|
+
module.exports = requireReactDom_production();
|
|
893
|
+
} else {
|
|
894
|
+
module.exports = requireReactDom_development();
|
|
895
|
+
}
|
|
896
|
+
} (reactDom));
|
|
897
|
+
|
|
898
|
+
var ReactDOM = /*@__PURE__*/getDefaultExportFromCjs(reactDom.exports);
|
|
899
|
+
|
|
202
900
|
/**
|
|
203
901
|
* Wait for a certain number of ms
|
|
204
902
|
* @author Gabe Abrams
|
|
@@ -714,7 +1412,7 @@ const Modal = (props) => {
|
|
|
714
1412
|
// Determine which portal to use
|
|
715
1413
|
const portalNumber = id.current % NUM_MODAL_PORTALS;
|
|
716
1414
|
// Render in a portal
|
|
717
|
-
return
|
|
1415
|
+
return ReactDOM.createPortal(contentToRender, document.getElementById(`modal-portal-${portalNumber}`));
|
|
718
1416
|
};
|
|
719
1417
|
|
|
720
1418
|
/**
|
|
@@ -4735,213 +5433,178 @@ var DBEntryFieldType;
|
|
|
4735
5433
|
var DBEntryFieldType$1 = DBEntryFieldType;
|
|
4736
5434
|
|
|
4737
5435
|
function _extends() {
|
|
4738
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
4739
|
-
for (var
|
|
4740
|
-
var
|
|
4741
|
-
for (var
|
|
4742
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4743
|
-
target[key] = source[key];
|
|
4744
|
-
}
|
|
4745
|
-
}
|
|
5436
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
5437
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
5438
|
+
var t = arguments[e];
|
|
5439
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
4746
5440
|
}
|
|
4747
|
-
return
|
|
4748
|
-
};
|
|
4749
|
-
return _extends.apply(this, arguments);
|
|
5441
|
+
return n;
|
|
5442
|
+
}, _extends.apply(null, arguments);
|
|
4750
5443
|
}
|
|
4751
5444
|
|
|
4752
|
-
function _typeof(
|
|
5445
|
+
function _typeof(o) {
|
|
4753
5446
|
"@babel/helpers - typeof";
|
|
4754
5447
|
|
|
4755
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
4756
|
-
return typeof
|
|
4757
|
-
} : function (
|
|
4758
|
-
return
|
|
4759
|
-
}, _typeof(
|
|
5448
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5449
|
+
return typeof o;
|
|
5450
|
+
} : function (o) {
|
|
5451
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
5452
|
+
}, _typeof(o);
|
|
4760
5453
|
}
|
|
4761
5454
|
|
|
4762
|
-
function
|
|
4763
|
-
if (
|
|
4764
|
-
var
|
|
4765
|
-
if (
|
|
4766
|
-
var
|
|
4767
|
-
if (
|
|
5455
|
+
function toPrimitive(t, r) {
|
|
5456
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
5457
|
+
var e = t[Symbol.toPrimitive];
|
|
5458
|
+
if (void 0 !== e) {
|
|
5459
|
+
var i = e.call(t, r || "default");
|
|
5460
|
+
if ("object" != _typeof(i)) return i;
|
|
4768
5461
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4769
5462
|
}
|
|
4770
|
-
return (
|
|
5463
|
+
return ("string" === r ? String : Number)(t);
|
|
4771
5464
|
}
|
|
4772
5465
|
|
|
4773
|
-
function
|
|
4774
|
-
var
|
|
4775
|
-
return _typeof(
|
|
5466
|
+
function toPropertyKey(t) {
|
|
5467
|
+
var i = toPrimitive(t, "string");
|
|
5468
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
4776
5469
|
}
|
|
4777
5470
|
|
|
4778
|
-
function _defineProperty(
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
writable: true
|
|
4786
|
-
});
|
|
4787
|
-
} else {
|
|
4788
|
-
obj[key] = value;
|
|
4789
|
-
}
|
|
4790
|
-
return obj;
|
|
5471
|
+
function _defineProperty(e, r, t) {
|
|
5472
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
5473
|
+
value: t,
|
|
5474
|
+
enumerable: !0,
|
|
5475
|
+
configurable: !0,
|
|
5476
|
+
writable: !0
|
|
5477
|
+
}) : e[r] = t, e;
|
|
4791
5478
|
}
|
|
4792
5479
|
|
|
4793
|
-
function ownKeys(
|
|
4794
|
-
var
|
|
5480
|
+
function ownKeys(e, r) {
|
|
5481
|
+
var t = Object.keys(e);
|
|
4795
5482
|
if (Object.getOwnPropertySymbols) {
|
|
4796
|
-
var
|
|
4797
|
-
|
|
4798
|
-
return Object.getOwnPropertyDescriptor(
|
|
4799
|
-
})),
|
|
4800
|
-
}
|
|
4801
|
-
return
|
|
4802
|
-
}
|
|
4803
|
-
function _objectSpread2(
|
|
4804
|
-
for (var
|
|
4805
|
-
var
|
|
4806
|
-
|
|
4807
|
-
_defineProperty(
|
|
4808
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
4809
|
-
Object.defineProperty(
|
|
5483
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
5484
|
+
r && (o = o.filter(function (r) {
|
|
5485
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
5486
|
+
})), t.push.apply(t, o);
|
|
5487
|
+
}
|
|
5488
|
+
return t;
|
|
5489
|
+
}
|
|
5490
|
+
function _objectSpread2(e) {
|
|
5491
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
5492
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
5493
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
5494
|
+
_defineProperty(e, r, t[r]);
|
|
5495
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
5496
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4810
5497
|
});
|
|
4811
5498
|
}
|
|
4812
|
-
return
|
|
5499
|
+
return e;
|
|
4813
5500
|
}
|
|
4814
5501
|
|
|
4815
|
-
function _classCallCheck(
|
|
4816
|
-
if (!(
|
|
4817
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4818
|
-
}
|
|
5502
|
+
function _classCallCheck(a, n) {
|
|
5503
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
4819
5504
|
}
|
|
4820
5505
|
|
|
4821
|
-
function _defineProperties(
|
|
4822
|
-
for (var
|
|
4823
|
-
var
|
|
4824
|
-
|
|
4825
|
-
descriptor.configurable = true;
|
|
4826
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
4827
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
5506
|
+
function _defineProperties(e, r) {
|
|
5507
|
+
for (var t = 0; t < r.length; t++) {
|
|
5508
|
+
var o = r[t];
|
|
5509
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
4828
5510
|
}
|
|
4829
5511
|
}
|
|
4830
|
-
function _createClass(
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
writable: false
|
|
4835
|
-
});
|
|
4836
|
-
return Constructor;
|
|
5512
|
+
function _createClass(e, r, t) {
|
|
5513
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
5514
|
+
writable: !1
|
|
5515
|
+
}), e;
|
|
4837
5516
|
}
|
|
4838
5517
|
|
|
4839
|
-
function _setPrototypeOf(
|
|
4840
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
};
|
|
4844
|
-
return _setPrototypeOf(o, p);
|
|
5518
|
+
function _setPrototypeOf(t, e) {
|
|
5519
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
5520
|
+
return t.__proto__ = e, t;
|
|
5521
|
+
}, _setPrototypeOf(t, e);
|
|
4845
5522
|
}
|
|
4846
5523
|
|
|
4847
|
-
function _inherits(
|
|
4848
|
-
if (typeof
|
|
4849
|
-
|
|
4850
|
-
}
|
|
4851
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
5524
|
+
function _inherits(t, e) {
|
|
5525
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
5526
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
4852
5527
|
constructor: {
|
|
4853
|
-
value:
|
|
4854
|
-
writable:
|
|
4855
|
-
configurable:
|
|
5528
|
+
value: t,
|
|
5529
|
+
writable: !0,
|
|
5530
|
+
configurable: !0
|
|
4856
5531
|
}
|
|
4857
|
-
})
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
});
|
|
4861
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
5532
|
+
}), Object.defineProperty(t, "prototype", {
|
|
5533
|
+
writable: !1
|
|
5534
|
+
}), e && _setPrototypeOf(t, e);
|
|
4862
5535
|
}
|
|
4863
5536
|
|
|
4864
|
-
function _getPrototypeOf(
|
|
4865
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
4866
|
-
return
|
|
4867
|
-
};
|
|
4868
|
-
return _getPrototypeOf(o);
|
|
5537
|
+
function _getPrototypeOf(t) {
|
|
5538
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
5539
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
5540
|
+
}, _getPrototypeOf(t);
|
|
4869
5541
|
}
|
|
4870
5542
|
|
|
4871
5543
|
function _isNativeReflectConstruct() {
|
|
4872
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
4873
|
-
if (Reflect.construct.sham) return false;
|
|
4874
|
-
if (typeof Proxy === "function") return true;
|
|
4875
5544
|
try {
|
|
4876
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
return
|
|
4880
|
-
}
|
|
4881
|
-
}
|
|
4882
|
-
|
|
4883
|
-
function _assertThisInitialized(
|
|
4884
|
-
if (
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
return
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
if (hasNativeReflectConstruct) {
|
|
4905
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
4906
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
4907
|
-
} else {
|
|
4908
|
-
result = Super.apply(this, arguments);
|
|
4909
|
-
}
|
|
4910
|
-
return _possibleConstructorReturn(this, result);
|
|
5545
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
5546
|
+
} catch (t) {}
|
|
5547
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
5548
|
+
return !!t;
|
|
5549
|
+
})();
|
|
5550
|
+
}
|
|
5551
|
+
|
|
5552
|
+
function _assertThisInitialized(e) {
|
|
5553
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5554
|
+
return e;
|
|
5555
|
+
}
|
|
5556
|
+
|
|
5557
|
+
function _possibleConstructorReturn(t, e) {
|
|
5558
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
5559
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
5560
|
+
return _assertThisInitialized(t);
|
|
5561
|
+
}
|
|
5562
|
+
|
|
5563
|
+
function _createSuper(t) {
|
|
5564
|
+
var r = _isNativeReflectConstruct();
|
|
5565
|
+
return function () {
|
|
5566
|
+
var e,
|
|
5567
|
+
o = _getPrototypeOf(t);
|
|
5568
|
+
if (r) {
|
|
5569
|
+
var s = _getPrototypeOf(this).constructor;
|
|
5570
|
+
e = Reflect.construct(o, arguments, s);
|
|
5571
|
+
} else e = o.apply(this, arguments);
|
|
5572
|
+
return _possibleConstructorReturn(this, e);
|
|
4911
5573
|
};
|
|
4912
5574
|
}
|
|
4913
5575
|
|
|
4914
|
-
function _arrayLikeToArray(
|
|
4915
|
-
|
|
4916
|
-
for (var
|
|
4917
|
-
return
|
|
5576
|
+
function _arrayLikeToArray(r, a) {
|
|
5577
|
+
(null == a || a > r.length) && (a = r.length);
|
|
5578
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
5579
|
+
return n;
|
|
4918
5580
|
}
|
|
4919
5581
|
|
|
4920
|
-
function _arrayWithoutHoles(
|
|
4921
|
-
if (Array.isArray(
|
|
5582
|
+
function _arrayWithoutHoles(r) {
|
|
5583
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
4922
5584
|
}
|
|
4923
5585
|
|
|
4924
|
-
function _iterableToArray(
|
|
4925
|
-
if (typeof Symbol
|
|
5586
|
+
function _iterableToArray(r) {
|
|
5587
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
4926
5588
|
}
|
|
4927
5589
|
|
|
4928
|
-
function _unsupportedIterableToArray(
|
|
4929
|
-
if (
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
5590
|
+
function _unsupportedIterableToArray(r, a) {
|
|
5591
|
+
if (r) {
|
|
5592
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
5593
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
5594
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
5595
|
+
}
|
|
4935
5596
|
}
|
|
4936
5597
|
|
|
4937
5598
|
function _nonIterableSpread() {
|
|
4938
5599
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4939
5600
|
}
|
|
4940
5601
|
|
|
4941
|
-
function _toConsumableArray(
|
|
4942
|
-
return _arrayWithoutHoles(
|
|
5602
|
+
function _toConsumableArray(r) {
|
|
5603
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
4943
5604
|
}
|
|
4944
5605
|
|
|
5606
|
+
var isDevelopment$2 = false;
|
|
5607
|
+
|
|
4945
5608
|
/*
|
|
4946
5609
|
|
|
4947
5610
|
Based off glamor's StyleSheet, thanks Sunil ❤️
|
|
@@ -4964,10 +5627,9 @@ styleSheet.flush()
|
|
|
4964
5627
|
- empties the stylesheet of all its contents
|
|
4965
5628
|
|
|
4966
5629
|
*/
|
|
4967
|
-
|
|
5630
|
+
|
|
4968
5631
|
function sheetForTag(tag) {
|
|
4969
5632
|
if (tag.sheet) {
|
|
4970
|
-
// $FlowFixMe
|
|
4971
5633
|
return tag.sheet;
|
|
4972
5634
|
} // this weirdness brought to you by firefox
|
|
4973
5635
|
|
|
@@ -4976,10 +5638,13 @@ function sheetForTag(tag) {
|
|
|
4976
5638
|
|
|
4977
5639
|
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
4978
5640
|
if (document.styleSheets[i].ownerNode === tag) {
|
|
4979
|
-
// $FlowFixMe
|
|
4980
5641
|
return document.styleSheets[i];
|
|
4981
5642
|
}
|
|
4982
|
-
}
|
|
5643
|
+
} // this function should always return with a value
|
|
5644
|
+
// TS can't understand it though so we make it stop complaining here
|
|
5645
|
+
|
|
5646
|
+
|
|
5647
|
+
return undefined;
|
|
4983
5648
|
}
|
|
4984
5649
|
|
|
4985
5650
|
function createStyleElement(options) {
|
|
@@ -5020,7 +5685,7 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
5020
5685
|
_this.tags.push(tag);
|
|
5021
5686
|
};
|
|
5022
5687
|
|
|
5023
|
-
this.isSpeedy = options.speedy === undefined ?
|
|
5688
|
+
this.isSpeedy = options.speedy === undefined ? !isDevelopment$2 : options.speedy;
|
|
5024
5689
|
this.tags = [];
|
|
5025
5690
|
this.ctr = 0;
|
|
5026
5691
|
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
@@ -5048,18 +5713,6 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
5048
5713
|
|
|
5049
5714
|
var tag = this.tags[this.tags.length - 1];
|
|
5050
5715
|
|
|
5051
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5052
|
-
var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
5053
|
-
|
|
5054
|
-
if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
|
|
5055
|
-
// this would only cause problem in speedy mode
|
|
5056
|
-
// but we don't want enabling speedy to affect the observable behavior
|
|
5057
|
-
// so we report this error at all times
|
|
5058
|
-
console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');
|
|
5059
|
-
}
|
|
5060
|
-
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
|
|
5061
|
-
}
|
|
5062
|
-
|
|
5063
5716
|
if (this.isSpeedy) {
|
|
5064
5717
|
var sheet = sheetForTag(tag);
|
|
5065
5718
|
|
|
@@ -5068,9 +5721,6 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
5068
5721
|
// the big drawback is that the css won't be editable in devtools
|
|
5069
5722
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
5070
5723
|
} catch (e) {
|
|
5071
|
-
if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
|
|
5072
|
-
console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
|
5073
|
-
}
|
|
5074
5724
|
}
|
|
5075
5725
|
} else {
|
|
5076
5726
|
tag.appendChild(document.createTextNode(rule));
|
|
@@ -5080,16 +5730,13 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
5080
5730
|
};
|
|
5081
5731
|
|
|
5082
5732
|
_proto.flush = function flush() {
|
|
5083
|
-
// $FlowFixMe
|
|
5084
5733
|
this.tags.forEach(function (tag) {
|
|
5085
|
-
|
|
5734
|
+
var _tag$parentNode;
|
|
5735
|
+
|
|
5736
|
+
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
5086
5737
|
});
|
|
5087
5738
|
this.tags = [];
|
|
5088
5739
|
this.ctr = 0;
|
|
5089
|
-
|
|
5090
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5091
|
-
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
5092
|
-
}
|
|
5093
5740
|
};
|
|
5094
5741
|
|
|
5095
5742
|
return StyleSheet;
|
|
@@ -5694,11 +6341,11 @@ function rulesheet (callback) {
|
|
|
5694
6341
|
}
|
|
5695
6342
|
|
|
5696
6343
|
var weakMemoize = function weakMemoize(func) {
|
|
5697
|
-
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
5698
6344
|
var cache = new WeakMap();
|
|
5699
6345
|
return function (arg) {
|
|
5700
6346
|
if (cache.has(arg)) {
|
|
5701
|
-
//
|
|
6347
|
+
// Use non-null assertion because we just checked that the cache `has` it
|
|
6348
|
+
// This allows us to remove `undefined` from the return value
|
|
5702
6349
|
return cache.get(arg);
|
|
5703
6350
|
}
|
|
5704
6351
|
|
|
@@ -5716,6 +6363,8 @@ function memoize(fn) {
|
|
|
5716
6363
|
};
|
|
5717
6364
|
}
|
|
5718
6365
|
|
|
6366
|
+
var isBrowser$3 = typeof document !== 'undefined';
|
|
6367
|
+
|
|
5719
6368
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
5720
6369
|
var previous = 0;
|
|
5721
6370
|
var character = 0;
|
|
@@ -5794,8 +6443,8 @@ var compat = function compat(element) {
|
|
|
5794
6443
|
return;
|
|
5795
6444
|
}
|
|
5796
6445
|
|
|
5797
|
-
var value = element.value
|
|
5798
|
-
|
|
6446
|
+
var value = element.value;
|
|
6447
|
+
var parent = element.parent;
|
|
5799
6448
|
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
5800
6449
|
|
|
5801
6450
|
while (parent.type !== 'rule') {
|
|
@@ -5840,114 +6489,6 @@ var removeLabel = function removeLabel(element) {
|
|
|
5840
6489
|
}
|
|
5841
6490
|
}
|
|
5842
6491
|
};
|
|
5843
|
-
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
|
5844
|
-
|
|
5845
|
-
var isIgnoringComment = function isIgnoringComment(element) {
|
|
5846
|
-
return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
|
|
5847
|
-
};
|
|
5848
|
-
|
|
5849
|
-
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
|
5850
|
-
return function (element, index, children) {
|
|
5851
|
-
if (element.type !== 'rule' || cache.compat) return;
|
|
5852
|
-
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
5853
|
-
|
|
5854
|
-
if (unsafePseudoClasses) {
|
|
5855
|
-
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
|
5856
|
-
//
|
|
5857
|
-
// considering this input:
|
|
5858
|
-
// .a {
|
|
5859
|
-
// .b /* comm */ {}
|
|
5860
|
-
// color: hotpink;
|
|
5861
|
-
// }
|
|
5862
|
-
// we get output corresponding to this:
|
|
5863
|
-
// .a {
|
|
5864
|
-
// & {
|
|
5865
|
-
// /* comm */
|
|
5866
|
-
// color: hotpink;
|
|
5867
|
-
// }
|
|
5868
|
-
// .b {}
|
|
5869
|
-
// }
|
|
5870
|
-
|
|
5871
|
-
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
|
5872
|
-
children;
|
|
5873
|
-
|
|
5874
|
-
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
|
5875
|
-
var node = commentContainer[i];
|
|
5876
|
-
|
|
5877
|
-
if (node.line < element.line) {
|
|
5878
|
-
break;
|
|
5879
|
-
} // it is quite weird but comments are *usually* put at `column: element.column - 1`
|
|
5880
|
-
// so we seek *from the end* for the node that is earlier than the rule's `element` and check that
|
|
5881
|
-
// this will also match inputs like this:
|
|
5882
|
-
// .a {
|
|
5883
|
-
// /* comm */
|
|
5884
|
-
// .b {}
|
|
5885
|
-
// }
|
|
5886
|
-
//
|
|
5887
|
-
// but that is fine
|
|
5888
|
-
//
|
|
5889
|
-
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
|
5890
|
-
// .a {
|
|
5891
|
-
// .b { /* comm */ }
|
|
5892
|
-
// }
|
|
5893
|
-
// with such inputs we wouldn't have to search for the comment at all
|
|
5894
|
-
// TODO: consider changing this comment placement in the next major version
|
|
5895
|
-
|
|
5896
|
-
|
|
5897
|
-
if (node.column < element.column) {
|
|
5898
|
-
if (isIgnoringComment(node)) {
|
|
5899
|
-
return;
|
|
5900
|
-
}
|
|
5901
|
-
|
|
5902
|
-
break;
|
|
5903
|
-
}
|
|
5904
|
-
}
|
|
5905
|
-
|
|
5906
|
-
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
|
5907
|
-
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
|
5908
|
-
});
|
|
5909
|
-
}
|
|
5910
|
-
};
|
|
5911
|
-
};
|
|
5912
|
-
|
|
5913
|
-
var isImportRule = function isImportRule(element) {
|
|
5914
|
-
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
5915
|
-
};
|
|
5916
|
-
|
|
5917
|
-
var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
|
|
5918
|
-
for (var i = index - 1; i >= 0; i--) {
|
|
5919
|
-
if (!isImportRule(children[i])) {
|
|
5920
|
-
return true;
|
|
5921
|
-
}
|
|
5922
|
-
}
|
|
5923
|
-
|
|
5924
|
-
return false;
|
|
5925
|
-
}; // use this to remove incorrect elements from further processing
|
|
5926
|
-
// so they don't get handed to the `sheet` (or anything else)
|
|
5927
|
-
// as that could potentially lead to additional logs which in turn could be overhelming to the user
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
var nullifyElement = function nullifyElement(element) {
|
|
5931
|
-
element.type = '';
|
|
5932
|
-
element.value = '';
|
|
5933
|
-
element["return"] = '';
|
|
5934
|
-
element.children = '';
|
|
5935
|
-
element.props = '';
|
|
5936
|
-
};
|
|
5937
|
-
|
|
5938
|
-
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
|
5939
|
-
if (!isImportRule(element)) {
|
|
5940
|
-
return;
|
|
5941
|
-
}
|
|
5942
|
-
|
|
5943
|
-
if (element.parent) {
|
|
5944
|
-
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
|
|
5945
|
-
nullifyElement(element);
|
|
5946
|
-
} else if (isPrependedWithRegularRules(index, children)) {
|
|
5947
|
-
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
|
5948
|
-
nullifyElement(element);
|
|
5949
|
-
}
|
|
5950
|
-
};
|
|
5951
6492
|
|
|
5952
6493
|
/* eslint-disable no-fallthrough */
|
|
5953
6494
|
|
|
@@ -6161,13 +6702,9 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
6161
6702
|
}
|
|
6162
6703
|
};
|
|
6163
6704
|
|
|
6164
|
-
var isBrowser$
|
|
6165
|
-
var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
|
|
6705
|
+
var getServerStylisCache = isBrowser$3 ? undefined : weakMemoize(function () {
|
|
6166
6706
|
return memoize(function () {
|
|
6167
|
-
|
|
6168
|
-
return function (name) {
|
|
6169
|
-
return cache[name];
|
|
6170
|
-
};
|
|
6707
|
+
return {};
|
|
6171
6708
|
});
|
|
6172
6709
|
});
|
|
6173
6710
|
var defaultStylisPlugins = [prefixer];
|
|
@@ -6175,11 +6712,7 @@ var defaultStylisPlugins = [prefixer];
|
|
|
6175
6712
|
var createCache = function createCache(options) {
|
|
6176
6713
|
var key = options.key;
|
|
6177
6714
|
|
|
6178
|
-
if (
|
|
6179
|
-
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
6180
|
-
}
|
|
6181
|
-
|
|
6182
|
-
if (isBrowser$4 && key === 'css') {
|
|
6715
|
+
if (isBrowser$3 && key === 'css') {
|
|
6183
6716
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
6184
6717
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
6185
6718
|
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
@@ -6197,6 +6730,7 @@ var createCache = function createCache(options) {
|
|
|
6197
6730
|
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
|
6198
6731
|
return;
|
|
6199
6732
|
}
|
|
6733
|
+
|
|
6200
6734
|
document.head.appendChild(node);
|
|
6201
6735
|
node.setAttribute('data-s', '');
|
|
6202
6736
|
});
|
|
@@ -6204,23 +6738,16 @@ var createCache = function createCache(options) {
|
|
|
6204
6738
|
|
|
6205
6739
|
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
6206
6740
|
|
|
6207
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6208
|
-
// $FlowFixMe
|
|
6209
|
-
if (/[^a-z-]/.test(key)) {
|
|
6210
|
-
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
|
6211
|
-
}
|
|
6212
|
-
}
|
|
6213
|
-
|
|
6214
6741
|
var inserted = {};
|
|
6215
6742
|
var container;
|
|
6216
6743
|
var nodesToHydrate = [];
|
|
6217
6744
|
|
|
6218
|
-
if (isBrowser$
|
|
6745
|
+
if (isBrowser$3) {
|
|
6219
6746
|
container = options.container || document.head;
|
|
6220
6747
|
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
6221
6748
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
6222
6749
|
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
|
|
6223
|
-
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
6750
|
+
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
6224
6751
|
|
|
6225
6752
|
for (var i = 1; i < attrib.length; i++) {
|
|
6226
6753
|
inserted[attrib[i]] = true;
|
|
@@ -6234,28 +6761,9 @@ var createCache = function createCache(options) {
|
|
|
6234
6761
|
|
|
6235
6762
|
var omnipresentPlugins = [compat, removeLabel];
|
|
6236
6763
|
|
|
6237
|
-
if (
|
|
6238
|
-
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
6239
|
-
get compat() {
|
|
6240
|
-
return cache.compat;
|
|
6241
|
-
}
|
|
6242
|
-
|
|
6243
|
-
}), incorrectImportAlarm);
|
|
6244
|
-
}
|
|
6245
|
-
|
|
6246
|
-
if (isBrowser$4) {
|
|
6764
|
+
if (!getServerStylisCache) {
|
|
6247
6765
|
var currentSheet;
|
|
6248
|
-
var finalizingPlugins = [stringify,
|
|
6249
|
-
if (!element.root) {
|
|
6250
|
-
if (element["return"]) {
|
|
6251
|
-
currentSheet.insert(element["return"]);
|
|
6252
|
-
} else if (element.value && element.type !== COMMENT) {
|
|
6253
|
-
// insert empty rule in non-production environments
|
|
6254
|
-
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
|
6255
|
-
currentSheet.insert(element.value + "{}");
|
|
6256
|
-
}
|
|
6257
|
-
}
|
|
6258
|
-
} : rulesheet(function (rule) {
|
|
6766
|
+
var finalizingPlugins = [stringify, rulesheet(function (rule) {
|
|
6259
6767
|
currentSheet.insert(rule);
|
|
6260
6768
|
})];
|
|
6261
6769
|
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -6267,14 +6775,6 @@ var createCache = function createCache(options) {
|
|
|
6267
6775
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
6268
6776
|
currentSheet = sheet;
|
|
6269
6777
|
|
|
6270
|
-
if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
|
|
6271
|
-
currentSheet = {
|
|
6272
|
-
insert: function insert(rule) {
|
|
6273
|
-
sheet.insert(rule + serialized.map);
|
|
6274
|
-
}
|
|
6275
|
-
};
|
|
6276
|
-
}
|
|
6277
|
-
|
|
6278
6778
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
6279
6779
|
|
|
6280
6780
|
if (shouldCache) {
|
|
@@ -6288,8 +6788,7 @@ var createCache = function createCache(options) {
|
|
|
6288
6788
|
|
|
6289
6789
|
var _stylis = function _stylis(styles) {
|
|
6290
6790
|
return serialize(compile(styles), _serializer);
|
|
6291
|
-
};
|
|
6292
|
-
|
|
6791
|
+
};
|
|
6293
6792
|
|
|
6294
6793
|
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
6295
6794
|
|
|
@@ -6315,12 +6814,6 @@ var createCache = function createCache(options) {
|
|
|
6315
6814
|
cache.inserted[name] = true;
|
|
6316
6815
|
}
|
|
6317
6816
|
|
|
6318
|
-
if ( // using === development instead of !== production
|
|
6319
|
-
// because if people do ssr in tests, the source maps showing up would be annoying
|
|
6320
|
-
process.env.NODE_ENV === 'development' && serialized.map !== undefined) {
|
|
6321
|
-
return rules + serialized.map;
|
|
6322
|
-
}
|
|
6323
|
-
|
|
6324
6817
|
return rules;
|
|
6325
6818
|
} else {
|
|
6326
6819
|
// in compat mode, we put the styles on the inserted cache so
|
|
@@ -6603,13 +7096,14 @@ var TYPE_STATICS = {};
|
|
|
6603
7096
|
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
6604
7097
|
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
6605
7098
|
|
|
6606
|
-
var isBrowser$
|
|
7099
|
+
var isBrowser$2 = typeof document !== 'undefined';
|
|
7100
|
+
|
|
6607
7101
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
6608
7102
|
var rawClassName = '';
|
|
6609
7103
|
classNames.split(' ').forEach(function (className) {
|
|
6610
7104
|
if (registered[className] !== undefined) {
|
|
6611
7105
|
registeredStyles.push(registered[className] + ";");
|
|
6612
|
-
} else {
|
|
7106
|
+
} else if (className) {
|
|
6613
7107
|
rawClassName += className + " ";
|
|
6614
7108
|
}
|
|
6615
7109
|
});
|
|
@@ -6627,7 +7121,7 @@ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
|
|
|
6627
7121
|
// in node since emotion-server relies on whether a style is in
|
|
6628
7122
|
// the registered cache to know whether a style is global or not
|
|
6629
7123
|
// also, note that this check will be dead code eliminated in the browser
|
|
6630
|
-
isBrowser$
|
|
7124
|
+
isBrowser$2 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
|
6631
7125
|
cache.registered[className] = serialized.styles;
|
|
6632
7126
|
}
|
|
6633
7127
|
};
|
|
@@ -6642,14 +7136,14 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
|
|
6642
7136
|
do {
|
|
6643
7137
|
var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
6644
7138
|
|
|
6645
|
-
if (!isBrowser$
|
|
7139
|
+
if (!isBrowser$2 && maybeStyles !== undefined) {
|
|
6646
7140
|
stylesForSSR += maybeStyles;
|
|
6647
7141
|
}
|
|
6648
7142
|
|
|
6649
7143
|
current = current.next;
|
|
6650
7144
|
} while (current !== undefined);
|
|
6651
7145
|
|
|
6652
|
-
if (!isBrowser$
|
|
7146
|
+
if (!isBrowser$2 && stylesForSSR.length !== 0) {
|
|
6653
7147
|
return stylesForSSR;
|
|
6654
7148
|
}
|
|
6655
7149
|
}
|
|
@@ -6743,6 +7237,7 @@ var unitlessKeys = {
|
|
|
6743
7237
|
opacity: 1,
|
|
6744
7238
|
order: 1,
|
|
6745
7239
|
orphans: 1,
|
|
7240
|
+
scale: 1,
|
|
6746
7241
|
tabSize: 1,
|
|
6747
7242
|
widows: 1,
|
|
6748
7243
|
zIndex: 1,
|
|
@@ -6759,8 +7254,8 @@ var unitlessKeys = {
|
|
|
6759
7254
|
strokeWidth: 1
|
|
6760
7255
|
};
|
|
6761
7256
|
|
|
6762
|
-
var
|
|
6763
|
-
|
|
7257
|
+
var isDevelopment$1 = false;
|
|
7258
|
+
|
|
6764
7259
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
6765
7260
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
6766
7261
|
|
|
@@ -6801,34 +7296,6 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
6801
7296
|
return value;
|
|
6802
7297
|
};
|
|
6803
7298
|
|
|
6804
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6805
|
-
var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
6806
|
-
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
|
|
6807
|
-
var oldProcessStyleValue = processStyleValue;
|
|
6808
|
-
var msPattern = /^-ms-/;
|
|
6809
|
-
var hyphenPattern = /-(.)/g;
|
|
6810
|
-
var hyphenatedCache = {};
|
|
6811
|
-
|
|
6812
|
-
processStyleValue = function processStyleValue(key, value) {
|
|
6813
|
-
if (key === 'content') {
|
|
6814
|
-
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
6815
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
6816
|
-
}
|
|
6817
|
-
}
|
|
6818
|
-
|
|
6819
|
-
var processed = oldProcessStyleValue(key, value);
|
|
6820
|
-
|
|
6821
|
-
if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
|
|
6822
|
-
hyphenatedCache[key] = true;
|
|
6823
|
-
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
|
|
6824
|
-
return _char.toUpperCase();
|
|
6825
|
-
}) + "?");
|
|
6826
|
-
}
|
|
6827
|
-
|
|
6828
|
-
return processed;
|
|
6829
|
-
};
|
|
6830
|
-
}
|
|
6831
|
-
|
|
6832
7299
|
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
6833
7300
|
|
|
6834
7301
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
@@ -6836,12 +7303,11 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
6836
7303
|
return '';
|
|
6837
7304
|
}
|
|
6838
7305
|
|
|
6839
|
-
|
|
6840
|
-
if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
|
6841
|
-
throw new Error(noComponentSelectorMessage);
|
|
6842
|
-
}
|
|
7306
|
+
var componentSelector = interpolation;
|
|
6843
7307
|
|
|
6844
|
-
|
|
7308
|
+
if (componentSelector.__emotion_styles !== undefined) {
|
|
7309
|
+
|
|
7310
|
+
return componentSelector;
|
|
6845
7311
|
}
|
|
6846
7312
|
|
|
6847
7313
|
switch (typeof interpolation) {
|
|
@@ -6852,17 +7318,21 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
6852
7318
|
|
|
6853
7319
|
case 'object':
|
|
6854
7320
|
{
|
|
6855
|
-
|
|
7321
|
+
var keyframes = interpolation;
|
|
7322
|
+
|
|
7323
|
+
if (keyframes.anim === 1) {
|
|
6856
7324
|
cursor = {
|
|
6857
|
-
name:
|
|
6858
|
-
styles:
|
|
7325
|
+
name: keyframes.name,
|
|
7326
|
+
styles: keyframes.styles,
|
|
6859
7327
|
next: cursor
|
|
6860
7328
|
};
|
|
6861
|
-
return
|
|
7329
|
+
return keyframes.name;
|
|
6862
7330
|
}
|
|
6863
7331
|
|
|
6864
|
-
|
|
6865
|
-
|
|
7332
|
+
var serializedStyles = interpolation;
|
|
7333
|
+
|
|
7334
|
+
if (serializedStyles.styles !== undefined) {
|
|
7335
|
+
var next = serializedStyles.next;
|
|
6866
7336
|
|
|
6867
7337
|
if (next !== undefined) {
|
|
6868
7338
|
// not the most efficient thing ever but this is a pretty rare case
|
|
@@ -6877,12 +7347,7 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
6877
7347
|
}
|
|
6878
7348
|
}
|
|
6879
7349
|
|
|
6880
|
-
var styles =
|
|
6881
|
-
|
|
6882
|
-
if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
|
|
6883
|
-
styles += interpolation.map;
|
|
6884
|
-
}
|
|
6885
|
-
|
|
7350
|
+
var styles = serializedStyles.styles + ";";
|
|
6886
7351
|
return styles;
|
|
6887
7352
|
}
|
|
6888
7353
|
|
|
@@ -6896,37 +7361,21 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
6896
7361
|
var result = interpolation(mergedProps);
|
|
6897
7362
|
cursor = previousCursor;
|
|
6898
7363
|
return handleInterpolation(mergedProps, registered, result);
|
|
6899
|
-
} else if (process.env.NODE_ENV !== 'production') {
|
|
6900
|
-
console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
|
|
6901
7364
|
}
|
|
6902
7365
|
|
|
6903
7366
|
break;
|
|
6904
7367
|
}
|
|
6905
|
-
|
|
6906
|
-
case 'string':
|
|
6907
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6908
|
-
var matched = [];
|
|
6909
|
-
var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
|
|
6910
|
-
var fakeVarName = "animation" + matched.length;
|
|
6911
|
-
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
|
|
6912
|
-
return "${" + fakeVarName + "}";
|
|
6913
|
-
});
|
|
6914
|
-
|
|
6915
|
-
if (matched.length) {
|
|
6916
|
-
console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
|
|
6917
|
-
}
|
|
6918
|
-
}
|
|
6919
|
-
|
|
6920
|
-
break;
|
|
6921
7368
|
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
6922
7369
|
|
|
6923
7370
|
|
|
7371
|
+
var asString = interpolation;
|
|
7372
|
+
|
|
6924
7373
|
if (registered == null) {
|
|
6925
|
-
return
|
|
7374
|
+
return asString;
|
|
6926
7375
|
}
|
|
6927
7376
|
|
|
6928
|
-
var cached = registered[
|
|
6929
|
-
return cached !== undefined ? cached :
|
|
7377
|
+
var cached = registered[asString];
|
|
7378
|
+
return cached !== undefined ? cached : asString;
|
|
6930
7379
|
}
|
|
6931
7380
|
|
|
6932
7381
|
function createStringFromObject(mergedProps, registered, obj) {
|
|
@@ -6937,44 +7386,43 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
6937
7386
|
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
6938
7387
|
}
|
|
6939
7388
|
} else {
|
|
6940
|
-
for (var
|
|
6941
|
-
var value = obj[
|
|
7389
|
+
for (var key in obj) {
|
|
7390
|
+
var value = obj[key];
|
|
6942
7391
|
|
|
6943
7392
|
if (typeof value !== 'object') {
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
string +=
|
|
7393
|
+
var asString = value;
|
|
7394
|
+
|
|
7395
|
+
if (registered != null && registered[asString] !== undefined) {
|
|
7396
|
+
string += key + "{" + registered[asString] + "}";
|
|
7397
|
+
} else if (isProcessableValue(asString)) {
|
|
7398
|
+
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
6948
7399
|
}
|
|
6949
7400
|
} else {
|
|
6950
|
-
if (
|
|
7401
|
+
if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$1) {
|
|
6951
7402
|
throw new Error(noComponentSelectorMessage);
|
|
6952
7403
|
}
|
|
6953
7404
|
|
|
6954
7405
|
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
|
|
6955
7406
|
for (var _i = 0; _i < value.length; _i++) {
|
|
6956
7407
|
if (isProcessableValue(value[_i])) {
|
|
6957
|
-
string += processStyleName(
|
|
7408
|
+
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
6958
7409
|
}
|
|
6959
7410
|
}
|
|
6960
7411
|
} else {
|
|
6961
7412
|
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
6962
7413
|
|
|
6963
|
-
switch (
|
|
7414
|
+
switch (key) {
|
|
6964
7415
|
case 'animation':
|
|
6965
7416
|
case 'animationName':
|
|
6966
7417
|
{
|
|
6967
|
-
string += processStyleName(
|
|
7418
|
+
string += processStyleName(key) + ":" + interpolated + ";";
|
|
6968
7419
|
break;
|
|
6969
7420
|
}
|
|
6970
7421
|
|
|
6971
7422
|
default:
|
|
6972
7423
|
{
|
|
6973
|
-
if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
|
|
6974
|
-
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
6975
|
-
}
|
|
6976
7424
|
|
|
6977
|
-
string +=
|
|
7425
|
+
string += key + "{" + interpolated + "}";
|
|
6978
7426
|
}
|
|
6979
7427
|
}
|
|
6980
7428
|
}
|
|
@@ -6985,17 +7433,11 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
6985
7433
|
return string;
|
|
6986
7434
|
}
|
|
6987
7435
|
|
|
6988
|
-
var labelPattern = /label:\s*([^\s
|
|
6989
|
-
var sourceMapPattern;
|
|
6990
|
-
|
|
6991
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6992
|
-
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
6993
|
-
} // this is the cursor for keyframes
|
|
7436
|
+
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
|
|
6994
7437
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
6995
7438
|
|
|
6996
|
-
|
|
6997
7439
|
var cursor;
|
|
6998
|
-
|
|
7440
|
+
function serializeStyles(args, registered, mergedProps) {
|
|
6999
7441
|
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
|
|
7000
7442
|
return args[0];
|
|
7001
7443
|
}
|
|
@@ -7009,11 +7451,9 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
7009
7451
|
stringMode = false;
|
|
7010
7452
|
styles += handleInterpolation(mergedProps, registered, strings);
|
|
7011
7453
|
} else {
|
|
7012
|
-
|
|
7013
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
7014
|
-
}
|
|
7454
|
+
var asTemplateStringsArr = strings;
|
|
7015
7455
|
|
|
7016
|
-
styles +=
|
|
7456
|
+
styles += asTemplateStringsArr[0];
|
|
7017
7457
|
} // we start at 1 since we've already handled the first arg
|
|
7018
7458
|
|
|
7019
7459
|
|
|
@@ -7021,21 +7461,10 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
7021
7461
|
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
7022
7462
|
|
|
7023
7463
|
if (stringMode) {
|
|
7024
|
-
|
|
7025
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
7026
|
-
}
|
|
7464
|
+
var templateStringsArr = strings;
|
|
7027
7465
|
|
|
7028
|
-
styles +=
|
|
7466
|
+
styles += templateStringsArr[i];
|
|
7029
7467
|
}
|
|
7030
|
-
}
|
|
7031
|
-
|
|
7032
|
-
var sourceMap;
|
|
7033
|
-
|
|
7034
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7035
|
-
styles = styles.replace(sourceMapPattern, function (match) {
|
|
7036
|
-
sourceMap = match;
|
|
7037
|
-
return '';
|
|
7038
|
-
});
|
|
7039
7468
|
} // using a global regex with .exec is stateful so lastIndex has to be reset each time
|
|
7040
7469
|
|
|
7041
7470
|
|
|
@@ -7044,44 +7473,30 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
7044
7473
|
var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
|
|
7045
7474
|
|
|
7046
7475
|
while ((match = labelPattern.exec(styles)) !== null) {
|
|
7047
|
-
identifierName += '-' +
|
|
7048
|
-
match[1];
|
|
7476
|
+
identifierName += '-' + match[1];
|
|
7049
7477
|
}
|
|
7050
7478
|
|
|
7051
7479
|
var name = murmur2(styles) + identifierName;
|
|
7052
7480
|
|
|
7053
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7054
|
-
// $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
|
|
7055
|
-
return {
|
|
7056
|
-
name: name,
|
|
7057
|
-
styles: styles,
|
|
7058
|
-
map: sourceMap,
|
|
7059
|
-
next: cursor,
|
|
7060
|
-
toString: function toString() {
|
|
7061
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
7062
|
-
}
|
|
7063
|
-
};
|
|
7064
|
-
}
|
|
7065
|
-
|
|
7066
7481
|
return {
|
|
7067
7482
|
name: name,
|
|
7068
7483
|
styles: styles,
|
|
7069
7484
|
next: cursor
|
|
7070
7485
|
};
|
|
7071
|
-
}
|
|
7486
|
+
}
|
|
7072
7487
|
|
|
7073
|
-
var isBrowser$
|
|
7488
|
+
var isBrowser$1 = typeof document !== 'undefined';
|
|
7074
7489
|
|
|
7075
7490
|
var syncFallback = function syncFallback(create) {
|
|
7076
7491
|
return create();
|
|
7077
7492
|
};
|
|
7078
7493
|
|
|
7079
7494
|
var useInsertionEffect = React__namespace['useInsertion' + 'Effect'] ? React__namespace['useInsertion' + 'Effect'] : false;
|
|
7080
|
-
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$
|
|
7081
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React__namespace.useLayoutEffect;
|
|
7495
|
+
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
|
|
7082
7496
|
|
|
7083
|
-
var
|
|
7084
|
-
|
|
7497
|
+
var isDevelopment = false;
|
|
7498
|
+
|
|
7499
|
+
var isBrowser = typeof document !== 'undefined';
|
|
7085
7500
|
|
|
7086
7501
|
var EmotionCacheContext = /* #__PURE__ */React__namespace.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
7087
7502
|
// because this module is primarily intended for the browser and node
|
|
@@ -7093,14 +7508,9 @@ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
|
|
|
7093
7508
|
key: 'css'
|
|
7094
7509
|
}) : null);
|
|
7095
7510
|
|
|
7096
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7097
|
-
EmotionCacheContext.displayName = 'EmotionCacheContext';
|
|
7098
|
-
}
|
|
7099
|
-
|
|
7100
7511
|
EmotionCacheContext.Provider;
|
|
7101
7512
|
|
|
7102
7513
|
var withEmotionCache = function withEmotionCache(func) {
|
|
7103
|
-
// $FlowFixMe
|
|
7104
7514
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
7105
7515
|
// the cache will never be null in the browser
|
|
7106
7516
|
var cache = React.useContext(EmotionCacheContext);
|
|
@@ -7108,7 +7518,7 @@ var withEmotionCache = function withEmotionCache(func) {
|
|
|
7108
7518
|
});
|
|
7109
7519
|
};
|
|
7110
7520
|
|
|
7111
|
-
if (!isBrowser
|
|
7521
|
+
if (!isBrowser) {
|
|
7112
7522
|
withEmotionCache = function withEmotionCache(func) {
|
|
7113
7523
|
return function (props) {
|
|
7114
7524
|
var cache = React.useContext(EmotionCacheContext);
|
|
@@ -7134,81 +7544,25 @@ if (!isBrowser$1) {
|
|
|
7134
7544
|
|
|
7135
7545
|
var ThemeContext = /* #__PURE__ */React__namespace.createContext({});
|
|
7136
7546
|
|
|
7137
|
-
|
|
7138
|
-
ThemeContext.displayName = 'EmotionThemeContext';
|
|
7139
|
-
}
|
|
7140
|
-
|
|
7141
|
-
var getLastPart = function getLastPart(functionName) {
|
|
7142
|
-
// The match may be something like 'Object.createEmotionProps' or
|
|
7143
|
-
// 'Loader.prototype.render'
|
|
7144
|
-
var parts = functionName.split('.');
|
|
7145
|
-
return parts[parts.length - 1];
|
|
7146
|
-
};
|
|
7147
|
-
|
|
7148
|
-
var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {
|
|
7149
|
-
// V8
|
|
7150
|
-
var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line);
|
|
7151
|
-
if (match) return getLastPart(match[1]); // Safari / Firefox
|
|
7152
|
-
|
|
7153
|
-
match = /^([A-Za-z0-9$.]+)@/.exec(line);
|
|
7154
|
-
if (match) return getLastPart(match[1]);
|
|
7155
|
-
return undefined;
|
|
7156
|
-
};
|
|
7157
|
-
|
|
7158
|
-
var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS
|
|
7159
|
-
// identifiers, thus we only need to replace what is a valid character for JS,
|
|
7160
|
-
// but not for CSS.
|
|
7161
|
-
|
|
7162
|
-
var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
|
|
7163
|
-
return identifier.replace(/\$/g, '-');
|
|
7164
|
-
};
|
|
7165
|
-
|
|
7166
|
-
var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {
|
|
7167
|
-
if (!stackTrace) return undefined;
|
|
7168
|
-
var lines = stackTrace.split('\n');
|
|
7169
|
-
|
|
7170
|
-
for (var i = 0; i < lines.length; i++) {
|
|
7171
|
-
var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error"
|
|
7172
|
-
|
|
7173
|
-
if (!functionName) continue; // If we reach one of these, we have gone too far and should quit
|
|
7174
|
-
|
|
7175
|
-
if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an
|
|
7176
|
-
// uppercase letter
|
|
7177
|
-
|
|
7178
|
-
if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);
|
|
7179
|
-
}
|
|
7180
|
-
|
|
7181
|
-
return undefined;
|
|
7182
|
-
};
|
|
7547
|
+
var hasOwn = {}.hasOwnProperty;
|
|
7183
7548
|
|
|
7184
7549
|
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
7185
|
-
var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
|
|
7186
7550
|
var createEmotionProps = function createEmotionProps(type, props) {
|
|
7187
|
-
if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
|
|
7188
|
-
props.css.indexOf(':') !== -1) {
|
|
7189
|
-
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`");
|
|
7190
|
-
}
|
|
7191
7551
|
|
|
7192
7552
|
var newProps = {};
|
|
7193
7553
|
|
|
7194
|
-
for (var
|
|
7195
|
-
if (
|
|
7196
|
-
newProps[
|
|
7554
|
+
for (var _key in props) {
|
|
7555
|
+
if (hasOwn.call(props, _key)) {
|
|
7556
|
+
newProps[_key] = props[_key];
|
|
7197
7557
|
}
|
|
7198
7558
|
}
|
|
7199
7559
|
|
|
7200
|
-
newProps[typePropName] = type; //
|
|
7201
|
-
// the label hasn't already been computed
|
|
7202
|
-
|
|
7203
|
-
if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {
|
|
7204
|
-
var label = getLabelFromStackTrace(new Error().stack);
|
|
7205
|
-
if (label) newProps[labelPropName] = label;
|
|
7206
|
-
}
|
|
7560
|
+
newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
|
|
7207
7561
|
|
|
7208
7562
|
return newProps;
|
|
7209
7563
|
};
|
|
7210
7564
|
|
|
7211
|
-
var Insertion
|
|
7565
|
+
var Insertion = function Insertion(_ref) {
|
|
7212
7566
|
var cache = _ref.cache,
|
|
7213
7567
|
serialized = _ref.serialized,
|
|
7214
7568
|
isStringTag = _ref.isStringTag;
|
|
@@ -7217,7 +7571,7 @@ var Insertion$1 = function Insertion(_ref) {
|
|
|
7217
7571
|
return insertStyles(cache, serialized, isStringTag);
|
|
7218
7572
|
});
|
|
7219
7573
|
|
|
7220
|
-
if (!isBrowser
|
|
7574
|
+
if (!isBrowser && rules !== undefined) {
|
|
7221
7575
|
var _ref2;
|
|
7222
7576
|
|
|
7223
7577
|
var serializedNames = serialized.name;
|
|
@@ -7257,175 +7611,35 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
7257
7611
|
|
|
7258
7612
|
var serialized = serializeStyles(registeredStyles, undefined, React__namespace.useContext(ThemeContext));
|
|
7259
7613
|
|
|
7260
|
-
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
|
7261
|
-
var labelFromStack = props[labelPropName];
|
|
7262
|
-
|
|
7263
|
-
if (labelFromStack) {
|
|
7264
|
-
serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);
|
|
7265
|
-
}
|
|
7266
|
-
}
|
|
7267
|
-
|
|
7268
7614
|
className += cache.key + "-" + serialized.name;
|
|
7269
7615
|
var newProps = {};
|
|
7270
7616
|
|
|
7271
|
-
for (var
|
|
7272
|
-
if (
|
|
7273
|
-
newProps[
|
|
7617
|
+
for (var _key2 in props) {
|
|
7618
|
+
if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (!isDevelopment )) {
|
|
7619
|
+
newProps[_key2] = props[_key2];
|
|
7274
7620
|
}
|
|
7275
7621
|
}
|
|
7276
7622
|
|
|
7277
|
-
newProps.ref = ref;
|
|
7278
7623
|
newProps.className = className;
|
|
7279
|
-
|
|
7624
|
+
|
|
7625
|
+
if (ref) {
|
|
7626
|
+
newProps.ref = ref;
|
|
7627
|
+
}
|
|
7628
|
+
|
|
7629
|
+
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
|
|
7280
7630
|
cache: cache,
|
|
7281
7631
|
serialized: serialized,
|
|
7282
7632
|
isStringTag: typeof WrappedComponent === 'string'
|
|
7283
7633
|
}), /*#__PURE__*/React__namespace.createElement(WrappedComponent, newProps));
|
|
7284
7634
|
});
|
|
7285
7635
|
|
|
7286
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7287
|
-
Emotion.displayName = 'EmotionCssPropInternal';
|
|
7288
|
-
}
|
|
7289
|
-
|
|
7290
7636
|
var Emotion$1 = Emotion;
|
|
7291
7637
|
|
|
7292
|
-
var pkg = {
|
|
7293
|
-
name: "@emotion/react",
|
|
7294
|
-
version: "11.11.0",
|
|
7295
|
-
main: "dist/emotion-react.cjs.js",
|
|
7296
|
-
module: "dist/emotion-react.esm.js",
|
|
7297
|
-
browser: {
|
|
7298
|
-
"./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
|
|
7299
|
-
},
|
|
7300
|
-
exports: {
|
|
7301
|
-
".": {
|
|
7302
|
-
module: {
|
|
7303
|
-
worker: "./dist/emotion-react.worker.esm.js",
|
|
7304
|
-
browser: "./dist/emotion-react.browser.esm.js",
|
|
7305
|
-
"default": "./dist/emotion-react.esm.js"
|
|
7306
|
-
},
|
|
7307
|
-
"import": "./dist/emotion-react.cjs.mjs",
|
|
7308
|
-
"default": "./dist/emotion-react.cjs.js"
|
|
7309
|
-
},
|
|
7310
|
-
"./jsx-runtime": {
|
|
7311
|
-
module: {
|
|
7312
|
-
worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
|
|
7313
|
-
browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
|
|
7314
|
-
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
|
|
7315
|
-
},
|
|
7316
|
-
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
|
|
7317
|
-
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
|
|
7318
|
-
},
|
|
7319
|
-
"./_isolated-hnrs": {
|
|
7320
|
-
module: {
|
|
7321
|
-
worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
|
|
7322
|
-
browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
|
|
7323
|
-
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
|
|
7324
|
-
},
|
|
7325
|
-
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
|
|
7326
|
-
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
|
|
7327
|
-
},
|
|
7328
|
-
"./jsx-dev-runtime": {
|
|
7329
|
-
module: {
|
|
7330
|
-
worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
|
|
7331
|
-
browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
|
|
7332
|
-
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
|
|
7333
|
-
},
|
|
7334
|
-
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
|
|
7335
|
-
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
|
|
7336
|
-
},
|
|
7337
|
-
"./package.json": "./package.json",
|
|
7338
|
-
"./types/css-prop": "./types/css-prop.d.ts",
|
|
7339
|
-
"./macro": {
|
|
7340
|
-
types: {
|
|
7341
|
-
"import": "./macro.d.mts",
|
|
7342
|
-
"default": "./macro.d.ts"
|
|
7343
|
-
},
|
|
7344
|
-
"default": "./macro.js"
|
|
7345
|
-
}
|
|
7346
|
-
},
|
|
7347
|
-
types: "types/index.d.ts",
|
|
7348
|
-
files: [
|
|
7349
|
-
"src",
|
|
7350
|
-
"dist",
|
|
7351
|
-
"jsx-runtime",
|
|
7352
|
-
"jsx-dev-runtime",
|
|
7353
|
-
"_isolated-hnrs",
|
|
7354
|
-
"types/*.d.ts",
|
|
7355
|
-
"macro.*"
|
|
7356
|
-
],
|
|
7357
|
-
sideEffects: false,
|
|
7358
|
-
author: "Emotion Contributors",
|
|
7359
|
-
license: "MIT",
|
|
7360
|
-
scripts: {
|
|
7361
|
-
"test:typescript": "dtslint types"
|
|
7362
|
-
},
|
|
7363
|
-
dependencies: {
|
|
7364
|
-
"@babel/runtime": "^7.18.3",
|
|
7365
|
-
"@emotion/babel-plugin": "^11.11.0",
|
|
7366
|
-
"@emotion/cache": "^11.11.0",
|
|
7367
|
-
"@emotion/serialize": "^1.1.2",
|
|
7368
|
-
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
|
|
7369
|
-
"@emotion/utils": "^1.2.1",
|
|
7370
|
-
"@emotion/weak-memoize": "^0.3.1",
|
|
7371
|
-
"hoist-non-react-statics": "^3.3.1"
|
|
7372
|
-
},
|
|
7373
|
-
peerDependencies: {
|
|
7374
|
-
react: ">=16.8.0"
|
|
7375
|
-
},
|
|
7376
|
-
peerDependenciesMeta: {
|
|
7377
|
-
"@types/react": {
|
|
7378
|
-
optional: true
|
|
7379
|
-
}
|
|
7380
|
-
},
|
|
7381
|
-
devDependencies: {
|
|
7382
|
-
"@definitelytyped/dtslint": "0.0.112",
|
|
7383
|
-
"@emotion/css": "11.11.0",
|
|
7384
|
-
"@emotion/css-prettifier": "1.1.3",
|
|
7385
|
-
"@emotion/server": "11.11.0",
|
|
7386
|
-
"@emotion/styled": "11.11.0",
|
|
7387
|
-
"html-tag-names": "^1.1.2",
|
|
7388
|
-
react: "16.14.0",
|
|
7389
|
-
"svg-tag-names": "^1.1.1",
|
|
7390
|
-
typescript: "^4.5.5"
|
|
7391
|
-
},
|
|
7392
|
-
repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
|
|
7393
|
-
publishConfig: {
|
|
7394
|
-
access: "public"
|
|
7395
|
-
},
|
|
7396
|
-
"umd:main": "dist/emotion-react.umd.min.js",
|
|
7397
|
-
preconstruct: {
|
|
7398
|
-
entrypoints: [
|
|
7399
|
-
"./index.js",
|
|
7400
|
-
"./jsx-runtime.js",
|
|
7401
|
-
"./jsx-dev-runtime.js",
|
|
7402
|
-
"./_isolated-hnrs.js"
|
|
7403
|
-
],
|
|
7404
|
-
umdName: "emotionReact",
|
|
7405
|
-
exports: {
|
|
7406
|
-
envConditions: [
|
|
7407
|
-
"browser",
|
|
7408
|
-
"worker"
|
|
7409
|
-
],
|
|
7410
|
-
extra: {
|
|
7411
|
-
"./types/css-prop": "./types/css-prop.d.ts",
|
|
7412
|
-
"./macro": {
|
|
7413
|
-
types: {
|
|
7414
|
-
"import": "./macro.d.mts",
|
|
7415
|
-
"default": "./macro.d.ts"
|
|
7416
|
-
},
|
|
7417
|
-
"default": "./macro.js"
|
|
7418
|
-
}
|
|
7419
|
-
}
|
|
7420
|
-
}
|
|
7421
|
-
}
|
|
7422
|
-
};
|
|
7423
|
-
|
|
7424
7638
|
var jsx = function jsx(type, props) {
|
|
7639
|
+
// eslint-disable-next-line prefer-rest-params
|
|
7425
7640
|
var args = arguments;
|
|
7426
7641
|
|
|
7427
|
-
if (props == null || !
|
|
7428
|
-
// $FlowFixMe
|
|
7642
|
+
if (props == null || !hasOwn.call(props, 'css')) {
|
|
7429
7643
|
return React__namespace.createElement.apply(undefined, args);
|
|
7430
7644
|
}
|
|
7431
7645
|
|
|
@@ -7436,439 +7650,1178 @@ var jsx = function jsx(type, props) {
|
|
|
7436
7650
|
|
|
7437
7651
|
for (var i = 2; i < argsLength; i++) {
|
|
7438
7652
|
createElementArgArray[i] = args[i];
|
|
7439
|
-
}
|
|
7440
|
-
|
|
7653
|
+
}
|
|
7441
7654
|
|
|
7442
7655
|
return React__namespace.createElement.apply(null, createElementArgArray);
|
|
7443
7656
|
};
|
|
7444
7657
|
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
// initial client-side render from SSR, use place of hydrating tag
|
|
7448
|
-
|
|
7449
|
-
var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
7450
|
-
if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
|
|
7451
|
-
// probably using the custom createElement which
|
|
7452
|
-
// means it will be turned into a className prop
|
|
7453
|
-
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
7454
|
-
props.className || props.css)) {
|
|
7455
|
-
console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
|
|
7456
|
-
warnedAboutCssPropForGlobal = true;
|
|
7457
|
-
}
|
|
7658
|
+
(function (_jsx) {
|
|
7659
|
+
var JSX;
|
|
7458
7660
|
|
|
7459
|
-
|
|
7460
|
-
|
|
7661
|
+
(function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
7662
|
+
})(jsx || (jsx = {}));
|
|
7461
7663
|
|
|
7462
|
-
|
|
7463
|
-
|
|
7664
|
+
function css$2() {
|
|
7665
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7666
|
+
args[_key] = arguments[_key];
|
|
7667
|
+
}
|
|
7464
7668
|
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
var next = serialized.next;
|
|
7669
|
+
return serializeStyles(args);
|
|
7670
|
+
}
|
|
7468
7671
|
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
|
|
7472
|
-
|
|
7672
|
+
function keyframes() {
|
|
7673
|
+
var insertable = css$2.apply(void 0, arguments);
|
|
7674
|
+
var name = "animation-" + insertable.name;
|
|
7675
|
+
return {
|
|
7676
|
+
name: name,
|
|
7677
|
+
styles: "@keyframes " + name + "{" + insertable.styles + "}",
|
|
7678
|
+
anim: 1,
|
|
7679
|
+
toString: function toString() {
|
|
7680
|
+
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
7473
7681
|
}
|
|
7682
|
+
};
|
|
7683
|
+
}
|
|
7474
7684
|
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
styles: serializedStyles
|
|
7479
|
-
}, cache.sheet, shouldCache);
|
|
7685
|
+
function _arrayWithHoles(r) {
|
|
7686
|
+
if (Array.isArray(r)) return r;
|
|
7687
|
+
}
|
|
7480
7688
|
|
|
7481
|
-
|
|
7482
|
-
|
|
7689
|
+
function _iterableToArrayLimit(r, l) {
|
|
7690
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7691
|
+
if (null != t) {
|
|
7692
|
+
var e,
|
|
7693
|
+
n,
|
|
7694
|
+
i,
|
|
7695
|
+
u,
|
|
7696
|
+
a = [],
|
|
7697
|
+
f = !0,
|
|
7698
|
+
o = !1;
|
|
7699
|
+
try {
|
|
7700
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
7701
|
+
if (Object(t) !== t) return;
|
|
7702
|
+
f = !1;
|
|
7703
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
7704
|
+
} catch (r) {
|
|
7705
|
+
o = !0, n = r;
|
|
7706
|
+
} finally {
|
|
7707
|
+
try {
|
|
7708
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
7709
|
+
} finally {
|
|
7710
|
+
if (o) throw n;
|
|
7711
|
+
}
|
|
7483
7712
|
}
|
|
7713
|
+
return a;
|
|
7714
|
+
}
|
|
7715
|
+
}
|
|
7484
7716
|
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
} // yes, i know these hooks are used conditionally
|
|
7489
|
-
// but it is based on a constant that will never change at runtime
|
|
7490
|
-
// it's effectively like having two implementations and switching them out
|
|
7491
|
-
// so it's not actually breaking anything
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
var sheetRef = React__namespace.useRef();
|
|
7495
|
-
useInsertionEffectWithLayoutFallback(function () {
|
|
7496
|
-
var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
|
|
7497
|
-
|
|
7498
|
-
var sheet = new cache.sheet.constructor({
|
|
7499
|
-
key: key,
|
|
7500
|
-
nonce: cache.sheet.nonce,
|
|
7501
|
-
container: cache.sheet.container,
|
|
7502
|
-
speedy: cache.sheet.isSpeedy
|
|
7503
|
-
});
|
|
7504
|
-
var rehydrating = false; // $FlowFixMe
|
|
7505
|
-
|
|
7506
|
-
var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
|
|
7507
|
-
|
|
7508
|
-
if (cache.sheet.tags.length) {
|
|
7509
|
-
sheet.before = cache.sheet.tags[0];
|
|
7510
|
-
}
|
|
7717
|
+
function _nonIterableRest() {
|
|
7718
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7719
|
+
}
|
|
7511
7720
|
|
|
7512
|
-
|
|
7513
|
-
|
|
7721
|
+
function _slicedToArray(r, e) {
|
|
7722
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
7723
|
+
}
|
|
7514
7724
|
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7725
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
7726
|
+
if (null == r) return {};
|
|
7727
|
+
var t = {};
|
|
7728
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
7729
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
7730
|
+
t[n] = r[n];
|
|
7731
|
+
}
|
|
7732
|
+
return t;
|
|
7733
|
+
}
|
|
7518
7734
|
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
var
|
|
7526
|
-
|
|
7527
|
-
|
|
7528
|
-
|
|
7529
|
-
|
|
7530
|
-
sheetRefCurrent[1] = false;
|
|
7531
|
-
return;
|
|
7532
|
-
}
|
|
7735
|
+
function _objectWithoutProperties(e, t) {
|
|
7736
|
+
if (null == e) return {};
|
|
7737
|
+
var o,
|
|
7738
|
+
r,
|
|
7739
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
7740
|
+
if (Object.getOwnPropertySymbols) {
|
|
7741
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
7742
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
7743
|
+
}
|
|
7744
|
+
return i;
|
|
7745
|
+
}
|
|
7533
7746
|
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7747
|
+
function _taggedTemplateLiteral(e, t) {
|
|
7748
|
+
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
7749
|
+
raw: {
|
|
7750
|
+
value: Object.freeze(t)
|
|
7537
7751
|
}
|
|
7752
|
+
}));
|
|
7753
|
+
}
|
|
7538
7754
|
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
sheet.flush();
|
|
7544
|
-
}
|
|
7755
|
+
/**
|
|
7756
|
+
* Custom positioning reference element.
|
|
7757
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
7758
|
+
*/
|
|
7545
7759
|
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7760
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
7761
|
+
const alignments = ['start', 'end'];
|
|
7762
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
7763
|
+
const min = Math.min;
|
|
7764
|
+
const max = Math.max;
|
|
7765
|
+
const round = Math.round;
|
|
7766
|
+
const floor = Math.floor;
|
|
7767
|
+
const createCoords = v => ({
|
|
7768
|
+
x: v,
|
|
7769
|
+
y: v
|
|
7549
7770
|
});
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7771
|
+
const oppositeSideMap = {
|
|
7772
|
+
left: 'right',
|
|
7773
|
+
right: 'left',
|
|
7774
|
+
bottom: 'top',
|
|
7775
|
+
top: 'bottom'
|
|
7776
|
+
};
|
|
7777
|
+
const oppositeAlignmentMap = {
|
|
7778
|
+
start: 'end',
|
|
7779
|
+
end: 'start'
|
|
7780
|
+
};
|
|
7781
|
+
function clamp(start, value, end) {
|
|
7782
|
+
return max(start, min(value, end));
|
|
7553
7783
|
}
|
|
7554
|
-
|
|
7555
|
-
function
|
|
7556
|
-
|
|
7557
|
-
|
|
7784
|
+
function evaluate(value, param) {
|
|
7785
|
+
return typeof value === 'function' ? value(param) : value;
|
|
7786
|
+
}
|
|
7787
|
+
function getSide(placement) {
|
|
7788
|
+
return placement.split('-')[0];
|
|
7789
|
+
}
|
|
7790
|
+
function getAlignment(placement) {
|
|
7791
|
+
return placement.split('-')[1];
|
|
7792
|
+
}
|
|
7793
|
+
function getOppositeAxis(axis) {
|
|
7794
|
+
return axis === 'x' ? 'y' : 'x';
|
|
7795
|
+
}
|
|
7796
|
+
function getAxisLength(axis) {
|
|
7797
|
+
return axis === 'y' ? 'height' : 'width';
|
|
7798
|
+
}
|
|
7799
|
+
function getSideAxis(placement) {
|
|
7800
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
7801
|
+
}
|
|
7802
|
+
function getAlignmentAxis(placement) {
|
|
7803
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
7804
|
+
}
|
|
7805
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
7806
|
+
if (rtl === void 0) {
|
|
7807
|
+
rtl = false;
|
|
7558
7808
|
}
|
|
7809
|
+
const alignment = getAlignment(placement);
|
|
7810
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
7811
|
+
const length = getAxisLength(alignmentAxis);
|
|
7812
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
7813
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
7814
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
7815
|
+
}
|
|
7816
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
7817
|
+
}
|
|
7818
|
+
function getExpandedPlacements(placement) {
|
|
7819
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
7820
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
7821
|
+
}
|
|
7822
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
7823
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
7824
|
+
}
|
|
7825
|
+
function getSideList(side, isStart, rtl) {
|
|
7826
|
+
const lr = ['left', 'right'];
|
|
7827
|
+
const rl = ['right', 'left'];
|
|
7828
|
+
const tb = ['top', 'bottom'];
|
|
7829
|
+
const bt = ['bottom', 'top'];
|
|
7830
|
+
switch (side) {
|
|
7831
|
+
case 'top':
|
|
7832
|
+
case 'bottom':
|
|
7833
|
+
if (rtl) return isStart ? rl : lr;
|
|
7834
|
+
return isStart ? lr : rl;
|
|
7835
|
+
case 'left':
|
|
7836
|
+
case 'right':
|
|
7837
|
+
return isStart ? tb : bt;
|
|
7838
|
+
default:
|
|
7839
|
+
return [];
|
|
7840
|
+
}
|
|
7841
|
+
}
|
|
7842
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
7843
|
+
const alignment = getAlignment(placement);
|
|
7844
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
7845
|
+
if (alignment) {
|
|
7846
|
+
list = list.map(side => side + "-" + alignment);
|
|
7847
|
+
if (flipAlignment) {
|
|
7848
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
7849
|
+
}
|
|
7850
|
+
}
|
|
7851
|
+
return list;
|
|
7852
|
+
}
|
|
7853
|
+
function getOppositePlacement(placement) {
|
|
7854
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
7855
|
+
}
|
|
7856
|
+
function expandPaddingObject(padding) {
|
|
7857
|
+
return {
|
|
7858
|
+
top: 0,
|
|
7859
|
+
right: 0,
|
|
7860
|
+
bottom: 0,
|
|
7861
|
+
left: 0,
|
|
7862
|
+
...padding
|
|
7863
|
+
};
|
|
7864
|
+
}
|
|
7865
|
+
function getPaddingObject(padding) {
|
|
7866
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
7867
|
+
top: padding,
|
|
7868
|
+
right: padding,
|
|
7869
|
+
bottom: padding,
|
|
7870
|
+
left: padding
|
|
7871
|
+
};
|
|
7872
|
+
}
|
|
7873
|
+
function rectToClientRect(rect) {
|
|
7874
|
+
const {
|
|
7875
|
+
x,
|
|
7876
|
+
y,
|
|
7877
|
+
width,
|
|
7878
|
+
height
|
|
7879
|
+
} = rect;
|
|
7880
|
+
return {
|
|
7881
|
+
width,
|
|
7882
|
+
height,
|
|
7883
|
+
top: y,
|
|
7884
|
+
left: x,
|
|
7885
|
+
right: x + width,
|
|
7886
|
+
bottom: y + height,
|
|
7887
|
+
x,
|
|
7888
|
+
y
|
|
7889
|
+
};
|
|
7890
|
+
}
|
|
7559
7891
|
|
|
7560
|
-
|
|
7892
|
+
/**
|
|
7893
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
7894
|
+
* element is overflowing a given clipping boundary on each side.
|
|
7895
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
7896
|
+
* - negative = how many pixels left before it will overflow
|
|
7897
|
+
* - 0 = lies flush with the boundary
|
|
7898
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
7899
|
+
*/
|
|
7900
|
+
async function detectOverflow(state, options) {
|
|
7901
|
+
var _await$platform$isEle;
|
|
7902
|
+
if (options === void 0) {
|
|
7903
|
+
options = {};
|
|
7904
|
+
}
|
|
7905
|
+
const {
|
|
7906
|
+
x,
|
|
7907
|
+
y,
|
|
7908
|
+
platform,
|
|
7909
|
+
rects,
|
|
7910
|
+
elements,
|
|
7911
|
+
strategy
|
|
7912
|
+
} = state;
|
|
7913
|
+
const {
|
|
7914
|
+
boundary = 'clippingAncestors',
|
|
7915
|
+
rootBoundary = 'viewport',
|
|
7916
|
+
elementContext = 'floating',
|
|
7917
|
+
altBoundary = false,
|
|
7918
|
+
padding = 0
|
|
7919
|
+
} = evaluate(options, state);
|
|
7920
|
+
const paddingObject = getPaddingObject(padding);
|
|
7921
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
7922
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
7923
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
7924
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
7925
|
+
boundary,
|
|
7926
|
+
rootBoundary,
|
|
7927
|
+
strategy
|
|
7928
|
+
}));
|
|
7929
|
+
const rect = elementContext === 'floating' ? {
|
|
7930
|
+
x,
|
|
7931
|
+
y,
|
|
7932
|
+
width: rects.floating.width,
|
|
7933
|
+
height: rects.floating.height
|
|
7934
|
+
} : rects.reference;
|
|
7935
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
7936
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
7937
|
+
x: 1,
|
|
7938
|
+
y: 1
|
|
7939
|
+
} : {
|
|
7940
|
+
x: 1,
|
|
7941
|
+
y: 1
|
|
7942
|
+
};
|
|
7943
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
7944
|
+
elements,
|
|
7945
|
+
rect,
|
|
7946
|
+
offsetParent,
|
|
7947
|
+
strategy
|
|
7948
|
+
}) : rect);
|
|
7949
|
+
return {
|
|
7950
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
7951
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
7952
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
7953
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
7954
|
+
};
|
|
7561
7955
|
}
|
|
7562
7956
|
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7957
|
+
/**
|
|
7958
|
+
* Provides data to position an inner element of the floating element so that it
|
|
7959
|
+
* appears centered to the reference element.
|
|
7960
|
+
* @see https://floating-ui.com/docs/arrow
|
|
7961
|
+
*/
|
|
7962
|
+
const arrow = options => ({
|
|
7963
|
+
name: 'arrow',
|
|
7964
|
+
options,
|
|
7965
|
+
async fn(state) {
|
|
7966
|
+
const {
|
|
7967
|
+
x,
|
|
7968
|
+
y,
|
|
7969
|
+
placement,
|
|
7970
|
+
rects,
|
|
7971
|
+
platform,
|
|
7972
|
+
elements,
|
|
7973
|
+
middlewareData
|
|
7974
|
+
} = state;
|
|
7975
|
+
// Since `element` is required, we don't Partial<> the type.
|
|
7976
|
+
const {
|
|
7977
|
+
element,
|
|
7978
|
+
padding = 0
|
|
7979
|
+
} = evaluate(options, state) || {};
|
|
7980
|
+
if (element == null) {
|
|
7981
|
+
return {};
|
|
7982
|
+
}
|
|
7983
|
+
const paddingObject = getPaddingObject(padding);
|
|
7984
|
+
const coords = {
|
|
7985
|
+
x,
|
|
7986
|
+
y
|
|
7987
|
+
};
|
|
7988
|
+
const axis = getAlignmentAxis(placement);
|
|
7989
|
+
const length = getAxisLength(axis);
|
|
7990
|
+
const arrowDimensions = await platform.getDimensions(element);
|
|
7991
|
+
const isYAxis = axis === 'y';
|
|
7992
|
+
const minProp = isYAxis ? 'top' : 'left';
|
|
7993
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
7994
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
7995
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
7996
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
7997
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
7998
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
7999
|
+
|
|
8000
|
+
// DOM platform can return `window` as the `offsetParent`.
|
|
8001
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
8002
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
8003
|
+
}
|
|
8004
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
8005
|
+
|
|
8006
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
|
8007
|
+
// centered, modify the padding so that it is centered.
|
|
8008
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
8009
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
8010
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
8011
|
+
|
|
8012
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
|
8013
|
+
// point is outside the floating element's bounds.
|
|
8014
|
+
const min$1 = minPadding;
|
|
8015
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
8016
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
8017
|
+
const offset = clamp(min$1, center, max);
|
|
8018
|
+
|
|
8019
|
+
// If the reference is small enough that the arrow's padding causes it to
|
|
8020
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
|
8021
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
|
8022
|
+
// a single reset is performed when this is true.
|
|
8023
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
8024
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
8025
|
+
return {
|
|
8026
|
+
[axis]: coords[axis] + alignmentOffset,
|
|
8027
|
+
data: {
|
|
8028
|
+
[axis]: offset,
|
|
8029
|
+
centerOffset: center - offset - alignmentOffset,
|
|
8030
|
+
...(shouldAddOffset && {
|
|
8031
|
+
alignmentOffset
|
|
8032
|
+
})
|
|
8033
|
+
},
|
|
8034
|
+
reset: shouldAddOffset
|
|
8035
|
+
};
|
|
8036
|
+
}
|
|
8037
|
+
});
|
|
7566
8038
|
|
|
8039
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
8040
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
8041
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
8042
|
+
if (alignment) {
|
|
8043
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
8044
|
+
}
|
|
8045
|
+
return true;
|
|
8046
|
+
});
|
|
8047
|
+
}
|
|
8048
|
+
/**
|
|
8049
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
8050
|
+
* that has the most space available automatically, without needing to specify a
|
|
8051
|
+
* preferred placement. Alternative to `flip`.
|
|
8052
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
8053
|
+
*/
|
|
8054
|
+
const autoPlacement = function (options) {
|
|
8055
|
+
if (options === void 0) {
|
|
8056
|
+
options = {};
|
|
8057
|
+
}
|
|
7567
8058
|
return {
|
|
7568
|
-
name:
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
8059
|
+
name: 'autoPlacement',
|
|
8060
|
+
options,
|
|
8061
|
+
async fn(state) {
|
|
8062
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
8063
|
+
const {
|
|
8064
|
+
rects,
|
|
8065
|
+
middlewareData,
|
|
8066
|
+
placement,
|
|
8067
|
+
platform,
|
|
8068
|
+
elements
|
|
8069
|
+
} = state;
|
|
8070
|
+
const {
|
|
8071
|
+
crossAxis = false,
|
|
8072
|
+
alignment,
|
|
8073
|
+
allowedPlacements = placements,
|
|
8074
|
+
autoAlignment = true,
|
|
8075
|
+
...detectOverflowOptions
|
|
8076
|
+
} = evaluate(options, state);
|
|
8077
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
8078
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
8079
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
8080
|
+
const currentPlacement = placements$1[currentIndex];
|
|
8081
|
+
if (currentPlacement == null) {
|
|
8082
|
+
return {};
|
|
8083
|
+
}
|
|
8084
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
8085
|
+
|
|
8086
|
+
// Make `computeCoords` start from the right place.
|
|
8087
|
+
if (placement !== currentPlacement) {
|
|
8088
|
+
return {
|
|
8089
|
+
reset: {
|
|
8090
|
+
placement: placements$1[0]
|
|
8091
|
+
}
|
|
8092
|
+
};
|
|
8093
|
+
}
|
|
8094
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
8095
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
8096
|
+
placement: currentPlacement,
|
|
8097
|
+
overflows: currentOverflows
|
|
8098
|
+
}];
|
|
8099
|
+
const nextPlacement = placements$1[currentIndex + 1];
|
|
8100
|
+
|
|
8101
|
+
// There are more placements to check.
|
|
8102
|
+
if (nextPlacement) {
|
|
8103
|
+
return {
|
|
8104
|
+
data: {
|
|
8105
|
+
index: currentIndex + 1,
|
|
8106
|
+
overflows: allOverflows
|
|
8107
|
+
},
|
|
8108
|
+
reset: {
|
|
8109
|
+
placement: nextPlacement
|
|
8110
|
+
}
|
|
8111
|
+
};
|
|
8112
|
+
}
|
|
8113
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
8114
|
+
const alignment = getAlignment(d.placement);
|
|
8115
|
+
return [d.placement, alignment && crossAxis ?
|
|
8116
|
+
// Check along the mainAxis and main crossAxis side.
|
|
8117
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
8118
|
+
// Check only the mainAxis.
|
|
8119
|
+
d.overflows[0], d.overflows];
|
|
8120
|
+
}).sort((a, b) => a[1] - b[1]);
|
|
8121
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
8122
|
+
// Aligned placements should not check their opposite crossAxis
|
|
8123
|
+
// side.
|
|
8124
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
8125
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
8126
|
+
if (resetPlacement !== placement) {
|
|
8127
|
+
return {
|
|
8128
|
+
data: {
|
|
8129
|
+
index: currentIndex + 1,
|
|
8130
|
+
overflows: allOverflows
|
|
8131
|
+
},
|
|
8132
|
+
reset: {
|
|
8133
|
+
placement: resetPlacement
|
|
8134
|
+
}
|
|
8135
|
+
};
|
|
8136
|
+
}
|
|
8137
|
+
return {};
|
|
7573
8138
|
}
|
|
7574
8139
|
};
|
|
7575
8140
|
};
|
|
7576
8141
|
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
8142
|
+
/**
|
|
8143
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
8144
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
8145
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
8146
|
+
* @see https://floating-ui.com/docs/flip
|
|
8147
|
+
*/
|
|
8148
|
+
const flip = function (options) {
|
|
8149
|
+
if (options === void 0) {
|
|
8150
|
+
options = {};
|
|
8151
|
+
}
|
|
8152
|
+
return {
|
|
8153
|
+
name: 'flip',
|
|
8154
|
+
options,
|
|
8155
|
+
async fn(state) {
|
|
8156
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
8157
|
+
const {
|
|
8158
|
+
placement,
|
|
8159
|
+
middlewareData,
|
|
8160
|
+
rects,
|
|
8161
|
+
initialPlacement,
|
|
8162
|
+
platform,
|
|
8163
|
+
elements
|
|
8164
|
+
} = state;
|
|
8165
|
+
const {
|
|
8166
|
+
mainAxis: checkMainAxis = true,
|
|
8167
|
+
crossAxis: checkCrossAxis = true,
|
|
8168
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
8169
|
+
fallbackStrategy = 'bestFit',
|
|
8170
|
+
fallbackAxisSideDirection = 'none',
|
|
8171
|
+
flipAlignment = true,
|
|
8172
|
+
...detectOverflowOptions
|
|
8173
|
+
} = evaluate(options, state);
|
|
8174
|
+
|
|
8175
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
|
8176
|
+
// added, we should skip any logic now since `flip()` has already done its
|
|
8177
|
+
// work.
|
|
8178
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
8179
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
8180
|
+
return {};
|
|
8181
|
+
}
|
|
8182
|
+
const side = getSide(placement);
|
|
8183
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
8184
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
8185
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
8186
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
8187
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
8188
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
8189
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
8190
|
+
}
|
|
8191
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
8192
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
8193
|
+
const overflows = [];
|
|
8194
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
8195
|
+
if (checkMainAxis) {
|
|
8196
|
+
overflows.push(overflow[side]);
|
|
8197
|
+
}
|
|
8198
|
+
if (checkCrossAxis) {
|
|
8199
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
|
8200
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
8201
|
+
}
|
|
8202
|
+
overflowsData = [...overflowsData, {
|
|
8203
|
+
placement,
|
|
8204
|
+
overflows
|
|
8205
|
+
}];
|
|
8206
|
+
|
|
8207
|
+
// One or more sides is overflowing.
|
|
8208
|
+
if (!overflows.every(side => side <= 0)) {
|
|
8209
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
8210
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
8211
|
+
const nextPlacement = placements[nextIndex];
|
|
8212
|
+
if (nextPlacement) {
|
|
8213
|
+
// Try next placement and re-run the lifecycle.
|
|
8214
|
+
return {
|
|
8215
|
+
data: {
|
|
8216
|
+
index: nextIndex,
|
|
8217
|
+
overflows: overflowsData
|
|
8218
|
+
},
|
|
8219
|
+
reset: {
|
|
8220
|
+
placement: nextPlacement
|
|
7598
8221
|
}
|
|
8222
|
+
};
|
|
8223
|
+
}
|
|
7599
8224
|
|
|
7600
|
-
|
|
8225
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
8226
|
+
// then find the placement that fits the best on the main crossAxis side.
|
|
8227
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
7601
8228
|
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
8229
|
+
// Otherwise fallback.
|
|
8230
|
+
if (!resetPlacement) {
|
|
8231
|
+
switch (fallbackStrategy) {
|
|
8232
|
+
case 'bestFit':
|
|
8233
|
+
{
|
|
8234
|
+
var _overflowsData$filter2;
|
|
8235
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
|
8236
|
+
if (hasFallbackAxisSideDirection) {
|
|
8237
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
8238
|
+
return currentSideAxis === initialSideAxis ||
|
|
8239
|
+
// Create a bias to the `y` side axis due to horizontal
|
|
8240
|
+
// reading directions favoring greater width.
|
|
8241
|
+
currentSideAxis === 'y';
|
|
8242
|
+
}
|
|
8243
|
+
return true;
|
|
8244
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
8245
|
+
if (placement) {
|
|
8246
|
+
resetPlacement = placement;
|
|
8247
|
+
}
|
|
8248
|
+
break;
|
|
7606
8249
|
}
|
|
7607
|
-
|
|
8250
|
+
case 'initialPlacement':
|
|
8251
|
+
resetPlacement = initialPlacement;
|
|
8252
|
+
break;
|
|
7608
8253
|
}
|
|
7609
|
-
|
|
7610
|
-
break;
|
|
7611
8254
|
}
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
8255
|
+
if (placement !== resetPlacement) {
|
|
8256
|
+
return {
|
|
8257
|
+
reset: {
|
|
8258
|
+
placement: resetPlacement
|
|
8259
|
+
}
|
|
8260
|
+
};
|
|
7616
8261
|
}
|
|
8262
|
+
}
|
|
8263
|
+
return {};
|
|
7617
8264
|
}
|
|
7618
|
-
|
|
7619
|
-
if (toAdd) {
|
|
7620
|
-
cls && (cls += ' ');
|
|
7621
|
-
cls += toAdd;
|
|
7622
|
-
}
|
|
7623
|
-
}
|
|
7624
|
-
|
|
7625
|
-
return cls;
|
|
8265
|
+
};
|
|
7626
8266
|
};
|
|
7627
8267
|
|
|
7628
|
-
function
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
}
|
|
7635
|
-
|
|
7636
|
-
return rawClassName + css(registeredStyles);
|
|
8268
|
+
function getSideOffsets(overflow, rect) {
|
|
8269
|
+
return {
|
|
8270
|
+
top: overflow.top - rect.height,
|
|
8271
|
+
right: overflow.right - rect.width,
|
|
8272
|
+
bottom: overflow.bottom - rect.height,
|
|
8273
|
+
left: overflow.left - rect.width
|
|
8274
|
+
};
|
|
7637
8275
|
}
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
8276
|
+
function isAnySideFullyClipped(overflow) {
|
|
8277
|
+
return sides.some(side => overflow[side] >= 0);
|
|
8278
|
+
}
|
|
8279
|
+
/**
|
|
8280
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
8281
|
+
* when it is not in the same clipping context as the reference element.
|
|
8282
|
+
* @see https://floating-ui.com/docs/hide
|
|
8283
|
+
*/
|
|
8284
|
+
const hide = function (options) {
|
|
8285
|
+
if (options === void 0) {
|
|
8286
|
+
options = {};
|
|
8287
|
+
}
|
|
8288
|
+
return {
|
|
8289
|
+
name: 'hide',
|
|
8290
|
+
options,
|
|
8291
|
+
async fn(state) {
|
|
8292
|
+
const {
|
|
8293
|
+
rects
|
|
8294
|
+
} = state;
|
|
8295
|
+
const {
|
|
8296
|
+
strategy = 'referenceHidden',
|
|
8297
|
+
...detectOverflowOptions
|
|
8298
|
+
} = evaluate(options, state);
|
|
8299
|
+
switch (strategy) {
|
|
8300
|
+
case 'referenceHidden':
|
|
8301
|
+
{
|
|
8302
|
+
const overflow = await detectOverflow(state, {
|
|
8303
|
+
...detectOverflowOptions,
|
|
8304
|
+
elementContext: 'reference'
|
|
8305
|
+
});
|
|
8306
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
|
8307
|
+
return {
|
|
8308
|
+
data: {
|
|
8309
|
+
referenceHiddenOffsets: offsets,
|
|
8310
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
8311
|
+
}
|
|
8312
|
+
};
|
|
8313
|
+
}
|
|
8314
|
+
case 'escaped':
|
|
8315
|
+
{
|
|
8316
|
+
const overflow = await detectOverflow(state, {
|
|
8317
|
+
...detectOverflowOptions,
|
|
8318
|
+
altBoundary: true
|
|
8319
|
+
});
|
|
8320
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
|
8321
|
+
return {
|
|
8322
|
+
data: {
|
|
8323
|
+
escapedOffsets: offsets,
|
|
8324
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
8325
|
+
}
|
|
8326
|
+
};
|
|
8327
|
+
}
|
|
8328
|
+
default:
|
|
8329
|
+
{
|
|
8330
|
+
return {};
|
|
8331
|
+
}
|
|
7650
8332
|
}
|
|
7651
8333
|
}
|
|
7652
|
-
|
|
7653
|
-
if (!isBrowser$1) {
|
|
7654
|
-
return rules;
|
|
7655
|
-
}
|
|
7656
|
-
});
|
|
7657
|
-
|
|
7658
|
-
if (!isBrowser$1 && rules.length !== 0) {
|
|
7659
|
-
var _ref2;
|
|
7660
|
-
|
|
7661
|
-
return /*#__PURE__*/React__namespace.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
|
|
7662
|
-
return serialized.name;
|
|
7663
|
-
}).join(' '), _ref2.dangerouslySetInnerHTML = {
|
|
7664
|
-
__html: rules
|
|
7665
|
-
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
7666
|
-
}
|
|
7667
|
-
|
|
7668
|
-
return null;
|
|
8334
|
+
};
|
|
7669
8335
|
};
|
|
7670
8336
|
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
8337
|
+
function getBoundingRect(rects) {
|
|
8338
|
+
const minX = min(...rects.map(rect => rect.left));
|
|
8339
|
+
const minY = min(...rects.map(rect => rect.top));
|
|
8340
|
+
const maxX = max(...rects.map(rect => rect.right));
|
|
8341
|
+
const maxY = max(...rects.map(rect => rect.bottom));
|
|
8342
|
+
return {
|
|
8343
|
+
x: minX,
|
|
8344
|
+
y: minY,
|
|
8345
|
+
width: maxX - minX,
|
|
8346
|
+
height: maxY - minY
|
|
8347
|
+
};
|
|
8348
|
+
}
|
|
8349
|
+
function getRectsByLine(rects) {
|
|
8350
|
+
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
|
8351
|
+
const groups = [];
|
|
8352
|
+
let prevRect = null;
|
|
8353
|
+
for (let i = 0; i < sortedRects.length; i++) {
|
|
8354
|
+
const rect = sortedRects[i];
|
|
8355
|
+
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
|
8356
|
+
groups.push([rect]);
|
|
8357
|
+
} else {
|
|
8358
|
+
groups[groups.length - 1].push(rect);
|
|
7678
8359
|
}
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
8360
|
+
prevRect = rect;
|
|
8361
|
+
}
|
|
8362
|
+
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
|
8363
|
+
}
|
|
8364
|
+
/**
|
|
8365
|
+
* Provides improved positioning for inline reference elements that can span
|
|
8366
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
8367
|
+
* @see https://floating-ui.com/docs/inline
|
|
8368
|
+
*/
|
|
8369
|
+
const inline = function (options) {
|
|
8370
|
+
if (options === void 0) {
|
|
8371
|
+
options = {};
|
|
8372
|
+
}
|
|
8373
|
+
return {
|
|
8374
|
+
name: 'inline',
|
|
8375
|
+
options,
|
|
8376
|
+
async fn(state) {
|
|
8377
|
+
const {
|
|
8378
|
+
placement,
|
|
8379
|
+
elements,
|
|
8380
|
+
rects,
|
|
8381
|
+
platform,
|
|
8382
|
+
strategy
|
|
8383
|
+
} = state;
|
|
8384
|
+
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
8385
|
+
// ClientRect's bounds, despite the event listener being triggered. A
|
|
8386
|
+
// padding of 2 seems to handle this issue.
|
|
8387
|
+
const {
|
|
8388
|
+
padding = 2,
|
|
8389
|
+
x,
|
|
8390
|
+
y
|
|
8391
|
+
} = evaluate(options, state);
|
|
8392
|
+
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
|
8393
|
+
const clientRects = getRectsByLine(nativeClientRects);
|
|
8394
|
+
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
|
8395
|
+
const paddingObject = getPaddingObject(padding);
|
|
8396
|
+
function getBoundingClientRect() {
|
|
8397
|
+
// There are two rects and they are disjoined.
|
|
8398
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
8399
|
+
// Find the first rect in which the point is fully inside.
|
|
8400
|
+
return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
|
8401
|
+
}
|
|
8402
|
+
|
|
8403
|
+
// There are 2 or more connected rects.
|
|
8404
|
+
if (clientRects.length >= 2) {
|
|
8405
|
+
if (getSideAxis(placement) === 'y') {
|
|
8406
|
+
const firstRect = clientRects[0];
|
|
8407
|
+
const lastRect = clientRects[clientRects.length - 1];
|
|
8408
|
+
const isTop = getSide(placement) === 'top';
|
|
8409
|
+
const top = firstRect.top;
|
|
8410
|
+
const bottom = lastRect.bottom;
|
|
8411
|
+
const left = isTop ? firstRect.left : lastRect.left;
|
|
8412
|
+
const right = isTop ? firstRect.right : lastRect.right;
|
|
8413
|
+
const width = right - left;
|
|
8414
|
+
const height = bottom - top;
|
|
8415
|
+
return {
|
|
8416
|
+
top,
|
|
8417
|
+
bottom,
|
|
8418
|
+
left,
|
|
8419
|
+
right,
|
|
8420
|
+
width,
|
|
8421
|
+
height,
|
|
8422
|
+
x: left,
|
|
8423
|
+
y: top
|
|
8424
|
+
};
|
|
8425
|
+
}
|
|
8426
|
+
const isLeftSide = getSide(placement) === 'left';
|
|
8427
|
+
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
8428
|
+
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
8429
|
+
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
|
8430
|
+
const top = measureRects[0].top;
|
|
8431
|
+
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
8432
|
+
const left = minLeft;
|
|
8433
|
+
const right = maxRight;
|
|
8434
|
+
const width = right - left;
|
|
8435
|
+
const height = bottom - top;
|
|
8436
|
+
return {
|
|
8437
|
+
top,
|
|
8438
|
+
bottom,
|
|
8439
|
+
left,
|
|
8440
|
+
right,
|
|
8441
|
+
width,
|
|
8442
|
+
height,
|
|
8443
|
+
x: left,
|
|
8444
|
+
y: top
|
|
8445
|
+
};
|
|
8446
|
+
}
|
|
8447
|
+
return fallback;
|
|
8448
|
+
}
|
|
8449
|
+
const resetRects = await platform.getElementRects({
|
|
8450
|
+
reference: {
|
|
8451
|
+
getBoundingClientRect
|
|
8452
|
+
},
|
|
8453
|
+
floating: elements.floating,
|
|
8454
|
+
strategy
|
|
8455
|
+
});
|
|
8456
|
+
if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
|
|
8457
|
+
return {
|
|
8458
|
+
reset: {
|
|
8459
|
+
rects: resetRects
|
|
8460
|
+
}
|
|
8461
|
+
};
|
|
8462
|
+
}
|
|
8463
|
+
return {};
|
|
7682
8464
|
}
|
|
7683
|
-
|
|
7684
|
-
var serialized = serializeStyles(args, cache.registered);
|
|
7685
|
-
serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`
|
|
7686
|
-
|
|
7687
|
-
registerStyles(cache, serialized, false);
|
|
7688
|
-
return cache.key + "-" + serialized.name;
|
|
7689
8465
|
};
|
|
8466
|
+
};
|
|
7690
8467
|
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
throw new Error('cx can only be used during render');
|
|
7694
|
-
}
|
|
7695
|
-
|
|
7696
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
7697
|
-
args[_key2] = arguments[_key2];
|
|
7698
|
-
}
|
|
8468
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
8469
|
+
// Derivable.
|
|
7699
8470
|
|
|
7700
|
-
|
|
8471
|
+
async function convertValueToCoords(state, options) {
|
|
8472
|
+
const {
|
|
8473
|
+
placement,
|
|
8474
|
+
platform,
|
|
8475
|
+
elements
|
|
8476
|
+
} = state;
|
|
8477
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
8478
|
+
const side = getSide(placement);
|
|
8479
|
+
const alignment = getAlignment(placement);
|
|
8480
|
+
const isVertical = getSideAxis(placement) === 'y';
|
|
8481
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
8482
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
8483
|
+
const rawValue = evaluate(options, state);
|
|
8484
|
+
|
|
8485
|
+
// eslint-disable-next-line prefer-const
|
|
8486
|
+
let {
|
|
8487
|
+
mainAxis,
|
|
8488
|
+
crossAxis,
|
|
8489
|
+
alignmentAxis
|
|
8490
|
+
} = typeof rawValue === 'number' ? {
|
|
8491
|
+
mainAxis: rawValue,
|
|
8492
|
+
crossAxis: 0,
|
|
8493
|
+
alignmentAxis: null
|
|
8494
|
+
} : {
|
|
8495
|
+
mainAxis: rawValue.mainAxis || 0,
|
|
8496
|
+
crossAxis: rawValue.crossAxis || 0,
|
|
8497
|
+
alignmentAxis: rawValue.alignmentAxis
|
|
7701
8498
|
};
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
8499
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
|
8500
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
8501
|
+
}
|
|
8502
|
+
return isVertical ? {
|
|
8503
|
+
x: crossAxis * crossAxisMulti,
|
|
8504
|
+
y: mainAxis * mainAxisMulti
|
|
8505
|
+
} : {
|
|
8506
|
+
x: mainAxis * mainAxisMulti,
|
|
8507
|
+
y: crossAxis * crossAxisMulti
|
|
7707
8508
|
};
|
|
7708
|
-
var ele = props.children(content);
|
|
7709
|
-
hasRendered = true;
|
|
7710
|
-
return /*#__PURE__*/React__namespace.createElement(React__namespace.Fragment, null, /*#__PURE__*/React__namespace.createElement(Insertion, {
|
|
7711
|
-
cache: cache,
|
|
7712
|
-
serializedArr: serializedArr
|
|
7713
|
-
}), ele);
|
|
7714
|
-
});
|
|
7715
|
-
|
|
7716
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7717
|
-
ClassNames.displayName = 'EmotionClassNames';
|
|
7718
8509
|
}
|
|
7719
8510
|
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
8511
|
+
/**
|
|
8512
|
+
* Modifies the placement by translating the floating element along the
|
|
8513
|
+
* specified axes.
|
|
8514
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
8515
|
+
* object may be passed.
|
|
8516
|
+
* @see https://floating-ui.com/docs/offset
|
|
8517
|
+
*/
|
|
8518
|
+
const offset = function (options) {
|
|
8519
|
+
if (options === void 0) {
|
|
8520
|
+
options = 0;
|
|
8521
|
+
}
|
|
8522
|
+
return {
|
|
8523
|
+
name: 'offset',
|
|
8524
|
+
options,
|
|
8525
|
+
async fn(state) {
|
|
8526
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
8527
|
+
const {
|
|
8528
|
+
x,
|
|
8529
|
+
y,
|
|
8530
|
+
placement,
|
|
8531
|
+
middlewareData
|
|
8532
|
+
} = state;
|
|
8533
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
8534
|
+
|
|
8535
|
+
// If the placement is the same and the arrow caused an alignment offset
|
|
8536
|
+
// then we don't need to change the positioning coordinates.
|
|
8537
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
8538
|
+
return {};
|
|
8539
|
+
}
|
|
8540
|
+
return {
|
|
8541
|
+
x: x + diffCoords.x,
|
|
8542
|
+
y: y + diffCoords.y,
|
|
8543
|
+
data: {
|
|
8544
|
+
...diffCoords,
|
|
8545
|
+
placement
|
|
8546
|
+
}
|
|
8547
|
+
};
|
|
7734
8548
|
}
|
|
8549
|
+
};
|
|
8550
|
+
};
|
|
7735
8551
|
|
|
7736
|
-
|
|
8552
|
+
/**
|
|
8553
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
8554
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
8555
|
+
* @see https://floating-ui.com/docs/shift
|
|
8556
|
+
*/
|
|
8557
|
+
const shift = function (options) {
|
|
8558
|
+
if (options === void 0) {
|
|
8559
|
+
options = {};
|
|
7737
8560
|
}
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
8561
|
+
return {
|
|
8562
|
+
name: 'shift',
|
|
8563
|
+
options,
|
|
8564
|
+
async fn(state) {
|
|
8565
|
+
const {
|
|
8566
|
+
x,
|
|
8567
|
+
y,
|
|
8568
|
+
placement
|
|
8569
|
+
} = state;
|
|
8570
|
+
const {
|
|
8571
|
+
mainAxis: checkMainAxis = true,
|
|
8572
|
+
crossAxis: checkCrossAxis = false,
|
|
8573
|
+
limiter = {
|
|
8574
|
+
fn: _ref => {
|
|
8575
|
+
let {
|
|
8576
|
+
x,
|
|
8577
|
+
y
|
|
8578
|
+
} = _ref;
|
|
8579
|
+
return {
|
|
8580
|
+
x,
|
|
8581
|
+
y
|
|
8582
|
+
};
|
|
8583
|
+
}
|
|
8584
|
+
},
|
|
8585
|
+
...detectOverflowOptions
|
|
8586
|
+
} = evaluate(options, state);
|
|
8587
|
+
const coords = {
|
|
8588
|
+
x,
|
|
8589
|
+
y
|
|
8590
|
+
};
|
|
8591
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
8592
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
8593
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
8594
|
+
let mainAxisCoord = coords[mainAxis];
|
|
8595
|
+
let crossAxisCoord = coords[crossAxis];
|
|
8596
|
+
if (checkMainAxis) {
|
|
8597
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
8598
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
8599
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
8600
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
8601
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
8602
|
+
}
|
|
8603
|
+
if (checkCrossAxis) {
|
|
8604
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
8605
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
8606
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
8607
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
8608
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
8609
|
+
}
|
|
8610
|
+
const limitedCoords = limiter.fn({
|
|
8611
|
+
...state,
|
|
8612
|
+
[mainAxis]: mainAxisCoord,
|
|
8613
|
+
[crossAxis]: crossAxisCoord
|
|
8614
|
+
});
|
|
8615
|
+
return {
|
|
8616
|
+
...limitedCoords,
|
|
8617
|
+
data: {
|
|
8618
|
+
x: limitedCoords.x - x,
|
|
8619
|
+
y: limitedCoords.y - y,
|
|
8620
|
+
enabled: {
|
|
8621
|
+
[mainAxis]: checkMainAxis,
|
|
8622
|
+
[crossAxis]: checkCrossAxis
|
|
8623
|
+
}
|
|
8624
|
+
}
|
|
8625
|
+
};
|
|
8626
|
+
}
|
|
8627
|
+
};
|
|
8628
|
+
};
|
|
8629
|
+
/**
|
|
8630
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
8631
|
+
*/
|
|
8632
|
+
const limitShift = function (options) {
|
|
8633
|
+
if (options === void 0) {
|
|
8634
|
+
options = {};
|
|
8635
|
+
}
|
|
8636
|
+
return {
|
|
8637
|
+
options,
|
|
8638
|
+
fn(state) {
|
|
8639
|
+
const {
|
|
8640
|
+
x,
|
|
8641
|
+
y,
|
|
8642
|
+
placement,
|
|
8643
|
+
rects,
|
|
8644
|
+
middlewareData
|
|
8645
|
+
} = state;
|
|
8646
|
+
const {
|
|
8647
|
+
offset = 0,
|
|
8648
|
+
mainAxis: checkMainAxis = true,
|
|
8649
|
+
crossAxis: checkCrossAxis = true
|
|
8650
|
+
} = evaluate(options, state);
|
|
8651
|
+
const coords = {
|
|
8652
|
+
x,
|
|
8653
|
+
y
|
|
8654
|
+
};
|
|
8655
|
+
const crossAxis = getSideAxis(placement);
|
|
8656
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
8657
|
+
let mainAxisCoord = coords[mainAxis];
|
|
8658
|
+
let crossAxisCoord = coords[crossAxis];
|
|
8659
|
+
const rawOffset = evaluate(offset, state);
|
|
8660
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
|
8661
|
+
mainAxis: rawOffset,
|
|
8662
|
+
crossAxis: 0
|
|
8663
|
+
} : {
|
|
8664
|
+
mainAxis: 0,
|
|
8665
|
+
crossAxis: 0,
|
|
8666
|
+
...rawOffset
|
|
8667
|
+
};
|
|
8668
|
+
if (checkMainAxis) {
|
|
8669
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
8670
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
8671
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
8672
|
+
if (mainAxisCoord < limitMin) {
|
|
8673
|
+
mainAxisCoord = limitMin;
|
|
8674
|
+
} else if (mainAxisCoord > limitMax) {
|
|
8675
|
+
mainAxisCoord = limitMax;
|
|
8676
|
+
}
|
|
8677
|
+
}
|
|
8678
|
+
if (checkCrossAxis) {
|
|
8679
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
|
8680
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
8681
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
8682
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
8683
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
8684
|
+
if (crossAxisCoord < limitMin) {
|
|
8685
|
+
crossAxisCoord = limitMin;
|
|
8686
|
+
} else if (crossAxisCoord > limitMax) {
|
|
8687
|
+
crossAxisCoord = limitMax;
|
|
8688
|
+
}
|
|
7766
8689
|
}
|
|
8690
|
+
return {
|
|
8691
|
+
[mainAxis]: mainAxisCoord,
|
|
8692
|
+
[crossAxis]: crossAxisCoord
|
|
8693
|
+
};
|
|
7767
8694
|
}
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
}
|
|
7771
|
-
|
|
7772
|
-
function _nonIterableRest() {
|
|
7773
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7774
|
-
}
|
|
7775
|
-
|
|
7776
|
-
function _slicedToArray(arr, i) {
|
|
7777
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
7778
|
-
}
|
|
8695
|
+
};
|
|
8696
|
+
};
|
|
7779
8697
|
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
8698
|
+
/**
|
|
8699
|
+
* Provides data that allows you to change the size of the floating element —
|
|
8700
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
8701
|
+
* width of the reference element.
|
|
8702
|
+
* @see https://floating-ui.com/docs/size
|
|
8703
|
+
*/
|
|
8704
|
+
const size = function (options) {
|
|
8705
|
+
if (options === void 0) {
|
|
8706
|
+
options = {};
|
|
7789
8707
|
}
|
|
7790
|
-
return
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
8708
|
+
return {
|
|
8709
|
+
name: 'size',
|
|
8710
|
+
options,
|
|
8711
|
+
async fn(state) {
|
|
8712
|
+
var _state$middlewareData, _state$middlewareData2;
|
|
8713
|
+
const {
|
|
8714
|
+
placement,
|
|
8715
|
+
rects,
|
|
8716
|
+
platform,
|
|
8717
|
+
elements
|
|
8718
|
+
} = state;
|
|
8719
|
+
const {
|
|
8720
|
+
apply = () => {},
|
|
8721
|
+
...detectOverflowOptions
|
|
8722
|
+
} = evaluate(options, state);
|
|
8723
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
8724
|
+
const side = getSide(placement);
|
|
8725
|
+
const alignment = getAlignment(placement);
|
|
8726
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
|
8727
|
+
const {
|
|
8728
|
+
width,
|
|
8729
|
+
height
|
|
8730
|
+
} = rects.floating;
|
|
8731
|
+
let heightSide;
|
|
8732
|
+
let widthSide;
|
|
8733
|
+
if (side === 'top' || side === 'bottom') {
|
|
8734
|
+
heightSide = side;
|
|
8735
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
8736
|
+
} else {
|
|
8737
|
+
widthSide = side;
|
|
8738
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
8739
|
+
}
|
|
8740
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
8741
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
8742
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
8743
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
8744
|
+
const noShift = !state.middlewareData.shift;
|
|
8745
|
+
let availableHeight = overflowAvailableHeight;
|
|
8746
|
+
let availableWidth = overflowAvailableWidth;
|
|
8747
|
+
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
|
|
8748
|
+
availableWidth = maximumClippingWidth;
|
|
8749
|
+
}
|
|
8750
|
+
if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
|
|
8751
|
+
availableHeight = maximumClippingHeight;
|
|
8752
|
+
}
|
|
8753
|
+
if (noShift && !alignment) {
|
|
8754
|
+
const xMin = max(overflow.left, 0);
|
|
8755
|
+
const xMax = max(overflow.right, 0);
|
|
8756
|
+
const yMin = max(overflow.top, 0);
|
|
8757
|
+
const yMax = max(overflow.bottom, 0);
|
|
8758
|
+
if (isYAxis) {
|
|
8759
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
8760
|
+
} else {
|
|
8761
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
8762
|
+
}
|
|
8763
|
+
}
|
|
8764
|
+
await apply({
|
|
8765
|
+
...state,
|
|
8766
|
+
availableWidth,
|
|
8767
|
+
availableHeight
|
|
8768
|
+
});
|
|
8769
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
8770
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
8771
|
+
return {
|
|
8772
|
+
reset: {
|
|
8773
|
+
rects: true
|
|
8774
|
+
}
|
|
8775
|
+
};
|
|
8776
|
+
}
|
|
8777
|
+
return {};
|
|
7804
8778
|
}
|
|
7805
|
-
}
|
|
7806
|
-
|
|
7807
|
-
}
|
|
8779
|
+
};
|
|
8780
|
+
};
|
|
7808
8781
|
|
|
7809
|
-
function
|
|
7810
|
-
|
|
7811
|
-
raw = strings.slice(0);
|
|
7812
|
-
}
|
|
7813
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
7814
|
-
raw: {
|
|
7815
|
-
value: Object.freeze(raw)
|
|
7816
|
-
}
|
|
7817
|
-
}));
|
|
8782
|
+
function hasWindow() {
|
|
8783
|
+
return typeof window !== 'undefined';
|
|
7818
8784
|
}
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
};
|
|
8785
|
+
function getNodeName(node) {
|
|
8786
|
+
if (isNode(node)) {
|
|
8787
|
+
return (node.nodeName || '').toLowerCase();
|
|
8788
|
+
}
|
|
8789
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
8790
|
+
// returning `#document` an infinite loop won't occur.
|
|
8791
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
8792
|
+
return '#document';
|
|
7828
8793
|
}
|
|
7829
|
-
|
|
7830
8794
|
function getWindow(node) {
|
|
7831
8795
|
var _node$ownerDocument;
|
|
7832
|
-
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
8796
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
7833
8797
|
}
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
return
|
|
8798
|
+
function getDocumentElement(node) {
|
|
8799
|
+
var _ref;
|
|
8800
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
7837
8801
|
}
|
|
7838
|
-
|
|
7839
8802
|
function isNode(value) {
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
function getNodeName(node) {
|
|
7843
|
-
return isNode(node) ? (node.nodeName || '').toLowerCase() : '';
|
|
7844
|
-
}
|
|
7845
|
-
|
|
7846
|
-
let uaString;
|
|
7847
|
-
function getUAString() {
|
|
7848
|
-
if (uaString) {
|
|
7849
|
-
return uaString;
|
|
8803
|
+
if (!hasWindow()) {
|
|
8804
|
+
return false;
|
|
7850
8805
|
}
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
8806
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
8807
|
+
}
|
|
8808
|
+
function isElement(value) {
|
|
8809
|
+
if (!hasWindow()) {
|
|
8810
|
+
return false;
|
|
7855
8811
|
}
|
|
7856
|
-
return
|
|
8812
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
7857
8813
|
}
|
|
7858
|
-
|
|
7859
8814
|
function isHTMLElement(value) {
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
return value instanceof getWindow(value).
|
|
8815
|
+
if (!hasWindow()) {
|
|
8816
|
+
return false;
|
|
8817
|
+
}
|
|
8818
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
7864
8819
|
}
|
|
7865
|
-
function isShadowRoot(
|
|
7866
|
-
|
|
7867
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
8820
|
+
function isShadowRoot(value) {
|
|
8821
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
7868
8822
|
return false;
|
|
7869
8823
|
}
|
|
7870
|
-
|
|
7871
|
-
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
8824
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
7872
8825
|
}
|
|
7873
8826
|
function isOverflowElement(element) {
|
|
7874
8827
|
const {
|
|
@@ -7879,27 +8832,61 @@ function isOverflowElement(element) {
|
|
|
7879
8832
|
} = getComputedStyle$1(element);
|
|
7880
8833
|
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
7881
8834
|
}
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
* viewport offsets. In Safari, the `x`/`y` offsets are values relative to the
|
|
7886
|
-
* visual viewport, while in other engines, they are values relative to the
|
|
7887
|
-
* layout viewport.
|
|
7888
|
-
*/
|
|
7889
|
-
function isClientRectVisualViewportBased() {
|
|
7890
|
-
// TODO: Try to use feature detection here instead. Feature detection for
|
|
7891
|
-
// this can fail in various ways, making the userAgent check the most
|
|
7892
|
-
// reliable:
|
|
7893
|
-
// • Always-visible scrollbar or not
|
|
7894
|
-
// • Width of <html>
|
|
7895
|
-
|
|
7896
|
-
// Is Safari.
|
|
7897
|
-
return /^((?!chrome|android).)*safari/i.test(getUAString());
|
|
8835
|
+
function isWebKit() {
|
|
8836
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
8837
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
7898
8838
|
}
|
|
7899
8839
|
function isLastTraversableNode(node) {
|
|
7900
8840
|
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
7901
8841
|
}
|
|
7902
|
-
|
|
8842
|
+
function getComputedStyle$1(element) {
|
|
8843
|
+
return getWindow(element).getComputedStyle(element);
|
|
8844
|
+
}
|
|
8845
|
+
function getParentNode(node) {
|
|
8846
|
+
if (getNodeName(node) === 'html') {
|
|
8847
|
+
return node;
|
|
8848
|
+
}
|
|
8849
|
+
const result =
|
|
8850
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
8851
|
+
node.assignedSlot ||
|
|
8852
|
+
// DOM Element detected.
|
|
8853
|
+
node.parentNode ||
|
|
8854
|
+
// ShadowRoot detected.
|
|
8855
|
+
isShadowRoot(node) && node.host ||
|
|
8856
|
+
// Fallback.
|
|
8857
|
+
getDocumentElement(node);
|
|
8858
|
+
return isShadowRoot(result) ? result.host : result;
|
|
8859
|
+
}
|
|
8860
|
+
function getNearestOverflowAncestor(node) {
|
|
8861
|
+
const parentNode = getParentNode(node);
|
|
8862
|
+
if (isLastTraversableNode(parentNode)) {
|
|
8863
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
8864
|
+
}
|
|
8865
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
8866
|
+
return parentNode;
|
|
8867
|
+
}
|
|
8868
|
+
return getNearestOverflowAncestor(parentNode);
|
|
8869
|
+
}
|
|
8870
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
8871
|
+
var _node$ownerDocument2;
|
|
8872
|
+
if (list === void 0) {
|
|
8873
|
+
list = [];
|
|
8874
|
+
}
|
|
8875
|
+
if (traverseIframes === void 0) {
|
|
8876
|
+
traverseIframes = true;
|
|
8877
|
+
}
|
|
8878
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
8879
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
8880
|
+
const win = getWindow(scrollableAncestor);
|
|
8881
|
+
if (isBody) {
|
|
8882
|
+
const frameElement = getFrameElement(win);
|
|
8883
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
8884
|
+
}
|
|
8885
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
8886
|
+
}
|
|
8887
|
+
function getFrameElement(win) {
|
|
8888
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
8889
|
+
}
|
|
7903
8890
|
|
|
7904
8891
|
function getCssDimensions(element) {
|
|
7905
8892
|
const css = getComputedStyle$1(element);
|
|
@@ -7918,7 +8905,7 @@ function getCssDimensions(element) {
|
|
|
7918
8905
|
return {
|
|
7919
8906
|
width,
|
|
7920
8907
|
height,
|
|
7921
|
-
|
|
8908
|
+
$: shouldFallback
|
|
7922
8909
|
};
|
|
7923
8910
|
}
|
|
7924
8911
|
|
|
@@ -7926,23 +8913,19 @@ function unwrapElement(element) {
|
|
|
7926
8913
|
return !isElement(element) ? element.contextElement : element;
|
|
7927
8914
|
}
|
|
7928
8915
|
|
|
7929
|
-
const FALLBACK_SCALE = {
|
|
7930
|
-
x: 1,
|
|
7931
|
-
y: 1
|
|
7932
|
-
};
|
|
7933
8916
|
function getScale(element) {
|
|
7934
8917
|
const domElement = unwrapElement(element);
|
|
7935
8918
|
if (!isHTMLElement(domElement)) {
|
|
7936
|
-
return
|
|
8919
|
+
return createCoords(1);
|
|
7937
8920
|
}
|
|
7938
8921
|
const rect = domElement.getBoundingClientRect();
|
|
7939
8922
|
const {
|
|
7940
8923
|
width,
|
|
7941
8924
|
height,
|
|
7942
|
-
|
|
8925
|
+
$
|
|
7943
8926
|
} = getCssDimensions(domElement);
|
|
7944
|
-
let x = (
|
|
7945
|
-
let y = (
|
|
8927
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
8928
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
7946
8929
|
|
|
7947
8930
|
// 0, NaN, or Infinity should always fallback to 1.
|
|
7948
8931
|
|
|
@@ -7958,8 +8941,28 @@ function getScale(element) {
|
|
|
7958
8941
|
};
|
|
7959
8942
|
}
|
|
7960
8943
|
|
|
8944
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
8945
|
+
function getVisualOffsets(element) {
|
|
8946
|
+
const win = getWindow(element);
|
|
8947
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
8948
|
+
return noOffsets;
|
|
8949
|
+
}
|
|
8950
|
+
return {
|
|
8951
|
+
x: win.visualViewport.offsetLeft,
|
|
8952
|
+
y: win.visualViewport.offsetTop
|
|
8953
|
+
};
|
|
8954
|
+
}
|
|
8955
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
8956
|
+
if (isFixed === void 0) {
|
|
8957
|
+
isFixed = false;
|
|
8958
|
+
}
|
|
8959
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
8960
|
+
return false;
|
|
8961
|
+
}
|
|
8962
|
+
return isFixed;
|
|
8963
|
+
}
|
|
8964
|
+
|
|
7961
8965
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
7962
|
-
var _win$visualViewport, _win$visualViewport2;
|
|
7963
8966
|
if (includeScale === void 0) {
|
|
7964
8967
|
includeScale = false;
|
|
7965
8968
|
}
|
|
@@ -7968,7 +8971,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
7968
8971
|
}
|
|
7969
8972
|
const clientRect = element.getBoundingClientRect();
|
|
7970
8973
|
const domElement = unwrapElement(element);
|
|
7971
|
-
let scale =
|
|
8974
|
+
let scale = createCoords(1);
|
|
7972
8975
|
if (includeScale) {
|
|
7973
8976
|
if (offsetParent) {
|
|
7974
8977
|
if (isElement(offsetParent)) {
|
|
@@ -7978,29 +8981,30 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
7978
8981
|
scale = getScale(element);
|
|
7979
8982
|
}
|
|
7980
8983
|
}
|
|
7981
|
-
const
|
|
7982
|
-
|
|
7983
|
-
let
|
|
7984
|
-
let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale.y;
|
|
8984
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
8985
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
8986
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
7985
8987
|
let width = clientRect.width / scale.x;
|
|
7986
8988
|
let height = clientRect.height / scale.y;
|
|
7987
8989
|
if (domElement) {
|
|
7988
8990
|
const win = getWindow(domElement);
|
|
7989
8991
|
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
7990
|
-
let
|
|
7991
|
-
|
|
8992
|
+
let currentWin = win;
|
|
8993
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
8994
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
7992
8995
|
const iframeScale = getScale(currentIFrame);
|
|
7993
8996
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
7994
|
-
const css = getComputedStyle(currentIFrame);
|
|
7995
|
-
iframeRect.
|
|
7996
|
-
iframeRect.
|
|
8997
|
+
const css = getComputedStyle$1(currentIFrame);
|
|
8998
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
8999
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
7997
9000
|
x *= iframeScale.x;
|
|
7998
9001
|
y *= iframeScale.y;
|
|
7999
9002
|
width *= iframeScale.x;
|
|
8000
9003
|
height *= iframeScale.y;
|
|
8001
|
-
x +=
|
|
8002
|
-
y +=
|
|
8003
|
-
|
|
9004
|
+
x += left;
|
|
9005
|
+
y += top;
|
|
9006
|
+
currentWin = getWindow(currentIFrame);
|
|
9007
|
+
currentIFrame = getFrameElement(currentWin);
|
|
8004
9008
|
}
|
|
8005
9009
|
}
|
|
8006
9010
|
return rectToClientRect({
|
|
@@ -8011,51 +9015,96 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
8011
9015
|
});
|
|
8012
9016
|
}
|
|
8013
9017
|
|
|
8014
|
-
function
|
|
8015
|
-
return
|
|
8016
|
-
}
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
const
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
}
|
|
8033
|
-
|
|
8034
|
-
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8044
|
-
|
|
8045
|
-
|
|
9018
|
+
function rectsAreEqual(a, b) {
|
|
9019
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
9020
|
+
}
|
|
9021
|
+
|
|
9022
|
+
// https://samthor.au/2021/observing-dom/
|
|
9023
|
+
function observeMove(element, onMove) {
|
|
9024
|
+
let io = null;
|
|
9025
|
+
let timeoutId;
|
|
9026
|
+
const root = getDocumentElement(element);
|
|
9027
|
+
function cleanup() {
|
|
9028
|
+
var _io;
|
|
9029
|
+
clearTimeout(timeoutId);
|
|
9030
|
+
(_io = io) == null || _io.disconnect();
|
|
9031
|
+
io = null;
|
|
9032
|
+
}
|
|
9033
|
+
function refresh(skip, threshold) {
|
|
9034
|
+
if (skip === void 0) {
|
|
9035
|
+
skip = false;
|
|
9036
|
+
}
|
|
9037
|
+
if (threshold === void 0) {
|
|
9038
|
+
threshold = 1;
|
|
9039
|
+
}
|
|
9040
|
+
cleanup();
|
|
9041
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
9042
|
+
const {
|
|
9043
|
+
left,
|
|
9044
|
+
top,
|
|
9045
|
+
width,
|
|
9046
|
+
height
|
|
9047
|
+
} = elementRectForRootMargin;
|
|
9048
|
+
if (!skip) {
|
|
9049
|
+
onMove();
|
|
9050
|
+
}
|
|
9051
|
+
if (!width || !height) {
|
|
9052
|
+
return;
|
|
9053
|
+
}
|
|
9054
|
+
const insetTop = floor(top);
|
|
9055
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
9056
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
9057
|
+
const insetLeft = floor(left);
|
|
9058
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
9059
|
+
const options = {
|
|
9060
|
+
rootMargin,
|
|
9061
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
9062
|
+
};
|
|
9063
|
+
let isFirstUpdate = true;
|
|
9064
|
+
function handleObserve(entries) {
|
|
9065
|
+
const ratio = entries[0].intersectionRatio;
|
|
9066
|
+
if (ratio !== threshold) {
|
|
9067
|
+
if (!isFirstUpdate) {
|
|
9068
|
+
return refresh();
|
|
9069
|
+
}
|
|
9070
|
+
if (!ratio) {
|
|
9071
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
9072
|
+
// to prevent an infinite loop of updates.
|
|
9073
|
+
timeoutId = setTimeout(() => {
|
|
9074
|
+
refresh(false, 1e-7);
|
|
9075
|
+
}, 1000);
|
|
9076
|
+
} else {
|
|
9077
|
+
refresh(false, ratio);
|
|
9078
|
+
}
|
|
9079
|
+
}
|
|
9080
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
9081
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
9082
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
9083
|
+
// area anymore. This can happen under performance constraints. This may
|
|
9084
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
9085
|
+
// work around this, we compare the element's bounding rect now with
|
|
9086
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
9087
|
+
// are not equal then the element moved, so we refresh.
|
|
9088
|
+
refresh();
|
|
9089
|
+
}
|
|
9090
|
+
isFirstUpdate = false;
|
|
9091
|
+
}
|
|
8046
9092
|
|
|
8047
|
-
|
|
8048
|
-
|
|
8049
|
-
|
|
8050
|
-
|
|
8051
|
-
|
|
8052
|
-
|
|
8053
|
-
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
9093
|
+
// Older browsers don't support a `document` as the root and will throw an
|
|
9094
|
+
// error.
|
|
9095
|
+
try {
|
|
9096
|
+
io = new IntersectionObserver(handleObserve, {
|
|
9097
|
+
...options,
|
|
9098
|
+
// Handle <iframe>s
|
|
9099
|
+
root: root.ownerDocument
|
|
9100
|
+
});
|
|
9101
|
+
} catch (e) {
|
|
9102
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
9103
|
+
}
|
|
9104
|
+
io.observe(element);
|
|
8057
9105
|
}
|
|
8058
|
-
|
|
9106
|
+
refresh(true);
|
|
9107
|
+
return cleanup;
|
|
8059
9108
|
}
|
|
8060
9109
|
|
|
8061
9110
|
/**
|
|
@@ -8073,30 +9122,40 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
8073
9122
|
const {
|
|
8074
9123
|
ancestorScroll = true,
|
|
8075
9124
|
ancestorResize = true,
|
|
8076
|
-
elementResize =
|
|
9125
|
+
elementResize = typeof ResizeObserver === 'function',
|
|
9126
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
8077
9127
|
animationFrame = false
|
|
8078
9128
|
} = options;
|
|
8079
|
-
const
|
|
9129
|
+
const referenceEl = unwrapElement(reference);
|
|
9130
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
8080
9131
|
ancestors.forEach(ancestor => {
|
|
8081
|
-
|
|
8082
|
-
|
|
8083
|
-
|
|
8084
|
-
ancestor.addEventListener('scroll', update, {
|
|
8085
|
-
passive: true
|
|
8086
|
-
});
|
|
8087
|
-
}
|
|
9132
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
9133
|
+
passive: true
|
|
9134
|
+
});
|
|
8088
9135
|
ancestorResize && ancestor.addEventListener('resize', update);
|
|
8089
9136
|
});
|
|
8090
|
-
|
|
9137
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
9138
|
+
let reobserveFrame = -1;
|
|
9139
|
+
let resizeObserver = null;
|
|
8091
9140
|
if (elementResize) {
|
|
8092
|
-
|
|
9141
|
+
resizeObserver = new ResizeObserver(_ref => {
|
|
9142
|
+
let [firstEntry] = _ref;
|
|
9143
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
9144
|
+
// Prevent update loops when using the `size` middleware.
|
|
9145
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
9146
|
+
resizeObserver.unobserve(floating);
|
|
9147
|
+
cancelAnimationFrame(reobserveFrame);
|
|
9148
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
9149
|
+
var _resizeObserver;
|
|
9150
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
9151
|
+
});
|
|
9152
|
+
}
|
|
8093
9153
|
update();
|
|
8094
9154
|
});
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
observer.observe(reference.contextElement);
|
|
9155
|
+
if (referenceEl && !animationFrame) {
|
|
9156
|
+
resizeObserver.observe(referenceEl);
|
|
8098
9157
|
}
|
|
8099
|
-
|
|
9158
|
+
resizeObserver.observe(floating);
|
|
8100
9159
|
}
|
|
8101
9160
|
let frameId;
|
|
8102
9161
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
@@ -8105,7 +9164,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
8105
9164
|
}
|
|
8106
9165
|
function frameLoop() {
|
|
8107
9166
|
const nextRefRect = getBoundingClientRect(reference);
|
|
8108
|
-
if (prevRefRect && (
|
|
9167
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
8109
9168
|
update();
|
|
8110
9169
|
}
|
|
8111
9170
|
prevRefRect = nextRefRect;
|
|
@@ -8113,22 +9172,91 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
8113
9172
|
}
|
|
8114
9173
|
update();
|
|
8115
9174
|
return () => {
|
|
8116
|
-
var
|
|
9175
|
+
var _resizeObserver2;
|
|
8117
9176
|
ancestors.forEach(ancestor => {
|
|
8118
9177
|
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
8119
9178
|
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
8120
9179
|
});
|
|
8121
|
-
|
|
8122
|
-
|
|
9180
|
+
cleanupIo == null || cleanupIo();
|
|
9181
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
9182
|
+
resizeObserver = null;
|
|
8123
9183
|
if (animationFrame) {
|
|
8124
9184
|
cancelAnimationFrame(frameId);
|
|
8125
9185
|
}
|
|
8126
9186
|
};
|
|
8127
9187
|
}
|
|
8128
9188
|
|
|
8129
|
-
|
|
9189
|
+
/**
|
|
9190
|
+
* Modifies the placement by translating the floating element along the
|
|
9191
|
+
* specified axes.
|
|
9192
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
9193
|
+
* object may be passed.
|
|
9194
|
+
* @see https://floating-ui.com/docs/offset
|
|
9195
|
+
*/
|
|
9196
|
+
offset;
|
|
9197
|
+
|
|
9198
|
+
/**
|
|
9199
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
9200
|
+
* that has the most space available automatically, without needing to specify a
|
|
9201
|
+
* preferred placement. Alternative to `flip`.
|
|
9202
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
9203
|
+
*/
|
|
9204
|
+
autoPlacement;
|
|
9205
|
+
|
|
9206
|
+
/**
|
|
9207
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
9208
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
9209
|
+
* @see https://floating-ui.com/docs/shift
|
|
9210
|
+
*/
|
|
9211
|
+
shift;
|
|
9212
|
+
|
|
9213
|
+
/**
|
|
9214
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
9215
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
9216
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
9217
|
+
* @see https://floating-ui.com/docs/flip
|
|
9218
|
+
*/
|
|
9219
|
+
flip;
|
|
9220
|
+
|
|
9221
|
+
/**
|
|
9222
|
+
* Provides data that allows you to change the size of the floating element —
|
|
9223
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
9224
|
+
* width of the reference element.
|
|
9225
|
+
* @see https://floating-ui.com/docs/size
|
|
9226
|
+
*/
|
|
9227
|
+
size;
|
|
9228
|
+
|
|
9229
|
+
/**
|
|
9230
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
9231
|
+
* when it is not in the same clipping context as the reference element.
|
|
9232
|
+
* @see https://floating-ui.com/docs/hide
|
|
9233
|
+
*/
|
|
9234
|
+
hide;
|
|
9235
|
+
|
|
9236
|
+
/**
|
|
9237
|
+
* Provides data to position an inner element of the floating element so that it
|
|
9238
|
+
* appears centered to the reference element.
|
|
9239
|
+
* @see https://floating-ui.com/docs/arrow
|
|
9240
|
+
*/
|
|
9241
|
+
arrow;
|
|
9242
|
+
|
|
9243
|
+
/**
|
|
9244
|
+
* Provides improved positioning for inline reference elements that can span
|
|
9245
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
9246
|
+
* @see https://floating-ui.com/docs/inline
|
|
9247
|
+
*/
|
|
9248
|
+
inline;
|
|
9249
|
+
|
|
9250
|
+
/**
|
|
9251
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
9252
|
+
*/
|
|
9253
|
+
limitShift;
|
|
9254
|
+
|
|
9255
|
+
var isClient = typeof document !== 'undefined';
|
|
8130
9256
|
|
|
8131
|
-
var
|
|
9257
|
+
var index = isClient ? React.useLayoutEffect : React.useEffect;
|
|
9258
|
+
|
|
9259
|
+
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
8132
9260
|
// ==============================
|
|
8133
9261
|
// NO OP
|
|
8134
9262
|
// ==============================
|
|
@@ -8205,7 +9333,7 @@ var cleanCommonProps = function cleanCommonProps(props) {
|
|
|
8205
9333
|
props.selectProps;
|
|
8206
9334
|
props.setValue;
|
|
8207
9335
|
props.theme;
|
|
8208
|
-
var innerProps = _objectWithoutProperties(props, _excluded$
|
|
9336
|
+
var innerProps = _objectWithoutProperties(props, _excluded$4);
|
|
8209
9337
|
return _objectSpread2({}, innerProps);
|
|
8210
9338
|
};
|
|
8211
9339
|
|
|
@@ -8419,6 +9547,8 @@ var removeProps = function removeProps(propsObj) {
|
|
|
8419
9547
|
}, {});
|
|
8420
9548
|
};
|
|
8421
9549
|
|
|
9550
|
+
var _excluded$3 = ["children", "innerProps"],
|
|
9551
|
+
_excluded2$1 = ["children", "innerProps"];
|
|
8422
9552
|
function getMenuPlacement(_ref) {
|
|
8423
9553
|
var preferredMaxHeight = _ref.maxHeight,
|
|
8424
9554
|
menuEl = _ref.menuEl,
|
|
@@ -8713,37 +9843,41 @@ var noticeCSS = function noticeCSS(_ref5, unstyled) {
|
|
|
8713
9843
|
};
|
|
8714
9844
|
var noOptionsMessageCSS = noticeCSS;
|
|
8715
9845
|
var loadingMessageCSS = noticeCSS;
|
|
8716
|
-
var NoOptionsMessage = function NoOptionsMessage(
|
|
8717
|
-
var children =
|
|
8718
|
-
|
|
8719
|
-
|
|
9846
|
+
var NoOptionsMessage = function NoOptionsMessage(_ref6) {
|
|
9847
|
+
var _ref6$children = _ref6.children,
|
|
9848
|
+
children = _ref6$children === void 0 ? 'No options' : _ref6$children,
|
|
9849
|
+
innerProps = _ref6.innerProps,
|
|
9850
|
+
restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
9851
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
9852
|
+
children: children,
|
|
9853
|
+
innerProps: innerProps
|
|
9854
|
+
}), 'noOptionsMessage', {
|
|
8720
9855
|
'menu-notice': true,
|
|
8721
9856
|
'menu-notice--no-options': true
|
|
8722
9857
|
}), innerProps), children);
|
|
8723
9858
|
};
|
|
8724
|
-
|
|
8725
|
-
children
|
|
8726
|
-
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
9859
|
+
var LoadingMessage = function LoadingMessage(_ref7) {
|
|
9860
|
+
var _ref7$children = _ref7.children,
|
|
9861
|
+
children = _ref7$children === void 0 ? 'Loading...' : _ref7$children,
|
|
9862
|
+
innerProps = _ref7.innerProps,
|
|
9863
|
+
restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
9864
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
9865
|
+
children: children,
|
|
9866
|
+
innerProps: innerProps
|
|
9867
|
+
}), 'loadingMessage', {
|
|
8731
9868
|
'menu-notice': true,
|
|
8732
9869
|
'menu-notice--loading': true
|
|
8733
9870
|
}), innerProps), children);
|
|
8734
9871
|
};
|
|
8735
|
-
LoadingMessage.defaultProps = {
|
|
8736
|
-
children: 'Loading...'
|
|
8737
|
-
};
|
|
8738
9872
|
|
|
8739
9873
|
// ==============================
|
|
8740
9874
|
// Menu Portal
|
|
8741
9875
|
// ==============================
|
|
8742
9876
|
|
|
8743
|
-
var menuPortalCSS = function menuPortalCSS(
|
|
8744
|
-
var rect =
|
|
8745
|
-
offset =
|
|
8746
|
-
position =
|
|
9877
|
+
var menuPortalCSS = function menuPortalCSS(_ref8) {
|
|
9878
|
+
var rect = _ref8.rect,
|
|
9879
|
+
offset = _ref8.offset,
|
|
9880
|
+
position = _ref8.position;
|
|
8747
9881
|
return {
|
|
8748
9882
|
left: rect.left,
|
|
8749
9883
|
position: position,
|
|
@@ -8823,7 +9957,7 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
8823
9957
|
}), innerProps), children);
|
|
8824
9958
|
return jsx(PortalPlacementContext.Provider, {
|
|
8825
9959
|
value: portalPlacementContext
|
|
8826
|
-
}, appendTo ? /*#__PURE__*/
|
|
9960
|
+
}, appendTo ? /*#__PURE__*/reactDom.exports.createPortal(menuWrapper, appendTo) : menuWrapper);
|
|
8827
9961
|
};
|
|
8828
9962
|
|
|
8829
9963
|
// ==============================
|
|
@@ -8906,7 +10040,8 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
8906
10040
|
};
|
|
8907
10041
|
|
|
8908
10042
|
var _templateObject;
|
|
8909
|
-
var _excluded$2$1 = ["size"]
|
|
10043
|
+
var _excluded$2$1 = ["size"],
|
|
10044
|
+
_excluded2 = ["innerProps", "isRtl", "size"];
|
|
8910
10045
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8911
10046
|
|
|
8912
10047
|
// ==============================
|
|
@@ -8918,7 +10053,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
|
8918
10053
|
} : {
|
|
8919
10054
|
name: "tj5bde-Svg",
|
|
8920
10055
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
|
8921
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAg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gJ2xvYWRpbmdJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgICAgey4uLmlubmVyUHJvcHN9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */",
|
|
10056
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT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ufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",
|
|
8922
10057
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
8923
10058
|
};
|
|
8924
10059
|
var Svg = function Svg(_ref) {
|
|
@@ -9053,13 +10188,20 @@ var LoadingDot = function LoadingDot(_ref6) {
|
|
|
9053
10188
|
height: '1em',
|
|
9054
10189
|
verticalAlign: 'top',
|
|
9055
10190
|
width: '1em'
|
|
9056
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZXlmcmFtZXMgfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmltcG9ydCB7XG4gIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lLFxuICBDU1NPYmplY3RXaXRoTGFiZWwsXG4gIEdyb3VwQmFzZSxcbn0gZnJvbSAnLi4vdHlwZXMnO1xuaW1wb3J0IHsgZ2V0U3R5bGVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBEcm9wZG93biAmIENsZWFyIEljb25zXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cblxuY29uc3QgU3ZnID0gKHtcbiAgc2l6ZSxcbiAgLi4ucHJvcHNcbn06IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU6IG51bWJlciB9KSA9PiAoXG4gIDxzdmdcbiAgICBoZWlnaHQ9e3NpemV9XG4gICAgd2lkdGg9e3NpemV9XG4gICAgdmlld0JveD1cIjAgMCAyMCAyMFwiXG4gICAgYXJpYS1oaWRkZW49XCJ0cnVlXCJcbiAgICBmb2N1c2FibGU9XCJmYWxzZVwiXG4gICAgY3NzPXt7XG4gICAgICBkaXNwbGF5OiAnaW5saW5lLWJsb2NrJyxcbiAgICAgIGZpbGw6ICdjdXJyZW50Q29sb3InLFxuICAgICAgbGluZUh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ctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgICAgey4uLmlubmVyUHJvcHN9XG4gICAgPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezB9IG9mZnNldD17aXNSdGx9IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MTYwfSBvZmZzZXQgLz5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXszMjB9IG9mZnNldD17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */")
|
|
10191
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe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bmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")
|
|
9057
10192
|
});
|
|
9058
10193
|
};
|
|
9059
|
-
var LoadingIndicator = function LoadingIndicator(
|
|
9060
|
-
var innerProps =
|
|
9061
|
-
isRtl =
|
|
9062
|
-
|
|
10194
|
+
var LoadingIndicator = function LoadingIndicator(_ref7) {
|
|
10195
|
+
var innerProps = _ref7.innerProps,
|
|
10196
|
+
isRtl = _ref7.isRtl,
|
|
10197
|
+
_ref7$size = _ref7.size,
|
|
10198
|
+
size = _ref7$size === void 0 ? 4 : _ref7$size,
|
|
10199
|
+
restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
10200
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
10201
|
+
innerProps: innerProps,
|
|
10202
|
+
isRtl: isRtl,
|
|
10203
|
+
size: size
|
|
10204
|
+
}), 'loadingIndicator', {
|
|
9063
10205
|
indicator: true,
|
|
9064
10206
|
'loading-indicator': true
|
|
9065
10207
|
}), innerProps), jsx(LoadingDot, {
|
|
@@ -9073,9 +10215,6 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
9073
10215
|
offset: !isRtl
|
|
9074
10216
|
}));
|
|
9075
10217
|
};
|
|
9076
|
-
LoadingIndicator.defaultProps = {
|
|
9077
|
-
size: 4
|
|
9078
|
-
};
|
|
9079
10218
|
|
|
9080
10219
|
var css$1 = function css(_ref, unstyled) {
|
|
9081
10220
|
var isDisabled = _ref.isDisabled,
|
|
@@ -9121,7 +10260,9 @@ var Control = function Control(props) {
|
|
|
9121
10260
|
'control--is-disabled': isDisabled,
|
|
9122
10261
|
'control--is-focused': isFocused,
|
|
9123
10262
|
'control--menu-is-open': menuIsOpen
|
|
9124
|
-
}), innerProps
|
|
10263
|
+
}), innerProps, {
|
|
10264
|
+
"aria-disabled": isDisabled || undefined
|
|
10265
|
+
}), children);
|
|
9125
10266
|
};
|
|
9126
10267
|
var Control$1 = Control;
|
|
9127
10268
|
|
|
@@ -9182,7 +10323,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
9182
10323
|
};
|
|
9183
10324
|
var Group$1 = Group;
|
|
9184
10325
|
|
|
9185
|
-
var _excluded$
|
|
10326
|
+
var _excluded$5 = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
|
|
9186
10327
|
var inputCSS = function inputCSS(_ref, unstyled) {
|
|
9187
10328
|
var isDisabled = _ref.isDisabled,
|
|
9188
10329
|
value = _ref.value,
|
|
@@ -9238,7 +10379,7 @@ var Input = function Input(props) {
|
|
|
9238
10379
|
isDisabled = _cleanCommonProps.isDisabled,
|
|
9239
10380
|
isHidden = _cleanCommonProps.isHidden,
|
|
9240
10381
|
inputClassName = _cleanCommonProps.inputClassName,
|
|
9241
|
-
innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$
|
|
10382
|
+
innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$5);
|
|
9242
10383
|
return jsx("div", _extends({}, getStyleProps(props, 'input', {
|
|
9243
10384
|
'input-container': true
|
|
9244
10385
|
}), {
|
|
@@ -9543,7 +10684,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
9543
10684
|
} : {
|
|
9544
10685
|
name: "1f43avz-a11yText-A11yText",
|
|
9545
10686
|
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
|
|
9546
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
10687
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
9547
10688
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
9548
10689
|
};
|
|
9549
10690
|
var A11yText = function A11yText(props) {
|
|
@@ -9557,14 +10698,14 @@ var defaultAriaLiveMessages = {
|
|
|
9557
10698
|
guidance: function guidance(props) {
|
|
9558
10699
|
var isSearchable = props.isSearchable,
|
|
9559
10700
|
isMulti = props.isMulti,
|
|
9560
|
-
isDisabled = props.isDisabled,
|
|
9561
10701
|
tabSelectsValue = props.tabSelectsValue,
|
|
9562
|
-
context = props.context
|
|
10702
|
+
context = props.context,
|
|
10703
|
+
isInitialFocus = props.isInitialFocus;
|
|
9563
10704
|
switch (context) {
|
|
9564
10705
|
case 'menu':
|
|
9565
|
-
return "Use Up and Down to choose options
|
|
10706
|
+
return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', ".");
|
|
9566
10707
|
case 'input':
|
|
9567
|
-
return "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
|
|
10708
|
+
return isInitialFocus ? "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '') : '';
|
|
9568
10709
|
case 'value':
|
|
9569
10710
|
return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
|
|
9570
10711
|
default:
|
|
@@ -9600,17 +10741,18 @@ var defaultAriaLiveMessages = {
|
|
|
9600
10741
|
label = _props$label2 === void 0 ? '' : _props$label2,
|
|
9601
10742
|
selectValue = props.selectValue,
|
|
9602
10743
|
isDisabled = props.isDisabled,
|
|
9603
|
-
isSelected = props.isSelected
|
|
10744
|
+
isSelected = props.isSelected,
|
|
10745
|
+
isAppleDevice = props.isAppleDevice;
|
|
9604
10746
|
var getArrayIndex = function getArrayIndex(arr, item) {
|
|
9605
10747
|
return arr && arr.length ? "".concat(arr.indexOf(item) + 1, " of ").concat(arr.length) : '';
|
|
9606
10748
|
};
|
|
9607
10749
|
if (context === 'value' && selectValue) {
|
|
9608
10750
|
return "value ".concat(label, " focused, ").concat(getArrayIndex(selectValue, focused), ".");
|
|
9609
10751
|
}
|
|
9610
|
-
if (context === 'menu') {
|
|
10752
|
+
if (context === 'menu' && isAppleDevice) {
|
|
9611
10753
|
var disabled = isDisabled ? ' disabled' : '';
|
|
9612
|
-
var status = "".concat(isSelected ? 'selected' : '
|
|
9613
|
-
return "
|
|
10754
|
+
var status = "".concat(isSelected ? ' selected' : '').concat(disabled);
|
|
10755
|
+
return "".concat(label).concat(status, ", ").concat(getArrayIndex(options, focused), ".");
|
|
9614
10756
|
}
|
|
9615
10757
|
return '';
|
|
9616
10758
|
},
|
|
@@ -9629,7 +10771,8 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9629
10771
|
isFocused = props.isFocused,
|
|
9630
10772
|
selectValue = props.selectValue,
|
|
9631
10773
|
selectProps = props.selectProps,
|
|
9632
|
-
id = props.id
|
|
10774
|
+
id = props.id,
|
|
10775
|
+
isAppleDevice = props.isAppleDevice;
|
|
9633
10776
|
var ariaLiveMessages = selectProps.ariaLiveMessages,
|
|
9634
10777
|
getOptionLabel = selectProps.getOptionLabel,
|
|
9635
10778
|
inputValue = selectProps.inputValue,
|
|
@@ -9639,7 +10782,8 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9639
10782
|
menuIsOpen = selectProps.menuIsOpen,
|
|
9640
10783
|
options = selectProps.options,
|
|
9641
10784
|
screenReaderStatus = selectProps.screenReaderStatus,
|
|
9642
|
-
tabSelectsValue = selectProps.tabSelectsValue
|
|
10785
|
+
tabSelectsValue = selectProps.tabSelectsValue,
|
|
10786
|
+
isLoading = selectProps.isLoading;
|
|
9643
10787
|
var ariaLabel = selectProps['aria-label'];
|
|
9644
10788
|
var ariaLive = selectProps['aria-live'];
|
|
9645
10789
|
|
|
@@ -9692,15 +10836,16 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9692
10836
|
isSelected: isSelected,
|
|
9693
10837
|
options: focusableOptions,
|
|
9694
10838
|
context: focused === focusedOption ? 'menu' : 'value',
|
|
9695
|
-
selectValue: selectValue
|
|
10839
|
+
selectValue: selectValue,
|
|
10840
|
+
isAppleDevice: isAppleDevice
|
|
9696
10841
|
};
|
|
9697
10842
|
focusMsg = messages.onFocus(onFocusProps);
|
|
9698
10843
|
}
|
|
9699
10844
|
return focusMsg;
|
|
9700
|
-
}, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue]);
|
|
10845
|
+
}, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue, isAppleDevice]);
|
|
9701
10846
|
var ariaResults = React.useMemo(function () {
|
|
9702
10847
|
var resultsMsg = '';
|
|
9703
|
-
if (menuIsOpen && options.length && messages.onFilter) {
|
|
10848
|
+
if (menuIsOpen && options.length && !isLoading && messages.onFilter) {
|
|
9704
10849
|
var resultsMessage = screenReaderStatus({
|
|
9705
10850
|
count: focusableOptions.length
|
|
9706
10851
|
});
|
|
@@ -9710,7 +10855,8 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9710
10855
|
});
|
|
9711
10856
|
}
|
|
9712
10857
|
return resultsMsg;
|
|
9713
|
-
}, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus]);
|
|
10858
|
+
}, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus, isLoading]);
|
|
10859
|
+
var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus';
|
|
9714
10860
|
var ariaGuidance = React.useMemo(function () {
|
|
9715
10861
|
var guidanceMsg = '';
|
|
9716
10862
|
if (messages.guidance) {
|
|
@@ -9721,24 +10867,28 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9721
10867
|
isDisabled: focusedOption && isOptionDisabled(focusedOption, selectValue),
|
|
9722
10868
|
isMulti: isMulti,
|
|
9723
10869
|
isSearchable: isSearchable,
|
|
9724
|
-
tabSelectsValue: tabSelectsValue
|
|
10870
|
+
tabSelectsValue: tabSelectsValue,
|
|
10871
|
+
isInitialFocus: isInitialFocus
|
|
9725
10872
|
});
|
|
9726
10873
|
}
|
|
9727
10874
|
return guidanceMsg;
|
|
9728
|
-
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue]);
|
|
9729
|
-
var ariaContext = "".concat(ariaFocused, " ").concat(ariaResults, " ").concat(ariaGuidance);
|
|
10875
|
+
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
9730
10876
|
var ScreenReaderText = jsx(React.Fragment, null, jsx("span", {
|
|
9731
10877
|
id: "aria-selection"
|
|
9732
10878
|
}, ariaSelected), jsx("span", {
|
|
9733
|
-
id: "aria-
|
|
9734
|
-
},
|
|
9735
|
-
|
|
10879
|
+
id: "aria-focused"
|
|
10880
|
+
}, ariaFocused), jsx("span", {
|
|
10881
|
+
id: "aria-results"
|
|
10882
|
+
}, ariaResults), jsx("span", {
|
|
10883
|
+
id: "aria-guidance"
|
|
10884
|
+
}, ariaGuidance));
|
|
9736
10885
|
return jsx(React.Fragment, null, jsx(A11yText$1, {
|
|
9737
10886
|
id: id
|
|
9738
10887
|
}, isInitialFocus && ScreenReaderText), jsx(A11yText$1, {
|
|
9739
10888
|
"aria-live": ariaLive,
|
|
9740
10889
|
"aria-atomic": "false",
|
|
9741
|
-
"aria-relevant": "additions text"
|
|
10890
|
+
"aria-relevant": "additions text",
|
|
10891
|
+
role: "log"
|
|
9742
10892
|
}, isFocused && !isInitialFocus && ScreenReaderText));
|
|
9743
10893
|
};
|
|
9744
10894
|
var LiveRegion$1 = LiveRegion;
|
|
@@ -10078,12 +11228,12 @@ function DummyInput(_ref) {
|
|
|
10078
11228
|
opacity: 0,
|
|
10079
11229
|
position: 'relative',
|
|
10080
11230
|
transform: 'scale(.01)'
|
|
10081
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
11231
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm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uICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")
|
|
10082
11232
|
}));
|
|
10083
11233
|
}
|
|
10084
11234
|
|
|
10085
11235
|
var cancelScroll = function cancelScroll(event) {
|
|
10086
|
-
event.preventDefault();
|
|
11236
|
+
if (event.cancelable) event.preventDefault();
|
|
10087
11237
|
event.stopPropagation();
|
|
10088
11238
|
};
|
|
10089
11239
|
function useScrollCapture(_ref) {
|
|
@@ -10191,7 +11341,7 @@ var LOCK_STYLES = {
|
|
|
10191
11341
|
height: '100%'
|
|
10192
11342
|
};
|
|
10193
11343
|
function preventTouchMove(e) {
|
|
10194
|
-
e.preventDefault();
|
|
11344
|
+
if (e.cancelable) e.preventDefault();
|
|
10195
11345
|
}
|
|
10196
11346
|
function allowTouchMove(e) {
|
|
10197
11347
|
e.stopPropagation();
|
|
@@ -10308,8 +11458,9 @@ function useScrollLock(_ref) {
|
|
|
10308
11458
|
}
|
|
10309
11459
|
|
|
10310
11460
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
10311
|
-
var blurSelectInput = function blurSelectInput() {
|
|
10312
|
-
|
|
11461
|
+
var blurSelectInput = function blurSelectInput(event) {
|
|
11462
|
+
var element = event.target;
|
|
11463
|
+
return element.ownerDocument.activeElement && element.ownerDocument.activeElement.blur();
|
|
10313
11464
|
};
|
|
10314
11465
|
var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
10315
11466
|
name: "1kfdb0e",
|
|
@@ -10317,7 +11468,7 @@ var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
|
10317
11468
|
} : {
|
|
10318
11469
|
name: "bp8cua-ScrollManager",
|
|
10319
11470
|
styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
|
|
10320
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
11471
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCk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AgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
|
|
10321
11472
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
|
|
10322
11473
|
};
|
|
10323
11474
|
function ScrollManager(_ref) {
|
|
@@ -10377,6 +11528,30 @@ var RequiredInput = function RequiredInput(_ref) {
|
|
|
10377
11528
|
};
|
|
10378
11529
|
var RequiredInput$1 = RequiredInput;
|
|
10379
11530
|
|
|
11531
|
+
/// <reference types="user-agent-data-types" />
|
|
11532
|
+
|
|
11533
|
+
function testPlatform(re) {
|
|
11534
|
+
var _window$navigator$use;
|
|
11535
|
+
return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window$navigator$use = window.navigator['userAgentData']) === null || _window$navigator$use === void 0 ? void 0 : _window$navigator$use.platform) || window.navigator.platform) : false;
|
|
11536
|
+
}
|
|
11537
|
+
function isIPhone() {
|
|
11538
|
+
return testPlatform(/^iPhone/i);
|
|
11539
|
+
}
|
|
11540
|
+
function isMac() {
|
|
11541
|
+
return testPlatform(/^Mac/i);
|
|
11542
|
+
}
|
|
11543
|
+
function isIPad() {
|
|
11544
|
+
return testPlatform(/^iPad/i) ||
|
|
11545
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
11546
|
+
isMac() && navigator.maxTouchPoints > 1;
|
|
11547
|
+
}
|
|
11548
|
+
function isIOS() {
|
|
11549
|
+
return isIPhone() || isIPad();
|
|
11550
|
+
}
|
|
11551
|
+
function isAppleDevice() {
|
|
11552
|
+
return isMac() || isIOS();
|
|
11553
|
+
}
|
|
11554
|
+
|
|
10380
11555
|
var formatGroupLabel = function formatGroupLabel(group) {
|
|
10381
11556
|
return group.label;
|
|
10382
11557
|
};
|
|
@@ -10546,6 +11721,24 @@ function buildFocusableOptionsFromCategorizedOptions(categorizedOptions) {
|
|
|
10546
11721
|
return optionsAccumulator;
|
|
10547
11722
|
}, []);
|
|
10548
11723
|
}
|
|
11724
|
+
function buildFocusableOptionsWithIds(categorizedOptions, optionId) {
|
|
11725
|
+
return categorizedOptions.reduce(function (optionsAccumulator, categorizedOption) {
|
|
11726
|
+
if (categorizedOption.type === 'group') {
|
|
11727
|
+
optionsAccumulator.push.apply(optionsAccumulator, _toConsumableArray(categorizedOption.options.map(function (option) {
|
|
11728
|
+
return {
|
|
11729
|
+
data: option.data,
|
|
11730
|
+
id: "".concat(optionId, "-").concat(categorizedOption.index, "-").concat(option.index)
|
|
11731
|
+
};
|
|
11732
|
+
})));
|
|
11733
|
+
} else {
|
|
11734
|
+
optionsAccumulator.push({
|
|
11735
|
+
data: categorizedOption.data,
|
|
11736
|
+
id: "".concat(optionId, "-").concat(categorizedOption.index)
|
|
11737
|
+
});
|
|
11738
|
+
}
|
|
11739
|
+
return optionsAccumulator;
|
|
11740
|
+
}, []);
|
|
11741
|
+
}
|
|
10549
11742
|
function buildFocusableOptions(props, selectValue) {
|
|
10550
11743
|
return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props, selectValue));
|
|
10551
11744
|
}
|
|
@@ -10583,6 +11776,13 @@ function getNextFocusedOption(state, options) {
|
|
|
10583
11776
|
var lastFocusedOption = state.focusedOption;
|
|
10584
11777
|
return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
|
|
10585
11778
|
}
|
|
11779
|
+
var getFocusedOptionId = function getFocusedOptionId(focusableOptionsWithIds, focusedOption) {
|
|
11780
|
+
var _focusableOptionsWith;
|
|
11781
|
+
var focusedOptionId = (_focusableOptionsWith = focusableOptionsWithIds.find(function (option) {
|
|
11782
|
+
return option.data === focusedOption;
|
|
11783
|
+
})) === null || _focusableOptionsWith === void 0 ? void 0 : _focusableOptionsWith.id;
|
|
11784
|
+
return focusedOptionId || null;
|
|
11785
|
+
};
|
|
10586
11786
|
var getOptionLabel = function getOptionLabel(props, data) {
|
|
10587
11787
|
return props.getOptionLabel(data);
|
|
10588
11788
|
};
|
|
@@ -10633,6 +11833,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10633
11833
|
_this.state = {
|
|
10634
11834
|
ariaSelection: null,
|
|
10635
11835
|
focusedOption: null,
|
|
11836
|
+
focusedOptionId: null,
|
|
11837
|
+
focusableOptionsWithIds: [],
|
|
10636
11838
|
focusedValue: null,
|
|
10637
11839
|
inputIsHidden: false,
|
|
10638
11840
|
isFocused: false,
|
|
@@ -10640,17 +11842,18 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10640
11842
|
clearFocusValueOnUpdate: false,
|
|
10641
11843
|
prevWasFocused: false,
|
|
10642
11844
|
inputIsHiddenAfterUpdate: undefined,
|
|
10643
|
-
prevProps: undefined
|
|
11845
|
+
prevProps: undefined,
|
|
11846
|
+
instancePrefix: ''
|
|
10644
11847
|
};
|
|
10645
11848
|
_this.blockOptionHover = false;
|
|
10646
11849
|
_this.isComposing = false;
|
|
10647
11850
|
_this.commonProps = void 0;
|
|
10648
11851
|
_this.initialTouchX = 0;
|
|
10649
11852
|
_this.initialTouchY = 0;
|
|
10650
|
-
_this.instancePrefix = '';
|
|
10651
11853
|
_this.openAfterFocus = false;
|
|
10652
11854
|
_this.scrollToFocusedOptionOnUpdate = false;
|
|
10653
11855
|
_this.userIsDragging = void 0;
|
|
11856
|
+
_this.isAppleDevice = isAppleDevice();
|
|
10654
11857
|
_this.controlRef = null;
|
|
10655
11858
|
_this.getControlRef = function (ref) {
|
|
10656
11859
|
_this.controlRef = ref;
|
|
@@ -10760,10 +11963,18 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10760
11963
|
var lastSelectedValue = selectValue[selectValue.length - 1];
|
|
10761
11964
|
var newValueArray = selectValue.slice(0, selectValue.length - 1);
|
|
10762
11965
|
var newValue = valueTernary(isMulti, newValueArray, newValueArray[0] || null);
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
11966
|
+
if (lastSelectedValue) {
|
|
11967
|
+
_this.onChange(newValue, {
|
|
11968
|
+
action: 'pop-value',
|
|
11969
|
+
removedValue: lastSelectedValue
|
|
11970
|
+
});
|
|
11971
|
+
}
|
|
11972
|
+
};
|
|
11973
|
+
_this.getFocusedOptionId = function (focusedOption) {
|
|
11974
|
+
return getFocusedOptionId(_this.state.focusableOptionsWithIds, focusedOption);
|
|
11975
|
+
};
|
|
11976
|
+
_this.getFocusableOptionsWithIds = function () {
|
|
11977
|
+
return buildFocusableOptionsWithIds(buildCategorizedOptions(_this.props, _this.state.selectValue), _this.getElementId('option'));
|
|
10767
11978
|
};
|
|
10768
11979
|
_this.getValue = function () {
|
|
10769
11980
|
return _this.state.selectValue;
|
|
@@ -10792,7 +12003,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10792
12003
|
return (_this$props$className = (_this$props$className2 = _this.props.classNames)[key]) === null || _this$props$className === void 0 ? void 0 : _this$props$className.call(_this$props$className2, props);
|
|
10793
12004
|
};
|
|
10794
12005
|
_this.getElementId = function (element) {
|
|
10795
|
-
return "".concat(_this.instancePrefix, "-").concat(element);
|
|
12006
|
+
return "".concat(_this.state.instancePrefix, "-").concat(element);
|
|
10796
12007
|
};
|
|
10797
12008
|
_this.getComponents = function () {
|
|
10798
12009
|
return defaultComponents(_this.props);
|
|
@@ -11001,8 +12212,11 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11001
12212
|
if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
|
|
11002
12213
|
return;
|
|
11003
12214
|
}
|
|
12215
|
+
var options = _this.getFocusableOptions();
|
|
12216
|
+
var focusedOptionIndex = options.indexOf(focusedOption);
|
|
11004
12217
|
_this.setState({
|
|
11005
|
-
focusedOption: focusedOption
|
|
12218
|
+
focusedOption: focusedOption,
|
|
12219
|
+
focusedOptionId: focusedOptionIndex > -1 ? _this.getFocusedOptionId(focusedOption) : null
|
|
11006
12220
|
});
|
|
11007
12221
|
};
|
|
11008
12222
|
_this.shouldHideSelectedOptions = function () {
|
|
@@ -11146,14 +12360,16 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11146
12360
|
}
|
|
11147
12361
|
event.preventDefault();
|
|
11148
12362
|
};
|
|
11149
|
-
_this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
|
|
12363
|
+
_this.state.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
|
|
11150
12364
|
_this.state.selectValue = cleanValue(_props.value);
|
|
11151
|
-
|
|
11152
12365
|
// Set focusedOption if menuIsOpen is set on init (e.g. defaultMenuIsOpen)
|
|
11153
12366
|
if (_props.menuIsOpen && _this.state.selectValue.length) {
|
|
12367
|
+
var focusableOptionsWithIds = _this.getFocusableOptionsWithIds();
|
|
11154
12368
|
var focusableOptions = _this.buildFocusableOptions();
|
|
11155
12369
|
var optionIndex = focusableOptions.indexOf(_this.state.selectValue[0]);
|
|
12370
|
+
_this.state.focusableOptionsWithIds = focusableOptionsWithIds;
|
|
11156
12371
|
_this.state.focusedOption = focusableOptions[optionIndex];
|
|
12372
|
+
_this.state.focusedOptionId = getFocusedOptionId(focusableOptionsWithIds, focusableOptions[optionIndex]);
|
|
11157
12373
|
}
|
|
11158
12374
|
return _this;
|
|
11159
12375
|
}
|
|
@@ -11278,7 +12494,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11278
12494
|
this.setState({
|
|
11279
12495
|
inputIsHiddenAfterUpdate: false,
|
|
11280
12496
|
focusedValue: null,
|
|
11281
|
-
focusedOption: focusableOptions[openAtIndex]
|
|
12497
|
+
focusedOption: focusableOptions[openAtIndex],
|
|
12498
|
+
focusedOptionId: this.getFocusedOptionId(focusableOptions[openAtIndex])
|
|
11282
12499
|
}, function () {
|
|
11283
12500
|
return _this2.onMenuOpen();
|
|
11284
12501
|
});
|
|
@@ -11354,7 +12571,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11354
12571
|
this.scrollToFocusedOptionOnUpdate = true;
|
|
11355
12572
|
this.setState({
|
|
11356
12573
|
focusedOption: options[nextFocus],
|
|
11357
|
-
focusedValue: null
|
|
12574
|
+
focusedValue: null,
|
|
12575
|
+
focusedOptionId: this.getFocusedOptionId(options[nextFocus])
|
|
11358
12576
|
});
|
|
11359
12577
|
}
|
|
11360
12578
|
}, {
|
|
@@ -11550,10 +12768,10 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11550
12768
|
'aria-label': this.props['aria-label'],
|
|
11551
12769
|
'aria-labelledby': this.props['aria-labelledby'],
|
|
11552
12770
|
'aria-required': required,
|
|
11553
|
-
role: 'combobox'
|
|
12771
|
+
role: 'combobox',
|
|
12772
|
+
'aria-activedescendant': this.isAppleDevice ? undefined : this.state.focusedOptionId || ''
|
|
11554
12773
|
}, menuIsOpen && {
|
|
11555
|
-
'aria-controls': this.getElementId('listbox')
|
|
11556
|
-
'aria-owns': this.getElementId('listbox')
|
|
12774
|
+
'aria-controls': this.getElementId('listbox')
|
|
11557
12775
|
}), !isSearchable && {
|
|
11558
12776
|
'aria-readonly': true
|
|
11559
12777
|
}), this.hasValue() ? (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus' && {
|
|
@@ -11798,8 +13016,11 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11798
13016
|
onClick: onSelect,
|
|
11799
13017
|
onMouseMove: onHover,
|
|
11800
13018
|
onMouseOver: onHover,
|
|
11801
|
-
tabIndex: -1
|
|
13019
|
+
tabIndex: -1,
|
|
13020
|
+
role: 'option',
|
|
13021
|
+
'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
11802
13022
|
};
|
|
13023
|
+
|
|
11803
13024
|
return /*#__PURE__*/React__namespace.createElement(Option, _extends({}, commonProps, {
|
|
11804
13025
|
innerProps: innerProps,
|
|
11805
13026
|
data: data,
|
|
@@ -11868,8 +13089,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11868
13089
|
innerRef: ref,
|
|
11869
13090
|
innerProps: {
|
|
11870
13091
|
onMouseDown: _this4.onMenuMouseDown,
|
|
11871
|
-
onMouseMove: _this4.onMenuMouseMove
|
|
11872
|
-
id: _this4.getElementId('listbox')
|
|
13092
|
+
onMouseMove: _this4.onMenuMouseMove
|
|
11873
13093
|
},
|
|
11874
13094
|
isLoading: isLoading,
|
|
11875
13095
|
placement: placement
|
|
@@ -11884,6 +13104,11 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11884
13104
|
_this4.getMenuListRef(instance);
|
|
11885
13105
|
scrollTargetRef(instance);
|
|
11886
13106
|
},
|
|
13107
|
+
innerProps: {
|
|
13108
|
+
role: 'listbox',
|
|
13109
|
+
'aria-multiselectable': commonProps.isMulti,
|
|
13110
|
+
id: _this4.getElementId('listbox')
|
|
13111
|
+
},
|
|
11887
13112
|
isLoading: isLoading,
|
|
11888
13113
|
maxHeight: maxHeight,
|
|
11889
13114
|
focusedOption: focusedOption
|
|
@@ -11971,7 +13196,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11971
13196
|
focusedValue: focusedValue,
|
|
11972
13197
|
isFocused: isFocused,
|
|
11973
13198
|
selectValue: selectValue,
|
|
11974
|
-
focusableOptions: focusableOptions
|
|
13199
|
+
focusableOptions: focusableOptions,
|
|
13200
|
+
isAppleDevice: this.isAppleDevice
|
|
11975
13201
|
}));
|
|
11976
13202
|
}
|
|
11977
13203
|
}, {
|
|
@@ -12020,7 +13246,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
12020
13246
|
inputIsHiddenAfterUpdate = state.inputIsHiddenAfterUpdate,
|
|
12021
13247
|
ariaSelection = state.ariaSelection,
|
|
12022
13248
|
isFocused = state.isFocused,
|
|
12023
|
-
prevWasFocused = state.prevWasFocused
|
|
13249
|
+
prevWasFocused = state.prevWasFocused,
|
|
13250
|
+
instancePrefix = state.instancePrefix;
|
|
12024
13251
|
var options = props.options,
|
|
12025
13252
|
value = props.value,
|
|
12026
13253
|
menuIsOpen = props.menuIsOpen,
|
|
@@ -12030,11 +13257,15 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
12030
13257
|
var newMenuOptionsState = {};
|
|
12031
13258
|
if (prevProps && (value !== prevProps.value || options !== prevProps.options || menuIsOpen !== prevProps.menuIsOpen || inputValue !== prevProps.inputValue)) {
|
|
12032
13259
|
var focusableOptions = menuIsOpen ? buildFocusableOptions(props, selectValue) : [];
|
|
13260
|
+
var focusableOptionsWithIds = menuIsOpen ? buildFocusableOptionsWithIds(buildCategorizedOptions(props, selectValue), "".concat(instancePrefix, "-option")) : [];
|
|
12033
13261
|
var focusedValue = clearFocusValueOnUpdate ? getNextFocusedValue(state, selectValue) : null;
|
|
12034
13262
|
var focusedOption = getNextFocusedOption(state, focusableOptions);
|
|
13263
|
+
var focusedOptionId = getFocusedOptionId(focusableOptionsWithIds, focusedOption);
|
|
12035
13264
|
newMenuOptionsState = {
|
|
12036
13265
|
selectValue: selectValue,
|
|
12037
13266
|
focusedOption: focusedOption,
|
|
13267
|
+
focusedOptionId: focusedOptionId,
|
|
13268
|
+
focusableOptionsWithIds: focusableOptionsWithIds,
|
|
12038
13269
|
focusedValue: focusedValue,
|
|
12039
13270
|
clearFocusValueOnUpdate: false
|
|
12040
13271
|
};
|
|
@@ -13851,6 +15082,13 @@ const HOUR_IN_MS = 3600000;
|
|
|
13851
15082
|
*/
|
|
13852
15083
|
const DAY_IN_MS = 86400000;
|
|
13853
15084
|
|
|
15085
|
+
/**
|
|
15086
|
+
* Route for checking the status of the current user's
|
|
15087
|
+
* access to log review
|
|
15088
|
+
* @author Gabe Abrams
|
|
15089
|
+
*/
|
|
15090
|
+
const LOG_REVIEW_STATUS_ROUTE = `${ROUTE_PATH_PREFIX}/logs/access_allowed`;
|
|
15091
|
+
|
|
13854
15092
|
// True if user is on mobile or tablet
|
|
13855
15093
|
let cachedResult = undefined;
|
|
13856
15094
|
/**
|
|
@@ -14188,13 +15426,6 @@ const parallelLimit = (taskFunctions, limit) => __awaiter(void 0, void 0, void 0
|
|
|
14188
15426
|
return results;
|
|
14189
15427
|
});
|
|
14190
15428
|
|
|
14191
|
-
/**
|
|
14192
|
-
* Route for checking the status of the current user's
|
|
14193
|
-
* access to log review
|
|
14194
|
-
* @author Gabe Abrams
|
|
14195
|
-
*/
|
|
14196
|
-
const LOG_REVIEW_STATUS_ROUTE = `${ROUTE_PATH_PREFIX}/logs/access_allowed`;
|
|
14197
|
-
|
|
14198
15429
|
/*------------------------------------------------------------------------*/
|
|
14199
15430
|
/* -------------------------------- Cache ------------------------------- */
|
|
14200
15431
|
/*------------------------------------------------------------------------*/
|
|
@@ -14911,6 +16142,9 @@ exports.ErrorWithCode = ErrorWithCode;
|
|
|
14911
16142
|
exports.HOUR_IN_MS = HOUR_IN_MS;
|
|
14912
16143
|
exports.IntelliTable = IntelliTable;
|
|
14913
16144
|
exports.ItemPicker = ItemPicker;
|
|
16145
|
+
exports.LOG_REVIEW_ROUTE_PATH_PREFIX = LOG_REVIEW_ROUTE_PATH_PREFIX;
|
|
16146
|
+
exports.LOG_REVIEW_STATUS_ROUTE = LOG_REVIEW_STATUS_ROUTE;
|
|
16147
|
+
exports.LOG_ROUTE_PATH = LOG_ROUTE_PATH;
|
|
14914
16148
|
exports.LoadingSpinner = LoadingSpinner;
|
|
14915
16149
|
exports.LogAction = LogAction$1;
|
|
14916
16150
|
exports.LogBuiltInMetadata = LogBuiltInMetadata;
|