@rotki/ui-library 2.0.3 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/__test__/transition-group-stub.d.ts +2 -0
- package/dist/components/chips/RuiChip.vue.d.ts +2 -0
- package/dist/components/date-time-picker/RuiDateTimePicker.vue.d.ts +79 -0
- package/dist/components/date-time-picker/RuiDateTimePickerMenu.vue.d.ts +48 -0
- package/dist/components/date-time-picker/timezones.d.ts +1 -0
- package/dist/components/date-time-picker/types.d.ts +5 -0
- package/dist/components/date-time-picker/use-input-handler.d.ts +9 -0
- package/dist/components/date-time-picker/use-keyboard-handler.d.ts +29 -0
- package/dist/components/date-time-picker/utils.d.ts +4 -0
- package/dist/components/index.es.js +2048 -2043
- package/dist/components/time-picker/RuiTimePicker.vue.d.ts +16 -0
- package/dist/composables/{index-DOuH9rdn.js → index-iDflJtNX.js} +2 -2
- package/dist/composables/index.es.js +1 -1
- package/dist/icons/icons_1.d.ts +5 -5
- package/dist/icons/icons_1.es.js +972 -972
- package/dist/icons/icons_2.d.ts +8 -8
- package/dist/icons/icons_2.es.js +1036 -1036
- package/dist/icons/icons_3.d.ts +10 -10
- package/dist/icons/icons_3.es.js +1037 -1037
- package/dist/icons/icons_4.d.ts +10 -0
- package/dist/icons/icons_4.es.js +322 -282
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.es.js +1354 -1344
- package/dist/index-CIC9boM_.js +32 -0
- package/dist/index.es.js +1565 -1569
- package/dist/style.css +1 -1
- package/dist/utils/{index-CxHG7aHQ.js → index-CTepEwum.js} +1 -1
- package/dist/vendor-D4VGlT8H.js +2051 -0
- package/dist/web-types.json +490 -1
- package/package.json +31 -35
- package/dist/vendor-BeEprDAU.js +0 -1624
package/dist/vendor-BeEprDAU.js
DELETED
|
@@ -1,1624 +0,0 @@
|
|
|
1
|
-
const ke = /\d/, Re = ["-", "_", "/", "."];
|
|
2
|
-
function Ee(t = "") {
|
|
3
|
-
if (!ke.test(t))
|
|
4
|
-
return t !== t.toLowerCase();
|
|
5
|
-
}
|
|
6
|
-
function He(t, e) {
|
|
7
|
-
const r = Re, a = [];
|
|
8
|
-
if (!t || typeof t != "string")
|
|
9
|
-
return a;
|
|
10
|
-
let n = "", i, f;
|
|
11
|
-
for (const o of t) {
|
|
12
|
-
const s = r.includes(o);
|
|
13
|
-
if (s === !0) {
|
|
14
|
-
a.push(n), n = "", i = void 0;
|
|
15
|
-
continue;
|
|
16
|
-
}
|
|
17
|
-
const l = Ee(o);
|
|
18
|
-
if (f === !1) {
|
|
19
|
-
if (i === !1 && l === !0) {
|
|
20
|
-
a.push(n), n = o, i = l;
|
|
21
|
-
continue;
|
|
22
|
-
}
|
|
23
|
-
if (i === !0 && l === !1 && n.length > 1) {
|
|
24
|
-
const u = n.at(-1);
|
|
25
|
-
a.push(n.slice(0, Math.max(0, n.length - 1))), n = u + o, i = l;
|
|
26
|
-
continue;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
n += o, i = l, f = s;
|
|
30
|
-
}
|
|
31
|
-
return a.push(n), a;
|
|
32
|
-
}
|
|
33
|
-
function Ce(t) {
|
|
34
|
-
return t ? t[0].toUpperCase() + t.slice(1) : "";
|
|
35
|
-
}
|
|
36
|
-
function Pe(t) {
|
|
37
|
-
return t ? t[0].toLowerCase() + t.slice(1) : "";
|
|
38
|
-
}
|
|
39
|
-
function Te(t, e) {
|
|
40
|
-
return t ? (Array.isArray(t) ? t : He(t)).map((r) => Ce(r)).join("") : "";
|
|
41
|
-
}
|
|
42
|
-
function ea(t, e) {
|
|
43
|
-
return Pe(Te(t || ""));
|
|
44
|
-
}
|
|
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];
|
|
52
|
-
}
|
|
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;
|
|
59
|
-
}
|
|
60
|
-
return t;
|
|
61
|
-
}
|
|
62
|
-
function et(t) {
|
|
63
|
-
var e = D(t).Element;
|
|
64
|
-
return t instanceof e || t instanceof Element;
|
|
65
|
-
}
|
|
66
|
-
function j(t) {
|
|
67
|
-
var e = D(t).HTMLElement;
|
|
68
|
-
return t instanceof e || t instanceof HTMLElement;
|
|
69
|
-
}
|
|
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;
|
|
91
|
-
return {
|
|
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
|
|
100
|
-
};
|
|
101
|
-
}
|
|
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
|
|
109
|
-
};
|
|
110
|
-
}
|
|
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;
|
|
124
|
-
}
|
|
125
|
-
function U(t) {
|
|
126
|
-
return t ? (t.nodeName || "").toLowerCase() : null;
|
|
127
|
-
}
|
|
128
|
-
function z(t) {
|
|
129
|
-
return D(t).getComputedStyle(t);
|
|
130
|
-
}
|
|
131
|
-
function ze(t) {
|
|
132
|
-
return ["table", "td", "th"].indexOf(U(t)) >= 0;
|
|
133
|
-
}
|
|
134
|
-
function G(t) {
|
|
135
|
-
return ((et(t) ? t.ownerDocument : (
|
|
136
|
-
// $FlowFixMe[prop-missing]
|
|
137
|
-
t.document
|
|
138
|
-
)) || window.document).documentElement;
|
|
139
|
-
}
|
|
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
|
-
);
|
|
151
|
-
}
|
|
152
|
-
function Kt(t) {
|
|
153
|
-
return !j(t) || // https://github.com/popperjs/popper-core/issues/837
|
|
154
|
-
z(t).position === "fixed" ? null : t.offsetParent;
|
|
155
|
-
}
|
|
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;
|
|
171
|
-
}
|
|
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;
|
|
176
|
-
}
|
|
177
|
-
function Ft(t) {
|
|
178
|
-
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
179
|
-
}
|
|
180
|
-
function ct(t, e, r) {
|
|
181
|
-
return tt(t, _t(e, r));
|
|
182
|
-
}
|
|
183
|
-
function Ge(t, e, r) {
|
|
184
|
-
var a = ct(t, e, r);
|
|
185
|
-
return a > r ? r : a;
|
|
186
|
-
}
|
|
187
|
-
function de() {
|
|
188
|
-
return {
|
|
189
|
-
top: 0,
|
|
190
|
-
right: 0,
|
|
191
|
-
bottom: 0,
|
|
192
|
-
left: 0
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
function ve(t) {
|
|
196
|
-
return Object.assign({}, de(), t);
|
|
197
|
-
}
|
|
198
|
-
function ge(t, e) {
|
|
199
|
-
return e.reduce(function(r, a) {
|
|
200
|
-
return r[a] = t, r;
|
|
201
|
-
}, {});
|
|
202
|
-
}
|
|
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));
|
|
207
|
-
};
|
|
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);
|
|
213
|
-
}
|
|
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"]
|
|
227
|
-
};
|
|
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"
|
|
236
|
-
};
|
|
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
|
-
};
|
|
243
|
-
}
|
|
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));
|
|
287
|
-
}
|
|
288
|
-
function tr(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
|
-
});
|
|
310
|
-
}
|
|
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
|
-
};
|
|
330
|
-
}
|
|
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
|
-
});
|
|
350
|
-
}
|
|
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
|
-
});
|
|
359
|
-
}
|
|
360
|
-
function $t(t) {
|
|
361
|
-
var e = D(t), r = e.pageXOffset, a = e.pageYOffset;
|
|
362
|
-
return {
|
|
363
|
-
scrollLeft: r,
|
|
364
|
-
scrollTop: a
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
function Lt(t) {
|
|
368
|
-
return it(G(t)).left + $t(t).scrollLeft;
|
|
369
|
-
}
|
|
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);
|
|
376
|
-
}
|
|
377
|
-
return {
|
|
378
|
-
width: i,
|
|
379
|
-
height: f,
|
|
380
|
-
x: o + Lt(t),
|
|
381
|
-
y: s
|
|
382
|
-
};
|
|
383
|
-
}
|
|
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
|
|
391
|
-
};
|
|
392
|
-
}
|
|
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);
|
|
396
|
-
}
|
|
397
|
-
function be(t) {
|
|
398
|
-
return ["html", "body", "#document"].indexOf(U(t)) >= 0 ? t.ownerDocument.body : j(t) && Nt(t) ? t : be(Ot(t));
|
|
399
|
-
}
|
|
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)))
|
|
407
|
-
);
|
|
408
|
-
}
|
|
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
|
-
});
|
|
416
|
-
}
|
|
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;
|
|
420
|
-
}
|
|
421
|
-
function ee(t, e, r) {
|
|
422
|
-
return e === le ? Pt(or(t, r)) : et(e) ? fr(e, r) : Pt(sr(G(t)));
|
|
423
|
-
}
|
|
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
|
-
}) : [];
|
|
429
|
-
}
|
|
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;
|
|
436
|
-
}
|
|
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;
|
|
483
|
-
}
|
|
484
|
-
function It(t, e) {
|
|
485
|
-
e === void 0 && (e = {});
|
|
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({
|
|
487
|
-
reference: m,
|
|
488
|
-
element: O,
|
|
489
|
-
placement: n
|
|
490
|
-
}), R = Pt(Object.assign({}, O, _)), k = y === ut ? R : m, S = {
|
|
491
|
-
top: b.top - k.top + x.top,
|
|
492
|
-
bottom: k.bottom - b.bottom + x.bottom,
|
|
493
|
-
left: b.left - k.left + x.left,
|
|
494
|
-
right: k.right - b.right + x.right
|
|
495
|
-
}, E = t.modifiersData.offset;
|
|
496
|
-
if (y === ut && E) {
|
|
497
|
-
var F = E[n];
|
|
498
|
-
Object.keys(S).forEach(function(H) {
|
|
499
|
-
var Y = [W, I].indexOf(H) >= 0 ? 1 : -1, Z = [T, I].indexOf(H) >= 0 ? "y" : "x";
|
|
500
|
-
S[H] += F[Z] * Y;
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
return S;
|
|
504
|
-
}
|
|
505
|
-
function cr(t, e) {
|
|
506
|
-
e === void 0 && (e = {});
|
|
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) {
|
|
508
|
-
return ot(w) === u;
|
|
509
|
-
}) : dt, y = h.filter(function(w) {
|
|
510
|
-
return l.indexOf(w) >= 0;
|
|
511
|
-
});
|
|
512
|
-
y.length === 0 && (y = h);
|
|
513
|
-
var p = y.reduce(function(w, g) {
|
|
514
|
-
return w[g] = It(t, {
|
|
515
|
-
placement: g,
|
|
516
|
-
boundary: n,
|
|
517
|
-
rootBoundary: i,
|
|
518
|
-
padding: f
|
|
519
|
-
})[V(g)], w;
|
|
520
|
-
}, {});
|
|
521
|
-
return Object.keys(p).sort(function(w, g) {
|
|
522
|
-
return p[w] - p[g];
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
function pr(t) {
|
|
526
|
-
if (V(t) === Bt)
|
|
527
|
-
return [];
|
|
528
|
-
var e = At(t);
|
|
529
|
-
return [te(t), e, te(e)];
|
|
530
|
-
}
|
|
531
|
-
function hr(t) {
|
|
532
|
-
var e = t.state, r = t.options, a = t.name;
|
|
533
|
-
if (!e.modifiersData[a]._skip) {
|
|
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, {
|
|
536
|
-
placement: X,
|
|
537
|
-
boundary: u,
|
|
538
|
-
rootBoundary: h,
|
|
539
|
-
padding: l,
|
|
540
|
-
flipVariations: w,
|
|
541
|
-
allowedAutoPlacements: g
|
|
542
|
-
}) : X);
|
|
543
|
-
}, []), b = e.rects.reference, m = e.rects.popper, _ = /* @__PURE__ */ new Map(), R = !0, k = d[0], S = 0; S < d.length; S++) {
|
|
544
|
-
var E = d[S], F = V(E), H = ot(E) === at, Y = [T, I].indexOf(F) >= 0, Z = Y ? "width" : "height", C = It(e, {
|
|
545
|
-
placement: E,
|
|
546
|
-
boundary: u,
|
|
547
|
-
rootBoundary: h,
|
|
548
|
-
altBoundary: y,
|
|
549
|
-
padding: l
|
|
550
|
-
}), $ = Y ? H ? W : B : H ? I : T;
|
|
551
|
-
b[Z] > m[Z] && ($ = At($));
|
|
552
|
-
var gt = At($), J = [];
|
|
553
|
-
if (i && J.push(C[F] <= 0), o && J.push(C[$] <= 0, C[gt] <= 0), J.every(function(rt) {
|
|
554
|
-
return rt;
|
|
555
|
-
})) {
|
|
556
|
-
k = E, R = !1;
|
|
557
|
-
break;
|
|
558
|
-
}
|
|
559
|
-
_.set(E, J);
|
|
560
|
-
}
|
|
561
|
-
if (R)
|
|
562
|
-
for (var bt = w ? 3 : 1, kt = function(X) {
|
|
563
|
-
var ft = d.find(function(yt) {
|
|
564
|
-
var K = _.get(yt);
|
|
565
|
-
if (K)
|
|
566
|
-
return K.slice(0, X).every(function(Rt) {
|
|
567
|
-
return Rt;
|
|
568
|
-
});
|
|
569
|
-
});
|
|
570
|
-
if (ft)
|
|
571
|
-
return k = ft, "break";
|
|
572
|
-
}, st = bt; st > 0; st--) {
|
|
573
|
-
var mt = kt(st);
|
|
574
|
-
if (mt === "break") break;
|
|
575
|
-
}
|
|
576
|
-
e.placement !== k && (e.modifiersData[a]._skip = !0, e.placement = k, e.reset = !0);
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
const aa = {
|
|
580
|
-
name: "flip",
|
|
581
|
-
enabled: !0,
|
|
582
|
-
phase: "main",
|
|
583
|
-
fn: hr,
|
|
584
|
-
requiresIfExists: ["offset"],
|
|
585
|
-
data: {
|
|
586
|
-
_skip: !1
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
|
-
function dr(t, e, r) {
|
|
590
|
-
var a = V(t), n = [B, T].indexOf(a) >= 0 ? -1 : 1, i = typeof r == "function" ? r(Object.assign({}, e, {
|
|
591
|
-
placement: t
|
|
592
|
-
})) : r, f = i[0], o = i[1];
|
|
593
|
-
return f = f || 0, o = (o || 0) * n, [B, W].indexOf(a) >= 0 ? {
|
|
594
|
-
x: o,
|
|
595
|
-
y: f
|
|
596
|
-
} : {
|
|
597
|
-
x: f,
|
|
598
|
-
y: o
|
|
599
|
-
};
|
|
600
|
-
}
|
|
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;
|
|
604
|
-
}, {}), o = f[e.placement], s = o.x, l = o.y;
|
|
605
|
-
e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += s, e.modifiersData.popperOffsets.y += l), e.modifiersData[a] = f;
|
|
606
|
-
}
|
|
607
|
-
const na = {
|
|
608
|
-
name: "offset",
|
|
609
|
-
enabled: !0,
|
|
610
|
-
phase: "main",
|
|
611
|
-
requires: ["popperOffsets"],
|
|
612
|
-
fn: vr
|
|
613
|
-
};
|
|
614
|
-
function gr(t) {
|
|
615
|
-
return t === "x" ? "y" : "x";
|
|
616
|
-
}
|
|
617
|
-
function br(t) {
|
|
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, {
|
|
619
|
-
boundary: s,
|
|
620
|
-
rootBoundary: l,
|
|
621
|
-
padding: h,
|
|
622
|
-
altBoundary: u
|
|
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, {
|
|
624
|
-
placement: e.placement
|
|
625
|
-
})) : g, S = typeof k == "number" ? {
|
|
626
|
-
mainAxis: k,
|
|
627
|
-
altAxis: k
|
|
628
|
-
} : Object.assign({
|
|
629
|
-
mainAxis: 0,
|
|
630
|
-
altAxis: 0
|
|
631
|
-
}, k), E = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, F = {
|
|
632
|
-
x: 0,
|
|
633
|
-
y: 0
|
|
634
|
-
};
|
|
635
|
-
if (m) {
|
|
636
|
-
if (i) {
|
|
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) : {
|
|
638
|
-
width: 0,
|
|
639
|
-
height: 0
|
|
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);
|
|
641
|
-
m[d] = Vt, F[d] = Vt - $;
|
|
642
|
-
}
|
|
643
|
-
if (o) {
|
|
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);
|
|
645
|
-
m[b] = Zt, F[b] = Zt - Q;
|
|
646
|
-
}
|
|
647
|
-
e.modifiersData[a] = F;
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
const ia = {
|
|
651
|
-
name: "preventOverflow",
|
|
652
|
-
enabled: !0,
|
|
653
|
-
phase: "main",
|
|
654
|
-
fn: br,
|
|
655
|
-
requiresIfExists: ["offset"]
|
|
656
|
-
};
|
|
657
|
-
function mr(t) {
|
|
658
|
-
return {
|
|
659
|
-
scrollLeft: t.scrollLeft,
|
|
660
|
-
scrollTop: t.scrollTop
|
|
661
|
-
};
|
|
662
|
-
}
|
|
663
|
-
function yr(t) {
|
|
664
|
-
return t === D(t) || !j(t) ? $t(t) : mr(t);
|
|
665
|
-
}
|
|
666
|
-
function xr(t) {
|
|
667
|
-
var e = t.getBoundingClientRect(), r = nt(e.width) / t.offsetWidth || 1, a = nt(e.height) / t.offsetHeight || 1;
|
|
668
|
-
return r !== 1 || a !== 1;
|
|
669
|
-
}
|
|
670
|
-
function wr(t, e, r) {
|
|
671
|
-
r === void 0 && (r = !1);
|
|
672
|
-
var a = j(e), n = j(e) && xr(e), i = G(e), f = it(t, n, r), o = {
|
|
673
|
-
scrollLeft: 0,
|
|
674
|
-
scrollTop: 0
|
|
675
|
-
}, s = {
|
|
676
|
-
x: 0,
|
|
677
|
-
y: 0
|
|
678
|
-
};
|
|
679
|
-
return (a || !a && !r) && ((U(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
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))), {
|
|
681
|
-
x: f.left + o.scrollLeft - s.x,
|
|
682
|
-
y: f.top + o.scrollTop - s.y,
|
|
683
|
-
width: f.width,
|
|
684
|
-
height: f.height
|
|
685
|
-
};
|
|
686
|
-
}
|
|
687
|
-
function Ar(t) {
|
|
688
|
-
var e = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), a = [];
|
|
689
|
-
t.forEach(function(i) {
|
|
690
|
-
e.set(i.name, i);
|
|
691
|
-
});
|
|
692
|
-
function n(i) {
|
|
693
|
-
r.add(i.name);
|
|
694
|
-
var f = [].concat(i.requires || [], i.requiresIfExists || []);
|
|
695
|
-
f.forEach(function(o) {
|
|
696
|
-
if (!r.has(o)) {
|
|
697
|
-
var s = e.get(o);
|
|
698
|
-
s && n(s);
|
|
699
|
-
}
|
|
700
|
-
}), a.push(i);
|
|
701
|
-
}
|
|
702
|
-
return t.forEach(function(i) {
|
|
703
|
-
r.has(i.name) || n(i);
|
|
704
|
-
}), a;
|
|
705
|
-
}
|
|
706
|
-
function _r(t) {
|
|
707
|
-
var e = Ar(t);
|
|
708
|
-
return qe.reduce(function(r, a) {
|
|
709
|
-
return r.concat(e.filter(function(n) {
|
|
710
|
-
return n.phase === a;
|
|
711
|
-
}));
|
|
712
|
-
}, []);
|
|
713
|
-
}
|
|
714
|
-
function Mr(t) {
|
|
715
|
-
var e;
|
|
716
|
-
return function() {
|
|
717
|
-
return e || (e = new Promise(function(r) {
|
|
718
|
-
Promise.resolve().then(function() {
|
|
719
|
-
e = void 0, r(t());
|
|
720
|
-
});
|
|
721
|
-
})), e;
|
|
722
|
-
};
|
|
723
|
-
}
|
|
724
|
-
function Or(t) {
|
|
725
|
-
var e = t.reduce(function(r, a) {
|
|
726
|
-
var n = r[a.name];
|
|
727
|
-
return r[a.name] = n ? Object.assign({}, n, a, {
|
|
728
|
-
options: Object.assign({}, n.options, a.options),
|
|
729
|
-
data: Object.assign({}, n.data, a.data)
|
|
730
|
-
}) : a, r;
|
|
731
|
-
}, {});
|
|
732
|
-
return Object.keys(e).map(function(r) {
|
|
733
|
-
return e[r];
|
|
734
|
-
});
|
|
735
|
-
}
|
|
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;
|
|
1489
|
-
}
|
|
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);
|
|
1494
|
-
}
|
|
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;
|
|
1503
|
-
}
|
|
1504
|
-
function Kr(t) {
|
|
1505
|
-
return typeof t == "string" && t.indexOf("%") != -1;
|
|
1506
|
-
}
|
|
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})$/
|
|
1533
|
-
};
|
|
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
|
|
1611
|
-
};
|
|
1612
|
-
}
|
|
1613
|
-
export {
|
|
1614
|
-
ra as a,
|
|
1615
|
-
ia as b,
|
|
1616
|
-
ea as c,
|
|
1617
|
-
sa as d,
|
|
1618
|
-
er as e,
|
|
1619
|
-
aa as f,
|
|
1620
|
-
ar as g,
|
|
1621
|
-
na as o,
|
|
1622
|
-
oa as p,
|
|
1623
|
-
c as t
|
|
1624
|
-
};
|