@react-hive/honey-layout 2.3.1 → 2.4.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/contexts/HoneyLayoutContext.d.ts +74 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/helpers.d.ts +1 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/use-honey-document-key-up-handler.d.ts +19 -0
- package/dist/hooks/use-honey-layout.d.ts +9 -0
- package/dist/hooks/use-honey-overlay.d.ts +6 -0
- package/dist/hooks/use-register-honey-overlay.d.ts +2 -0
- package/dist/index.js +1135 -1051
- package/dist/providers/HoneyLayoutProvider.d.ts +1 -59
- package/dist/providers/hooks/index.d.ts +1 -0
- package/dist/providers/hooks/use-honey-overlays.d.ts +11 -0
- package/dist/types/dom.types.d.ts +5 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types.d.ts +69 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import
|
|
2
|
-
import gr, { createContext as yr, forwardRef as mr, useMemo as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
return Math.sqrt(
|
|
6
|
-
}, ar = (
|
|
1
|
+
import ge, { css as ve, useTheme as hr, ThemeProvider as vr, ThemeContext as un } from "styled-components";
|
|
2
|
+
import gr, { createContext as yr, forwardRef as mr, useMemo as gt, useContext as Xt, Fragment as cn, useState as yt, useEffect as ne, useRef as xe, useCallback as Pe } from "react";
|
|
3
|
+
const ln = (r) => r.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), ir = (r) => r.split(" ").filter((o) => o), Ut = (r, o = 16) => `${r / o}rem`, fn = (r, o, i, s) => {
|
|
4
|
+
const f = i - r, u = s - o;
|
|
5
|
+
return Math.sqrt(f ** 2 + u ** 2);
|
|
6
|
+
}, ar = (r, o) => Math.abs(r / o), sr = (r, o) => r * o / 100, dn = (r, o) => {
|
|
7
7
|
if (o < 0 || o > 1)
|
|
8
8
|
throw new Error(`[honey-layout]: Alpha "${o}" is not a valid hex format.`);
|
|
9
|
-
const
|
|
10
|
-
if (!
|
|
9
|
+
const i = /^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/, s = r.match(i);
|
|
10
|
+
if (!s)
|
|
11
11
|
throw new Error("[honey-layout]: Invalid hex format.");
|
|
12
|
-
const
|
|
13
|
-
return `#${
|
|
14
|
-
}, ur = (
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
].filter(Boolean).map((
|
|
28
|
-
return `${
|
|
29
|
-
}).join(", ")}`, br = (
|
|
30
|
-
const
|
|
31
|
-
if (!
|
|
12
|
+
const f = s[1], u = f.length === 3 ? f[0] + f[0] + f[1] + f[1] + f[2] + f[2] : f, l = Math.round(o * 255).toString(16).toUpperCase().padStart(2, "0");
|
|
13
|
+
return `#${u + l}`;
|
|
14
|
+
}, ur = (r) => `@media ${r.map((i) => {
|
|
15
|
+
const s = [
|
|
16
|
+
i.width && ["width", i.width],
|
|
17
|
+
i.minWidth && ["min-width", i.minWidth],
|
|
18
|
+
i.maxWidth && ["max-width", i.maxWidth],
|
|
19
|
+
i.height && ["height", i.height],
|
|
20
|
+
i.minHeight && ["min-height", i.minHeight],
|
|
21
|
+
i.maxHeight && ["max-height", i.maxHeight],
|
|
22
|
+
i.orientation && ["orientation", i.orientation],
|
|
23
|
+
i.minResolution && ["min-resolution", i.minResolution],
|
|
24
|
+
i.maxResolution && ["max-resolution", i.maxResolution],
|
|
25
|
+
i.resolution && ["resolution", i.resolution],
|
|
26
|
+
i.update && ["update", i.update]
|
|
27
|
+
].filter(Boolean).map((l) => l && `(${l[0]}: ${l[1]})`).join(" and "), f = i.operator ? `${i.operator} ` : "", u = s ? ` and ${s}` : "";
|
|
28
|
+
return `${f}${i.mediaType ?? "screen"}${u}`;
|
|
29
|
+
}).join(", ")}`, br = (r) => {
|
|
30
|
+
const s = window.getComputedStyle(r).getPropertyValue("transform").match(/^matrix\((.+)\)$/);
|
|
31
|
+
if (!s)
|
|
32
32
|
return {
|
|
33
33
|
translateX: 0,
|
|
34
34
|
translateY: 0
|
|
35
35
|
};
|
|
36
|
-
const
|
|
36
|
+
const f = s[1].split(", "), u = parseFloat(f[4]), l = parseFloat(f[5]);
|
|
37
37
|
return {
|
|
38
|
-
translateX:
|
|
39
|
-
translateY:
|
|
38
|
+
translateX: u,
|
|
39
|
+
translateY: l
|
|
40
40
|
};
|
|
41
|
-
},
|
|
42
|
-
const { [
|
|
43
|
-
if (
|
|
44
|
-
...
|
|
45
|
-
parentId:
|
|
46
|
-
depthLevel:
|
|
47
|
-
totalNestedItems:
|
|
48
|
-
}),
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
41
|
+
}, pn = (r, o, i, s = [], f = void 0, u = 0) => (r == null || r.forEach((l) => {
|
|
42
|
+
const { [i]: h, ...p } = l, b = l[i], y = Array.isArray(b);
|
|
43
|
+
if (s.push({
|
|
44
|
+
...p,
|
|
45
|
+
parentId: f,
|
|
46
|
+
depthLevel: u,
|
|
47
|
+
totalNestedItems: y ? b.length : 0
|
|
48
|
+
}), y) {
|
|
49
|
+
const g = l[o];
|
|
50
|
+
pn(
|
|
51
|
+
b,
|
|
52
52
|
o,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
i,
|
|
54
|
+
s,
|
|
55
|
+
g,
|
|
56
|
+
u + 1
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
|
-
}),
|
|
60
|
-
(
|
|
61
|
-
),
|
|
62
|
-
const
|
|
63
|
-
if (!
|
|
64
|
-
return
|
|
65
|
-
const
|
|
66
|
-
(
|
|
59
|
+
}), s), ao = (r, o, i) => r.filter(
|
|
60
|
+
(s) => s.parentId === o && (!i || i(s))
|
|
61
|
+
), so = (r, o, i, s) => {
|
|
62
|
+
const f = ir(s.toLowerCase());
|
|
63
|
+
if (!f.length)
|
|
64
|
+
return r;
|
|
65
|
+
const u = r.reduce(
|
|
66
|
+
(l, h, p) => (l[h[o]] = p, l),
|
|
67
67
|
{}
|
|
68
68
|
);
|
|
69
|
-
return
|
|
70
|
-
(
|
|
71
|
-
const
|
|
72
|
-
if (!
|
|
73
|
-
(
|
|
69
|
+
return r.reduce(
|
|
70
|
+
(l, h) => {
|
|
71
|
+
const p = h[i];
|
|
72
|
+
if (!p || l.some(
|
|
73
|
+
(g) => g[o] === h[o]
|
|
74
74
|
))
|
|
75
|
-
return
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
78
|
-
(
|
|
75
|
+
return l;
|
|
76
|
+
const b = ir(p.toLowerCase());
|
|
77
|
+
if (f.every(
|
|
78
|
+
(g) => b.some((T) => T.startsWith(g))
|
|
79
79
|
))
|
|
80
|
-
if (
|
|
81
|
-
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
if (h.parentId === void 0) {
|
|
81
|
+
l.push(h);
|
|
82
|
+
const g = (T) => {
|
|
83
|
+
T.totalNestedItems && r.forEach((O) => {
|
|
84
|
+
O.parentId === T[o] && (l.push(O), g(O));
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
g(h);
|
|
88
88
|
} else {
|
|
89
|
-
const
|
|
90
|
-
const
|
|
91
|
-
M.parentId !== void 0 &&
|
|
92
|
-
const W =
|
|
93
|
-
if (W === null || W !==
|
|
89
|
+
const g = (T) => {
|
|
90
|
+
const O = u[T.parentId], M = r[O];
|
|
91
|
+
M.parentId !== void 0 && g(M);
|
|
92
|
+
const W = l.length ? l[l.length - 1].parentId : null;
|
|
93
|
+
if (W === null || W !== T.parentId) {
|
|
94
94
|
if (!M)
|
|
95
95
|
throw new Error("[honey-layout]: Parent item was not found.");
|
|
96
|
-
|
|
96
|
+
l.push(M);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
g(h), l.push(h);
|
|
100
100
|
}
|
|
101
|
-
return
|
|
101
|
+
return l;
|
|
102
102
|
},
|
|
103
103
|
[]
|
|
104
104
|
);
|
|
105
|
-
},
|
|
105
|
+
}, hn = [
|
|
106
106
|
"width",
|
|
107
107
|
"height",
|
|
108
108
|
"margin",
|
|
@@ -122,7 +122,7 @@ const cn = (n) => n.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), ir = (n) =>
|
|
|
122
122
|
"gap",
|
|
123
123
|
"rowGap",
|
|
124
124
|
"columnGap"
|
|
125
|
-
],
|
|
125
|
+
], vn = [
|
|
126
126
|
"color",
|
|
127
127
|
"backgroundColor",
|
|
128
128
|
"borderColor",
|
|
@@ -134,119 +134,121 @@ const cn = (n) => n.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`), ir = (n) =>
|
|
|
134
134
|
"textDecorationColor",
|
|
135
135
|
"fill",
|
|
136
136
|
"stroke"
|
|
137
|
-
],
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
137
|
+
], gn = () => {
|
|
138
|
+
const r = Date.now().toString(), o = Math.floor(Math.random() * 1e4).toString().padStart(4, "0");
|
|
139
|
+
return `${r}${o}`;
|
|
140
|
+
}, mt = (r, o = "px", i = "base") => ({ theme: s }) => {
|
|
141
|
+
const f = s.spacings[i] ?? 0;
|
|
142
|
+
if (typeof r == "number") {
|
|
143
|
+
const l = r * f;
|
|
144
|
+
return o ? `${l}${o}` : l;
|
|
145
|
+
}
|
|
146
|
+
return r.map((l) => {
|
|
147
|
+
const h = l * f;
|
|
148
|
+
return o ? `${h}${o}` : h;
|
|
146
149
|
}).join(" ");
|
|
147
|
-
}, ht = (
|
|
148
|
-
const [
|
|
149
|
-
return o !== void 0 ?
|
|
150
|
-
},
|
|
151
|
-
const
|
|
152
|
-
return
|
|
153
|
-
font-family: ${
|
|
154
|
-
font-size: ${
|
|
155
|
-
font-weight: ${
|
|
156
|
-
line-height: ${
|
|
157
|
-
letter-spacing: ${
|
|
150
|
+
}, ht = (r, o) => ({ theme: i }) => {
|
|
151
|
+
const [s, f] = r.split("."), u = i.colors[s][f];
|
|
152
|
+
return o !== void 0 ? dn(u, o) : u;
|
|
153
|
+
}, yn = (r) => ({ theme: o }) => {
|
|
154
|
+
const i = o.fonts[r];
|
|
155
|
+
return ve`
|
|
156
|
+
font-family: ${i.family};
|
|
157
|
+
font-size: ${Ut(i.size)};
|
|
158
|
+
font-weight: ${i.weight};
|
|
159
|
+
line-height: ${i.lineHeight !== void 0 && Ut(i.lineHeight)};
|
|
160
|
+
letter-spacing: ${i.letterSpacing !== void 0 && Ut(i.letterSpacing)};
|
|
158
161
|
`;
|
|
159
|
-
},
|
|
160
|
-
const
|
|
161
|
-
if (
|
|
162
|
-
return
|
|
163
|
-
},
|
|
164
|
-
([
|
|
165
|
-
),
|
|
166
|
-
${
|
|
167
|
-
const
|
|
168
|
-
return
|
|
169
|
-
${
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
162
|
+
}, mn = (r) => ({ theme: o }) => o.dimensions[r], bn = (r) => hn.includes(r), _n = (r) => vn.includes(r), _r = (r) => r[0] === "$", xn = (r) => r.split(".").length === 2, Tn = (r, o, i) => {
|
|
163
|
+
const s = typeof o == "object" && !Array.isArray(o) ? o[i] : o;
|
|
164
|
+
if (s !== void 0)
|
|
165
|
+
return bn(r) && (typeof s == "number" || Array.isArray(s)) ? mt(s, "px") : _n(r) && typeof s == "string" && xn(s) ? ht(s) : s;
|
|
166
|
+
}, En = (r, o) => Object.entries(r).filter(
|
|
167
|
+
([i, s]) => _r(i) && o === "xs" || s && typeof s == "object" && o in s
|
|
168
|
+
), xr = (r) => ({ theme: o, ...i }) => ve`
|
|
169
|
+
${En(i, r).map(([s, f]) => {
|
|
170
|
+
const u = s.slice(1);
|
|
171
|
+
return ve`
|
|
172
|
+
${ln(u)}: ${Tn(
|
|
173
|
+
u,
|
|
174
|
+
f,
|
|
175
|
+
r
|
|
173
176
|
)};
|
|
174
177
|
`;
|
|
175
178
|
})}
|
|
176
|
-
`,
|
|
177
|
-
([
|
|
178
|
-
),
|
|
179
|
-
const
|
|
180
|
-
const
|
|
181
|
-
if (!
|
|
182
|
-
throw new Error(`[honey-layout]: Setup for breakpoint "${
|
|
183
|
-
return
|
|
179
|
+
`, wn = (r, o) => Object.entries(o).some(
|
|
180
|
+
([i, s]) => _r(i) && typeof s == "object" && r in s
|
|
181
|
+
), Tr = (r, o = {}) => {
|
|
182
|
+
const i = (u) => {
|
|
183
|
+
const l = u.breakpoints[r];
|
|
184
|
+
if (!l)
|
|
185
|
+
throw new Error(`[honey-layout]: Setup for breakpoint "${r}" was not found.`);
|
|
186
|
+
return l;
|
|
184
187
|
};
|
|
185
188
|
return {
|
|
186
|
-
down: ({ theme:
|
|
189
|
+
down: ({ theme: u }) => ur([
|
|
187
190
|
{
|
|
188
|
-
maxWidth: `${
|
|
191
|
+
maxWidth: `${i(u)}px`,
|
|
189
192
|
...o
|
|
190
193
|
}
|
|
191
194
|
]),
|
|
192
|
-
up: ({ theme:
|
|
195
|
+
up: ({ theme: u }) => ur([
|
|
193
196
|
{
|
|
194
|
-
minWidth: `${
|
|
197
|
+
minWidth: `${i(u)}px`,
|
|
195
198
|
...o
|
|
196
199
|
}
|
|
197
200
|
])
|
|
198
201
|
};
|
|
199
|
-
},
|
|
200
|
-
${
|
|
201
|
-
${
|
|
202
|
+
}, pt = (r) => ({ theme: o, ...i }) => !o.breakpoints[r] || !wn(r, i) ? null : ve`
|
|
203
|
+
${Tr(r).up} {
|
|
204
|
+
${xr(r)};
|
|
202
205
|
}
|
|
203
|
-
`, cr = (
|
|
204
|
-
const o = window.screen.orientation.type,
|
|
205
|
-
if (!
|
|
206
|
+
`, cr = (r) => {
|
|
207
|
+
const o = window.screen.orientation.type, i = o === "portrait-primary" || o === "portrait-secondary", s = !i;
|
|
208
|
+
if (!r)
|
|
206
209
|
return {
|
|
207
|
-
isPortrait:
|
|
208
|
-
isLandscape:
|
|
210
|
+
isPortrait: i,
|
|
211
|
+
isLandscape: s,
|
|
209
212
|
isXs: !1,
|
|
210
213
|
isSm: !1,
|
|
211
214
|
isMd: !1,
|
|
212
215
|
isLg: !1,
|
|
213
216
|
isXl: !1
|
|
214
217
|
};
|
|
215
|
-
const
|
|
216
|
-
const
|
|
217
|
-
return
|
|
218
|
-
}) ??
|
|
218
|
+
const f = Object.entries(r).sort(([, l], [, h]) => l - h).map(([l]) => l), u = f.find((l) => {
|
|
219
|
+
const h = r[l];
|
|
220
|
+
return h ? window.innerWidth < h : !1;
|
|
221
|
+
}) ?? f.pop();
|
|
219
222
|
return {
|
|
220
|
-
isPortrait:
|
|
221
|
-
isLandscape:
|
|
222
|
-
isXs:
|
|
223
|
-
isSm:
|
|
224
|
-
isMd:
|
|
225
|
-
isLg:
|
|
226
|
-
isXl:
|
|
223
|
+
isPortrait: i,
|
|
224
|
+
isLandscape: s,
|
|
225
|
+
isXs: u === "xs",
|
|
226
|
+
isSm: u === "sm",
|
|
227
|
+
isMd: u === "md",
|
|
228
|
+
isLg: u === "lg",
|
|
229
|
+
isXl: u === "xl"
|
|
227
230
|
};
|
|
228
|
-
},
|
|
229
|
-
${({ modifiers:
|
|
230
|
-
${
|
|
231
|
+
}, bt = ge.div`
|
|
232
|
+
${({ modifiers: r }) => ve`
|
|
233
|
+
${r == null ? void 0 : r.map((o) => o())};
|
|
231
234
|
|
|
232
|
-
${
|
|
235
|
+
${xr("xs")};
|
|
233
236
|
|
|
234
|
-
${
|
|
235
|
-
${
|
|
236
|
-
${
|
|
237
|
-
${
|
|
237
|
+
${pt("sm")};
|
|
238
|
+
${pt("md")};
|
|
239
|
+
${pt("lg")};
|
|
240
|
+
${pt("xl")};
|
|
238
241
|
`}
|
|
239
|
-
`, qt =
|
|
240
|
-
display: flex;
|
|
241
|
-
`;
|
|
242
|
+
`, qt = ge(bt)``;
|
|
242
243
|
qt.defaultProps = {
|
|
244
|
+
$display: "flex",
|
|
243
245
|
$flexDirection: "column"
|
|
244
246
|
};
|
|
245
|
-
var
|
|
246
|
-
function Er(
|
|
247
|
-
return
|
|
247
|
+
var he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
248
|
+
function Er(r) {
|
|
249
|
+
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
248
250
|
}
|
|
249
|
-
var
|
|
251
|
+
var Gt = { exports: {} }, Ne = {};
|
|
250
252
|
/**
|
|
251
253
|
* @license React
|
|
252
254
|
* react-jsx-runtime.production.min.js
|
|
@@ -256,19 +258,19 @@ var Ut = { exports: {} }, Ne = {};
|
|
|
256
258
|
* This source code is licensed under the MIT license found in the
|
|
257
259
|
* LICENSE file in the root directory of this source tree.
|
|
258
260
|
*/
|
|
259
|
-
var
|
|
260
|
-
function
|
|
261
|
-
if (
|
|
262
|
-
|
|
263
|
-
var
|
|
264
|
-
function
|
|
265
|
-
var
|
|
266
|
-
|
|
267
|
-
for (
|
|
268
|
-
if (
|
|
269
|
-
return { $$typeof: o, type:
|
|
270
|
-
}
|
|
271
|
-
return Ne.Fragment =
|
|
261
|
+
var lr;
|
|
262
|
+
function Sn() {
|
|
263
|
+
if (lr) return Ne;
|
|
264
|
+
lr = 1;
|
|
265
|
+
var r = gr, o = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, f = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, u = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
266
|
+
function l(h, p, b) {
|
|
267
|
+
var y, g = {}, T = null, O = null;
|
|
268
|
+
b !== void 0 && (T = "" + b), p.key !== void 0 && (T = "" + p.key), p.ref !== void 0 && (O = p.ref);
|
|
269
|
+
for (y in p) s.call(p, y) && !u.hasOwnProperty(y) && (g[y] = p[y]);
|
|
270
|
+
if (h && h.defaultProps) for (y in p = h.defaultProps, p) g[y] === void 0 && (g[y] = p[y]);
|
|
271
|
+
return { $$typeof: o, type: h, key: T, ref: O, props: g, _owner: f.current };
|
|
272
|
+
}
|
|
273
|
+
return Ne.Fragment = i, Ne.jsx = l, Ne.jsxs = l, Ne;
|
|
272
274
|
}
|
|
273
275
|
var ze = {};
|
|
274
276
|
/**
|
|
@@ -280,91 +282,91 @@ var ze = {};
|
|
|
280
282
|
* This source code is licensed under the MIT license found in the
|
|
281
283
|
* LICENSE file in the root directory of this source tree.
|
|
282
284
|
*/
|
|
283
|
-
var
|
|
284
|
-
function
|
|
285
|
-
return
|
|
286
|
-
var
|
|
287
|
-
function
|
|
285
|
+
var fr;
|
|
286
|
+
function Rn() {
|
|
287
|
+
return fr || (fr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
288
|
+
var r = gr, o = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), u = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), h = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), M = Symbol.iterator, W = "@@iterator";
|
|
289
|
+
function N(t) {
|
|
288
290
|
if (t === null || typeof t != "object")
|
|
289
291
|
return null;
|
|
290
292
|
var c = M && t[M] || t[W];
|
|
291
293
|
return typeof c == "function" ? c : null;
|
|
292
294
|
}
|
|
293
|
-
var F =
|
|
294
|
-
function
|
|
295
|
+
var F = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
296
|
+
function P(t) {
|
|
295
297
|
{
|
|
296
|
-
for (var c = arguments.length,
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
for (var c = arguments.length, d = new Array(c > 1 ? c - 1 : 0), m = 1; m < c; m++)
|
|
299
|
+
d[m - 1] = arguments[m];
|
|
300
|
+
se("error", t, d);
|
|
299
301
|
}
|
|
300
302
|
}
|
|
301
|
-
function
|
|
303
|
+
function se(t, c, d) {
|
|
302
304
|
{
|
|
303
|
-
var
|
|
304
|
-
S !== "" && (c += "%s",
|
|
305
|
-
var
|
|
306
|
-
return String(
|
|
305
|
+
var m = F.ReactDebugCurrentFrame, S = m.getStackAddendum();
|
|
306
|
+
S !== "" && (c += "%s", d = d.concat([S]));
|
|
307
|
+
var j = d.map(function(E) {
|
|
308
|
+
return String(E);
|
|
307
309
|
});
|
|
308
|
-
|
|
310
|
+
j.unshift("Warning: " + c), Function.prototype.apply.call(console[t], console, j);
|
|
309
311
|
}
|
|
310
312
|
}
|
|
311
|
-
var
|
|
312
|
-
|
|
313
|
-
function
|
|
314
|
-
return !!(typeof t == "string" || typeof t == "function" || t ===
|
|
313
|
+
var ue = !1, ee = !1, _ = !1, C = !1, B = !1, ce;
|
|
314
|
+
ce = Symbol.for("react.module.reference");
|
|
315
|
+
function _t(t) {
|
|
316
|
+
return !!(typeof t == "string" || typeof t == "function" || t === s || t === u || B || t === f || t === b || t === y || C || t === O || ue || ee || _ || typeof t == "object" && t !== null && (t.$$typeof === T || t.$$typeof === g || t.$$typeof === l || t.$$typeof === h || t.$$typeof === p || // This needs to include all possible module reference object
|
|
315
317
|
// types supported by any Flight configuration anywhere since
|
|
316
318
|
// we don't know which Flight build this will end up being used
|
|
317
319
|
// with.
|
|
318
|
-
t.$$typeof ===
|
|
320
|
+
t.$$typeof === ce || t.getModuleId !== void 0));
|
|
319
321
|
}
|
|
320
|
-
function
|
|
321
|
-
var
|
|
322
|
-
if (
|
|
323
|
-
return
|
|
322
|
+
function xt(t, c, d) {
|
|
323
|
+
var m = t.displayName;
|
|
324
|
+
if (m)
|
|
325
|
+
return m;
|
|
324
326
|
var S = c.displayName || c.name || "";
|
|
325
|
-
return S !== "" ?
|
|
327
|
+
return S !== "" ? d + "(" + S + ")" : d;
|
|
326
328
|
}
|
|
327
|
-
function
|
|
329
|
+
function Ye(t) {
|
|
328
330
|
return t.displayName || "Context";
|
|
329
331
|
}
|
|
330
332
|
function V(t) {
|
|
331
333
|
if (t == null)
|
|
332
334
|
return null;
|
|
333
|
-
if (typeof t.tag == "number" &&
|
|
335
|
+
if (typeof t.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
|
|
334
336
|
return t.displayName || t.name || null;
|
|
335
337
|
if (typeof t == "string")
|
|
336
338
|
return t;
|
|
337
339
|
switch (t) {
|
|
338
|
-
case
|
|
340
|
+
case s:
|
|
339
341
|
return "Fragment";
|
|
340
|
-
case
|
|
342
|
+
case i:
|
|
341
343
|
return "Portal";
|
|
342
|
-
case
|
|
344
|
+
case u:
|
|
343
345
|
return "Profiler";
|
|
344
|
-
case
|
|
346
|
+
case f:
|
|
345
347
|
return "StrictMode";
|
|
346
|
-
case
|
|
348
|
+
case b:
|
|
347
349
|
return "Suspense";
|
|
348
|
-
case
|
|
350
|
+
case y:
|
|
349
351
|
return "SuspenseList";
|
|
350
352
|
}
|
|
351
353
|
if (typeof t == "object")
|
|
352
354
|
switch (t.$$typeof) {
|
|
353
|
-
case
|
|
355
|
+
case h:
|
|
354
356
|
var c = t;
|
|
355
|
-
return
|
|
356
|
-
case
|
|
357
|
-
var
|
|
358
|
-
return
|
|
359
|
-
case
|
|
360
|
-
return
|
|
361
|
-
case
|
|
362
|
-
var
|
|
363
|
-
return
|
|
364
|
-
case
|
|
365
|
-
var S = t,
|
|
357
|
+
return Ye(c) + ".Consumer";
|
|
358
|
+
case l:
|
|
359
|
+
var d = t;
|
|
360
|
+
return Ye(d._context) + ".Provider";
|
|
361
|
+
case p:
|
|
362
|
+
return xt(t, t.render, "ForwardRef");
|
|
363
|
+
case g:
|
|
364
|
+
var m = t.displayName || null;
|
|
365
|
+
return m !== null ? m : V(t.type) || "Memo";
|
|
366
|
+
case T: {
|
|
367
|
+
var S = t, j = S._payload, E = S._init;
|
|
366
368
|
try {
|
|
367
|
-
return V(
|
|
369
|
+
return V(E(j));
|
|
368
370
|
} catch {
|
|
369
371
|
return null;
|
|
370
372
|
}
|
|
@@ -372,18 +374,18 @@ function wn() {
|
|
|
372
374
|
}
|
|
373
375
|
return null;
|
|
374
376
|
}
|
|
375
|
-
var
|
|
376
|
-
function
|
|
377
|
+
var oe = Object.assign, ye = 0, Ue, Be, Ge, Ve, Xe, qe, Je;
|
|
378
|
+
function $() {
|
|
377
379
|
}
|
|
378
|
-
|
|
379
|
-
function
|
|
380
|
+
$.__reactDisabledLog = !0;
|
|
381
|
+
function Ke() {
|
|
380
382
|
{
|
|
381
|
-
if (
|
|
382
|
-
|
|
383
|
+
if (ye === 0) {
|
|
384
|
+
Ue = console.log, Be = console.info, Ge = console.warn, Ve = console.error, Xe = console.group, qe = console.groupCollapsed, Je = console.groupEnd;
|
|
383
385
|
var t = {
|
|
384
386
|
configurable: !0,
|
|
385
387
|
enumerable: !0,
|
|
386
|
-
value:
|
|
388
|
+
value: $,
|
|
387
389
|
writable: !0
|
|
388
390
|
};
|
|
389
391
|
Object.defineProperties(console, {
|
|
@@ -396,208 +398,208 @@ function wn() {
|
|
|
396
398
|
groupEnd: t
|
|
397
399
|
});
|
|
398
400
|
}
|
|
399
|
-
|
|
401
|
+
ye++;
|
|
400
402
|
}
|
|
401
403
|
}
|
|
402
|
-
function
|
|
404
|
+
function Tt() {
|
|
403
405
|
{
|
|
404
|
-
if (
|
|
406
|
+
if (ye--, ye === 0) {
|
|
405
407
|
var t = {
|
|
406
408
|
configurable: !0,
|
|
407
409
|
enumerable: !0,
|
|
408
410
|
writable: !0
|
|
409
411
|
};
|
|
410
412
|
Object.defineProperties(console, {
|
|
411
|
-
log:
|
|
412
|
-
value: Ye
|
|
413
|
-
}),
|
|
414
|
-
info: ne({}, t, {
|
|
413
|
+
log: oe({}, t, {
|
|
415
414
|
value: Ue
|
|
416
415
|
}),
|
|
417
|
-
|
|
416
|
+
info: oe({}, t, {
|
|
418
417
|
value: Be
|
|
419
418
|
}),
|
|
420
|
-
|
|
419
|
+
warn: oe({}, t, {
|
|
421
420
|
value: Ge
|
|
422
421
|
}),
|
|
423
|
-
|
|
422
|
+
error: oe({}, t, {
|
|
424
423
|
value: Ve
|
|
425
424
|
}),
|
|
426
|
-
|
|
425
|
+
group: oe({}, t, {
|
|
427
426
|
value: Xe
|
|
428
427
|
}),
|
|
429
|
-
|
|
428
|
+
groupCollapsed: oe({}, t, {
|
|
430
429
|
value: qe
|
|
430
|
+
}),
|
|
431
|
+
groupEnd: oe({}, t, {
|
|
432
|
+
value: Je
|
|
431
433
|
})
|
|
432
434
|
});
|
|
433
435
|
}
|
|
434
|
-
|
|
436
|
+
ye < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
435
437
|
}
|
|
436
438
|
}
|
|
437
|
-
var
|
|
438
|
-
function te(t, c,
|
|
439
|
+
var ie = F.ReactCurrentDispatcher, Te;
|
|
440
|
+
function te(t, c, d) {
|
|
439
441
|
{
|
|
440
|
-
if (
|
|
442
|
+
if (Te === void 0)
|
|
441
443
|
try {
|
|
442
444
|
throw Error();
|
|
443
445
|
} catch (S) {
|
|
444
|
-
var
|
|
445
|
-
|
|
446
|
+
var m = S.stack.trim().match(/\n( *(at )?)/);
|
|
447
|
+
Te = m && m[1] || "";
|
|
446
448
|
}
|
|
447
449
|
return `
|
|
448
|
-
` +
|
|
450
|
+
` + Te + t;
|
|
449
451
|
}
|
|
450
452
|
}
|
|
451
|
-
var
|
|
453
|
+
var Ee = !1, le;
|
|
452
454
|
{
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
+
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
456
|
+
le = new Ze();
|
|
455
457
|
}
|
|
456
|
-
function
|
|
457
|
-
if (!t ||
|
|
458
|
+
function $e(t, c) {
|
|
459
|
+
if (!t || Ee)
|
|
458
460
|
return "";
|
|
459
461
|
{
|
|
460
|
-
var
|
|
461
|
-
if (
|
|
462
|
-
return
|
|
462
|
+
var d = le.get(t);
|
|
463
|
+
if (d !== void 0)
|
|
464
|
+
return d;
|
|
463
465
|
}
|
|
464
|
-
var
|
|
465
|
-
|
|
466
|
+
var m;
|
|
467
|
+
Ee = !0;
|
|
466
468
|
var S = Error.prepareStackTrace;
|
|
467
469
|
Error.prepareStackTrace = void 0;
|
|
468
|
-
var
|
|
469
|
-
|
|
470
|
+
var j;
|
|
471
|
+
j = ie.current, ie.current = null, Ke();
|
|
470
472
|
try {
|
|
471
473
|
if (c) {
|
|
472
|
-
var
|
|
474
|
+
var E = function() {
|
|
473
475
|
throw Error();
|
|
474
476
|
};
|
|
475
|
-
if (Object.defineProperty(
|
|
477
|
+
if (Object.defineProperty(E.prototype, "props", {
|
|
476
478
|
set: function() {
|
|
477
479
|
throw Error();
|
|
478
480
|
}
|
|
479
481
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
480
482
|
try {
|
|
481
|
-
Reflect.construct(
|
|
482
|
-
} catch (
|
|
483
|
-
|
|
483
|
+
Reflect.construct(E, []);
|
|
484
|
+
} catch (z) {
|
|
485
|
+
m = z;
|
|
484
486
|
}
|
|
485
|
-
Reflect.construct(t, [],
|
|
487
|
+
Reflect.construct(t, [], E);
|
|
486
488
|
} else {
|
|
487
489
|
try {
|
|
488
|
-
|
|
489
|
-
} catch (
|
|
490
|
-
|
|
490
|
+
E.call();
|
|
491
|
+
} catch (z) {
|
|
492
|
+
m = z;
|
|
491
493
|
}
|
|
492
|
-
t.call(
|
|
494
|
+
t.call(E.prototype);
|
|
493
495
|
}
|
|
494
496
|
} else {
|
|
495
497
|
try {
|
|
496
498
|
throw Error();
|
|
497
|
-
} catch (
|
|
498
|
-
|
|
499
|
+
} catch (z) {
|
|
500
|
+
m = z;
|
|
499
501
|
}
|
|
500
502
|
t();
|
|
501
503
|
}
|
|
502
|
-
} catch (
|
|
503
|
-
if (
|
|
504
|
-
for (var
|
|
505
|
-
`),
|
|
506
|
-
`), D =
|
|
507
|
-
|
|
508
|
-
for (; D >= 1 &&
|
|
509
|
-
if (
|
|
510
|
-
if (D !== 1 ||
|
|
504
|
+
} catch (z) {
|
|
505
|
+
if (z && m && typeof z.stack == "string") {
|
|
506
|
+
for (var x = z.stack.split(`
|
|
507
|
+
`), k = m.stack.split(`
|
|
508
|
+
`), D = x.length - 1, A = k.length - 1; D >= 1 && A >= 0 && x[D] !== k[A]; )
|
|
509
|
+
A--;
|
|
510
|
+
for (; D >= 1 && A >= 0; D--, A--)
|
|
511
|
+
if (x[D] !== k[A]) {
|
|
512
|
+
if (D !== 1 || A !== 1)
|
|
511
513
|
do
|
|
512
|
-
if (D--,
|
|
514
|
+
if (D--, A--, A < 0 || x[D] !== k[A]) {
|
|
513
515
|
var U = `
|
|
514
|
-
` +
|
|
515
|
-
return t.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", t.displayName)), typeof t == "function" &&
|
|
516
|
+
` + x[D].replace(" at new ", " at ");
|
|
517
|
+
return t.displayName && U.includes("<anonymous>") && (U = U.replace("<anonymous>", t.displayName)), typeof t == "function" && le.set(t, U), U;
|
|
516
518
|
}
|
|
517
|
-
while (D >= 1 &&
|
|
519
|
+
while (D >= 1 && A >= 0);
|
|
518
520
|
break;
|
|
519
521
|
}
|
|
520
522
|
}
|
|
521
523
|
} finally {
|
|
522
|
-
|
|
524
|
+
Ee = !1, ie.current = j, Tt(), Error.prepareStackTrace = S;
|
|
523
525
|
}
|
|
524
526
|
var K = t ? t.displayName || t.name : "", Z = K ? te(K) : "";
|
|
525
|
-
return typeof t == "function" &&
|
|
527
|
+
return typeof t == "function" && le.set(t, Z), Z;
|
|
526
528
|
}
|
|
527
|
-
function
|
|
528
|
-
return
|
|
529
|
+
function Et(t, c, d) {
|
|
530
|
+
return $e(t, !1);
|
|
529
531
|
}
|
|
530
|
-
function
|
|
532
|
+
function wt(t) {
|
|
531
533
|
var c = t.prototype;
|
|
532
534
|
return !!(c && c.isReactComponent);
|
|
533
535
|
}
|
|
534
|
-
function
|
|
536
|
+
function we(t, c, d) {
|
|
535
537
|
if (t == null)
|
|
536
538
|
return "";
|
|
537
539
|
if (typeof t == "function")
|
|
538
|
-
return
|
|
540
|
+
return $e(t, wt(t));
|
|
539
541
|
if (typeof t == "string")
|
|
540
542
|
return te(t);
|
|
541
543
|
switch (t) {
|
|
542
|
-
case
|
|
544
|
+
case b:
|
|
543
545
|
return te("Suspense");
|
|
544
|
-
case
|
|
546
|
+
case y:
|
|
545
547
|
return te("SuspenseList");
|
|
546
548
|
}
|
|
547
549
|
if (typeof t == "object")
|
|
548
550
|
switch (t.$$typeof) {
|
|
549
|
-
case
|
|
550
|
-
return
|
|
551
|
-
case
|
|
552
|
-
return
|
|
553
|
-
case
|
|
554
|
-
var
|
|
551
|
+
case p:
|
|
552
|
+
return Et(t.render);
|
|
553
|
+
case g:
|
|
554
|
+
return we(t.type, c, d);
|
|
555
|
+
case T: {
|
|
556
|
+
var m = t, S = m._payload, j = m._init;
|
|
555
557
|
try {
|
|
556
|
-
return
|
|
558
|
+
return we(j(S), c, d);
|
|
557
559
|
} catch {
|
|
558
560
|
}
|
|
559
561
|
}
|
|
560
562
|
}
|
|
561
563
|
return "";
|
|
562
564
|
}
|
|
563
|
-
var
|
|
564
|
-
function
|
|
565
|
+
var me = Object.prototype.hasOwnProperty, Qe = {}, et = F.ReactDebugCurrentFrame;
|
|
566
|
+
function Se(t) {
|
|
565
567
|
if (t) {
|
|
566
|
-
var c = t._owner,
|
|
567
|
-
|
|
568
|
+
var c = t._owner, d = we(t.type, t._source, c ? c.type : null);
|
|
569
|
+
et.setExtraStackFrame(d);
|
|
568
570
|
} else
|
|
569
|
-
|
|
571
|
+
et.setExtraStackFrame(null);
|
|
570
572
|
}
|
|
571
|
-
function
|
|
573
|
+
function Re(t, c, d, m, S) {
|
|
572
574
|
{
|
|
573
|
-
var
|
|
574
|
-
for (var
|
|
575
|
-
if (
|
|
576
|
-
var
|
|
575
|
+
var j = Function.call.bind(me);
|
|
576
|
+
for (var E in t)
|
|
577
|
+
if (j(t, E)) {
|
|
578
|
+
var x = void 0;
|
|
577
579
|
try {
|
|
578
|
-
if (typeof t[
|
|
579
|
-
var
|
|
580
|
-
throw
|
|
580
|
+
if (typeof t[E] != "function") {
|
|
581
|
+
var k = Error((m || "React class") + ": " + d + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
582
|
+
throw k.name = "Invariant Violation", k;
|
|
581
583
|
}
|
|
582
|
-
|
|
584
|
+
x = t[E](c, E, m, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
583
585
|
} catch (D) {
|
|
584
|
-
|
|
586
|
+
x = D;
|
|
585
587
|
}
|
|
586
|
-
|
|
588
|
+
x && !(x instanceof Error) && (Se(S), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", m || "React class", d, E, typeof x), Se(null)), x instanceof Error && !(x.message in Qe) && (Qe[x.message] = !0, Se(S), P("Failed %s type: %s", d, x.message), Se(null));
|
|
587
589
|
}
|
|
588
590
|
}
|
|
589
591
|
}
|
|
590
|
-
var
|
|
592
|
+
var Le = Array.isArray;
|
|
591
593
|
function fe(t) {
|
|
592
|
-
return
|
|
594
|
+
return Le(t);
|
|
593
595
|
}
|
|
594
596
|
function re(t) {
|
|
595
597
|
{
|
|
596
|
-
var c = typeof Symbol == "function" && Symbol.toStringTag,
|
|
597
|
-
return
|
|
598
|
+
var c = typeof Symbol == "function" && Symbol.toStringTag, d = c && t[Symbol.toStringTag] || t.constructor.name || "Object";
|
|
599
|
+
return d;
|
|
598
600
|
}
|
|
599
601
|
}
|
|
600
|
-
function
|
|
602
|
+
function tt(t) {
|
|
601
603
|
try {
|
|
602
604
|
return Ae(t), !1;
|
|
603
605
|
} catch {
|
|
@@ -607,125 +609,125 @@ function wn() {
|
|
|
607
609
|
function Ae(t) {
|
|
608
610
|
return "" + t;
|
|
609
611
|
}
|
|
610
|
-
function
|
|
611
|
-
if (
|
|
612
|
-
return
|
|
612
|
+
function rt(t) {
|
|
613
|
+
if (tt(t))
|
|
614
|
+
return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", re(t)), Ae(t);
|
|
613
615
|
}
|
|
614
|
-
var
|
|
616
|
+
var be = F.ReactCurrentOwner, Ce = {
|
|
615
617
|
key: !0,
|
|
616
618
|
ref: !0,
|
|
617
619
|
__self: !0,
|
|
618
620
|
__source: !0
|
|
619
|
-
},
|
|
620
|
-
|
|
621
|
-
function
|
|
622
|
-
if (
|
|
621
|
+
}, Ie, He, Oe;
|
|
622
|
+
Oe = {};
|
|
623
|
+
function nt(t) {
|
|
624
|
+
if (me.call(t, "ref")) {
|
|
623
625
|
var c = Object.getOwnPropertyDescriptor(t, "ref").get;
|
|
624
626
|
if (c && c.isReactWarning)
|
|
625
627
|
return !1;
|
|
626
628
|
}
|
|
627
629
|
return t.ref !== void 0;
|
|
628
630
|
}
|
|
629
|
-
function
|
|
630
|
-
if (
|
|
631
|
+
function St(t) {
|
|
632
|
+
if (me.call(t, "key")) {
|
|
631
633
|
var c = Object.getOwnPropertyDescriptor(t, "key").get;
|
|
632
634
|
if (c && c.isReactWarning)
|
|
633
635
|
return !1;
|
|
634
636
|
}
|
|
635
637
|
return t.key !== void 0;
|
|
636
638
|
}
|
|
637
|
-
function
|
|
638
|
-
if (typeof t.ref == "string" &&
|
|
639
|
-
var
|
|
640
|
-
|
|
639
|
+
function Rt(t, c) {
|
|
640
|
+
if (typeof t.ref == "string" && be.current && c && be.current.stateNode !== c) {
|
|
641
|
+
var d = V(be.current.type);
|
|
642
|
+
Oe[d] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', V(be.current.type), t.ref), Oe[d] = !0);
|
|
641
643
|
}
|
|
642
644
|
}
|
|
643
|
-
function
|
|
645
|
+
function ae(t, c) {
|
|
644
646
|
{
|
|
645
|
-
var
|
|
646
|
-
|
|
647
|
+
var d = function() {
|
|
648
|
+
Ie || (Ie = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
647
649
|
};
|
|
648
|
-
|
|
649
|
-
get:
|
|
650
|
+
d.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
651
|
+
get: d,
|
|
650
652
|
configurable: !0
|
|
651
653
|
});
|
|
652
654
|
}
|
|
653
655
|
}
|
|
654
|
-
function
|
|
656
|
+
function je(t, c) {
|
|
655
657
|
{
|
|
656
|
-
var
|
|
657
|
-
|
|
658
|
+
var d = function() {
|
|
659
|
+
He || (He = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", c));
|
|
658
660
|
};
|
|
659
|
-
|
|
660
|
-
get:
|
|
661
|
+
d.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
662
|
+
get: d,
|
|
661
663
|
configurable: !0
|
|
662
664
|
});
|
|
663
665
|
}
|
|
664
666
|
}
|
|
665
|
-
var
|
|
666
|
-
var
|
|
667
|
+
var Ct = function(t, c, d, m, S, j, E) {
|
|
668
|
+
var x = {
|
|
667
669
|
// This tag allows us to uniquely identify this as a React Element
|
|
668
670
|
$$typeof: o,
|
|
669
671
|
// Built-in properties that belong on the element
|
|
670
672
|
type: t,
|
|
671
673
|
key: c,
|
|
672
|
-
ref:
|
|
673
|
-
props:
|
|
674
|
+
ref: d,
|
|
675
|
+
props: E,
|
|
674
676
|
// Record the component responsible for creating this element.
|
|
675
|
-
_owner:
|
|
677
|
+
_owner: j
|
|
676
678
|
};
|
|
677
|
-
return
|
|
679
|
+
return x._store = {}, Object.defineProperty(x._store, "validated", {
|
|
678
680
|
configurable: !1,
|
|
679
681
|
enumerable: !1,
|
|
680
682
|
writable: !0,
|
|
681
683
|
value: !1
|
|
682
|
-
}), Object.defineProperty(
|
|
684
|
+
}), Object.defineProperty(x, "_self", {
|
|
683
685
|
configurable: !1,
|
|
684
686
|
enumerable: !1,
|
|
685
687
|
writable: !1,
|
|
686
|
-
value:
|
|
687
|
-
}), Object.defineProperty(
|
|
688
|
+
value: m
|
|
689
|
+
}), Object.defineProperty(x, "_source", {
|
|
688
690
|
configurable: !1,
|
|
689
691
|
enumerable: !1,
|
|
690
692
|
writable: !1,
|
|
691
693
|
value: S
|
|
692
|
-
}), Object.freeze && (Object.freeze(
|
|
694
|
+
}), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
|
|
693
695
|
};
|
|
694
|
-
function
|
|
696
|
+
function ot(t, c, d, m, S) {
|
|
695
697
|
{
|
|
696
|
-
var
|
|
697
|
-
|
|
698
|
-
for (
|
|
699
|
-
|
|
698
|
+
var j, E = {}, x = null, k = null;
|
|
699
|
+
d !== void 0 && (rt(d), x = "" + d), St(c) && (rt(c.key), x = "" + c.key), nt(c) && (k = c.ref, Rt(c, S));
|
|
700
|
+
for (j in c)
|
|
701
|
+
me.call(c, j) && !Ce.hasOwnProperty(j) && (E[j] = c[j]);
|
|
700
702
|
if (t && t.defaultProps) {
|
|
701
703
|
var D = t.defaultProps;
|
|
702
|
-
for (
|
|
703
|
-
|
|
704
|
+
for (j in D)
|
|
705
|
+
E[j] === void 0 && (E[j] = D[j]);
|
|
704
706
|
}
|
|
705
|
-
if (
|
|
706
|
-
var
|
|
707
|
-
|
|
707
|
+
if (x || k) {
|
|
708
|
+
var A = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
709
|
+
x && ae(E, A), k && je(E, A);
|
|
708
710
|
}
|
|
709
|
-
return
|
|
711
|
+
return Ct(t, x, k, S, m, be.current, E);
|
|
710
712
|
}
|
|
711
713
|
}
|
|
712
|
-
var
|
|
714
|
+
var De = F.ReactCurrentOwner, Me = F.ReactDebugCurrentFrame;
|
|
713
715
|
function X(t) {
|
|
714
716
|
if (t) {
|
|
715
|
-
var c = t._owner,
|
|
716
|
-
|
|
717
|
+
var c = t._owner, d = we(t.type, t._source, c ? c.type : null);
|
|
718
|
+
Me.setExtraStackFrame(d);
|
|
717
719
|
} else
|
|
718
|
-
|
|
720
|
+
Me.setExtraStackFrame(null);
|
|
719
721
|
}
|
|
720
|
-
var
|
|
721
|
-
|
|
722
|
+
var Fe;
|
|
723
|
+
Fe = !1;
|
|
722
724
|
function J(t) {
|
|
723
725
|
return typeof t == "object" && t !== null && t.$$typeof === o;
|
|
724
726
|
}
|
|
725
|
-
function
|
|
727
|
+
function it() {
|
|
726
728
|
{
|
|
727
|
-
if (
|
|
728
|
-
var t = V(
|
|
729
|
+
if (De.current) {
|
|
730
|
+
var t = V(De.current.type);
|
|
729
731
|
if (t)
|
|
730
732
|
return `
|
|
731
733
|
|
|
@@ -734,33 +736,33 @@ Check the render method of \`` + t + "`.";
|
|
|
734
736
|
return "";
|
|
735
737
|
}
|
|
736
738
|
}
|
|
737
|
-
function
|
|
739
|
+
function Ot(t) {
|
|
738
740
|
return "";
|
|
739
741
|
}
|
|
740
|
-
var
|
|
741
|
-
function
|
|
742
|
+
var at = {};
|
|
743
|
+
function jt(t) {
|
|
742
744
|
{
|
|
743
|
-
var c =
|
|
745
|
+
var c = it();
|
|
744
746
|
if (!c) {
|
|
745
|
-
var
|
|
746
|
-
|
|
747
|
+
var d = typeof t == "string" ? t : t.displayName || t.name;
|
|
748
|
+
d && (c = `
|
|
747
749
|
|
|
748
|
-
Check the top-level render call using <` +
|
|
750
|
+
Check the top-level render call using <` + d + ">.");
|
|
749
751
|
}
|
|
750
752
|
return c;
|
|
751
753
|
}
|
|
752
754
|
}
|
|
753
|
-
function
|
|
755
|
+
function st(t, c) {
|
|
754
756
|
{
|
|
755
757
|
if (!t._store || t._store.validated || t.key != null)
|
|
756
758
|
return;
|
|
757
759
|
t._store.validated = !0;
|
|
758
|
-
var
|
|
759
|
-
if (
|
|
760
|
+
var d = jt(c);
|
|
761
|
+
if (at[d])
|
|
760
762
|
return;
|
|
761
|
-
|
|
762
|
-
var
|
|
763
|
-
t && t._owner && t._owner !==
|
|
763
|
+
at[d] = !0;
|
|
764
|
+
var m = "";
|
|
765
|
+
t && t._owner && t._owner !== De.current && (m = " It was passed a child from " + V(t._owner.type) + "."), X(t), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, m), X(null);
|
|
764
766
|
}
|
|
765
767
|
}
|
|
766
768
|
function q(t, c) {
|
|
@@ -768,134 +770,134 @@ Check the top-level render call using <` + l + ">.");
|
|
|
768
770
|
if (typeof t != "object")
|
|
769
771
|
return;
|
|
770
772
|
if (fe(t))
|
|
771
|
-
for (var
|
|
772
|
-
var
|
|
773
|
-
J(
|
|
773
|
+
for (var d = 0; d < t.length; d++) {
|
|
774
|
+
var m = t[d];
|
|
775
|
+
J(m) && st(m, c);
|
|
774
776
|
}
|
|
775
777
|
else if (J(t))
|
|
776
778
|
t._store && (t._store.validated = !0);
|
|
777
779
|
else if (t) {
|
|
778
|
-
var S =
|
|
780
|
+
var S = N(t);
|
|
779
781
|
if (typeof S == "function" && S !== t.entries)
|
|
780
|
-
for (var
|
|
781
|
-
J(
|
|
782
|
+
for (var j = S.call(t), E; !(E = j.next()).done; )
|
|
783
|
+
J(E.value) && st(E.value, c);
|
|
782
784
|
}
|
|
783
785
|
}
|
|
784
786
|
}
|
|
785
|
-
function
|
|
787
|
+
function Pt(t) {
|
|
786
788
|
{
|
|
787
789
|
var c = t.type;
|
|
788
790
|
if (c == null || typeof c == "string")
|
|
789
791
|
return;
|
|
790
|
-
var
|
|
792
|
+
var d;
|
|
791
793
|
if (typeof c == "function")
|
|
792
|
-
|
|
793
|
-
else if (typeof c == "object" && (c.$$typeof ===
|
|
794
|
+
d = c.propTypes;
|
|
795
|
+
else if (typeof c == "object" && (c.$$typeof === p || // Note: Memo only checks outer props here.
|
|
794
796
|
// Inner props are checked in the reconciler.
|
|
795
|
-
c.$$typeof ===
|
|
796
|
-
|
|
797
|
+
c.$$typeof === g))
|
|
798
|
+
d = c.propTypes;
|
|
797
799
|
else
|
|
798
800
|
return;
|
|
799
|
-
if (
|
|
800
|
-
var
|
|
801
|
-
|
|
802
|
-
} else if (c.PropTypes !== void 0 && !
|
|
803
|
-
|
|
801
|
+
if (d) {
|
|
802
|
+
var m = V(c);
|
|
803
|
+
Re(d, t.props, "prop", m, t);
|
|
804
|
+
} else if (c.PropTypes !== void 0 && !Fe) {
|
|
805
|
+
Fe = !0;
|
|
804
806
|
var S = V(c);
|
|
805
|
-
|
|
807
|
+
P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", S || "Unknown");
|
|
806
808
|
}
|
|
807
|
-
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved &&
|
|
809
|
+
typeof c.getDefaultProps == "function" && !c.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
808
810
|
}
|
|
809
811
|
}
|
|
810
|
-
function
|
|
812
|
+
function $t(t) {
|
|
811
813
|
{
|
|
812
|
-
for (var c = Object.keys(t.props),
|
|
813
|
-
var
|
|
814
|
-
if (
|
|
815
|
-
X(t),
|
|
814
|
+
for (var c = Object.keys(t.props), d = 0; d < c.length; d++) {
|
|
815
|
+
var m = c[d];
|
|
816
|
+
if (m !== "children" && m !== "key") {
|
|
817
|
+
X(t), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), X(null);
|
|
816
818
|
break;
|
|
817
819
|
}
|
|
818
820
|
}
|
|
819
|
-
t.ref !== null && (X(t),
|
|
821
|
+
t.ref !== null && (X(t), P("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
|
|
820
822
|
}
|
|
821
823
|
}
|
|
822
|
-
var
|
|
823
|
-
function
|
|
824
|
+
var ut = {};
|
|
825
|
+
function ct(t, c, d, m, S, j) {
|
|
824
826
|
{
|
|
825
|
-
var
|
|
826
|
-
if (!
|
|
827
|
-
var
|
|
828
|
-
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (
|
|
829
|
-
var
|
|
830
|
-
|
|
827
|
+
var E = _t(t);
|
|
828
|
+
if (!E) {
|
|
829
|
+
var x = "";
|
|
830
|
+
(t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (x += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
831
|
+
var k = Ot();
|
|
832
|
+
k ? x += k : x += it();
|
|
831
833
|
var D;
|
|
832
|
-
t === null ? D = "null" : fe(t) ? D = "array" : t !== void 0 && t.$$typeof === o ? (D = "<" + (V(t.type) || "Unknown") + " />",
|
|
834
|
+
t === null ? D = "null" : fe(t) ? D = "array" : t !== void 0 && t.$$typeof === o ? (D = "<" + (V(t.type) || "Unknown") + " />", x = " Did you accidentally export a JSX literal instead of a component?") : D = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", D, x);
|
|
833
835
|
}
|
|
834
|
-
var
|
|
835
|
-
if (
|
|
836
|
-
return
|
|
837
|
-
if (
|
|
836
|
+
var A = ot(t, c, d, S, j);
|
|
837
|
+
if (A == null)
|
|
838
|
+
return A;
|
|
839
|
+
if (E) {
|
|
838
840
|
var U = c.children;
|
|
839
841
|
if (U !== void 0)
|
|
840
|
-
if (
|
|
842
|
+
if (m)
|
|
841
843
|
if (fe(U)) {
|
|
842
844
|
for (var K = 0; K < U.length; K++)
|
|
843
845
|
q(U[K], t);
|
|
844
846
|
Object.freeze && Object.freeze(U);
|
|
845
847
|
} else
|
|
846
|
-
|
|
848
|
+
P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
847
849
|
else
|
|
848
850
|
q(U, t);
|
|
849
851
|
}
|
|
850
|
-
if (
|
|
851
|
-
var Z = V(t),
|
|
852
|
-
return
|
|
853
|
-
}),
|
|
854
|
-
if (!
|
|
855
|
-
var
|
|
856
|
-
|
|
852
|
+
if (me.call(c, "key")) {
|
|
853
|
+
var Z = V(t), z = Object.keys(c).filter(function(Ht) {
|
|
854
|
+
return Ht !== "key";
|
|
855
|
+
}), pe = z.length > 0 ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
856
|
+
if (!ut[Z + pe]) {
|
|
857
|
+
var lt = z.length > 0 ? "{" + z.join(": ..., ") + ": ...}" : "{}";
|
|
858
|
+
P(`A props object containing a "key" prop is being spread into JSX:
|
|
857
859
|
let props = %s;
|
|
858
860
|
<%s {...props} />
|
|
859
861
|
React keys must be passed directly to JSX without using spread:
|
|
860
862
|
let props = %s;
|
|
861
|
-
<%s key={someKey} {...props} />`,
|
|
863
|
+
<%s key={someKey} {...props} />`, pe, Z, lt, Z), ut[Z + pe] = !0;
|
|
862
864
|
}
|
|
863
865
|
}
|
|
864
|
-
return t ===
|
|
866
|
+
return t === s ? $t(A) : Pt(A), A;
|
|
865
867
|
}
|
|
866
868
|
}
|
|
867
|
-
function
|
|
868
|
-
return
|
|
869
|
+
function Lt(t, c, d) {
|
|
870
|
+
return ct(t, c, d, !0);
|
|
869
871
|
}
|
|
870
|
-
function
|
|
871
|
-
return
|
|
872
|
+
function de(t, c, d) {
|
|
873
|
+
return ct(t, c, d, !1);
|
|
872
874
|
}
|
|
873
|
-
var
|
|
874
|
-
ze.Fragment =
|
|
875
|
+
var At = de, It = Lt;
|
|
876
|
+
ze.Fragment = s, ze.jsx = At, ze.jsxs = It;
|
|
875
877
|
}()), ze;
|
|
876
878
|
}
|
|
877
|
-
process.env.NODE_ENV === "production" ?
|
|
878
|
-
var Y =
|
|
879
|
-
const wr =
|
|
880
|
-
${({ columns:
|
|
881
|
-
const
|
|
882
|
-
return
|
|
883
|
-
flex-basis: ${
|
|
879
|
+
process.env.NODE_ENV === "production" ? Gt.exports = Sn() : Gt.exports = Rn();
|
|
880
|
+
var Y = Gt.exports;
|
|
881
|
+
const wr = ge(qt)`
|
|
882
|
+
${({ columns: r, takeColumns: o = 1, spacing: i = 0, applyMaxWidth: s, theme: f }) => {
|
|
883
|
+
const u = 100 / r, l = mt(i, null)({ theme: f }), h = o * u, p = (r - o) * (l / r), b = `calc(${h}% - ${p}px)`;
|
|
884
|
+
return ve`
|
|
885
|
+
flex-basis: ${b};
|
|
884
886
|
|
|
885
|
-
${
|
|
886
|
-
${
|
|
887
|
-
max-width: ${
|
|
887
|
+
${s && ve`
|
|
888
|
+
${Tr(s).up} {
|
|
889
|
+
max-width: ${b};
|
|
888
890
|
}
|
|
889
891
|
`}
|
|
890
892
|
`;
|
|
891
893
|
}}
|
|
892
|
-
`, Sr =
|
|
893
|
-
${({ columnHeight:
|
|
894
|
+
`, Sr = ge(bt)`
|
|
895
|
+
${({ columnHeight: r, minColumnHeight: o, spacing: i = 0 }) => ve`
|
|
894
896
|
display: flex;
|
|
895
|
-
gap: ${
|
|
897
|
+
gap: ${mt(i)};
|
|
896
898
|
|
|
897
899
|
> ${wr} {
|
|
898
|
-
height: ${
|
|
900
|
+
height: ${r};
|
|
899
901
|
min-height: ${o};
|
|
900
902
|
}
|
|
901
903
|
`}
|
|
@@ -903,353 +905,393 @@ const wr = ve(qt)`
|
|
|
903
905
|
Sr.defaultProps = {
|
|
904
906
|
$flexWrap: "wrap"
|
|
905
907
|
};
|
|
906
|
-
const
|
|
907
|
-
({ children:
|
|
908
|
-
const
|
|
908
|
+
const Rr = yr(void 0), uo = mr(
|
|
909
|
+
({ children: r, columns: o, spacing: i, isColumnGrowing: s = !0, applyColumnMaxWidth: f = !1, ...u }, l) => {
|
|
910
|
+
const h = gt(
|
|
909
911
|
() => ({
|
|
910
912
|
columns: o,
|
|
911
|
-
spacing:
|
|
912
|
-
isColumnGrowing:
|
|
913
|
-
applyColumnMaxWidth:
|
|
913
|
+
spacing: i,
|
|
914
|
+
isColumnGrowing: s,
|
|
915
|
+
applyColumnMaxWidth: f
|
|
914
916
|
}),
|
|
915
|
-
[o,
|
|
917
|
+
[o, i, s, f]
|
|
916
918
|
);
|
|
917
|
-
return /* @__PURE__ */ Y.jsx(
|
|
919
|
+
return /* @__PURE__ */ Y.jsx(Rr.Provider, { value: h, children: /* @__PURE__ */ Y.jsx(Sr, { ref: l, spacing: i, "data-testid": "honey-grid", ...u, children: r }) });
|
|
918
920
|
}
|
|
919
|
-
),
|
|
920
|
-
const
|
|
921
|
-
if (!
|
|
921
|
+
), Cn = () => {
|
|
922
|
+
const r = Xt(Rr);
|
|
923
|
+
if (!r)
|
|
922
924
|
throw new Error(
|
|
923
925
|
"The `useCurrentHoneyGrid()` hook can only be used inside <HoneyGrid/> component!"
|
|
924
926
|
);
|
|
925
|
-
return
|
|
926
|
-
},
|
|
927
|
-
children:
|
|
927
|
+
return r;
|
|
928
|
+
}, co = ({
|
|
929
|
+
children: r,
|
|
928
930
|
...o
|
|
929
931
|
}) => {
|
|
930
|
-
const { columns:
|
|
932
|
+
const { columns: i, spacing: s, isColumnGrowing: f, applyColumnMaxWidth: u } = Cn();
|
|
931
933
|
return /* @__PURE__ */ Y.jsx(
|
|
932
934
|
wr,
|
|
933
935
|
{
|
|
934
|
-
columns:
|
|
935
|
-
spacing:
|
|
936
|
-
applyMaxWidth:
|
|
937
|
-
$flexGrow:
|
|
936
|
+
columns: i,
|
|
937
|
+
spacing: s,
|
|
938
|
+
applyMaxWidth: u,
|
|
939
|
+
$flexGrow: f ? 1 : 0,
|
|
938
940
|
"data-testid": "honey-grid-column",
|
|
939
941
|
...o,
|
|
940
|
-
children:
|
|
942
|
+
children: r
|
|
941
943
|
}
|
|
942
944
|
);
|
|
943
|
-
},
|
|
944
|
-
children:
|
|
945
|
+
}, Cr = (r, o, i) => typeof o == "function" ? o(r) : typeof r == "string" || typeof r == "number" ? r : o ? r[o] : i, On = ({
|
|
946
|
+
children: r,
|
|
945
947
|
isLoading: o = !1,
|
|
946
|
-
isError:
|
|
947
|
-
isNoContent:
|
|
948
|
-
loadingContent:
|
|
949
|
-
errorContent:
|
|
950
|
-
noContent:
|
|
951
|
-
}) =>
|
|
948
|
+
isError: i = !1,
|
|
949
|
+
isNoContent: s = !1,
|
|
950
|
+
loadingContent: f = null,
|
|
951
|
+
errorContent: u = null,
|
|
952
|
+
noContent: l = null
|
|
953
|
+
}) => i ? u : o ? f : s ? l : r, jn = ge(qt)`
|
|
952
954
|
overflow: hidden auto;
|
|
953
|
-
`,
|
|
954
|
-
children:
|
|
955
|
+
`, Pn = ({
|
|
956
|
+
children: r,
|
|
955
957
|
items: o,
|
|
956
|
-
itemKey:
|
|
957
|
-
isLoading:
|
|
958
|
-
loadingContent:
|
|
959
|
-
isError:
|
|
960
|
-
errorContent:
|
|
961
|
-
noContent:
|
|
962
|
-
...
|
|
963
|
-
},
|
|
964
|
-
|
|
958
|
+
itemKey: i,
|
|
959
|
+
isLoading: s,
|
|
960
|
+
loadingContent: f,
|
|
961
|
+
isError: u,
|
|
962
|
+
errorContent: l,
|
|
963
|
+
noContent: h,
|
|
964
|
+
...p
|
|
965
|
+
}, b) => /* @__PURE__ */ Y.jsx(
|
|
966
|
+
jn,
|
|
965
967
|
{
|
|
966
|
-
ref:
|
|
968
|
+
ref: b,
|
|
967
969
|
role: "list",
|
|
968
|
-
"aria-busy":
|
|
970
|
+
"aria-busy": s,
|
|
969
971
|
"data-testid": "honey-list",
|
|
970
|
-
...
|
|
972
|
+
...p,
|
|
971
973
|
children: /* @__PURE__ */ Y.jsx(
|
|
972
|
-
|
|
974
|
+
On,
|
|
973
975
|
{
|
|
974
|
-
isLoading:
|
|
975
|
-
loadingContent:
|
|
976
|
-
isError:
|
|
977
|
-
errorContent:
|
|
976
|
+
isLoading: s,
|
|
977
|
+
loadingContent: f,
|
|
978
|
+
isError: u,
|
|
979
|
+
errorContent: l,
|
|
978
980
|
isNoContent: (o == null ? void 0 : o.length) === 0,
|
|
979
|
-
noContent:
|
|
980
|
-
children: o == null ? void 0 : o.map((
|
|
981
|
+
noContent: h,
|
|
982
|
+
children: o == null ? void 0 : o.map((y, g, T) => /* @__PURE__ */ Y.jsx(cn, { children: r(y, g, T) }, String(Cr(y, i, g))))
|
|
981
983
|
}
|
|
982
984
|
)
|
|
983
985
|
}
|
|
984
|
-
),
|
|
985
|
-
var
|
|
986
|
-
return
|
|
986
|
+
), lo = mr(Pn);
|
|
987
|
+
var $n = "Expected a function", dr = NaN, Ln = "[object Symbol]", An = /^\s+|\s+$/g, In = /^[-+]0x[0-9a-f]+$/i, Hn = /^0b[01]+$/i, Dn = /^0o[0-7]+$/i, Mn = parseInt, Fn = typeof he == "object" && he && he.Object === Object && he, Wn = typeof self == "object" && self && self.Object === Object && self, kn = Fn || Wn || Function("return this")(), Nn = Object.prototype, zn = Nn.toString, Yn = Math.max, Un = Math.min, Bt = function() {
|
|
988
|
+
return kn.Date.now();
|
|
987
989
|
};
|
|
988
|
-
function
|
|
989
|
-
var
|
|
990
|
-
if (typeof
|
|
991
|
-
throw new TypeError(
|
|
992
|
-
o = pr(o) || 0,
|
|
993
|
-
function
|
|
994
|
-
var
|
|
995
|
-
return
|
|
996
|
-
}
|
|
997
|
-
function M(
|
|
998
|
-
return
|
|
999
|
-
}
|
|
1000
|
-
function W(
|
|
1001
|
-
var
|
|
1002
|
-
return
|
|
1003
|
-
}
|
|
1004
|
-
function
|
|
1005
|
-
var
|
|
1006
|
-
return
|
|
990
|
+
function Bn(r, o, i) {
|
|
991
|
+
var s, f, u, l, h, p, b = 0, y = !1, g = !1, T = !0;
|
|
992
|
+
if (typeof r != "function")
|
|
993
|
+
throw new TypeError($n);
|
|
994
|
+
o = pr(o) || 0, Vt(i) && (y = !!i.leading, g = "maxWait" in i, u = g ? Yn(pr(i.maxWait) || 0, o) : u, T = "trailing" in i ? !!i.trailing : T);
|
|
995
|
+
function O(_) {
|
|
996
|
+
var C = s, B = f;
|
|
997
|
+
return s = f = void 0, b = _, l = r.apply(B, C), l;
|
|
998
|
+
}
|
|
999
|
+
function M(_) {
|
|
1000
|
+
return b = _, h = setTimeout(F, o), y ? O(_) : l;
|
|
1001
|
+
}
|
|
1002
|
+
function W(_) {
|
|
1003
|
+
var C = _ - p, B = _ - b, ce = o - C;
|
|
1004
|
+
return g ? Un(ce, u - B) : ce;
|
|
1005
|
+
}
|
|
1006
|
+
function N(_) {
|
|
1007
|
+
var C = _ - p, B = _ - b;
|
|
1008
|
+
return p === void 0 || C >= o || C < 0 || g && B >= u;
|
|
1007
1009
|
}
|
|
1008
1010
|
function F() {
|
|
1009
|
-
var
|
|
1010
|
-
if (
|
|
1011
|
-
return
|
|
1012
|
-
|
|
1013
|
-
}
|
|
1014
|
-
function j(b) {
|
|
1015
|
-
return p = void 0, w && u ? $(b) : (u = d = void 0, f);
|
|
1011
|
+
var _ = Bt();
|
|
1012
|
+
if (N(_))
|
|
1013
|
+
return P(_);
|
|
1014
|
+
h = setTimeout(F, W(_));
|
|
1016
1015
|
}
|
|
1017
|
-
function
|
|
1018
|
-
|
|
1016
|
+
function P(_) {
|
|
1017
|
+
return h = void 0, T && s ? O(_) : (s = f = void 0, l);
|
|
1019
1018
|
}
|
|
1020
1019
|
function se() {
|
|
1021
|
-
|
|
1020
|
+
h !== void 0 && clearTimeout(h), b = 0, s = p = f = h = void 0;
|
|
1021
|
+
}
|
|
1022
|
+
function ue() {
|
|
1023
|
+
return h === void 0 ? l : P(Bt());
|
|
1022
1024
|
}
|
|
1023
1025
|
function ee() {
|
|
1024
|
-
var
|
|
1025
|
-
if (
|
|
1026
|
-
if (
|
|
1027
|
-
return M(
|
|
1028
|
-
if (
|
|
1029
|
-
return
|
|
1026
|
+
var _ = Bt(), C = N(_);
|
|
1027
|
+
if (s = arguments, f = this, p = _, C) {
|
|
1028
|
+
if (h === void 0)
|
|
1029
|
+
return M(p);
|
|
1030
|
+
if (g)
|
|
1031
|
+
return h = setTimeout(F, o), O(p);
|
|
1030
1032
|
}
|
|
1031
|
-
return
|
|
1033
|
+
return h === void 0 && (h = setTimeout(F, o)), l;
|
|
1032
1034
|
}
|
|
1033
|
-
return ee.cancel =
|
|
1035
|
+
return ee.cancel = se, ee.flush = ue, ee;
|
|
1034
1036
|
}
|
|
1035
|
-
function
|
|
1036
|
-
var o = typeof
|
|
1037
|
-
return !!
|
|
1037
|
+
function Vt(r) {
|
|
1038
|
+
var o = typeof r;
|
|
1039
|
+
return !!r && (o == "object" || o == "function");
|
|
1038
1040
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return !!
|
|
1041
|
+
function Gn(r) {
|
|
1042
|
+
return !!r && typeof r == "object";
|
|
1041
1043
|
}
|
|
1042
|
-
function
|
|
1043
|
-
return typeof
|
|
1044
|
+
function Vn(r) {
|
|
1045
|
+
return typeof r == "symbol" || Gn(r) && zn.call(r) == Ln;
|
|
1044
1046
|
}
|
|
1045
|
-
function pr(
|
|
1046
|
-
if (typeof
|
|
1047
|
-
return
|
|
1048
|
-
if (
|
|
1047
|
+
function pr(r) {
|
|
1048
|
+
if (typeof r == "number")
|
|
1049
|
+
return r;
|
|
1050
|
+
if (Vn(r))
|
|
1049
1051
|
return dr;
|
|
1050
|
-
if (
|
|
1051
|
-
var o = typeof
|
|
1052
|
-
|
|
1053
|
-
}
|
|
1054
|
-
if (typeof
|
|
1055
|
-
return
|
|
1056
|
-
|
|
1057
|
-
var
|
|
1058
|
-
return
|
|
1052
|
+
if (Vt(r)) {
|
|
1053
|
+
var o = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
1054
|
+
r = Vt(o) ? o + "" : o;
|
|
1055
|
+
}
|
|
1056
|
+
if (typeof r != "string")
|
|
1057
|
+
return r === 0 ? r : +r;
|
|
1058
|
+
r = r.replace(An, "");
|
|
1059
|
+
var i = Hn.test(r);
|
|
1060
|
+
return i || Dn.test(r) ? Mn(r.slice(2), i ? 2 : 8) : In.test(r) ? dr : +r;
|
|
1059
1061
|
}
|
|
1060
|
-
var
|
|
1061
|
-
const
|
|
1062
|
-
delay:
|
|
1062
|
+
var Xn = Bn;
|
|
1063
|
+
const qn = /* @__PURE__ */ Er(Xn), Jn = ({
|
|
1064
|
+
delay: r = 0,
|
|
1063
1065
|
overrideScreenState: o
|
|
1064
1066
|
} = {}) => {
|
|
1065
|
-
const
|
|
1066
|
-
...cr(
|
|
1067
|
+
const i = hr(), [s, f] = yt(() => ({
|
|
1068
|
+
...cr(i.breakpoints),
|
|
1067
1069
|
...o
|
|
1068
1070
|
}));
|
|
1069
|
-
return
|
|
1070
|
-
const
|
|
1071
|
-
|
|
1072
|
-
},
|
|
1073
|
-
return
|
|
1074
|
-
|
|
1071
|
+
return ne(() => {
|
|
1072
|
+
const u = qn(() => {
|
|
1073
|
+
f({ ...cr(i.breakpoints), ...o });
|
|
1074
|
+
}, r);
|
|
1075
|
+
return u(), window.addEventListener("resize", u), window.screen.orientation.addEventListener("change", u), () => {
|
|
1076
|
+
u.cancel(), window.removeEventListener("resize", u), window.screen.orientation.removeEventListener("change", u);
|
|
1075
1077
|
};
|
|
1076
|
-
}, []),
|
|
1077
|
-
}, Or = (
|
|
1078
|
-
|
|
1079
|
-
const
|
|
1080
|
-
if (!
|
|
1078
|
+
}, []), s;
|
|
1079
|
+
}, Or = (r, { onMoveDrag: o, onStartDrag: i, onEndDrag: s }, { isEnabled: f = !0 } = {}) => {
|
|
1080
|
+
ne(() => {
|
|
1081
|
+
const u = r.current;
|
|
1082
|
+
if (!f || !u)
|
|
1081
1083
|
return;
|
|
1082
|
-
const
|
|
1083
|
-
let
|
|
1084
|
-
const
|
|
1085
|
-
|
|
1084
|
+
const l = o(u);
|
|
1085
|
+
let h = !1, p = 0, b = 0, y = 0, g = 0, T = 0;
|
|
1086
|
+
const O = (_, C) => {
|
|
1087
|
+
i && i(u) === !1 || (h = !0, p = _, b = C, y = _, g = C, T = Date.now());
|
|
1086
1088
|
}, M = () => {
|
|
1087
|
-
if (
|
|
1088
|
-
const
|
|
1089
|
-
|
|
1090
|
-
deltaX:
|
|
1089
|
+
if (h && (h = !1, s)) {
|
|
1090
|
+
const _ = Date.now() - T, C = y - p, B = g - b;
|
|
1091
|
+
s({
|
|
1092
|
+
deltaX: C,
|
|
1091
1093
|
deltaY: B,
|
|
1092
1094
|
get movingSpeedX() {
|
|
1093
|
-
return ar(
|
|
1095
|
+
return ar(C, _);
|
|
1094
1096
|
},
|
|
1095
1097
|
get movingSpeedY() {
|
|
1096
|
-
return ar(B,
|
|
1098
|
+
return ar(B, _);
|
|
1097
1099
|
}
|
|
1098
|
-
},
|
|
1100
|
+
}, u);
|
|
1099
1101
|
}
|
|
1100
1102
|
}, W = () => {
|
|
1101
|
-
M(), window.removeEventListener("mousemove",
|
|
1102
|
-
},
|
|
1103
|
-
if (!
|
|
1103
|
+
M(), window.removeEventListener("mousemove", ue), window.removeEventListener("mouseup", W);
|
|
1104
|
+
}, N = (_, C) => {
|
|
1105
|
+
if (!h)
|
|
1104
1106
|
return;
|
|
1105
|
-
if (
|
|
1107
|
+
if (l({
|
|
1106
1108
|
get deltaX() {
|
|
1107
|
-
return
|
|
1109
|
+
return _ - y;
|
|
1108
1110
|
},
|
|
1109
1111
|
get deltaY() {
|
|
1110
|
-
return
|
|
1112
|
+
return C - g;
|
|
1111
1113
|
},
|
|
1112
1114
|
get distanceX() {
|
|
1113
|
-
return
|
|
1115
|
+
return _ - p;
|
|
1114
1116
|
},
|
|
1115
1117
|
get distanceY() {
|
|
1116
|
-
return
|
|
1118
|
+
return C - b;
|
|
1117
1119
|
},
|
|
1118
1120
|
get euclideanDistance() {
|
|
1119
|
-
return fn(
|
|
1121
|
+
return fn(p, b, _, C);
|
|
1120
1122
|
}
|
|
1121
1123
|
}) === !1) {
|
|
1122
|
-
|
|
1124
|
+
y = _, g = C, W();
|
|
1123
1125
|
return;
|
|
1124
1126
|
}
|
|
1125
|
-
|
|
1126
|
-
}, F = (
|
|
1127
|
-
const
|
|
1128
|
-
|
|
1129
|
-
},
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1132
|
-
},
|
|
1133
|
-
|
|
1134
|
-
},
|
|
1135
|
-
|
|
1136
|
-
}, ee = (
|
|
1137
|
-
|
|
1127
|
+
y = _, g = C;
|
|
1128
|
+
}, F = (_) => {
|
|
1129
|
+
const C = _.touches[0];
|
|
1130
|
+
O(C.clientX, C.clientY);
|
|
1131
|
+
}, P = (_) => {
|
|
1132
|
+
const C = _.touches[0];
|
|
1133
|
+
N(C.clientX, C.clientY);
|
|
1134
|
+
}, se = () => {
|
|
1135
|
+
h = !1;
|
|
1136
|
+
}, ue = (_) => {
|
|
1137
|
+
N(_.clientX, _.clientY);
|
|
1138
|
+
}, ee = (_) => {
|
|
1139
|
+
O(_.clientX, _.clientY), window.addEventListener("mousemove", ue), window.addEventListener("mouseup", W);
|
|
1138
1140
|
};
|
|
1139
|
-
return
|
|
1141
|
+
return u.addEventListener("touchstart", F, {
|
|
1140
1142
|
passive: !0
|
|
1141
|
-
}),
|
|
1143
|
+
}), u.addEventListener("touchmove", P, {
|
|
1142
1144
|
passive: !0
|
|
1143
|
-
}),
|
|
1144
|
-
|
|
1145
|
+
}), u.addEventListener("touchend", M), u.addEventListener("touchcancel", se), u.addEventListener("mousedown", ee), () => {
|
|
1146
|
+
u.removeEventListener("touchstart", F), u.removeEventListener("touchmove", P), u.removeEventListener("touchend", M), u.removeEventListener("touchcancel", se), u.removeEventListener("mousedown", ee);
|
|
1145
1147
|
};
|
|
1146
|
-
}, [
|
|
1147
|
-
},
|
|
1148
|
-
const
|
|
1149
|
-
if (
|
|
1150
|
-
if (
|
|
1151
|
-
const
|
|
1152
|
-
|
|
1148
|
+
}, [f, i, o, s]);
|
|
1149
|
+
}, fo = (r, o) => {
|
|
1150
|
+
const i = xe(null), s = xe(null), f = xe(null), u = (p, b) => {
|
|
1151
|
+
if (i.current = p, f.current = b, !!p)
|
|
1152
|
+
if (b) {
|
|
1153
|
+
const y = ([g]) => {
|
|
1154
|
+
g.isIntersecting && o();
|
|
1153
1155
|
};
|
|
1154
|
-
|
|
1155
|
-
root:
|
|
1156
|
+
s.current = new IntersectionObserver(y, {
|
|
1157
|
+
root: p,
|
|
1156
1158
|
rootMargin: "0px",
|
|
1157
1159
|
threshold: 0
|
|
1158
|
-
}),
|
|
1159
|
-
} else
|
|
1160
|
-
},
|
|
1161
|
-
(
|
|
1162
|
-
|
|
1160
|
+
}), s.current.observe(b);
|
|
1161
|
+
} else s.current && (s.current.disconnect(), s.current = null);
|
|
1162
|
+
}, l = Pe(
|
|
1163
|
+
(p) => {
|
|
1164
|
+
u(p, f.current);
|
|
1163
1165
|
},
|
|
1164
1166
|
[]
|
|
1165
|
-
),
|
|
1166
|
-
(
|
|
1167
|
-
|
|
1167
|
+
), h = Pe(
|
|
1168
|
+
(p) => {
|
|
1169
|
+
u(i.current, p);
|
|
1168
1170
|
},
|
|
1169
|
-
[
|
|
1171
|
+
[i, o]
|
|
1170
1172
|
);
|
|
1171
1173
|
return {
|
|
1172
|
-
scrollableContainerRef:
|
|
1173
|
-
targetRef:
|
|
1174
|
+
scrollableContainerRef: l,
|
|
1175
|
+
targetRef: h
|
|
1174
1176
|
};
|
|
1175
|
-
},
|
|
1177
|
+
}, po = (r, {
|
|
1176
1178
|
availableWindowPercentage: o = 0,
|
|
1177
|
-
onStartDrag:
|
|
1178
|
-
onEndDrag:
|
|
1179
|
+
onStartDrag: i,
|
|
1180
|
+
onEndDrag: s
|
|
1179
1181
|
} = {}) => {
|
|
1180
|
-
const
|
|
1181
|
-
(
|
|
1182
|
-
const
|
|
1183
|
-
if (
|
|
1182
|
+
const f = Pe(
|
|
1183
|
+
(u) => ({ deltaX: l, deltaY: h }) => {
|
|
1184
|
+
const p = u.scrollWidth - u.clientWidth, b = u.scrollHeight - u.clientHeight;
|
|
1185
|
+
if (p <= 0 && b <= 0)
|
|
1184
1186
|
return;
|
|
1185
|
-
const
|
|
1186
|
-
|
|
1187
|
+
const y = sr(
|
|
1188
|
+
u.clientWidth,
|
|
1187
1189
|
o
|
|
1188
|
-
),
|
|
1189
|
-
|
|
1190
|
+
), g = sr(
|
|
1191
|
+
u.clientHeight,
|
|
1190
1192
|
o
|
|
1191
|
-
), { translateX:
|
|
1192
|
-
let
|
|
1193
|
-
(
|
|
1193
|
+
), { translateX: T, translateY: O } = br(u), M = T + l, W = O + h;
|
|
1194
|
+
let N = !1, F = T, P = O;
|
|
1195
|
+
(l < 0 && M >= (p + y) * -1 || l > 0 && M <= y) && (F = M, N = !0), (h < 0 && W >= (b + g) * -1 || h > 0 && W <= g) && (P = W, N = !0), N && (u.style.transform = `translate(${F}px, ${P}px)`);
|
|
1194
1196
|
},
|
|
1195
1197
|
[o]
|
|
1196
1198
|
);
|
|
1197
|
-
Or(
|
|
1198
|
-
onStartDrag:
|
|
1199
|
-
onMoveDrag:
|
|
1200
|
-
onEndDrag:
|
|
1201
|
-
}),
|
|
1202
|
-
const
|
|
1203
|
-
var
|
|
1204
|
-
(
|
|
1199
|
+
Or(r, {
|
|
1200
|
+
onStartDrag: i,
|
|
1201
|
+
onMoveDrag: f,
|
|
1202
|
+
onEndDrag: s
|
|
1203
|
+
}), ne(() => {
|
|
1204
|
+
const u = () => {
|
|
1205
|
+
var l;
|
|
1206
|
+
(l = r.current) == null || l.style.removeProperty("transform");
|
|
1205
1207
|
};
|
|
1206
|
-
return window.addEventListener("resize",
|
|
1207
|
-
window.removeEventListener("resize",
|
|
1208
|
+
return window.addEventListener("resize", u), () => {
|
|
1209
|
+
window.removeEventListener("resize", u);
|
|
1208
1210
|
};
|
|
1209
1211
|
}, []);
|
|
1210
|
-
},
|
|
1212
|
+
}, ho = (r, o, { isEnabled: i = !0 } = {}) => {
|
|
1213
|
+
ne(() => {
|
|
1214
|
+
if (!i)
|
|
1215
|
+
return;
|
|
1216
|
+
const s = (f) => {
|
|
1217
|
+
const u = f.code;
|
|
1218
|
+
o.includes(u) && (f.preventDefault(), r(u, f));
|
|
1219
|
+
};
|
|
1220
|
+
return document.addEventListener("keyup", s), () => {
|
|
1221
|
+
document.removeEventListener("keyup", s);
|
|
1222
|
+
};
|
|
1223
|
+
}, [r, i]);
|
|
1224
|
+
}, jr = yr(void 0), Pr = () => {
|
|
1225
|
+
const r = Xt(jr);
|
|
1226
|
+
if (!r)
|
|
1227
|
+
throw new Error(
|
|
1228
|
+
"The `useHoneyLayout()` hook must be used inside <HoneyLayoutProvider/> component!"
|
|
1229
|
+
);
|
|
1230
|
+
return r;
|
|
1231
|
+
}, vo = (r, o) => {
|
|
1232
|
+
const { registerOverlay: i, unregisterOverlay: s } = Pr(), f = xe(null);
|
|
1233
|
+
return ne(() => {
|
|
1234
|
+
if (!r)
|
|
1235
|
+
return;
|
|
1236
|
+
const u = i(o);
|
|
1237
|
+
return f.current = u, () => {
|
|
1238
|
+
f.current = null, s(u.id);
|
|
1239
|
+
};
|
|
1240
|
+
}, [r, o.onKeyUp]), f.current;
|
|
1241
|
+
}, go = (r, { onKeyUp: o } = {}) => {
|
|
1242
|
+
const { overlays: i } = Pr(), s = gt(
|
|
1243
|
+
() => i.find((f) => f.id === r),
|
|
1244
|
+
[i, r]
|
|
1245
|
+
);
|
|
1246
|
+
return ne(() => {
|
|
1247
|
+
if (!(!s || !o))
|
|
1248
|
+
return s.addListener("keyup", o), () => {
|
|
1249
|
+
s.removeListener("keyup", o);
|
|
1250
|
+
};
|
|
1251
|
+
}, [s, o]), s;
|
|
1252
|
+
}, $r = ge(bt)`
|
|
1211
1253
|
overflow: hidden;
|
|
1212
|
-
`,
|
|
1213
|
-
children:
|
|
1254
|
+
`, Kn = ge.div``, Zn = ({
|
|
1255
|
+
children: r,
|
|
1214
1256
|
items: o,
|
|
1215
|
-
itemKey:
|
|
1216
|
-
activeItemIndex:
|
|
1217
|
-
direction:
|
|
1218
|
-
...
|
|
1257
|
+
itemKey: i,
|
|
1258
|
+
activeItemIndex: s,
|
|
1259
|
+
direction: f = "vertical",
|
|
1260
|
+
...u
|
|
1219
1261
|
}) => {
|
|
1220
|
-
const [
|
|
1221
|
-
|
|
1222
|
-
const
|
|
1223
|
-
const { translateX: M, translateY: W } = br(
|
|
1224
|
-
|
|
1262
|
+
const [l, h] = yt(o), p = xe(null);
|
|
1263
|
+
xe(-1), l == null || l.length;
|
|
1264
|
+
const b = Pe((y) => (y.parentElement.clientHeight / 2, ({ deltaX: T, deltaY: O }) => {
|
|
1265
|
+
const { translateX: M, translateY: W } = br(y), N = f === "horizontal" ? M + T : 0, F = f === "vertical" ? W + O : 0;
|
|
1266
|
+
y.style.transform = `translate(${N}px, ${F}px)`;
|
|
1225
1267
|
}), []);
|
|
1226
|
-
return Or(
|
|
1227
|
-
onMoveDrag:
|
|
1228
|
-
}),
|
|
1229
|
-
}, []),
|
|
1230
|
-
const
|
|
1231
|
-
if (!
|
|
1268
|
+
return Or(p, {
|
|
1269
|
+
onMoveDrag: b
|
|
1270
|
+
}), ne(() => {
|
|
1271
|
+
}, []), ne(() => {
|
|
1272
|
+
const y = p.current;
|
|
1273
|
+
if (!y)
|
|
1232
1274
|
return;
|
|
1233
|
-
const
|
|
1234
|
-
|
|
1235
|
-
}, []), /* @__PURE__ */ Y.jsx(
|
|
1236
|
-
const
|
|
1275
|
+
const g = y.children[s];
|
|
1276
|
+
y.parentElement.clientHeight / 2, g.offsetTop + g.clientHeight / 2;
|
|
1277
|
+
}, []), /* @__PURE__ */ Y.jsx(bt, { $overflow: "hidden", "data-testid": "honey-looping-list-container", ...u, children: /* @__PURE__ */ Y.jsx($r, { ref: p, "data-testid": "honey-looping-list", children: l == null ? void 0 : l.map((y, g, T) => {
|
|
1278
|
+
const O = Cr(y, i, g);
|
|
1237
1279
|
return /* @__PURE__ */ Y.jsx(
|
|
1238
|
-
|
|
1280
|
+
Kn,
|
|
1239
1281
|
{
|
|
1240
|
-
"aria-current":
|
|
1241
|
-
children:
|
|
1282
|
+
"aria-current": g === s,
|
|
1283
|
+
children: r(y, g, T)
|
|
1242
1284
|
},
|
|
1243
|
-
String(
|
|
1285
|
+
String(O)
|
|
1244
1286
|
);
|
|
1245
1287
|
}) }) });
|
|
1246
|
-
},
|
|
1288
|
+
}, Qn = ge.div`
|
|
1247
1289
|
padding: 8px;
|
|
1248
1290
|
|
|
1249
1291
|
border-radius: 4px;
|
|
1250
1292
|
border: 1px solid ${ht("neutral.charcoalDark")};
|
|
1251
1293
|
|
|
1252
|
-
${
|
|
1294
|
+
${$r} {
|
|
1253
1295
|
padding: 0;
|
|
1254
1296
|
list-style-type: none;
|
|
1255
1297
|
|
|
@@ -1269,205 +1311,243 @@ const Vn = /* @__PURE__ */ Er(Gn), Xn = ({
|
|
|
1269
1311
|
}
|
|
1270
1312
|
}
|
|
1271
1313
|
}
|
|
1272
|
-
`,
|
|
1273
|
-
const
|
|
1274
|
-
return /* @__PURE__ */ Y.jsx(
|
|
1275
|
-
|
|
1314
|
+
`, yo = () => {
|
|
1315
|
+
const r = Array.from(Array(12)).map((o, i) => i + 1);
|
|
1316
|
+
return /* @__PURE__ */ Y.jsx(Qn, { children: /* @__PURE__ */ Y.jsx(
|
|
1317
|
+
Zn,
|
|
1276
1318
|
{
|
|
1277
|
-
items:
|
|
1319
|
+
items: r,
|
|
1278
1320
|
itemKey: (o) => o.toString(),
|
|
1279
|
-
activeItemIndex: Math.floor(
|
|
1321
|
+
activeItemIndex: Math.floor(r.length / 2),
|
|
1280
1322
|
$maxHeight: "250px",
|
|
1281
1323
|
children: (o) => o
|
|
1282
1324
|
}
|
|
1283
1325
|
) });
|
|
1284
|
-
},
|
|
1285
|
-
children:
|
|
1326
|
+
}, mo = ({
|
|
1327
|
+
children: r,
|
|
1286
1328
|
isMount: o,
|
|
1287
|
-
unmountDelay:
|
|
1288
|
-
isAlwaysMounted:
|
|
1289
|
-
isKeepAfterMount:
|
|
1329
|
+
unmountDelay: i,
|
|
1330
|
+
isAlwaysMounted: s = !1,
|
|
1331
|
+
isKeepAfterMount: f = !1
|
|
1290
1332
|
}) => {
|
|
1291
|
-
const [
|
|
1292
|
-
return
|
|
1293
|
-
if (!(!o ||
|
|
1294
|
-
return clearTimeout(
|
|
1295
|
-
|
|
1333
|
+
const [u, l] = yt(s || o), h = xe(void 0);
|
|
1334
|
+
return ne(() => {
|
|
1335
|
+
if (!(!o || s))
|
|
1336
|
+
return clearTimeout(h.current), l(!0), () => {
|
|
1337
|
+
f || (h.current = setTimeout(() => l(!1), i));
|
|
1296
1338
|
};
|
|
1297
|
-
}, [o]),
|
|
1298
|
-
},
|
|
1299
|
-
|
|
1339
|
+
}, [o]), u ? r : null;
|
|
1340
|
+
}, eo = () => {
|
|
1341
|
+
const [r, o] = yt([]);
|
|
1342
|
+
ne(() => {
|
|
1343
|
+
if (!r.length)
|
|
1344
|
+
return;
|
|
1345
|
+
const f = (u) => {
|
|
1346
|
+
r[r.length - 1].notifyListeners("keyup", u.code, u);
|
|
1347
|
+
};
|
|
1348
|
+
return document.addEventListener("keyup", f), () => {
|
|
1349
|
+
document.removeEventListener("keyup", f);
|
|
1350
|
+
};
|
|
1351
|
+
}, [r]);
|
|
1352
|
+
const i = Pe((f) => {
|
|
1353
|
+
const u = f.id ?? gn(), l = [["keyup", f.onKeyUp]], h = {
|
|
1354
|
+
id: u,
|
|
1355
|
+
addListener: (p, b) => {
|
|
1356
|
+
l.push([p, b]);
|
|
1357
|
+
},
|
|
1358
|
+
removeListener: (p, b) => {
|
|
1359
|
+
const y = l.findIndex(
|
|
1360
|
+
([g, T]) => g === p && T === b
|
|
1361
|
+
);
|
|
1362
|
+
y !== -1 && l.splice(y, 1);
|
|
1363
|
+
},
|
|
1364
|
+
notifyListeners: (p, b, y) => {
|
|
1365
|
+
var g;
|
|
1366
|
+
(!((g = f.listenKeys) != null && g.length) || f.listenKeys.includes(b)) && (y.preventDefault(), l.forEach(([T, O]) => {
|
|
1367
|
+
T === p && O(b, y);
|
|
1368
|
+
}));
|
|
1369
|
+
}
|
|
1370
|
+
};
|
|
1371
|
+
return o((p) => [...p, h]), h;
|
|
1372
|
+
}, []), s = Pe((f) => {
|
|
1373
|
+
o(
|
|
1374
|
+
(u) => u.filter((l) => l.id !== f)
|
|
1375
|
+
);
|
|
1376
|
+
}, []);
|
|
1377
|
+
return {
|
|
1378
|
+
overlays: r,
|
|
1379
|
+
registerOverlay: i,
|
|
1380
|
+
unregisterOverlay: s
|
|
1381
|
+
};
|
|
1382
|
+
}, to = ({
|
|
1383
|
+
children: r,
|
|
1300
1384
|
mediaQueryOptions: o
|
|
1301
1385
|
}) => {
|
|
1302
|
-
const
|
|
1386
|
+
const i = hr(), s = Jn(o), { overlays: f, registerOverlay: u, unregisterOverlay: l } = eo(), h = gt(
|
|
1303
1387
|
() => ({
|
|
1304
|
-
theme:
|
|
1305
|
-
screenState:
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1388
|
+
theme: i,
|
|
1389
|
+
screenState: s,
|
|
1390
|
+
overlays: f,
|
|
1391
|
+
registerOverlay: u,
|
|
1392
|
+
unregisterOverlay: l,
|
|
1393
|
+
resolveSpacing: (...p) => mt(...p)({ theme: i }),
|
|
1394
|
+
resolveColor: (...p) => ht(...p)({ theme: i }),
|
|
1395
|
+
resolveFont: (...p) => yn(...p)({ theme: i }),
|
|
1396
|
+
resolveDimension: (...p) => mn(...p)({ theme: i })
|
|
1310
1397
|
}),
|
|
1311
|
-
[
|
|
1398
|
+
[i, s, f, u, l]
|
|
1312
1399
|
);
|
|
1313
|
-
return /* @__PURE__ */ Y.jsx(
|
|
1314
|
-
},
|
|
1315
|
-
theme:
|
|
1400
|
+
return /* @__PURE__ */ Y.jsx(jr.Provider, { value: h, children: r });
|
|
1401
|
+
}, bo = ({
|
|
1402
|
+
theme: r,
|
|
1316
1403
|
...o
|
|
1317
|
-
}) => /* @__PURE__ */ Y.jsx(vr, { theme:
|
|
1318
|
-
const n = Vt(Pr);
|
|
1319
|
-
if (!n)
|
|
1320
|
-
throw new Error(
|
|
1321
|
-
"The `useHoneyLayout()` hook must be used inside <HoneyLayoutProvider/> component!"
|
|
1322
|
-
);
|
|
1323
|
-
return n;
|
|
1324
|
-
};
|
|
1404
|
+
}) => /* @__PURE__ */ Y.jsx(vr, { theme: r, children: /* @__PURE__ */ Y.jsx(to, { ...o }) });
|
|
1325
1405
|
var vt = { exports: {} };
|
|
1326
1406
|
vt.exports;
|
|
1327
|
-
(function(
|
|
1328
|
-
var
|
|
1329
|
-
|
|
1330
|
-
var
|
|
1407
|
+
(function(r, o) {
|
|
1408
|
+
var i = 200, s = "__lodash_hash_undefined__", f = 800, u = 16, l = 9007199254740991, h = "[object Arguments]", p = "[object Array]", b = "[object AsyncFunction]", y = "[object Boolean]", g = "[object Date]", T = "[object Error]", O = "[object Function]", M = "[object GeneratorFunction]", W = "[object Map]", N = "[object Number]", F = "[object Null]", P = "[object Object]", se = "[object Proxy]", ue = "[object RegExp]", ee = "[object Set]", _ = "[object String]", C = "[object Undefined]", B = "[object WeakMap]", ce = "[object ArrayBuffer]", _t = "[object DataView]", xt = "[object Float32Array]", Ye = "[object Float64Array]", V = "[object Int8Array]", oe = "[object Int16Array]", ye = "[object Int32Array]", Ue = "[object Uint8Array]", Be = "[object Uint8ClampedArray]", Ge = "[object Uint16Array]", Ve = "[object Uint32Array]", Xe = /[\\^$.*+?()[\]{}|]/g, qe = /^\[object .+?Constructor\]$/, Je = /^(?:0|[1-9]\d*)$/, $ = {};
|
|
1409
|
+
$[xt] = $[Ye] = $[V] = $[oe] = $[ye] = $[Ue] = $[Be] = $[Ge] = $[Ve] = !0, $[h] = $[p] = $[ce] = $[y] = $[_t] = $[g] = $[T] = $[O] = $[W] = $[N] = $[P] = $[ue] = $[ee] = $[_] = $[B] = !1;
|
|
1410
|
+
var Ke = typeof he == "object" && he && he.Object === Object && he, Tt = typeof self == "object" && self && self.Object === Object && self, ie = Ke || Tt || Function("return this")(), Te = o && !o.nodeType && o, te = Te && !0 && r && !r.nodeType && r, Ee = te && te.exports === Te, le = Ee && Ke.process, Ze = function() {
|
|
1331
1411
|
try {
|
|
1332
1412
|
var e = te && te.require && te.require("util").types;
|
|
1333
|
-
return e ||
|
|
1413
|
+
return e || le && le.binding && le.binding("util");
|
|
1334
1414
|
} catch {
|
|
1335
1415
|
}
|
|
1336
|
-
}(),
|
|
1337
|
-
function
|
|
1338
|
-
switch (
|
|
1416
|
+
}(), $e = Ze && Ze.isTypedArray;
|
|
1417
|
+
function Et(e, n, a) {
|
|
1418
|
+
switch (a.length) {
|
|
1339
1419
|
case 0:
|
|
1340
|
-
return e.call(
|
|
1420
|
+
return e.call(n);
|
|
1341
1421
|
case 1:
|
|
1342
|
-
return e.call(
|
|
1422
|
+
return e.call(n, a[0]);
|
|
1343
1423
|
case 2:
|
|
1344
|
-
return e.call(
|
|
1424
|
+
return e.call(n, a[0], a[1]);
|
|
1345
1425
|
case 3:
|
|
1346
|
-
return e.call(
|
|
1426
|
+
return e.call(n, a[0], a[1], a[2]);
|
|
1347
1427
|
}
|
|
1348
|
-
return e.apply(
|
|
1428
|
+
return e.apply(n, a);
|
|
1349
1429
|
}
|
|
1350
|
-
function
|
|
1351
|
-
for (var
|
|
1352
|
-
|
|
1353
|
-
return
|
|
1430
|
+
function wt(e, n) {
|
|
1431
|
+
for (var a = -1, v = Array(e); ++a < e; )
|
|
1432
|
+
v[a] = n(a);
|
|
1433
|
+
return v;
|
|
1354
1434
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return function(
|
|
1357
|
-
return e(
|
|
1435
|
+
function we(e) {
|
|
1436
|
+
return function(n) {
|
|
1437
|
+
return e(n);
|
|
1358
1438
|
};
|
|
1359
1439
|
}
|
|
1360
|
-
function
|
|
1361
|
-
return e == null ? void 0 : e[
|
|
1440
|
+
function me(e, n) {
|
|
1441
|
+
return e == null ? void 0 : e[n];
|
|
1362
1442
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return function(
|
|
1365
|
-
return e(
|
|
1443
|
+
function Qe(e, n) {
|
|
1444
|
+
return function(a) {
|
|
1445
|
+
return e(n(a));
|
|
1366
1446
|
};
|
|
1367
1447
|
}
|
|
1368
|
-
var
|
|
1369
|
-
var e = /[^.]+$/.exec(
|
|
1448
|
+
var et = Array.prototype, Se = Function.prototype, Re = Object.prototype, Le = ie["__core-js_shared__"], fe = Se.toString, re = Re.hasOwnProperty, tt = function() {
|
|
1449
|
+
var e = /[^.]+$/.exec(Le && Le.keys && Le.keys.IE_PROTO || "");
|
|
1370
1450
|
return e ? "Symbol(src)_1." + e : "";
|
|
1371
|
-
}(), Ae =
|
|
1372
|
-
"^" + fe.call(re).replace(
|
|
1373
|
-
),
|
|
1374
|
-
|
|
1375
|
-
var
|
|
1451
|
+
}(), Ae = Re.toString, rt = fe.call(Object), be = RegExp(
|
|
1452
|
+
"^" + fe.call(re).replace(Xe, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1453
|
+
), Ce = Ee ? ie.Buffer : void 0, Ie = ie.Symbol, He = ie.Uint8Array;
|
|
1454
|
+
Ce && Ce.allocUnsafe;
|
|
1455
|
+
var Oe = Qe(Object.getPrototypeOf, Object), nt = Object.create, St = Re.propertyIsEnumerable, Rt = et.splice, ae = Ie ? Ie.toStringTag : void 0, je = function() {
|
|
1376
1456
|
try {
|
|
1377
|
-
var e =
|
|
1457
|
+
var e = Dt(Object, "defineProperty");
|
|
1378
1458
|
return e({}, "", {}), e;
|
|
1379
1459
|
} catch {
|
|
1380
1460
|
}
|
|
1381
|
-
}(),
|
|
1461
|
+
}(), Ct = Ce ? Ce.isBuffer : void 0, ot = Math.max, De = Date.now, Me = Dt(ie, "Map"), X = Dt(Object, "create"), Fe = /* @__PURE__ */ function() {
|
|
1382
1462
|
function e() {
|
|
1383
1463
|
}
|
|
1384
|
-
return function(
|
|
1385
|
-
if (!
|
|
1464
|
+
return function(n) {
|
|
1465
|
+
if (!_e(n))
|
|
1386
1466
|
return {};
|
|
1387
|
-
if (
|
|
1388
|
-
return
|
|
1389
|
-
e.prototype =
|
|
1390
|
-
var
|
|
1391
|
-
return e.prototype = void 0,
|
|
1467
|
+
if (nt)
|
|
1468
|
+
return nt(n);
|
|
1469
|
+
e.prototype = n;
|
|
1470
|
+
var a = new e();
|
|
1471
|
+
return e.prototype = void 0, a;
|
|
1392
1472
|
};
|
|
1393
1473
|
}();
|
|
1394
1474
|
function J(e) {
|
|
1395
|
-
var
|
|
1396
|
-
for (this.clear(); ++
|
|
1397
|
-
var
|
|
1398
|
-
this.set(
|
|
1475
|
+
var n = -1, a = e == null ? 0 : e.length;
|
|
1476
|
+
for (this.clear(); ++n < a; ) {
|
|
1477
|
+
var v = e[n];
|
|
1478
|
+
this.set(v[0], v[1]);
|
|
1399
1479
|
}
|
|
1400
1480
|
}
|
|
1401
|
-
function
|
|
1481
|
+
function it() {
|
|
1402
1482
|
this.__data__ = X ? X(null) : {}, this.size = 0;
|
|
1403
1483
|
}
|
|
1404
|
-
function
|
|
1405
|
-
var
|
|
1406
|
-
return this.size -=
|
|
1484
|
+
function Ot(e) {
|
|
1485
|
+
var n = this.has(e) && delete this.__data__[e];
|
|
1486
|
+
return this.size -= n ? 1 : 0, n;
|
|
1407
1487
|
}
|
|
1408
|
-
function
|
|
1409
|
-
var
|
|
1488
|
+
function at(e) {
|
|
1489
|
+
var n = this.__data__;
|
|
1410
1490
|
if (X) {
|
|
1411
|
-
var
|
|
1412
|
-
return
|
|
1491
|
+
var a = n[e];
|
|
1492
|
+
return a === s ? void 0 : a;
|
|
1413
1493
|
}
|
|
1414
|
-
return re.call(
|
|
1494
|
+
return re.call(n, e) ? n[e] : void 0;
|
|
1415
1495
|
}
|
|
1416
|
-
function
|
|
1417
|
-
var
|
|
1418
|
-
return X ?
|
|
1496
|
+
function jt(e) {
|
|
1497
|
+
var n = this.__data__;
|
|
1498
|
+
return X ? n[e] !== void 0 : re.call(n, e);
|
|
1419
1499
|
}
|
|
1420
|
-
function
|
|
1421
|
-
var
|
|
1422
|
-
return this.size += this.has(e) ? 0 : 1,
|
|
1500
|
+
function st(e, n) {
|
|
1501
|
+
var a = this.__data__;
|
|
1502
|
+
return this.size += this.has(e) ? 0 : 1, a[e] = X && n === void 0 ? s : n, this;
|
|
1423
1503
|
}
|
|
1424
|
-
J.prototype.clear =
|
|
1504
|
+
J.prototype.clear = it, J.prototype.delete = Ot, J.prototype.get = at, J.prototype.has = jt, J.prototype.set = st;
|
|
1425
1505
|
function q(e) {
|
|
1426
|
-
var
|
|
1427
|
-
for (this.clear(); ++
|
|
1428
|
-
var
|
|
1429
|
-
this.set(
|
|
1506
|
+
var n = -1, a = e == null ? 0 : e.length;
|
|
1507
|
+
for (this.clear(); ++n < a; ) {
|
|
1508
|
+
var v = e[n];
|
|
1509
|
+
this.set(v[0], v[1]);
|
|
1430
1510
|
}
|
|
1431
1511
|
}
|
|
1432
|
-
function
|
|
1512
|
+
function Pt() {
|
|
1433
1513
|
this.__data__ = [], this.size = 0;
|
|
1434
1514
|
}
|
|
1435
|
-
function
|
|
1436
|
-
var
|
|
1437
|
-
if (
|
|
1515
|
+
function $t(e) {
|
|
1516
|
+
var n = this.__data__, a = K(n, e);
|
|
1517
|
+
if (a < 0)
|
|
1438
1518
|
return !1;
|
|
1439
|
-
var
|
|
1440
|
-
return
|
|
1441
|
-
}
|
|
1442
|
-
function st(e) {
|
|
1443
|
-
var r = this.__data__, i = K(r, e);
|
|
1444
|
-
return i < 0 ? void 0 : r[i][1];
|
|
1519
|
+
var v = n.length - 1;
|
|
1520
|
+
return a == v ? n.pop() : Rt.call(n, a, 1), --this.size, !0;
|
|
1445
1521
|
}
|
|
1446
1522
|
function ut(e) {
|
|
1523
|
+
var n = this.__data__, a = K(n, e);
|
|
1524
|
+
return a < 0 ? void 0 : n[a][1];
|
|
1525
|
+
}
|
|
1526
|
+
function ct(e) {
|
|
1447
1527
|
return K(this.__data__, e) > -1;
|
|
1448
1528
|
}
|
|
1449
|
-
function
|
|
1450
|
-
var
|
|
1451
|
-
return
|
|
1529
|
+
function Lt(e, n) {
|
|
1530
|
+
var a = this.__data__, v = K(a, e);
|
|
1531
|
+
return v < 0 ? (++this.size, a.push([e, n])) : a[v][1] = n, this;
|
|
1452
1532
|
}
|
|
1453
|
-
q.prototype.clear =
|
|
1454
|
-
function
|
|
1455
|
-
var
|
|
1456
|
-
for (this.clear(); ++
|
|
1457
|
-
var
|
|
1458
|
-
this.set(
|
|
1533
|
+
q.prototype.clear = Pt, q.prototype.delete = $t, q.prototype.get = ut, q.prototype.has = ct, q.prototype.set = Lt;
|
|
1534
|
+
function de(e) {
|
|
1535
|
+
var n = -1, a = e == null ? 0 : e.length;
|
|
1536
|
+
for (this.clear(); ++n < a; ) {
|
|
1537
|
+
var v = e[n];
|
|
1538
|
+
this.set(v[0], v[1]);
|
|
1459
1539
|
}
|
|
1460
1540
|
}
|
|
1461
|
-
function
|
|
1541
|
+
function At() {
|
|
1462
1542
|
this.size = 0, this.__data__ = {
|
|
1463
1543
|
hash: new J(),
|
|
1464
|
-
map: new (
|
|
1544
|
+
map: new (Me || q)(),
|
|
1465
1545
|
string: new J()
|
|
1466
1546
|
};
|
|
1467
1547
|
}
|
|
1468
|
-
function
|
|
1469
|
-
var
|
|
1470
|
-
return this.size -=
|
|
1548
|
+
function It(e) {
|
|
1549
|
+
var n = ft(this, e).delete(e);
|
|
1550
|
+
return this.size -= n ? 1 : 0, n;
|
|
1471
1551
|
}
|
|
1472
1552
|
function t(e) {
|
|
1473
1553
|
return ft(this, e).get(e);
|
|
@@ -1475,254 +1555,254 @@ vt.exports;
|
|
|
1475
1555
|
function c(e) {
|
|
1476
1556
|
return ft(this, e).has(e);
|
|
1477
1557
|
}
|
|
1478
|
-
function
|
|
1479
|
-
var
|
|
1480
|
-
return
|
|
1558
|
+
function d(e, n) {
|
|
1559
|
+
var a = ft(this, e), v = a.size;
|
|
1560
|
+
return a.set(e, n), this.size += a.size == v ? 0 : 1, this;
|
|
1481
1561
|
}
|
|
1482
|
-
|
|
1483
|
-
function
|
|
1484
|
-
var
|
|
1485
|
-
this.size =
|
|
1562
|
+
de.prototype.clear = At, de.prototype.delete = It, de.prototype.get = t, de.prototype.has = c, de.prototype.set = d;
|
|
1563
|
+
function m(e) {
|
|
1564
|
+
var n = this.__data__ = new q(e);
|
|
1565
|
+
this.size = n.size;
|
|
1486
1566
|
}
|
|
1487
1567
|
function S() {
|
|
1488
1568
|
this.__data__ = new q(), this.size = 0;
|
|
1489
1569
|
}
|
|
1490
|
-
function
|
|
1491
|
-
var
|
|
1492
|
-
return this.size =
|
|
1570
|
+
function j(e) {
|
|
1571
|
+
var n = this.__data__, a = n.delete(e);
|
|
1572
|
+
return this.size = n.size, a;
|
|
1493
1573
|
}
|
|
1494
|
-
function
|
|
1574
|
+
function E(e) {
|
|
1495
1575
|
return this.__data__.get(e);
|
|
1496
1576
|
}
|
|
1497
|
-
function
|
|
1577
|
+
function x(e) {
|
|
1498
1578
|
return this.__data__.has(e);
|
|
1499
1579
|
}
|
|
1500
|
-
function
|
|
1501
|
-
var
|
|
1502
|
-
if (
|
|
1503
|
-
var
|
|
1504
|
-
if (!
|
|
1505
|
-
return
|
|
1506
|
-
|
|
1580
|
+
function k(e, n) {
|
|
1581
|
+
var a = this.__data__;
|
|
1582
|
+
if (a instanceof q) {
|
|
1583
|
+
var v = a.__data__;
|
|
1584
|
+
if (!Me || v.length < i - 1)
|
|
1585
|
+
return v.push([e, n]), this.size = ++a.size, this;
|
|
1586
|
+
a = this.__data__ = new de(v);
|
|
1507
1587
|
}
|
|
1508
|
-
return
|
|
1588
|
+
return a.set(e, n), this.size = a.size, this;
|
|
1509
1589
|
}
|
|
1510
|
-
|
|
1511
|
-
function D(e,
|
|
1512
|
-
var
|
|
1590
|
+
m.prototype.clear = S, m.prototype.delete = j, m.prototype.get = E, m.prototype.has = x, m.prototype.set = k;
|
|
1591
|
+
function D(e, n) {
|
|
1592
|
+
var a = Wt(e), v = !a && Ft(e), w = !a && !v && Qt(e), L = !a && !v && !w && tr(e), I = a || v || w || L, R = I ? wt(e.length, String) : [], H = R.length;
|
|
1513
1593
|
for (var Q in e)
|
|
1514
1594
|
I && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
1515
1595
|
(Q == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
Kt(Q, H)) ||
|
|
1519
|
-
return
|
|
1520
|
-
}
|
|
1521
|
-
function
|
|
1522
|
-
(
|
|
1523
|
-
}
|
|
1524
|
-
function U(e,
|
|
1525
|
-
var
|
|
1526
|
-
(!(re.call(e,
|
|
1527
|
-
}
|
|
1528
|
-
function K(e,
|
|
1529
|
-
for (var
|
|
1530
|
-
if (
|
|
1531
|
-
return
|
|
1596
|
+
w && (Q == "offset" || Q == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1597
|
+
L && (Q == "buffer" || Q == "byteLength" || Q == "byteOffset") || // Skip index properties.
|
|
1598
|
+
Kt(Q, H)) || R.push(Q);
|
|
1599
|
+
return R;
|
|
1600
|
+
}
|
|
1601
|
+
function A(e, n, a) {
|
|
1602
|
+
(a !== void 0 && !dt(e[n], a) || a === void 0 && !(n in e)) && Z(e, n, a);
|
|
1603
|
+
}
|
|
1604
|
+
function U(e, n, a) {
|
|
1605
|
+
var v = e[n];
|
|
1606
|
+
(!(re.call(e, n) && dt(v, a)) || a === void 0 && !(n in e)) && Z(e, n, a);
|
|
1607
|
+
}
|
|
1608
|
+
function K(e, n) {
|
|
1609
|
+
for (var a = e.length; a--; )
|
|
1610
|
+
if (dt(e[a][0], n))
|
|
1611
|
+
return a;
|
|
1532
1612
|
return -1;
|
|
1533
1613
|
}
|
|
1534
|
-
function Z(e,
|
|
1535
|
-
|
|
1614
|
+
function Z(e, n, a) {
|
|
1615
|
+
n == "__proto__" && je ? je(e, n, {
|
|
1536
1616
|
configurable: !0,
|
|
1537
1617
|
enumerable: !0,
|
|
1538
|
-
value:
|
|
1618
|
+
value: a,
|
|
1539
1619
|
writable: !0
|
|
1540
|
-
}) : e[
|
|
1620
|
+
}) : e[n] = a;
|
|
1541
1621
|
}
|
|
1542
|
-
var
|
|
1543
|
-
function
|
|
1544
|
-
return e == null ? e === void 0 ?
|
|
1622
|
+
var z = Yr();
|
|
1623
|
+
function pe(e) {
|
|
1624
|
+
return e == null ? e === void 0 ? C : F : ae && ae in Object(e) ? Ur(e) : Jr(e);
|
|
1545
1625
|
}
|
|
1546
|
-
function
|
|
1547
|
-
return
|
|
1626
|
+
function lt(e) {
|
|
1627
|
+
return We(e) && pe(e) == h;
|
|
1548
1628
|
}
|
|
1549
|
-
function
|
|
1550
|
-
if (!
|
|
1629
|
+
function Ht(e) {
|
|
1630
|
+
if (!_e(e) || Xr(e))
|
|
1551
1631
|
return !1;
|
|
1552
|
-
var
|
|
1553
|
-
return
|
|
1632
|
+
var n = Nt(e) ? be : qe;
|
|
1633
|
+
return n.test(en(e));
|
|
1554
1634
|
}
|
|
1555
|
-
function
|
|
1556
|
-
return
|
|
1635
|
+
function Lr(e) {
|
|
1636
|
+
return We(e) && er(e.length) && !!$[pe(e)];
|
|
1557
1637
|
}
|
|
1558
1638
|
function Ar(e) {
|
|
1559
|
-
if (!
|
|
1560
|
-
return
|
|
1561
|
-
var
|
|
1562
|
-
for (var
|
|
1563
|
-
|
|
1564
|
-
return
|
|
1565
|
-
}
|
|
1566
|
-
function Jt(e,
|
|
1567
|
-
e !==
|
|
1568
|
-
if (
|
|
1569
|
-
|
|
1639
|
+
if (!_e(e))
|
|
1640
|
+
return qr(e);
|
|
1641
|
+
var n = Zt(e), a = [];
|
|
1642
|
+
for (var v in e)
|
|
1643
|
+
v == "constructor" && (n || !re.call(e, v)) || a.push(v);
|
|
1644
|
+
return a;
|
|
1645
|
+
}
|
|
1646
|
+
function Jt(e, n, a, v, w) {
|
|
1647
|
+
e !== n && z(n, function(L, I) {
|
|
1648
|
+
if (w || (w = new m()), _e(L))
|
|
1649
|
+
Ir(e, n, I, a, Jt, v, w);
|
|
1570
1650
|
else {
|
|
1571
|
-
var
|
|
1572
|
-
|
|
1651
|
+
var R = v ? v(Mt(e, I), L, I + "", e, n, w) : void 0;
|
|
1652
|
+
R === void 0 && (R = L), A(e, I, R);
|
|
1573
1653
|
}
|
|
1574
1654
|
}, rr);
|
|
1575
1655
|
}
|
|
1576
|
-
function
|
|
1577
|
-
var
|
|
1656
|
+
function Ir(e, n, a, v, w, L, I) {
|
|
1657
|
+
var R = Mt(e, a), H = Mt(n, a), Q = I.get(H);
|
|
1578
1658
|
if (Q) {
|
|
1579
|
-
|
|
1659
|
+
A(e, a, Q);
|
|
1580
1660
|
return;
|
|
1581
1661
|
}
|
|
1582
|
-
var G =
|
|
1583
|
-
if (
|
|
1584
|
-
var
|
|
1585
|
-
G = H,
|
|
1662
|
+
var G = L ? L(R, H, a + "", e, n, I) : void 0, ke = G === void 0;
|
|
1663
|
+
if (ke) {
|
|
1664
|
+
var zt = Wt(H), Yt = !zt && Qt(H), or = !zt && !Yt && tr(H);
|
|
1665
|
+
G = H, zt || Yt || or ? Wt(R) ? G = R : tn(R) ? G = kr(R) : Yt ? (ke = !1, G = Mr(H)) : or ? (ke = !1, G = Wr(H)) : G = [] : rn(H) || Ft(H) ? (G = R, Ft(R) ? G = nn(R) : (!_e(R) || Nt(R)) && (G = Br(H))) : ke = !1;
|
|
1586
1666
|
}
|
|
1587
|
-
|
|
1667
|
+
ke && (I.set(H, G), w(G, H, v, L, I), I.delete(H)), A(e, a, G);
|
|
1588
1668
|
}
|
|
1589
|
-
function
|
|
1590
|
-
return Kr(
|
|
1669
|
+
function Hr(e, n) {
|
|
1670
|
+
return Zr(Kr(e, n, nr), e + "");
|
|
1591
1671
|
}
|
|
1592
|
-
var
|
|
1593
|
-
return
|
|
1672
|
+
var Dr = je ? function(e, n) {
|
|
1673
|
+
return je(e, "toString", {
|
|
1594
1674
|
configurable: !0,
|
|
1595
1675
|
enumerable: !1,
|
|
1596
|
-
value:
|
|
1676
|
+
value: an(n),
|
|
1597
1677
|
writable: !0
|
|
1598
1678
|
});
|
|
1599
1679
|
} : nr;
|
|
1600
|
-
function
|
|
1680
|
+
function Mr(e, n) {
|
|
1601
1681
|
return e.slice();
|
|
1602
1682
|
}
|
|
1603
|
-
function
|
|
1604
|
-
var
|
|
1605
|
-
return new
|
|
1683
|
+
function Fr(e) {
|
|
1684
|
+
var n = new e.constructor(e.byteLength);
|
|
1685
|
+
return new He(n).set(new He(e)), n;
|
|
1606
1686
|
}
|
|
1607
|
-
function
|
|
1608
|
-
var
|
|
1609
|
-
return new e.constructor(
|
|
1687
|
+
function Wr(e, n) {
|
|
1688
|
+
var a = Fr(e.buffer);
|
|
1689
|
+
return new e.constructor(a, e.byteOffset, e.length);
|
|
1610
1690
|
}
|
|
1611
|
-
function
|
|
1612
|
-
var
|
|
1613
|
-
for (
|
|
1614
|
-
|
|
1615
|
-
return
|
|
1691
|
+
function kr(e, n) {
|
|
1692
|
+
var a = -1, v = e.length;
|
|
1693
|
+
for (n || (n = Array(v)); ++a < v; )
|
|
1694
|
+
n[a] = e[a];
|
|
1695
|
+
return n;
|
|
1616
1696
|
}
|
|
1617
|
-
function Nr(e,
|
|
1618
|
-
var
|
|
1619
|
-
|
|
1620
|
-
for (var
|
|
1621
|
-
var
|
|
1622
|
-
H === void 0 && (H = e[
|
|
1697
|
+
function Nr(e, n, a, v) {
|
|
1698
|
+
var w = !a;
|
|
1699
|
+
a || (a = {});
|
|
1700
|
+
for (var L = -1, I = n.length; ++L < I; ) {
|
|
1701
|
+
var R = n[L], H = void 0;
|
|
1702
|
+
H === void 0 && (H = e[R]), w ? Z(a, R, H) : U(a, R, H);
|
|
1623
1703
|
}
|
|
1624
|
-
return
|
|
1704
|
+
return a;
|
|
1625
1705
|
}
|
|
1626
1706
|
function zr(e) {
|
|
1627
|
-
return
|
|
1628
|
-
var
|
|
1629
|
-
for (
|
|
1630
|
-
var
|
|
1631
|
-
|
|
1707
|
+
return Hr(function(n, a) {
|
|
1708
|
+
var v = -1, w = a.length, L = w > 1 ? a[w - 1] : void 0, I = w > 2 ? a[2] : void 0;
|
|
1709
|
+
for (L = e.length > 3 && typeof L == "function" ? (w--, L) : void 0, I && Gr(a[0], a[1], I) && (L = w < 3 ? void 0 : L, w = 1), n = Object(n); ++v < w; ) {
|
|
1710
|
+
var R = a[v];
|
|
1711
|
+
R && e(n, R, v, L);
|
|
1632
1712
|
}
|
|
1633
|
-
return
|
|
1713
|
+
return n;
|
|
1634
1714
|
});
|
|
1635
1715
|
}
|
|
1636
|
-
function
|
|
1637
|
-
return function(
|
|
1638
|
-
for (var
|
|
1639
|
-
var H = I[++
|
|
1640
|
-
if (
|
|
1716
|
+
function Yr(e) {
|
|
1717
|
+
return function(n, a, v) {
|
|
1718
|
+
for (var w = -1, L = Object(n), I = v(n), R = I.length; R--; ) {
|
|
1719
|
+
var H = I[++w];
|
|
1720
|
+
if (a(L[H], H, L) === !1)
|
|
1641
1721
|
break;
|
|
1642
1722
|
}
|
|
1643
|
-
return
|
|
1723
|
+
return n;
|
|
1644
1724
|
};
|
|
1645
1725
|
}
|
|
1646
|
-
function ft(e,
|
|
1647
|
-
var
|
|
1648
|
-
return
|
|
1726
|
+
function ft(e, n) {
|
|
1727
|
+
var a = e.__data__;
|
|
1728
|
+
return Vr(n) ? a[typeof n == "string" ? "string" : "hash"] : a.map;
|
|
1649
1729
|
}
|
|
1650
|
-
function
|
|
1651
|
-
var
|
|
1652
|
-
return
|
|
1730
|
+
function Dt(e, n) {
|
|
1731
|
+
var a = me(e, n);
|
|
1732
|
+
return Ht(a) ? a : void 0;
|
|
1653
1733
|
}
|
|
1654
|
-
function
|
|
1655
|
-
var
|
|
1734
|
+
function Ur(e) {
|
|
1735
|
+
var n = re.call(e, ae), a = e[ae];
|
|
1656
1736
|
try {
|
|
1657
|
-
e[
|
|
1658
|
-
var
|
|
1737
|
+
e[ae] = void 0;
|
|
1738
|
+
var v = !0;
|
|
1659
1739
|
} catch {
|
|
1660
1740
|
}
|
|
1661
|
-
var
|
|
1662
|
-
return
|
|
1741
|
+
var w = Ae.call(e);
|
|
1742
|
+
return v && (n ? e[ae] = a : delete e[ae]), w;
|
|
1663
1743
|
}
|
|
1664
|
-
function
|
|
1665
|
-
return typeof e.constructor == "function" && !Zt(e) ?
|
|
1744
|
+
function Br(e) {
|
|
1745
|
+
return typeof e.constructor == "function" && !Zt(e) ? Fe(Oe(e)) : {};
|
|
1666
1746
|
}
|
|
1667
|
-
function Kt(e,
|
|
1668
|
-
var
|
|
1669
|
-
return
|
|
1747
|
+
function Kt(e, n) {
|
|
1748
|
+
var a = typeof e;
|
|
1749
|
+
return n = n ?? l, !!n && (a == "number" || a != "symbol" && Je.test(e)) && e > -1 && e % 1 == 0 && e < n;
|
|
1670
1750
|
}
|
|
1671
|
-
function
|
|
1672
|
-
if (!
|
|
1751
|
+
function Gr(e, n, a) {
|
|
1752
|
+
if (!_e(a))
|
|
1673
1753
|
return !1;
|
|
1674
|
-
var
|
|
1675
|
-
return (
|
|
1676
|
-
}
|
|
1677
|
-
function Gr(e) {
|
|
1678
|
-
var r = typeof e;
|
|
1679
|
-
return r == "string" || r == "number" || r == "symbol" || r == "boolean" ? e !== "__proto__" : e === null;
|
|
1754
|
+
var v = typeof n;
|
|
1755
|
+
return (v == "number" ? kt(a) && Kt(n, a.length) : v == "string" && n in a) ? dt(a[n], e) : !1;
|
|
1680
1756
|
}
|
|
1681
1757
|
function Vr(e) {
|
|
1682
|
-
|
|
1758
|
+
var n = typeof e;
|
|
1759
|
+
return n == "string" || n == "number" || n == "symbol" || n == "boolean" ? e !== "__proto__" : e === null;
|
|
1760
|
+
}
|
|
1761
|
+
function Xr(e) {
|
|
1762
|
+
return !!tt && tt in e;
|
|
1683
1763
|
}
|
|
1684
1764
|
function Zt(e) {
|
|
1685
|
-
var
|
|
1686
|
-
return e ===
|
|
1765
|
+
var n = e && e.constructor, a = typeof n == "function" && n.prototype || Re;
|
|
1766
|
+
return e === a;
|
|
1687
1767
|
}
|
|
1688
|
-
function
|
|
1689
|
-
var
|
|
1768
|
+
function qr(e) {
|
|
1769
|
+
var n = [];
|
|
1690
1770
|
if (e != null)
|
|
1691
|
-
for (var
|
|
1692
|
-
|
|
1693
|
-
return
|
|
1771
|
+
for (var a in Object(e))
|
|
1772
|
+
n.push(a);
|
|
1773
|
+
return n;
|
|
1694
1774
|
}
|
|
1695
|
-
function
|
|
1775
|
+
function Jr(e) {
|
|
1696
1776
|
return Ae.call(e);
|
|
1697
1777
|
}
|
|
1698
|
-
function
|
|
1699
|
-
return
|
|
1700
|
-
for (var
|
|
1701
|
-
I[
|
|
1702
|
-
|
|
1703
|
-
for (var
|
|
1704
|
-
|
|
1705
|
-
return
|
|
1778
|
+
function Kr(e, n, a) {
|
|
1779
|
+
return n = ot(n === void 0 ? e.length - 1 : n, 0), function() {
|
|
1780
|
+
for (var v = arguments, w = -1, L = ot(v.length - n, 0), I = Array(L); ++w < L; )
|
|
1781
|
+
I[w] = v[n + w];
|
|
1782
|
+
w = -1;
|
|
1783
|
+
for (var R = Array(n + 1); ++w < n; )
|
|
1784
|
+
R[w] = v[w];
|
|
1785
|
+
return R[n] = a(I), Et(e, this, R);
|
|
1706
1786
|
};
|
|
1707
1787
|
}
|
|
1708
|
-
function
|
|
1709
|
-
if (!(
|
|
1710
|
-
return e[
|
|
1788
|
+
function Mt(e, n) {
|
|
1789
|
+
if (!(n === "constructor" && typeof e[n] == "function") && n != "__proto__")
|
|
1790
|
+
return e[n];
|
|
1711
1791
|
}
|
|
1712
|
-
var
|
|
1713
|
-
function
|
|
1714
|
-
var
|
|
1792
|
+
var Zr = Qr(Dr);
|
|
1793
|
+
function Qr(e) {
|
|
1794
|
+
var n = 0, a = 0;
|
|
1715
1795
|
return function() {
|
|
1716
|
-
var
|
|
1717
|
-
if (
|
|
1718
|
-
if (++
|
|
1796
|
+
var v = De(), w = u - (v - a);
|
|
1797
|
+
if (a = v, w > 0) {
|
|
1798
|
+
if (++n >= f)
|
|
1719
1799
|
return arguments[0];
|
|
1720
1800
|
} else
|
|
1721
|
-
|
|
1801
|
+
n = 0;
|
|
1722
1802
|
return e.apply(void 0, arguments);
|
|
1723
1803
|
};
|
|
1724
1804
|
}
|
|
1725
|
-
function
|
|
1805
|
+
function en(e) {
|
|
1726
1806
|
if (e != null) {
|
|
1727
1807
|
try {
|
|
1728
1808
|
return fe.call(e);
|
|
@@ -1735,57 +1815,57 @@ vt.exports;
|
|
|
1735
1815
|
}
|
|
1736
1816
|
return "";
|
|
1737
1817
|
}
|
|
1738
|
-
function
|
|
1739
|
-
return e ===
|
|
1818
|
+
function dt(e, n) {
|
|
1819
|
+
return e === n || e !== e && n !== n;
|
|
1740
1820
|
}
|
|
1741
|
-
var
|
|
1821
|
+
var Ft = lt(/* @__PURE__ */ function() {
|
|
1742
1822
|
return arguments;
|
|
1743
|
-
}()) ?
|
|
1744
|
-
return
|
|
1745
|
-
},
|
|
1746
|
-
function
|
|
1747
|
-
return e != null && er(e.length) && !
|
|
1823
|
+
}()) ? lt : function(e) {
|
|
1824
|
+
return We(e) && re.call(e, "callee") && !St.call(e, "callee");
|
|
1825
|
+
}, Wt = Array.isArray;
|
|
1826
|
+
function kt(e) {
|
|
1827
|
+
return e != null && er(e.length) && !Nt(e);
|
|
1748
1828
|
}
|
|
1749
|
-
function
|
|
1750
|
-
return
|
|
1829
|
+
function tn(e) {
|
|
1830
|
+
return We(e) && kt(e);
|
|
1751
1831
|
}
|
|
1752
|
-
var Qt =
|
|
1753
|
-
function
|
|
1754
|
-
if (!
|
|
1832
|
+
var Qt = Ct || sn;
|
|
1833
|
+
function Nt(e) {
|
|
1834
|
+
if (!_e(e))
|
|
1755
1835
|
return !1;
|
|
1756
|
-
var
|
|
1757
|
-
return
|
|
1836
|
+
var n = pe(e);
|
|
1837
|
+
return n == O || n == M || n == b || n == se;
|
|
1758
1838
|
}
|
|
1759
1839
|
function er(e) {
|
|
1760
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <=
|
|
1840
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= l;
|
|
1761
1841
|
}
|
|
1762
|
-
function
|
|
1763
|
-
var
|
|
1764
|
-
return e != null && (
|
|
1842
|
+
function _e(e) {
|
|
1843
|
+
var n = typeof e;
|
|
1844
|
+
return e != null && (n == "object" || n == "function");
|
|
1765
1845
|
}
|
|
1766
|
-
function
|
|
1846
|
+
function We(e) {
|
|
1767
1847
|
return e != null && typeof e == "object";
|
|
1768
1848
|
}
|
|
1769
|
-
function
|
|
1770
|
-
if (!
|
|
1849
|
+
function rn(e) {
|
|
1850
|
+
if (!We(e) || pe(e) != P)
|
|
1771
1851
|
return !1;
|
|
1772
|
-
var
|
|
1773
|
-
if (
|
|
1852
|
+
var n = Oe(e);
|
|
1853
|
+
if (n === null)
|
|
1774
1854
|
return !0;
|
|
1775
|
-
var
|
|
1776
|
-
return typeof
|
|
1855
|
+
var a = re.call(n, "constructor") && n.constructor;
|
|
1856
|
+
return typeof a == "function" && a instanceof a && fe.call(a) == rt;
|
|
1777
1857
|
}
|
|
1778
|
-
var tr =
|
|
1779
|
-
function
|
|
1858
|
+
var tr = $e ? we($e) : Lr;
|
|
1859
|
+
function nn(e) {
|
|
1780
1860
|
return Nr(e, rr(e));
|
|
1781
1861
|
}
|
|
1782
1862
|
function rr(e) {
|
|
1783
|
-
return
|
|
1863
|
+
return kt(e) ? D(e) : Ar(e);
|
|
1784
1864
|
}
|
|
1785
|
-
var
|
|
1786
|
-
Jt(e,
|
|
1865
|
+
var on = zr(function(e, n, a) {
|
|
1866
|
+
Jt(e, n, a);
|
|
1787
1867
|
});
|
|
1788
|
-
function
|
|
1868
|
+
function an(e) {
|
|
1789
1869
|
return function() {
|
|
1790
1870
|
return e;
|
|
1791
1871
|
};
|
|
@@ -1793,60 +1873,64 @@ vt.exports;
|
|
|
1793
1873
|
function nr(e) {
|
|
1794
1874
|
return e;
|
|
1795
1875
|
}
|
|
1796
|
-
function
|
|
1876
|
+
function sn() {
|
|
1797
1877
|
return !1;
|
|
1798
1878
|
}
|
|
1799
|
-
|
|
1879
|
+
r.exports = on;
|
|
1800
1880
|
})(vt, vt.exports);
|
|
1801
|
-
var
|
|
1802
|
-
const
|
|
1803
|
-
theme:
|
|
1881
|
+
var ro = vt.exports;
|
|
1882
|
+
const no = /* @__PURE__ */ Er(ro), _o = ({
|
|
1883
|
+
theme: r,
|
|
1804
1884
|
...o
|
|
1805
1885
|
}) => {
|
|
1806
|
-
const
|
|
1807
|
-
return /* @__PURE__ */ Y.jsx(vr, { theme:
|
|
1886
|
+
const i = Xt(un), s = gt(() => no(i, r), [i, r]);
|
|
1887
|
+
return /* @__PURE__ */ Y.jsx(vr, { theme: s, ...o });
|
|
1808
1888
|
};
|
|
1809
1889
|
export {
|
|
1810
|
-
|
|
1890
|
+
bt as HoneyBox,
|
|
1811
1891
|
qt as HoneyFlexBox,
|
|
1812
|
-
|
|
1813
|
-
|
|
1892
|
+
uo as HoneyGrid,
|
|
1893
|
+
co as HoneyGridColumn,
|
|
1814
1894
|
wr as HoneyGridColumnStyled,
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1895
|
+
Rr as HoneyGridContext,
|
|
1896
|
+
bo as HoneyLayoutProvider,
|
|
1897
|
+
_o as HoneyLayoutThemeOverride,
|
|
1898
|
+
mo as HoneyLazyContent,
|
|
1899
|
+
lo as HoneyList,
|
|
1900
|
+
Zn as HoneyLoopingList,
|
|
1901
|
+
yo as HoneyLoopingListExample,
|
|
1902
|
+
Kn as HoneyLoopingListItemStyled,
|
|
1903
|
+
$r as HoneyLoopingListStyled,
|
|
1904
|
+
On as HoneyStatusContent,
|
|
1905
|
+
pt as applyBreakpointStyles,
|
|
1906
|
+
Tr as bpMedia,
|
|
1827
1907
|
fn as calculateEuclideanDistance,
|
|
1828
1908
|
ar as calculateMovingSpeed,
|
|
1829
1909
|
sr as calculatePercentage,
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1910
|
+
ln as camelToDashCase,
|
|
1911
|
+
dn as convertHexToHexWithAlpha,
|
|
1912
|
+
xr as createStyles,
|
|
1913
|
+
ao as filterFlattenedItems,
|
|
1914
|
+
pn as flattenNestedList,
|
|
1915
|
+
gn as generateUniqueId,
|
|
1916
|
+
Cr as getHoneyListItemId,
|
|
1836
1917
|
br as getTransformationValues,
|
|
1837
1918
|
ur as media,
|
|
1838
|
-
|
|
1919
|
+
Ut as pxToRem,
|
|
1839
1920
|
ht as resolveColor,
|
|
1840
|
-
|
|
1841
|
-
|
|
1921
|
+
mn as resolveDimension,
|
|
1922
|
+
yn as resolveFont,
|
|
1842
1923
|
cr as resolveScreenState,
|
|
1843
|
-
|
|
1844
|
-
|
|
1924
|
+
mt as resolveSpacing,
|
|
1925
|
+
so as searchFlattenedItems,
|
|
1845
1926
|
ir as splitStringIntoWords,
|
|
1846
|
-
|
|
1927
|
+
Cn as useCurrentHoneyGrid,
|
|
1928
|
+
ho as useHoneyDocumentKeyUpHandler,
|
|
1847
1929
|
Or as useHoneyDrag,
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1930
|
+
fo as useHoneyInfiniteScroll,
|
|
1931
|
+
Pr as useHoneyLayout,
|
|
1932
|
+
Jn as useHoneyMediaQuery,
|
|
1933
|
+
go as useHoneyOverlay,
|
|
1934
|
+
po as useHoneySyntheticScrollableContainer,
|
|
1935
|
+
vo as useRegisterHoneyOverlay
|
|
1852
1936
|
};
|