@rotki/ui-library 1.12.3 → 2.0.1

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