@devalok/shilp-sutra 0.27.2 → 0.28.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/dist/_chunks/primitives.js +58 -58
- package/dist/_chunks/vendor-client.js +977 -814
- package/dist/composed/multi-select-popover.js +18 -18
- package/dist/ui/color-input.d.ts +19 -5
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +371 -79
- package/dist/ui/dialog.js +4 -4
- package/dist/ui/dropdown-menu.js +31 -31
- package/dist/ui/label.js +1 -1
- package/dist/ui/popover.js +8 -8
- package/dist/ui/radio.js +1 -1
- package/dist/ui/select.js +5 -5
- package/dist/ui/separator.js +5 -5
- package/dist/ui/sheet.js +1 -1
- package/dist/ui/slider.js +1 -1
- package/dist/ui/switch.js +6 -6
- package/dist/ui/toggle-group.js +1 -1
- package/dist/ui/toggle.js +1 -1
- package/dist/ui/tooltip.js +4 -4
- package/docs/components/ui/color-input.md +58 -4
- package/llms-full.txt +59 -5
- package/llms.txt +1 -1
- package/package.json +2 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import { useState as
|
|
4
|
-
import * as
|
|
5
|
-
var
|
|
6
|
-
return
|
|
2
|
+
import * as b from "react";
|
|
3
|
+
import D, { useState as ye, useRef as J, useEffect as St, useCallback as je, useLayoutEffect as be, useMemo as Xe } from "react";
|
|
4
|
+
import * as Ye from "react-dom";
|
|
5
|
+
var z = function() {
|
|
6
|
+
return z = Object.assign || function(e) {
|
|
7
7
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
8
8
|
n = arguments[r];
|
|
9
9
|
for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
|
|
10
10
|
}
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, z.apply(this, arguments);
|
|
13
13
|
};
|
|
14
|
-
function
|
|
14
|
+
function xe(t, e) {
|
|
15
15
|
var n = {};
|
|
16
16
|
for (var r in t) Object.prototype.hasOwnProperty.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
|
|
17
17
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -19,17 +19,17 @@ function re(t, e) {
|
|
|
19
19
|
e.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(t, r[o]) && (n[r[o]] = t[r[o]]);
|
|
20
20
|
return n;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function qe(t, e, n) {
|
|
23
23
|
if (n || arguments.length === 2) for (var r = 0, o = e.length, i; r < o; r++)
|
|
24
24
|
(i || !(r in e)) && (i || (i = Array.prototype.slice.call(e, 0, r)), i[r] = e[r]);
|
|
25
25
|
return t.concat(i || Array.prototype.slice.call(e));
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
function
|
|
27
|
+
var yt = "right-scroll-bar-position", bt = "width-before-scroll-bar", Ke = "with-scroll-bars-hidden", Ze = "--removed-body-scroll-bar-size";
|
|
28
|
+
function Tt(t, e) {
|
|
29
29
|
return typeof t == "function" ? t(e) : t && (t.current = e), t;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
var n =
|
|
31
|
+
function Ue(t, e) {
|
|
32
|
+
var n = ye(function() {
|
|
33
33
|
return {
|
|
34
34
|
// value
|
|
35
35
|
value: t,
|
|
@@ -49,31 +49,31 @@ function Pe(t, e) {
|
|
|
49
49
|
})[0];
|
|
50
50
|
return n.callback = e, n.facade;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
54
|
-
var n =
|
|
52
|
+
var Qe = typeof window < "u" ? b.useLayoutEffect : b.useEffect, te = /* @__PURE__ */ new WeakMap();
|
|
53
|
+
function Ge(t, e) {
|
|
54
|
+
var n = Ue(null, function(r) {
|
|
55
55
|
return t.forEach(function(o) {
|
|
56
|
-
return
|
|
56
|
+
return Tt(o, r);
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
|
-
return
|
|
60
|
-
var r =
|
|
59
|
+
return Qe(function() {
|
|
60
|
+
var r = te.get(n);
|
|
61
61
|
if (r) {
|
|
62
62
|
var o = new Set(r), i = new Set(t), c = n.current;
|
|
63
|
-
o.forEach(function(
|
|
64
|
-
i.has(
|
|
65
|
-
}), i.forEach(function(
|
|
66
|
-
o.has(
|
|
63
|
+
o.forEach(function(a) {
|
|
64
|
+
i.has(a) || Tt(a, null);
|
|
65
|
+
}), i.forEach(function(a) {
|
|
66
|
+
o.has(a) || Tt(a, c);
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
te.set(n, t);
|
|
70
70
|
}, [t]), n;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Je(t) {
|
|
73
73
|
return t;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
e === void 0 && (e =
|
|
75
|
+
function tn(t, e) {
|
|
76
|
+
e === void 0 && (e = Je);
|
|
77
77
|
var n = [], r = !1, o = {
|
|
78
78
|
read: function() {
|
|
79
79
|
if (r)
|
|
@@ -83,8 +83,8 @@ function Te(t, e) {
|
|
|
83
83
|
useMedium: function(i) {
|
|
84
84
|
var c = e(i, r);
|
|
85
85
|
return n.push(c), function() {
|
|
86
|
-
n = n.filter(function(
|
|
87
|
-
return
|
|
86
|
+
n = n.filter(function(a) {
|
|
87
|
+
return a !== c;
|
|
88
88
|
});
|
|
89
89
|
};
|
|
90
90
|
},
|
|
@@ -94,8 +94,8 @@ function Te(t, e) {
|
|
|
94
94
|
n = [], c.forEach(i);
|
|
95
95
|
}
|
|
96
96
|
n = {
|
|
97
|
-
push: function(
|
|
98
|
-
return i(
|
|
97
|
+
push: function(a) {
|
|
98
|
+
return i(a);
|
|
99
99
|
},
|
|
100
100
|
filter: function() {
|
|
101
101
|
return n;
|
|
@@ -106,140 +106,140 @@ function Te(t, e) {
|
|
|
106
106
|
r = !0;
|
|
107
107
|
var c = [];
|
|
108
108
|
if (n.length) {
|
|
109
|
-
var
|
|
110
|
-
n = [],
|
|
109
|
+
var a = n;
|
|
110
|
+
n = [], a.forEach(i), c = n;
|
|
111
111
|
}
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
c = [],
|
|
115
|
-
},
|
|
116
|
-
return Promise.resolve().then(
|
|
112
|
+
var l = function() {
|
|
113
|
+
var u = c;
|
|
114
|
+
c = [], u.forEach(i);
|
|
115
|
+
}, s = function() {
|
|
116
|
+
return Promise.resolve().then(l);
|
|
117
117
|
};
|
|
118
|
-
|
|
119
|
-
push: function(
|
|
120
|
-
c.push(
|
|
118
|
+
s(), n = {
|
|
119
|
+
push: function(u) {
|
|
120
|
+
c.push(u), s();
|
|
121
121
|
},
|
|
122
|
-
filter: function(
|
|
123
|
-
return c = c.filter(
|
|
122
|
+
filter: function(u) {
|
|
123
|
+
return c = c.filter(u), n;
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
return o;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function en(t) {
|
|
131
131
|
t === void 0 && (t = {});
|
|
132
|
-
var e =
|
|
133
|
-
return e.options =
|
|
132
|
+
var e = tn(null);
|
|
133
|
+
return e.options = z({ async: !0, ssr: !1 }, t), e;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
var e = t.sideCar, n =
|
|
135
|
+
var Se = function(t) {
|
|
136
|
+
var e = t.sideCar, n = xe(t, ["sideCar"]);
|
|
137
137
|
if (!e)
|
|
138
138
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
139
139
|
var r = e.read();
|
|
140
140
|
if (!r)
|
|
141
141
|
throw new Error("Sidecar medium not found");
|
|
142
|
-
return
|
|
142
|
+
return b.createElement(r, z({}, n));
|
|
143
143
|
};
|
|
144
|
-
|
|
145
|
-
function
|
|
146
|
-
return t.useMedium(e),
|
|
147
|
-
}
|
|
148
|
-
var
|
|
149
|
-
},
|
|
150
|
-
var n =
|
|
151
|
-
onScrollCapture:
|
|
152
|
-
onWheelCapture:
|
|
153
|
-
onTouchMoveCapture:
|
|
154
|
-
}), o = r[0], i = r[1], c = t.forwardProps,
|
|
155
|
-
return
|
|
156
|
-
|
|
144
|
+
Se.isSideCarExport = !0;
|
|
145
|
+
function nn(t, e) {
|
|
146
|
+
return t.useMedium(e), Se;
|
|
147
|
+
}
|
|
148
|
+
var Ce = en(), Dt = function() {
|
|
149
|
+
}, Ot = b.forwardRef(function(t, e) {
|
|
150
|
+
var n = b.useRef(null), r = b.useState({
|
|
151
|
+
onScrollCapture: Dt,
|
|
152
|
+
onWheelCapture: Dt,
|
|
153
|
+
onTouchMoveCapture: Dt
|
|
154
|
+
}), o = r[0], i = r[1], c = t.forwardProps, a = t.children, l = t.className, s = t.removeScrollBar, u = t.enabled, f = t.shards, m = t.sideCar, h = t.noRelative, p = t.noIsolation, d = t.inert, v = t.allowPinchZoom, g = t.as, w = g === void 0 ? "div" : g, y = t.gapMode, x = xe(t, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = m, C = Ge([n, e]), R = z(z({}, x), o);
|
|
155
|
+
return b.createElement(
|
|
156
|
+
b.Fragment,
|
|
157
157
|
null,
|
|
158
|
-
|
|
159
|
-
c ?
|
|
158
|
+
u && b.createElement(S, { sideCar: Ce, removeScrollBar: s, shards: f, noRelative: h, noIsolation: p, inert: d, setCallbacks: i, allowPinchZoom: !!v, lockRef: n, gapMode: y }),
|
|
159
|
+
c ? b.cloneElement(b.Children.only(a), z(z({}, R), { ref: C })) : b.createElement(w, z({}, R, { className: l, ref: C }), a)
|
|
160
160
|
);
|
|
161
161
|
});
|
|
162
|
-
|
|
162
|
+
Ot.defaultProps = {
|
|
163
163
|
enabled: !0,
|
|
164
164
|
removeScrollBar: !0,
|
|
165
165
|
inert: !1
|
|
166
166
|
};
|
|
167
|
-
|
|
168
|
-
fullWidth:
|
|
169
|
-
zeroRight:
|
|
167
|
+
Ot.classNames = {
|
|
168
|
+
fullWidth: bt,
|
|
169
|
+
zeroRight: yt
|
|
170
170
|
};
|
|
171
|
-
var
|
|
171
|
+
var rn = function() {
|
|
172
172
|
if (typeof __webpack_nonce__ < "u")
|
|
173
173
|
return __webpack_nonce__;
|
|
174
174
|
};
|
|
175
|
-
function
|
|
175
|
+
function on() {
|
|
176
176
|
if (typeof document === "undefined")
|
|
177
177
|
return null;
|
|
178
178
|
var t = document.createElement("style");
|
|
179
179
|
t.type = "text/css";
|
|
180
|
-
var e =
|
|
180
|
+
var e = rn();
|
|
181
181
|
return e && t.setAttribute("nonce", e), t;
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function cn(t, e) {
|
|
184
184
|
t.styleSheet ? t.styleSheet.cssText = e : t.appendChild(document.createTextNode(e));
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function an(t) {
|
|
187
187
|
var e = document.head || document.getElementsByTagName("head")[0];
|
|
188
188
|
e.appendChild(t);
|
|
189
189
|
}
|
|
190
|
-
var
|
|
190
|
+
var sn = function() {
|
|
191
191
|
var t = 0, e = null;
|
|
192
192
|
return {
|
|
193
193
|
add: function(n) {
|
|
194
|
-
t == 0 && (e =
|
|
194
|
+
t == 0 && (e = on()) && (cn(e, n), an(e)), t++;
|
|
195
195
|
},
|
|
196
196
|
remove: function() {
|
|
197
197
|
t--, !t && e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
},
|
|
201
|
-
var t =
|
|
200
|
+
}, ln = function() {
|
|
201
|
+
var t = sn();
|
|
202
202
|
return function(e, n) {
|
|
203
|
-
|
|
203
|
+
b.useEffect(function() {
|
|
204
204
|
return t.add(e), function() {
|
|
205
205
|
t.remove();
|
|
206
206
|
};
|
|
207
207
|
}, [e && n]);
|
|
208
208
|
};
|
|
209
|
-
},
|
|
210
|
-
var t =
|
|
209
|
+
}, Re = function() {
|
|
210
|
+
var t = ln(), e = function(n) {
|
|
211
211
|
var r = n.styles, o = n.dynamic;
|
|
212
212
|
return t(r, o), null;
|
|
213
213
|
};
|
|
214
214
|
return e;
|
|
215
|
-
},
|
|
215
|
+
}, un = {
|
|
216
216
|
left: 0,
|
|
217
217
|
top: 0,
|
|
218
218
|
right: 0,
|
|
219
219
|
gap: 0
|
|
220
|
-
},
|
|
220
|
+
}, Nt = function(t) {
|
|
221
221
|
return parseInt(t || "", 10) || 0;
|
|
222
|
-
},
|
|
222
|
+
}, fn = function(t) {
|
|
223
223
|
var e = window.getComputedStyle(document.body), n = e[t === "padding" ? "paddingLeft" : "marginLeft"], r = e[t === "padding" ? "paddingTop" : "marginTop"], o = e[t === "padding" ? "paddingRight" : "marginRight"];
|
|
224
|
-
return [
|
|
225
|
-
},
|
|
224
|
+
return [Nt(n), Nt(r), Nt(o)];
|
|
225
|
+
}, dn = function(t) {
|
|
226
226
|
if (t === void 0 && (t = "margin"), typeof window > "u")
|
|
227
|
-
return
|
|
228
|
-
var e =
|
|
227
|
+
return un;
|
|
228
|
+
var e = fn(t), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
229
229
|
return {
|
|
230
230
|
left: e[0],
|
|
231
231
|
top: e[1],
|
|
232
232
|
right: e[2],
|
|
233
233
|
gap: Math.max(0, r - n + e[2] - e[0])
|
|
234
234
|
};
|
|
235
|
-
},
|
|
236
|
-
var o = t.left, i = t.top, c = t.right,
|
|
235
|
+
}, hn = Re(), ot = "data-scroll-locked", mn = function(t, e, n, r) {
|
|
236
|
+
var o = t.left, i = t.top, c = t.right, a = t.gap;
|
|
237
237
|
return n === void 0 && (n = "margin"), `
|
|
238
|
-
.`.concat(
|
|
238
|
+
.`.concat(Ke, ` {
|
|
239
239
|
overflow: hidden `).concat(r, `;
|
|
240
|
-
padding-right: `).concat(
|
|
240
|
+
padding-right: `).concat(a, "px ").concat(r, `;
|
|
241
241
|
}
|
|
242
|
-
body[`).concat(
|
|
242
|
+
body[`).concat(ot, `] {
|
|
243
243
|
overflow: hidden `).concat(r, `;
|
|
244
244
|
overscroll-behavior: contain;
|
|
245
245
|
`).concat([
|
|
@@ -250,354 +250,516 @@ var He = function() {
|
|
|
250
250
|
padding-right: `).concat(c, `px;
|
|
251
251
|
margin-left:0;
|
|
252
252
|
margin-top:0;
|
|
253
|
-
margin-right: `).concat(
|
|
253
|
+
margin-right: `).concat(a, "px ").concat(r, `;
|
|
254
254
|
`),
|
|
255
|
-
n === "padding" && "padding-right: ".concat(
|
|
255
|
+
n === "padding" && "padding-right: ".concat(a, "px ").concat(r, ";")
|
|
256
256
|
].filter(Boolean).join(""), `
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
.`).concat(
|
|
260
|
-
right: `).concat(
|
|
259
|
+
.`).concat(yt, ` {
|
|
260
|
+
right: `).concat(a, "px ").concat(r, `;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
.`).concat(
|
|
264
|
-
margin-right: `).concat(
|
|
263
|
+
.`).concat(bt, ` {
|
|
264
|
+
margin-right: `).concat(a, "px ").concat(r, `;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
.`).concat(
|
|
267
|
+
.`).concat(yt, " .").concat(yt, ` {
|
|
268
268
|
right: 0 `).concat(r, `;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
.`).concat(
|
|
271
|
+
.`).concat(bt, " .").concat(bt, ` {
|
|
272
272
|
margin-right: 0 `).concat(r, `;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
body[`).concat(
|
|
276
|
-
`).concat(
|
|
275
|
+
body[`).concat(ot, `] {
|
|
276
|
+
`).concat(Ze, ": ").concat(a, `px;
|
|
277
277
|
}
|
|
278
278
|
`);
|
|
279
|
-
},
|
|
280
|
-
var t = parseInt(document.body.getAttribute(
|
|
279
|
+
}, ee = function() {
|
|
280
|
+
var t = parseInt(document.body.getAttribute(ot) || "0", 10);
|
|
281
281
|
return isFinite(t) ? t : 0;
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
return document.body.setAttribute(
|
|
285
|
-
var t =
|
|
286
|
-
t <= 0 ? document.body.removeAttribute(
|
|
282
|
+
}, vn = function() {
|
|
283
|
+
b.useEffect(function() {
|
|
284
|
+
return document.body.setAttribute(ot, (ee() + 1).toString()), function() {
|
|
285
|
+
var t = ee() - 1;
|
|
286
|
+
t <= 0 ? document.body.removeAttribute(ot) : document.body.setAttribute(ot, t.toString());
|
|
287
287
|
};
|
|
288
288
|
}, []);
|
|
289
|
-
},
|
|
289
|
+
}, gn = function(t) {
|
|
290
290
|
var e = t.noRelative, n = t.noImportant, r = t.gapMode, o = r === void 0 ? "margin" : r;
|
|
291
|
-
|
|
292
|
-
var i =
|
|
293
|
-
return
|
|
291
|
+
vn();
|
|
292
|
+
var i = b.useMemo(function() {
|
|
293
|
+
return dn(o);
|
|
294
294
|
}, [o]);
|
|
295
|
-
return
|
|
296
|
-
},
|
|
295
|
+
return b.createElement(hn, { styles: mn(i, !e, o, n ? "" : "!important") });
|
|
296
|
+
}, Ht = !1;
|
|
297
297
|
if (typeof window < "u")
|
|
298
298
|
try {
|
|
299
|
-
var
|
|
299
|
+
var ht = Object.defineProperty({}, "passive", {
|
|
300
300
|
get: function() {
|
|
301
|
-
return
|
|
301
|
+
return Ht = !0, !0;
|
|
302
302
|
}
|
|
303
303
|
});
|
|
304
|
-
window.addEventListener("test",
|
|
304
|
+
window.addEventListener("test", ht, ht), window.removeEventListener("test", ht, ht);
|
|
305
305
|
} catch {
|
|
306
|
-
|
|
306
|
+
Ht = !1;
|
|
307
307
|
}
|
|
308
|
-
var
|
|
308
|
+
var et = Ht ? { passive: !1 } : !1, pn = function(t) {
|
|
309
309
|
return t.tagName === "TEXTAREA";
|
|
310
|
-
},
|
|
310
|
+
}, Ee = function(t, e) {
|
|
311
311
|
if (!(t instanceof Element))
|
|
312
312
|
return !1;
|
|
313
313
|
var n = window.getComputedStyle(t);
|
|
314
314
|
return (
|
|
315
315
|
// not-not-scrollable
|
|
316
316
|
n[e] !== "hidden" && // contains scroll inside self
|
|
317
|
-
!(n.overflowY === n.overflowX && !
|
|
317
|
+
!(n.overflowY === n.overflowX && !pn(t) && n[e] === "visible")
|
|
318
318
|
);
|
|
319
|
-
},
|
|
320
|
-
return
|
|
321
|
-
},
|
|
322
|
-
return
|
|
323
|
-
},
|
|
319
|
+
}, wn = function(t) {
|
|
320
|
+
return Ee(t, "overflowY");
|
|
321
|
+
}, yn = function(t) {
|
|
322
|
+
return Ee(t, "overflowX");
|
|
323
|
+
}, ne = function(t, e) {
|
|
324
324
|
var n = e.ownerDocument, r = e;
|
|
325
325
|
do {
|
|
326
326
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
327
|
-
var o =
|
|
327
|
+
var o = Ae(t, r);
|
|
328
328
|
if (o) {
|
|
329
|
-
var i =
|
|
330
|
-
if (c >
|
|
329
|
+
var i = Oe(t, r), c = i[1], a = i[2];
|
|
330
|
+
if (c > a)
|
|
331
331
|
return !0;
|
|
332
332
|
}
|
|
333
333
|
r = r.parentNode;
|
|
334
334
|
} while (r && r !== n.body);
|
|
335
335
|
return !1;
|
|
336
|
-
},
|
|
336
|
+
}, bn = function(t) {
|
|
337
337
|
var e = t.scrollTop, n = t.scrollHeight, r = t.clientHeight;
|
|
338
338
|
return [
|
|
339
339
|
e,
|
|
340
340
|
n,
|
|
341
341
|
r
|
|
342
342
|
];
|
|
343
|
-
},
|
|
343
|
+
}, xn = function(t) {
|
|
344
344
|
var e = t.scrollLeft, n = t.scrollWidth, r = t.clientWidth;
|
|
345
345
|
return [
|
|
346
346
|
e,
|
|
347
347
|
n,
|
|
348
348
|
r
|
|
349
349
|
];
|
|
350
|
-
},
|
|
351
|
-
return t === "v" ?
|
|
352
|
-
},
|
|
353
|
-
return t === "v" ?
|
|
354
|
-
},
|
|
350
|
+
}, Ae = function(t, e) {
|
|
351
|
+
return t === "v" ? wn(e) : yn(e);
|
|
352
|
+
}, Oe = function(t, e) {
|
|
353
|
+
return t === "v" ? bn(e) : xn(e);
|
|
354
|
+
}, Sn = function(t, e) {
|
|
355
355
|
return t === "h" && e === "rtl" ? -1 : 1;
|
|
356
|
-
},
|
|
357
|
-
var i =
|
|
356
|
+
}, Cn = function(t, e, n, r, o) {
|
|
357
|
+
var i = Sn(t, window.getComputedStyle(e).direction), c = i * r, a = n.target, l = e.contains(a), s = !1, u = c > 0, f = 0, m = 0;
|
|
358
358
|
do {
|
|
359
|
-
if (!
|
|
359
|
+
if (!a)
|
|
360
360
|
break;
|
|
361
|
-
var h =
|
|
362
|
-
(
|
|
363
|
-
var
|
|
364
|
-
|
|
361
|
+
var h = Oe(t, a), p = h[0], d = h[1], v = h[2], g = d - v - i * p;
|
|
362
|
+
(p || g) && Ae(t, a) && (f += g, m += p);
|
|
363
|
+
var w = a.parentNode;
|
|
364
|
+
a = w && w.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? w.host : w;
|
|
365
365
|
} while (
|
|
366
366
|
// portaled content
|
|
367
|
-
!
|
|
368
|
-
|
|
367
|
+
!l && a !== document.body || // self content
|
|
368
|
+
l && (e.contains(a) || e === a)
|
|
369
369
|
);
|
|
370
|
-
return (
|
|
371
|
-
},
|
|
370
|
+
return (u && Math.abs(f) < 1 || !u && Math.abs(m) < 1) && (s = !0), s;
|
|
371
|
+
}, mt = function(t) {
|
|
372
372
|
return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
|
|
373
|
-
},
|
|
373
|
+
}, re = function(t) {
|
|
374
374
|
return [t.deltaX, t.deltaY];
|
|
375
|
-
},
|
|
375
|
+
}, oe = function(t) {
|
|
376
376
|
return t && "current" in t ? t.current : t;
|
|
377
|
-
},
|
|
377
|
+
}, Rn = function(t, e) {
|
|
378
378
|
return t[0] === e[0] && t[1] === e[1];
|
|
379
|
-
},
|
|
379
|
+
}, En = function(t) {
|
|
380
380
|
return `
|
|
381
381
|
.block-interactivity-`.concat(t, ` {pointer-events: none;}
|
|
382
382
|
.allow-interactivity-`).concat(t, ` {pointer-events: all;}
|
|
383
383
|
`);
|
|
384
|
-
},
|
|
385
|
-
function
|
|
386
|
-
var e =
|
|
387
|
-
|
|
384
|
+
}, An = 0, nt = [];
|
|
385
|
+
function On(t) {
|
|
386
|
+
var e = b.useRef([]), n = b.useRef([0, 0]), r = b.useRef(), o = b.useState(An++)[0], i = b.useState(Re)[0], c = b.useRef(t);
|
|
387
|
+
b.useEffect(function() {
|
|
388
388
|
c.current = t;
|
|
389
|
-
}, [t]),
|
|
389
|
+
}, [t]), b.useEffect(function() {
|
|
390
390
|
if (t.inert) {
|
|
391
391
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
392
|
-
var d =
|
|
393
|
-
return d.forEach(function(
|
|
394
|
-
return
|
|
392
|
+
var d = qe([t.lockRef.current], (t.shards || []).map(oe), !0).filter(Boolean);
|
|
393
|
+
return d.forEach(function(v) {
|
|
394
|
+
return v.classList.add("allow-interactivity-".concat(o));
|
|
395
395
|
}), function() {
|
|
396
|
-
document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(
|
|
397
|
-
return
|
|
396
|
+
document.body.classList.remove("block-interactivity-".concat(o)), d.forEach(function(v) {
|
|
397
|
+
return v.classList.remove("allow-interactivity-".concat(o));
|
|
398
398
|
});
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
401
|
}, [t.inert, t.lockRef.current, t.shards]);
|
|
402
|
-
var
|
|
402
|
+
var a = b.useCallback(function(d, v) {
|
|
403
403
|
if ("touches" in d && d.touches.length === 2 || d.type === "wheel" && d.ctrlKey)
|
|
404
404
|
return !c.current.allowPinchZoom;
|
|
405
|
-
var
|
|
405
|
+
var g = mt(d), w = n.current, y = "deltaX" in d ? d.deltaX : w[0] - g[0], x = "deltaY" in d ? d.deltaY : w[1] - g[1], S, C = d.target, R = Math.abs(y) > Math.abs(x) ? "h" : "v";
|
|
406
406
|
if ("touches" in d && R === "h" && C.type === "range")
|
|
407
407
|
return !1;
|
|
408
|
-
var
|
|
408
|
+
var M = window.getSelection(), P = M && M.anchorNode, O = P ? P === C || P.contains(C) : !1;
|
|
409
409
|
if (O)
|
|
410
410
|
return !1;
|
|
411
|
-
var
|
|
412
|
-
if (!
|
|
411
|
+
var k = ne(R, C);
|
|
412
|
+
if (!k)
|
|
413
413
|
return !0;
|
|
414
|
-
if (
|
|
414
|
+
if (k ? S = R : (S = R === "v" ? "h" : "v", k = ne(R, C)), !k)
|
|
415
415
|
return !1;
|
|
416
|
-
if (!r.current && "changedTouches" in d && (
|
|
416
|
+
if (!r.current && "changedTouches" in d && (y || x) && (r.current = S), !S)
|
|
417
417
|
return !0;
|
|
418
418
|
var T = r.current || S;
|
|
419
|
-
return
|
|
420
|
-
}, []),
|
|
421
|
-
var
|
|
422
|
-
if (!(!
|
|
423
|
-
var
|
|
424
|
-
return S.name ===
|
|
419
|
+
return Cn(T, v, d, T === "h" ? y : x);
|
|
420
|
+
}, []), l = b.useCallback(function(d) {
|
|
421
|
+
var v = d;
|
|
422
|
+
if (!(!nt.length || nt[nt.length - 1] !== i)) {
|
|
423
|
+
var g = "deltaY" in v ? re(v) : mt(v), w = e.current.filter(function(S) {
|
|
424
|
+
return S.name === v.type && (S.target === v.target || v.target === S.shadowParent) && Rn(S.delta, g);
|
|
425
425
|
})[0];
|
|
426
|
-
if (
|
|
427
|
-
|
|
426
|
+
if (w && w.should) {
|
|
427
|
+
v.cancelable && v.preventDefault();
|
|
428
428
|
return;
|
|
429
429
|
}
|
|
430
|
-
if (!
|
|
431
|
-
var
|
|
432
|
-
return S.contains(
|
|
433
|
-
}),
|
|
434
|
-
|
|
430
|
+
if (!w) {
|
|
431
|
+
var y = (c.current.shards || []).map(oe).filter(Boolean).filter(function(S) {
|
|
432
|
+
return S.contains(v.target);
|
|
433
|
+
}), x = y.length > 0 ? a(v, y[0]) : !c.current.noIsolation;
|
|
434
|
+
x && v.cancelable && v.preventDefault();
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
|
-
}, []),
|
|
438
|
-
var
|
|
439
|
-
e.current.push(
|
|
440
|
-
e.current = e.current.filter(function(
|
|
441
|
-
return
|
|
437
|
+
}, []), s = b.useCallback(function(d, v, g, w) {
|
|
438
|
+
var y = { name: d, delta: v, target: g, should: w, shadowParent: Mn(g) };
|
|
439
|
+
e.current.push(y), setTimeout(function() {
|
|
440
|
+
e.current = e.current.filter(function(x) {
|
|
441
|
+
return x !== y;
|
|
442
442
|
});
|
|
443
443
|
}, 1);
|
|
444
|
-
}, []),
|
|
445
|
-
n.current =
|
|
446
|
-
}, []),
|
|
447
|
-
|
|
448
|
-
}, []), m =
|
|
449
|
-
|
|
444
|
+
}, []), u = b.useCallback(function(d) {
|
|
445
|
+
n.current = mt(d), r.current = void 0;
|
|
446
|
+
}, []), f = b.useCallback(function(d) {
|
|
447
|
+
s(d.type, re(d), d.target, a(d, t.lockRef.current));
|
|
448
|
+
}, []), m = b.useCallback(function(d) {
|
|
449
|
+
s(d.type, mt(d), d.target, a(d, t.lockRef.current));
|
|
450
450
|
}, []);
|
|
451
|
-
|
|
452
|
-
return
|
|
453
|
-
onScrollCapture:
|
|
454
|
-
onWheelCapture:
|
|
451
|
+
b.useEffect(function() {
|
|
452
|
+
return nt.push(i), t.setCallbacks({
|
|
453
|
+
onScrollCapture: f,
|
|
454
|
+
onWheelCapture: f,
|
|
455
455
|
onTouchMoveCapture: m
|
|
456
|
-
}), document.addEventListener("wheel",
|
|
457
|
-
|
|
456
|
+
}), document.addEventListener("wheel", l, et), document.addEventListener("touchmove", l, et), document.addEventListener("touchstart", u, et), function() {
|
|
457
|
+
nt = nt.filter(function(d) {
|
|
458
458
|
return d !== i;
|
|
459
|
-
}), document.removeEventListener("wheel",
|
|
459
|
+
}), document.removeEventListener("wheel", l, et), document.removeEventListener("touchmove", l, et), document.removeEventListener("touchstart", u, et);
|
|
460
460
|
};
|
|
461
461
|
}, []);
|
|
462
|
-
var h = t.removeScrollBar,
|
|
463
|
-
return
|
|
464
|
-
|
|
462
|
+
var h = t.removeScrollBar, p = t.inert;
|
|
463
|
+
return b.createElement(
|
|
464
|
+
b.Fragment,
|
|
465
465
|
null,
|
|
466
|
-
|
|
467
|
-
h ?
|
|
466
|
+
p ? b.createElement(i, { styles: En(o) }) : null,
|
|
467
|
+
h ? b.createElement(gn, { noRelative: t.noRelative, gapMode: t.gapMode }) : null
|
|
468
468
|
);
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Mn(t) {
|
|
471
471
|
for (var e = null; t !== null; )
|
|
472
472
|
t instanceof ShadowRoot && (e = t.host, t = t.host), t = t.parentNode;
|
|
473
473
|
return e;
|
|
474
474
|
}
|
|
475
|
-
const
|
|
476
|
-
var
|
|
477
|
-
return
|
|
475
|
+
const kn = nn(Ce, On);
|
|
476
|
+
var _n = b.forwardRef(function(t, e) {
|
|
477
|
+
return b.createElement(Ot, z({}, t, { ref: e, sideCar: kn }));
|
|
478
478
|
});
|
|
479
|
-
|
|
480
|
-
var
|
|
479
|
+
_n.classNames = Ot.classNames;
|
|
480
|
+
var Ln = function(t) {
|
|
481
481
|
if (typeof document > "u")
|
|
482
482
|
return null;
|
|
483
483
|
var e = Array.isArray(t) ? t[0] : t;
|
|
484
484
|
return e.ownerDocument.body;
|
|
485
|
-
},
|
|
486
|
-
return t && (t.host ||
|
|
487
|
-
},
|
|
485
|
+
}, rt = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), gt = {}, Wt = 0, Me = function(t) {
|
|
486
|
+
return t && (t.host || Me(t.parentNode));
|
|
487
|
+
}, Pn = function(t, e) {
|
|
488
488
|
return e.map(function(n) {
|
|
489
489
|
if (t.contains(n))
|
|
490
490
|
return n;
|
|
491
|
-
var r =
|
|
491
|
+
var r = Me(n);
|
|
492
492
|
return r && t.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", t, ". Doing nothing"), null);
|
|
493
493
|
}).filter(function(n) {
|
|
494
494
|
return !!n;
|
|
495
495
|
});
|
|
496
|
-
},
|
|
497
|
-
var o =
|
|
498
|
-
|
|
499
|
-
var i =
|
|
500
|
-
!
|
|
496
|
+
}, Tn = function(t, e, n, r) {
|
|
497
|
+
var o = Pn(e, Array.isArray(t) ? t : [t]);
|
|
498
|
+
gt[n] || (gt[n] = /* @__PURE__ */ new WeakMap());
|
|
499
|
+
var i = gt[n], c = [], a = /* @__PURE__ */ new Set(), l = new Set(o), s = function(f) {
|
|
500
|
+
!f || a.has(f) || (a.add(f), s(f.parentNode));
|
|
501
501
|
};
|
|
502
|
-
o.forEach(
|
|
503
|
-
var
|
|
504
|
-
!
|
|
505
|
-
if (
|
|
506
|
-
|
|
502
|
+
o.forEach(s);
|
|
503
|
+
var u = function(f) {
|
|
504
|
+
!f || l.has(f) || Array.prototype.forEach.call(f.children, function(m) {
|
|
505
|
+
if (a.has(m))
|
|
506
|
+
u(m);
|
|
507
507
|
else
|
|
508
508
|
try {
|
|
509
|
-
var h = m.getAttribute(r),
|
|
510
|
-
|
|
511
|
-
} catch (
|
|
512
|
-
console.error("aria-hidden: cannot operate on ", m,
|
|
509
|
+
var h = m.getAttribute(r), p = h !== null && h !== "false", d = (rt.get(m) || 0) + 1, v = (i.get(m) || 0) + 1;
|
|
510
|
+
rt.set(m, d), i.set(m, v), c.push(m), d === 1 && p && vt.set(m, !0), v === 1 && m.setAttribute(n, "true"), p || m.setAttribute(r, "true");
|
|
511
|
+
} catch (g) {
|
|
512
|
+
console.error("aria-hidden: cannot operate on ", m, g);
|
|
513
513
|
}
|
|
514
514
|
});
|
|
515
515
|
};
|
|
516
|
-
return
|
|
517
|
-
c.forEach(function(
|
|
518
|
-
var m =
|
|
519
|
-
|
|
520
|
-
}),
|
|
516
|
+
return u(e), a.clear(), Wt++, function() {
|
|
517
|
+
c.forEach(function(f) {
|
|
518
|
+
var m = rt.get(f) - 1, h = i.get(f) - 1;
|
|
519
|
+
rt.set(f, m), i.set(f, h), m || (vt.has(f) || f.removeAttribute(r), vt.delete(f)), h || f.removeAttribute(n);
|
|
520
|
+
}), Wt--, Wt || (rt = /* @__PURE__ */ new WeakMap(), rt = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), gt = {});
|
|
521
521
|
};
|
|
522
|
-
},
|
|
522
|
+
}, Gr = function(t, e, n) {
|
|
523
523
|
n === void 0 && (n = "data-aria-hidden");
|
|
524
|
-
var r = Array.from(Array.isArray(t) ? t : [t]), o =
|
|
525
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
524
|
+
var r = Array.from(Array.isArray(t) ? t : [t]), o = Ln(t);
|
|
525
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), Tn(r, o, n, "aria-hidden")) : function() {
|
|
526
526
|
return null;
|
|
527
527
|
};
|
|
528
528
|
};
|
|
529
|
-
|
|
529
|
+
function Mt() {
|
|
530
|
+
return (Mt = Object.assign || function(t) {
|
|
531
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
532
|
+
var n = arguments[e];
|
|
533
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
534
|
+
}
|
|
535
|
+
return t;
|
|
536
|
+
}).apply(this, arguments);
|
|
537
|
+
}
|
|
538
|
+
function ke(t, e) {
|
|
539
|
+
if (t == null) return {};
|
|
540
|
+
var n, r, o = {}, i = Object.keys(t);
|
|
541
|
+
for (r = 0; r < i.length; r++) e.indexOf(n = i[r]) >= 0 || (o[n] = t[n]);
|
|
542
|
+
return o;
|
|
543
|
+
}
|
|
544
|
+
function It(t) {
|
|
545
|
+
var e = J(t), n = J(function(r) {
|
|
546
|
+
e.current && e.current(r);
|
|
547
|
+
});
|
|
548
|
+
return e.current = t, n.current;
|
|
549
|
+
}
|
|
550
|
+
var ut = function(t, e, n) {
|
|
551
|
+
return e === void 0 && (e = 0), n === void 0 && (n = 1), t > n ? n : t < e ? e : t;
|
|
552
|
+
}, lt = function(t) {
|
|
553
|
+
return "touches" in t;
|
|
554
|
+
}, Vt = function(t) {
|
|
555
|
+
return t && t.ownerDocument.defaultView || self;
|
|
556
|
+
}, ie = function(t, e, n) {
|
|
557
|
+
var r = t.getBoundingClientRect(), o = lt(e) ? function(i, c) {
|
|
558
|
+
for (var a = 0; a < i.length; a++) if (i[a].identifier === c) return i[a];
|
|
559
|
+
return i[0];
|
|
560
|
+
}(e.touches, n) : e;
|
|
561
|
+
return { left: ut((o.pageX - (r.left + Vt(t).pageXOffset)) / r.width), top: ut((o.pageY - (r.top + Vt(t).pageYOffset)) / r.height) };
|
|
562
|
+
}, ce = function(t) {
|
|
563
|
+
!lt(t) && t.preventDefault();
|
|
564
|
+
}, _e = D.memo(function(t) {
|
|
565
|
+
var e = t.onMove, n = t.onKey, r = ke(t, ["onMove", "onKey"]), o = J(null), i = It(e), c = It(n), a = J(null), l = J(!1), s = Xe(function() {
|
|
566
|
+
var h = function(v) {
|
|
567
|
+
ce(v), (lt(v) ? v.touches.length > 0 : v.buttons > 0) && o.current ? i(ie(o.current, v, a.current)) : d(!1);
|
|
568
|
+
}, p = function() {
|
|
569
|
+
return d(!1);
|
|
570
|
+
};
|
|
571
|
+
function d(v) {
|
|
572
|
+
var g = l.current, w = Vt(o.current), y = v ? w.addEventListener : w.removeEventListener;
|
|
573
|
+
y(g ? "touchmove" : "mousemove", h), y(g ? "touchend" : "mouseup", p);
|
|
574
|
+
}
|
|
575
|
+
return [function(v) {
|
|
576
|
+
var g = v.nativeEvent, w = o.current;
|
|
577
|
+
if (w && (ce(g), !function(x, S) {
|
|
578
|
+
return S && !lt(x);
|
|
579
|
+
}(g, l.current) && w)) {
|
|
580
|
+
if (lt(g)) {
|
|
581
|
+
l.current = !0;
|
|
582
|
+
var y = g.changedTouches || [];
|
|
583
|
+
y.length && (a.current = y[0].identifier);
|
|
584
|
+
}
|
|
585
|
+
w.focus(), i(ie(w, g, a.current)), d(!0);
|
|
586
|
+
}
|
|
587
|
+
}, function(v) {
|
|
588
|
+
var g = v.which || v.keyCode;
|
|
589
|
+
g < 37 || g > 40 || (v.preventDefault(), c({ left: g === 39 ? 0.05 : g === 37 ? -0.05 : 0, top: g === 40 ? 0.05 : g === 38 ? -0.05 : 0 }));
|
|
590
|
+
}, d];
|
|
591
|
+
}, [c, i]), u = s[0], f = s[1], m = s[2];
|
|
592
|
+
return St(function() {
|
|
593
|
+
return m;
|
|
594
|
+
}, [m]), D.createElement("div", Mt({}, r, { onTouchStart: u, onMouseDown: u, className: "react-colorful__interactive", ref: o, onKeyDown: f, tabIndex: 0, role: "slider" }));
|
|
595
|
+
}), qt = function(t) {
|
|
596
|
+
return t.filter(Boolean).join(" ");
|
|
597
|
+
}, Le = function(t) {
|
|
598
|
+
var e = t.color, n = t.left, r = t.top, o = r === void 0 ? 0.5 : r, i = qt(["react-colorful__pointer", t.className]);
|
|
599
|
+
return D.createElement("div", { className: i, style: { top: 100 * o + "%", left: 100 * n + "%" } }, D.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: e } }));
|
|
600
|
+
}, L = function(t, e, n) {
|
|
601
|
+
return e === void 0 && (e = 0), n === void 0 && (n = Math.pow(10, e)), Math.round(n * t) / n;
|
|
602
|
+
}, Dn = function(t) {
|
|
603
|
+
return Hn($t(t));
|
|
604
|
+
}, $t = function(t) {
|
|
605
|
+
return t[0] === "#" && (t = t.substring(1)), t.length < 6 ? { r: parseInt(t[0] + t[0], 16), g: parseInt(t[1] + t[1], 16), b: parseInt(t[2] + t[2], 16), a: t.length === 4 ? L(parseInt(t[3] + t[3], 16) / 255, 2) : 1 } : { r: parseInt(t.substring(0, 2), 16), g: parseInt(t.substring(2, 4), 16), b: parseInt(t.substring(4, 6), 16), a: t.length === 8 ? L(parseInt(t.substring(6, 8), 16) / 255, 2) : 1 };
|
|
606
|
+
}, Nn = function(t) {
|
|
607
|
+
return Fn(Bn(t));
|
|
608
|
+
}, Wn = function(t) {
|
|
609
|
+
var e = t.s, n = t.v, r = t.a, o = (200 - e) * n / 100;
|
|
610
|
+
return { h: L(t.h), s: L(o > 0 && o < 200 ? e * n / 100 / (o <= 100 ? o : 200 - o) * 100 : 0), l: L(o / 2), a: L(r, 2) };
|
|
611
|
+
}, zt = function(t) {
|
|
612
|
+
var e = Wn(t);
|
|
613
|
+
return "hsl(" + e.h + ", " + e.s + "%, " + e.l + "%)";
|
|
614
|
+
}, Bn = function(t) {
|
|
615
|
+
var e = t.h, n = t.s, r = t.v, o = t.a;
|
|
616
|
+
e = e / 360 * 6, n /= 100, r /= 100;
|
|
617
|
+
var i = Math.floor(e), c = r * (1 - n), a = r * (1 - (e - i) * n), l = r * (1 - (1 - e + i) * n), s = i % 6;
|
|
618
|
+
return { r: L(255 * [r, a, c, c, l, r][s]), g: L(255 * [l, r, r, a, c, c][s]), b: L(255 * [c, c, l, r, r, a][s]), a: L(o, 2) };
|
|
619
|
+
}, pt = function(t) {
|
|
620
|
+
var e = t.toString(16);
|
|
621
|
+
return e.length < 2 ? "0" + e : e;
|
|
622
|
+
}, Fn = function(t) {
|
|
623
|
+
var e = t.r, n = t.g, r = t.b, o = t.a, i = o < 1 ? pt(L(255 * o)) : "";
|
|
624
|
+
return "#" + pt(e) + pt(n) + pt(r) + i;
|
|
625
|
+
}, Hn = function(t) {
|
|
626
|
+
var e = t.r, n = t.g, r = t.b, o = t.a, i = Math.max(e, n, r), c = i - Math.min(e, n, r), a = c ? i === e ? (n - r) / c : i === n ? 2 + (r - e) / c : 4 + (e - n) / c : 0;
|
|
627
|
+
return { h: L(60 * (a < 0 ? a + 6 : a)), s: L(i ? c / i * 100 : 0), v: L(i / 255 * 100), a: o };
|
|
628
|
+
}, In = D.memo(function(t) {
|
|
629
|
+
var e = t.hue, n = t.onChange, r = qt(["react-colorful__hue", t.className]);
|
|
630
|
+
return D.createElement("div", { className: r }, D.createElement(_e, { onMove: function(o) {
|
|
631
|
+
n({ h: 360 * o.left });
|
|
632
|
+
}, onKey: function(o) {
|
|
633
|
+
n({ h: ut(e + 360 * o.left, 0, 360) });
|
|
634
|
+
}, "aria-label": "Hue", "aria-valuenow": L(e), "aria-valuemax": "360", "aria-valuemin": "0" }, D.createElement(Le, { className: "react-colorful__hue-pointer", left: e / 360, color: zt({ h: e, s: 100, v: 100, a: 1 }) })));
|
|
635
|
+
}), Vn = D.memo(function(t) {
|
|
636
|
+
var e = t.hsva, n = t.onChange, r = { backgroundColor: zt({ h: e.h, s: 100, v: 100, a: 1 }) };
|
|
637
|
+
return D.createElement("div", { className: "react-colorful__saturation", style: r }, D.createElement(_e, { onMove: function(o) {
|
|
638
|
+
n({ s: 100 * o.left, v: 100 - 100 * o.top });
|
|
639
|
+
}, onKey: function(o) {
|
|
640
|
+
n({ s: ut(e.s + 100 * o.left, 0, 100), v: ut(e.v - 100 * o.top, 0, 100) });
|
|
641
|
+
}, "aria-label": "Color", "aria-valuetext": "Saturation " + L(e.s) + "%, Brightness " + L(e.v) + "%" }, D.createElement(Le, { className: "react-colorful__saturation-pointer", top: 1 - e.v / 100, left: e.s / 100, color: zt(e) })));
|
|
642
|
+
}), Pe = function(t, e) {
|
|
643
|
+
if (t === e) return !0;
|
|
644
|
+
for (var n in t) if (t[n] !== e[n]) return !1;
|
|
645
|
+
return !0;
|
|
646
|
+
}, $n = function(t, e) {
|
|
647
|
+
return t.toLowerCase() === e.toLowerCase() || Pe($t(t), $t(e));
|
|
648
|
+
};
|
|
649
|
+
function zn(t, e, n) {
|
|
650
|
+
var r = It(n), o = ye(function() {
|
|
651
|
+
return t.toHsva(e);
|
|
652
|
+
}), i = o[0], c = o[1], a = J({ color: e, hsva: i });
|
|
653
|
+
St(function() {
|
|
654
|
+
if (!t.equal(e, a.current.color)) {
|
|
655
|
+
var s = t.toHsva(e);
|
|
656
|
+
a.current = { hsva: s, color: e }, c(s);
|
|
657
|
+
}
|
|
658
|
+
}, [e, t]), St(function() {
|
|
659
|
+
var s;
|
|
660
|
+
Pe(i, a.current.hsva) || t.equal(s = t.fromHsva(i), a.current.color) || (a.current = { hsva: i, color: s }, r(s));
|
|
661
|
+
}, [i, t, r]);
|
|
662
|
+
var l = je(function(s) {
|
|
663
|
+
c(function(u) {
|
|
664
|
+
return Object.assign({}, u, s);
|
|
665
|
+
});
|
|
666
|
+
}, []);
|
|
667
|
+
return [i, l];
|
|
668
|
+
}
|
|
669
|
+
var jn = typeof window < "u" ? be : St, Xn = function() {
|
|
670
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
|
|
671
|
+
}, ae = /* @__PURE__ */ new Map(), Yn = function(t) {
|
|
672
|
+
jn(function() {
|
|
673
|
+
var e = t.current ? t.current.ownerDocument : document;
|
|
674
|
+
if (e !== void 0 && !ae.has(e)) {
|
|
675
|
+
var n = e.createElement("style");
|
|
676
|
+
n.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`, ae.set(e, n);
|
|
677
|
+
var r = Xn();
|
|
678
|
+
r && n.setAttribute("nonce", r), e.head.appendChild(n);
|
|
679
|
+
}
|
|
680
|
+
}, []);
|
|
681
|
+
}, qn = function(t) {
|
|
682
|
+
var e = t.className, n = t.colorModel, r = t.color, o = r === void 0 ? n.defaultColor : r, i = t.onChange, c = ke(t, ["className", "colorModel", "color", "onChange"]), a = J(null);
|
|
683
|
+
Yn(a);
|
|
684
|
+
var l = zn(n, o, i), s = l[0], u = l[1], f = qt(["react-colorful", e]);
|
|
685
|
+
return D.createElement("div", Mt({}, c, { ref: a, className: f }), D.createElement(Vn, { hsva: s, onChange: u }), D.createElement(In, { hue: s.h, onChange: u, className: "react-colorful__last-control" }));
|
|
686
|
+
}, Kn = { defaultColor: "000", toHsva: Dn, fromHsva: function(t) {
|
|
687
|
+
return Nn({ h: t.h, s: t.s, v: t.v, a: 1 });
|
|
688
|
+
}, equal: $n }, Jr = function(t) {
|
|
689
|
+
return D.createElement(qn, Mt({}, t, { colorModel: Kn }));
|
|
690
|
+
};
|
|
691
|
+
const Zn = ["top", "right", "bottom", "left"], Q = Math.min, F = Math.max, Ct = Math.round, wt = Math.floor, X = (t) => ({
|
|
530
692
|
x: t,
|
|
531
693
|
y: t
|
|
532
|
-
}),
|
|
694
|
+
}), Un = {
|
|
533
695
|
left: "right",
|
|
534
696
|
right: "left",
|
|
535
697
|
bottom: "top",
|
|
536
698
|
top: "bottom"
|
|
537
|
-
},
|
|
699
|
+
}, Qn = {
|
|
538
700
|
start: "end",
|
|
539
701
|
end: "start"
|
|
540
702
|
};
|
|
541
|
-
function
|
|
542
|
-
return
|
|
703
|
+
function jt(t, e, n) {
|
|
704
|
+
return F(t, Q(e, n));
|
|
543
705
|
}
|
|
544
|
-
function
|
|
706
|
+
function K(t, e) {
|
|
545
707
|
return typeof t == "function" ? t(e) : t;
|
|
546
708
|
}
|
|
547
|
-
function
|
|
709
|
+
function Z(t) {
|
|
548
710
|
return t.split("-")[0];
|
|
549
711
|
}
|
|
550
|
-
function
|
|
712
|
+
function at(t) {
|
|
551
713
|
return t.split("-")[1];
|
|
552
714
|
}
|
|
553
|
-
function
|
|
715
|
+
function Kt(t) {
|
|
554
716
|
return t === "x" ? "y" : "x";
|
|
555
717
|
}
|
|
556
|
-
function
|
|
718
|
+
function Zt(t) {
|
|
557
719
|
return t === "y" ? "height" : "width";
|
|
558
720
|
}
|
|
559
|
-
const
|
|
560
|
-
function
|
|
561
|
-
return
|
|
721
|
+
const Gn = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
722
|
+
function j(t) {
|
|
723
|
+
return Gn.has(Z(t)) ? "y" : "x";
|
|
562
724
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
725
|
+
function Ut(t) {
|
|
726
|
+
return Kt(j(t));
|
|
565
727
|
}
|
|
566
|
-
function
|
|
728
|
+
function Jn(t, e, n) {
|
|
567
729
|
n === void 0 && (n = !1);
|
|
568
|
-
const r =
|
|
730
|
+
const r = at(t), o = Ut(t), i = Zt(o);
|
|
569
731
|
let c = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
570
|
-
return e.reference[i] > e.floating[i] && (c =
|
|
732
|
+
return e.reference[i] > e.floating[i] && (c = Rt(c)), [c, Rt(c)];
|
|
571
733
|
}
|
|
572
|
-
function
|
|
573
|
-
const e =
|
|
574
|
-
return [
|
|
734
|
+
function tr(t) {
|
|
735
|
+
const e = Rt(t);
|
|
736
|
+
return [Xt(t), e, Xt(e)];
|
|
575
737
|
}
|
|
576
|
-
function
|
|
577
|
-
return t.replace(/start|end/g, (e) =>
|
|
738
|
+
function Xt(t) {
|
|
739
|
+
return t.replace(/start|end/g, (e) => Qn[e]);
|
|
578
740
|
}
|
|
579
|
-
const
|
|
580
|
-
function
|
|
741
|
+
const se = ["left", "right"], le = ["right", "left"], er = ["top", "bottom"], nr = ["bottom", "top"];
|
|
742
|
+
function rr(t, e, n) {
|
|
581
743
|
switch (t) {
|
|
582
744
|
case "top":
|
|
583
745
|
case "bottom":
|
|
584
|
-
return n ? e ?
|
|
746
|
+
return n ? e ? le : se : e ? se : le;
|
|
585
747
|
case "left":
|
|
586
748
|
case "right":
|
|
587
|
-
return e ?
|
|
749
|
+
return e ? er : nr;
|
|
588
750
|
default:
|
|
589
751
|
return [];
|
|
590
752
|
}
|
|
591
753
|
}
|
|
592
|
-
function
|
|
593
|
-
const o =
|
|
594
|
-
let i =
|
|
595
|
-
return o && (i = i.map((c) => c + "-" + o), e && (i = i.concat(i.map(
|
|
754
|
+
function or(t, e, n, r) {
|
|
755
|
+
const o = at(t);
|
|
756
|
+
let i = rr(Z(t), n === "start", r);
|
|
757
|
+
return o && (i = i.map((c) => c + "-" + o), e && (i = i.concat(i.map(Xt)))), i;
|
|
596
758
|
}
|
|
597
|
-
function
|
|
598
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
759
|
+
function Rt(t) {
|
|
760
|
+
return t.replace(/left|right|bottom|top/g, (e) => Un[e]);
|
|
599
761
|
}
|
|
600
|
-
function
|
|
762
|
+
function ir(t) {
|
|
601
763
|
return {
|
|
602
764
|
top: 0,
|
|
603
765
|
right: 0,
|
|
@@ -606,15 +768,15 @@ function Sn(t) {
|
|
|
606
768
|
...t
|
|
607
769
|
};
|
|
608
770
|
}
|
|
609
|
-
function
|
|
610
|
-
return typeof t != "number" ?
|
|
771
|
+
function Te(t) {
|
|
772
|
+
return typeof t != "number" ? ir(t) : {
|
|
611
773
|
top: t,
|
|
612
774
|
right: t,
|
|
613
775
|
bottom: t,
|
|
614
776
|
left: t
|
|
615
777
|
};
|
|
616
778
|
}
|
|
617
|
-
function
|
|
779
|
+
function Et(t) {
|
|
618
780
|
const {
|
|
619
781
|
x: e,
|
|
620
782
|
y: n,
|
|
@@ -632,36 +794,36 @@ function wt(t) {
|
|
|
632
794
|
y: n
|
|
633
795
|
};
|
|
634
796
|
}
|
|
635
|
-
function
|
|
797
|
+
function ue(t, e, n) {
|
|
636
798
|
let {
|
|
637
799
|
reference: r,
|
|
638
800
|
floating: o
|
|
639
801
|
} = t;
|
|
640
|
-
const i =
|
|
802
|
+
const i = j(e), c = Ut(e), a = Zt(c), l = Z(e), s = i === "y", u = r.x + r.width / 2 - o.width / 2, f = r.y + r.height / 2 - o.height / 2, m = r[a] / 2 - o[a] / 2;
|
|
641
803
|
let h;
|
|
642
|
-
switch (
|
|
804
|
+
switch (l) {
|
|
643
805
|
case "top":
|
|
644
806
|
h = {
|
|
645
|
-
x:
|
|
807
|
+
x: u,
|
|
646
808
|
y: r.y - o.height
|
|
647
809
|
};
|
|
648
810
|
break;
|
|
649
811
|
case "bottom":
|
|
650
812
|
h = {
|
|
651
|
-
x:
|
|
813
|
+
x: u,
|
|
652
814
|
y: r.y + r.height
|
|
653
815
|
};
|
|
654
816
|
break;
|
|
655
817
|
case "right":
|
|
656
818
|
h = {
|
|
657
819
|
x: r.x + r.width,
|
|
658
|
-
y:
|
|
820
|
+
y: f
|
|
659
821
|
};
|
|
660
822
|
break;
|
|
661
823
|
case "left":
|
|
662
824
|
h = {
|
|
663
825
|
x: r.x - o.width,
|
|
664
|
-
y:
|
|
826
|
+
y: f
|
|
665
827
|
};
|
|
666
828
|
break;
|
|
667
829
|
default:
|
|
@@ -670,17 +832,17 @@ function Zt(t, e, n) {
|
|
|
670
832
|
y: r.y
|
|
671
833
|
};
|
|
672
834
|
}
|
|
673
|
-
switch (
|
|
835
|
+
switch (at(e)) {
|
|
674
836
|
case "start":
|
|
675
|
-
h[c] -= m * (n &&
|
|
837
|
+
h[c] -= m * (n && s ? -1 : 1);
|
|
676
838
|
break;
|
|
677
839
|
case "end":
|
|
678
|
-
h[c] += m * (n &&
|
|
840
|
+
h[c] += m * (n && s ? -1 : 1);
|
|
679
841
|
break;
|
|
680
842
|
}
|
|
681
843
|
return h;
|
|
682
844
|
}
|
|
683
|
-
async function
|
|
845
|
+
async function cr(t, e) {
|
|
684
846
|
var n;
|
|
685
847
|
e === void 0 && (e = {});
|
|
686
848
|
const {
|
|
@@ -688,108 +850,108 @@ async function Cn(t, e) {
|
|
|
688
850
|
y: o,
|
|
689
851
|
platform: i,
|
|
690
852
|
rects: c,
|
|
691
|
-
elements:
|
|
692
|
-
strategy:
|
|
853
|
+
elements: a,
|
|
854
|
+
strategy: l
|
|
693
855
|
} = t, {
|
|
694
|
-
boundary:
|
|
695
|
-
rootBoundary:
|
|
696
|
-
elementContext:
|
|
856
|
+
boundary: s = "clippingAncestors",
|
|
857
|
+
rootBoundary: u = "viewport",
|
|
858
|
+
elementContext: f = "floating",
|
|
697
859
|
altBoundary: m = !1,
|
|
698
860
|
padding: h = 0
|
|
699
|
-
} =
|
|
700
|
-
element: (n = await (i.isElement == null ? void 0 : i.isElement(
|
|
701
|
-
boundary:
|
|
702
|
-
rootBoundary:
|
|
703
|
-
strategy:
|
|
704
|
-
})),
|
|
861
|
+
} = K(e, t), p = Te(h), v = a[m ? f === "floating" ? "reference" : "floating" : f], g = Et(await i.getClippingRect({
|
|
862
|
+
element: (n = await (i.isElement == null ? void 0 : i.isElement(v))) == null || n ? v : v.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
863
|
+
boundary: s,
|
|
864
|
+
rootBoundary: u,
|
|
865
|
+
strategy: l
|
|
866
|
+
})), w = f === "floating" ? {
|
|
705
867
|
x: r,
|
|
706
868
|
y: o,
|
|
707
869
|
width: c.floating.width,
|
|
708
870
|
height: c.floating.height
|
|
709
|
-
} : c.reference,
|
|
871
|
+
} : c.reference, y = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), x = await (i.isElement == null ? void 0 : i.isElement(y)) ? await (i.getScale == null ? void 0 : i.getScale(y)) || {
|
|
710
872
|
x: 1,
|
|
711
873
|
y: 1
|
|
712
874
|
} : {
|
|
713
875
|
x: 1,
|
|
714
876
|
y: 1
|
|
715
|
-
}, S =
|
|
716
|
-
elements:
|
|
717
|
-
rect:
|
|
718
|
-
offsetParent:
|
|
719
|
-
strategy:
|
|
720
|
-
}) :
|
|
877
|
+
}, S = Et(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
878
|
+
elements: a,
|
|
879
|
+
rect: w,
|
|
880
|
+
offsetParent: y,
|
|
881
|
+
strategy: l
|
|
882
|
+
}) : w);
|
|
721
883
|
return {
|
|
722
|
-
top: (
|
|
723
|
-
bottom: (S.bottom -
|
|
724
|
-
left: (
|
|
725
|
-
right: (S.right -
|
|
884
|
+
top: (g.top - S.top + p.top) / x.y,
|
|
885
|
+
bottom: (S.bottom - g.bottom + p.bottom) / x.y,
|
|
886
|
+
left: (g.left - S.left + p.left) / x.x,
|
|
887
|
+
right: (S.right - g.right + p.right) / x.x
|
|
726
888
|
};
|
|
727
889
|
}
|
|
728
|
-
const
|
|
890
|
+
const ar = async (t, e, n) => {
|
|
729
891
|
const {
|
|
730
892
|
placement: r = "bottom",
|
|
731
893
|
strategy: o = "absolute",
|
|
732
894
|
middleware: i = [],
|
|
733
895
|
platform: c
|
|
734
|
-
} = n,
|
|
735
|
-
let
|
|
896
|
+
} = n, a = i.filter(Boolean), l = await (c.isRTL == null ? void 0 : c.isRTL(e));
|
|
897
|
+
let s = await c.getElementRects({
|
|
736
898
|
reference: t,
|
|
737
899
|
floating: e,
|
|
738
900
|
strategy: o
|
|
739
901
|
}), {
|
|
740
|
-
x:
|
|
741
|
-
y:
|
|
742
|
-
} =
|
|
743
|
-
for (let
|
|
902
|
+
x: u,
|
|
903
|
+
y: f
|
|
904
|
+
} = ue(s, r, l), m = r, h = {}, p = 0;
|
|
905
|
+
for (let v = 0; v < a.length; v++) {
|
|
744
906
|
var d;
|
|
745
907
|
const {
|
|
746
|
-
name:
|
|
747
|
-
fn:
|
|
748
|
-
} =
|
|
749
|
-
x,
|
|
750
|
-
y:
|
|
908
|
+
name: g,
|
|
909
|
+
fn: w
|
|
910
|
+
} = a[v], {
|
|
911
|
+
x: y,
|
|
912
|
+
y: x,
|
|
751
913
|
data: S,
|
|
752
914
|
reset: C
|
|
753
|
-
} = await
|
|
754
|
-
x:
|
|
755
|
-
y:
|
|
915
|
+
} = await w({
|
|
916
|
+
x: u,
|
|
917
|
+
y: f,
|
|
756
918
|
initialPlacement: r,
|
|
757
919
|
placement: m,
|
|
758
920
|
strategy: o,
|
|
759
921
|
middlewareData: h,
|
|
760
|
-
rects:
|
|
922
|
+
rects: s,
|
|
761
923
|
platform: {
|
|
762
924
|
...c,
|
|
763
|
-
detectOverflow: (d = c.detectOverflow) != null ? d :
|
|
925
|
+
detectOverflow: (d = c.detectOverflow) != null ? d : cr
|
|
764
926
|
},
|
|
765
927
|
elements: {
|
|
766
928
|
reference: t,
|
|
767
929
|
floating: e
|
|
768
930
|
}
|
|
769
931
|
});
|
|
770
|
-
|
|
932
|
+
u = y ?? u, f = x ?? f, h = {
|
|
771
933
|
...h,
|
|
772
|
-
[
|
|
773
|
-
...h[
|
|
934
|
+
[g]: {
|
|
935
|
+
...h[g],
|
|
774
936
|
...S
|
|
775
937
|
}
|
|
776
|
-
}, C &&
|
|
938
|
+
}, C && p <= 50 && (p++, typeof C == "object" && (C.placement && (m = C.placement), C.rects && (s = C.rects === !0 ? await c.getElementRects({
|
|
777
939
|
reference: t,
|
|
778
940
|
floating: e,
|
|
779
941
|
strategy: o
|
|
780
942
|
}) : C.rects), {
|
|
781
|
-
x:
|
|
782
|
-
y:
|
|
783
|
-
} =
|
|
943
|
+
x: u,
|
|
944
|
+
y: f
|
|
945
|
+
} = ue(s, m, l)), v = -1);
|
|
784
946
|
}
|
|
785
947
|
return {
|
|
786
|
-
x:
|
|
787
|
-
y:
|
|
948
|
+
x: u,
|
|
949
|
+
y: f,
|
|
788
950
|
placement: m,
|
|
789
951
|
strategy: o,
|
|
790
952
|
middlewareData: h
|
|
791
953
|
};
|
|
792
|
-
},
|
|
954
|
+
}, sr = (t) => ({
|
|
793
955
|
name: "arrow",
|
|
794
956
|
options: t,
|
|
795
957
|
async fn(e) {
|
|
@@ -799,34 +961,34 @@ const Rn = async (t, e, n) => {
|
|
|
799
961
|
placement: o,
|
|
800
962
|
rects: i,
|
|
801
963
|
platform: c,
|
|
802
|
-
elements:
|
|
803
|
-
middlewareData:
|
|
964
|
+
elements: a,
|
|
965
|
+
middlewareData: l
|
|
804
966
|
} = e, {
|
|
805
|
-
element:
|
|
806
|
-
padding:
|
|
807
|
-
} =
|
|
808
|
-
if (
|
|
967
|
+
element: s,
|
|
968
|
+
padding: u = 0
|
|
969
|
+
} = K(t, e) || {};
|
|
970
|
+
if (s == null)
|
|
809
971
|
return {};
|
|
810
|
-
const
|
|
972
|
+
const f = Te(u), m = {
|
|
811
973
|
x: n,
|
|
812
974
|
y: r
|
|
813
|
-
}, h =
|
|
814
|
-
let R = C ? C[
|
|
815
|
-
(!R || !await (c.isElement == null ? void 0 : c.isElement(C))) && (R =
|
|
816
|
-
const
|
|
975
|
+
}, h = Ut(o), p = Zt(h), d = await c.getDimensions(s), v = h === "y", g = v ? "top" : "left", w = v ? "bottom" : "right", y = v ? "clientHeight" : "clientWidth", x = i.reference[p] + i.reference[h] - m[h] - i.floating[p], S = m[h] - i.reference[h], C = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(s));
|
|
976
|
+
let R = C ? C[y] : 0;
|
|
977
|
+
(!R || !await (c.isElement == null ? void 0 : c.isElement(C))) && (R = a.floating[y] || i.floating[p]);
|
|
978
|
+
const M = x / 2 - S / 2, P = R / 2 - d[p] / 2 - 1, O = Q(f[g], P), k = Q(f[w], P), T = O, N = R - d[p] - k, A = R / 2 - d[p] / 2 + M, $ = jt(T, A, N), _ = !l.arrow && at(o) != null && A !== $ && i.reference[p] / 2 - (A < T ? O : k) - d[p] / 2 < 0, W = _ ? A < T ? A - T : A - N : 0;
|
|
817
979
|
return {
|
|
818
980
|
[h]: m[h] + W,
|
|
819
981
|
data: {
|
|
820
982
|
[h]: $,
|
|
821
|
-
centerOffset:
|
|
822
|
-
...
|
|
983
|
+
centerOffset: A - $ - W,
|
|
984
|
+
..._ && {
|
|
823
985
|
alignmentOffset: W
|
|
824
986
|
}
|
|
825
987
|
},
|
|
826
|
-
reset:
|
|
988
|
+
reset: _
|
|
827
989
|
};
|
|
828
990
|
}
|
|
829
|
-
}),
|
|
991
|
+
}), lr = function(t) {
|
|
830
992
|
return t === void 0 && (t = {}), {
|
|
831
993
|
name: "flip",
|
|
832
994
|
options: t,
|
|
@@ -836,71 +998,71 @@ const Rn = async (t, e, n) => {
|
|
|
836
998
|
placement: o,
|
|
837
999
|
middlewareData: i,
|
|
838
1000
|
rects: c,
|
|
839
|
-
initialPlacement:
|
|
840
|
-
platform:
|
|
841
|
-
elements:
|
|
1001
|
+
initialPlacement: a,
|
|
1002
|
+
platform: l,
|
|
1003
|
+
elements: s
|
|
842
1004
|
} = e, {
|
|
843
|
-
mainAxis:
|
|
844
|
-
crossAxis:
|
|
1005
|
+
mainAxis: u = !0,
|
|
1006
|
+
crossAxis: f = !0,
|
|
845
1007
|
fallbackPlacements: m,
|
|
846
1008
|
fallbackStrategy: h = "bestFit",
|
|
847
|
-
fallbackAxisSideDirection:
|
|
1009
|
+
fallbackAxisSideDirection: p = "none",
|
|
848
1010
|
flipAlignment: d = !0,
|
|
849
|
-
...
|
|
850
|
-
} =
|
|
1011
|
+
...v
|
|
1012
|
+
} = K(t, e);
|
|
851
1013
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
852
1014
|
return {};
|
|
853
|
-
const
|
|
854
|
-
!m && C && S.push(...
|
|
855
|
-
const R = [
|
|
1015
|
+
const g = Z(o), w = j(a), y = Z(a) === a, x = await (l.isRTL == null ? void 0 : l.isRTL(s.floating)), S = m || (y || !d ? [Rt(a)] : tr(a)), C = p !== "none";
|
|
1016
|
+
!m && C && S.push(...or(a, d, p, x));
|
|
1017
|
+
const R = [a, ...S], M = await l.detectOverflow(e, v), P = [];
|
|
856
1018
|
let O = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
857
|
-
if (
|
|
858
|
-
const
|
|
859
|
-
|
|
1019
|
+
if (u && P.push(M[g]), f) {
|
|
1020
|
+
const A = Jn(o, c, x);
|
|
1021
|
+
P.push(M[A[0]], M[A[1]]);
|
|
860
1022
|
}
|
|
861
1023
|
if (O = [...O, {
|
|
862
1024
|
placement: o,
|
|
863
|
-
overflows:
|
|
864
|
-
}], !
|
|
865
|
-
var
|
|
866
|
-
const
|
|
867
|
-
if ($ && (!(
|
|
1025
|
+
overflows: P
|
|
1026
|
+
}], !P.every((A) => A <= 0)) {
|
|
1027
|
+
var k, T;
|
|
1028
|
+
const A = (((k = i.flip) == null ? void 0 : k.index) || 0) + 1, $ = R[A];
|
|
1029
|
+
if ($ && (!(f === "alignment" ? w !== j($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
868
1030
|
// overflows the main axis.
|
|
869
|
-
O.every((
|
|
1031
|
+
O.every((E) => j(E.placement) === w ? E.overflows[0] > 0 : !0)))
|
|
870
1032
|
return {
|
|
871
1033
|
data: {
|
|
872
|
-
index:
|
|
1034
|
+
index: A,
|
|
873
1035
|
overflows: O
|
|
874
1036
|
},
|
|
875
1037
|
reset: {
|
|
876
1038
|
placement: $
|
|
877
1039
|
}
|
|
878
1040
|
};
|
|
879
|
-
let
|
|
880
|
-
if (!
|
|
1041
|
+
let _ = (T = O.filter((W) => W.overflows[0] <= 0).sort((W, E) => W.overflows[1] - E.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
1042
|
+
if (!_)
|
|
881
1043
|
switch (h) {
|
|
882
1044
|
case "bestFit": {
|
|
883
|
-
var
|
|
884
|
-
const W = (
|
|
1045
|
+
var N;
|
|
1046
|
+
const W = (N = O.filter((E) => {
|
|
885
1047
|
if (C) {
|
|
886
|
-
const
|
|
887
|
-
return
|
|
1048
|
+
const B = j(E.placement);
|
|
1049
|
+
return B === w || // Create a bias to the `y` side axis due to horizontal
|
|
888
1050
|
// reading directions favoring greater width.
|
|
889
|
-
|
|
1051
|
+
B === "y";
|
|
890
1052
|
}
|
|
891
1053
|
return !0;
|
|
892
|
-
}).map((
|
|
893
|
-
W && (
|
|
1054
|
+
}).map((E) => [E.placement, E.overflows.filter((B) => B > 0).reduce((B, U) => B + U, 0)]).sort((E, B) => E[1] - B[1])[0]) == null ? void 0 : N[0];
|
|
1055
|
+
W && (_ = W);
|
|
894
1056
|
break;
|
|
895
1057
|
}
|
|
896
1058
|
case "initialPlacement":
|
|
897
|
-
|
|
1059
|
+
_ = a;
|
|
898
1060
|
break;
|
|
899
1061
|
}
|
|
900
|
-
if (o !==
|
|
1062
|
+
if (o !== _)
|
|
901
1063
|
return {
|
|
902
1064
|
reset: {
|
|
903
|
-
placement:
|
|
1065
|
+
placement: _
|
|
904
1066
|
}
|
|
905
1067
|
};
|
|
906
1068
|
}
|
|
@@ -908,7 +1070,7 @@ const Rn = async (t, e, n) => {
|
|
|
908
1070
|
}
|
|
909
1071
|
};
|
|
910
1072
|
};
|
|
911
|
-
function
|
|
1073
|
+
function fe(t, e) {
|
|
912
1074
|
return {
|
|
913
1075
|
top: t.top - e.height,
|
|
914
1076
|
right: t.right - e.width,
|
|
@@ -916,10 +1078,10 @@ function Ut(t, e) {
|
|
|
916
1078
|
left: t.left - e.width
|
|
917
1079
|
};
|
|
918
1080
|
}
|
|
919
|
-
function
|
|
920
|
-
return
|
|
1081
|
+
function de(t) {
|
|
1082
|
+
return Zn.some((e) => t[e] >= 0);
|
|
921
1083
|
}
|
|
922
|
-
const
|
|
1084
|
+
const ur = function(t) {
|
|
923
1085
|
return t === void 0 && (t = {}), {
|
|
924
1086
|
name: "hide",
|
|
925
1087
|
options: t,
|
|
@@ -930,17 +1092,17 @@ const On = function(t) {
|
|
|
930
1092
|
} = e, {
|
|
931
1093
|
strategy: o = "referenceHidden",
|
|
932
1094
|
...i
|
|
933
|
-
} =
|
|
1095
|
+
} = K(t, e);
|
|
934
1096
|
switch (o) {
|
|
935
1097
|
case "referenceHidden": {
|
|
936
1098
|
const c = await r.detectOverflow(e, {
|
|
937
1099
|
...i,
|
|
938
1100
|
elementContext: "reference"
|
|
939
|
-
}),
|
|
1101
|
+
}), a = fe(c, n.reference);
|
|
940
1102
|
return {
|
|
941
1103
|
data: {
|
|
942
|
-
referenceHiddenOffsets:
|
|
943
|
-
referenceHidden:
|
|
1104
|
+
referenceHiddenOffsets: a,
|
|
1105
|
+
referenceHidden: de(a)
|
|
944
1106
|
}
|
|
945
1107
|
};
|
|
946
1108
|
}
|
|
@@ -948,11 +1110,11 @@ const On = function(t) {
|
|
|
948
1110
|
const c = await r.detectOverflow(e, {
|
|
949
1111
|
...i,
|
|
950
1112
|
altBoundary: !0
|
|
951
|
-
}),
|
|
1113
|
+
}), a = fe(c, n.floating);
|
|
952
1114
|
return {
|
|
953
1115
|
data: {
|
|
954
|
-
escapedOffsets:
|
|
955
|
-
escaped:
|
|
1116
|
+
escapedOffsets: a,
|
|
1117
|
+
escaped: de(a)
|
|
956
1118
|
}
|
|
957
1119
|
};
|
|
958
1120
|
}
|
|
@@ -961,35 +1123,35 @@ const On = function(t) {
|
|
|
961
1123
|
}
|
|
962
1124
|
}
|
|
963
1125
|
};
|
|
964
|
-
},
|
|
965
|
-
async function
|
|
1126
|
+
}, De = /* @__PURE__ */ new Set(["left", "top"]);
|
|
1127
|
+
async function fr(t, e) {
|
|
966
1128
|
const {
|
|
967
1129
|
placement: n,
|
|
968
1130
|
platform: r,
|
|
969
1131
|
elements: o
|
|
970
|
-
} = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), c =
|
|
1132
|
+
} = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), c = Z(n), a = at(n), l = j(n) === "y", s = De.has(c) ? -1 : 1, u = i && l ? -1 : 1, f = K(e, t);
|
|
971
1133
|
let {
|
|
972
1134
|
mainAxis: m,
|
|
973
1135
|
crossAxis: h,
|
|
974
|
-
alignmentAxis:
|
|
975
|
-
} = typeof
|
|
976
|
-
mainAxis:
|
|
1136
|
+
alignmentAxis: p
|
|
1137
|
+
} = typeof f == "number" ? {
|
|
1138
|
+
mainAxis: f,
|
|
977
1139
|
crossAxis: 0,
|
|
978
1140
|
alignmentAxis: null
|
|
979
1141
|
} : {
|
|
980
|
-
mainAxis:
|
|
981
|
-
crossAxis:
|
|
982
|
-
alignmentAxis:
|
|
1142
|
+
mainAxis: f.mainAxis || 0,
|
|
1143
|
+
crossAxis: f.crossAxis || 0,
|
|
1144
|
+
alignmentAxis: f.alignmentAxis
|
|
983
1145
|
};
|
|
984
|
-
return
|
|
985
|
-
x: h *
|
|
986
|
-
y: m *
|
|
1146
|
+
return a && typeof p == "number" && (h = a === "end" ? p * -1 : p), l ? {
|
|
1147
|
+
x: h * u,
|
|
1148
|
+
y: m * s
|
|
987
1149
|
} : {
|
|
988
|
-
x: m *
|
|
989
|
-
y: h *
|
|
1150
|
+
x: m * s,
|
|
1151
|
+
y: h * u
|
|
990
1152
|
};
|
|
991
1153
|
}
|
|
992
|
-
const
|
|
1154
|
+
const dr = function(t) {
|
|
993
1155
|
return t === void 0 && (t = 0), {
|
|
994
1156
|
name: "offset",
|
|
995
1157
|
options: t,
|
|
@@ -999,19 +1161,19 @@ const Mn = function(t) {
|
|
|
999
1161
|
x: o,
|
|
1000
1162
|
y: i,
|
|
1001
1163
|
placement: c,
|
|
1002
|
-
middlewareData:
|
|
1003
|
-
} = e,
|
|
1004
|
-
return c === ((n =
|
|
1005
|
-
x: o +
|
|
1006
|
-
y: i +
|
|
1164
|
+
middlewareData: a
|
|
1165
|
+
} = e, l = await fr(e, t);
|
|
1166
|
+
return c === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
1167
|
+
x: o + l.x,
|
|
1168
|
+
y: i + l.y,
|
|
1007
1169
|
data: {
|
|
1008
|
-
...
|
|
1170
|
+
...l,
|
|
1009
1171
|
placement: c
|
|
1010
1172
|
}
|
|
1011
1173
|
};
|
|
1012
1174
|
}
|
|
1013
1175
|
};
|
|
1014
|
-
},
|
|
1176
|
+
}, hr = function(t) {
|
|
1015
1177
|
return t === void 0 && (t = {}), {
|
|
1016
1178
|
name: "shift",
|
|
1017
1179
|
options: t,
|
|
@@ -1023,52 +1185,52 @@ const Mn = function(t) {
|
|
|
1023
1185
|
platform: i
|
|
1024
1186
|
} = e, {
|
|
1025
1187
|
mainAxis: c = !0,
|
|
1026
|
-
crossAxis:
|
|
1027
|
-
limiter:
|
|
1028
|
-
fn: (
|
|
1188
|
+
crossAxis: a = !1,
|
|
1189
|
+
limiter: l = {
|
|
1190
|
+
fn: (g) => {
|
|
1029
1191
|
let {
|
|
1030
|
-
x:
|
|
1031
|
-
y
|
|
1032
|
-
} =
|
|
1192
|
+
x: w,
|
|
1193
|
+
y
|
|
1194
|
+
} = g;
|
|
1033
1195
|
return {
|
|
1034
|
-
x:
|
|
1035
|
-
y
|
|
1196
|
+
x: w,
|
|
1197
|
+
y
|
|
1036
1198
|
};
|
|
1037
1199
|
}
|
|
1038
1200
|
},
|
|
1039
|
-
...
|
|
1040
|
-
} =
|
|
1201
|
+
...s
|
|
1202
|
+
} = K(t, e), u = {
|
|
1041
1203
|
x: n,
|
|
1042
1204
|
y: r
|
|
1043
|
-
},
|
|
1044
|
-
let
|
|
1205
|
+
}, f = await i.detectOverflow(e, s), m = j(Z(o)), h = Kt(m);
|
|
1206
|
+
let p = u[h], d = u[m];
|
|
1045
1207
|
if (c) {
|
|
1046
|
-
const
|
|
1047
|
-
|
|
1208
|
+
const g = h === "y" ? "top" : "left", w = h === "y" ? "bottom" : "right", y = p + f[g], x = p - f[w];
|
|
1209
|
+
p = jt(y, p, x);
|
|
1048
1210
|
}
|
|
1049
|
-
if (
|
|
1050
|
-
const
|
|
1051
|
-
d =
|
|
1211
|
+
if (a) {
|
|
1212
|
+
const g = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", y = d + f[g], x = d - f[w];
|
|
1213
|
+
d = jt(y, d, x);
|
|
1052
1214
|
}
|
|
1053
|
-
const
|
|
1215
|
+
const v = l.fn({
|
|
1054
1216
|
...e,
|
|
1055
|
-
[h]:
|
|
1217
|
+
[h]: p,
|
|
1056
1218
|
[m]: d
|
|
1057
1219
|
});
|
|
1058
1220
|
return {
|
|
1059
|
-
...
|
|
1221
|
+
...v,
|
|
1060
1222
|
data: {
|
|
1061
|
-
x:
|
|
1062
|
-
y:
|
|
1223
|
+
x: v.x - n,
|
|
1224
|
+
y: v.y - r,
|
|
1063
1225
|
enabled: {
|
|
1064
1226
|
[h]: c,
|
|
1065
|
-
[m]:
|
|
1227
|
+
[m]: a
|
|
1066
1228
|
}
|
|
1067
1229
|
}
|
|
1068
1230
|
};
|
|
1069
1231
|
}
|
|
1070
1232
|
};
|
|
1071
|
-
},
|
|
1233
|
+
}, mr = function(t) {
|
|
1072
1234
|
return t === void 0 && (t = {}), {
|
|
1073
1235
|
options: t,
|
|
1074
1236
|
fn(e) {
|
|
@@ -1079,15 +1241,15 @@ const Mn = function(t) {
|
|
|
1079
1241
|
rects: i,
|
|
1080
1242
|
middlewareData: c
|
|
1081
1243
|
} = e, {
|
|
1082
|
-
offset:
|
|
1083
|
-
mainAxis:
|
|
1084
|
-
crossAxis:
|
|
1085
|
-
} =
|
|
1244
|
+
offset: a = 0,
|
|
1245
|
+
mainAxis: l = !0,
|
|
1246
|
+
crossAxis: s = !0
|
|
1247
|
+
} = K(t, e), u = {
|
|
1086
1248
|
x: n,
|
|
1087
1249
|
y: r
|
|
1088
|
-
},
|
|
1089
|
-
let h =
|
|
1090
|
-
const d =
|
|
1250
|
+
}, f = j(o), m = Kt(f);
|
|
1251
|
+
let h = u[m], p = u[f];
|
|
1252
|
+
const d = K(a, e), v = typeof d == "number" ? {
|
|
1091
1253
|
mainAxis: d,
|
|
1092
1254
|
crossAxis: 0
|
|
1093
1255
|
} : {
|
|
@@ -1095,22 +1257,22 @@ const Mn = function(t) {
|
|
|
1095
1257
|
crossAxis: 0,
|
|
1096
1258
|
...d
|
|
1097
1259
|
};
|
|
1098
|
-
if (
|
|
1099
|
-
const
|
|
1100
|
-
h <
|
|
1260
|
+
if (l) {
|
|
1261
|
+
const y = m === "y" ? "height" : "width", x = i.reference[m] - i.floating[y] + v.mainAxis, S = i.reference[m] + i.reference[y] - v.mainAxis;
|
|
1262
|
+
h < x ? h = x : h > S && (h = S);
|
|
1101
1263
|
}
|
|
1102
|
-
if (
|
|
1103
|
-
var
|
|
1104
|
-
const
|
|
1105
|
-
|
|
1264
|
+
if (s) {
|
|
1265
|
+
var g, w;
|
|
1266
|
+
const y = m === "y" ? "width" : "height", x = De.has(Z(o)), S = i.reference[f] - i.floating[y] + (x && ((g = c.offset) == null ? void 0 : g[f]) || 0) + (x ? 0 : v.crossAxis), C = i.reference[f] + i.reference[y] + (x ? 0 : ((w = c.offset) == null ? void 0 : w[f]) || 0) - (x ? v.crossAxis : 0);
|
|
1267
|
+
p < S ? p = S : p > C && (p = C);
|
|
1106
1268
|
}
|
|
1107
1269
|
return {
|
|
1108
1270
|
[m]: h,
|
|
1109
|
-
[
|
|
1271
|
+
[f]: p
|
|
1110
1272
|
};
|
|
1111
1273
|
}
|
|
1112
1274
|
};
|
|
1113
|
-
},
|
|
1275
|
+
}, vr = function(t) {
|
|
1114
1276
|
return t === void 0 && (t = {}), {
|
|
1115
1277
|
name: "size",
|
|
1116
1278
|
options: t,
|
|
@@ -1120,30 +1282,30 @@ const Mn = function(t) {
|
|
|
1120
1282
|
placement: o,
|
|
1121
1283
|
rects: i,
|
|
1122
1284
|
platform: c,
|
|
1123
|
-
elements:
|
|
1285
|
+
elements: a
|
|
1124
1286
|
} = e, {
|
|
1125
|
-
apply:
|
|
1287
|
+
apply: l = () => {
|
|
1126
1288
|
},
|
|
1127
|
-
...
|
|
1128
|
-
} =
|
|
1129
|
-
width:
|
|
1289
|
+
...s
|
|
1290
|
+
} = K(t, e), u = await c.detectOverflow(e, s), f = Z(o), m = at(o), h = j(o) === "y", {
|
|
1291
|
+
width: p,
|
|
1130
1292
|
height: d
|
|
1131
1293
|
} = i.floating;
|
|
1132
|
-
let
|
|
1133
|
-
|
|
1134
|
-
const
|
|
1135
|
-
let R =
|
|
1136
|
-
if ((n = e.middlewareData.shift) != null && n.enabled.x && (
|
|
1137
|
-
const O =
|
|
1138
|
-
h ?
|
|
1294
|
+
let v, g;
|
|
1295
|
+
f === "top" || f === "bottom" ? (v = f, g = m === (await (c.isRTL == null ? void 0 : c.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (g = f, v = m === "end" ? "top" : "bottom");
|
|
1296
|
+
const w = d - u.top - u.bottom, y = p - u.left - u.right, x = Q(d - u[v], w), S = Q(p - u[g], y), C = !e.middlewareData.shift;
|
|
1297
|
+
let R = x, M = S;
|
|
1298
|
+
if ((n = e.middlewareData.shift) != null && n.enabled.x && (M = y), (r = e.middlewareData.shift) != null && r.enabled.y && (R = w), C && !m) {
|
|
1299
|
+
const O = F(u.left, 0), k = F(u.right, 0), T = F(u.top, 0), N = F(u.bottom, 0);
|
|
1300
|
+
h ? M = p - 2 * (O !== 0 || k !== 0 ? O + k : F(u.left, u.right)) : R = d - 2 * (T !== 0 || N !== 0 ? T + N : F(u.top, u.bottom));
|
|
1139
1301
|
}
|
|
1140
|
-
await
|
|
1302
|
+
await l({
|
|
1141
1303
|
...e,
|
|
1142
|
-
availableWidth:
|
|
1304
|
+
availableWidth: M,
|
|
1143
1305
|
availableHeight: R
|
|
1144
1306
|
});
|
|
1145
|
-
const
|
|
1146
|
-
return
|
|
1307
|
+
const P = await c.getDimensions(a.floating);
|
|
1308
|
+
return p !== P.width || d !== P.height ? {
|
|
1147
1309
|
reset: {
|
|
1148
1310
|
rects: !0
|
|
1149
1311
|
}
|
|
@@ -1151,49 +1313,49 @@ const Mn = function(t) {
|
|
|
1151
1313
|
}
|
|
1152
1314
|
};
|
|
1153
1315
|
};
|
|
1154
|
-
function
|
|
1316
|
+
function kt() {
|
|
1155
1317
|
return typeof window < "u";
|
|
1156
1318
|
}
|
|
1157
|
-
function
|
|
1158
|
-
return
|
|
1319
|
+
function st(t) {
|
|
1320
|
+
return Ne(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
1159
1321
|
}
|
|
1160
|
-
function
|
|
1322
|
+
function H(t) {
|
|
1161
1323
|
var e;
|
|
1162
1324
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
1163
1325
|
}
|
|
1164
|
-
function
|
|
1326
|
+
function q(t) {
|
|
1165
1327
|
var e;
|
|
1166
|
-
return (e = (
|
|
1328
|
+
return (e = (Ne(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
1167
1329
|
}
|
|
1168
|
-
function
|
|
1169
|
-
return
|
|
1330
|
+
function Ne(t) {
|
|
1331
|
+
return kt() ? t instanceof Node || t instanceof H(t).Node : !1;
|
|
1170
1332
|
}
|
|
1171
|
-
function
|
|
1172
|
-
return
|
|
1333
|
+
function I(t) {
|
|
1334
|
+
return kt() ? t instanceof Element || t instanceof H(t).Element : !1;
|
|
1173
1335
|
}
|
|
1174
|
-
function
|
|
1175
|
-
return
|
|
1336
|
+
function Y(t) {
|
|
1337
|
+
return kt() ? t instanceof HTMLElement || t instanceof H(t).HTMLElement : !1;
|
|
1176
1338
|
}
|
|
1177
|
-
function
|
|
1178
|
-
return !
|
|
1339
|
+
function he(t) {
|
|
1340
|
+
return !kt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof H(t).ShadowRoot;
|
|
1179
1341
|
}
|
|
1180
|
-
const
|
|
1181
|
-
function
|
|
1342
|
+
const gr = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
1343
|
+
function dt(t) {
|
|
1182
1344
|
const {
|
|
1183
1345
|
overflow: e,
|
|
1184
1346
|
overflowX: n,
|
|
1185
1347
|
overflowY: r,
|
|
1186
1348
|
display: o
|
|
1187
|
-
} =
|
|
1188
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !
|
|
1349
|
+
} = V(t);
|
|
1350
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !gr.has(o);
|
|
1189
1351
|
}
|
|
1190
|
-
const
|
|
1191
|
-
function
|
|
1192
|
-
return
|
|
1352
|
+
const pr = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
1353
|
+
function wr(t) {
|
|
1354
|
+
return pr.has(st(t));
|
|
1193
1355
|
}
|
|
1194
|
-
const
|
|
1195
|
-
function
|
|
1196
|
-
return
|
|
1356
|
+
const yr = [":popover-open", ":modal"];
|
|
1357
|
+
function _t(t) {
|
|
1358
|
+
return yr.some((e) => {
|
|
1197
1359
|
try {
|
|
1198
1360
|
return t.matches(e);
|
|
1199
1361
|
} catch {
|
|
@@ -1201,34 +1363,34 @@ function St(t) {
|
|
|
1201
1363
|
}
|
|
1202
1364
|
});
|
|
1203
1365
|
}
|
|
1204
|
-
const
|
|
1205
|
-
function
|
|
1206
|
-
const e =
|
|
1207
|
-
return
|
|
1366
|
+
const br = ["transform", "translate", "scale", "rotate", "perspective"], xr = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Sr = ["paint", "layout", "strict", "content"];
|
|
1367
|
+
function Qt(t) {
|
|
1368
|
+
const e = Gt(), n = I(t) ? V(t) : t;
|
|
1369
|
+
return br.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || xr.some((r) => (n.willChange || "").includes(r)) || Sr.some((r) => (n.contain || "").includes(r));
|
|
1208
1370
|
}
|
|
1209
|
-
function
|
|
1371
|
+
function Cr(t) {
|
|
1210
1372
|
let e = G(t);
|
|
1211
|
-
for (;
|
|
1212
|
-
if (
|
|
1373
|
+
for (; Y(e) && !ct(e); ) {
|
|
1374
|
+
if (Qt(e))
|
|
1213
1375
|
return e;
|
|
1214
|
-
if (
|
|
1376
|
+
if (_t(e))
|
|
1215
1377
|
return null;
|
|
1216
1378
|
e = G(e);
|
|
1217
1379
|
}
|
|
1218
1380
|
return null;
|
|
1219
1381
|
}
|
|
1220
|
-
function
|
|
1382
|
+
function Gt() {
|
|
1221
1383
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1222
1384
|
}
|
|
1223
|
-
const
|
|
1224
|
-
function
|
|
1225
|
-
return
|
|
1385
|
+
const Rr = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
1386
|
+
function ct(t) {
|
|
1387
|
+
return Rr.has(st(t));
|
|
1226
1388
|
}
|
|
1227
|
-
function
|
|
1228
|
-
return
|
|
1389
|
+
function V(t) {
|
|
1390
|
+
return H(t).getComputedStyle(t);
|
|
1229
1391
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1392
|
+
function Lt(t) {
|
|
1393
|
+
return I(t) ? {
|
|
1232
1394
|
scrollLeft: t.scrollLeft,
|
|
1233
1395
|
scrollTop: t.scrollTop
|
|
1234
1396
|
} : {
|
|
@@ -1237,188 +1399,188 @@ function Ct(t) {
|
|
|
1237
1399
|
};
|
|
1238
1400
|
}
|
|
1239
1401
|
function G(t) {
|
|
1240
|
-
if (
|
|
1402
|
+
if (st(t) === "html")
|
|
1241
1403
|
return t;
|
|
1242
1404
|
const e = (
|
|
1243
1405
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
1244
1406
|
t.assignedSlot || // DOM Element detected.
|
|
1245
1407
|
t.parentNode || // ShadowRoot detected.
|
|
1246
|
-
|
|
1247
|
-
|
|
1408
|
+
he(t) && t.host || // Fallback.
|
|
1409
|
+
q(t)
|
|
1248
1410
|
);
|
|
1249
|
-
return
|
|
1411
|
+
return he(e) ? e.host : e;
|
|
1250
1412
|
}
|
|
1251
|
-
function
|
|
1413
|
+
function We(t) {
|
|
1252
1414
|
const e = G(t);
|
|
1253
|
-
return
|
|
1415
|
+
return ct(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Y(e) && dt(e) ? e : We(e);
|
|
1254
1416
|
}
|
|
1255
|
-
function
|
|
1417
|
+
function ft(t, e, n) {
|
|
1256
1418
|
var r;
|
|
1257
1419
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
1258
|
-
const o =
|
|
1420
|
+
const o = We(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), c = H(o);
|
|
1259
1421
|
if (i) {
|
|
1260
|
-
const
|
|
1261
|
-
return e.concat(c, c.visualViewport || [],
|
|
1422
|
+
const a = Yt(c);
|
|
1423
|
+
return e.concat(c, c.visualViewport || [], dt(o) ? o : [], a && n ? ft(a) : []);
|
|
1262
1424
|
}
|
|
1263
|
-
return e.concat(o,
|
|
1425
|
+
return e.concat(o, ft(o, [], n));
|
|
1264
1426
|
}
|
|
1265
|
-
function
|
|
1427
|
+
function Yt(t) {
|
|
1266
1428
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
1267
1429
|
}
|
|
1268
|
-
function
|
|
1269
|
-
const e =
|
|
1430
|
+
function Be(t) {
|
|
1431
|
+
const e = V(t);
|
|
1270
1432
|
let n = parseFloat(e.width) || 0, r = parseFloat(e.height) || 0;
|
|
1271
|
-
const o =
|
|
1272
|
-
return
|
|
1433
|
+
const o = Y(t), i = o ? t.offsetWidth : n, c = o ? t.offsetHeight : r, a = Ct(n) !== i || Ct(r) !== c;
|
|
1434
|
+
return a && (n = i, r = c), {
|
|
1273
1435
|
width: n,
|
|
1274
1436
|
height: r,
|
|
1275
|
-
$:
|
|
1437
|
+
$: a
|
|
1276
1438
|
};
|
|
1277
1439
|
}
|
|
1278
|
-
function
|
|
1279
|
-
return
|
|
1440
|
+
function Jt(t) {
|
|
1441
|
+
return I(t) ? t : t.contextElement;
|
|
1280
1442
|
}
|
|
1281
|
-
function
|
|
1282
|
-
const e =
|
|
1283
|
-
if (!
|
|
1284
|
-
return
|
|
1443
|
+
function it(t) {
|
|
1444
|
+
const e = Jt(t);
|
|
1445
|
+
if (!Y(e))
|
|
1446
|
+
return X(1);
|
|
1285
1447
|
const n = e.getBoundingClientRect(), {
|
|
1286
1448
|
width: r,
|
|
1287
1449
|
height: o,
|
|
1288
1450
|
$: i
|
|
1289
|
-
} =
|
|
1290
|
-
let c = (i ?
|
|
1291
|
-
return (!c || !Number.isFinite(c)) && (c = 1), (!
|
|
1451
|
+
} = Be(e);
|
|
1452
|
+
let c = (i ? Ct(n.width) : n.width) / r, a = (i ? Ct(n.height) : n.height) / o;
|
|
1453
|
+
return (!c || !Number.isFinite(c)) && (c = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
1292
1454
|
x: c,
|
|
1293
|
-
y:
|
|
1455
|
+
y: a
|
|
1294
1456
|
};
|
|
1295
1457
|
}
|
|
1296
|
-
const
|
|
1297
|
-
function
|
|
1298
|
-
const e =
|
|
1299
|
-
return !
|
|
1458
|
+
const Er = /* @__PURE__ */ X(0);
|
|
1459
|
+
function Fe(t) {
|
|
1460
|
+
const e = H(t);
|
|
1461
|
+
return !Gt() || !e.visualViewport ? Er : {
|
|
1300
1462
|
x: e.visualViewport.offsetLeft,
|
|
1301
1463
|
y: e.visualViewport.offsetTop
|
|
1302
1464
|
};
|
|
1303
1465
|
}
|
|
1304
|
-
function
|
|
1305
|
-
return e === void 0 && (e = !1), !n || e && n !==
|
|
1466
|
+
function Ar(t, e, n) {
|
|
1467
|
+
return e === void 0 && (e = !1), !n || e && n !== H(t) ? !1 : e;
|
|
1306
1468
|
}
|
|
1307
|
-
function
|
|
1469
|
+
function tt(t, e, n, r) {
|
|
1308
1470
|
e === void 0 && (e = !1), n === void 0 && (n = !1);
|
|
1309
|
-
const o = t.getBoundingClientRect(), i =
|
|
1310
|
-
let c =
|
|
1311
|
-
e && (r ?
|
|
1312
|
-
const
|
|
1313
|
-
let
|
|
1471
|
+
const o = t.getBoundingClientRect(), i = Jt(t);
|
|
1472
|
+
let c = X(1);
|
|
1473
|
+
e && (r ? I(r) && (c = it(r)) : c = it(t));
|
|
1474
|
+
const a = Ar(i, n, r) ? Fe(i) : X(0);
|
|
1475
|
+
let l = (o.left + a.x) / c.x, s = (o.top + a.y) / c.y, u = o.width / c.x, f = o.height / c.y;
|
|
1314
1476
|
if (i) {
|
|
1315
|
-
const m =
|
|
1316
|
-
let
|
|
1317
|
-
for (; d && r && h !==
|
|
1318
|
-
const
|
|
1319
|
-
|
|
1477
|
+
const m = H(i), h = r && I(r) ? H(r) : r;
|
|
1478
|
+
let p = m, d = Yt(p);
|
|
1479
|
+
for (; d && r && h !== p; ) {
|
|
1480
|
+
const v = it(d), g = d.getBoundingClientRect(), w = V(d), y = g.left + (d.clientLeft + parseFloat(w.paddingLeft)) * v.x, x = g.top + (d.clientTop + parseFloat(w.paddingTop)) * v.y;
|
|
1481
|
+
l *= v.x, s *= v.y, u *= v.x, f *= v.y, l += y, s += x, p = H(d), d = Yt(p);
|
|
1320
1482
|
}
|
|
1321
1483
|
}
|
|
1322
|
-
return
|
|
1323
|
-
width:
|
|
1324
|
-
height:
|
|
1325
|
-
x:
|
|
1326
|
-
y:
|
|
1484
|
+
return Et({
|
|
1485
|
+
width: u,
|
|
1486
|
+
height: f,
|
|
1487
|
+
x: l,
|
|
1488
|
+
y: s
|
|
1327
1489
|
});
|
|
1328
1490
|
}
|
|
1329
|
-
function
|
|
1330
|
-
const n =
|
|
1331
|
-
return e ? e.left + n :
|
|
1491
|
+
function Pt(t, e) {
|
|
1492
|
+
const n = Lt(t).scrollLeft;
|
|
1493
|
+
return e ? e.left + n : tt(q(t)).left + n;
|
|
1332
1494
|
}
|
|
1333
|
-
function
|
|
1334
|
-
const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft -
|
|
1495
|
+
function He(t, e) {
|
|
1496
|
+
const n = t.getBoundingClientRect(), r = n.left + e.scrollLeft - Pt(t, n), o = n.top + e.scrollTop;
|
|
1335
1497
|
return {
|
|
1336
1498
|
x: r,
|
|
1337
1499
|
y: o
|
|
1338
1500
|
};
|
|
1339
1501
|
}
|
|
1340
|
-
function
|
|
1502
|
+
function Or(t) {
|
|
1341
1503
|
let {
|
|
1342
1504
|
elements: e,
|
|
1343
1505
|
rect: n,
|
|
1344
1506
|
offsetParent: r,
|
|
1345
1507
|
strategy: o
|
|
1346
1508
|
} = t;
|
|
1347
|
-
const i = o === "fixed", c =
|
|
1348
|
-
if (r === c ||
|
|
1509
|
+
const i = o === "fixed", c = q(r), a = e ? _t(e.floating) : !1;
|
|
1510
|
+
if (r === c || a && i)
|
|
1349
1511
|
return n;
|
|
1350
|
-
let
|
|
1512
|
+
let l = {
|
|
1351
1513
|
scrollLeft: 0,
|
|
1352
1514
|
scrollTop: 0
|
|
1353
|
-
},
|
|
1354
|
-
const
|
|
1355
|
-
if ((
|
|
1356
|
-
const h =
|
|
1357
|
-
|
|
1515
|
+
}, s = X(1);
|
|
1516
|
+
const u = X(0), f = Y(r);
|
|
1517
|
+
if ((f || !f && !i) && ((st(r) !== "body" || dt(c)) && (l = Lt(r)), Y(r))) {
|
|
1518
|
+
const h = tt(r);
|
|
1519
|
+
s = it(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
|
|
1358
1520
|
}
|
|
1359
|
-
const m = c && !
|
|
1521
|
+
const m = c && !f && !i ? He(c, l) : X(0);
|
|
1360
1522
|
return {
|
|
1361
|
-
width: n.width *
|
|
1362
|
-
height: n.height *
|
|
1363
|
-
x: n.x *
|
|
1364
|
-
y: n.y *
|
|
1523
|
+
width: n.width * s.x,
|
|
1524
|
+
height: n.height * s.y,
|
|
1525
|
+
x: n.x * s.x - l.scrollLeft * s.x + u.x + m.x,
|
|
1526
|
+
y: n.y * s.y - l.scrollTop * s.y + u.y + m.y
|
|
1365
1527
|
};
|
|
1366
1528
|
}
|
|
1367
|
-
function
|
|
1529
|
+
function Mr(t) {
|
|
1368
1530
|
return Array.from(t.getClientRects());
|
|
1369
1531
|
}
|
|
1370
|
-
function
|
|
1371
|
-
const e =
|
|
1372
|
-
let c = -n.scrollLeft +
|
|
1373
|
-
const
|
|
1374
|
-
return
|
|
1532
|
+
function kr(t) {
|
|
1533
|
+
const e = q(t), n = Lt(t), r = t.ownerDocument.body, o = F(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = F(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1534
|
+
let c = -n.scrollLeft + Pt(t);
|
|
1535
|
+
const a = -n.scrollTop;
|
|
1536
|
+
return V(r).direction === "rtl" && (c += F(e.clientWidth, r.clientWidth) - o), {
|
|
1375
1537
|
width: o,
|
|
1376
1538
|
height: i,
|
|
1377
1539
|
x: c,
|
|
1378
|
-
y:
|
|
1540
|
+
y: a
|
|
1379
1541
|
};
|
|
1380
1542
|
}
|
|
1381
|
-
const
|
|
1382
|
-
function
|
|
1383
|
-
const n =
|
|
1384
|
-
let i = r.clientWidth, c = r.clientHeight,
|
|
1543
|
+
const me = 25;
|
|
1544
|
+
function _r(t, e) {
|
|
1545
|
+
const n = H(t), r = q(t), o = n.visualViewport;
|
|
1546
|
+
let i = r.clientWidth, c = r.clientHeight, a = 0, l = 0;
|
|
1385
1547
|
if (o) {
|
|
1386
1548
|
i = o.width, c = o.height;
|
|
1387
|
-
const
|
|
1388
|
-
(!
|
|
1549
|
+
const u = Gt();
|
|
1550
|
+
(!u || u && e === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
|
|
1389
1551
|
}
|
|
1390
|
-
const
|
|
1391
|
-
if (
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1394
|
-
} else
|
|
1552
|
+
const s = Pt(r);
|
|
1553
|
+
if (s <= 0) {
|
|
1554
|
+
const u = r.ownerDocument, f = u.body, m = getComputedStyle(f), h = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(r.clientWidth - f.clientWidth - h);
|
|
1555
|
+
p <= me && (i -= p);
|
|
1556
|
+
} else s <= me && (i += s);
|
|
1395
1557
|
return {
|
|
1396
1558
|
width: i,
|
|
1397
1559
|
height: c,
|
|
1398
|
-
x:
|
|
1399
|
-
y:
|
|
1560
|
+
x: a,
|
|
1561
|
+
y: l
|
|
1400
1562
|
};
|
|
1401
1563
|
}
|
|
1402
|
-
const
|
|
1403
|
-
function
|
|
1404
|
-
const n =
|
|
1564
|
+
const Lr = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1565
|
+
function Pr(t, e) {
|
|
1566
|
+
const n = tt(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, i = Y(t) ? it(t) : X(1), c = t.clientWidth * i.x, a = t.clientHeight * i.y, l = o * i.x, s = r * i.y;
|
|
1405
1567
|
return {
|
|
1406
1568
|
width: c,
|
|
1407
|
-
height:
|
|
1408
|
-
x:
|
|
1409
|
-
y:
|
|
1569
|
+
height: a,
|
|
1570
|
+
x: l,
|
|
1571
|
+
y: s
|
|
1410
1572
|
};
|
|
1411
1573
|
}
|
|
1412
|
-
function
|
|
1574
|
+
function ve(t, e, n) {
|
|
1413
1575
|
let r;
|
|
1414
1576
|
if (e === "viewport")
|
|
1415
|
-
r =
|
|
1577
|
+
r = _r(t, n);
|
|
1416
1578
|
else if (e === "document")
|
|
1417
|
-
r =
|
|
1418
|
-
else if (
|
|
1419
|
-
r =
|
|
1579
|
+
r = kr(q(t));
|
|
1580
|
+
else if (I(e))
|
|
1581
|
+
r = Pr(e, n);
|
|
1420
1582
|
else {
|
|
1421
|
-
const o =
|
|
1583
|
+
const o = Fe(t);
|
|
1422
1584
|
r = {
|
|
1423
1585
|
x: e.x - o.x,
|
|
1424
1586
|
y: e.y - o.y,
|
|
@@ -1426,110 +1588,110 @@ function Jt(t, e, n) {
|
|
|
1426
1588
|
height: e.height
|
|
1427
1589
|
};
|
|
1428
1590
|
}
|
|
1429
|
-
return
|
|
1591
|
+
return Et(r);
|
|
1430
1592
|
}
|
|
1431
|
-
function
|
|
1593
|
+
function Ie(t, e) {
|
|
1432
1594
|
const n = G(t);
|
|
1433
|
-
return n === e || !
|
|
1595
|
+
return n === e || !I(n) || ct(n) ? !1 : V(n).position === "fixed" || Ie(n, e);
|
|
1434
1596
|
}
|
|
1435
|
-
function
|
|
1597
|
+
function Tr(t, e) {
|
|
1436
1598
|
const n = e.get(t);
|
|
1437
1599
|
if (n)
|
|
1438
1600
|
return n;
|
|
1439
|
-
let r =
|
|
1440
|
-
const i =
|
|
1601
|
+
let r = ft(t, [], !1).filter((a) => I(a) && st(a) !== "body"), o = null;
|
|
1602
|
+
const i = V(t).position === "fixed";
|
|
1441
1603
|
let c = i ? G(t) : t;
|
|
1442
|
-
for (;
|
|
1443
|
-
const
|
|
1444
|
-
!
|
|
1604
|
+
for (; I(c) && !ct(c); ) {
|
|
1605
|
+
const a = V(c), l = Qt(c);
|
|
1606
|
+
!l && a.position === "fixed" && (o = null), (i ? !l && !o : !l && a.position === "static" && !!o && Lr.has(o.position) || dt(c) && !l && Ie(t, c)) ? r = r.filter((u) => u !== c) : o = a, c = G(c);
|
|
1445
1607
|
}
|
|
1446
1608
|
return e.set(t, r), r;
|
|
1447
1609
|
}
|
|
1448
|
-
function
|
|
1610
|
+
function Dr(t) {
|
|
1449
1611
|
let {
|
|
1450
1612
|
element: e,
|
|
1451
1613
|
boundary: n,
|
|
1452
1614
|
rootBoundary: r,
|
|
1453
1615
|
strategy: o
|
|
1454
1616
|
} = t;
|
|
1455
|
-
const c = [...n === "clippingAncestors" ?
|
|
1456
|
-
const
|
|
1457
|
-
return
|
|
1458
|
-
},
|
|
1617
|
+
const c = [...n === "clippingAncestors" ? _t(e) ? [] : Tr(e, this._c) : [].concat(n), r], a = c[0], l = c.reduce((s, u) => {
|
|
1618
|
+
const f = ve(e, u, o);
|
|
1619
|
+
return s.top = F(f.top, s.top), s.right = Q(f.right, s.right), s.bottom = Q(f.bottom, s.bottom), s.left = F(f.left, s.left), s;
|
|
1620
|
+
}, ve(e, a, o));
|
|
1459
1621
|
return {
|
|
1460
|
-
width:
|
|
1461
|
-
height:
|
|
1462
|
-
x:
|
|
1463
|
-
y:
|
|
1622
|
+
width: l.right - l.left,
|
|
1623
|
+
height: l.bottom - l.top,
|
|
1624
|
+
x: l.left,
|
|
1625
|
+
y: l.top
|
|
1464
1626
|
};
|
|
1465
1627
|
}
|
|
1466
|
-
function
|
|
1628
|
+
function Nr(t) {
|
|
1467
1629
|
const {
|
|
1468
1630
|
width: e,
|
|
1469
1631
|
height: n
|
|
1470
|
-
} =
|
|
1632
|
+
} = Be(t);
|
|
1471
1633
|
return {
|
|
1472
1634
|
width: e,
|
|
1473
1635
|
height: n
|
|
1474
1636
|
};
|
|
1475
1637
|
}
|
|
1476
|
-
function
|
|
1477
|
-
const r =
|
|
1478
|
-
let
|
|
1638
|
+
function Wr(t, e, n) {
|
|
1639
|
+
const r = Y(e), o = q(e), i = n === "fixed", c = tt(t, !0, i, e);
|
|
1640
|
+
let a = {
|
|
1479
1641
|
scrollLeft: 0,
|
|
1480
1642
|
scrollTop: 0
|
|
1481
1643
|
};
|
|
1482
|
-
const
|
|
1483
|
-
function
|
|
1484
|
-
|
|
1644
|
+
const l = X(0);
|
|
1645
|
+
function s() {
|
|
1646
|
+
l.x = Pt(o);
|
|
1485
1647
|
}
|
|
1486
1648
|
if (r || !r && !i)
|
|
1487
|
-
if ((
|
|
1488
|
-
const h =
|
|
1489
|
-
|
|
1490
|
-
} else o &&
|
|
1491
|
-
i && !r && o &&
|
|
1492
|
-
const
|
|
1649
|
+
if ((st(e) !== "body" || dt(o)) && (a = Lt(e)), r) {
|
|
1650
|
+
const h = tt(e, !0, i, e);
|
|
1651
|
+
l.x = h.x + e.clientLeft, l.y = h.y + e.clientTop;
|
|
1652
|
+
} else o && s();
|
|
1653
|
+
i && !r && o && s();
|
|
1654
|
+
const u = o && !r && !i ? He(o, a) : X(0), f = c.left + a.scrollLeft - l.x - u.x, m = c.top + a.scrollTop - l.y - u.y;
|
|
1493
1655
|
return {
|
|
1494
|
-
x:
|
|
1656
|
+
x: f,
|
|
1495
1657
|
y: m,
|
|
1496
1658
|
width: c.width,
|
|
1497
1659
|
height: c.height
|
|
1498
1660
|
};
|
|
1499
1661
|
}
|
|
1500
|
-
function
|
|
1501
|
-
return
|
|
1662
|
+
function Bt(t) {
|
|
1663
|
+
return V(t).position === "static";
|
|
1502
1664
|
}
|
|
1503
|
-
function
|
|
1504
|
-
if (!
|
|
1665
|
+
function ge(t, e) {
|
|
1666
|
+
if (!Y(t) || V(t).position === "fixed")
|
|
1505
1667
|
return null;
|
|
1506
1668
|
if (e)
|
|
1507
1669
|
return e(t);
|
|
1508
1670
|
let n = t.offsetParent;
|
|
1509
|
-
return
|
|
1671
|
+
return q(t) === n && (n = n.ownerDocument.body), n;
|
|
1510
1672
|
}
|
|
1511
|
-
function
|
|
1512
|
-
const n =
|
|
1513
|
-
if (
|
|
1673
|
+
function Ve(t, e) {
|
|
1674
|
+
const n = H(t);
|
|
1675
|
+
if (_t(t))
|
|
1514
1676
|
return n;
|
|
1515
|
-
if (!
|
|
1677
|
+
if (!Y(t)) {
|
|
1516
1678
|
let o = G(t);
|
|
1517
|
-
for (; o && !
|
|
1518
|
-
if (
|
|
1679
|
+
for (; o && !ct(o); ) {
|
|
1680
|
+
if (I(o) && !Bt(o))
|
|
1519
1681
|
return o;
|
|
1520
1682
|
o = G(o);
|
|
1521
1683
|
}
|
|
1522
1684
|
return n;
|
|
1523
1685
|
}
|
|
1524
|
-
let r =
|
|
1525
|
-
for (; r &&
|
|
1526
|
-
r =
|
|
1527
|
-
return r &&
|
|
1686
|
+
let r = ge(t, e);
|
|
1687
|
+
for (; r && wr(r) && Bt(r); )
|
|
1688
|
+
r = ge(r, e);
|
|
1689
|
+
return r && ct(r) && Bt(r) && !Qt(r) ? n : r || Cr(t) || n;
|
|
1528
1690
|
}
|
|
1529
|
-
const
|
|
1530
|
-
const e = this.getOffsetParent ||
|
|
1691
|
+
const Br = async function(t) {
|
|
1692
|
+
const e = this.getOffsetParent || Ve, n = this.getDimensions, r = await n(t.floating);
|
|
1531
1693
|
return {
|
|
1532
|
-
reference:
|
|
1694
|
+
reference: Wr(t.reference, await e(t.floating), t.strategy),
|
|
1533
1695
|
floating: {
|
|
1534
1696
|
x: 0,
|
|
1535
1697
|
y: 0,
|
|
@@ -1538,122 +1700,122 @@ const tr = async function(t) {
|
|
|
1538
1700
|
}
|
|
1539
1701
|
};
|
|
1540
1702
|
};
|
|
1541
|
-
function
|
|
1542
|
-
return
|
|
1543
|
-
}
|
|
1544
|
-
const
|
|
1545
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1546
|
-
getDocumentElement:
|
|
1547
|
-
getClippingRect:
|
|
1548
|
-
getOffsetParent:
|
|
1549
|
-
getElementRects:
|
|
1550
|
-
getClientRects:
|
|
1551
|
-
getDimensions:
|
|
1552
|
-
getScale:
|
|
1553
|
-
isElement:
|
|
1554
|
-
isRTL:
|
|
1703
|
+
function Fr(t) {
|
|
1704
|
+
return V(t).direction === "rtl";
|
|
1705
|
+
}
|
|
1706
|
+
const Hr = {
|
|
1707
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Or,
|
|
1708
|
+
getDocumentElement: q,
|
|
1709
|
+
getClippingRect: Dr,
|
|
1710
|
+
getOffsetParent: Ve,
|
|
1711
|
+
getElementRects: Br,
|
|
1712
|
+
getClientRects: Mr,
|
|
1713
|
+
getDimensions: Nr,
|
|
1714
|
+
getScale: it,
|
|
1715
|
+
isElement: I,
|
|
1716
|
+
isRTL: Fr
|
|
1555
1717
|
};
|
|
1556
|
-
function
|
|
1718
|
+
function $e(t, e) {
|
|
1557
1719
|
return t.x === e.x && t.y === e.y && t.width === e.width && t.height === e.height;
|
|
1558
1720
|
}
|
|
1559
|
-
function
|
|
1721
|
+
function Ir(t, e) {
|
|
1560
1722
|
let n = null, r;
|
|
1561
|
-
const o =
|
|
1723
|
+
const o = q(t);
|
|
1562
1724
|
function i() {
|
|
1563
|
-
var
|
|
1564
|
-
clearTimeout(r), (
|
|
1725
|
+
var a;
|
|
1726
|
+
clearTimeout(r), (a = n) == null || a.disconnect(), n = null;
|
|
1565
1727
|
}
|
|
1566
|
-
function c(
|
|
1567
|
-
|
|
1568
|
-
const
|
|
1569
|
-
left:
|
|
1570
|
-
top:
|
|
1728
|
+
function c(a, l) {
|
|
1729
|
+
a === void 0 && (a = !1), l === void 0 && (l = 1), i();
|
|
1730
|
+
const s = t.getBoundingClientRect(), {
|
|
1731
|
+
left: u,
|
|
1732
|
+
top: f,
|
|
1571
1733
|
width: m,
|
|
1572
1734
|
height: h
|
|
1573
|
-
} =
|
|
1574
|
-
if (
|
|
1735
|
+
} = s;
|
|
1736
|
+
if (a || e(), !m || !h)
|
|
1575
1737
|
return;
|
|
1576
|
-
const
|
|
1577
|
-
rootMargin: -
|
|
1578
|
-
threshold:
|
|
1738
|
+
const p = wt(f), d = wt(o.clientWidth - (u + m)), v = wt(o.clientHeight - (f + h)), g = wt(u), y = {
|
|
1739
|
+
rootMargin: -p + "px " + -d + "px " + -v + "px " + -g + "px",
|
|
1740
|
+
threshold: F(0, Q(1, l)) || 1
|
|
1579
1741
|
};
|
|
1580
|
-
let
|
|
1742
|
+
let x = !0;
|
|
1581
1743
|
function S(C) {
|
|
1582
1744
|
const R = C[0].intersectionRatio;
|
|
1583
|
-
if (R !==
|
|
1584
|
-
if (!
|
|
1745
|
+
if (R !== l) {
|
|
1746
|
+
if (!x)
|
|
1585
1747
|
return c();
|
|
1586
1748
|
R ? c(!1, R) : r = setTimeout(() => {
|
|
1587
1749
|
c(!1, 1e-7);
|
|
1588
1750
|
}, 1e3);
|
|
1589
1751
|
}
|
|
1590
|
-
R === 1 &&
|
|
1752
|
+
R === 1 && !$e(s, t.getBoundingClientRect()) && c(), x = !1;
|
|
1591
1753
|
}
|
|
1592
1754
|
try {
|
|
1593
1755
|
n = new IntersectionObserver(S, {
|
|
1594
|
-
...
|
|
1756
|
+
...y,
|
|
1595
1757
|
// Handle <iframe>s
|
|
1596
1758
|
root: o.ownerDocument
|
|
1597
1759
|
});
|
|
1598
1760
|
} catch {
|
|
1599
|
-
n = new IntersectionObserver(S,
|
|
1761
|
+
n = new IntersectionObserver(S, y);
|
|
1600
1762
|
}
|
|
1601
1763
|
n.observe(t);
|
|
1602
1764
|
}
|
|
1603
1765
|
return c(!0), i;
|
|
1604
1766
|
}
|
|
1605
|
-
function
|
|
1767
|
+
function to(t, e, n, r) {
|
|
1606
1768
|
r === void 0 && (r = {});
|
|
1607
1769
|
const {
|
|
1608
1770
|
ancestorScroll: o = !0,
|
|
1609
1771
|
ancestorResize: i = !0,
|
|
1610
1772
|
elementResize: c = typeof ResizeObserver == "function",
|
|
1611
|
-
layoutShift:
|
|
1612
|
-
animationFrame:
|
|
1613
|
-
} = r,
|
|
1614
|
-
|
|
1615
|
-
o &&
|
|
1773
|
+
layoutShift: a = typeof IntersectionObserver == "function",
|
|
1774
|
+
animationFrame: l = !1
|
|
1775
|
+
} = r, s = Jt(t), u = o || i ? [...s ? ft(s) : [], ...ft(e)] : [];
|
|
1776
|
+
u.forEach((g) => {
|
|
1777
|
+
o && g.addEventListener("scroll", n, {
|
|
1616
1778
|
passive: !0
|
|
1617
|
-
}), i &&
|
|
1779
|
+
}), i && g.addEventListener("resize", n);
|
|
1618
1780
|
});
|
|
1619
|
-
const
|
|
1781
|
+
const f = s && a ? Ir(s, n) : null;
|
|
1620
1782
|
let m = -1, h = null;
|
|
1621
|
-
c && (h = new ResizeObserver((
|
|
1622
|
-
let [
|
|
1623
|
-
|
|
1624
|
-
var
|
|
1625
|
-
(
|
|
1783
|
+
c && (h = new ResizeObserver((g) => {
|
|
1784
|
+
let [w] = g;
|
|
1785
|
+
w && w.target === s && h && (h.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1786
|
+
var y;
|
|
1787
|
+
(y = h) == null || y.observe(e);
|
|
1626
1788
|
})), n();
|
|
1627
|
-
}),
|
|
1628
|
-
let
|
|
1629
|
-
|
|
1630
|
-
function
|
|
1631
|
-
const
|
|
1632
|
-
d &&
|
|
1789
|
+
}), s && !l && h.observe(s), h.observe(e));
|
|
1790
|
+
let p, d = l ? tt(t) : null;
|
|
1791
|
+
l && v();
|
|
1792
|
+
function v() {
|
|
1793
|
+
const g = tt(t);
|
|
1794
|
+
d && !$e(d, g) && n(), d = g, p = requestAnimationFrame(v);
|
|
1633
1795
|
}
|
|
1634
1796
|
return n(), () => {
|
|
1635
|
-
var
|
|
1636
|
-
|
|
1637
|
-
o &&
|
|
1638
|
-
}),
|
|
1797
|
+
var g;
|
|
1798
|
+
u.forEach((w) => {
|
|
1799
|
+
o && w.removeEventListener("scroll", n), i && w.removeEventListener("resize", n);
|
|
1800
|
+
}), f == null || f(), (g = h) == null || g.disconnect(), h = null, l && cancelAnimationFrame(p);
|
|
1639
1801
|
};
|
|
1640
1802
|
}
|
|
1641
|
-
const
|
|
1803
|
+
const Vr = dr, $r = hr, zr = lr, jr = vr, Xr = ur, pe = sr, Yr = mr, qr = (t, e, n) => {
|
|
1642
1804
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
1643
|
-
platform:
|
|
1805
|
+
platform: Hr,
|
|
1644
1806
|
...n
|
|
1645
1807
|
}, i = {
|
|
1646
1808
|
...o.platform,
|
|
1647
1809
|
_c: r
|
|
1648
1810
|
};
|
|
1649
|
-
return
|
|
1811
|
+
return ar(t, e, {
|
|
1650
1812
|
...o,
|
|
1651
1813
|
platform: i
|
|
1652
1814
|
});
|
|
1653
1815
|
};
|
|
1654
|
-
var
|
|
1655
|
-
},
|
|
1656
|
-
function
|
|
1816
|
+
var Kr = typeof document < "u", Zr = function() {
|
|
1817
|
+
}, xt = Kr ? be : Zr;
|
|
1818
|
+
function At(t, e) {
|
|
1657
1819
|
if (t === e)
|
|
1658
1820
|
return !0;
|
|
1659
1821
|
if (typeof t != typeof e)
|
|
@@ -1665,7 +1827,7 @@ function yt(t, e) {
|
|
|
1665
1827
|
if (Array.isArray(t)) {
|
|
1666
1828
|
if (n = t.length, n !== e.length) return !1;
|
|
1667
1829
|
for (r = n; r-- !== 0; )
|
|
1668
|
-
if (!
|
|
1830
|
+
if (!At(t[r], e[r]))
|
|
1669
1831
|
return !1;
|
|
1670
1832
|
return !0;
|
|
1671
1833
|
}
|
|
@@ -1676,27 +1838,27 @@ function yt(t, e) {
|
|
|
1676
1838
|
return !1;
|
|
1677
1839
|
for (r = n; r-- !== 0; ) {
|
|
1678
1840
|
const i = o[r];
|
|
1679
|
-
if (!(i === "_owner" && t.$$typeof) && !
|
|
1841
|
+
if (!(i === "_owner" && t.$$typeof) && !At(t[i], e[i]))
|
|
1680
1842
|
return !1;
|
|
1681
1843
|
}
|
|
1682
1844
|
return !0;
|
|
1683
1845
|
}
|
|
1684
1846
|
return t !== t && e !== e;
|
|
1685
1847
|
}
|
|
1686
|
-
function
|
|
1848
|
+
function ze(t) {
|
|
1687
1849
|
return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1688
1850
|
}
|
|
1689
|
-
function
|
|
1690
|
-
const n =
|
|
1851
|
+
function we(t, e) {
|
|
1852
|
+
const n = ze(t);
|
|
1691
1853
|
return Math.round(e * n) / n;
|
|
1692
1854
|
}
|
|
1693
|
-
function
|
|
1694
|
-
const e =
|
|
1695
|
-
return
|
|
1855
|
+
function Ft(t) {
|
|
1856
|
+
const e = b.useRef(t);
|
|
1857
|
+
return xt(() => {
|
|
1696
1858
|
e.current = t;
|
|
1697
1859
|
}), e;
|
|
1698
1860
|
}
|
|
1699
|
-
function
|
|
1861
|
+
function eo(t) {
|
|
1700
1862
|
t === void 0 && (t = {});
|
|
1701
1863
|
const {
|
|
1702
1864
|
placement: e = "bottom",
|
|
@@ -1707,98 +1869,98 @@ function pr(t) {
|
|
|
1707
1869
|
reference: i,
|
|
1708
1870
|
floating: c
|
|
1709
1871
|
} = {},
|
|
1710
|
-
transform:
|
|
1711
|
-
whileElementsMounted:
|
|
1712
|
-
open:
|
|
1713
|
-
} = t, [
|
|
1872
|
+
transform: a = !0,
|
|
1873
|
+
whileElementsMounted: l,
|
|
1874
|
+
open: s
|
|
1875
|
+
} = t, [u, f] = b.useState({
|
|
1714
1876
|
x: 0,
|
|
1715
1877
|
y: 0,
|
|
1716
1878
|
strategy: n,
|
|
1717
1879
|
placement: e,
|
|
1718
1880
|
middlewareData: {},
|
|
1719
1881
|
isPositioned: !1
|
|
1720
|
-
}), [m, h] =
|
|
1721
|
-
|
|
1722
|
-
const [
|
|
1723
|
-
|
|
1724
|
-
}, []),
|
|
1725
|
-
|
|
1726
|
-
}, []),
|
|
1882
|
+
}), [m, h] = b.useState(r);
|
|
1883
|
+
At(m, r) || h(r);
|
|
1884
|
+
const [p, d] = b.useState(null), [v, g] = b.useState(null), w = b.useCallback((E) => {
|
|
1885
|
+
E !== C.current && (C.current = E, d(E));
|
|
1886
|
+
}, []), y = b.useCallback((E) => {
|
|
1887
|
+
E !== R.current && (R.current = E, g(E));
|
|
1888
|
+
}, []), x = i || p, S = c || v, C = b.useRef(null), R = b.useRef(null), M = b.useRef(u), P = l != null, O = Ft(l), k = Ft(o), T = Ft(s), N = b.useCallback(() => {
|
|
1727
1889
|
if (!C.current || !R.current)
|
|
1728
1890
|
return;
|
|
1729
|
-
const
|
|
1891
|
+
const E = {
|
|
1730
1892
|
placement: e,
|
|
1731
1893
|
strategy: n,
|
|
1732
1894
|
middleware: m
|
|
1733
1895
|
};
|
|
1734
|
-
|
|
1735
|
-
const
|
|
1736
|
-
...
|
|
1896
|
+
k.current && (E.platform = k.current), qr(C.current, R.current, E).then((B) => {
|
|
1897
|
+
const U = {
|
|
1898
|
+
...B,
|
|
1737
1899
|
// The floating element's position may be recomputed while it's closed
|
|
1738
1900
|
// but still mounted (such as when transitioning out). To ensure
|
|
1739
1901
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1740
1902
|
// setting it to `true` when `open === false` (must be specified).
|
|
1741
1903
|
isPositioned: T.current !== !1
|
|
1742
1904
|
};
|
|
1743
|
-
|
|
1744
|
-
|
|
1905
|
+
A.current && !At(M.current, U) && (M.current = U, Ye.flushSync(() => {
|
|
1906
|
+
f(U);
|
|
1745
1907
|
}));
|
|
1746
1908
|
});
|
|
1747
|
-
}, [m, e, n,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
...
|
|
1909
|
+
}, [m, e, n, k, T]);
|
|
1910
|
+
xt(() => {
|
|
1911
|
+
s === !1 && M.current.isPositioned && (M.current.isPositioned = !1, f((E) => ({
|
|
1912
|
+
...E,
|
|
1751
1913
|
isPositioned: !1
|
|
1752
1914
|
})));
|
|
1753
|
-
}, [
|
|
1754
|
-
const
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
}), []),
|
|
1758
|
-
if (
|
|
1915
|
+
}, [s]);
|
|
1916
|
+
const A = b.useRef(!1);
|
|
1917
|
+
xt(() => (A.current = !0, () => {
|
|
1918
|
+
A.current = !1;
|
|
1919
|
+
}), []), xt(() => {
|
|
1920
|
+
if (x && (C.current = x), S && (R.current = S), x && S) {
|
|
1759
1921
|
if (O.current)
|
|
1760
|
-
return O.current(
|
|
1761
|
-
|
|
1922
|
+
return O.current(x, S, N);
|
|
1923
|
+
N();
|
|
1762
1924
|
}
|
|
1763
|
-
}, [
|
|
1764
|
-
const $ =
|
|
1925
|
+
}, [x, S, N, O, P]);
|
|
1926
|
+
const $ = b.useMemo(() => ({
|
|
1765
1927
|
reference: C,
|
|
1766
1928
|
floating: R,
|
|
1767
|
-
setReference:
|
|
1768
|
-
setFloating:
|
|
1769
|
-
}), [
|
|
1770
|
-
reference:
|
|
1929
|
+
setReference: w,
|
|
1930
|
+
setFloating: y
|
|
1931
|
+
}), [w, y]), _ = b.useMemo(() => ({
|
|
1932
|
+
reference: x,
|
|
1771
1933
|
floating: S
|
|
1772
|
-
}), [
|
|
1773
|
-
const
|
|
1934
|
+
}), [x, S]), W = b.useMemo(() => {
|
|
1935
|
+
const E = {
|
|
1774
1936
|
position: n,
|
|
1775
1937
|
left: 0,
|
|
1776
1938
|
top: 0
|
|
1777
1939
|
};
|
|
1778
|
-
if (!
|
|
1779
|
-
return
|
|
1780
|
-
const
|
|
1781
|
-
return
|
|
1782
|
-
...
|
|
1783
|
-
transform: "translate(" +
|
|
1784
|
-
...
|
|
1940
|
+
if (!_.floating)
|
|
1941
|
+
return E;
|
|
1942
|
+
const B = we(_.floating, u.x), U = we(_.floating, u.y);
|
|
1943
|
+
return a ? {
|
|
1944
|
+
...E,
|
|
1945
|
+
transform: "translate(" + B + "px, " + U + "px)",
|
|
1946
|
+
...ze(_.floating) >= 1.5 && {
|
|
1785
1947
|
willChange: "transform"
|
|
1786
1948
|
}
|
|
1787
1949
|
} : {
|
|
1788
1950
|
position: n,
|
|
1789
|
-
left:
|
|
1790
|
-
top:
|
|
1951
|
+
left: B,
|
|
1952
|
+
top: U
|
|
1791
1953
|
};
|
|
1792
|
-
}, [n,
|
|
1793
|
-
return
|
|
1794
|
-
...
|
|
1795
|
-
update:
|
|
1954
|
+
}, [n, a, _.floating, u.x, u.y]);
|
|
1955
|
+
return b.useMemo(() => ({
|
|
1956
|
+
...u,
|
|
1957
|
+
update: N,
|
|
1796
1958
|
refs: $,
|
|
1797
|
-
elements:
|
|
1959
|
+
elements: _,
|
|
1798
1960
|
floatingStyles: W
|
|
1799
|
-
}), [
|
|
1961
|
+
}), [u, N, $, _, W]);
|
|
1800
1962
|
}
|
|
1801
|
-
const
|
|
1963
|
+
const Ur = (t) => {
|
|
1802
1964
|
function e(n) {
|
|
1803
1965
|
return {}.hasOwnProperty.call(n, "current");
|
|
1804
1966
|
}
|
|
@@ -1810,47 +1972,48 @@ const hr = (t) => {
|
|
|
1810
1972
|
element: r,
|
|
1811
1973
|
padding: o
|
|
1812
1974
|
} = typeof t == "function" ? t(n) : t;
|
|
1813
|
-
return r && e(r) ? r.current != null ?
|
|
1975
|
+
return r && e(r) ? r.current != null ? pe({
|
|
1814
1976
|
element: r.current,
|
|
1815
1977
|
padding: o
|
|
1816
|
-
}).fn(n) : {} : r ?
|
|
1978
|
+
}).fn(n) : {} : r ? pe({
|
|
1817
1979
|
element: r,
|
|
1818
1980
|
padding: o
|
|
1819
1981
|
}).fn(n) : {};
|
|
1820
1982
|
}
|
|
1821
1983
|
};
|
|
1822
|
-
},
|
|
1823
|
-
...
|
|
1984
|
+
}, no = (t, e) => ({
|
|
1985
|
+
...Vr(t),
|
|
1824
1986
|
options: [t, e]
|
|
1825
|
-
}),
|
|
1826
|
-
|
|
1987
|
+
}), ro = (t, e) => ({
|
|
1988
|
+
...$r(t),
|
|
1827
1989
|
options: [t, e]
|
|
1828
|
-
}),
|
|
1829
|
-
...
|
|
1990
|
+
}), oo = (t, e) => ({
|
|
1991
|
+
...Yr(t),
|
|
1830
1992
|
options: [t, e]
|
|
1831
|
-
}),
|
|
1832
|
-
...
|
|
1993
|
+
}), io = (t, e) => ({
|
|
1994
|
+
...zr(t),
|
|
1833
1995
|
options: [t, e]
|
|
1834
|
-
}),
|
|
1835
|
-
...
|
|
1996
|
+
}), co = (t, e) => ({
|
|
1997
|
+
...jr(t),
|
|
1836
1998
|
options: [t, e]
|
|
1837
|
-
}),
|
|
1838
|
-
...
|
|
1999
|
+
}), ao = (t, e) => ({
|
|
2000
|
+
...Xr(t),
|
|
1839
2001
|
options: [t, e]
|
|
1840
|
-
}),
|
|
1841
|
-
...
|
|
2002
|
+
}), so = (t, e) => ({
|
|
2003
|
+
...Ur(t),
|
|
1842
2004
|
options: [t, e]
|
|
1843
2005
|
});
|
|
1844
2006
|
export {
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
2007
|
+
_n as R,
|
|
2008
|
+
Jr as Z,
|
|
2009
|
+
co as a,
|
|
2010
|
+
so as b,
|
|
2011
|
+
ao as c,
|
|
2012
|
+
to as d,
|
|
2013
|
+
io as f,
|
|
2014
|
+
Gr as h,
|
|
2015
|
+
oo as l,
|
|
2016
|
+
no as o,
|
|
2017
|
+
ro as s,
|
|
2018
|
+
eo as u
|
|
1856
2019
|
};
|