@silas-test/ob-molecules-side-panel 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js ADDED
@@ -0,0 +1,1239 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var react = require('react');
5
+ var obAtomsBackdrop = require('@silas-test/ob-atoms-backdrop');
6
+ var uiUtils = require('@silas-test/ui-utils');
7
+ var obAtomsButton = require('@silas-test/ob-atoms-button');
8
+
9
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
+
11
+ function getDefaultExportFromCjs (x) {
12
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
13
+ }
14
+
15
+ var check = function (it) {
16
+ return it && it.Math === Math && it;
17
+ };
18
+
19
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
20
+ var globalThis_1 =
21
+ // eslint-disable-next-line es/no-global-this -- safe
22
+ check(typeof globalThis == 'object' && globalThis) ||
23
+ check(typeof window == 'object' && window) ||
24
+ // eslint-disable-next-line no-restricted-globals -- safe
25
+ check(typeof self == 'object' && self) ||
26
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
27
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
28
+ // eslint-disable-next-line no-new-func -- fallback
29
+ (function () { return this; })() || Function('return this')();
30
+
31
+ var objectGetOwnPropertyDescriptor = {};
32
+
33
+ var fails$9 = function (exec) {
34
+ try {
35
+ return !!exec();
36
+ } catch (error) {
37
+ return true;
38
+ }
39
+ };
40
+
41
+ var fails$8 = fails$9;
42
+
43
+ // Detect IE8's incomplete defineProperty implementation
44
+ var descriptors = !fails$8(function () {
45
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
46
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
47
+ });
48
+
49
+ var fails$7 = fails$9;
50
+
51
+ var functionBindNative = !fails$7(function () {
52
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
53
+ var test = (function () { /* empty */ }).bind();
54
+ // eslint-disable-next-line no-prototype-builtins -- safe
55
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
56
+ });
57
+
58
+ var NATIVE_BIND$1 = functionBindNative;
59
+
60
+ var call$5 = Function.prototype.call;
61
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
62
+ var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
63
+ return call$5.apply(call$5, arguments);
64
+ };
65
+
66
+ var objectPropertyIsEnumerable = {};
67
+
68
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
69
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
70
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
71
+
72
+ // Nashorn ~ JDK8 bug
73
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
74
+
75
+ // `Object.prototype.propertyIsEnumerable` method implementation
76
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
77
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
78
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
79
+ return !!descriptor && descriptor.enumerable;
80
+ } : $propertyIsEnumerable;
81
+
82
+ var createPropertyDescriptor$2 = function (bitmap, value) {
83
+ return {
84
+ enumerable: !(bitmap & 1),
85
+ configurable: !(bitmap & 2),
86
+ writable: !(bitmap & 4),
87
+ value: value
88
+ };
89
+ };
90
+
91
+ var NATIVE_BIND = functionBindNative;
92
+
93
+ var FunctionPrototype$1 = Function.prototype;
94
+ var call$4 = FunctionPrototype$1.call;
95
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
96
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
97
+
98
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
99
+ return function () {
100
+ return call$4.apply(fn, arguments);
101
+ };
102
+ };
103
+
104
+ var uncurryThis$9 = functionUncurryThis;
105
+
106
+ var toString$1 = uncurryThis$9({}.toString);
107
+ var stringSlice$1 = uncurryThis$9(''.slice);
108
+
109
+ var classofRaw = function (it) {
110
+ return stringSlice$1(toString$1(it), 8, -1);
111
+ };
112
+
113
+ var uncurryThis$8 = functionUncurryThis;
114
+ var fails$6 = fails$9;
115
+ var classof = classofRaw;
116
+
117
+ var $Object$2 = Object;
118
+ var split = uncurryThis$8(''.split);
119
+
120
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
121
+ var indexedObject = fails$6(function () {
122
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
123
+ // eslint-disable-next-line no-prototype-builtins -- safe
124
+ return !$Object$2('z').propertyIsEnumerable(0);
125
+ }) ? function (it) {
126
+ return classof(it) === 'String' ? split(it, '') : $Object$2(it);
127
+ } : $Object$2;
128
+
129
+ // we can't use just `it == null` since of `document.all` special case
130
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
131
+ var isNullOrUndefined$2 = function (it) {
132
+ return it === null || it === undefined;
133
+ };
134
+
135
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
136
+
137
+ var $TypeError$5 = TypeError;
138
+
139
+ // `RequireObjectCoercible` abstract operation
140
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
141
+ var requireObjectCoercible$2 = function (it) {
142
+ if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
143
+ return it;
144
+ };
145
+
146
+ // toObject with fallback for non-array-like ES3 strings
147
+ var IndexedObject$1 = indexedObject;
148
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
149
+
150
+ var toIndexedObject$3 = function (it) {
151
+ return IndexedObject$1(requireObjectCoercible$1(it));
152
+ };
153
+
154
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
155
+ var documentAll = typeof document == 'object' && document.all;
156
+
157
+ // `IsCallable` abstract operation
158
+ // https://tc39.es/ecma262/#sec-iscallable
159
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
160
+ var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
161
+ return typeof argument == 'function' || argument === documentAll;
162
+ } : function (argument) {
163
+ return typeof argument == 'function';
164
+ };
165
+
166
+ var isCallable$9 = isCallable$a;
167
+
168
+ var isObject$4 = function (it) {
169
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
170
+ };
171
+
172
+ var globalThis$b = globalThis_1;
173
+ var isCallable$8 = isCallable$a;
174
+
175
+ var aFunction = function (argument) {
176
+ return isCallable$8(argument) ? argument : undefined;
177
+ };
178
+
179
+ var getBuiltIn$2 = function (namespace, method) {
180
+ return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
181
+ };
182
+
183
+ var uncurryThis$7 = functionUncurryThis;
184
+
185
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
186
+
187
+ var globalThis$a = globalThis_1;
188
+
189
+ var navigator = globalThis$a.navigator;
190
+ var userAgent$1 = navigator && navigator.userAgent;
191
+
192
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
193
+
194
+ var globalThis$9 = globalThis_1;
195
+ var userAgent = environmentUserAgent;
196
+
197
+ var process = globalThis$9.process;
198
+ var Deno = globalThis$9.Deno;
199
+ var versions = process && process.versions || Deno && Deno.version;
200
+ var v8 = versions && versions.v8;
201
+ var match, version;
202
+
203
+ if (v8) {
204
+ match = v8.split('.');
205
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
206
+ // but their correct versions are not interesting for us
207
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
208
+ }
209
+
210
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
211
+ // so check `userAgent` even if `.v8` exists, but 0
212
+ if (!version && userAgent) {
213
+ match = userAgent.match(/Edge\/(\d+)/);
214
+ if (!match || match[1] >= 74) {
215
+ match = userAgent.match(/Chrome\/(\d+)/);
216
+ if (match) version = +match[1];
217
+ }
218
+ }
219
+
220
+ var environmentV8Version = version;
221
+
222
+ /* eslint-disable es/no-symbol -- required for testing */
223
+ var V8_VERSION = environmentV8Version;
224
+ var fails$5 = fails$9;
225
+ var globalThis$8 = globalThis_1;
226
+
227
+ var $String$3 = globalThis$8.String;
228
+
229
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
230
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
231
+ var symbol = Symbol('symbol detection');
232
+ // Chrome 38 Symbol has incorrect toString conversion
233
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
234
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
235
+ // of course, fail.
236
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
237
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
238
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
239
+ });
240
+
241
+ /* eslint-disable es/no-symbol -- required for testing */
242
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
243
+
244
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
245
+ !Symbol.sham &&
246
+ typeof Symbol.iterator == 'symbol';
247
+
248
+ var getBuiltIn$1 = getBuiltIn$2;
249
+ var isCallable$7 = isCallable$a;
250
+ var isPrototypeOf = objectIsPrototypeOf;
251
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
252
+
253
+ var $Object$1 = Object;
254
+
255
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
256
+ return typeof it == 'symbol';
257
+ } : function (it) {
258
+ var $Symbol = getBuiltIn$1('Symbol');
259
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
260
+ };
261
+
262
+ var $String$2 = String;
263
+
264
+ var tryToString$1 = function (argument) {
265
+ try {
266
+ return $String$2(argument);
267
+ } catch (error) {
268
+ return 'Object';
269
+ }
270
+ };
271
+
272
+ var isCallable$6 = isCallable$a;
273
+ var tryToString = tryToString$1;
274
+
275
+ var $TypeError$4 = TypeError;
276
+
277
+ // `Assert: IsCallable(argument) is true`
278
+ var aCallable$1 = function (argument) {
279
+ if (isCallable$6(argument)) return argument;
280
+ throw new $TypeError$4(tryToString(argument) + ' is not a function');
281
+ };
282
+
283
+ var aCallable = aCallable$1;
284
+ var isNullOrUndefined = isNullOrUndefined$2;
285
+
286
+ // `GetMethod` abstract operation
287
+ // https://tc39.es/ecma262/#sec-getmethod
288
+ var getMethod$1 = function (V, P) {
289
+ var func = V[P];
290
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
291
+ };
292
+
293
+ var call$3 = functionCall;
294
+ var isCallable$5 = isCallable$a;
295
+ var isObject$3 = isObject$4;
296
+
297
+ var $TypeError$3 = TypeError;
298
+
299
+ // `OrdinaryToPrimitive` abstract operation
300
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
301
+ var ordinaryToPrimitive$1 = function (input, pref) {
302
+ var fn, val;
303
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
304
+ if (isCallable$5(fn = input.valueOf) && !isObject$3(val = call$3(fn, input))) return val;
305
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
306
+ throw new $TypeError$3("Can't convert object to primitive value");
307
+ };
308
+
309
+ var sharedStore = {exports: {}};
310
+
311
+ var globalThis$7 = globalThis_1;
312
+
313
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
314
+ var defineProperty$2 = Object.defineProperty;
315
+
316
+ var defineGlobalProperty$3 = function (key, value) {
317
+ try {
318
+ defineProperty$2(globalThis$7, key, { value: value, configurable: true, writable: true });
319
+ } catch (error) {
320
+ globalThis$7[key] = value;
321
+ } return value;
322
+ };
323
+
324
+ var globalThis$6 = globalThis_1;
325
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
326
+
327
+ var SHARED = '__core-js_shared__';
328
+ var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
329
+
330
+ (store$3.versions || (store$3.versions = [])).push({
331
+ version: '3.48.0',
332
+ mode: 'global',
333
+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
334
+ license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
335
+ source: 'https://github.com/zloirock/core-js'
336
+ });
337
+
338
+ var sharedStoreExports = sharedStore.exports;
339
+
340
+ var store$2 = sharedStoreExports;
341
+
342
+ var shared$3 = function (key, value) {
343
+ return store$2[key] || (store$2[key] = value || {});
344
+ };
345
+
346
+ var requireObjectCoercible = requireObjectCoercible$2;
347
+
348
+ var $Object = Object;
349
+
350
+ // `ToObject` abstract operation
351
+ // https://tc39.es/ecma262/#sec-toobject
352
+ var toObject$2 = function (argument) {
353
+ return $Object(requireObjectCoercible(argument));
354
+ };
355
+
356
+ var uncurryThis$6 = functionUncurryThis;
357
+ var toObject$1 = toObject$2;
358
+
359
+ var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
360
+
361
+ // `HasOwnProperty` abstract operation
362
+ // https://tc39.es/ecma262/#sec-hasownproperty
363
+ // eslint-disable-next-line es/no-object-hasown -- safe
364
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
365
+ return hasOwnProperty(toObject$1(it), key);
366
+ };
367
+
368
+ var uncurryThis$5 = functionUncurryThis;
369
+
370
+ var id = 0;
371
+ var postfix = Math.random();
372
+ var toString = uncurryThis$5(1.1.toString);
373
+
374
+ var uid$2 = function (key) {
375
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
376
+ };
377
+
378
+ var globalThis$5 = globalThis_1;
379
+ var shared$2 = shared$3;
380
+ var hasOwn$6 = hasOwnProperty_1;
381
+ var uid$1 = uid$2;
382
+ var NATIVE_SYMBOL = symbolConstructorDetection;
383
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
384
+
385
+ var Symbol$1 = globalThis$5.Symbol;
386
+ var WellKnownSymbolsStore = shared$2('wks');
387
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
388
+
389
+ var wellKnownSymbol$1 = function (name) {
390
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
391
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
392
+ ? Symbol$1[name]
393
+ : createWellKnownSymbol('Symbol.' + name);
394
+ } return WellKnownSymbolsStore[name];
395
+ };
396
+
397
+ var call$2 = functionCall;
398
+ var isObject$2 = isObject$4;
399
+ var isSymbol$1 = isSymbol$2;
400
+ var getMethod = getMethod$1;
401
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
402
+ var wellKnownSymbol = wellKnownSymbol$1;
403
+
404
+ var $TypeError$2 = TypeError;
405
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
406
+
407
+ // `ToPrimitive` abstract operation
408
+ // https://tc39.es/ecma262/#sec-toprimitive
409
+ var toPrimitive$1 = function (input, pref) {
410
+ if (!isObject$2(input) || isSymbol$1(input)) return input;
411
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
412
+ var result;
413
+ if (exoticToPrim) {
414
+ if (pref === undefined) pref = 'default';
415
+ result = call$2(exoticToPrim, input, pref);
416
+ if (!isObject$2(result) || isSymbol$1(result)) return result;
417
+ throw new $TypeError$2("Can't convert object to primitive value");
418
+ }
419
+ if (pref === undefined) pref = 'number';
420
+ return ordinaryToPrimitive(input, pref);
421
+ };
422
+
423
+ var toPrimitive = toPrimitive$1;
424
+ var isSymbol = isSymbol$2;
425
+
426
+ // `ToPropertyKey` abstract operation
427
+ // https://tc39.es/ecma262/#sec-topropertykey
428
+ var toPropertyKey$2 = function (argument) {
429
+ var key = toPrimitive(argument, 'string');
430
+ return isSymbol(key) ? key : key + '';
431
+ };
432
+
433
+ var globalThis$4 = globalThis_1;
434
+ var isObject$1 = isObject$4;
435
+
436
+ var document$1 = globalThis$4.document;
437
+ // typeof document.createElement is 'object' in old IE
438
+ var EXISTS$1 = isObject$1(document$1) && isObject$1(document$1.createElement);
439
+
440
+ var documentCreateElement = function (it) {
441
+ return EXISTS$1 ? document$1.createElement(it) : {};
442
+ };
443
+
444
+ var DESCRIPTORS$7 = descriptors;
445
+ var fails$4 = fails$9;
446
+ var createElement = documentCreateElement;
447
+
448
+ // Thanks to IE8 for its funny defineProperty
449
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
450
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
451
+ return Object.defineProperty(createElement('div'), 'a', {
452
+ get: function () { return 7; }
453
+ }).a !== 7;
454
+ });
455
+
456
+ var DESCRIPTORS$6 = descriptors;
457
+ var call$1 = functionCall;
458
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
459
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
460
+ var toIndexedObject$2 = toIndexedObject$3;
461
+ var toPropertyKey$1 = toPropertyKey$2;
462
+ var hasOwn$5 = hasOwnProperty_1;
463
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
464
+
465
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
466
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
467
+
468
+ // `Object.getOwnPropertyDescriptor` method
469
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
470
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
471
+ O = toIndexedObject$2(O);
472
+ P = toPropertyKey$1(P);
473
+ if (IE8_DOM_DEFINE$1) try {
474
+ return $getOwnPropertyDescriptor$1(O, P);
475
+ } catch (error) { /* empty */ }
476
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
477
+ };
478
+
479
+ var objectDefineProperty = {};
480
+
481
+ var DESCRIPTORS$5 = descriptors;
482
+ var fails$3 = fails$9;
483
+
484
+ // V8 ~ Chrome 36-
485
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
486
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
487
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
488
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
489
+ value: 42,
490
+ writable: false
491
+ }).prototype !== 42;
492
+ });
493
+
494
+ var isObject = isObject$4;
495
+
496
+ var $String$1 = String;
497
+ var $TypeError$1 = TypeError;
498
+
499
+ // `Assert: Type(argument) is Object`
500
+ var anObject$2 = function (argument) {
501
+ if (isObject(argument)) return argument;
502
+ throw new $TypeError$1($String$1(argument) + ' is not an object');
503
+ };
504
+
505
+ var DESCRIPTORS$4 = descriptors;
506
+ var IE8_DOM_DEFINE = ie8DomDefine;
507
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
508
+ var anObject$1 = anObject$2;
509
+ var toPropertyKey = toPropertyKey$2;
510
+
511
+ var $TypeError = TypeError;
512
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
513
+ var $defineProperty = Object.defineProperty;
514
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
515
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
516
+ var ENUMERABLE = 'enumerable';
517
+ var CONFIGURABLE$1 = 'configurable';
518
+ var WRITABLE = 'writable';
519
+
520
+ // `Object.defineProperty` method
521
+ // https://tc39.es/ecma262/#sec-object.defineproperty
522
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
523
+ anObject$1(O);
524
+ P = toPropertyKey(P);
525
+ anObject$1(Attributes);
526
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
527
+ var current = $getOwnPropertyDescriptor(O, P);
528
+ if (current && current[WRITABLE]) {
529
+ O[P] = Attributes.value;
530
+ Attributes = {
531
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
532
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
533
+ writable: false
534
+ };
535
+ }
536
+ } return $defineProperty(O, P, Attributes);
537
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
538
+ anObject$1(O);
539
+ P = toPropertyKey(P);
540
+ anObject$1(Attributes);
541
+ if (IE8_DOM_DEFINE) try {
542
+ return $defineProperty(O, P, Attributes);
543
+ } catch (error) { /* empty */ }
544
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
545
+ if ('value' in Attributes) O[P] = Attributes.value;
546
+ return O;
547
+ };
548
+
549
+ var DESCRIPTORS$3 = descriptors;
550
+ var definePropertyModule$2 = objectDefineProperty;
551
+ var createPropertyDescriptor = createPropertyDescriptor$2;
552
+
553
+ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
554
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
555
+ } : function (object, key, value) {
556
+ object[key] = value;
557
+ return object;
558
+ };
559
+
560
+ var makeBuiltIn$2 = {exports: {}};
561
+
562
+ var DESCRIPTORS$2 = descriptors;
563
+ var hasOwn$4 = hasOwnProperty_1;
564
+
565
+ var FunctionPrototype = Function.prototype;
566
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
567
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
568
+
569
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
570
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
571
+
572
+ var functionName = {
573
+ CONFIGURABLE: CONFIGURABLE
574
+ };
575
+
576
+ var uncurryThis$4 = functionUncurryThis;
577
+ var isCallable$4 = isCallable$a;
578
+ var store$1 = sharedStoreExports;
579
+
580
+ var functionToString = uncurryThis$4(Function.toString);
581
+
582
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
583
+ if (!isCallable$4(store$1.inspectSource)) {
584
+ store$1.inspectSource = function (it) {
585
+ return functionToString(it);
586
+ };
587
+ }
588
+
589
+ var inspectSource$1 = store$1.inspectSource;
590
+
591
+ var globalThis$3 = globalThis_1;
592
+ var isCallable$3 = isCallable$a;
593
+
594
+ var WeakMap$1 = globalThis$3.WeakMap;
595
+
596
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
597
+
598
+ var shared$1 = shared$3;
599
+ var uid = uid$2;
600
+
601
+ var keys = shared$1('keys');
602
+
603
+ var sharedKey$1 = function (key) {
604
+ return keys[key] || (keys[key] = uid(key));
605
+ };
606
+
607
+ var hiddenKeys$3 = {};
608
+
609
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
610
+ var globalThis$2 = globalThis_1;
611
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
612
+ var hasOwn$3 = hasOwnProperty_1;
613
+ var shared = sharedStoreExports;
614
+ var sharedKey = sharedKey$1;
615
+ var hiddenKeys$2 = hiddenKeys$3;
616
+
617
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
618
+ var TypeError$1 = globalThis$2.TypeError;
619
+ var WeakMap = globalThis$2.WeakMap;
620
+ var set, get, has;
621
+
622
+ var enforce = function (it) {
623
+ return has(it) ? get(it) : set(it, {});
624
+ };
625
+
626
+ if (NATIVE_WEAK_MAP || shared.state) {
627
+ var store = shared.state || (shared.state = new WeakMap());
628
+ /* eslint-disable no-self-assign -- prototype methods protection */
629
+ store.get = store.get;
630
+ store.has = store.has;
631
+ store.set = store.set;
632
+ /* eslint-enable no-self-assign -- prototype methods protection */
633
+ set = function (it, metadata) {
634
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
635
+ metadata.facade = it;
636
+ store.set(it, metadata);
637
+ return metadata;
638
+ };
639
+ get = function (it) {
640
+ return store.get(it) || {};
641
+ };
642
+ has = function (it) {
643
+ return store.has(it);
644
+ };
645
+ } else {
646
+ var STATE = sharedKey('state');
647
+ hiddenKeys$2[STATE] = true;
648
+ set = function (it, metadata) {
649
+ if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
650
+ metadata.facade = it;
651
+ createNonEnumerableProperty$1(it, STATE, metadata);
652
+ return metadata;
653
+ };
654
+ get = function (it) {
655
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
656
+ };
657
+ has = function (it) {
658
+ return hasOwn$3(it, STATE);
659
+ };
660
+ }
661
+
662
+ var internalState = {
663
+ get: get,
664
+ enforce: enforce};
665
+
666
+ var uncurryThis$3 = functionUncurryThis;
667
+ var fails$2 = fails$9;
668
+ var isCallable$2 = isCallable$a;
669
+ var hasOwn$2 = hasOwnProperty_1;
670
+ var DESCRIPTORS$1 = descriptors;
671
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
672
+ var inspectSource = inspectSource$1;
673
+ var InternalStateModule = internalState;
674
+
675
+ var enforceInternalState = InternalStateModule.enforce;
676
+ var getInternalState = InternalStateModule.get;
677
+ var $String = String;
678
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
679
+ var defineProperty$1 = Object.defineProperty;
680
+ var stringSlice = uncurryThis$3(''.slice);
681
+ var replace = uncurryThis$3(''.replace);
682
+ var join = uncurryThis$3([].join);
683
+
684
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
685
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
686
+ });
687
+
688
+ var TEMPLATE = String(String).split('String');
689
+
690
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
691
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
692
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
693
+ }
694
+ if (options && options.getter) name = 'get ' + name;
695
+ if (options && options.setter) name = 'set ' + name;
696
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
697
+ if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
698
+ else value.name = name;
699
+ }
700
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
701
+ defineProperty$1(value, 'length', { value: options.arity });
702
+ }
703
+ try {
704
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
705
+ if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
706
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
707
+ } else if (value.prototype) value.prototype = undefined;
708
+ } catch (error) { /* empty */ }
709
+ var state = enforceInternalState(value);
710
+ if (!hasOwn$2(state, 'source')) {
711
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
712
+ } return value;
713
+ };
714
+
715
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
716
+ // eslint-disable-next-line no-extend-native -- required
717
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
718
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
719
+ }, 'toString');
720
+
721
+ var makeBuiltInExports = makeBuiltIn$2.exports;
722
+
723
+ var isCallable$1 = isCallable$a;
724
+ var definePropertyModule$1 = objectDefineProperty;
725
+ var makeBuiltIn = makeBuiltInExports;
726
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
727
+
728
+ var defineBuiltIn$1 = function (O, key, value, options) {
729
+ if (!options) options = {};
730
+ var simple = options.enumerable;
731
+ var name = options.name !== undefined ? options.name : key;
732
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
733
+ if (options.global) {
734
+ if (simple) O[key] = value;
735
+ else defineGlobalProperty$1(key, value);
736
+ } else {
737
+ try {
738
+ if (!options.unsafe) delete O[key];
739
+ else if (O[key]) simple = true;
740
+ } catch (error) { /* empty */ }
741
+ if (simple) O[key] = value;
742
+ else definePropertyModule$1.f(O, key, {
743
+ value: value,
744
+ enumerable: false,
745
+ configurable: !options.nonConfigurable,
746
+ writable: !options.nonWritable
747
+ });
748
+ } return O;
749
+ };
750
+
751
+ var objectGetOwnPropertyNames = {};
752
+
753
+ var ceil = Math.ceil;
754
+ var floor = Math.floor;
755
+
756
+ // `Math.trunc` method
757
+ // https://tc39.es/ecma262/#sec-math.trunc
758
+ // eslint-disable-next-line es/no-math-trunc -- safe
759
+ var mathTrunc = Math.trunc || function trunc(x) {
760
+ var n = +x;
761
+ return (n > 0 ? floor : ceil)(n);
762
+ };
763
+
764
+ var trunc = mathTrunc;
765
+
766
+ // `ToIntegerOrInfinity` abstract operation
767
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
768
+ var toIntegerOrInfinity$2 = function (argument) {
769
+ var number = +argument;
770
+ // eslint-disable-next-line no-self-compare -- NaN check
771
+ return number !== number || number === 0 ? 0 : trunc(number);
772
+ };
773
+
774
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
775
+
776
+ var max = Math.max;
777
+ var min$1 = Math.min;
778
+
779
+ // Helper for a popular repeating case of the spec:
780
+ // Let integer be ? ToInteger(index).
781
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
782
+ var toAbsoluteIndex$1 = function (index, length) {
783
+ var integer = toIntegerOrInfinity$1(index);
784
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
785
+ };
786
+
787
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
788
+
789
+ var min = Math.min;
790
+
791
+ // `ToLength` abstract operation
792
+ // https://tc39.es/ecma262/#sec-tolength
793
+ var toLength$1 = function (argument) {
794
+ var len = toIntegerOrInfinity(argument);
795
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
796
+ };
797
+
798
+ var toLength = toLength$1;
799
+
800
+ // `LengthOfArrayLike` abstract operation
801
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
802
+ var lengthOfArrayLike$1 = function (obj) {
803
+ return toLength(obj.length);
804
+ };
805
+
806
+ var toIndexedObject$1 = toIndexedObject$3;
807
+ var toAbsoluteIndex = toAbsoluteIndex$1;
808
+ var lengthOfArrayLike = lengthOfArrayLike$1;
809
+
810
+ // `Array.prototype.{ indexOf, includes }` methods implementation
811
+ var createMethod = function (IS_INCLUDES) {
812
+ return function ($this, el, fromIndex) {
813
+ var O = toIndexedObject$1($this);
814
+ var length = lengthOfArrayLike(O);
815
+ if (length === 0) return !IS_INCLUDES && -1;
816
+ var index = toAbsoluteIndex(fromIndex, length);
817
+ var value;
818
+ // Array#includes uses SameValueZero equality algorithm
819
+ // eslint-disable-next-line no-self-compare -- NaN check
820
+ if (IS_INCLUDES && el !== el) while (length > index) {
821
+ value = O[index++];
822
+ // eslint-disable-next-line no-self-compare -- NaN check
823
+ if (value !== value) return true;
824
+ // Array#indexOf ignores holes, Array#includes - not
825
+ } else for (;length > index; index++) {
826
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
827
+ } return !IS_INCLUDES && -1;
828
+ };
829
+ };
830
+
831
+ var arrayIncludes = {
832
+ // `Array.prototype.indexOf` method
833
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
834
+ indexOf: createMethod(false)
835
+ };
836
+
837
+ var uncurryThis$2 = functionUncurryThis;
838
+ var hasOwn$1 = hasOwnProperty_1;
839
+ var toIndexedObject = toIndexedObject$3;
840
+ var indexOf = arrayIncludes.indexOf;
841
+ var hiddenKeys$1 = hiddenKeys$3;
842
+
843
+ var push = uncurryThis$2([].push);
844
+
845
+ var objectKeysInternal = function (object, names) {
846
+ var O = toIndexedObject(object);
847
+ var i = 0;
848
+ var result = [];
849
+ var key;
850
+ for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
851
+ // Don't enum bug & hidden keys
852
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
853
+ ~indexOf(result, key) || push(result, key);
854
+ }
855
+ return result;
856
+ };
857
+
858
+ // IE8- don't enum bug keys
859
+ var enumBugKeys$2 = [
860
+ 'constructor',
861
+ 'hasOwnProperty',
862
+ 'isPrototypeOf',
863
+ 'propertyIsEnumerable',
864
+ 'toLocaleString',
865
+ 'toString',
866
+ 'valueOf'
867
+ ];
868
+
869
+ var internalObjectKeys$1 = objectKeysInternal;
870
+ var enumBugKeys$1 = enumBugKeys$2;
871
+
872
+ var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
873
+
874
+ // `Object.getOwnPropertyNames` method
875
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
876
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
877
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
878
+ return internalObjectKeys$1(O, hiddenKeys);
879
+ };
880
+
881
+ var objectGetOwnPropertySymbols = {};
882
+
883
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
884
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
885
+
886
+ var getBuiltIn = getBuiltIn$2;
887
+ var uncurryThis$1 = functionUncurryThis;
888
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
889
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
890
+ var anObject = anObject$2;
891
+
892
+ var concat$1 = uncurryThis$1([].concat);
893
+
894
+ // all object keys, includes non-enumerable and symbols
895
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
896
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
897
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
898
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
899
+ };
900
+
901
+ var hasOwn = hasOwnProperty_1;
902
+ var ownKeys = ownKeys$1;
903
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
904
+ var definePropertyModule = objectDefineProperty;
905
+
906
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
907
+ var keys = ownKeys(source);
908
+ var defineProperty = definePropertyModule.f;
909
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
910
+ for (var i = 0; i < keys.length; i++) {
911
+ var key = keys[i];
912
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
913
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
914
+ }
915
+ }
916
+ };
917
+
918
+ var fails$1 = fails$9;
919
+ var isCallable = isCallable$a;
920
+
921
+ var replacement = /#|\.prototype\./;
922
+
923
+ var isForced$1 = function (feature, detection) {
924
+ var value = data[normalize(feature)];
925
+ return value === POLYFILL ? true
926
+ : value === NATIVE ? false
927
+ : isCallable(detection) ? fails$1(detection)
928
+ : !!detection;
929
+ };
930
+
931
+ var normalize = isForced$1.normalize = function (string) {
932
+ return String(string).replace(replacement, '.').toLowerCase();
933
+ };
934
+
935
+ var data = isForced$1.data = {};
936
+ var NATIVE = isForced$1.NATIVE = 'N';
937
+ var POLYFILL = isForced$1.POLYFILL = 'P';
938
+
939
+ var isForced_1 = isForced$1;
940
+
941
+ var globalThis$1 = globalThis_1;
942
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
943
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
944
+ var defineBuiltIn = defineBuiltIn$1;
945
+ var defineGlobalProperty = defineGlobalProperty$3;
946
+ var copyConstructorProperties = copyConstructorProperties$1;
947
+ var isForced = isForced_1;
948
+
949
+ /*
950
+ options.target - name of the target object
951
+ options.global - target is the global object
952
+ options.stat - export as static methods of target
953
+ options.proto - export as prototype methods of target
954
+ options.real - real prototype method for the `pure` version
955
+ options.forced - export even if the native feature is available
956
+ options.bind - bind methods to the target, required for the `pure` version
957
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
958
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
959
+ options.sham - add a flag to not completely full polyfills
960
+ options.enumerable - export as enumerable property
961
+ options.dontCallGetSet - prevent calling a getter on target
962
+ options.name - the .name of the function if it does not match the key
963
+ */
964
+ var _export = function (options, source) {
965
+ var TARGET = options.target;
966
+ var GLOBAL = options.global;
967
+ var STATIC = options.stat;
968
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
969
+ if (GLOBAL) {
970
+ target = globalThis$1;
971
+ } else if (STATIC) {
972
+ target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
973
+ } else {
974
+ target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
975
+ }
976
+ if (target) for (key in source) {
977
+ sourceProperty = source[key];
978
+ if (options.dontCallGetSet) {
979
+ descriptor = getOwnPropertyDescriptor(target, key);
980
+ targetProperty = descriptor && descriptor.value;
981
+ } else targetProperty = target[key];
982
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
983
+ // contained in target
984
+ if (!FORCED && targetProperty !== undefined) {
985
+ if (typeof sourceProperty == typeof targetProperty) continue;
986
+ copyConstructorProperties(sourceProperty, targetProperty);
987
+ }
988
+ // add a flag to not completely full polyfills
989
+ if (options.sham || (targetProperty && targetProperty.sham)) {
990
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
991
+ }
992
+ defineBuiltIn(target, key, sourceProperty, options);
993
+ }
994
+ };
995
+
996
+ var internalObjectKeys = objectKeysInternal;
997
+ var enumBugKeys = enumBugKeys$2;
998
+
999
+ // `Object.keys` method
1000
+ // https://tc39.es/ecma262/#sec-object.keys
1001
+ // eslint-disable-next-line es/no-object-keys -- safe
1002
+ var objectKeys$1 = Object.keys || function keys(O) {
1003
+ return internalObjectKeys(O, enumBugKeys);
1004
+ };
1005
+
1006
+ var DESCRIPTORS = descriptors;
1007
+ var uncurryThis = functionUncurryThis;
1008
+ var call = functionCall;
1009
+ var fails = fails$9;
1010
+ var objectKeys = objectKeys$1;
1011
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1012
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1013
+ var toObject = toObject$2;
1014
+ var IndexedObject = indexedObject;
1015
+
1016
+ // eslint-disable-next-line es/no-object-assign -- safe
1017
+ var $assign = Object.assign;
1018
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1019
+ var defineProperty = Object.defineProperty;
1020
+ var concat = uncurryThis([].concat);
1021
+
1022
+ // `Object.assign` method
1023
+ // https://tc39.es/ecma262/#sec-object.assign
1024
+ var objectAssign = !$assign || fails(function () {
1025
+ // should have correct order of operations (Edge bug)
1026
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1027
+ enumerable: true,
1028
+ get: function () {
1029
+ defineProperty(this, 'b', {
1030
+ value: 3,
1031
+ enumerable: false
1032
+ });
1033
+ }
1034
+ }), { b: 2 })).b !== 1) return true;
1035
+ // should work with symbols and should have deterministic property order (V8 bug)
1036
+ var A = {};
1037
+ var B = {};
1038
+ // eslint-disable-next-line es/no-symbol -- safe
1039
+ var symbol = Symbol('assign detection');
1040
+ var alphabet = 'abcdefghijklmnopqrst';
1041
+ A[symbol] = 7;
1042
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1043
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1044
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
1045
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1046
+ var T = toObject(target);
1047
+ var argumentsLength = arguments.length;
1048
+ var index = 1;
1049
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1050
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
1051
+ while (argumentsLength > index) {
1052
+ var S = IndexedObject(arguments[index++]);
1053
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1054
+ var length = keys.length;
1055
+ var j = 0;
1056
+ var key;
1057
+ while (length > j) {
1058
+ key = keys[j++];
1059
+ if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1060
+ }
1061
+ } return T;
1062
+ } : $assign;
1063
+
1064
+ var $ = _export;
1065
+ var assign = objectAssign;
1066
+
1067
+ // `Object.assign` method
1068
+ // https://tc39.es/ecma262/#sec-object.assign
1069
+ // eslint-disable-next-line es/no-object-assign -- required for testing
1070
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1071
+ assign: assign
1072
+ });
1073
+
1074
+ /******************************************************************************
1075
+ Copyright (c) Microsoft Corporation.
1076
+
1077
+ Permission to use, copy, modify, and/or distribute this software for any
1078
+ purpose with or without fee is hereby granted.
1079
+
1080
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
1081
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1082
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
1083
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1084
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
1085
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1086
+ PERFORMANCE OF THIS SOFTWARE.
1087
+ ***************************************************************************** */
1088
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
1089
+
1090
+
1091
+ function __rest(s, e) {
1092
+ var t = {};
1093
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1094
+ t[p] = s[p];
1095
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
1096
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1097
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1098
+ t[p[i]] = s[p[i]];
1099
+ }
1100
+ return t;
1101
+ }
1102
+
1103
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
1104
+ var e = new Error(message);
1105
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
1106
+ };
1107
+
1108
+ var classnames = {exports: {}};
1109
+
1110
+ /*!
1111
+ Copyright (c) 2018 Jed Watson.
1112
+ Licensed under the MIT License (MIT), see
1113
+ http://jedwatson.github.io/classnames
1114
+ */
1115
+
1116
+ (function (module) {
1117
+ /* global define */
1118
+
1119
+ (function () {
1120
+
1121
+ var hasOwn = {}.hasOwnProperty;
1122
+
1123
+ function classNames () {
1124
+ var classes = '';
1125
+
1126
+ for (var i = 0; i < arguments.length; i++) {
1127
+ var arg = arguments[i];
1128
+ if (arg) {
1129
+ classes = appendClass(classes, parseValue(arg));
1130
+ }
1131
+ }
1132
+
1133
+ return classes;
1134
+ }
1135
+
1136
+ function parseValue (arg) {
1137
+ if (typeof arg === 'string' || typeof arg === 'number') {
1138
+ return arg;
1139
+ }
1140
+
1141
+ if (typeof arg !== 'object') {
1142
+ return '';
1143
+ }
1144
+
1145
+ if (Array.isArray(arg)) {
1146
+ return classNames.apply(null, arg);
1147
+ }
1148
+
1149
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
1150
+ return arg.toString();
1151
+ }
1152
+
1153
+ var classes = '';
1154
+
1155
+ for (var key in arg) {
1156
+ if (hasOwn.call(arg, key) && arg[key]) {
1157
+ classes = appendClass(classes, key);
1158
+ }
1159
+ }
1160
+
1161
+ return classes;
1162
+ }
1163
+
1164
+ function appendClass (value, newClass) {
1165
+ if (!newClass) {
1166
+ return value;
1167
+ }
1168
+
1169
+ if (value) {
1170
+ return value + ' ' + newClass;
1171
+ }
1172
+
1173
+ return value + newClass;
1174
+ }
1175
+
1176
+ if (module.exports) {
1177
+ classNames.default = classNames;
1178
+ module.exports = classNames;
1179
+ } else {
1180
+ window.classNames = classNames;
1181
+ }
1182
+ }());
1183
+ } (classnames));
1184
+
1185
+ var classnamesExports = classnames.exports;
1186
+ var classNames = /*@__PURE__*/getDefaultExportFromCjs(classnamesExports);
1187
+
1188
+ const SidePanel = /*#__PURE__*/react.forwardRef((_a, ref) => {
1189
+ var {
1190
+ id = 'side-panel-id',
1191
+ dataTestId = 'side-panel-data-testid',
1192
+ isOpen,
1193
+ closeOnBackdropClick = true,
1194
+ align,
1195
+ onClose,
1196
+ children
1197
+ } = _a,
1198
+ props = __rest(_a, ["id", "dataTestId", "isOpen", "closeOnBackdropClick", "align", "onClose", "children"]);
1199
+ return jsxRuntime.jsx(obAtomsBackdrop.Backdrop, {
1200
+ ref: ref,
1201
+ id: `${id}-backdrop`,
1202
+ dataTestId: `${dataTestId}-backdrop`,
1203
+ className: classNames({
1204
+ 'justify-end': align === 'right',
1205
+ 'hidden animate-[sp-fade-out_350ms_ease-in-out_forwards]': !isOpen,
1206
+ 'animate-[sp-fade-in_350ms_ease-in-out_forwards]': isOpen,
1207
+ 'pointer-events-none': !isOpen
1208
+ }),
1209
+ onClick: closeOnBackdropClick ? onClose : undefined,
1210
+ children: jsxRuntime.jsx("div", {
1211
+ className: "w-full h-screen max-w-screen md:max-w-1/3 flex",
1212
+ children: jsxRuntime.jsxs("div", {
1213
+ "data-testid": dataTestId,
1214
+ className: classNames('ob-sp-container', {
1215
+ 'md:border-l-1': align === 'right',
1216
+ 'md:border-r-1': align === 'left',
1217
+ 'animate-[sp-close_350ms_ease-in-out_forwards]': !isOpen && align === 'left',
1218
+ 'animate-[sp-open_350ms_ease-in-out_forwards]': isOpen && align === 'left',
1219
+ 'animate-[sp-close-right_350ms_ease-in-out_forwards]': !isOpen && align === 'right',
1220
+ 'animate-[sp-open-right_350ms_ease-in-out_forwards]': isOpen && align === 'right'
1221
+ }),
1222
+ children: [jsxRuntime.jsx("div", {
1223
+ className: classNames('flex mb-(--side-panel-mobile-countainer-gap) md:mb-(--side-panel-desktop-countainer-gap)', {
1224
+ 'justify-end': align === 'left'
1225
+ }),
1226
+ children: jsxRuntime.jsx(obAtomsButton.Button, Object.assign({
1227
+ iconLeft: "close",
1228
+ size: "md",
1229
+ variant: "ghost",
1230
+ onClick: onClose,
1231
+ dataTestId: `${dataTestId}-close`
1232
+ }, uiUtils.applyDataAttributes(props, 'close')))
1233
+ }), children]
1234
+ })
1235
+ })
1236
+ });
1237
+ });
1238
+
1239
+ exports.SidePanel = SidePanel;