@rotki/ui-library 2.2.0 → 2.3.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.
@@ -0,0 +1,1770 @@
1
+ import { g as de } from "./index-ubVTzSrC.js";
2
+ const Ce = /\d/, De = ["-", "_", "/", "."];
3
+ function Ee(t = "") {
4
+ if (!Ce.test(t))
5
+ return t !== t.toLowerCase();
6
+ }
7
+ function Pe(t, e) {
8
+ const r = De, n = [];
9
+ if (!t || typeof t != "string")
10
+ return n;
11
+ let a = "", i, f;
12
+ for (const s of t) {
13
+ const o = r.includes(s);
14
+ if (o === !0) {
15
+ n.push(a), a = "", i = void 0;
16
+ continue;
17
+ }
18
+ const l = Ee(s);
19
+ if (f === !1) {
20
+ if (i === !1 && l === !0) {
21
+ n.push(a), a = s, i = l;
22
+ continue;
23
+ }
24
+ if (i === !0 && l === !1 && a.length > 1) {
25
+ const c = a.at(-1);
26
+ n.push(a.slice(0, Math.max(0, a.length - 1))), a = c + s, i = l;
27
+ continue;
28
+ }
29
+ }
30
+ a += s, i = l, f = o;
31
+ }
32
+ return n.push(a), n;
33
+ }
34
+ function Be(t) {
35
+ return t ? t[0].toUpperCase() + t.slice(1) : "";
36
+ }
37
+ function Fe(t) {
38
+ return t ? t[0].toLowerCase() + t.slice(1) : "";
39
+ }
40
+ function Le(t, e) {
41
+ return t ? (Array.isArray(t) ? t : Pe(t)).map((r) => Be(r)).join("") : "";
42
+ }
43
+ function dn(t, e) {
44
+ return Fe(Le(t || ""));
45
+ }
46
+ var D = "top", N = "bottom", U = "right", E = "left", Bt = "auto", dt = [D, N, U, E], nt = "start", pt = "end", je = "clippingParents", ve = "viewport", ut = "popper", ze = "reference", Qt = /* @__PURE__ */ dt.reduce(function(t, e) {
47
+ return t.concat([e + "-" + nt, e + "-" + pt]);
48
+ }, []), ge = /* @__PURE__ */ [].concat(dt, [Bt]).reduce(function(t, e) {
49
+ return t.concat([e, e + "-" + nt, e + "-" + pt]);
50
+ }, []), Ne = "beforeRead", Ue = "read", Ie = "afterRead", We = "beforeMain", Ve = "main", Ye = "afterMain", qe = "beforeWrite", Xe = "write", Ge = "afterWrite", Ze = [Ne, Ue, Ie, We, Ve, Ye, qe, Xe, Ge];
51
+ function I(t) {
52
+ return t.split("-")[0];
53
+ }
54
+ function P(t) {
55
+ if (t == null)
56
+ return window;
57
+ if (t.toString() !== "[object Window]") {
58
+ var e = t.ownerDocument;
59
+ return e && e.defaultView || window;
60
+ }
61
+ return t;
62
+ }
63
+ function et(t) {
64
+ var e = P(t).Element;
65
+ return t instanceof e || t instanceof Element;
66
+ }
67
+ function B(t) {
68
+ var e = P(t).HTMLElement;
69
+ return t instanceof e || t instanceof HTMLElement;
70
+ }
71
+ function Ft(t) {
72
+ if (typeof ShadowRoot > "u")
73
+ return !1;
74
+ var e = P(t).ShadowRoot;
75
+ return t instanceof e || t instanceof ShadowRoot;
76
+ }
77
+ var tt = Math.max, _t = Math.min, at = Math.round;
78
+ function Dt() {
79
+ var t = navigator.userAgentData;
80
+ return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
81
+ return e.brand + "/" + e.version;
82
+ }).join(" ") : navigator.userAgent;
83
+ }
84
+ function me() {
85
+ return !/^((?!chrome|android).)*safari/i.test(Dt());
86
+ }
87
+ function it(t, e, r) {
88
+ e === void 0 && (e = !1), r === void 0 && (r = !1);
89
+ var n = t.getBoundingClientRect(), a = 1, i = 1;
90
+ e && B(t) && (a = t.offsetWidth > 0 && at(n.width) / t.offsetWidth || 1, i = t.offsetHeight > 0 && at(n.height) / t.offsetHeight || 1);
91
+ var f = et(t) ? P(t) : window, s = f.visualViewport, o = !me() && r, l = (n.left + (o && s ? s.offsetLeft : 0)) / a, c = (n.top + (o && s ? s.offsetTop : 0)) / i, b = n.width / a, g = n.height / i;
92
+ return {
93
+ width: b,
94
+ height: g,
95
+ top: c,
96
+ right: l + b,
97
+ bottom: c + g,
98
+ left: l,
99
+ x: l,
100
+ y: c
101
+ };
102
+ }
103
+ function Lt(t) {
104
+ var e = it(t), r = t.offsetWidth, n = t.offsetHeight;
105
+ return Math.abs(e.width - r) <= 1 && (r = e.width), Math.abs(e.height - n) <= 1 && (n = e.height), {
106
+ x: t.offsetLeft,
107
+ y: t.offsetTop,
108
+ width: r,
109
+ height: n
110
+ };
111
+ }
112
+ function be(t, e) {
113
+ var r = e.getRootNode && e.getRootNode();
114
+ if (t.contains(e))
115
+ return !0;
116
+ if (r && Ft(r)) {
117
+ var n = e;
118
+ do {
119
+ if (n && t.isSameNode(n))
120
+ return !0;
121
+ n = n.parentNode || n.host;
122
+ } while (n);
123
+ }
124
+ return !1;
125
+ }
126
+ function W(t) {
127
+ return t ? (t.nodeName || "").toLowerCase() : null;
128
+ }
129
+ function Y(t) {
130
+ return P(t).getComputedStyle(t);
131
+ }
132
+ function Je(t) {
133
+ return ["table", "td", "th"].indexOf(W(t)) >= 0;
134
+ }
135
+ function X(t) {
136
+ return ((et(t) ? t.ownerDocument : (
137
+ // $FlowFixMe[prop-missing]
138
+ t.document
139
+ )) || window.document).documentElement;
140
+ }
141
+ function $t(t) {
142
+ return W(t) === "html" ? t : (
143
+ // this is a quicker (but less type safe) way to save quite some bytes from the bundle
144
+ // $FlowFixMe[incompatible-return]
145
+ // $FlowFixMe[prop-missing]
146
+ t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
147
+ t.parentNode || // DOM Element detected
148
+ (Ft(t) ? t.host : null) || // ShadowRoot detected
149
+ // $FlowFixMe[incompatible-call]: HTMLElement is a Node
150
+ X(t)
151
+ );
152
+ }
153
+ function te(t) {
154
+ return !B(t) || // https://github.com/popperjs/popper-core/issues/837
155
+ Y(t).position === "fixed" ? null : t.offsetParent;
156
+ }
157
+ function Ke(t) {
158
+ var e = /firefox/i.test(Dt()), r = /Trident/i.test(Dt());
159
+ if (r && B(t)) {
160
+ var n = Y(t);
161
+ if (n.position === "fixed")
162
+ return null;
163
+ }
164
+ var a = $t(t);
165
+ for (Ft(a) && (a = a.host); B(a) && ["html", "body"].indexOf(W(a)) < 0; ) {
166
+ var i = Y(a);
167
+ if (i.transform !== "none" || i.perspective !== "none" || i.contain === "paint" || ["transform", "perspective"].indexOf(i.willChange) !== -1 || e && i.willChange === "filter" || e && i.filter && i.filter !== "none")
168
+ return a;
169
+ a = a.parentNode;
170
+ }
171
+ return null;
172
+ }
173
+ function vt(t) {
174
+ for (var e = P(t), r = te(t); r && Je(r) && Y(r).position === "static"; )
175
+ r = te(r);
176
+ return r && (W(r) === "html" || W(r) === "body" && Y(r).position === "static") ? e : r || Ke(t) || e;
177
+ }
178
+ function jt(t) {
179
+ return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
180
+ }
181
+ function lt(t, e, r) {
182
+ return tt(t, _t(e, r));
183
+ }
184
+ function Qe(t, e, r) {
185
+ var n = lt(t, e, r);
186
+ return n > r ? r : n;
187
+ }
188
+ function ye() {
189
+ return {
190
+ top: 0,
191
+ right: 0,
192
+ bottom: 0,
193
+ left: 0
194
+ };
195
+ }
196
+ function xe(t) {
197
+ return Object.assign({}, ye(), t);
198
+ }
199
+ function we(t, e) {
200
+ return e.reduce(function(r, n) {
201
+ return r[n] = t, r;
202
+ }, {});
203
+ }
204
+ var tr = function(e, r) {
205
+ return e = typeof e == "function" ? e(Object.assign({}, r.rects, {
206
+ placement: r.placement
207
+ })) : e, xe(typeof e != "number" ? e : we(e, dt));
208
+ };
209
+ function er(t) {
210
+ var e, r = t.state, n = t.name, a = t.options, i = r.elements.arrow, f = r.modifiersData.popperOffsets, s = I(r.placement), o = jt(s), l = [E, U].indexOf(s) >= 0, c = l ? "height" : "width";
211
+ if (!(!i || !f)) {
212
+ var b = tr(a.padding, r), g = Lt(i), p = o === "y" ? D : E, v = o === "y" ? N : U, u = r.rects.reference[c] + r.rects.reference[o] - f[o] - r.rects.popper[c], h = f[o] - r.rects.reference[o], x = vt(i), O = x ? o === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, w = u / 2 - h / 2, m = b[p], y = O - g[c] - b[v], A = O / 2 - g[c] / 2 + w, M = lt(m, A, y), $ = o;
213
+ r.modifiersData[n] = (e = {}, e[$] = M, e.centerOffset = M - A, e);
214
+ }
215
+ }
216
+ function rr(t) {
217
+ var e = t.state, r = t.options, n = r.element, a = n === void 0 ? "[data-popper-arrow]" : n;
218
+ a != null && (typeof a == "string" && (a = e.elements.popper.querySelector(a), !a) || be(e.elements.popper, a) && (e.elements.arrow = a));
219
+ }
220
+ const vn = {
221
+ name: "arrow",
222
+ enabled: !0,
223
+ phase: "main",
224
+ fn: er,
225
+ effect: rr,
226
+ requires: ["popperOffsets"],
227
+ requiresIfExists: ["preventOverflow"]
228
+ };
229
+ function ot(t) {
230
+ return t.split("-")[1];
231
+ }
232
+ var nr = {
233
+ top: "auto",
234
+ right: "auto",
235
+ bottom: "auto",
236
+ left: "auto"
237
+ };
238
+ function ar(t, e) {
239
+ var r = t.x, n = t.y, a = e.devicePixelRatio || 1;
240
+ return {
241
+ x: at(r * a) / a || 0,
242
+ y: at(n * a) / a || 0
243
+ };
244
+ }
245
+ function ee(t) {
246
+ var e, r = t.popper, n = t.popperRect, a = t.placement, i = t.variation, f = t.offsets, s = t.position, o = t.gpuAcceleration, l = t.adaptive, c = t.roundOffsets, b = t.isFixed, g = f.x, p = g === void 0 ? 0 : g, v = f.y, u = v === void 0 ? 0 : v, h = typeof c == "function" ? c({
247
+ x: p,
248
+ y: u
249
+ }) : {
250
+ x: p,
251
+ y: u
252
+ };
253
+ p = h.x, u = h.y;
254
+ var x = f.hasOwnProperty("x"), O = f.hasOwnProperty("y"), w = E, m = D, y = window;
255
+ if (l) {
256
+ var A = vt(r), M = "clientHeight", $ = "clientWidth";
257
+ if (A === P(r) && (A = X(r), Y(A).position !== "static" && s === "absolute" && (M = "scrollHeight", $ = "scrollWidth")), A = A, a === D || (a === E || a === U) && i === pt) {
258
+ m = N;
259
+ var _ = b && A === y && y.visualViewport ? y.visualViewport.height : (
260
+ // $FlowFixMe[prop-missing]
261
+ A[M]
262
+ );
263
+ u -= _ - n.height, u *= o ? 1 : -1;
264
+ }
265
+ if (a === E || (a === D || a === N) && i === pt) {
266
+ w = U;
267
+ var S = b && A === y && y.visualViewport ? y.visualViewport.width : (
268
+ // $FlowFixMe[prop-missing]
269
+ A[$]
270
+ );
271
+ p -= S - n.width, p *= o ? 1 : -1;
272
+ }
273
+ }
274
+ var R = Object.assign({
275
+ position: s
276
+ }, l && nr), F = c === !0 ? ar({
277
+ x: p,
278
+ y: u
279
+ }, P(r)) : {
280
+ x: p,
281
+ y: u
282
+ };
283
+ if (p = F.x, u = F.y, o) {
284
+ var T;
285
+ return Object.assign({}, R, (T = {}, T[m] = O ? "0" : "", T[w] = x ? "0" : "", T.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + u + "px)" : "translate3d(" + p + "px, " + u + "px, 0)", T));
286
+ }
287
+ return Object.assign({}, R, (e = {}, e[m] = O ? u + "px" : "", e[w] = x ? p + "px" : "", e.transform = "", e));
288
+ }
289
+ function ir(t) {
290
+ var e = t.state, r = t.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, f = i === void 0 ? !0 : i, s = r.roundOffsets, o = s === void 0 ? !0 : s, l = {
291
+ placement: I(e.placement),
292
+ variation: ot(e.placement),
293
+ popper: e.elements.popper,
294
+ popperRect: e.rects.popper,
295
+ gpuAcceleration: a,
296
+ isFixed: e.options.strategy === "fixed"
297
+ };
298
+ e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, ee(Object.assign({}, l, {
299
+ offsets: e.modifiersData.popperOffsets,
300
+ position: e.options.strategy,
301
+ adaptive: f,
302
+ roundOffsets: o
303
+ })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, ee(Object.assign({}, l, {
304
+ offsets: e.modifiersData.arrow,
305
+ position: "absolute",
306
+ adaptive: !1,
307
+ roundOffsets: o
308
+ })))), e.attributes.popper = Object.assign({}, e.attributes.popper, {
309
+ "data-popper-placement": e.placement
310
+ });
311
+ }
312
+ const or = {
313
+ name: "computeStyles",
314
+ enabled: !0,
315
+ phase: "beforeWrite",
316
+ fn: ir,
317
+ data: {}
318
+ };
319
+ var wt = {
320
+ passive: !0
321
+ };
322
+ function sr(t) {
323
+ var e = t.state, r = t.instance, n = t.options, a = n.scroll, i = a === void 0 ? !0 : a, f = n.resize, s = f === void 0 ? !0 : f, o = P(e.elements.popper), l = [].concat(e.scrollParents.reference, e.scrollParents.popper);
324
+ return i && l.forEach(function(c) {
325
+ c.addEventListener("scroll", r.update, wt);
326
+ }), s && o.addEventListener("resize", r.update, wt), function() {
327
+ i && l.forEach(function(c) {
328
+ c.removeEventListener("scroll", r.update, wt);
329
+ }), s && o.removeEventListener("resize", r.update, wt);
330
+ };
331
+ }
332
+ const fr = {
333
+ name: "eventListeners",
334
+ enabled: !0,
335
+ phase: "write",
336
+ fn: function() {
337
+ },
338
+ effect: sr,
339
+ data: {}
340
+ };
341
+ var ur = {
342
+ left: "right",
343
+ right: "left",
344
+ bottom: "top",
345
+ top: "bottom"
346
+ };
347
+ function Ot(t) {
348
+ return t.replace(/left|right|bottom|top/g, function(e) {
349
+ return ur[e];
350
+ });
351
+ }
352
+ var cr = {
353
+ start: "end",
354
+ end: "start"
355
+ };
356
+ function re(t) {
357
+ return t.replace(/start|end/g, function(e) {
358
+ return cr[e];
359
+ });
360
+ }
361
+ function zt(t) {
362
+ var e = P(t), r = e.pageXOffset, n = e.pageYOffset;
363
+ return {
364
+ scrollLeft: r,
365
+ scrollTop: n
366
+ };
367
+ }
368
+ function Nt(t) {
369
+ return it(X(t)).left + zt(t).scrollLeft;
370
+ }
371
+ function lr(t, e) {
372
+ var r = P(t), n = X(t), a = r.visualViewport, i = n.clientWidth, f = n.clientHeight, s = 0, o = 0;
373
+ if (a) {
374
+ i = a.width, f = a.height;
375
+ var l = me();
376
+ (l || !l && e === "fixed") && (s = a.offsetLeft, o = a.offsetTop);
377
+ }
378
+ return {
379
+ width: i,
380
+ height: f,
381
+ x: s + Nt(t),
382
+ y: o
383
+ };
384
+ }
385
+ function hr(t) {
386
+ var e, r = X(t), n = zt(t), a = (e = t.ownerDocument) == null ? void 0 : e.body, i = tt(r.scrollWidth, r.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), f = tt(r.scrollHeight, r.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), s = -n.scrollLeft + Nt(t), o = -n.scrollTop;
387
+ return Y(a || r).direction === "rtl" && (s += tt(r.clientWidth, a ? a.clientWidth : 0) - i), {
388
+ width: i,
389
+ height: f,
390
+ x: s,
391
+ y: o
392
+ };
393
+ }
394
+ function Ut(t) {
395
+ var e = Y(t), r = e.overflow, n = e.overflowX, a = e.overflowY;
396
+ return /auto|scroll|overlay|hidden/.test(r + a + n);
397
+ }
398
+ function Oe(t) {
399
+ return ["html", "body", "#document"].indexOf(W(t)) >= 0 ? t.ownerDocument.body : B(t) && Ut(t) ? t : Oe($t(t));
400
+ }
401
+ function ht(t, e) {
402
+ var r;
403
+ e === void 0 && (e = []);
404
+ var n = Oe(t), a = n === ((r = t.ownerDocument) == null ? void 0 : r.body), i = P(n), f = a ? [i].concat(i.visualViewport || [], Ut(n) ? n : []) : n, s = e.concat(f);
405
+ return a ? s : (
406
+ // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
407
+ s.concat(ht($t(f)))
408
+ );
409
+ }
410
+ function Et(t) {
411
+ return Object.assign({}, t, {
412
+ left: t.x,
413
+ top: t.y,
414
+ right: t.x + t.width,
415
+ bottom: t.y + t.height
416
+ });
417
+ }
418
+ function pr(t, e) {
419
+ var r = it(t, !1, e === "fixed");
420
+ return r.top = r.top + t.clientTop, r.left = r.left + t.clientLeft, r.bottom = r.top + t.clientHeight, r.right = r.left + t.clientWidth, r.width = t.clientWidth, r.height = t.clientHeight, r.x = r.left, r.y = r.top, r;
421
+ }
422
+ function ne(t, e, r) {
423
+ return e === ve ? Et(lr(t, r)) : et(e) ? pr(e, r) : Et(hr(X(t)));
424
+ }
425
+ function dr(t) {
426
+ var e = ht($t(t)), r = ["absolute", "fixed"].indexOf(Y(t).position) >= 0, n = r && B(t) ? vt(t) : t;
427
+ return et(n) ? e.filter(function(a) {
428
+ return et(a) && be(a, n) && W(a) !== "body";
429
+ }) : [];
430
+ }
431
+ function vr(t, e, r, n) {
432
+ var a = e === "clippingParents" ? dr(t) : [].concat(e), i = [].concat(a, [r]), f = i[0], s = i.reduce(function(o, l) {
433
+ var c = ne(t, l, n);
434
+ return o.top = tt(c.top, o.top), o.right = _t(c.right, o.right), o.bottom = _t(c.bottom, o.bottom), o.left = tt(c.left, o.left), o;
435
+ }, ne(t, f, n));
436
+ return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
437
+ }
438
+ function Ae(t) {
439
+ var e = t.reference, r = t.element, n = t.placement, a = n ? I(n) : null, i = n ? ot(n) : null, f = e.x + e.width / 2 - r.width / 2, s = e.y + e.height / 2 - r.height / 2, o;
440
+ switch (a) {
441
+ case D:
442
+ o = {
443
+ x: f,
444
+ y: e.y - r.height
445
+ };
446
+ break;
447
+ case N:
448
+ o = {
449
+ x: f,
450
+ y: e.y + e.height
451
+ };
452
+ break;
453
+ case U:
454
+ o = {
455
+ x: e.x + e.width,
456
+ y: s
457
+ };
458
+ break;
459
+ case E:
460
+ o = {
461
+ x: e.x - r.width,
462
+ y: s
463
+ };
464
+ break;
465
+ default:
466
+ o = {
467
+ x: e.x,
468
+ y: e.y
469
+ };
470
+ }
471
+ var l = a ? jt(a) : null;
472
+ if (l != null) {
473
+ var c = l === "y" ? "height" : "width";
474
+ switch (i) {
475
+ case nt:
476
+ o[l] = o[l] - (e[c] / 2 - r[c] / 2);
477
+ break;
478
+ case pt:
479
+ o[l] = o[l] + (e[c] / 2 - r[c] / 2);
480
+ break;
481
+ }
482
+ }
483
+ return o;
484
+ }
485
+ function It(t, e) {
486
+ e === void 0 && (e = {});
487
+ var r = e, n = r.placement, a = n === void 0 ? t.placement : n, i = r.strategy, f = i === void 0 ? t.strategy : i, s = r.boundary, o = s === void 0 ? je : s, l = r.rootBoundary, c = l === void 0 ? ve : l, b = r.elementContext, g = b === void 0 ? ut : b, p = r.altBoundary, v = p === void 0 ? !1 : p, u = r.padding, h = u === void 0 ? 0 : u, x = xe(typeof h != "number" ? h : we(h, dt)), O = g === ut ? ze : ut, w = t.rects.popper, m = t.elements[v ? O : g], y = vr(et(m) ? m : m.contextElement || X(t.elements.popper), o, c, f), A = it(t.elements.reference), M = Ae({
488
+ reference: A,
489
+ element: w,
490
+ placement: a
491
+ }), $ = Et(Object.assign({}, w, M)), _ = g === ut ? $ : A, S = {
492
+ top: y.top - _.top + x.top,
493
+ bottom: _.bottom - y.bottom + x.bottom,
494
+ left: y.left - _.left + x.left,
495
+ right: _.right - y.right + x.right
496
+ }, R = t.modifiersData.offset;
497
+ if (g === ut && R) {
498
+ var F = R[a];
499
+ Object.keys(S).forEach(function(T) {
500
+ var G = [U, N].indexOf(T) >= 0 ? 1 : -1, Z = [D, N].indexOf(T) >= 0 ? "y" : "x";
501
+ S[T] += F[Z] * G;
502
+ });
503
+ }
504
+ return S;
505
+ }
506
+ function gr(t, e) {
507
+ e === void 0 && (e = {});
508
+ var r = e, n = r.placement, a = r.boundary, i = r.rootBoundary, f = r.padding, s = r.flipVariations, o = r.allowedAutoPlacements, l = o === void 0 ? ge : o, c = ot(n), b = c ? s ? Qt : Qt.filter(function(v) {
509
+ return ot(v) === c;
510
+ }) : dt, g = b.filter(function(v) {
511
+ return l.indexOf(v) >= 0;
512
+ });
513
+ g.length === 0 && (g = b);
514
+ var p = g.reduce(function(v, u) {
515
+ return v[u] = It(t, {
516
+ placement: u,
517
+ boundary: a,
518
+ rootBoundary: i,
519
+ padding: f
520
+ })[I(u)], v;
521
+ }, {});
522
+ return Object.keys(p).sort(function(v, u) {
523
+ return p[v] - p[u];
524
+ });
525
+ }
526
+ function mr(t) {
527
+ if (I(t) === Bt)
528
+ return [];
529
+ var e = Ot(t);
530
+ return [re(t), e, re(e)];
531
+ }
532
+ function br(t) {
533
+ var e = t.state, r = t.options, n = t.name;
534
+ if (!e.modifiersData[n]._skip) {
535
+ for (var a = r.mainAxis, i = a === void 0 ? !0 : a, f = r.altAxis, s = f === void 0 ? !0 : f, o = r.fallbackPlacements, l = r.padding, c = r.boundary, b = r.rootBoundary, g = r.altBoundary, p = r.flipVariations, v = p === void 0 ? !0 : p, u = r.allowedAutoPlacements, h = e.options.placement, x = I(h), O = x === h, w = o || (O || !v ? [Ot(h)] : mr(h)), m = [h].concat(w).reduce(function(rt, q) {
536
+ return rt.concat(I(q) === Bt ? gr(e, {
537
+ placement: q,
538
+ boundary: c,
539
+ rootBoundary: b,
540
+ padding: l,
541
+ flipVariations: v,
542
+ allowedAutoPlacements: u
543
+ }) : q);
544
+ }, []), y = e.rects.reference, A = e.rects.popper, M = /* @__PURE__ */ new Map(), $ = !0, _ = m[0], S = 0; S < m.length; S++) {
545
+ var R = m[S], F = I(R), T = ot(R) === nt, G = [D, N].indexOf(F) >= 0, Z = G ? "width" : "height", H = It(e, {
546
+ placement: R,
547
+ boundary: c,
548
+ rootBoundary: b,
549
+ altBoundary: g,
550
+ padding: l
551
+ }), L = G ? T ? U : E : T ? N : D;
552
+ y[Z] > A[Z] && (L = Ot(L));
553
+ var gt = Ot(L), J = [];
554
+ if (i && J.push(H[F] <= 0), s && J.push(H[L] <= 0, H[gt] <= 0), J.every(function(rt) {
555
+ return rt;
556
+ })) {
557
+ _ = R, $ = !1;
558
+ break;
559
+ }
560
+ M.set(R, J);
561
+ }
562
+ if ($)
563
+ for (var mt = v ? 3 : 1, Rt = function(q) {
564
+ var ft = m.find(function(yt) {
565
+ var K = M.get(yt);
566
+ if (K)
567
+ return K.slice(0, q).every(function(Tt) {
568
+ return Tt;
569
+ });
570
+ });
571
+ if (ft)
572
+ return _ = ft, "break";
573
+ }, st = mt; st > 0; st--) {
574
+ var bt = Rt(st);
575
+ if (bt === "break") break;
576
+ }
577
+ e.placement !== _ && (e.modifiersData[n]._skip = !0, e.placement = _, e.reset = !0);
578
+ }
579
+ }
580
+ const gn = {
581
+ name: "flip",
582
+ enabled: !0,
583
+ phase: "main",
584
+ fn: br,
585
+ requiresIfExists: ["offset"],
586
+ data: {
587
+ _skip: !1
588
+ }
589
+ };
590
+ function yr(t, e, r) {
591
+ var n = I(t), a = [E, D].indexOf(n) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, {
592
+ placement: t
593
+ })) : r, f = i[0], s = i[1];
594
+ return f = f || 0, s = (s || 0) * a, [E, U].indexOf(n) >= 0 ? {
595
+ x: s,
596
+ y: f
597
+ } : {
598
+ x: f,
599
+ y: s
600
+ };
601
+ }
602
+ function xr(t) {
603
+ var e = t.state, r = t.options, n = t.name, a = r.offset, i = a === void 0 ? [0, 0] : a, f = ge.reduce(function(c, b) {
604
+ return c[b] = yr(b, e.rects, i), c;
605
+ }, {}), s = f[e.placement], o = s.x, l = s.y;
606
+ e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += o, e.modifiersData.popperOffsets.y += l), e.modifiersData[n] = f;
607
+ }
608
+ const mn = {
609
+ name: "offset",
610
+ enabled: !0,
611
+ phase: "main",
612
+ requires: ["popperOffsets"],
613
+ fn: xr
614
+ };
615
+ function wr(t) {
616
+ return t === "x" ? "y" : "x";
617
+ }
618
+ function Or(t) {
619
+ var e = t.state, r = t.options, n = t.name, a = r.mainAxis, i = a === void 0 ? !0 : a, f = r.altAxis, s = f === void 0 ? !1 : f, o = r.boundary, l = r.rootBoundary, c = r.altBoundary, b = r.padding, g = r.tether, p = g === void 0 ? !0 : g, v = r.tetherOffset, u = v === void 0 ? 0 : v, h = It(e, {
620
+ boundary: o,
621
+ rootBoundary: l,
622
+ padding: b,
623
+ altBoundary: c
624
+ }), x = I(e.placement), O = ot(e.placement), w = !O, m = jt(x), y = wr(m), A = e.modifiersData.popperOffsets, M = e.rects.reference, $ = e.rects.popper, _ = typeof u == "function" ? u(Object.assign({}, e.rects, {
625
+ placement: e.placement
626
+ })) : u, S = typeof _ == "number" ? {
627
+ mainAxis: _,
628
+ altAxis: _
629
+ } : Object.assign({
630
+ mainAxis: 0,
631
+ altAxis: 0
632
+ }, _), R = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, F = {
633
+ x: 0,
634
+ y: 0
635
+ };
636
+ if (A) {
637
+ if (i) {
638
+ var T, G = m === "y" ? D : E, Z = m === "y" ? N : U, H = m === "y" ? "height" : "width", L = A[m], gt = L + h[G], J = L - h[Z], mt = p ? -$[H] / 2 : 0, Rt = O === nt ? M[H] : $[H], st = O === nt ? -$[H] : -M[H], bt = e.elements.arrow, rt = p && bt ? Lt(bt) : {
639
+ width: 0,
640
+ height: 0
641
+ }, q = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : ye(), ft = q[G], yt = q[Z], K = lt(0, M[H], rt[H]), Tt = w ? M[H] / 2 - mt - K - ft - S.mainAxis : Rt - K - ft - S.mainAxis, Se = w ? -M[H] / 2 + mt + K + yt + S.mainAxis : st + K + yt + S.mainAxis, Ht = e.elements.arrow && vt(e.elements.arrow), $e = Ht ? m === "y" ? Ht.clientTop || 0 : Ht.clientLeft || 0 : 0, Wt = (T = R == null ? void 0 : R[m]) != null ? T : 0, ke = L + Tt - Wt - $e, Re = L + Se - Wt, Vt = lt(p ? _t(gt, ke) : gt, L, p ? tt(J, Re) : J);
642
+ A[m] = Vt, F[m] = Vt - L;
643
+ }
644
+ if (s) {
645
+ var Yt, Te = m === "x" ? D : E, He = m === "x" ? N : U, Q = A[y], xt = y === "y" ? "height" : "width", qt = Q + h[Te], Xt = Q - h[He], Ct = [D, E].indexOf(x) !== -1, Gt = (Yt = R == null ? void 0 : R[y]) != null ? Yt : 0, Zt = Ct ? qt : Q - M[xt] - $[xt] - Gt + S.altAxis, Jt = Ct ? Q + M[xt] + $[xt] - Gt - S.altAxis : Xt, Kt = p && Ct ? Qe(Zt, Q, Jt) : lt(p ? Zt : qt, Q, p ? Jt : Xt);
646
+ A[y] = Kt, F[y] = Kt - Q;
647
+ }
648
+ e.modifiersData[n] = F;
649
+ }
650
+ }
651
+ const bn = {
652
+ name: "preventOverflow",
653
+ enabled: !0,
654
+ phase: "main",
655
+ fn: Or,
656
+ requiresIfExists: ["offset"]
657
+ };
658
+ function Ar(t) {
659
+ return {
660
+ scrollLeft: t.scrollLeft,
661
+ scrollTop: t.scrollTop
662
+ };
663
+ }
664
+ function Mr(t) {
665
+ return t === P(t) || !B(t) ? zt(t) : Ar(t);
666
+ }
667
+ function _r(t) {
668
+ var e = t.getBoundingClientRect(), r = at(e.width) / t.offsetWidth || 1, n = at(e.height) / t.offsetHeight || 1;
669
+ return r !== 1 || n !== 1;
670
+ }
671
+ function Sr(t, e, r) {
672
+ r === void 0 && (r = !1);
673
+ var n = B(e), a = B(e) && _r(e), i = X(e), f = it(t, a, r), s = {
674
+ scrollLeft: 0,
675
+ scrollTop: 0
676
+ }, o = {
677
+ x: 0,
678
+ y: 0
679
+ };
680
+ return (n || !n && !r) && ((W(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
681
+ Ut(i)) && (s = Mr(e)), B(e) ? (o = it(e, !0), o.x += e.clientLeft, o.y += e.clientTop) : i && (o.x = Nt(i))), {
682
+ x: f.left + s.scrollLeft - o.x,
683
+ y: f.top + s.scrollTop - o.y,
684
+ width: f.width,
685
+ height: f.height
686
+ };
687
+ }
688
+ function $r(t) {
689
+ var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), n = [];
690
+ t.forEach(function(i) {
691
+ e.set(i.name, i);
692
+ });
693
+ function a(i) {
694
+ r.add(i.name);
695
+ var f = [].concat(i.requires || [], i.requiresIfExists || []);
696
+ f.forEach(function(s) {
697
+ if (!r.has(s)) {
698
+ var o = e.get(s);
699
+ o && a(o);
700
+ }
701
+ }), n.push(i);
702
+ }
703
+ return t.forEach(function(i) {
704
+ r.has(i.name) || a(i);
705
+ }), n;
706
+ }
707
+ function kr(t) {
708
+ var e = $r(t);
709
+ return Ze.reduce(function(r, n) {
710
+ return r.concat(e.filter(function(a) {
711
+ return a.phase === n;
712
+ }));
713
+ }, []);
714
+ }
715
+ function Rr(t) {
716
+ var e;
717
+ return function() {
718
+ return e || (e = new Promise(function(r) {
719
+ Promise.resolve().then(function() {
720
+ e = void 0, r(t());
721
+ });
722
+ })), e;
723
+ };
724
+ }
725
+ function Tr(t) {
726
+ var e = t.reduce(function(r, n) {
727
+ var a = r[n.name];
728
+ return r[n.name] = a ? Object.assign({}, a, n, {
729
+ options: Object.assign({}, a.options, n.options),
730
+ data: Object.assign({}, a.data, n.data)
731
+ }) : n, r;
732
+ }, {});
733
+ return Object.keys(e).map(function(r) {
734
+ return e[r];
735
+ });
736
+ }
737
+ var ae = {
738
+ placement: "bottom",
739
+ modifiers: [],
740
+ strategy: "absolute"
741
+ };
742
+ function ie() {
743
+ for (var t = arguments.length, e = new Array(t), r = 0; r < t; r++)
744
+ e[r] = arguments[r];
745
+ return !e.some(function(n) {
746
+ return !(n && typeof n.getBoundingClientRect == "function");
747
+ });
748
+ }
749
+ function yn(t) {
750
+ t === void 0 && (t = {});
751
+ var e = t, r = e.defaultModifiers, n = r === void 0 ? [] : r, a = e.defaultOptions, i = a === void 0 ? ae : a;
752
+ return function(s, o, l) {
753
+ l === void 0 && (l = i);
754
+ var c = {
755
+ placement: "bottom",
756
+ orderedModifiers: [],
757
+ options: Object.assign({}, ae, i),
758
+ modifiersData: {},
759
+ elements: {
760
+ reference: s,
761
+ popper: o
762
+ },
763
+ attributes: {},
764
+ styles: {}
765
+ }, b = [], g = !1, p = {
766
+ state: c,
767
+ setOptions: function(x) {
768
+ var O = typeof x == "function" ? x(c.options) : x;
769
+ u(), c.options = Object.assign({}, i, c.options, O), c.scrollParents = {
770
+ reference: et(s) ? ht(s) : s.contextElement ? ht(s.contextElement) : [],
771
+ popper: ht(o)
772
+ };
773
+ var w = kr(Tr([].concat(n, c.options.modifiers)));
774
+ return c.orderedModifiers = w.filter(function(m) {
775
+ return m.enabled;
776
+ }), v(), p.update();
777
+ },
778
+ // Sync update – it will always be executed, even if not necessary. This
779
+ // is useful for low frequency updates where sync behavior simplifies the
780
+ // logic.
781
+ // For high frequency updates (e.g. `resize` and `scroll` events), always
782
+ // prefer the async Popper#update method
783
+ forceUpdate: function() {
784
+ if (!g) {
785
+ var x = c.elements, O = x.reference, w = x.popper;
786
+ if (ie(O, w)) {
787
+ c.rects = {
788
+ reference: Sr(O, vt(w), c.options.strategy === "fixed"),
789
+ popper: Lt(w)
790
+ }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(S) {
791
+ return c.modifiersData[S.name] = Object.assign({}, S.data);
792
+ });
793
+ for (var m = 0; m < c.orderedModifiers.length; m++) {
794
+ if (c.reset === !0) {
795
+ c.reset = !1, m = -1;
796
+ continue;
797
+ }
798
+ var y = c.orderedModifiers[m], A = y.fn, M = y.options, $ = M === void 0 ? {} : M, _ = y.name;
799
+ typeof A == "function" && (c = A({
800
+ state: c,
801
+ options: $,
802
+ name: _,
803
+ instance: p
804
+ }) || c);
805
+ }
806
+ }
807
+ }
808
+ },
809
+ // Async and optimistically optimized update – it will not be executed if
810
+ // not necessary (debounced to run at most once-per-tick)
811
+ update: Rr(function() {
812
+ return new Promise(function(h) {
813
+ p.forceUpdate(), h(c);
814
+ });
815
+ }),
816
+ destroy: function() {
817
+ u(), g = !0;
818
+ }
819
+ };
820
+ if (!ie(s, o))
821
+ return p;
822
+ p.setOptions(l).then(function(h) {
823
+ !g && l.onFirstUpdate && l.onFirstUpdate(h);
824
+ });
825
+ function v() {
826
+ c.orderedModifiers.forEach(function(h) {
827
+ var x = h.name, O = h.options, w = O === void 0 ? {} : O, m = h.effect;
828
+ if (typeof m == "function") {
829
+ var y = m({
830
+ state: c,
831
+ name: x,
832
+ instance: p,
833
+ options: w
834
+ }), A = function() {
835
+ };
836
+ b.push(y || A);
837
+ }
838
+ });
839
+ }
840
+ function u() {
841
+ b.forEach(function(h) {
842
+ return h();
843
+ }), b = [];
844
+ }
845
+ return p;
846
+ };
847
+ }
848
+ function Hr(t) {
849
+ var e = t.state, r = t.name;
850
+ e.modifiersData[r] = Ae({
851
+ reference: e.rects.reference,
852
+ element: e.rects.popper,
853
+ placement: e.placement
854
+ });
855
+ }
856
+ const Cr = {
857
+ name: "popperOffsets",
858
+ enabled: !0,
859
+ phase: "read",
860
+ fn: Hr,
861
+ data: {}
862
+ };
863
+ function Dr(t) {
864
+ var e = t.state;
865
+ Object.keys(e.elements).forEach(function(r) {
866
+ var n = e.styles[r] || {}, a = e.attributes[r] || {}, i = e.elements[r];
867
+ !B(i) || !W(i) || (Object.assign(i.style, n), Object.keys(a).forEach(function(f) {
868
+ var s = a[f];
869
+ s === !1 ? i.removeAttribute(f) : i.setAttribute(f, s === !0 ? "" : s);
870
+ }));
871
+ });
872
+ }
873
+ function Er(t) {
874
+ var e = t.state, r = {
875
+ popper: {
876
+ position: e.options.strategy,
877
+ left: "0",
878
+ top: "0",
879
+ margin: "0"
880
+ },
881
+ arrow: {
882
+ position: "absolute"
883
+ },
884
+ reference: {}
885
+ };
886
+ return Object.assign(e.elements.popper.style, r.popper), e.styles = r, e.elements.arrow && Object.assign(e.elements.arrow.style, r.arrow), function() {
887
+ Object.keys(e.elements).forEach(function(n) {
888
+ var a = e.elements[n], i = e.attributes[n] || {}, f = Object.keys(e.styles.hasOwnProperty(n) ? e.styles[n] : r[n]), s = f.reduce(function(o, l) {
889
+ return o[l] = "", o;
890
+ }, {});
891
+ !B(a) || !W(a) || (Object.assign(a.style, s), Object.keys(i).forEach(function(o) {
892
+ a.removeAttribute(o);
893
+ }));
894
+ });
895
+ };
896
+ }
897
+ const Pr = {
898
+ name: "applyStyles",
899
+ enabled: !0,
900
+ phase: "write",
901
+ fn: Dr,
902
+ effect: Er,
903
+ requires: ["computeStyles"]
904
+ };
905
+ var xn = [fr, Cr, or, Pr];
906
+ function St(t) {
907
+ "@babel/helpers - typeof";
908
+ return St = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
909
+ return typeof e;
910
+ } : function(e) {
911
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
912
+ }, St(t);
913
+ }
914
+ var Br = /^\s+/, Fr = /\s+$/;
915
+ function d(t, e) {
916
+ if (t = t || "", e = e || {}, t instanceof d)
917
+ return t;
918
+ if (!(this instanceof d))
919
+ return new d(t, e);
920
+ var r = Lr(t);
921
+ this._originalInput = t, this._r = r.r, this._g = r.g, this._b = r.b, this._a = r.a, this._roundA = Math.round(100 * this._a) / 100, this._format = e.format || r.format, this._gradientType = e.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = r.ok;
922
+ }
923
+ d.prototype = {
924
+ isDark: function() {
925
+ return this.getBrightness() < 128;
926
+ },
927
+ isLight: function() {
928
+ return !this.isDark();
929
+ },
930
+ isValid: function() {
931
+ return this._ok;
932
+ },
933
+ getOriginalInput: function() {
934
+ return this._originalInput;
935
+ },
936
+ getFormat: function() {
937
+ return this._format;
938
+ },
939
+ getAlpha: function() {
940
+ return this._a;
941
+ },
942
+ getBrightness: function() {
943
+ var e = this.toRgb();
944
+ return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;
945
+ },
946
+ getLuminance: function() {
947
+ var e = this.toRgb(), r, n, a, i, f, s;
948
+ return r = e.r / 255, n = e.g / 255, a = e.b / 255, r <= 0.03928 ? i = r / 12.92 : i = Math.pow((r + 0.055) / 1.055, 2.4), n <= 0.03928 ? f = n / 12.92 : f = Math.pow((n + 0.055) / 1.055, 2.4), a <= 0.03928 ? s = a / 12.92 : s = Math.pow((a + 0.055) / 1.055, 2.4), 0.2126 * i + 0.7152 * f + 0.0722 * s;
949
+ },
950
+ setAlpha: function(e) {
951
+ return this._a = Me(e), this._roundA = Math.round(100 * this._a) / 100, this;
952
+ },
953
+ toHsv: function() {
954
+ var e = se(this._r, this._g, this._b);
955
+ return {
956
+ h: e.h * 360,
957
+ s: e.s,
958
+ v: e.v,
959
+ a: this._a
960
+ };
961
+ },
962
+ toHsvString: function() {
963
+ var e = se(this._r, this._g, this._b), r = Math.round(e.h * 360), n = Math.round(e.s * 100), a = Math.round(e.v * 100);
964
+ return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + a + "%)" : "hsva(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
965
+ },
966
+ toHsl: function() {
967
+ var e = oe(this._r, this._g, this._b);
968
+ return {
969
+ h: e.h * 360,
970
+ s: e.s,
971
+ l: e.l,
972
+ a: this._a
973
+ };
974
+ },
975
+ toHslString: function() {
976
+ var e = oe(this._r, this._g, this._b), r = Math.round(e.h * 360), n = Math.round(e.s * 100), a = Math.round(e.l * 100);
977
+ return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + a + "%)" : "hsla(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
978
+ },
979
+ toHex: function(e) {
980
+ return fe(this._r, this._g, this._b, e);
981
+ },
982
+ toHexString: function(e) {
983
+ return "#" + this.toHex(e);
984
+ },
985
+ toHex8: function(e) {
986
+ return Ur(this._r, this._g, this._b, this._a, e);
987
+ },
988
+ toHex8String: function(e) {
989
+ return "#" + this.toHex8(e);
990
+ },
991
+ toRgb: function() {
992
+ return {
993
+ r: Math.round(this._r),
994
+ g: Math.round(this._g),
995
+ b: Math.round(this._b),
996
+ a: this._a
997
+ };
998
+ },
999
+ toRgbString: function() {
1000
+ return this._a == 1 ? "rgb(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ")" : "rgba(" + Math.round(this._r) + ", " + Math.round(this._g) + ", " + Math.round(this._b) + ", " + this._roundA + ")";
1001
+ },
1002
+ toPercentageRgb: function() {
1003
+ return {
1004
+ r: Math.round(k(this._r, 255) * 100) + "%",
1005
+ g: Math.round(k(this._g, 255) * 100) + "%",
1006
+ b: Math.round(k(this._b, 255) * 100) + "%",
1007
+ a: this._a
1008
+ };
1009
+ },
1010
+ toPercentageRgbString: function() {
1011
+ return this._a == 1 ? "rgb(" + Math.round(k(this._r, 255) * 100) + "%, " + Math.round(k(this._g, 255) * 100) + "%, " + Math.round(k(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(k(this._r, 255) * 100) + "%, " + Math.round(k(this._g, 255) * 100) + "%, " + Math.round(k(this._b, 255) * 100) + "%, " + this._roundA + ")";
1012
+ },
1013
+ toName: function() {
1014
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : tn[fe(this._r, this._g, this._b, !0)] || !1;
1015
+ },
1016
+ toFilter: function(e) {
1017
+ var r = "#" + ue(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
1018
+ if (e) {
1019
+ var i = d(e);
1020
+ n = "#" + ue(i._r, i._g, i._b, i._a);
1021
+ }
1022
+ return "progid:DXImageTransform.Microsoft.gradient(" + a + "startColorstr=" + r + ",endColorstr=" + n + ")";
1023
+ },
1024
+ toString: function(e) {
1025
+ var r = !!e;
1026
+ e = e || this._format;
1027
+ var n = !1, a = this._a < 1 && this._a >= 0, i = !r && a && (e === "hex" || e === "hex6" || e === "hex3" || e === "hex4" || e === "hex8" || e === "name");
1028
+ return i ? e === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (e === "rgb" && (n = this.toRgbString()), e === "prgb" && (n = this.toPercentageRgbString()), (e === "hex" || e === "hex6") && (n = this.toHexString()), e === "hex3" && (n = this.toHexString(!0)), e === "hex4" && (n = this.toHex8String(!0)), e === "hex8" && (n = this.toHex8String()), e === "name" && (n = this.toName()), e === "hsl" && (n = this.toHslString()), e === "hsv" && (n = this.toHsvString()), n || this.toHexString());
1029
+ },
1030
+ clone: function() {
1031
+ return d(this.toString());
1032
+ },
1033
+ _applyModification: function(e, r) {
1034
+ var n = e.apply(null, [this].concat([].slice.call(r)));
1035
+ return this._r = n._r, this._g = n._g, this._b = n._b, this.setAlpha(n._a), this;
1036
+ },
1037
+ lighten: function() {
1038
+ return this._applyModification(Yr, arguments);
1039
+ },
1040
+ brighten: function() {
1041
+ return this._applyModification(qr, arguments);
1042
+ },
1043
+ darken: function() {
1044
+ return this._applyModification(Xr, arguments);
1045
+ },
1046
+ desaturate: function() {
1047
+ return this._applyModification(Ir, arguments);
1048
+ },
1049
+ saturate: function() {
1050
+ return this._applyModification(Wr, arguments);
1051
+ },
1052
+ greyscale: function() {
1053
+ return this._applyModification(Vr, arguments);
1054
+ },
1055
+ spin: function() {
1056
+ return this._applyModification(Gr, arguments);
1057
+ },
1058
+ _applyCombination: function(e, r) {
1059
+ return e.apply(null, [this].concat([].slice.call(r)));
1060
+ },
1061
+ analogous: function() {
1062
+ return this._applyCombination(Kr, arguments);
1063
+ },
1064
+ complement: function() {
1065
+ return this._applyCombination(Zr, arguments);
1066
+ },
1067
+ monochromatic: function() {
1068
+ return this._applyCombination(Qr, arguments);
1069
+ },
1070
+ splitcomplement: function() {
1071
+ return this._applyCombination(Jr, arguments);
1072
+ },
1073
+ // Disabled until https://github.com/bgrins/TinyColor/issues/254
1074
+ // polyad: function (number) {
1075
+ // return this._applyCombination(polyad, [number]);
1076
+ // },
1077
+ triad: function() {
1078
+ return this._applyCombination(ce, [3]);
1079
+ },
1080
+ tetrad: function() {
1081
+ return this._applyCombination(ce, [4]);
1082
+ }
1083
+ };
1084
+ d.fromRatio = function(t, e) {
1085
+ if (St(t) == "object") {
1086
+ var r = {};
1087
+ for (var n in t)
1088
+ t.hasOwnProperty(n) && (n === "a" ? r[n] = t[n] : r[n] = ct(t[n]));
1089
+ t = r;
1090
+ }
1091
+ return d(t, e);
1092
+ };
1093
+ function Lr(t) {
1094
+ var e = {
1095
+ r: 0,
1096
+ g: 0,
1097
+ b: 0
1098
+ }, r = 1, n = null, a = null, i = null, f = !1, s = !1;
1099
+ return typeof t == "string" && (t = an(t)), St(t) == "object" && (V(t.r) && V(t.g) && V(t.b) ? (e = jr(t.r, t.g, t.b), f = !0, s = String(t.r).substr(-1) === "%" ? "prgb" : "rgb") : V(t.h) && V(t.s) && V(t.v) ? (n = ct(t.s), a = ct(t.v), e = Nr(t.h, n, a), f = !0, s = "hsv") : V(t.h) && V(t.s) && V(t.l) && (n = ct(t.s), i = ct(t.l), e = zr(t.h, n, i), f = !0, s = "hsl"), t.hasOwnProperty("a") && (r = t.a)), r = Me(r), {
1100
+ ok: f,
1101
+ format: t.format || s,
1102
+ r: Math.min(255, Math.max(e.r, 0)),
1103
+ g: Math.min(255, Math.max(e.g, 0)),
1104
+ b: Math.min(255, Math.max(e.b, 0)),
1105
+ a: r
1106
+ };
1107
+ }
1108
+ function jr(t, e, r) {
1109
+ return {
1110
+ r: k(t, 255) * 255,
1111
+ g: k(e, 255) * 255,
1112
+ b: k(r, 255) * 255
1113
+ };
1114
+ }
1115
+ function oe(t, e, r) {
1116
+ t = k(t, 255), e = k(e, 255), r = k(r, 255);
1117
+ var n = Math.max(t, e, r), a = Math.min(t, e, r), i, f, s = (n + a) / 2;
1118
+ if (n == a)
1119
+ i = f = 0;
1120
+ else {
1121
+ var o = n - a;
1122
+ switch (f = s > 0.5 ? o / (2 - n - a) : o / (n + a), n) {
1123
+ case t:
1124
+ i = (e - r) / o + (e < r ? 6 : 0);
1125
+ break;
1126
+ case e:
1127
+ i = (r - t) / o + 2;
1128
+ break;
1129
+ case r:
1130
+ i = (t - e) / o + 4;
1131
+ break;
1132
+ }
1133
+ i /= 6;
1134
+ }
1135
+ return {
1136
+ h: i,
1137
+ s: f,
1138
+ l: s
1139
+ };
1140
+ }
1141
+ function zr(t, e, r) {
1142
+ var n, a, i;
1143
+ t = k(t, 360), e = k(e, 100), r = k(r, 100);
1144
+ function f(l, c, b) {
1145
+ return b < 0 && (b += 1), b > 1 && (b -= 1), b < 1 / 6 ? l + (c - l) * 6 * b : b < 1 / 2 ? c : b < 2 / 3 ? l + (c - l) * (2 / 3 - b) * 6 : l;
1146
+ }
1147
+ if (e === 0)
1148
+ n = a = i = r;
1149
+ else {
1150
+ var s = r < 0.5 ? r * (1 + e) : r + e - r * e, o = 2 * r - s;
1151
+ n = f(o, s, t + 1 / 3), a = f(o, s, t), i = f(o, s, t - 1 / 3);
1152
+ }
1153
+ return {
1154
+ r: n * 255,
1155
+ g: a * 255,
1156
+ b: i * 255
1157
+ };
1158
+ }
1159
+ function se(t, e, r) {
1160
+ t = k(t, 255), e = k(e, 255), r = k(r, 255);
1161
+ var n = Math.max(t, e, r), a = Math.min(t, e, r), i, f, s = n, o = n - a;
1162
+ if (f = n === 0 ? 0 : o / n, n == a)
1163
+ i = 0;
1164
+ else {
1165
+ switch (n) {
1166
+ case t:
1167
+ i = (e - r) / o + (e < r ? 6 : 0);
1168
+ break;
1169
+ case e:
1170
+ i = (r - t) / o + 2;
1171
+ break;
1172
+ case r:
1173
+ i = (t - e) / o + 4;
1174
+ break;
1175
+ }
1176
+ i /= 6;
1177
+ }
1178
+ return {
1179
+ h: i,
1180
+ s: f,
1181
+ v: s
1182
+ };
1183
+ }
1184
+ function Nr(t, e, r) {
1185
+ t = k(t, 360) * 6, e = k(e, 100), r = k(r, 100);
1186
+ var n = Math.floor(t), a = t - n, i = r * (1 - e), f = r * (1 - a * e), s = r * (1 - (1 - a) * e), o = n % 6, l = [r, f, i, i, s, r][o], c = [s, r, r, f, i, i][o], b = [i, i, s, r, r, f][o];
1187
+ return {
1188
+ r: l * 255,
1189
+ g: c * 255,
1190
+ b: b * 255
1191
+ };
1192
+ }
1193
+ function fe(t, e, r, n) {
1194
+ var a = [z(Math.round(t).toString(16)), z(Math.round(e).toString(16)), z(Math.round(r).toString(16))];
1195
+ return n && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
1196
+ }
1197
+ function Ur(t, e, r, n, a) {
1198
+ var i = [z(Math.round(t).toString(16)), z(Math.round(e).toString(16)), z(Math.round(r).toString(16)), z(_e(n))];
1199
+ return a && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) && i[3].charAt(0) == i[3].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) + i[3].charAt(0) : i.join("");
1200
+ }
1201
+ function ue(t, e, r, n) {
1202
+ var a = [z(_e(n)), z(Math.round(t).toString(16)), z(Math.round(e).toString(16)), z(Math.round(r).toString(16))];
1203
+ return a.join("");
1204
+ }
1205
+ d.equals = function(t, e) {
1206
+ return !t || !e ? !1 : d(t).toRgbString() == d(e).toRgbString();
1207
+ };
1208
+ d.random = function() {
1209
+ return d.fromRatio({
1210
+ r: Math.random(),
1211
+ g: Math.random(),
1212
+ b: Math.random()
1213
+ });
1214
+ };
1215
+ function Ir(t, e) {
1216
+ e = e === 0 ? 0 : e || 10;
1217
+ var r = d(t).toHsl();
1218
+ return r.s -= e / 100, r.s = kt(r.s), d(r);
1219
+ }
1220
+ function Wr(t, e) {
1221
+ e = e === 0 ? 0 : e || 10;
1222
+ var r = d(t).toHsl();
1223
+ return r.s += e / 100, r.s = kt(r.s), d(r);
1224
+ }
1225
+ function Vr(t) {
1226
+ return d(t).desaturate(100);
1227
+ }
1228
+ function Yr(t, e) {
1229
+ e = e === 0 ? 0 : e || 10;
1230
+ var r = d(t).toHsl();
1231
+ return r.l += e / 100, r.l = kt(r.l), d(r);
1232
+ }
1233
+ function qr(t, e) {
1234
+ e = e === 0 ? 0 : e || 10;
1235
+ var r = d(t).toRgb();
1236
+ return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(e / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(e / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(e / 100)))), d(r);
1237
+ }
1238
+ function Xr(t, e) {
1239
+ e = e === 0 ? 0 : e || 10;
1240
+ var r = d(t).toHsl();
1241
+ return r.l -= e / 100, r.l = kt(r.l), d(r);
1242
+ }
1243
+ function Gr(t, e) {
1244
+ var r = d(t).toHsl(), n = (r.h + e) % 360;
1245
+ return r.h = n < 0 ? 360 + n : n, d(r);
1246
+ }
1247
+ function Zr(t) {
1248
+ var e = d(t).toHsl();
1249
+ return e.h = (e.h + 180) % 360, d(e);
1250
+ }
1251
+ function ce(t, e) {
1252
+ if (isNaN(e) || e <= 0)
1253
+ throw new Error("Argument to polyad must be a positive number");
1254
+ for (var r = d(t).toHsl(), n = [d(t)], a = 360 / e, i = 1; i < e; i++)
1255
+ n.push(d({
1256
+ h: (r.h + i * a) % 360,
1257
+ s: r.s,
1258
+ l: r.l
1259
+ }));
1260
+ return n;
1261
+ }
1262
+ function Jr(t) {
1263
+ var e = d(t).toHsl(), r = e.h;
1264
+ return [d(t), d({
1265
+ h: (r + 72) % 360,
1266
+ s: e.s,
1267
+ l: e.l
1268
+ }), d({
1269
+ h: (r + 216) % 360,
1270
+ s: e.s,
1271
+ l: e.l
1272
+ })];
1273
+ }
1274
+ function Kr(t, e, r) {
1275
+ e = e || 6, r = r || 30;
1276
+ var n = d(t).toHsl(), a = 360 / r, i = [d(t)];
1277
+ for (n.h = (n.h - (a * e >> 1) + 720) % 360; --e; )
1278
+ n.h = (n.h + a) % 360, i.push(d(n));
1279
+ return i;
1280
+ }
1281
+ function Qr(t, e) {
1282
+ e = e || 6;
1283
+ for (var r = d(t).toHsv(), n = r.h, a = r.s, i = r.v, f = [], s = 1 / e; e--; )
1284
+ f.push(d({
1285
+ h: n,
1286
+ s: a,
1287
+ v: i
1288
+ })), i = (i + s) % 1;
1289
+ return f;
1290
+ }
1291
+ d.mix = function(t, e, r) {
1292
+ r = r === 0 ? 0 : r || 50;
1293
+ var n = d(t).toRgb(), a = d(e).toRgb(), i = r / 100, f = {
1294
+ r: (a.r - n.r) * i + n.r,
1295
+ g: (a.g - n.g) * i + n.g,
1296
+ b: (a.b - n.b) * i + n.b,
1297
+ a: (a.a - n.a) * i + n.a
1298
+ };
1299
+ return d(f);
1300
+ };
1301
+ d.readability = function(t, e) {
1302
+ var r = d(t), n = d(e);
1303
+ return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
1304
+ };
1305
+ d.isReadable = function(t, e, r) {
1306
+ var n = d.readability(t, e), a, i;
1307
+ switch (i = !1, a = on(r), a.level + a.size) {
1308
+ case "AAsmall":
1309
+ case "AAAlarge":
1310
+ i = n >= 4.5;
1311
+ break;
1312
+ case "AAlarge":
1313
+ i = n >= 3;
1314
+ break;
1315
+ case "AAAsmall":
1316
+ i = n >= 7;
1317
+ break;
1318
+ }
1319
+ return i;
1320
+ };
1321
+ d.mostReadable = function(t, e, r) {
1322
+ var n = null, a = 0, i, f, s, o;
1323
+ r = r || {}, f = r.includeFallbackColors, s = r.level, o = r.size;
1324
+ for (var l = 0; l < e.length; l++)
1325
+ i = d.readability(t, e[l]), i > a && (a = i, n = d(e[l]));
1326
+ return d.isReadable(t, n, {
1327
+ level: s,
1328
+ size: o
1329
+ }) || !f ? n : (r.includeFallbackColors = !1, d.mostReadable(t, ["#fff", "#000"], r));
1330
+ };
1331
+ var Pt = d.names = {
1332
+ aliceblue: "f0f8ff",
1333
+ antiquewhite: "faebd7",
1334
+ aqua: "0ff",
1335
+ aquamarine: "7fffd4",
1336
+ azure: "f0ffff",
1337
+ beige: "f5f5dc",
1338
+ bisque: "ffe4c4",
1339
+ black: "000",
1340
+ blanchedalmond: "ffebcd",
1341
+ blue: "00f",
1342
+ blueviolet: "8a2be2",
1343
+ brown: "a52a2a",
1344
+ burlywood: "deb887",
1345
+ burntsienna: "ea7e5d",
1346
+ cadetblue: "5f9ea0",
1347
+ chartreuse: "7fff00",
1348
+ chocolate: "d2691e",
1349
+ coral: "ff7f50",
1350
+ cornflowerblue: "6495ed",
1351
+ cornsilk: "fff8dc",
1352
+ crimson: "dc143c",
1353
+ cyan: "0ff",
1354
+ darkblue: "00008b",
1355
+ darkcyan: "008b8b",
1356
+ darkgoldenrod: "b8860b",
1357
+ darkgray: "a9a9a9",
1358
+ darkgreen: "006400",
1359
+ darkgrey: "a9a9a9",
1360
+ darkkhaki: "bdb76b",
1361
+ darkmagenta: "8b008b",
1362
+ darkolivegreen: "556b2f",
1363
+ darkorange: "ff8c00",
1364
+ darkorchid: "9932cc",
1365
+ darkred: "8b0000",
1366
+ darksalmon: "e9967a",
1367
+ darkseagreen: "8fbc8f",
1368
+ darkslateblue: "483d8b",
1369
+ darkslategray: "2f4f4f",
1370
+ darkslategrey: "2f4f4f",
1371
+ darkturquoise: "00ced1",
1372
+ darkviolet: "9400d3",
1373
+ deeppink: "ff1493",
1374
+ deepskyblue: "00bfff",
1375
+ dimgray: "696969",
1376
+ dimgrey: "696969",
1377
+ dodgerblue: "1e90ff",
1378
+ firebrick: "b22222",
1379
+ floralwhite: "fffaf0",
1380
+ forestgreen: "228b22",
1381
+ fuchsia: "f0f",
1382
+ gainsboro: "dcdcdc",
1383
+ ghostwhite: "f8f8ff",
1384
+ gold: "ffd700",
1385
+ goldenrod: "daa520",
1386
+ gray: "808080",
1387
+ green: "008000",
1388
+ greenyellow: "adff2f",
1389
+ grey: "808080",
1390
+ honeydew: "f0fff0",
1391
+ hotpink: "ff69b4",
1392
+ indianred: "cd5c5c",
1393
+ indigo: "4b0082",
1394
+ ivory: "fffff0",
1395
+ khaki: "f0e68c",
1396
+ lavender: "e6e6fa",
1397
+ lavenderblush: "fff0f5",
1398
+ lawngreen: "7cfc00",
1399
+ lemonchiffon: "fffacd",
1400
+ lightblue: "add8e6",
1401
+ lightcoral: "f08080",
1402
+ lightcyan: "e0ffff",
1403
+ lightgoldenrodyellow: "fafad2",
1404
+ lightgray: "d3d3d3",
1405
+ lightgreen: "90ee90",
1406
+ lightgrey: "d3d3d3",
1407
+ lightpink: "ffb6c1",
1408
+ lightsalmon: "ffa07a",
1409
+ lightseagreen: "20b2aa",
1410
+ lightskyblue: "87cefa",
1411
+ lightslategray: "789",
1412
+ lightslategrey: "789",
1413
+ lightsteelblue: "b0c4de",
1414
+ lightyellow: "ffffe0",
1415
+ lime: "0f0",
1416
+ limegreen: "32cd32",
1417
+ linen: "faf0e6",
1418
+ magenta: "f0f",
1419
+ maroon: "800000",
1420
+ mediumaquamarine: "66cdaa",
1421
+ mediumblue: "0000cd",
1422
+ mediumorchid: "ba55d3",
1423
+ mediumpurple: "9370db",
1424
+ mediumseagreen: "3cb371",
1425
+ mediumslateblue: "7b68ee",
1426
+ mediumspringgreen: "00fa9a",
1427
+ mediumturquoise: "48d1cc",
1428
+ mediumvioletred: "c71585",
1429
+ midnightblue: "191970",
1430
+ mintcream: "f5fffa",
1431
+ mistyrose: "ffe4e1",
1432
+ moccasin: "ffe4b5",
1433
+ navajowhite: "ffdead",
1434
+ navy: "000080",
1435
+ oldlace: "fdf5e6",
1436
+ olive: "808000",
1437
+ olivedrab: "6b8e23",
1438
+ orange: "ffa500",
1439
+ orangered: "ff4500",
1440
+ orchid: "da70d6",
1441
+ palegoldenrod: "eee8aa",
1442
+ palegreen: "98fb98",
1443
+ paleturquoise: "afeeee",
1444
+ palevioletred: "db7093",
1445
+ papayawhip: "ffefd5",
1446
+ peachpuff: "ffdab9",
1447
+ peru: "cd853f",
1448
+ pink: "ffc0cb",
1449
+ plum: "dda0dd",
1450
+ powderblue: "b0e0e6",
1451
+ purple: "800080",
1452
+ rebeccapurple: "663399",
1453
+ red: "f00",
1454
+ rosybrown: "bc8f8f",
1455
+ royalblue: "4169e1",
1456
+ saddlebrown: "8b4513",
1457
+ salmon: "fa8072",
1458
+ sandybrown: "f4a460",
1459
+ seagreen: "2e8b57",
1460
+ seashell: "fff5ee",
1461
+ sienna: "a0522d",
1462
+ silver: "c0c0c0",
1463
+ skyblue: "87ceeb",
1464
+ slateblue: "6a5acd",
1465
+ slategray: "708090",
1466
+ slategrey: "708090",
1467
+ snow: "fffafa",
1468
+ springgreen: "00ff7f",
1469
+ steelblue: "4682b4",
1470
+ tan: "d2b48c",
1471
+ teal: "008080",
1472
+ thistle: "d8bfd8",
1473
+ tomato: "ff6347",
1474
+ turquoise: "40e0d0",
1475
+ violet: "ee82ee",
1476
+ wheat: "f5deb3",
1477
+ white: "fff",
1478
+ whitesmoke: "f5f5f5",
1479
+ yellow: "ff0",
1480
+ yellowgreen: "9acd32"
1481
+ }, tn = d.hexNames = en(Pt);
1482
+ function en(t) {
1483
+ var e = {};
1484
+ for (var r in t)
1485
+ t.hasOwnProperty(r) && (e[t[r]] = r);
1486
+ return e;
1487
+ }
1488
+ function Me(t) {
1489
+ return t = parseFloat(t), (isNaN(t) || t < 0 || t > 1) && (t = 1), t;
1490
+ }
1491
+ function k(t, e) {
1492
+ rn(t) && (t = "100%");
1493
+ var r = nn(t);
1494
+ return t = Math.min(e, Math.max(0, parseFloat(t))), r && (t = parseInt(t * e, 10) / 100), Math.abs(t - e) < 1e-6 ? 1 : t % e / parseFloat(e);
1495
+ }
1496
+ function kt(t) {
1497
+ return Math.min(1, Math.max(0, t));
1498
+ }
1499
+ function C(t) {
1500
+ return parseInt(t, 16);
1501
+ }
1502
+ function rn(t) {
1503
+ return typeof t == "string" && t.indexOf(".") != -1 && parseFloat(t) === 1;
1504
+ }
1505
+ function nn(t) {
1506
+ return typeof t == "string" && t.indexOf("%") != -1;
1507
+ }
1508
+ function z(t) {
1509
+ return t.length == 1 ? "0" + t : "" + t;
1510
+ }
1511
+ function ct(t) {
1512
+ return t <= 1 && (t = t * 100 + "%"), t;
1513
+ }
1514
+ function _e(t) {
1515
+ return Math.round(parseFloat(t) * 255).toString(16);
1516
+ }
1517
+ function le(t) {
1518
+ return C(t) / 255;
1519
+ }
1520
+ var j = function() {
1521
+ var t = "[-\\+]?\\d+%?", e = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + e + ")|(?:" + t + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", a = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
1522
+ return {
1523
+ CSS_UNIT: new RegExp(r),
1524
+ rgb: new RegExp("rgb" + n),
1525
+ rgba: new RegExp("rgba" + a),
1526
+ hsl: new RegExp("hsl" + n),
1527
+ hsla: new RegExp("hsla" + a),
1528
+ hsv: new RegExp("hsv" + n),
1529
+ hsva: new RegExp("hsva" + a),
1530
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1531
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1532
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1533
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1534
+ };
1535
+ }();
1536
+ function V(t) {
1537
+ return !!j.CSS_UNIT.exec(t);
1538
+ }
1539
+ function an(t) {
1540
+ t = t.replace(Br, "").replace(Fr, "").toLowerCase();
1541
+ var e = !1;
1542
+ if (Pt[t])
1543
+ t = Pt[t], e = !0;
1544
+ else if (t == "transparent")
1545
+ return {
1546
+ r: 0,
1547
+ g: 0,
1548
+ b: 0,
1549
+ a: 0,
1550
+ format: "name"
1551
+ };
1552
+ var r;
1553
+ return (r = j.rgb.exec(t)) ? {
1554
+ r: r[1],
1555
+ g: r[2],
1556
+ b: r[3]
1557
+ } : (r = j.rgba.exec(t)) ? {
1558
+ r: r[1],
1559
+ g: r[2],
1560
+ b: r[3],
1561
+ a: r[4]
1562
+ } : (r = j.hsl.exec(t)) ? {
1563
+ h: r[1],
1564
+ s: r[2],
1565
+ l: r[3]
1566
+ } : (r = j.hsla.exec(t)) ? {
1567
+ h: r[1],
1568
+ s: r[2],
1569
+ l: r[3],
1570
+ a: r[4]
1571
+ } : (r = j.hsv.exec(t)) ? {
1572
+ h: r[1],
1573
+ s: r[2],
1574
+ v: r[3]
1575
+ } : (r = j.hsva.exec(t)) ? {
1576
+ h: r[1],
1577
+ s: r[2],
1578
+ v: r[3],
1579
+ a: r[4]
1580
+ } : (r = j.hex8.exec(t)) ? {
1581
+ r: C(r[1]),
1582
+ g: C(r[2]),
1583
+ b: C(r[3]),
1584
+ a: le(r[4]),
1585
+ format: e ? "name" : "hex8"
1586
+ } : (r = j.hex6.exec(t)) ? {
1587
+ r: C(r[1]),
1588
+ g: C(r[2]),
1589
+ b: C(r[3]),
1590
+ format: e ? "name" : "hex"
1591
+ } : (r = j.hex4.exec(t)) ? {
1592
+ r: C(r[1] + "" + r[1]),
1593
+ g: C(r[2] + "" + r[2]),
1594
+ b: C(r[3] + "" + r[3]),
1595
+ a: le(r[4] + "" + r[4]),
1596
+ format: e ? "name" : "hex8"
1597
+ } : (r = j.hex3.exec(t)) ? {
1598
+ r: C(r[1] + "" + r[1]),
1599
+ g: C(r[2] + "" + r[2]),
1600
+ b: C(r[3] + "" + r[3]),
1601
+ format: e ? "name" : "hex"
1602
+ } : !1;
1603
+ }
1604
+ function on(t) {
1605
+ var e, r;
1606
+ return t = t || {
1607
+ level: "AA",
1608
+ size: "small"
1609
+ }, e = (t.level || "AA").toUpperCase(), r = (t.size || "small").toLowerCase(), e !== "AA" && e !== "AAA" && (e = "AA"), r !== "small" && r !== "large" && (r = "small"), {
1610
+ level: e,
1611
+ size: r
1612
+ };
1613
+ }
1614
+ var At = { exports: {} }, sn = At.exports, he;
1615
+ function fn() {
1616
+ return he || (he = 1, function(t, e) {
1617
+ (function(r, n) {
1618
+ t.exports = n();
1619
+ })(sn, function() {
1620
+ var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
1621
+ return function(a, i, f) {
1622
+ var s, o = function(g, p, v) {
1623
+ v === void 0 && (v = {});
1624
+ var u = new Date(g), h = function(x, O) {
1625
+ O === void 0 && (O = {});
1626
+ var w = O.timeZoneName || "short", m = x + "|" + w, y = n[m];
1627
+ return y || (y = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: x, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: w }), n[m] = y), y;
1628
+ }(p, v);
1629
+ return h.formatToParts(u);
1630
+ }, l = function(g, p) {
1631
+ for (var v = o(g, p), u = [], h = 0; h < v.length; h += 1) {
1632
+ var x = v[h], O = x.type, w = x.value, m = r[O];
1633
+ m >= 0 && (u[m] = parseInt(w, 10));
1634
+ }
1635
+ var y = u[3], A = y === 24 ? 0 : y, M = u[0] + "-" + u[1] + "-" + u[2] + " " + A + ":" + u[4] + ":" + u[5] + ":000", $ = +g;
1636
+ return (f.utc(M).valueOf() - ($ -= $ % 1e3)) / 6e4;
1637
+ }, c = i.prototype;
1638
+ c.tz = function(g, p) {
1639
+ g === void 0 && (g = s);
1640
+ var v, u = this.utcOffset(), h = this.toDate(), x = h.toLocaleString("en-US", { timeZone: g }), O = Math.round((h - new Date(x)) / 1e3 / 60), w = 15 * -Math.round(h.getTimezoneOffset() / 15) - O;
1641
+ if (!Number(w)) v = this.utcOffset(0, p);
1642
+ else if (v = f(x, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(w, !0), p) {
1643
+ var m = v.utcOffset();
1644
+ v = v.add(u - m, "minute");
1645
+ }
1646
+ return v.$x.$timezone = g, v;
1647
+ }, c.offsetName = function(g) {
1648
+ var p = this.$x.$timezone || f.tz.guess(), v = o(this.valueOf(), p, { timeZoneName: g }).find(function(u) {
1649
+ return u.type.toLowerCase() === "timezonename";
1650
+ });
1651
+ return v && v.value;
1652
+ };
1653
+ var b = c.startOf;
1654
+ c.startOf = function(g, p) {
1655
+ if (!this.$x || !this.$x.$timezone) return b.call(this, g, p);
1656
+ var v = f(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1657
+ return b.call(v, g, p).tz(this.$x.$timezone, !0);
1658
+ }, f.tz = function(g, p, v) {
1659
+ var u = v && p, h = v || p || s, x = l(+f(), h);
1660
+ if (typeof g != "string") return f(g).tz(h);
1661
+ var O = function(A, M, $) {
1662
+ var _ = A - 60 * M * 1e3, S = l(_, $);
1663
+ if (M === S) return [_, M];
1664
+ var R = l(_ -= 60 * (S - M) * 1e3, $);
1665
+ return S === R ? [_, S] : [A - 60 * Math.min(S, R) * 1e3, Math.max(S, R)];
1666
+ }(f.utc(g, u).valueOf(), x, h), w = O[0], m = O[1], y = f(w).utcOffset(m);
1667
+ return y.$x.$timezone = h, y;
1668
+ }, f.tz.guess = function() {
1669
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
1670
+ }, f.tz.setDefault = function(g) {
1671
+ s = g;
1672
+ };
1673
+ };
1674
+ });
1675
+ }(At)), At.exports;
1676
+ }
1677
+ var un = fn();
1678
+ const wn = /* @__PURE__ */ de(un);
1679
+ var Mt = { exports: {} }, cn = Mt.exports, pe;
1680
+ function ln() {
1681
+ return pe || (pe = 1, function(t, e) {
1682
+ (function(r, n) {
1683
+ t.exports = n();
1684
+ })(cn, function() {
1685
+ var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, a = /([+-]|\d\d)/g;
1686
+ return function(i, f, s) {
1687
+ var o = f.prototype;
1688
+ s.utc = function(u) {
1689
+ var h = { date: u, utc: !0, args: arguments };
1690
+ return new f(h);
1691
+ }, o.utc = function(u) {
1692
+ var h = s(this.toDate(), { locale: this.$L, utc: !0 });
1693
+ return u ? h.add(this.utcOffset(), r) : h;
1694
+ }, o.local = function() {
1695
+ return s(this.toDate(), { locale: this.$L, utc: !1 });
1696
+ };
1697
+ var l = o.parse;
1698
+ o.parse = function(u) {
1699
+ u.utc && (this.$u = !0), this.$utils().u(u.$offset) || (this.$offset = u.$offset), l.call(this, u);
1700
+ };
1701
+ var c = o.init;
1702
+ o.init = function() {
1703
+ if (this.$u) {
1704
+ var u = this.$d;
1705
+ this.$y = u.getUTCFullYear(), this.$M = u.getUTCMonth(), this.$D = u.getUTCDate(), this.$W = u.getUTCDay(), this.$H = u.getUTCHours(), this.$m = u.getUTCMinutes(), this.$s = u.getUTCSeconds(), this.$ms = u.getUTCMilliseconds();
1706
+ } else c.call(this);
1707
+ };
1708
+ var b = o.utcOffset;
1709
+ o.utcOffset = function(u, h) {
1710
+ var x = this.$utils().u;
1711
+ if (x(u)) return this.$u ? 0 : x(this.$offset) ? b.call(this) : this.$offset;
1712
+ if (typeof u == "string" && (u = function(y) {
1713
+ y === void 0 && (y = "");
1714
+ var A = y.match(n);
1715
+ if (!A) return null;
1716
+ var M = ("" + A[0]).match(a) || ["-", 0, 0], $ = M[0], _ = 60 * +M[1] + +M[2];
1717
+ return _ === 0 ? 0 : $ === "+" ? _ : -_;
1718
+ }(u), u === null)) return this;
1719
+ var O = Math.abs(u) <= 16 ? 60 * u : u, w = this;
1720
+ if (h) return w.$offset = O, w.$u = u === 0, w;
1721
+ if (u !== 0) {
1722
+ var m = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1723
+ (w = this.local().add(O + m, r)).$offset = O, w.$x.$localOffset = m;
1724
+ } else w = this.utc();
1725
+ return w;
1726
+ };
1727
+ var g = o.format;
1728
+ o.format = function(u) {
1729
+ var h = u || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
1730
+ return g.call(this, h);
1731
+ }, o.valueOf = function() {
1732
+ var u = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
1733
+ return this.$d.valueOf() - 6e4 * u;
1734
+ }, o.isUTC = function() {
1735
+ return !!this.$u;
1736
+ }, o.toISOString = function() {
1737
+ return this.toDate().toISOString();
1738
+ }, o.toString = function() {
1739
+ return this.toDate().toUTCString();
1740
+ };
1741
+ var p = o.toDate;
1742
+ o.toDate = function(u) {
1743
+ return u === "s" && this.$offset ? s(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
1744
+ };
1745
+ var v = o.diff;
1746
+ o.diff = function(u, h, x) {
1747
+ if (u && this.$u === u.$u) return v.call(this, u, h, x);
1748
+ var O = this.local(), w = s(u).local();
1749
+ return v.call(O, w, h, x);
1750
+ };
1751
+ };
1752
+ });
1753
+ }(Mt)), Mt.exports;
1754
+ }
1755
+ var hn = ln();
1756
+ const On = /* @__PURE__ */ de(hn);
1757
+ export {
1758
+ vn as a,
1759
+ bn as b,
1760
+ dn as c,
1761
+ xn as d,
1762
+ or as e,
1763
+ gn as f,
1764
+ fr as g,
1765
+ wn as h,
1766
+ mn as o,
1767
+ yn as p,
1768
+ d as t,
1769
+ On as u
1770
+ };