@wrdagency/blockout 0.0.13 → 0.0.14
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/{2NBKRL7C-C6mXReCE.js → 2NBKRL7C-D-Q0qGRV.js} +3 -3
- package/dist/{P7GR5CS5-DNbthaqU.js → P7GR5CS5-qyeuZVEs.js} +1 -1
- package/dist/T7VMP3TM-BxgFbvdx.js +2106 -0
- package/dist/{UQQRIHDV-CFdrMoqW.js → UQQRIHDV-BGs025hb.js} +2 -2
- package/dist/{VIIRIBF3-B585VK9r.js → VIIRIBF3-D9clDhln.js} +1 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/assets/button.css +1 -0
- package/dist/assets/form.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/components/breadcrumbs/index.js +23 -16
- package/dist/components/button/{index.d.ts → button.d.ts} +2 -3
- package/dist/components/button/button.js +28 -0
- package/dist/components/button/icon.d.ts +6 -0
- package/dist/components/button/icon.js +10 -0
- package/dist/components/button/index.js +6 -26
- package/dist/components/controls/base-control/affix.d.ts +6 -0
- package/dist/components/controls/base-control/affix.js +15 -0
- package/dist/components/controls/base-control/index.js +26 -21
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.js +10 -8
- package/dist/components/controls/number-control/index.d.ts +1 -1
- package/dist/components/controls/number-control/index.js +37 -31
- package/dist/components/controls/password-control/index.d.ts +7 -0
- package/dist/components/controls/password-control/index.js +114 -0
- package/dist/components/controls/select-control/index.js +9 -9
- package/dist/components/data-table/column.js +1 -1
- package/dist/components/form/components/pagination.js +1 -1
- package/dist/components/form/components/step.js +22 -16
- package/dist/components/form/index.d.ts +0 -2
- package/dist/components/form/types/fields.d.ts +1 -1
- package/dist/components/form/types/form.d.ts +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +23 -19
- package/dist/components/markdown/index.d.ts +6 -0
- package/dist/components/markdown/index.js +25844 -0
- package/dist/components/menu/index.js +4 -4
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +2 -2
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/floating-ui.dom-9sqP7IwC.js +1512 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/theme.d.ts +8 -0
- package/dist/hooks/theme.js +45 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +30 -24
- package/dist/{item-C0kyELlf.js → item-D9r2-3fk.js} +5 -5
- package/package.json +3 -1
- package/dist/T7VMP3TM-B3jxXFmj.js +0 -3548
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
|
@@ -0,0 +1,1512 @@
|
|
|
1
|
+
import { g as $e } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
2
|
+
import Pe from "react";
|
|
3
|
+
var oe = { exports: {} }, R = {};
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
6
|
+
* react-dom.production.js
|
|
7
|
+
*
|
|
8
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the MIT license found in the
|
|
11
|
+
* LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
var _e;
|
|
14
|
+
function Ue() {
|
|
15
|
+
if (_e) return R;
|
|
16
|
+
_e = 1;
|
|
17
|
+
var e = Pe;
|
|
18
|
+
function t(a) {
|
|
19
|
+
var o = "https://react.dev/errors/" + a;
|
|
20
|
+
if (1 < arguments.length) {
|
|
21
|
+
o += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
22
|
+
for (var d = 2; d < arguments.length; d++)
|
|
23
|
+
o += "&args[]=" + encodeURIComponent(arguments[d]);
|
|
24
|
+
}
|
|
25
|
+
return "Minified React error #" + a + "; visit " + o + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
26
|
+
}
|
|
27
|
+
function i() {
|
|
28
|
+
}
|
|
29
|
+
var r = {
|
|
30
|
+
d: {
|
|
31
|
+
f: i,
|
|
32
|
+
r: function() {
|
|
33
|
+
throw Error(t(522));
|
|
34
|
+
},
|
|
35
|
+
D: i,
|
|
36
|
+
C: i,
|
|
37
|
+
L: i,
|
|
38
|
+
m: i,
|
|
39
|
+
X: i,
|
|
40
|
+
S: i,
|
|
41
|
+
M: i
|
|
42
|
+
},
|
|
43
|
+
p: 0,
|
|
44
|
+
findDOMNode: null
|
|
45
|
+
}, c = Symbol.for("react.portal");
|
|
46
|
+
function l(a, o, d) {
|
|
47
|
+
var s = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
48
|
+
return {
|
|
49
|
+
$$typeof: c,
|
|
50
|
+
key: s == null ? null : "" + s,
|
|
51
|
+
children: a,
|
|
52
|
+
containerInfo: o,
|
|
53
|
+
implementation: d
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
var f = e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
57
|
+
function g(a, o) {
|
|
58
|
+
if (a === "font") return "";
|
|
59
|
+
if (typeof o == "string")
|
|
60
|
+
return o === "use-credentials" ? o : "";
|
|
61
|
+
}
|
|
62
|
+
return R.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = r, R.createPortal = function(a, o) {
|
|
63
|
+
var d = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
64
|
+
if (!o || o.nodeType !== 1 && o.nodeType !== 9 && o.nodeType !== 11)
|
|
65
|
+
throw Error(t(299));
|
|
66
|
+
return l(a, o, null, d);
|
|
67
|
+
}, R.flushSync = function(a) {
|
|
68
|
+
var o = f.T, d = r.p;
|
|
69
|
+
try {
|
|
70
|
+
if (f.T = null, r.p = 2, a) return a();
|
|
71
|
+
} finally {
|
|
72
|
+
f.T = o, r.p = d, r.d.f();
|
|
73
|
+
}
|
|
74
|
+
}, R.preconnect = function(a, o) {
|
|
75
|
+
typeof a == "string" && (o ? (o = o.crossOrigin, o = typeof o == "string" ? o === "use-credentials" ? o : "" : void 0) : o = null, r.d.C(a, o));
|
|
76
|
+
}, R.prefetchDNS = function(a) {
|
|
77
|
+
typeof a == "string" && r.d.D(a);
|
|
78
|
+
}, R.preinit = function(a, o) {
|
|
79
|
+
if (typeof a == "string" && o && typeof o.as == "string") {
|
|
80
|
+
var d = o.as, s = g(d, o.crossOrigin), n = typeof o.integrity == "string" ? o.integrity : void 0, u = typeof o.fetchPriority == "string" ? o.fetchPriority : void 0;
|
|
81
|
+
d === "style" ? r.d.S(
|
|
82
|
+
a,
|
|
83
|
+
typeof o.precedence == "string" ? o.precedence : void 0,
|
|
84
|
+
{
|
|
85
|
+
crossOrigin: s,
|
|
86
|
+
integrity: n,
|
|
87
|
+
fetchPriority: u
|
|
88
|
+
}
|
|
89
|
+
) : d === "script" && r.d.X(a, {
|
|
90
|
+
crossOrigin: s,
|
|
91
|
+
integrity: n,
|
|
92
|
+
fetchPriority: u,
|
|
93
|
+
nonce: typeof o.nonce == "string" ? o.nonce : void 0
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
}, R.preinitModule = function(a, o) {
|
|
97
|
+
if (typeof a == "string")
|
|
98
|
+
if (typeof o == "object" && o !== null) {
|
|
99
|
+
if (o.as == null || o.as === "script") {
|
|
100
|
+
var d = g(
|
|
101
|
+
o.as,
|
|
102
|
+
o.crossOrigin
|
|
103
|
+
);
|
|
104
|
+
r.d.M(a, {
|
|
105
|
+
crossOrigin: d,
|
|
106
|
+
integrity: typeof o.integrity == "string" ? o.integrity : void 0,
|
|
107
|
+
nonce: typeof o.nonce == "string" ? o.nonce : void 0
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
} else o == null && r.d.M(a);
|
|
111
|
+
}, R.preload = function(a, o) {
|
|
112
|
+
if (typeof a == "string" && typeof o == "object" && o !== null && typeof o.as == "string") {
|
|
113
|
+
var d = o.as, s = g(d, o.crossOrigin);
|
|
114
|
+
r.d.L(a, d, {
|
|
115
|
+
crossOrigin: s,
|
|
116
|
+
integrity: typeof o.integrity == "string" ? o.integrity : void 0,
|
|
117
|
+
nonce: typeof o.nonce == "string" ? o.nonce : void 0,
|
|
118
|
+
type: typeof o.type == "string" ? o.type : void 0,
|
|
119
|
+
fetchPriority: typeof o.fetchPriority == "string" ? o.fetchPriority : void 0,
|
|
120
|
+
referrerPolicy: typeof o.referrerPolicy == "string" ? o.referrerPolicy : void 0,
|
|
121
|
+
imageSrcSet: typeof o.imageSrcSet == "string" ? o.imageSrcSet : void 0,
|
|
122
|
+
imageSizes: typeof o.imageSizes == "string" ? o.imageSizes : void 0,
|
|
123
|
+
media: typeof o.media == "string" ? o.media : void 0
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}, R.preloadModule = function(a, o) {
|
|
127
|
+
if (typeof a == "string")
|
|
128
|
+
if (o) {
|
|
129
|
+
var d = g(o.as, o.crossOrigin);
|
|
130
|
+
r.d.m(a, {
|
|
131
|
+
as: typeof o.as == "string" && o.as !== "script" ? o.as : void 0,
|
|
132
|
+
crossOrigin: d,
|
|
133
|
+
integrity: typeof o.integrity == "string" ? o.integrity : void 0
|
|
134
|
+
});
|
|
135
|
+
} else r.d.m(a);
|
|
136
|
+
}, R.requestFormReset = function(a) {
|
|
137
|
+
r.d.r(a);
|
|
138
|
+
}, R.unstable_batchedUpdates = function(a, o) {
|
|
139
|
+
return a(o);
|
|
140
|
+
}, R.useFormState = function(a, o, d) {
|
|
141
|
+
return f.H.useFormState(a, o, d);
|
|
142
|
+
}, R.useFormStatus = function() {
|
|
143
|
+
return f.H.useHostTransitionStatus();
|
|
144
|
+
}, R.version = "19.1.0", R;
|
|
145
|
+
}
|
|
146
|
+
var _ = {};
|
|
147
|
+
/**
|
|
148
|
+
* @license React
|
|
149
|
+
* react-dom.development.js
|
|
150
|
+
*
|
|
151
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the MIT license found in the
|
|
154
|
+
* LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/
|
|
156
|
+
var Se;
|
|
157
|
+
function Ye() {
|
|
158
|
+
return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
|
|
159
|
+
function e() {
|
|
160
|
+
}
|
|
161
|
+
function t(s) {
|
|
162
|
+
return "" + s;
|
|
163
|
+
}
|
|
164
|
+
function i(s, n, u) {
|
|
165
|
+
var m = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
|
|
166
|
+
try {
|
|
167
|
+
t(m);
|
|
168
|
+
var y = !1;
|
|
169
|
+
} catch {
|
|
170
|
+
y = !0;
|
|
171
|
+
}
|
|
172
|
+
return y && (console.error(
|
|
173
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
174
|
+
typeof Symbol == "function" && Symbol.toStringTag && m[Symbol.toStringTag] || m.constructor.name || "Object"
|
|
175
|
+
), t(m)), {
|
|
176
|
+
$$typeof: o,
|
|
177
|
+
key: m == null ? null : "" + m,
|
|
178
|
+
children: s,
|
|
179
|
+
containerInfo: n,
|
|
180
|
+
implementation: u
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function r(s, n) {
|
|
184
|
+
if (s === "font") return "";
|
|
185
|
+
if (typeof n == "string")
|
|
186
|
+
return n === "use-credentials" ? n : "";
|
|
187
|
+
}
|
|
188
|
+
function c(s) {
|
|
189
|
+
return s === null ? "`null`" : s === void 0 ? "`undefined`" : s === "" ? "an empty string" : 'something with type "' + typeof s + '"';
|
|
190
|
+
}
|
|
191
|
+
function l(s) {
|
|
192
|
+
return s === null ? "`null`" : s === void 0 ? "`undefined`" : s === "" ? "an empty string" : typeof s == "string" ? JSON.stringify(s) : typeof s == "number" ? "`" + s + "`" : 'something with type "' + typeof s + '"';
|
|
193
|
+
}
|
|
194
|
+
function f() {
|
|
195
|
+
var s = d.H;
|
|
196
|
+
return s === null && console.error(
|
|
197
|
+
`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
198
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
199
|
+
2. You might be breaking the Rules of Hooks
|
|
200
|
+
3. You might have more than one copy of React in the same app
|
|
201
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`
|
|
202
|
+
), s;
|
|
203
|
+
}
|
|
204
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
205
|
+
var g = Pe, a = {
|
|
206
|
+
d: {
|
|
207
|
+
f: e,
|
|
208
|
+
r: function() {
|
|
209
|
+
throw Error(
|
|
210
|
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
211
|
+
);
|
|
212
|
+
},
|
|
213
|
+
D: e,
|
|
214
|
+
C: e,
|
|
215
|
+
L: e,
|
|
216
|
+
m: e,
|
|
217
|
+
X: e,
|
|
218
|
+
S: e,
|
|
219
|
+
M: e
|
|
220
|
+
},
|
|
221
|
+
p: 0,
|
|
222
|
+
findDOMNode: null
|
|
223
|
+
}, o = Symbol.for("react.portal"), d = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
224
|
+
typeof Map == "function" && Map.prototype != null && typeof Map.prototype.forEach == "function" && typeof Set == "function" && Set.prototype != null && typeof Set.prototype.clear == "function" && typeof Set.prototype.forEach == "function" || console.error(
|
|
225
|
+
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
226
|
+
), _.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = a, _.createPortal = function(s, n) {
|
|
227
|
+
var u = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
|
228
|
+
if (!n || n.nodeType !== 1 && n.nodeType !== 9 && n.nodeType !== 11)
|
|
229
|
+
throw Error("Target container is not a DOM element.");
|
|
230
|
+
return i(s, n, null, u);
|
|
231
|
+
}, _.flushSync = function(s) {
|
|
232
|
+
var n = d.T, u = a.p;
|
|
233
|
+
try {
|
|
234
|
+
if (d.T = null, a.p = 2, s)
|
|
235
|
+
return s();
|
|
236
|
+
} finally {
|
|
237
|
+
d.T = n, a.p = u, a.d.f() && console.error(
|
|
238
|
+
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
}, _.preconnect = function(s, n) {
|
|
242
|
+
typeof s == "string" && s ? n != null && typeof n != "object" ? console.error(
|
|
243
|
+
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
244
|
+
l(n)
|
|
245
|
+
) : n != null && typeof n.crossOrigin != "string" && console.error(
|
|
246
|
+
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
247
|
+
c(n.crossOrigin)
|
|
248
|
+
) : console.error(
|
|
249
|
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
250
|
+
c(s)
|
|
251
|
+
), typeof s == "string" && (n ? (n = n.crossOrigin, n = typeof n == "string" ? n === "use-credentials" ? n : "" : void 0) : n = null, a.d.C(s, n));
|
|
252
|
+
}, _.prefetchDNS = function(s) {
|
|
253
|
+
if (typeof s != "string" || !s)
|
|
254
|
+
console.error(
|
|
255
|
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
256
|
+
c(s)
|
|
257
|
+
);
|
|
258
|
+
else if (1 < arguments.length) {
|
|
259
|
+
var n = arguments[1];
|
|
260
|
+
typeof n == "object" && n.hasOwnProperty("crossOrigin") ? console.error(
|
|
261
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
262
|
+
l(n)
|
|
263
|
+
) : console.error(
|
|
264
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
265
|
+
l(n)
|
|
266
|
+
);
|
|
267
|
+
}
|
|
268
|
+
typeof s == "string" && a.d.D(s);
|
|
269
|
+
}, _.preinit = function(s, n) {
|
|
270
|
+
if (typeof s == "string" && s ? n == null || typeof n != "object" ? console.error(
|
|
271
|
+
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
272
|
+
l(n)
|
|
273
|
+
) : n.as !== "style" && n.as !== "script" && console.error(
|
|
274
|
+
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
275
|
+
l(n.as)
|
|
276
|
+
) : console.error(
|
|
277
|
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
278
|
+
c(s)
|
|
279
|
+
), typeof s == "string" && n && typeof n.as == "string") {
|
|
280
|
+
var u = n.as, m = r(u, n.crossOrigin), y = typeof n.integrity == "string" ? n.integrity : void 0, h = typeof n.fetchPriority == "string" ? n.fetchPriority : void 0;
|
|
281
|
+
u === "style" ? a.d.S(
|
|
282
|
+
s,
|
|
283
|
+
typeof n.precedence == "string" ? n.precedence : void 0,
|
|
284
|
+
{
|
|
285
|
+
crossOrigin: m,
|
|
286
|
+
integrity: y,
|
|
287
|
+
fetchPriority: h
|
|
288
|
+
}
|
|
289
|
+
) : u === "script" && a.d.X(s, {
|
|
290
|
+
crossOrigin: m,
|
|
291
|
+
integrity: y,
|
|
292
|
+
fetchPriority: h,
|
|
293
|
+
nonce: typeof n.nonce == "string" ? n.nonce : void 0
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
}, _.preinitModule = function(s, n) {
|
|
297
|
+
var u = "";
|
|
298
|
+
if (typeof s == "string" && s || (u += " The `href` argument encountered was " + c(s) + "."), n !== void 0 && typeof n != "object" ? u += " The `options` argument encountered was " + c(n) + "." : n && "as" in n && n.as !== "script" && (u += " The `as` option encountered was " + l(n.as) + "."), u)
|
|
299
|
+
console.error(
|
|
300
|
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
301
|
+
u
|
|
302
|
+
);
|
|
303
|
+
else
|
|
304
|
+
switch (u = n && typeof n.as == "string" ? n.as : "script", u) {
|
|
305
|
+
case "script":
|
|
306
|
+
break;
|
|
307
|
+
default:
|
|
308
|
+
u = l(u), console.error(
|
|
309
|
+
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
310
|
+
u,
|
|
311
|
+
s
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
typeof s == "string" && (typeof n == "object" && n !== null ? (n.as == null || n.as === "script") && (u = r(
|
|
315
|
+
n.as,
|
|
316
|
+
n.crossOrigin
|
|
317
|
+
), a.d.M(s, {
|
|
318
|
+
crossOrigin: u,
|
|
319
|
+
integrity: typeof n.integrity == "string" ? n.integrity : void 0,
|
|
320
|
+
nonce: typeof n.nonce == "string" ? n.nonce : void 0
|
|
321
|
+
})) : n == null && a.d.M(s));
|
|
322
|
+
}, _.preload = function(s, n) {
|
|
323
|
+
var u = "";
|
|
324
|
+
if (typeof s == "string" && s || (u += " The `href` argument encountered was " + c(s) + "."), n == null || typeof n != "object" ? u += " The `options` argument encountered was " + c(n) + "." : typeof n.as == "string" && n.as || (u += " The `as` option encountered was " + c(n.as) + "."), u && console.error(
|
|
325
|
+
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
326
|
+
u
|
|
327
|
+
), typeof s == "string" && typeof n == "object" && n !== null && typeof n.as == "string") {
|
|
328
|
+
u = n.as;
|
|
329
|
+
var m = r(
|
|
330
|
+
u,
|
|
331
|
+
n.crossOrigin
|
|
332
|
+
);
|
|
333
|
+
a.d.L(s, u, {
|
|
334
|
+
crossOrigin: m,
|
|
335
|
+
integrity: typeof n.integrity == "string" ? n.integrity : void 0,
|
|
336
|
+
nonce: typeof n.nonce == "string" ? n.nonce : void 0,
|
|
337
|
+
type: typeof n.type == "string" ? n.type : void 0,
|
|
338
|
+
fetchPriority: typeof n.fetchPriority == "string" ? n.fetchPriority : void 0,
|
|
339
|
+
referrerPolicy: typeof n.referrerPolicy == "string" ? n.referrerPolicy : void 0,
|
|
340
|
+
imageSrcSet: typeof n.imageSrcSet == "string" ? n.imageSrcSet : void 0,
|
|
341
|
+
imageSizes: typeof n.imageSizes == "string" ? n.imageSizes : void 0,
|
|
342
|
+
media: typeof n.media == "string" ? n.media : void 0
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}, _.preloadModule = function(s, n) {
|
|
346
|
+
var u = "";
|
|
347
|
+
typeof s == "string" && s || (u += " The `href` argument encountered was " + c(s) + "."), n !== void 0 && typeof n != "object" ? u += " The `options` argument encountered was " + c(n) + "." : n && "as" in n && typeof n.as != "string" && (u += " The `as` option encountered was " + c(n.as) + "."), u && console.error(
|
|
348
|
+
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
349
|
+
u
|
|
350
|
+
), typeof s == "string" && (n ? (u = r(
|
|
351
|
+
n.as,
|
|
352
|
+
n.crossOrigin
|
|
353
|
+
), a.d.m(s, {
|
|
354
|
+
as: typeof n.as == "string" && n.as !== "script" ? n.as : void 0,
|
|
355
|
+
crossOrigin: u,
|
|
356
|
+
integrity: typeof n.integrity == "string" ? n.integrity : void 0
|
|
357
|
+
})) : a.d.m(s));
|
|
358
|
+
}, _.requestFormReset = function(s) {
|
|
359
|
+
a.d.r(s);
|
|
360
|
+
}, _.unstable_batchedUpdates = function(s, n) {
|
|
361
|
+
return s(n);
|
|
362
|
+
}, _.useFormState = function(s, n, u) {
|
|
363
|
+
return f().useFormState(s, n, u);
|
|
364
|
+
}, _.useFormStatus = function() {
|
|
365
|
+
return f().useHostTransitionStatus();
|
|
366
|
+
}, _.version = "19.1.0", typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
367
|
+
}()), _;
|
|
368
|
+
}
|
|
369
|
+
var Te;
|
|
370
|
+
function qe() {
|
|
371
|
+
if (Te) return oe.exports;
|
|
372
|
+
Te = 1;
|
|
373
|
+
function e() {
|
|
374
|
+
if (!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE != "function")) {
|
|
375
|
+
if (process.env.NODE_ENV !== "production")
|
|
376
|
+
throw new Error("^_^");
|
|
377
|
+
try {
|
|
378
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e);
|
|
379
|
+
} catch (t) {
|
|
380
|
+
console.error(t);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
return process.env.NODE_ENV === "production" ? (e(), oe.exports = Ue()) : oe.exports = Ye(), oe.exports;
|
|
385
|
+
}
|
|
386
|
+
var Ge = qe();
|
|
387
|
+
const Lt = /* @__PURE__ */ $e(Ge), Ke = ["top", "right", "bottom", "left"], G = Math.min, T = Math.max, ce = Math.round, se = Math.floor, H = (e) => ({
|
|
388
|
+
x: e,
|
|
389
|
+
y: e
|
|
390
|
+
}), Xe = {
|
|
391
|
+
left: "right",
|
|
392
|
+
right: "left",
|
|
393
|
+
bottom: "top",
|
|
394
|
+
top: "bottom"
|
|
395
|
+
}, Je = {
|
|
396
|
+
start: "end",
|
|
397
|
+
end: "start"
|
|
398
|
+
};
|
|
399
|
+
function me(e, t, i) {
|
|
400
|
+
return T(e, G(t, i));
|
|
401
|
+
}
|
|
402
|
+
function j(e, t) {
|
|
403
|
+
return typeof e == "function" ? e(t) : e;
|
|
404
|
+
}
|
|
405
|
+
function z(e) {
|
|
406
|
+
return e.split("-")[0];
|
|
407
|
+
}
|
|
408
|
+
function ee(e) {
|
|
409
|
+
return e.split("-")[1];
|
|
410
|
+
}
|
|
411
|
+
function pe(e) {
|
|
412
|
+
return e === "x" ? "y" : "x";
|
|
413
|
+
}
|
|
414
|
+
function ve(e) {
|
|
415
|
+
return e === "y" ? "height" : "width";
|
|
416
|
+
}
|
|
417
|
+
function W(e) {
|
|
418
|
+
return ["top", "bottom"].includes(z(e)) ? "y" : "x";
|
|
419
|
+
}
|
|
420
|
+
function we(e) {
|
|
421
|
+
return pe(W(e));
|
|
422
|
+
}
|
|
423
|
+
function Qe(e, t, i) {
|
|
424
|
+
i === void 0 && (i = !1);
|
|
425
|
+
const r = ee(e), c = we(e), l = ve(c);
|
|
426
|
+
let f = c === "x" ? r === (i ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
427
|
+
return t.reference[l] > t.floating[l] && (f = ae(f)), [f, ae(f)];
|
|
428
|
+
}
|
|
429
|
+
function Ze(e) {
|
|
430
|
+
const t = ae(e);
|
|
431
|
+
return [ye(e), t, ye(t)];
|
|
432
|
+
}
|
|
433
|
+
function ye(e) {
|
|
434
|
+
return e.replace(/start|end/g, (t) => Je[t]);
|
|
435
|
+
}
|
|
436
|
+
function et(e, t, i) {
|
|
437
|
+
const r = ["left", "right"], c = ["right", "left"], l = ["top", "bottom"], f = ["bottom", "top"];
|
|
438
|
+
switch (e) {
|
|
439
|
+
case "top":
|
|
440
|
+
case "bottom":
|
|
441
|
+
return i ? t ? c : r : t ? r : c;
|
|
442
|
+
case "left":
|
|
443
|
+
case "right":
|
|
444
|
+
return t ? l : f;
|
|
445
|
+
default:
|
|
446
|
+
return [];
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
function tt(e, t, i, r) {
|
|
450
|
+
const c = ee(e);
|
|
451
|
+
let l = et(z(e), i === "start", r);
|
|
452
|
+
return c && (l = l.map((f) => f + "-" + c), t && (l = l.concat(l.map(ye)))), l;
|
|
453
|
+
}
|
|
454
|
+
function ae(e) {
|
|
455
|
+
return e.replace(/left|right|bottom|top/g, (t) => Xe[t]);
|
|
456
|
+
}
|
|
457
|
+
function nt(e) {
|
|
458
|
+
return {
|
|
459
|
+
top: 0,
|
|
460
|
+
right: 0,
|
|
461
|
+
bottom: 0,
|
|
462
|
+
left: 0,
|
|
463
|
+
...e
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
function Ne(e) {
|
|
467
|
+
return typeof e != "number" ? nt(e) : {
|
|
468
|
+
top: e,
|
|
469
|
+
right: e,
|
|
470
|
+
bottom: e,
|
|
471
|
+
left: e
|
|
472
|
+
};
|
|
473
|
+
}
|
|
474
|
+
function le(e) {
|
|
475
|
+
const {
|
|
476
|
+
x: t,
|
|
477
|
+
y: i,
|
|
478
|
+
width: r,
|
|
479
|
+
height: c
|
|
480
|
+
} = e;
|
|
481
|
+
return {
|
|
482
|
+
width: r,
|
|
483
|
+
height: c,
|
|
484
|
+
top: i,
|
|
485
|
+
left: t,
|
|
486
|
+
right: t + r,
|
|
487
|
+
bottom: i + c,
|
|
488
|
+
x: t,
|
|
489
|
+
y: i
|
|
490
|
+
};
|
|
491
|
+
}
|
|
492
|
+
function Ae(e, t, i) {
|
|
493
|
+
let {
|
|
494
|
+
reference: r,
|
|
495
|
+
floating: c
|
|
496
|
+
} = e;
|
|
497
|
+
const l = W(t), f = we(t), g = ve(f), a = z(t), o = l === "y", d = r.x + r.width / 2 - c.width / 2, s = r.y + r.height / 2 - c.height / 2, n = r[g] / 2 - c[g] / 2;
|
|
498
|
+
let u;
|
|
499
|
+
switch (a) {
|
|
500
|
+
case "top":
|
|
501
|
+
u = {
|
|
502
|
+
x: d,
|
|
503
|
+
y: r.y - c.height
|
|
504
|
+
};
|
|
505
|
+
break;
|
|
506
|
+
case "bottom":
|
|
507
|
+
u = {
|
|
508
|
+
x: d,
|
|
509
|
+
y: r.y + r.height
|
|
510
|
+
};
|
|
511
|
+
break;
|
|
512
|
+
case "right":
|
|
513
|
+
u = {
|
|
514
|
+
x: r.x + r.width,
|
|
515
|
+
y: s
|
|
516
|
+
};
|
|
517
|
+
break;
|
|
518
|
+
case "left":
|
|
519
|
+
u = {
|
|
520
|
+
x: r.x - c.width,
|
|
521
|
+
y: s
|
|
522
|
+
};
|
|
523
|
+
break;
|
|
524
|
+
default:
|
|
525
|
+
u = {
|
|
526
|
+
x: r.x,
|
|
527
|
+
y: r.y
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
switch (ee(t)) {
|
|
531
|
+
case "start":
|
|
532
|
+
u[f] -= n * (i && o ? -1 : 1);
|
|
533
|
+
break;
|
|
534
|
+
case "end":
|
|
535
|
+
u[f] += n * (i && o ? -1 : 1);
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
return u;
|
|
539
|
+
}
|
|
540
|
+
const rt = async (e, t, i) => {
|
|
541
|
+
const {
|
|
542
|
+
placement: r = "bottom",
|
|
543
|
+
strategy: c = "absolute",
|
|
544
|
+
middleware: l = [],
|
|
545
|
+
platform: f
|
|
546
|
+
} = i, g = l.filter(Boolean), a = await (f.isRTL == null ? void 0 : f.isRTL(t));
|
|
547
|
+
let o = await f.getElementRects({
|
|
548
|
+
reference: e,
|
|
549
|
+
floating: t,
|
|
550
|
+
strategy: c
|
|
551
|
+
}), {
|
|
552
|
+
x: d,
|
|
553
|
+
y: s
|
|
554
|
+
} = Ae(o, r, a), n = r, u = {}, m = 0;
|
|
555
|
+
for (let y = 0; y < g.length; y++) {
|
|
556
|
+
const {
|
|
557
|
+
name: h,
|
|
558
|
+
fn: p
|
|
559
|
+
} = g[y], {
|
|
560
|
+
x: v,
|
|
561
|
+
y: w,
|
|
562
|
+
data: O,
|
|
563
|
+
reset: x
|
|
564
|
+
} = await p({
|
|
565
|
+
x: d,
|
|
566
|
+
y: s,
|
|
567
|
+
initialPlacement: r,
|
|
568
|
+
placement: n,
|
|
569
|
+
strategy: c,
|
|
570
|
+
middlewareData: u,
|
|
571
|
+
rects: o,
|
|
572
|
+
platform: f,
|
|
573
|
+
elements: {
|
|
574
|
+
reference: e,
|
|
575
|
+
floating: t
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
d = v ?? d, s = w ?? s, u = {
|
|
579
|
+
...u,
|
|
580
|
+
[h]: {
|
|
581
|
+
...u[h],
|
|
582
|
+
...O
|
|
583
|
+
}
|
|
584
|
+
}, x && m <= 50 && (m++, typeof x == "object" && (x.placement && (n = x.placement), x.rects && (o = x.rects === !0 ? await f.getElementRects({
|
|
585
|
+
reference: e,
|
|
586
|
+
floating: t,
|
|
587
|
+
strategy: c
|
|
588
|
+
}) : x.rects), {
|
|
589
|
+
x: d,
|
|
590
|
+
y: s
|
|
591
|
+
} = Ae(o, n, a)), y = -1);
|
|
592
|
+
}
|
|
593
|
+
return {
|
|
594
|
+
x: d,
|
|
595
|
+
y: s,
|
|
596
|
+
placement: n,
|
|
597
|
+
strategy: c,
|
|
598
|
+
middlewareData: u
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
async function ne(e, t) {
|
|
602
|
+
var i;
|
|
603
|
+
t === void 0 && (t = {});
|
|
604
|
+
const {
|
|
605
|
+
x: r,
|
|
606
|
+
y: c,
|
|
607
|
+
platform: l,
|
|
608
|
+
rects: f,
|
|
609
|
+
elements: g,
|
|
610
|
+
strategy: a
|
|
611
|
+
} = e, {
|
|
612
|
+
boundary: o = "clippingAncestors",
|
|
613
|
+
rootBoundary: d = "viewport",
|
|
614
|
+
elementContext: s = "floating",
|
|
615
|
+
altBoundary: n = !1,
|
|
616
|
+
padding: u = 0
|
|
617
|
+
} = j(t, e), m = Ne(u), h = g[n ? s === "floating" ? "reference" : "floating" : s], p = le(await l.getClippingRect({
|
|
618
|
+
element: (i = await (l.isElement == null ? void 0 : l.isElement(h))) == null || i ? h : h.contextElement || await (l.getDocumentElement == null ? void 0 : l.getDocumentElement(g.floating)),
|
|
619
|
+
boundary: o,
|
|
620
|
+
rootBoundary: d,
|
|
621
|
+
strategy: a
|
|
622
|
+
})), v = s === "floating" ? {
|
|
623
|
+
x: r,
|
|
624
|
+
y: c,
|
|
625
|
+
width: f.floating.width,
|
|
626
|
+
height: f.floating.height
|
|
627
|
+
} : f.reference, w = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(g.floating)), O = await (l.isElement == null ? void 0 : l.isElement(w)) ? await (l.getScale == null ? void 0 : l.getScale(w)) || {
|
|
628
|
+
x: 1,
|
|
629
|
+
y: 1
|
|
630
|
+
} : {
|
|
631
|
+
x: 1,
|
|
632
|
+
y: 1
|
|
633
|
+
}, x = le(l.convertOffsetParentRelativeRectToViewportRelativeRect ? await l.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
634
|
+
elements: g,
|
|
635
|
+
rect: v,
|
|
636
|
+
offsetParent: w,
|
|
637
|
+
strategy: a
|
|
638
|
+
}) : v);
|
|
639
|
+
return {
|
|
640
|
+
top: (p.top - x.top + m.top) / O.y,
|
|
641
|
+
bottom: (x.bottom - p.bottom + m.bottom) / O.y,
|
|
642
|
+
left: (p.left - x.left + m.left) / O.x,
|
|
643
|
+
right: (x.right - p.right + m.right) / O.x
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
const it = (e) => ({
|
|
647
|
+
name: "arrow",
|
|
648
|
+
options: e,
|
|
649
|
+
async fn(t) {
|
|
650
|
+
const {
|
|
651
|
+
x: i,
|
|
652
|
+
y: r,
|
|
653
|
+
placement: c,
|
|
654
|
+
rects: l,
|
|
655
|
+
platform: f,
|
|
656
|
+
elements: g,
|
|
657
|
+
middlewareData: a
|
|
658
|
+
} = t, {
|
|
659
|
+
element: o,
|
|
660
|
+
padding: d = 0
|
|
661
|
+
} = j(e, t) || {};
|
|
662
|
+
if (o == null)
|
|
663
|
+
return {};
|
|
664
|
+
const s = Ne(d), n = {
|
|
665
|
+
x: i,
|
|
666
|
+
y: r
|
|
667
|
+
}, u = we(c), m = ve(u), y = await f.getDimensions(o), h = u === "y", p = h ? "top" : "left", v = h ? "bottom" : "right", w = h ? "clientHeight" : "clientWidth", O = l.reference[m] + l.reference[u] - n[u] - l.floating[m], x = n[u] - l.reference[u], S = await (f.getOffsetParent == null ? void 0 : f.getOffsetParent(o));
|
|
668
|
+
let b = S ? S[w] : 0;
|
|
669
|
+
(!b || !await (f.isElement == null ? void 0 : f.isElement(S))) && (b = g.floating[w] || l.floating[m]);
|
|
670
|
+
const B = O / 2 - x / 2, M = b / 2 - y[m] / 2 - 1, E = G(s[p], M), $ = G(s[v], M), P = E, U = b - y[m] - $, N = b / 2 - y[m] / 2 + B, D = me(P, N, U), X = !a.arrow && ee(c) != null && N !== D && l.reference[m] / 2 - (N < P ? E : $) - y[m] / 2 < 0, I = X ? N < P ? N - P : N - U : 0;
|
|
671
|
+
return {
|
|
672
|
+
[u]: n[u] + I,
|
|
673
|
+
data: {
|
|
674
|
+
[u]: D,
|
|
675
|
+
centerOffset: N - D - I,
|
|
676
|
+
...X && {
|
|
677
|
+
alignmentOffset: I
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
reset: X
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
}), ot = function(e) {
|
|
684
|
+
return e === void 0 && (e = {}), {
|
|
685
|
+
name: "flip",
|
|
686
|
+
options: e,
|
|
687
|
+
async fn(t) {
|
|
688
|
+
var i, r;
|
|
689
|
+
const {
|
|
690
|
+
placement: c,
|
|
691
|
+
middlewareData: l,
|
|
692
|
+
rects: f,
|
|
693
|
+
initialPlacement: g,
|
|
694
|
+
platform: a,
|
|
695
|
+
elements: o
|
|
696
|
+
} = t, {
|
|
697
|
+
mainAxis: d = !0,
|
|
698
|
+
crossAxis: s = !0,
|
|
699
|
+
fallbackPlacements: n,
|
|
700
|
+
fallbackStrategy: u = "bestFit",
|
|
701
|
+
fallbackAxisSideDirection: m = "none",
|
|
702
|
+
flipAlignment: y = !0,
|
|
703
|
+
...h
|
|
704
|
+
} = j(e, t);
|
|
705
|
+
if ((i = l.arrow) != null && i.alignmentOffset)
|
|
706
|
+
return {};
|
|
707
|
+
const p = z(c), v = W(g), w = z(g) === g, O = await (a.isRTL == null ? void 0 : a.isRTL(o.floating)), x = n || (w || !y ? [ae(g)] : Ze(g)), S = m !== "none";
|
|
708
|
+
!n && S && x.push(...tt(g, y, m, O));
|
|
709
|
+
const b = [g, ...x], B = await ne(t, h), M = [];
|
|
710
|
+
let E = ((r = l.flip) == null ? void 0 : r.overflows) || [];
|
|
711
|
+
if (d && M.push(B[p]), s) {
|
|
712
|
+
const D = Qe(c, f, O);
|
|
713
|
+
M.push(B[D[0]], B[D[1]]);
|
|
714
|
+
}
|
|
715
|
+
if (E = [...E, {
|
|
716
|
+
placement: c,
|
|
717
|
+
overflows: M
|
|
718
|
+
}], !M.every((D) => D <= 0)) {
|
|
719
|
+
var $, P;
|
|
720
|
+
const D = ((($ = l.flip) == null ? void 0 : $.index) || 0) + 1, X = b[D];
|
|
721
|
+
if (X) {
|
|
722
|
+
var U;
|
|
723
|
+
const Y = s === "alignment" ? v !== W(X) : !1, k = ((U = E[0]) == null ? void 0 : U.overflows[0]) > 0;
|
|
724
|
+
if (!Y || k)
|
|
725
|
+
return {
|
|
726
|
+
data: {
|
|
727
|
+
index: D,
|
|
728
|
+
overflows: E
|
|
729
|
+
},
|
|
730
|
+
reset: {
|
|
731
|
+
placement: X
|
|
732
|
+
}
|
|
733
|
+
};
|
|
734
|
+
}
|
|
735
|
+
let I = (P = E.filter((Y) => Y.overflows[0] <= 0).sort((Y, k) => Y.overflows[1] - k.overflows[1])[0]) == null ? void 0 : P.placement;
|
|
736
|
+
if (!I)
|
|
737
|
+
switch (u) {
|
|
738
|
+
case "bestFit": {
|
|
739
|
+
var N;
|
|
740
|
+
const Y = (N = E.filter((k) => {
|
|
741
|
+
if (S) {
|
|
742
|
+
const q = W(k.placement);
|
|
743
|
+
return q === v || // Create a bias to the `y` side axis due to horizontal
|
|
744
|
+
// reading directions favoring greater width.
|
|
745
|
+
q === "y";
|
|
746
|
+
}
|
|
747
|
+
return !0;
|
|
748
|
+
}).map((k) => [k.placement, k.overflows.filter((q) => q > 0).reduce((q, ze) => q + ze, 0)]).sort((k, q) => k[1] - q[1])[0]) == null ? void 0 : N[0];
|
|
749
|
+
Y && (I = Y);
|
|
750
|
+
break;
|
|
751
|
+
}
|
|
752
|
+
case "initialPlacement":
|
|
753
|
+
I = g;
|
|
754
|
+
break;
|
|
755
|
+
}
|
|
756
|
+
if (c !== I)
|
|
757
|
+
return {
|
|
758
|
+
reset: {
|
|
759
|
+
placement: I
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
return {};
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
function Ee(e, t) {
|
|
768
|
+
return {
|
|
769
|
+
top: e.top - t.height,
|
|
770
|
+
right: e.right - t.width,
|
|
771
|
+
bottom: e.bottom - t.height,
|
|
772
|
+
left: e.left - t.width
|
|
773
|
+
};
|
|
774
|
+
}
|
|
775
|
+
function De(e) {
|
|
776
|
+
return Ke.some((t) => e[t] >= 0);
|
|
777
|
+
}
|
|
778
|
+
const st = function(e) {
|
|
779
|
+
return e === void 0 && (e = {}), {
|
|
780
|
+
name: "hide",
|
|
781
|
+
options: e,
|
|
782
|
+
async fn(t) {
|
|
783
|
+
const {
|
|
784
|
+
rects: i
|
|
785
|
+
} = t, {
|
|
786
|
+
strategy: r = "referenceHidden",
|
|
787
|
+
...c
|
|
788
|
+
} = j(e, t);
|
|
789
|
+
switch (r) {
|
|
790
|
+
case "referenceHidden": {
|
|
791
|
+
const l = await ne(t, {
|
|
792
|
+
...c,
|
|
793
|
+
elementContext: "reference"
|
|
794
|
+
}), f = Ee(l, i.reference);
|
|
795
|
+
return {
|
|
796
|
+
data: {
|
|
797
|
+
referenceHiddenOffsets: f,
|
|
798
|
+
referenceHidden: De(f)
|
|
799
|
+
}
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
case "escaped": {
|
|
803
|
+
const l = await ne(t, {
|
|
804
|
+
...c,
|
|
805
|
+
altBoundary: !0
|
|
806
|
+
}), f = Ee(l, i.floating);
|
|
807
|
+
return {
|
|
808
|
+
data: {
|
|
809
|
+
escapedOffsets: f,
|
|
810
|
+
escaped: De(f)
|
|
811
|
+
}
|
|
812
|
+
};
|
|
813
|
+
}
|
|
814
|
+
default:
|
|
815
|
+
return {};
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
};
|
|
819
|
+
};
|
|
820
|
+
async function ct(e, t) {
|
|
821
|
+
const {
|
|
822
|
+
placement: i,
|
|
823
|
+
platform: r,
|
|
824
|
+
elements: c
|
|
825
|
+
} = e, l = await (r.isRTL == null ? void 0 : r.isRTL(c.floating)), f = z(i), g = ee(i), a = W(i) === "y", o = ["left", "top"].includes(f) ? -1 : 1, d = l && a ? -1 : 1, s = j(t, e);
|
|
826
|
+
let {
|
|
827
|
+
mainAxis: n,
|
|
828
|
+
crossAxis: u,
|
|
829
|
+
alignmentAxis: m
|
|
830
|
+
} = typeof s == "number" ? {
|
|
831
|
+
mainAxis: s,
|
|
832
|
+
crossAxis: 0,
|
|
833
|
+
alignmentAxis: null
|
|
834
|
+
} : {
|
|
835
|
+
mainAxis: s.mainAxis || 0,
|
|
836
|
+
crossAxis: s.crossAxis || 0,
|
|
837
|
+
alignmentAxis: s.alignmentAxis
|
|
838
|
+
};
|
|
839
|
+
return g && typeof m == "number" && (u = g === "end" ? m * -1 : m), a ? {
|
|
840
|
+
x: u * d,
|
|
841
|
+
y: n * o
|
|
842
|
+
} : {
|
|
843
|
+
x: n * o,
|
|
844
|
+
y: u * d
|
|
845
|
+
};
|
|
846
|
+
}
|
|
847
|
+
const at = function(e) {
|
|
848
|
+
return e === void 0 && (e = 0), {
|
|
849
|
+
name: "offset",
|
|
850
|
+
options: e,
|
|
851
|
+
async fn(t) {
|
|
852
|
+
var i, r;
|
|
853
|
+
const {
|
|
854
|
+
x: c,
|
|
855
|
+
y: l,
|
|
856
|
+
placement: f,
|
|
857
|
+
middlewareData: g
|
|
858
|
+
} = t, a = await ct(t, e);
|
|
859
|
+
return f === ((i = g.offset) == null ? void 0 : i.placement) && (r = g.arrow) != null && r.alignmentOffset ? {} : {
|
|
860
|
+
x: c + a.x,
|
|
861
|
+
y: l + a.y,
|
|
862
|
+
data: {
|
|
863
|
+
...a,
|
|
864
|
+
placement: f
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
};
|
|
869
|
+
}, lt = function(e) {
|
|
870
|
+
return e === void 0 && (e = {}), {
|
|
871
|
+
name: "shift",
|
|
872
|
+
options: e,
|
|
873
|
+
async fn(t) {
|
|
874
|
+
const {
|
|
875
|
+
x: i,
|
|
876
|
+
y: r,
|
|
877
|
+
placement: c
|
|
878
|
+
} = t, {
|
|
879
|
+
mainAxis: l = !0,
|
|
880
|
+
crossAxis: f = !1,
|
|
881
|
+
limiter: g = {
|
|
882
|
+
fn: (h) => {
|
|
883
|
+
let {
|
|
884
|
+
x: p,
|
|
885
|
+
y: v
|
|
886
|
+
} = h;
|
|
887
|
+
return {
|
|
888
|
+
x: p,
|
|
889
|
+
y: v
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
...a
|
|
894
|
+
} = j(e, t), o = {
|
|
895
|
+
x: i,
|
|
896
|
+
y: r
|
|
897
|
+
}, d = await ne(t, a), s = W(z(c)), n = pe(s);
|
|
898
|
+
let u = o[n], m = o[s];
|
|
899
|
+
if (l) {
|
|
900
|
+
const h = n === "y" ? "top" : "left", p = n === "y" ? "bottom" : "right", v = u + d[h], w = u - d[p];
|
|
901
|
+
u = me(v, u, w);
|
|
902
|
+
}
|
|
903
|
+
if (f) {
|
|
904
|
+
const h = s === "y" ? "top" : "left", p = s === "y" ? "bottom" : "right", v = m + d[h], w = m - d[p];
|
|
905
|
+
m = me(v, m, w);
|
|
906
|
+
}
|
|
907
|
+
const y = g.fn({
|
|
908
|
+
...t,
|
|
909
|
+
[n]: u,
|
|
910
|
+
[s]: m
|
|
911
|
+
});
|
|
912
|
+
return {
|
|
913
|
+
...y,
|
|
914
|
+
data: {
|
|
915
|
+
x: y.x - i,
|
|
916
|
+
y: y.y - r,
|
|
917
|
+
enabled: {
|
|
918
|
+
[n]: l,
|
|
919
|
+
[s]: f
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
}, ft = function(e) {
|
|
926
|
+
return e === void 0 && (e = {}), {
|
|
927
|
+
options: e,
|
|
928
|
+
fn(t) {
|
|
929
|
+
const {
|
|
930
|
+
x: i,
|
|
931
|
+
y: r,
|
|
932
|
+
placement: c,
|
|
933
|
+
rects: l,
|
|
934
|
+
middlewareData: f
|
|
935
|
+
} = t, {
|
|
936
|
+
offset: g = 0,
|
|
937
|
+
mainAxis: a = !0,
|
|
938
|
+
crossAxis: o = !0
|
|
939
|
+
} = j(e, t), d = {
|
|
940
|
+
x: i,
|
|
941
|
+
y: r
|
|
942
|
+
}, s = W(c), n = pe(s);
|
|
943
|
+
let u = d[n], m = d[s];
|
|
944
|
+
const y = j(g, t), h = typeof y == "number" ? {
|
|
945
|
+
mainAxis: y,
|
|
946
|
+
crossAxis: 0
|
|
947
|
+
} : {
|
|
948
|
+
mainAxis: 0,
|
|
949
|
+
crossAxis: 0,
|
|
950
|
+
...y
|
|
951
|
+
};
|
|
952
|
+
if (a) {
|
|
953
|
+
const w = n === "y" ? "height" : "width", O = l.reference[n] - l.floating[w] + h.mainAxis, x = l.reference[n] + l.reference[w] - h.mainAxis;
|
|
954
|
+
u < O ? u = O : u > x && (u = x);
|
|
955
|
+
}
|
|
956
|
+
if (o) {
|
|
957
|
+
var p, v;
|
|
958
|
+
const w = n === "y" ? "width" : "height", O = ["top", "left"].includes(z(c)), x = l.reference[s] - l.floating[w] + (O && ((p = f.offset) == null ? void 0 : p[s]) || 0) + (O ? 0 : h.crossAxis), S = l.reference[s] + l.reference[w] + (O ? 0 : ((v = f.offset) == null ? void 0 : v[s]) || 0) - (O ? h.crossAxis : 0);
|
|
959
|
+
m < x ? m = x : m > S && (m = S);
|
|
960
|
+
}
|
|
961
|
+
return {
|
|
962
|
+
[n]: u,
|
|
963
|
+
[s]: m
|
|
964
|
+
};
|
|
965
|
+
}
|
|
966
|
+
};
|
|
967
|
+
}, ut = function(e) {
|
|
968
|
+
return e === void 0 && (e = {}), {
|
|
969
|
+
name: "size",
|
|
970
|
+
options: e,
|
|
971
|
+
async fn(t) {
|
|
972
|
+
var i, r;
|
|
973
|
+
const {
|
|
974
|
+
placement: c,
|
|
975
|
+
rects: l,
|
|
976
|
+
platform: f,
|
|
977
|
+
elements: g
|
|
978
|
+
} = t, {
|
|
979
|
+
apply: a = () => {
|
|
980
|
+
},
|
|
981
|
+
...o
|
|
982
|
+
} = j(e, t), d = await ne(t, o), s = z(c), n = ee(c), u = W(c) === "y", {
|
|
983
|
+
width: m,
|
|
984
|
+
height: y
|
|
985
|
+
} = l.floating;
|
|
986
|
+
let h, p;
|
|
987
|
+
s === "top" || s === "bottom" ? (h = s, p = n === (await (f.isRTL == null ? void 0 : f.isRTL(g.floating)) ? "start" : "end") ? "left" : "right") : (p = s, h = n === "end" ? "top" : "bottom");
|
|
988
|
+
const v = y - d.top - d.bottom, w = m - d.left - d.right, O = G(y - d[h], v), x = G(m - d[p], w), S = !t.middlewareData.shift;
|
|
989
|
+
let b = O, B = x;
|
|
990
|
+
if ((i = t.middlewareData.shift) != null && i.enabled.x && (B = w), (r = t.middlewareData.shift) != null && r.enabled.y && (b = v), S && !n) {
|
|
991
|
+
const E = T(d.left, 0), $ = T(d.right, 0), P = T(d.top, 0), U = T(d.bottom, 0);
|
|
992
|
+
u ? B = m - 2 * (E !== 0 || $ !== 0 ? E + $ : T(d.left, d.right)) : b = y - 2 * (P !== 0 || U !== 0 ? P + U : T(d.top, d.bottom));
|
|
993
|
+
}
|
|
994
|
+
await a({
|
|
995
|
+
...t,
|
|
996
|
+
availableWidth: B,
|
|
997
|
+
availableHeight: b
|
|
998
|
+
});
|
|
999
|
+
const M = await f.getDimensions(g.floating);
|
|
1000
|
+
return m !== M.width || y !== M.height ? {
|
|
1001
|
+
reset: {
|
|
1002
|
+
rects: !0
|
|
1003
|
+
}
|
|
1004
|
+
} : {};
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
};
|
|
1008
|
+
function fe() {
|
|
1009
|
+
return typeof window < "u";
|
|
1010
|
+
}
|
|
1011
|
+
function te(e) {
|
|
1012
|
+
return ke(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1013
|
+
}
|
|
1014
|
+
function A(e) {
|
|
1015
|
+
var t;
|
|
1016
|
+
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
1017
|
+
}
|
|
1018
|
+
function V(e) {
|
|
1019
|
+
var t;
|
|
1020
|
+
return (t = (ke(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
1021
|
+
}
|
|
1022
|
+
function ke(e) {
|
|
1023
|
+
return fe() ? e instanceof Node || e instanceof A(e).Node : !1;
|
|
1024
|
+
}
|
|
1025
|
+
function C(e) {
|
|
1026
|
+
return fe() ? e instanceof Element || e instanceof A(e).Element : !1;
|
|
1027
|
+
}
|
|
1028
|
+
function F(e) {
|
|
1029
|
+
return fe() ? e instanceof HTMLElement || e instanceof A(e).HTMLElement : !1;
|
|
1030
|
+
}
|
|
1031
|
+
function Ce(e) {
|
|
1032
|
+
return !fe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof A(e).ShadowRoot;
|
|
1033
|
+
}
|
|
1034
|
+
function ie(e) {
|
|
1035
|
+
const {
|
|
1036
|
+
overflow: t,
|
|
1037
|
+
overflowX: i,
|
|
1038
|
+
overflowY: r,
|
|
1039
|
+
display: c
|
|
1040
|
+
} = L(e);
|
|
1041
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + i) && !["inline", "contents"].includes(c);
|
|
1042
|
+
}
|
|
1043
|
+
function dt(e) {
|
|
1044
|
+
return ["table", "td", "th"].includes(te(e));
|
|
1045
|
+
}
|
|
1046
|
+
function ue(e) {
|
|
1047
|
+
return [":popover-open", ":modal"].some((t) => {
|
|
1048
|
+
try {
|
|
1049
|
+
return e.matches(t);
|
|
1050
|
+
} catch {
|
|
1051
|
+
return !1;
|
|
1052
|
+
}
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
function xe(e) {
|
|
1056
|
+
const t = Oe(), i = C(e) ? L(e) : e;
|
|
1057
|
+
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => i[r] ? i[r] !== "none" : !1) || (i.containerType ? i.containerType !== "normal" : !1) || !t && (i.backdropFilter ? i.backdropFilter !== "none" : !1) || !t && (i.filter ? i.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (i.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (i.contain || "").includes(r));
|
|
1058
|
+
}
|
|
1059
|
+
function gt(e) {
|
|
1060
|
+
let t = K(e);
|
|
1061
|
+
for (; F(t) && !Z(t); ) {
|
|
1062
|
+
if (xe(t))
|
|
1063
|
+
return t;
|
|
1064
|
+
if (ue(t))
|
|
1065
|
+
return null;
|
|
1066
|
+
t = K(t);
|
|
1067
|
+
}
|
|
1068
|
+
return null;
|
|
1069
|
+
}
|
|
1070
|
+
function Oe() {
|
|
1071
|
+
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
1072
|
+
}
|
|
1073
|
+
function Z(e) {
|
|
1074
|
+
return ["html", "body", "#document"].includes(te(e));
|
|
1075
|
+
}
|
|
1076
|
+
function L(e) {
|
|
1077
|
+
return A(e).getComputedStyle(e);
|
|
1078
|
+
}
|
|
1079
|
+
function de(e) {
|
|
1080
|
+
return C(e) ? {
|
|
1081
|
+
scrollLeft: e.scrollLeft,
|
|
1082
|
+
scrollTop: e.scrollTop
|
|
1083
|
+
} : {
|
|
1084
|
+
scrollLeft: e.scrollX,
|
|
1085
|
+
scrollTop: e.scrollY
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
function K(e) {
|
|
1089
|
+
if (te(e) === "html")
|
|
1090
|
+
return e;
|
|
1091
|
+
const t = (
|
|
1092
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
1093
|
+
e.assignedSlot || // DOM Element detected.
|
|
1094
|
+
e.parentNode || // ShadowRoot detected.
|
|
1095
|
+
Ce(e) && e.host || // Fallback.
|
|
1096
|
+
V(e)
|
|
1097
|
+
);
|
|
1098
|
+
return Ce(t) ? t.host : t;
|
|
1099
|
+
}
|
|
1100
|
+
function He(e) {
|
|
1101
|
+
const t = K(e);
|
|
1102
|
+
return Z(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : F(t) && ie(t) ? t : He(t);
|
|
1103
|
+
}
|
|
1104
|
+
function re(e, t, i) {
|
|
1105
|
+
var r;
|
|
1106
|
+
t === void 0 && (t = []), i === void 0 && (i = !0);
|
|
1107
|
+
const c = He(e), l = c === ((r = e.ownerDocument) == null ? void 0 : r.body), f = A(c);
|
|
1108
|
+
if (l) {
|
|
1109
|
+
const g = he(f);
|
|
1110
|
+
return t.concat(f, f.visualViewport || [], ie(c) ? c : [], g && i ? re(g) : []);
|
|
1111
|
+
}
|
|
1112
|
+
return t.concat(c, re(c, [], i));
|
|
1113
|
+
}
|
|
1114
|
+
function he(e) {
|
|
1115
|
+
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
1116
|
+
}
|
|
1117
|
+
function Fe(e) {
|
|
1118
|
+
const t = L(e);
|
|
1119
|
+
let i = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
1120
|
+
const c = F(e), l = c ? e.offsetWidth : i, f = c ? e.offsetHeight : r, g = ce(i) !== l || ce(r) !== f;
|
|
1121
|
+
return g && (i = l, r = f), {
|
|
1122
|
+
width: i,
|
|
1123
|
+
height: r,
|
|
1124
|
+
$: g
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
function be(e) {
|
|
1128
|
+
return C(e) ? e : e.contextElement;
|
|
1129
|
+
}
|
|
1130
|
+
function Q(e) {
|
|
1131
|
+
const t = be(e);
|
|
1132
|
+
if (!F(t))
|
|
1133
|
+
return H(1);
|
|
1134
|
+
const i = t.getBoundingClientRect(), {
|
|
1135
|
+
width: r,
|
|
1136
|
+
height: c,
|
|
1137
|
+
$: l
|
|
1138
|
+
} = Fe(t);
|
|
1139
|
+
let f = (l ? ce(i.width) : i.width) / r, g = (l ? ce(i.height) : i.height) / c;
|
|
1140
|
+
return (!f || !Number.isFinite(f)) && (f = 1), (!g || !Number.isFinite(g)) && (g = 1), {
|
|
1141
|
+
x: f,
|
|
1142
|
+
y: g
|
|
1143
|
+
};
|
|
1144
|
+
}
|
|
1145
|
+
const mt = /* @__PURE__ */ H(0);
|
|
1146
|
+
function Ve(e) {
|
|
1147
|
+
const t = A(e);
|
|
1148
|
+
return !Oe() || !t.visualViewport ? mt : {
|
|
1149
|
+
x: t.visualViewport.offsetLeft,
|
|
1150
|
+
y: t.visualViewport.offsetTop
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
function yt(e, t, i) {
|
|
1154
|
+
return t === void 0 && (t = !1), !i || t && i !== A(e) ? !1 : t;
|
|
1155
|
+
}
|
|
1156
|
+
function J(e, t, i, r) {
|
|
1157
|
+
t === void 0 && (t = !1), i === void 0 && (i = !1);
|
|
1158
|
+
const c = e.getBoundingClientRect(), l = be(e);
|
|
1159
|
+
let f = H(1);
|
|
1160
|
+
t && (r ? C(r) && (f = Q(r)) : f = Q(e));
|
|
1161
|
+
const g = yt(l, i, r) ? Ve(l) : H(0);
|
|
1162
|
+
let a = (c.left + g.x) / f.x, o = (c.top + g.y) / f.y, d = c.width / f.x, s = c.height / f.y;
|
|
1163
|
+
if (l) {
|
|
1164
|
+
const n = A(l), u = r && C(r) ? A(r) : r;
|
|
1165
|
+
let m = n, y = he(m);
|
|
1166
|
+
for (; y && r && u !== m; ) {
|
|
1167
|
+
const h = Q(y), p = y.getBoundingClientRect(), v = L(y), w = p.left + (y.clientLeft + parseFloat(v.paddingLeft)) * h.x, O = p.top + (y.clientTop + parseFloat(v.paddingTop)) * h.y;
|
|
1168
|
+
a *= h.x, o *= h.y, d *= h.x, s *= h.y, a += w, o += O, m = A(y), y = he(m);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
return le({
|
|
1172
|
+
width: d,
|
|
1173
|
+
height: s,
|
|
1174
|
+
x: a,
|
|
1175
|
+
y: o
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
function Re(e, t) {
|
|
1179
|
+
const i = de(e).scrollLeft;
|
|
1180
|
+
return t ? t.left + i : J(V(e)).left + i;
|
|
1181
|
+
}
|
|
1182
|
+
function Be(e, t, i) {
|
|
1183
|
+
i === void 0 && (i = !1);
|
|
1184
|
+
const r = e.getBoundingClientRect(), c = r.left + t.scrollLeft - (i ? 0 : (
|
|
1185
|
+
// RTL <body> scrollbar.
|
|
1186
|
+
Re(e, r)
|
|
1187
|
+
)), l = r.top + t.scrollTop;
|
|
1188
|
+
return {
|
|
1189
|
+
x: c,
|
|
1190
|
+
y: l
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1193
|
+
function ht(e) {
|
|
1194
|
+
let {
|
|
1195
|
+
elements: t,
|
|
1196
|
+
rect: i,
|
|
1197
|
+
offsetParent: r,
|
|
1198
|
+
strategy: c
|
|
1199
|
+
} = e;
|
|
1200
|
+
const l = c === "fixed", f = V(r), g = t ? ue(t.floating) : !1;
|
|
1201
|
+
if (r === f || g && l)
|
|
1202
|
+
return i;
|
|
1203
|
+
let a = {
|
|
1204
|
+
scrollLeft: 0,
|
|
1205
|
+
scrollTop: 0
|
|
1206
|
+
}, o = H(1);
|
|
1207
|
+
const d = H(0), s = F(r);
|
|
1208
|
+
if ((s || !s && !l) && ((te(r) !== "body" || ie(f)) && (a = de(r)), F(r))) {
|
|
1209
|
+
const u = J(r);
|
|
1210
|
+
o = Q(r), d.x = u.x + r.clientLeft, d.y = u.y + r.clientTop;
|
|
1211
|
+
}
|
|
1212
|
+
const n = f && !s && !l ? Be(f, a, !0) : H(0);
|
|
1213
|
+
return {
|
|
1214
|
+
width: i.width * o.x,
|
|
1215
|
+
height: i.height * o.y,
|
|
1216
|
+
x: i.x * o.x - a.scrollLeft * o.x + d.x + n.x,
|
|
1217
|
+
y: i.y * o.y - a.scrollTop * o.y + d.y + n.y
|
|
1218
|
+
};
|
|
1219
|
+
}
|
|
1220
|
+
function pt(e) {
|
|
1221
|
+
return Array.from(e.getClientRects());
|
|
1222
|
+
}
|
|
1223
|
+
function vt(e) {
|
|
1224
|
+
const t = V(e), i = de(e), r = e.ownerDocument.body, c = T(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), l = T(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
1225
|
+
let f = -i.scrollLeft + Re(e);
|
|
1226
|
+
const g = -i.scrollTop;
|
|
1227
|
+
return L(r).direction === "rtl" && (f += T(t.clientWidth, r.clientWidth) - c), {
|
|
1228
|
+
width: c,
|
|
1229
|
+
height: l,
|
|
1230
|
+
x: f,
|
|
1231
|
+
y: g
|
|
1232
|
+
};
|
|
1233
|
+
}
|
|
1234
|
+
function wt(e, t) {
|
|
1235
|
+
const i = A(e), r = V(e), c = i.visualViewport;
|
|
1236
|
+
let l = r.clientWidth, f = r.clientHeight, g = 0, a = 0;
|
|
1237
|
+
if (c) {
|
|
1238
|
+
l = c.width, f = c.height;
|
|
1239
|
+
const o = Oe();
|
|
1240
|
+
(!o || o && t === "fixed") && (g = c.offsetLeft, a = c.offsetTop);
|
|
1241
|
+
}
|
|
1242
|
+
return {
|
|
1243
|
+
width: l,
|
|
1244
|
+
height: f,
|
|
1245
|
+
x: g,
|
|
1246
|
+
y: a
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
function xt(e, t) {
|
|
1250
|
+
const i = J(e, !0, t === "fixed"), r = i.top + e.clientTop, c = i.left + e.clientLeft, l = F(e) ? Q(e) : H(1), f = e.clientWidth * l.x, g = e.clientHeight * l.y, a = c * l.x, o = r * l.y;
|
|
1251
|
+
return {
|
|
1252
|
+
width: f,
|
|
1253
|
+
height: g,
|
|
1254
|
+
x: a,
|
|
1255
|
+
y: o
|
|
1256
|
+
};
|
|
1257
|
+
}
|
|
1258
|
+
function Le(e, t, i) {
|
|
1259
|
+
let r;
|
|
1260
|
+
if (t === "viewport")
|
|
1261
|
+
r = wt(e, i);
|
|
1262
|
+
else if (t === "document")
|
|
1263
|
+
r = vt(V(e));
|
|
1264
|
+
else if (C(t))
|
|
1265
|
+
r = xt(t, i);
|
|
1266
|
+
else {
|
|
1267
|
+
const c = Ve(e);
|
|
1268
|
+
r = {
|
|
1269
|
+
x: t.x - c.x,
|
|
1270
|
+
y: t.y - c.y,
|
|
1271
|
+
width: t.width,
|
|
1272
|
+
height: t.height
|
|
1273
|
+
};
|
|
1274
|
+
}
|
|
1275
|
+
return le(r);
|
|
1276
|
+
}
|
|
1277
|
+
function Ie(e, t) {
|
|
1278
|
+
const i = K(e);
|
|
1279
|
+
return i === t || !C(i) || Z(i) ? !1 : L(i).position === "fixed" || Ie(i, t);
|
|
1280
|
+
}
|
|
1281
|
+
function Ot(e, t) {
|
|
1282
|
+
const i = t.get(e);
|
|
1283
|
+
if (i)
|
|
1284
|
+
return i;
|
|
1285
|
+
let r = re(e, [], !1).filter((g) => C(g) && te(g) !== "body"), c = null;
|
|
1286
|
+
const l = L(e).position === "fixed";
|
|
1287
|
+
let f = l ? K(e) : e;
|
|
1288
|
+
for (; C(f) && !Z(f); ) {
|
|
1289
|
+
const g = L(f), a = xe(f);
|
|
1290
|
+
!a && g.position === "fixed" && (c = null), (l ? !a && !c : !a && g.position === "static" && !!c && ["absolute", "fixed"].includes(c.position) || ie(f) && !a && Ie(e, f)) ? r = r.filter((d) => d !== f) : c = g, f = K(f);
|
|
1291
|
+
}
|
|
1292
|
+
return t.set(e, r), r;
|
|
1293
|
+
}
|
|
1294
|
+
function bt(e) {
|
|
1295
|
+
let {
|
|
1296
|
+
element: t,
|
|
1297
|
+
boundary: i,
|
|
1298
|
+
rootBoundary: r,
|
|
1299
|
+
strategy: c
|
|
1300
|
+
} = e;
|
|
1301
|
+
const f = [...i === "clippingAncestors" ? ue(t) ? [] : Ot(t, this._c) : [].concat(i), r], g = f[0], a = f.reduce((o, d) => {
|
|
1302
|
+
const s = Le(t, d, c);
|
|
1303
|
+
return o.top = T(s.top, o.top), o.right = G(s.right, o.right), o.bottom = G(s.bottom, o.bottom), o.left = T(s.left, o.left), o;
|
|
1304
|
+
}, Le(t, g, c));
|
|
1305
|
+
return {
|
|
1306
|
+
width: a.right - a.left,
|
|
1307
|
+
height: a.bottom - a.top,
|
|
1308
|
+
x: a.left,
|
|
1309
|
+
y: a.top
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
function Rt(e) {
|
|
1313
|
+
const {
|
|
1314
|
+
width: t,
|
|
1315
|
+
height: i
|
|
1316
|
+
} = Fe(e);
|
|
1317
|
+
return {
|
|
1318
|
+
width: t,
|
|
1319
|
+
height: i
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
function _t(e, t, i) {
|
|
1323
|
+
const r = F(t), c = V(t), l = i === "fixed", f = J(e, !0, l, t);
|
|
1324
|
+
let g = {
|
|
1325
|
+
scrollLeft: 0,
|
|
1326
|
+
scrollTop: 0
|
|
1327
|
+
};
|
|
1328
|
+
const a = H(0);
|
|
1329
|
+
function o() {
|
|
1330
|
+
a.x = Re(c);
|
|
1331
|
+
}
|
|
1332
|
+
if (r || !r && !l)
|
|
1333
|
+
if ((te(t) !== "body" || ie(c)) && (g = de(t)), r) {
|
|
1334
|
+
const u = J(t, !0, l, t);
|
|
1335
|
+
a.x = u.x + t.clientLeft, a.y = u.y + t.clientTop;
|
|
1336
|
+
} else c && o();
|
|
1337
|
+
l && !r && c && o();
|
|
1338
|
+
const d = c && !r && !l ? Be(c, g) : H(0), s = f.left + g.scrollLeft - a.x - d.x, n = f.top + g.scrollTop - a.y - d.y;
|
|
1339
|
+
return {
|
|
1340
|
+
x: s,
|
|
1341
|
+
y: n,
|
|
1342
|
+
width: f.width,
|
|
1343
|
+
height: f.height
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
function ge(e) {
|
|
1347
|
+
return L(e).position === "static";
|
|
1348
|
+
}
|
|
1349
|
+
function Me(e, t) {
|
|
1350
|
+
if (!F(e) || L(e).position === "fixed")
|
|
1351
|
+
return null;
|
|
1352
|
+
if (t)
|
|
1353
|
+
return t(e);
|
|
1354
|
+
let i = e.offsetParent;
|
|
1355
|
+
return V(e) === i && (i = i.ownerDocument.body), i;
|
|
1356
|
+
}
|
|
1357
|
+
function We(e, t) {
|
|
1358
|
+
const i = A(e);
|
|
1359
|
+
if (ue(e))
|
|
1360
|
+
return i;
|
|
1361
|
+
if (!F(e)) {
|
|
1362
|
+
let c = K(e);
|
|
1363
|
+
for (; c && !Z(c); ) {
|
|
1364
|
+
if (C(c) && !ge(c))
|
|
1365
|
+
return c;
|
|
1366
|
+
c = K(c);
|
|
1367
|
+
}
|
|
1368
|
+
return i;
|
|
1369
|
+
}
|
|
1370
|
+
let r = Me(e, t);
|
|
1371
|
+
for (; r && dt(r) && ge(r); )
|
|
1372
|
+
r = Me(r, t);
|
|
1373
|
+
return r && Z(r) && ge(r) && !xe(r) ? i : r || gt(e) || i;
|
|
1374
|
+
}
|
|
1375
|
+
const St = async function(e) {
|
|
1376
|
+
const t = this.getOffsetParent || We, i = this.getDimensions, r = await i(e.floating);
|
|
1377
|
+
return {
|
|
1378
|
+
reference: _t(e.reference, await t(e.floating), e.strategy),
|
|
1379
|
+
floating: {
|
|
1380
|
+
x: 0,
|
|
1381
|
+
y: 0,
|
|
1382
|
+
width: r.width,
|
|
1383
|
+
height: r.height
|
|
1384
|
+
}
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1387
|
+
function Tt(e) {
|
|
1388
|
+
return L(e).direction === "rtl";
|
|
1389
|
+
}
|
|
1390
|
+
const At = {
|
|
1391
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ht,
|
|
1392
|
+
getDocumentElement: V,
|
|
1393
|
+
getClippingRect: bt,
|
|
1394
|
+
getOffsetParent: We,
|
|
1395
|
+
getElementRects: St,
|
|
1396
|
+
getClientRects: pt,
|
|
1397
|
+
getDimensions: Rt,
|
|
1398
|
+
getScale: Q,
|
|
1399
|
+
isElement: C,
|
|
1400
|
+
isRTL: Tt
|
|
1401
|
+
};
|
|
1402
|
+
function je(e, t) {
|
|
1403
|
+
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1404
|
+
}
|
|
1405
|
+
function Et(e, t) {
|
|
1406
|
+
let i = null, r;
|
|
1407
|
+
const c = V(e);
|
|
1408
|
+
function l() {
|
|
1409
|
+
var g;
|
|
1410
|
+
clearTimeout(r), (g = i) == null || g.disconnect(), i = null;
|
|
1411
|
+
}
|
|
1412
|
+
function f(g, a) {
|
|
1413
|
+
g === void 0 && (g = !1), a === void 0 && (a = 1), l();
|
|
1414
|
+
const o = e.getBoundingClientRect(), {
|
|
1415
|
+
left: d,
|
|
1416
|
+
top: s,
|
|
1417
|
+
width: n,
|
|
1418
|
+
height: u
|
|
1419
|
+
} = o;
|
|
1420
|
+
if (g || t(), !n || !u)
|
|
1421
|
+
return;
|
|
1422
|
+
const m = se(s), y = se(c.clientWidth - (d + n)), h = se(c.clientHeight - (s + u)), p = se(d), w = {
|
|
1423
|
+
rootMargin: -m + "px " + -y + "px " + -h + "px " + -p + "px",
|
|
1424
|
+
threshold: T(0, G(1, a)) || 1
|
|
1425
|
+
};
|
|
1426
|
+
let O = !0;
|
|
1427
|
+
function x(S) {
|
|
1428
|
+
const b = S[0].intersectionRatio;
|
|
1429
|
+
if (b !== a) {
|
|
1430
|
+
if (!O)
|
|
1431
|
+
return f();
|
|
1432
|
+
b ? f(!1, b) : r = setTimeout(() => {
|
|
1433
|
+
f(!1, 1e-7);
|
|
1434
|
+
}, 1e3);
|
|
1435
|
+
}
|
|
1436
|
+
b === 1 && !je(o, e.getBoundingClientRect()) && f(), O = !1;
|
|
1437
|
+
}
|
|
1438
|
+
try {
|
|
1439
|
+
i = new IntersectionObserver(x, {
|
|
1440
|
+
...w,
|
|
1441
|
+
// Handle <iframe>s
|
|
1442
|
+
root: c.ownerDocument
|
|
1443
|
+
});
|
|
1444
|
+
} catch {
|
|
1445
|
+
i = new IntersectionObserver(x, w);
|
|
1446
|
+
}
|
|
1447
|
+
i.observe(e);
|
|
1448
|
+
}
|
|
1449
|
+
return f(!0), l;
|
|
1450
|
+
}
|
|
1451
|
+
function Mt(e, t, i, r) {
|
|
1452
|
+
r === void 0 && (r = {});
|
|
1453
|
+
const {
|
|
1454
|
+
ancestorScroll: c = !0,
|
|
1455
|
+
ancestorResize: l = !0,
|
|
1456
|
+
elementResize: f = typeof ResizeObserver == "function",
|
|
1457
|
+
layoutShift: g = typeof IntersectionObserver == "function",
|
|
1458
|
+
animationFrame: a = !1
|
|
1459
|
+
} = r, o = be(e), d = c || l ? [...o ? re(o) : [], ...re(t)] : [];
|
|
1460
|
+
d.forEach((p) => {
|
|
1461
|
+
c && p.addEventListener("scroll", i, {
|
|
1462
|
+
passive: !0
|
|
1463
|
+
}), l && p.addEventListener("resize", i);
|
|
1464
|
+
});
|
|
1465
|
+
const s = o && g ? Et(o, i) : null;
|
|
1466
|
+
let n = -1, u = null;
|
|
1467
|
+
f && (u = new ResizeObserver((p) => {
|
|
1468
|
+
let [v] = p;
|
|
1469
|
+
v && v.target === o && u && (u.unobserve(t), cancelAnimationFrame(n), n = requestAnimationFrame(() => {
|
|
1470
|
+
var w;
|
|
1471
|
+
(w = u) == null || w.observe(t);
|
|
1472
|
+
})), i();
|
|
1473
|
+
}), o && !a && u.observe(o), u.observe(t));
|
|
1474
|
+
let m, y = a ? J(e) : null;
|
|
1475
|
+
a && h();
|
|
1476
|
+
function h() {
|
|
1477
|
+
const p = J(e);
|
|
1478
|
+
y && !je(y, p) && i(), y = p, m = requestAnimationFrame(h);
|
|
1479
|
+
}
|
|
1480
|
+
return i(), () => {
|
|
1481
|
+
var p;
|
|
1482
|
+
d.forEach((v) => {
|
|
1483
|
+
c && v.removeEventListener("scroll", i), l && v.removeEventListener("resize", i);
|
|
1484
|
+
}), s == null || s(), (p = u) == null || p.disconnect(), u = null, a && cancelAnimationFrame(m);
|
|
1485
|
+
};
|
|
1486
|
+
}
|
|
1487
|
+
const Pt = at, Nt = lt, kt = ot, Ht = ut, Ft = st, Vt = it, Bt = ft, It = (e, t, i) => {
|
|
1488
|
+
const r = /* @__PURE__ */ new Map(), c = {
|
|
1489
|
+
platform: At,
|
|
1490
|
+
...i
|
|
1491
|
+
}, l = {
|
|
1492
|
+
...c.platform,
|
|
1493
|
+
_c: r
|
|
1494
|
+
};
|
|
1495
|
+
return rt(e, t, {
|
|
1496
|
+
...c,
|
|
1497
|
+
platform: l
|
|
1498
|
+
});
|
|
1499
|
+
};
|
|
1500
|
+
export {
|
|
1501
|
+
Lt as R,
|
|
1502
|
+
Mt as a,
|
|
1503
|
+
Vt as b,
|
|
1504
|
+
It as c,
|
|
1505
|
+
Ht as d,
|
|
1506
|
+
kt as f,
|
|
1507
|
+
Ft as h,
|
|
1508
|
+
Bt as l,
|
|
1509
|
+
Pt as o,
|
|
1510
|
+
Ge as r,
|
|
1511
|
+
Nt as s
|
|
1512
|
+
};
|