@gobolt/genesis 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -0
- package/dist/AntdIcon-Bsnbyy6g.js +200 -0
- package/dist/CheckOutlined-DAynWe12.js +527 -0
- package/dist/CloseCircleFilled-ZIY-u-27.js +13 -0
- package/dist/Compact-CJBo3f0u.js +185 -0
- package/dist/ContextIsolator-CGkdKtc3.js +20 -0
- package/dist/ExclamationCircleFilled-BICVVQIg.js +21 -0
- package/dist/Form-Cylpi4M4.js +1815 -0
- package/dist/Overflow-CP1M4Z0s.js +369 -0
- package/dist/SearchOutlined-DuzJkIiQ.js +52 -0
- package/dist/TextArea-3MOYYuAQ.js +1680 -0
- package/dist/bundle.css +1 -0
- package/dist/button-BNV2qdrP.js +1392 -0
- package/dist/compact-item-DH13cl8A.js +61 -0
- package/dist/components/atoms/button/Button.d.ts +12 -0
- package/dist/components/atoms/button/Button.js +27 -0
- package/dist/components/atoms/button/__stories__/Button.stories.d.ts +13 -0
- package/dist/components/atoms/button/index.d.ts +2 -0
- package/dist/components/atoms/button/index.js +4 -0
- package/dist/components/atoms/button/styles.d.ts +12 -0
- package/dist/components/atoms/button/styles.js +71 -0
- package/dist/components/atoms/checkbox/Checkbox.d.ts +10 -0
- package/dist/components/atoms/checkbox/Checkbox.js +13 -0
- package/dist/components/atoms/checkbox/__stories__/Checkbox.stories.d.ts +8 -0
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.d.ts +1 -0
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +18 -0
- package/dist/components/atoms/checkbox/index.d.ts +2 -0
- package/dist/components/atoms/checkbox/index.js +4 -0
- package/dist/components/atoms/checkbox/styles.d.ts +11 -0
- package/dist/components/atoms/checkbox/styles.js +582 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/components/atoms/index.js +3 -0
- package/dist/components/atoms/input/Input.d.ts +11 -0
- package/dist/components/atoms/input/Input.js +12 -0
- package/dist/components/atoms/input/__stories__/Input.stories.d.ts +10 -0
- package/dist/components/atoms/input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/atoms/input/__tests__/Input.test.js +28 -0
- package/dist/components/atoms/input/index.d.ts +2 -0
- package/dist/components/atoms/input/index.js +4 -0
- package/dist/components/atoms/input/styles.d.ts +14 -0
- package/dist/components/atoms/input/styles.js +415 -0
- package/dist/components/atoms/select/Select.d.ts +11 -0
- package/dist/components/atoms/select/Select.js +24 -0
- package/dist/components/atoms/select/__stories__/Select.stories.d.ts +8 -0
- package/dist/components/atoms/select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/atoms/select/__tests__/Select.test.js +10735 -0
- package/dist/components/atoms/select/index.d.ts +2 -0
- package/dist/components/atoms/select/index.js +4 -0
- package/dist/components/atoms/select/styles.d.ts +15 -0
- package/dist/components/atoms/select/styles.js +3868 -0
- package/dist/components/atoms/typography/Typography.d.ts +11 -0
- package/dist/components/atoms/typography/Typography.js +44 -0
- package/dist/components/atoms/typography/__stories__/Typography.stories.d.ts +12 -0
- package/dist/components/atoms/typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/atoms/typography/__tests__/Typography.test.js +16 -0
- package/dist/components/atoms/typography/index.d.ts +2 -0
- package/dist/components/atoms/typography/index.js +4 -0
- package/dist/components/atoms/typography/styles.d.ts +11 -0
- package/dist/components/atoms/typography/styles.js +28 -0
- package/dist/components/index.d.js +1 -0
- package/dist/components/index.d.ts +14 -0
- package/dist/components/index.js +16 -0
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.d.ts +10 -0
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +35 -0
- package/dist/components/molecules/error-boundary-fallback/__stories__/ErrorBoundaryFallback.stories.d.ts +8 -0
- package/dist/components/molecules/error-boundary-fallback/index.d.ts +1 -0
- package/dist/components/molecules/error-boundary-fallback/index.js +4 -0
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +1 -0
- package/dist/components/molecules/error-boundary-fallback/styles.js +930 -0
- package/dist/components/molecules/form/Form.d.ts +15 -0
- package/dist/components/molecules/form/Form.js +7 -0
- package/dist/components/molecules/form/__stories__/Form.stories.d.ts +7 -0
- package/dist/components/molecules/form/__stories__/FormStory.d.ts +1 -0
- package/dist/components/molecules/form/__stories__/FormStory.js +90 -0
- package/dist/components/molecules/form/index.d.ts +2 -0
- package/dist/components/molecules/form/index.js +4 -0
- package/dist/constants/index.d.ts +51 -0
- package/dist/constants/index.js +54 -0
- package/dist/context-CZsFJmh6.js +2093 -0
- package/dist/declaration.d.js +1 -0
- package/dist/genesis/GenesisThemeBreakdown.d.ts +4 -0
- package/dist/genesis/GenesisThemeBreakdown.js +56 -0
- package/dist/genesis/GenesisThemeDemo.d.ts +8 -0
- package/dist/genesis/GenesisThemeDemo.js +8 -0
- package/dist/genesis/GenesisThemeDemo.stories.d.ts +7 -0
- package/dist/genesis/styles.d.ts +12 -0
- package/dist/genesis/styles.js +4038 -0
- package/dist/index-3MWkSVA1.js +96 -0
- package/dist/index-BPtFqhcp.js +19110 -0
- package/dist/index-BQO27mgE.js +402 -0
- package/dist/index-BWys7dkb.js +4462 -0
- package/dist/index-C7kFNqp2.js +276 -0
- package/dist/index-D1v_7IIx.js +1057 -0
- package/dist/index-SAAXFt-P.js +946 -0
- package/dist/index-VDH3iLaC.js +884 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +20 -0
- package/dist/isVisible-CNQjrJPN.js +366 -0
- package/dist/magic-string.es-BkUFmFT4.js +858 -0
- package/dist/presetColors-Cl8UP3Nw.js +4 -0
- package/dist/providers/GenesisProvider.d.ts +8 -0
- package/dist/providers/GenesisProvider.js +7 -0
- package/dist/providers/ThemeProvider.d.ts +9 -0
- package/dist/providers/ThemeProvider.js +18 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/providers/index.js +6 -0
- package/dist/reactNode-sKPeiqPL.js +12 -0
- package/dist/setup-CMYVZCPF.js +33883 -0
- package/dist/styled-components.browser.esm-CZ1XM4o4.js +1144 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.d.ts +1 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +37 -0
- package/dist/styles/design-tokens/border-tokens/BorderTokens.stories.d.ts +6 -0
- package/dist/styles/design-tokens/color-tokens/ColorTokens.stories.d.ts +7 -0
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.d.ts +3 -0
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +36 -0
- package/dist/styles/design-tokens/sizing-tokens/index.stories.d.ts +7 -0
- package/dist/styles/design-tokens/typography/TypographyTokens.stories.d.ts +7 -0
- package/dist/styles/design-tokens/variables.d.ts +704 -0
- package/dist/styles/design-tokens/variables.js +697 -0
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/global-styles.js +35 -0
- package/dist/styles/theme/genesis-theme.d.ts +75 -0
- package/dist/styles/theme/genesis-theme.js +896 -0
- package/dist/styles/theme/genesis-theme.types.d.ts +162 -0
- package/dist/styles/theme/genesis-theme.types.js +4 -0
- package/dist/styles/theme/global-styles.d.ts +1 -0
- package/dist/styles/theme/global-styles.js +35 -0
- package/dist/styles/theme/index.d.ts +1 -0
- package/dist/styles/theme/index.js +9 -0
- package/dist/test/setup.d.ts +5 -0
- package/dist/test/setup.js +7 -0
- package/dist/useVariants-CEpw6Ww6.js +29 -0
- package/dist/utils/getAppointmentColor.d.ts +4 -0
- package/dist/utils/getAppointmentColor.js +91 -0
- package/dist/utils/isAllEnglishString.d.ts +1 -0
- package/dist/utils/isAllEnglishString.js +8 -0
- package/dist/utils/isAllEnglishString.test.d.ts +1 -0
- package/dist/utils/isAllEnglishString.test.js +8 -0
- package/dist/utils/parseAddress.d.ts +3 -0
- package/dist/utils/parseAddress.js +19 -0
- package/dist/vite-env.d.js +1 -0
- package/package.json +115 -0
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as e } from "./components/atoms/button/Button.js";
|
|
2
|
+
import { default as a } from "./components/atoms/input/Input.js";
|
|
3
|
+
import { default as p } from "./components/atoms/select/Select.js";
|
|
4
|
+
import { default as s } from "./components/atoms/checkbox/Checkbox.js";
|
|
5
|
+
import { default as x } from "./components/atoms/typography/Typography.js";
|
|
6
|
+
import { F as d } from "./Form-Cylpi4M4.js";
|
|
7
|
+
import { default as c } from "./components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js";
|
|
8
|
+
import { GenesisProvider as k } from "./providers/GenesisProvider.js";
|
|
9
|
+
import { useBreakpoint as B } from "./providers/ThemeProvider.js";
|
|
10
|
+
export {
|
|
11
|
+
e as Button,
|
|
12
|
+
s as Checkbox,
|
|
13
|
+
c as ErrorBoundaryFallback,
|
|
14
|
+
d as Form,
|
|
15
|
+
k as GenesisProvider,
|
|
16
|
+
a as Input,
|
|
17
|
+
p as Select,
|
|
18
|
+
x as Typography,
|
|
19
|
+
B as useBreakpoint
|
|
20
|
+
};
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
import { i as Z, j as W, e as q, k as z, l as D, b as H } from "./index-BWys7dkb.js";
|
|
2
|
+
import $ from "react";
|
|
3
|
+
function J(i) {
|
|
4
|
+
var c = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, f = [];
|
|
5
|
+
return $.Children.forEach(i, function(u) {
|
|
6
|
+
u == null && !c.keepEmpty || (Array.isArray(u) ? f = f.concat(J(u)) : Z(u) && u.props ? f = f.concat(J(u.props.children, c)) : f.push(u));
|
|
7
|
+
}), f;
|
|
8
|
+
}
|
|
9
|
+
function nt(i, c) {
|
|
10
|
+
var f = Object.assign({}, i);
|
|
11
|
+
return Array.isArray(c) && c.forEach(function(u) {
|
|
12
|
+
delete f[u];
|
|
13
|
+
}), f;
|
|
14
|
+
}
|
|
15
|
+
function B(i) {
|
|
16
|
+
return i !== void 0;
|
|
17
|
+
}
|
|
18
|
+
function ot(i, c) {
|
|
19
|
+
var f = c || {}, u = f.defaultValue, l = f.value, m = f.onChange, p = f.postState, x = W(function() {
|
|
20
|
+
return B(l) ? l : B(u) ? typeof u == "function" ? u() : u : typeof i == "function" ? i() : i;
|
|
21
|
+
}), d = q(x, 2), h = d[0], G = d[1], E = l !== void 0 ? l : h, A = p ? p(E) : E, C = z(m), T = W([E]), L = q(T, 2), g = L[0], P = L[1];
|
|
22
|
+
D(function() {
|
|
23
|
+
var w = g[0];
|
|
24
|
+
h !== w && C(h, w);
|
|
25
|
+
}, [g]), D(function() {
|
|
26
|
+
B(l) || G(l);
|
|
27
|
+
}, [l]);
|
|
28
|
+
var k = z(function(w, O) {
|
|
29
|
+
G(w, O), P([E], O);
|
|
30
|
+
});
|
|
31
|
+
return [A, k];
|
|
32
|
+
}
|
|
33
|
+
function tt() {
|
|
34
|
+
tt = function() {
|
|
35
|
+
return c;
|
|
36
|
+
};
|
|
37
|
+
var i, c = {}, f = Object.prototype, u = f.hasOwnProperty, l = Object.defineProperty || function(r, t, e) {
|
|
38
|
+
r[t] = e.value;
|
|
39
|
+
}, m = typeof Symbol == "function" ? Symbol : {}, p = m.iterator || "@@iterator", x = m.asyncIterator || "@@asyncIterator", d = m.toStringTag || "@@toStringTag";
|
|
40
|
+
function h(r, t, e) {
|
|
41
|
+
return Object.defineProperty(r, t, {
|
|
42
|
+
value: e,
|
|
43
|
+
enumerable: !0,
|
|
44
|
+
configurable: !0,
|
|
45
|
+
writable: !0
|
|
46
|
+
}), r[t];
|
|
47
|
+
}
|
|
48
|
+
try {
|
|
49
|
+
h({}, "");
|
|
50
|
+
} catch {
|
|
51
|
+
h = function(e, n, a) {
|
|
52
|
+
return e[n] = a;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function G(r, t, e, n) {
|
|
56
|
+
var a = t && t.prototype instanceof P ? t : P, o = Object.create(a.prototype), s = new M(n || []);
|
|
57
|
+
return l(o, "_invoke", {
|
|
58
|
+
value: Q(r, e, s)
|
|
59
|
+
}), o;
|
|
60
|
+
}
|
|
61
|
+
function E(r, t, e) {
|
|
62
|
+
try {
|
|
63
|
+
return {
|
|
64
|
+
type: "normal",
|
|
65
|
+
arg: r.call(t, e)
|
|
66
|
+
};
|
|
67
|
+
} catch (n) {
|
|
68
|
+
return {
|
|
69
|
+
type: "throw",
|
|
70
|
+
arg: n
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
c.wrap = G;
|
|
75
|
+
var A = "suspendedStart", C = "suspendedYield", T = "executing", L = "completed", g = {};
|
|
76
|
+
function P() {
|
|
77
|
+
}
|
|
78
|
+
function k() {
|
|
79
|
+
}
|
|
80
|
+
function w() {
|
|
81
|
+
}
|
|
82
|
+
var O = {};
|
|
83
|
+
h(O, p, function() {
|
|
84
|
+
return this;
|
|
85
|
+
});
|
|
86
|
+
var N = Object.getPrototypeOf, F = N && N(N(R([])));
|
|
87
|
+
F && F !== f && u.call(F, p) && (O = F);
|
|
88
|
+
var S = w.prototype = P.prototype = Object.create(O);
|
|
89
|
+
function Y(r) {
|
|
90
|
+
["next", "throw", "return"].forEach(function(t) {
|
|
91
|
+
h(r, t, function(e) {
|
|
92
|
+
return this._invoke(t, e);
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function I(r, t) {
|
|
97
|
+
function e(a, o, s, v) {
|
|
98
|
+
var y = E(r[a], r, o);
|
|
99
|
+
if (y.type !== "throw") {
|
|
100
|
+
var _ = y.arg, b = _.value;
|
|
101
|
+
return b && H(b) == "object" && u.call(b, "__await") ? t.resolve(b.__await).then(function(j) {
|
|
102
|
+
e("next", j, s, v);
|
|
103
|
+
}, function(j) {
|
|
104
|
+
e("throw", j, s, v);
|
|
105
|
+
}) : t.resolve(b).then(function(j) {
|
|
106
|
+
_.value = j, s(_);
|
|
107
|
+
}, function(j) {
|
|
108
|
+
return e("throw", j, s, v);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
v(y.arg);
|
|
112
|
+
}
|
|
113
|
+
var n;
|
|
114
|
+
l(this, "_invoke", {
|
|
115
|
+
value: function(o, s) {
|
|
116
|
+
function v() {
|
|
117
|
+
return new t(function(y, _) {
|
|
118
|
+
e(o, s, y, _);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
return n = n ? n.then(v, v) : v();
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function Q(r, t, e) {
|
|
126
|
+
var n = A;
|
|
127
|
+
return function(a, o) {
|
|
128
|
+
if (n === T) throw Error("Generator is already running");
|
|
129
|
+
if (n === L) {
|
|
130
|
+
if (a === "throw") throw o;
|
|
131
|
+
return {
|
|
132
|
+
value: i,
|
|
133
|
+
done: !0
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
for (e.method = a, e.arg = o; ; ) {
|
|
137
|
+
var s = e.delegate;
|
|
138
|
+
if (s) {
|
|
139
|
+
var v = U(s, e);
|
|
140
|
+
if (v) {
|
|
141
|
+
if (v === g) continue;
|
|
142
|
+
return v;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
if (e.method === "next") e.sent = e._sent = e.arg;
|
|
146
|
+
else if (e.method === "throw") {
|
|
147
|
+
if (n === A) throw n = L, e.arg;
|
|
148
|
+
e.dispatchException(e.arg);
|
|
149
|
+
} else e.method === "return" && e.abrupt("return", e.arg);
|
|
150
|
+
n = T;
|
|
151
|
+
var y = E(r, t, e);
|
|
152
|
+
if (y.type === "normal") {
|
|
153
|
+
if (n = e.done ? L : C, y.arg === g) continue;
|
|
154
|
+
return {
|
|
155
|
+
value: y.arg,
|
|
156
|
+
done: e.done
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
y.type === "throw" && (n = L, e.method = "throw", e.arg = y.arg);
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
function U(r, t) {
|
|
164
|
+
var e = t.method, n = r.iterator[e];
|
|
165
|
+
if (n === i) return t.delegate = null, e === "throw" && r.iterator.return && (t.method = "return", t.arg = i, U(r, t), t.method === "throw") || e !== "return" && (t.method = "throw", t.arg = new TypeError("The iterator does not provide a '" + e + "' method")), g;
|
|
166
|
+
var a = E(n, r.iterator, t.arg);
|
|
167
|
+
if (a.type === "throw") return t.method = "throw", t.arg = a.arg, t.delegate = null, g;
|
|
168
|
+
var o = a.arg;
|
|
169
|
+
return o ? o.done ? (t[r.resultName] = o.value, t.next = r.nextLoc, t.method !== "return" && (t.method = "next", t.arg = i), t.delegate = null, g) : o : (t.method = "throw", t.arg = new TypeError("iterator result is not an object"), t.delegate = null, g);
|
|
170
|
+
}
|
|
171
|
+
function X(r) {
|
|
172
|
+
var t = {
|
|
173
|
+
tryLoc: r[0]
|
|
174
|
+
};
|
|
175
|
+
1 in r && (t.catchLoc = r[1]), 2 in r && (t.finallyLoc = r[2], t.afterLoc = r[3]), this.tryEntries.push(t);
|
|
176
|
+
}
|
|
177
|
+
function V(r) {
|
|
178
|
+
var t = r.completion || {};
|
|
179
|
+
t.type = "normal", delete t.arg, r.completion = t;
|
|
180
|
+
}
|
|
181
|
+
function M(r) {
|
|
182
|
+
this.tryEntries = [{
|
|
183
|
+
tryLoc: "root"
|
|
184
|
+
}], r.forEach(X, this), this.reset(!0);
|
|
185
|
+
}
|
|
186
|
+
function R(r) {
|
|
187
|
+
if (r || r === "") {
|
|
188
|
+
var t = r[p];
|
|
189
|
+
if (t) return t.call(r);
|
|
190
|
+
if (typeof r.next == "function") return r;
|
|
191
|
+
if (!isNaN(r.length)) {
|
|
192
|
+
var e = -1, n = function a() {
|
|
193
|
+
for (; ++e < r.length; ) if (u.call(r, e)) return a.value = r[e], a.done = !1, a;
|
|
194
|
+
return a.value = i, a.done = !0, a;
|
|
195
|
+
};
|
|
196
|
+
return n.next = n;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
throw new TypeError(H(r) + " is not iterable");
|
|
200
|
+
}
|
|
201
|
+
return k.prototype = w, l(S, "constructor", {
|
|
202
|
+
value: w,
|
|
203
|
+
configurable: !0
|
|
204
|
+
}), l(w, "constructor", {
|
|
205
|
+
value: k,
|
|
206
|
+
configurable: !0
|
|
207
|
+
}), k.displayName = h(w, d, "GeneratorFunction"), c.isGeneratorFunction = function(r) {
|
|
208
|
+
var t = typeof r == "function" && r.constructor;
|
|
209
|
+
return !!t && (t === k || (t.displayName || t.name) === "GeneratorFunction");
|
|
210
|
+
}, c.mark = function(r) {
|
|
211
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(r, w) : (r.__proto__ = w, h(r, d, "GeneratorFunction")), r.prototype = Object.create(S), r;
|
|
212
|
+
}, c.awrap = function(r) {
|
|
213
|
+
return {
|
|
214
|
+
__await: r
|
|
215
|
+
};
|
|
216
|
+
}, Y(I.prototype), h(I.prototype, x, function() {
|
|
217
|
+
return this;
|
|
218
|
+
}), c.AsyncIterator = I, c.async = function(r, t, e, n, a) {
|
|
219
|
+
a === void 0 && (a = Promise);
|
|
220
|
+
var o = new I(G(r, t, e, n), a);
|
|
221
|
+
return c.isGeneratorFunction(t) ? o : o.next().then(function(s) {
|
|
222
|
+
return s.done ? s.value : o.next();
|
|
223
|
+
});
|
|
224
|
+
}, Y(S), h(S, d, "Generator"), h(S, p, function() {
|
|
225
|
+
return this;
|
|
226
|
+
}), h(S, "toString", function() {
|
|
227
|
+
return "[object Generator]";
|
|
228
|
+
}), c.keys = function(r) {
|
|
229
|
+
var t = Object(r), e = [];
|
|
230
|
+
for (var n in t) e.push(n);
|
|
231
|
+
return e.reverse(), function a() {
|
|
232
|
+
for (; e.length; ) {
|
|
233
|
+
var o = e.pop();
|
|
234
|
+
if (o in t) return a.value = o, a.done = !1, a;
|
|
235
|
+
}
|
|
236
|
+
return a.done = !0, a;
|
|
237
|
+
};
|
|
238
|
+
}, c.values = R, M.prototype = {
|
|
239
|
+
constructor: M,
|
|
240
|
+
reset: function(t) {
|
|
241
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = i, this.done = !1, this.delegate = null, this.method = "next", this.arg = i, this.tryEntries.forEach(V), !t) for (var e in this) e.charAt(0) === "t" && u.call(this, e) && !isNaN(+e.slice(1)) && (this[e] = i);
|
|
242
|
+
},
|
|
243
|
+
stop: function() {
|
|
244
|
+
this.done = !0;
|
|
245
|
+
var t = this.tryEntries[0].completion;
|
|
246
|
+
if (t.type === "throw") throw t.arg;
|
|
247
|
+
return this.rval;
|
|
248
|
+
},
|
|
249
|
+
dispatchException: function(t) {
|
|
250
|
+
if (this.done) throw t;
|
|
251
|
+
var e = this;
|
|
252
|
+
function n(_, b) {
|
|
253
|
+
return s.type = "throw", s.arg = t, e.next = _, b && (e.method = "next", e.arg = i), !!b;
|
|
254
|
+
}
|
|
255
|
+
for (var a = this.tryEntries.length - 1; a >= 0; --a) {
|
|
256
|
+
var o = this.tryEntries[a], s = o.completion;
|
|
257
|
+
if (o.tryLoc === "root") return n("end");
|
|
258
|
+
if (o.tryLoc <= this.prev) {
|
|
259
|
+
var v = u.call(o, "catchLoc"), y = u.call(o, "finallyLoc");
|
|
260
|
+
if (v && y) {
|
|
261
|
+
if (this.prev < o.catchLoc) return n(o.catchLoc, !0);
|
|
262
|
+
if (this.prev < o.finallyLoc) return n(o.finallyLoc);
|
|
263
|
+
} else if (v) {
|
|
264
|
+
if (this.prev < o.catchLoc) return n(o.catchLoc, !0);
|
|
265
|
+
} else {
|
|
266
|
+
if (!y) throw Error("try statement without catch or finally");
|
|
267
|
+
if (this.prev < o.finallyLoc) return n(o.finallyLoc);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
abrupt: function(t, e) {
|
|
273
|
+
for (var n = this.tryEntries.length - 1; n >= 0; --n) {
|
|
274
|
+
var a = this.tryEntries[n];
|
|
275
|
+
if (a.tryLoc <= this.prev && u.call(a, "finallyLoc") && this.prev < a.finallyLoc) {
|
|
276
|
+
var o = a;
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
o && (t === "break" || t === "continue") && o.tryLoc <= e && e <= o.finallyLoc && (o = null);
|
|
281
|
+
var s = o ? o.completion : {};
|
|
282
|
+
return s.type = t, s.arg = e, o ? (this.method = "next", this.next = o.finallyLoc, g) : this.complete(s);
|
|
283
|
+
},
|
|
284
|
+
complete: function(t, e) {
|
|
285
|
+
if (t.type === "throw") throw t.arg;
|
|
286
|
+
return t.type === "break" || t.type === "continue" ? this.next = t.arg : t.type === "return" ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : t.type === "normal" && e && (this.next = e), g;
|
|
287
|
+
},
|
|
288
|
+
finish: function(t) {
|
|
289
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
290
|
+
var n = this.tryEntries[e];
|
|
291
|
+
if (n.finallyLoc === t) return this.complete(n.completion, n.afterLoc), V(n), g;
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
catch: function(t) {
|
|
295
|
+
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
296
|
+
var n = this.tryEntries[e];
|
|
297
|
+
if (n.tryLoc === t) {
|
|
298
|
+
var a = n.completion;
|
|
299
|
+
if (a.type === "throw") {
|
|
300
|
+
var o = a.arg;
|
|
301
|
+
V(n);
|
|
302
|
+
}
|
|
303
|
+
return o;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
throw Error("illegal catch attempt");
|
|
307
|
+
},
|
|
308
|
+
delegateYield: function(t, e, n) {
|
|
309
|
+
return this.delegate = {
|
|
310
|
+
iterator: R(t),
|
|
311
|
+
resultName: e,
|
|
312
|
+
nextLoc: n
|
|
313
|
+
}, this.method === "next" && (this.arg = i), g;
|
|
314
|
+
}
|
|
315
|
+
}, c;
|
|
316
|
+
}
|
|
317
|
+
function K(i, c, f, u, l, m, p) {
|
|
318
|
+
try {
|
|
319
|
+
var x = i[m](p), d = x.value;
|
|
320
|
+
} catch (h) {
|
|
321
|
+
return void f(h);
|
|
322
|
+
}
|
|
323
|
+
x.done ? c(d) : Promise.resolve(d).then(u, l);
|
|
324
|
+
}
|
|
325
|
+
function at(i) {
|
|
326
|
+
return function() {
|
|
327
|
+
var c = this, f = arguments;
|
|
328
|
+
return new Promise(function(u, l) {
|
|
329
|
+
var m = i.apply(c, f);
|
|
330
|
+
function p(d) {
|
|
331
|
+
K(m, u, l, p, x, "next", d);
|
|
332
|
+
}
|
|
333
|
+
function x(d) {
|
|
334
|
+
K(m, u, l, p, x, "throw", d);
|
|
335
|
+
}
|
|
336
|
+
p(void 0);
|
|
337
|
+
});
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
const it = function(i) {
|
|
341
|
+
if (!i)
|
|
342
|
+
return !1;
|
|
343
|
+
if (i instanceof Element) {
|
|
344
|
+
if (i.offsetParent)
|
|
345
|
+
return !0;
|
|
346
|
+
if (i.getBBox) {
|
|
347
|
+
var c = i.getBBox(), f = c.width, u = c.height;
|
|
348
|
+
if (f || u)
|
|
349
|
+
return !0;
|
|
350
|
+
}
|
|
351
|
+
if (i.getBoundingClientRect) {
|
|
352
|
+
var l = i.getBoundingClientRect(), m = l.width, p = l.height;
|
|
353
|
+
if (m || p)
|
|
354
|
+
return !0;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
return !1;
|
|
358
|
+
};
|
|
359
|
+
export {
|
|
360
|
+
at as _,
|
|
361
|
+
tt as a,
|
|
362
|
+
it as i,
|
|
363
|
+
nt as o,
|
|
364
|
+
J as t,
|
|
365
|
+
ot as u
|
|
366
|
+
};
|