onchain-uikit 0.0.2 → 0.0.6

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.
Files changed (49) hide show
  1. package/.storybook/preview.tsx +31 -0
  2. package/config/theme.ts +34 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.es.js +581 -311
  5. package/dist/index.umd.js +30 -0
  6. package/dist/src/App.d.ts +5 -0
  7. package/dist/src/components/PlmMosaic/index.d.ts +5 -0
  8. package/dist/src/index.d.ts +3 -0
  9. package/dist/src/main.d.ts +0 -0
  10. package/dist/src/stories/Button.d.ts +14 -0
  11. package/dist/src/stories/Button.stories.d.ts +23 -0
  12. package/dist/src/stories/Header.d.ts +11 -0
  13. package/dist/src/stories/Header.stories.d.ts +18 -0
  14. package/dist/src/stories/OnChainProvider.d.ts +12 -0
  15. package/dist/src/stories/Page.d.ts +2 -0
  16. package/dist/src/stories/Page.stories.d.ts +12 -0
  17. package/dist/src/stories/PlmMosaic.stories.d.ts +14 -0
  18. package/dist/src/stories/PlmSelect/PlmSelect.stories.d.ts +21 -0
  19. package/dist/src/stories/PlmSelect/index.d.ts +20 -0
  20. package/dist/src/stories/XsButton.d.ts +22 -0
  21. package/dist/src/stories/XsButton.stories.d.ts +14 -0
  22. package/dist/src/utils/authority/basicsAuthority.d.ts +22 -0
  23. package/dist/src/utils/authority/index.d.ts +10 -0
  24. package/dist/vite.config.d.ts +2 -0
  25. package/package.json +23 -3
  26. package/src/App.tsx +30 -7
  27. package/src/assets/styles/antd.custom.less +1144 -0
  28. package/src/assets/styles/mixins.less +5 -0
  29. package/src/components/PlmMosaic/index.module.less +6 -0
  30. package/src/components/PlmMosaic/index.tsx +15 -0
  31. package/src/global.less +973 -0
  32. package/src/index.ts +5 -2
  33. package/src/main.tsx +7 -4
  34. package/src/stories/OnChainProvider.tsx +37 -0
  35. package/src/stories/PlmMosaic.stories.ts +35 -0
  36. package/src/stories/PlmSelect/PlmSelect.stories.ts +50 -0
  37. package/src/stories/PlmSelect/index.module.less +73 -0
  38. package/src/stories/PlmSelect/index.tsx +136 -0
  39. package/src/stories/XsButton.stories.ts +30 -0
  40. package/src/stories/XsButton.tsx +33 -0
  41. package/src/typings.d.ts +636 -0
  42. package/src/utils/authority/basicsAuthority.ts +46 -0
  43. package/src/utils/authority/index.tsx +28 -0
  44. package/tsconfig.json +84 -5
  45. package/typings.d.ts +130 -0
  46. package/vite.config.ts +63 -5
  47. package/.storybook/preview.ts +0 -14
  48. package/dist/index.cjs.js +0 -30
  49. package/dist/onchain-uikit.css +0 -1
package/dist/index.es.js CHANGED
@@ -1,5 +1,289 @@
1
- import Pe from "react";
2
- var U = { exports: {} }, I = {};
1
+ import { ConfigProvider as ke, Button as $r } from "antd";
2
+ import ne from "react";
3
+ function Sr(n) {
4
+ return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
5
+ }
6
+ var N = {}, ae = { exports: {} }, De;
7
+ function oe() {
8
+ return De || (De = 1, function(n) {
9
+ function f(d) {
10
+ return d && d.__esModule ? d : {
11
+ default: d
12
+ };
13
+ }
14
+ n.exports = f, n.exports.__esModule = !0, n.exports.default = n.exports;
15
+ }(ae)), ae.exports;
16
+ }
17
+ var A = {}, Fe;
18
+ function jr() {
19
+ if (Fe) return A;
20
+ Fe = 1, Object.defineProperty(A, "__esModule", {
21
+ value: !0
22
+ }), A.default = void 0;
23
+ var n = {
24
+ // Options.jsx
25
+ items_per_page: "条/页",
26
+ jump_to: "跳至",
27
+ jump_to_confirm: "确定",
28
+ page: "页",
29
+ // Pagination.jsx
30
+ prev_page: "上一页",
31
+ next_page: "下一页",
32
+ prev_5: "向前 5 页",
33
+ next_5: "向后 5 页",
34
+ prev_3: "向前 3 页",
35
+ next_3: "向后 3 页",
36
+ page_size: "页码"
37
+ };
38
+ return A.default = n, A;
39
+ }
40
+ var Y = {}, I = {}, q = {}, Ne;
41
+ function wr() {
42
+ if (Ne) return q;
43
+ Ne = 1, Object.defineProperty(q, "__esModule", {
44
+ value: !0
45
+ }), q.default = void 0;
46
+ var n = {
47
+ locale: "zh_CN",
48
+ today: "今天",
49
+ now: "此刻",
50
+ backToToday: "返回今天",
51
+ ok: "确定",
52
+ timeSelect: "选择时间",
53
+ dateSelect: "选择日期",
54
+ weekSelect: "选择周",
55
+ clear: "清除",
56
+ month: "月",
57
+ year: "年",
58
+ previousMonth: "上个月 (翻页上键)",
59
+ nextMonth: "下个月 (翻页下键)",
60
+ monthSelect: "选择月份",
61
+ yearSelect: "选择年份",
62
+ decadeSelect: "选择年代",
63
+ yearFormat: "YYYY年",
64
+ dayFormat: "D日",
65
+ dateFormat: "YYYY年M月D日",
66
+ dateTimeFormat: "YYYY年M月D日 HH时mm分ss秒",
67
+ previousYear: "上一年 (Control键加左方向键)",
68
+ nextYear: "下一年 (Control键加右方向键)",
69
+ previousDecade: "上一年代",
70
+ nextDecade: "下一年代",
71
+ previousCentury: "上一世纪",
72
+ nextCentury: "下一世纪"
73
+ }, f = n;
74
+ return q.default = f, q;
75
+ }
76
+ var M = {}, Ae;
77
+ function Ve() {
78
+ if (Ae) return M;
79
+ Ae = 1, Object.defineProperty(M, "__esModule", {
80
+ value: !0
81
+ }), M.default = void 0;
82
+ var f = {
83
+ placeholder: "请选择时间",
84
+ rangePlaceholder: ["开始时间", "结束时间"]
85
+ };
86
+ return M.default = f, M;
87
+ }
88
+ var Ye;
89
+ function Ue() {
90
+ if (Ye) return I;
91
+ Ye = 1;
92
+ var n = oe().default;
93
+ Object.defineProperty(I, "__esModule", {
94
+ value: !0
95
+ }), I.default = void 0;
96
+ var f = n(wr()), d = n(/* @__PURE__ */ Ve());
97
+ const g = {
98
+ lang: Object.assign({
99
+ placeholder: "请选择日期",
100
+ yearPlaceholder: "请选择年份",
101
+ quarterPlaceholder: "请选择季度",
102
+ monthPlaceholder: "请选择月份",
103
+ weekPlaceholder: "请选择周",
104
+ rangePlaceholder: ["开始日期", "结束日期"],
105
+ rangeYearPlaceholder: ["开始年份", "结束年份"],
106
+ rangeMonthPlaceholder: ["开始月份", "结束月份"],
107
+ rangeQuarterPlaceholder: ["开始季度", "结束季度"],
108
+ rangeWeekPlaceholder: ["开始周", "结束周"]
109
+ }, f.default),
110
+ timePickerLocale: Object.assign({}, d.default)
111
+ };
112
+ g.lang.ok = "确定";
113
+ var C = g;
114
+ return I.default = C, I;
115
+ }
116
+ var Ie;
117
+ function kr() {
118
+ if (Ie) return Y;
119
+ Ie = 1;
120
+ var n = oe().default;
121
+ Object.defineProperty(Y, "__esModule", {
122
+ value: !0
123
+ }), Y.default = void 0;
124
+ var f = n(/* @__PURE__ */ Ue()), d = f.default;
125
+ return Y.default = d, Y;
126
+ }
127
+ var qe;
128
+ function Dr() {
129
+ if (qe) return N;
130
+ qe = 1;
131
+ var n = oe().default;
132
+ Object.defineProperty(N, "__esModule", {
133
+ value: !0
134
+ }), N.default = void 0;
135
+ var f = n(jr()), d = n(/* @__PURE__ */ kr()), g = n(/* @__PURE__ */ Ue()), C = n(/* @__PURE__ */ Ve());
136
+ const v = "${label}不是一个有效的${type}";
137
+ var R = {
138
+ locale: "zh-cn",
139
+ Pagination: f.default,
140
+ DatePicker: g.default,
141
+ TimePicker: C.default,
142
+ Calendar: d.default,
143
+ // locales for all components
144
+ global: {
145
+ placeholder: "请选择"
146
+ },
147
+ Table: {
148
+ filterTitle: "筛选",
149
+ filterConfirm: "确定",
150
+ filterReset: "重置",
151
+ filterEmptyText: "无筛选项",
152
+ filterCheckall: "全选",
153
+ filterSearchPlaceholder: "在筛选项中搜索",
154
+ selectAll: "全选当页",
155
+ selectInvert: "反选当页",
156
+ selectNone: "清空所有",
157
+ selectionAll: "全选所有",
158
+ sortTitle: "排序",
159
+ expand: "展开行",
160
+ collapse: "关闭行",
161
+ triggerDesc: "点击降序",
162
+ triggerAsc: "点击升序",
163
+ cancelSort: "取消排序"
164
+ },
165
+ Modal: {
166
+ okText: "确定",
167
+ cancelText: "取消",
168
+ justOkText: "知道了"
169
+ },
170
+ Tour: {
171
+ Next: "下一步",
172
+ Previous: "上一步",
173
+ Finish: "结束导览"
174
+ },
175
+ Popconfirm: {
176
+ cancelText: "取消",
177
+ okText: "确定"
178
+ },
179
+ Transfer: {
180
+ titles: ["", ""],
181
+ searchPlaceholder: "请输入搜索内容",
182
+ itemUnit: "项",
183
+ itemsUnit: "项",
184
+ remove: "删除",
185
+ selectCurrent: "全选当页",
186
+ removeCurrent: "删除当页",
187
+ selectAll: "全选所有",
188
+ removeAll: "删除全部",
189
+ selectInvert: "反选当页"
190
+ },
191
+ Upload: {
192
+ uploading: "文件上传中",
193
+ removeFile: "删除文件",
194
+ uploadError: "上传错误",
195
+ previewFile: "预览文件",
196
+ downloadFile: "下载文件"
197
+ },
198
+ Empty: {
199
+ description: "暂无数据"
200
+ },
201
+ Icon: {
202
+ icon: "图标"
203
+ },
204
+ Text: {
205
+ edit: "编辑",
206
+ copy: "复制",
207
+ copied: "复制成功",
208
+ expand: "展开"
209
+ },
210
+ PageHeader: {
211
+ back: "返回"
212
+ },
213
+ Form: {
214
+ optional: "(可选)",
215
+ defaultValidateMessages: {
216
+ default: "字段验证错误${label}",
217
+ required: "请输入${label}",
218
+ enum: "${label}必须是其中一个[${enum}]",
219
+ whitespace: "${label}不能为空字符",
220
+ date: {
221
+ format: "${label}日期格式无效",
222
+ parse: "${label}不能转换为日期",
223
+ invalid: "${label}是一个无效日期"
224
+ },
225
+ types: {
226
+ string: v,
227
+ method: v,
228
+ array: v,
229
+ object: v,
230
+ number: v,
231
+ date: v,
232
+ boolean: v,
233
+ integer: v,
234
+ float: v,
235
+ regexp: v,
236
+ email: v,
237
+ url: v,
238
+ hex: v
239
+ },
240
+ string: {
241
+ len: "${label}须为${len}个字符",
242
+ min: "${label}最少${min}个字符",
243
+ max: "${label}最多${max}个字符",
244
+ range: "${label}须在${min}-${max}字符之间"
245
+ },
246
+ number: {
247
+ len: "${label}必须等于${len}",
248
+ min: "${label}最小值为${min}",
249
+ max: "${label}最大值为${max}",
250
+ range: "${label}须在${min}-${max}之间"
251
+ },
252
+ array: {
253
+ len: "须为${len}个${label}",
254
+ min: "最少${min}个${label}",
255
+ max: "最多${max}个${label}",
256
+ range: "${label}数量须在${min}-${max}之间"
257
+ },
258
+ pattern: {
259
+ mismatch: "${label}与模式不匹配${pattern}"
260
+ }
261
+ }
262
+ },
263
+ Image: {
264
+ preview: "预览"
265
+ },
266
+ QRCode: {
267
+ expired: "二维码过期",
268
+ refresh: "点击刷新"
269
+ }
270
+ };
271
+ return N.default = R, N;
272
+ }
273
+ var Fr = /* @__PURE__ */ Dr();
274
+ const Nr = /* @__PURE__ */ Sr(Fr), zr = ({ prefixCls: n = "frontend", ...f }, d) => (ke.config({
275
+ prefixCls: n
276
+ }), ne.createElement(
277
+ ke,
278
+ {
279
+ prefixCls: n,
280
+ locale: Nr,
281
+ input: { autoComplete: "off" },
282
+ autoInsertSpaceInButton: !1
283
+ },
284
+ f.children
285
+ ));
286
+ var J = { exports: {} }, W = {};
3
287
  /**
4
288
  * @license React
5
289
  * react-jsx-runtime.production.min.js
@@ -9,21 +293,21 @@ var U = { exports: {} }, I = {};
9
293
  * This source code is licensed under the MIT license found in the
10
294
  * LICENSE file in the root directory of this source tree.
11
295
  */
12
- var Te;
13
- function lr() {
14
- if (Te) return I;
15
- Te = 1;
16
- var x = Pe, h = Symbol.for("react.element"), k = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, O = x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
17
- function D(R, l, P) {
18
- var p, y = {}, _ = null, W = null;
19
- P !== void 0 && (_ = "" + P), l.key !== void 0 && (_ = "" + l.key), l.ref !== void 0 && (W = l.ref);
20
- for (p in l) g.call(l, p) && !S.hasOwnProperty(p) && (y[p] = l[p]);
21
- if (R && R.defaultProps) for (p in l = R.defaultProps, l) y[p] === void 0 && (y[p] = l[p]);
22
- return { $$typeof: h, type: R, key: _, ref: W, props: y, _owner: O.current };
296
+ var Me;
297
+ function Ar() {
298
+ if (Me) return W;
299
+ Me = 1;
300
+ var n = ne, f = Symbol.for("react.element"), d = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, C = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
301
+ function $(R, p, S) {
302
+ var b, E = {}, P = null, V = null;
303
+ S !== void 0 && (P = "" + S), p.key !== void 0 && (P = "" + p.key), p.ref !== void 0 && (V = p.ref);
304
+ for (b in p) g.call(p, b) && !v.hasOwnProperty(b) && (E[b] = p[b]);
305
+ if (R && R.defaultProps) for (b in p = R.defaultProps, p) E[b] === void 0 && (E[b] = p[b]);
306
+ return { $$typeof: f, type: R, key: P, ref: V, props: E, _owner: C.current };
23
307
  }
24
- return I.Fragment = k, I.jsx = D, I.jsxs = D, I;
308
+ return W.Fragment = d, W.jsx = $, W.jsxs = $, W;
25
309
  }
26
- var $ = {};
310
+ var z = {};
27
311
  /**
28
312
  * @license React
29
313
  * react-jsx-runtime.development.js
@@ -33,91 +317,91 @@ var $ = {};
33
317
  * This source code is licensed under the MIT license found in the
34
318
  * LICENSE file in the root directory of this source tree.
35
319
  */
36
- var Oe;
37
- function cr() {
38
- return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
39
- var x = Pe, h = Symbol.for("react.element"), k = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), O = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), D = Symbol.for("react.provider"), R = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), H = Symbol.iterator, Ce = "@@iterator";
40
- function we(e) {
320
+ var We;
321
+ function Yr() {
322
+ return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
323
+ var n = ne, f = Symbol.for("react.element"), d = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), R = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), V = Symbol.for("react.offscreen"), ie = Symbol.iterator, Le = "@@iterator";
324
+ function Ze(e) {
41
325
  if (e === null || typeof e != "object")
42
326
  return null;
43
- var r = H && e[H] || e[Ce];
327
+ var r = ie && e[ie] || e[Le];
44
328
  return typeof r == "function" ? r : null;
45
329
  }
46
- var C = x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function c(e) {
330
+ var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
331
+ function _(e) {
48
332
  {
49
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
50
- t[n - 1] = arguments[n];
51
- je("error", e, t);
333
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
334
+ t[a - 1] = arguments[a];
335
+ Be("error", e, t);
52
336
  }
53
337
  }
54
- function je(e, r, t) {
338
+ function Be(e, r, t) {
55
339
  {
56
- var n = C.ReactDebugCurrentFrame, i = n.getStackAddendum();
57
- i !== "" && (r += "%s", t = t.concat([i]));
58
- var u = t.map(function(o) {
59
- return String(o);
340
+ var a = j.ReactDebugCurrentFrame, l = a.getStackAddendum();
341
+ l !== "" && (r += "%s", t = t.concat([l]));
342
+ var u = t.map(function(i) {
343
+ return String(i);
60
344
  });
61
345
  u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
62
346
  }
63
347
  }
64
- var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, Z;
65
- Z = Symbol.for("react.module.reference");
66
- function Ie(e) {
67
- return !!(typeof e == "string" || typeof e == "function" || e === g || e === S || Ae || e === O || e === P || e === p || Fe || e === W || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === y || e.$$typeof === D || e.$$typeof === R || e.$$typeof === l || // This needs to include all possible module reference object
348
+ var Je = !1, Ke = !1, Ge = !1, He = !1, Xe = !1, le;
349
+ le = Symbol.for("react.module.reference");
350
+ function Qe(e) {
351
+ return !!(typeof e == "string" || typeof e == "function" || e === g || e === v || Xe || e === C || e === S || e === b || He || e === V || Je || Ke || Ge || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === E || e.$$typeof === $ || e.$$typeof === R || e.$$typeof === p || // This needs to include all possible module reference object
68
352
  // types supported by any Flight configuration anywhere since
69
353
  // we don't know which Flight build this will end up being used
70
354
  // with.
71
- e.$$typeof === Z || e.getModuleId !== void 0));
355
+ e.$$typeof === le || e.getModuleId !== void 0));
72
356
  }
73
- function $e(e, r, t) {
74
- var n = e.displayName;
75
- if (n)
76
- return n;
77
- var i = r.displayName || r.name || "";
78
- return i !== "" ? t + "(" + i + ")" : t;
357
+ function er(e, r, t) {
358
+ var a = e.displayName;
359
+ if (a)
360
+ return a;
361
+ var l = r.displayName || r.name || "";
362
+ return l !== "" ? t + "(" + l + ")" : t;
79
363
  }
80
- function Q(e) {
364
+ function ue(e) {
81
365
  return e.displayName || "Context";
82
366
  }
83
- function E(e) {
367
+ function T(e) {
84
368
  if (e == null)
85
369
  return null;
86
- if (typeof e.tag == "number" && c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
370
+ if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
87
371
  return e.displayName || e.name || null;
88
372
  if (typeof e == "string")
89
373
  return e;
90
374
  switch (e) {
91
375
  case g:
92
376
  return "Fragment";
93
- case k:
377
+ case d:
94
378
  return "Portal";
95
- case S:
379
+ case v:
96
380
  return "Profiler";
97
- case O:
381
+ case C:
98
382
  return "StrictMode";
99
- case P:
383
+ case S:
100
384
  return "Suspense";
101
- case p:
385
+ case b:
102
386
  return "SuspenseList";
103
387
  }
104
388
  if (typeof e == "object")
105
389
  switch (e.$$typeof) {
106
390
  case R:
107
391
  var r = e;
108
- return Q(r) + ".Consumer";
109
- case D:
392
+ return ue(r) + ".Consumer";
393
+ case $:
110
394
  var t = e;
111
- return Q(t._context) + ".Provider";
112
- case l:
113
- return $e(e, e.render, "ForwardRef");
114
- case y:
115
- var n = e.displayName || null;
116
- return n !== null ? n : E(e.type) || "Memo";
117
- case _: {
118
- var i = e, u = i._payload, o = i._init;
395
+ return ue(t._context) + ".Provider";
396
+ case p:
397
+ return er(e, e.render, "ForwardRef");
398
+ case E:
399
+ var a = e.displayName || null;
400
+ return a !== null ? a : T(e.type) || "Memo";
401
+ case P: {
402
+ var l = e, u = l._payload, i = l._init;
119
403
  try {
120
- return E(o(u));
404
+ return T(i(u));
121
405
  } catch {
122
406
  return null;
123
407
  }
@@ -125,18 +409,18 @@ function cr() {
125
409
  }
126
410
  return null;
127
411
  }
128
- var m = Object.assign, F = 0, ee, re, te, ne, ae, oe, ie;
129
- function ue() {
412
+ var x = Object.assign, D = 0, se, fe, ce, de, ve, pe, _e;
413
+ function he() {
130
414
  }
131
- ue.__reactDisabledLog = !0;
132
- function We() {
415
+ he.__reactDisabledLog = !0;
416
+ function rr() {
133
417
  {
134
- if (F === 0) {
135
- ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
418
+ if (D === 0) {
419
+ se = console.log, fe = console.info, ce = console.warn, de = console.error, ve = console.group, pe = console.groupCollapsed, _e = console.groupEnd;
136
420
  var e = {
137
421
  configurable: !0,
138
422
  enumerable: !0,
139
- value: ue,
423
+ value: he,
140
424
  writable: !0
141
425
  };
142
426
  Object.defineProperties(console, {
@@ -149,250 +433,250 @@ function cr() {
149
433
  groupEnd: e
150
434
  });
151
435
  }
152
- F++;
436
+ D++;
153
437
  }
154
438
  }
155
- function Ye() {
439
+ function tr() {
156
440
  {
157
- if (F--, F === 0) {
441
+ if (D--, D === 0) {
158
442
  var e = {
159
443
  configurable: !0,
160
444
  enumerable: !0,
161
445
  writable: !0
162
446
  };
163
447
  Object.defineProperties(console, {
164
- log: m({}, e, {
165
- value: ee
448
+ log: x({}, e, {
449
+ value: se
166
450
  }),
167
- info: m({}, e, {
168
- value: re
451
+ info: x({}, e, {
452
+ value: fe
169
453
  }),
170
- warn: m({}, e, {
171
- value: te
454
+ warn: x({}, e, {
455
+ value: ce
172
456
  }),
173
- error: m({}, e, {
174
- value: ne
457
+ error: x({}, e, {
458
+ value: de
175
459
  }),
176
- group: m({}, e, {
177
- value: ae
460
+ group: x({}, e, {
461
+ value: ve
178
462
  }),
179
- groupCollapsed: m({}, e, {
180
- value: oe
463
+ groupCollapsed: x({}, e, {
464
+ value: pe
181
465
  }),
182
- groupEnd: m({}, e, {
183
- value: ie
466
+ groupEnd: x({}, e, {
467
+ value: _e
184
468
  })
185
469
  });
186
470
  }
187
- F < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
471
+ D < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
472
  }
189
473
  }
190
- var N = C.ReactCurrentDispatcher, B;
191
- function Y(e, r, t) {
474
+ var K = j.ReactCurrentDispatcher, G;
475
+ function U(e, r, t) {
192
476
  {
193
- if (B === void 0)
477
+ if (G === void 0)
194
478
  try {
195
479
  throw Error();
196
- } catch (i) {
197
- var n = i.stack.trim().match(/\n( *(at )?)/);
198
- B = n && n[1] || "";
480
+ } catch (l) {
481
+ var a = l.stack.trim().match(/\n( *(at )?)/);
482
+ G = a && a[1] || "";
199
483
  }
200
484
  return `
201
- ` + B + e;
485
+ ` + G + e;
202
486
  }
203
487
  }
204
- var J = !1, L;
488
+ var H = !1, L;
205
489
  {
206
- var Le = typeof WeakMap == "function" ? WeakMap : Map;
207
- L = new Le();
490
+ var ar = typeof WeakMap == "function" ? WeakMap : Map;
491
+ L = new ar();
208
492
  }
209
- function se(e, r) {
210
- if (!e || J)
493
+ function me(e, r) {
494
+ if (!e || H)
211
495
  return "";
212
496
  {
213
497
  var t = L.get(e);
214
498
  if (t !== void 0)
215
499
  return t;
216
500
  }
217
- var n;
218
- J = !0;
219
- var i = Error.prepareStackTrace;
501
+ var a;
502
+ H = !0;
503
+ var l = Error.prepareStackTrace;
220
504
  Error.prepareStackTrace = void 0;
221
505
  var u;
222
- u = N.current, N.current = null, We();
506
+ u = K.current, K.current = null, rr();
223
507
  try {
224
508
  if (r) {
225
- var o = function() {
509
+ var i = function() {
226
510
  throw Error();
227
511
  };
228
- if (Object.defineProperty(o.prototype, "props", {
512
+ if (Object.defineProperty(i.prototype, "props", {
229
513
  set: function() {
230
514
  throw Error();
231
515
  }
232
516
  }), typeof Reflect == "object" && Reflect.construct) {
233
517
  try {
234
- Reflect.construct(o, []);
235
- } catch (v) {
236
- n = v;
518
+ Reflect.construct(i, []);
519
+ } catch (m) {
520
+ a = m;
237
521
  }
238
- Reflect.construct(e, [], o);
522
+ Reflect.construct(e, [], i);
239
523
  } else {
240
524
  try {
241
- o.call();
242
- } catch (v) {
243
- n = v;
525
+ i.call();
526
+ } catch (m) {
527
+ a = m;
244
528
  }
245
- e.call(o.prototype);
529
+ e.call(i.prototype);
246
530
  }
247
531
  } else {
248
532
  try {
249
533
  throw Error();
250
- } catch (v) {
251
- n = v;
534
+ } catch (m) {
535
+ a = m;
252
536
  }
253
537
  e();
254
538
  }
255
- } catch (v) {
256
- if (v && n && typeof v.stack == "string") {
257
- for (var a = v.stack.split(`
258
- `), d = n.stack.split(`
259
- `), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
260
- f--;
261
- for (; s >= 1 && f >= 0; s--, f--)
262
- if (a[s] !== d[f]) {
263
- if (s !== 1 || f !== 1)
539
+ } catch (m) {
540
+ if (m && a && typeof m.stack == "string") {
541
+ for (var o = m.stack.split(`
542
+ `), h = a.stack.split(`
543
+ `), s = o.length - 1, c = h.length - 1; s >= 1 && c >= 0 && o[s] !== h[c]; )
544
+ c--;
545
+ for (; s >= 1 && c >= 0; s--, c--)
546
+ if (o[s] !== h[c]) {
547
+ if (s !== 1 || c !== 1)
264
548
  do
265
- if (s--, f--, f < 0 || a[s] !== d[f]) {
266
- var b = `
267
- ` + a[s].replace(" at new ", " at ");
268
- return e.displayName && b.includes("<anonymous>") && (b = b.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, b), b;
549
+ if (s--, c--, c < 0 || o[s] !== h[c]) {
550
+ var y = `
551
+ ` + o[s].replace(" at new ", " at ");
552
+ return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, y), y;
269
553
  }
270
- while (s >= 1 && f >= 0);
554
+ while (s >= 1 && c >= 0);
271
555
  break;
272
556
  }
273
557
  }
274
558
  } finally {
275
- J = !1, N.current = u, Ye(), Error.prepareStackTrace = i;
559
+ H = !1, K.current = u, tr(), Error.prepareStackTrace = l;
276
560
  }
277
- var j = e ? e.displayName || e.name : "", T = j ? Y(j) : "";
278
- return typeof e == "function" && L.set(e, T), T;
561
+ var k = e ? e.displayName || e.name : "", O = k ? U(k) : "";
562
+ return typeof e == "function" && L.set(e, O), O;
279
563
  }
280
- function Ve(e, r, t) {
281
- return se(e, !1);
564
+ function nr(e, r, t) {
565
+ return me(e, !1);
282
566
  }
283
- function Me(e) {
567
+ function or(e) {
284
568
  var r = e.prototype;
285
569
  return !!(r && r.isReactComponent);
286
570
  }
287
- function V(e, r, t) {
571
+ function Z(e, r, t) {
288
572
  if (e == null)
289
573
  return "";
290
574
  if (typeof e == "function")
291
- return se(e, Me(e));
575
+ return me(e, or(e));
292
576
  if (typeof e == "string")
293
- return Y(e);
577
+ return U(e);
294
578
  switch (e) {
295
- case P:
296
- return Y("Suspense");
297
- case p:
298
- return Y("SuspenseList");
579
+ case S:
580
+ return U("Suspense");
581
+ case b:
582
+ return U("SuspenseList");
299
583
  }
300
584
  if (typeof e == "object")
301
585
  switch (e.$$typeof) {
302
- case l:
303
- return Ve(e.render);
304
- case y:
305
- return V(e.type, r, t);
306
- case _: {
307
- var n = e, i = n._payload, u = n._init;
586
+ case p:
587
+ return nr(e.render);
588
+ case E:
589
+ return Z(e.type, r, t);
590
+ case P: {
591
+ var a = e, l = a._payload, u = a._init;
308
592
  try {
309
- return V(u(i), r, t);
593
+ return Z(u(l), r, t);
310
594
  } catch {
311
595
  }
312
596
  }
313
597
  }
314
598
  return "";
315
599
  }
316
- var A = Object.prototype.hasOwnProperty, fe = {}, le = C.ReactDebugCurrentFrame;
317
- function M(e) {
600
+ var F = Object.prototype.hasOwnProperty, be = {}, ge = j.ReactDebugCurrentFrame;
601
+ function B(e) {
318
602
  if (e) {
319
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
320
- le.setExtraStackFrame(t);
603
+ var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
604
+ ge.setExtraStackFrame(t);
321
605
  } else
322
- le.setExtraStackFrame(null);
606
+ ge.setExtraStackFrame(null);
323
607
  }
324
- function Ue(e, r, t, n, i) {
608
+ function ir(e, r, t, a, l) {
325
609
  {
326
- var u = Function.call.bind(A);
327
- for (var o in e)
328
- if (u(e, o)) {
329
- var a = void 0;
610
+ var u = Function.call.bind(F);
611
+ for (var i in e)
612
+ if (u(e, i)) {
613
+ var o = void 0;
330
614
  try {
331
- if (typeof e[o] != "function") {
332
- var d = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
333
- throw d.name = "Invariant Violation", d;
615
+ if (typeof e[i] != "function") {
616
+ var h = Error((a || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
617
+ throw h.name = "Invariant Violation", h;
334
618
  }
335
- a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
619
+ o = e[i](r, i, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
336
620
  } catch (s) {
337
- a = s;
621
+ o = s;
338
622
  }
339
- a && !(a instanceof Error) && (M(i), c("%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).", n || "React class", t, o, typeof a), M(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, M(i), c("Failed %s type: %s", t, a.message), M(null));
623
+ o && !(o instanceof Error) && (B(l), _("%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).", a || "React class", t, i, typeof o), B(null)), o instanceof Error && !(o.message in be) && (be[o.message] = !0, B(l), _("Failed %s type: %s", t, o.message), B(null));
340
624
  }
341
625
  }
342
626
  }
343
- var Ne = Array.isArray;
344
- function q(e) {
345
- return Ne(e);
627
+ var lr = Array.isArray;
628
+ function X(e) {
629
+ return lr(e);
346
630
  }
347
- function Be(e) {
631
+ function ur(e) {
348
632
  {
349
633
  var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
350
634
  return t;
351
635
  }
352
636
  }
353
- function Je(e) {
637
+ function sr(e) {
354
638
  try {
355
- return ce(e), !1;
639
+ return ye(e), !1;
356
640
  } catch {
357
641
  return !0;
358
642
  }
359
643
  }
360
- function ce(e) {
644
+ function ye(e) {
361
645
  return "" + e;
362
646
  }
363
- function de(e) {
364
- if (Je(e))
365
- return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ce(e);
647
+ function Re(e) {
648
+ if (sr(e))
649
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ur(e)), ye(e);
366
650
  }
367
- var ve = C.ReactCurrentOwner, qe = {
651
+ var Ee = j.ReactCurrentOwner, fr = {
368
652
  key: !0,
369
653
  ref: !0,
370
654
  __self: !0,
371
655
  __source: !0
372
- }, pe, be;
373
- function Ke(e) {
374
- if (A.call(e, "ref")) {
656
+ }, Ce, Te;
657
+ function cr(e) {
658
+ if (F.call(e, "ref")) {
375
659
  var r = Object.getOwnPropertyDescriptor(e, "ref").get;
376
660
  if (r && r.isReactWarning)
377
661
  return !1;
378
662
  }
379
663
  return e.ref !== void 0;
380
664
  }
381
- function Ge(e) {
382
- if (A.call(e, "key")) {
665
+ function dr(e) {
666
+ if (F.call(e, "key")) {
383
667
  var r = Object.getOwnPropertyDescriptor(e, "key").get;
384
668
  if (r && r.isReactWarning)
385
669
  return !1;
386
670
  }
387
671
  return e.key !== void 0;
388
672
  }
389
- function Xe(e, r) {
390
- typeof e.ref == "string" && ve.current;
673
+ function vr(e, r) {
674
+ typeof e.ref == "string" && Ee.current;
391
675
  }
392
- function ze(e, r) {
676
+ function pr(e, r) {
393
677
  {
394
678
  var t = function() {
395
- pe || (pe = !0, c("%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)", r));
679
+ Ce || (Ce = !0, _("%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)", r));
396
680
  };
397
681
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
398
682
  get: t,
@@ -400,10 +684,10 @@ function cr() {
400
684
  });
401
685
  }
402
686
  }
403
- function He(e, r) {
687
+ function _r(e, r) {
404
688
  {
405
689
  var t = function() {
406
- be || (be = !0, c("%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)", r));
690
+ Te || (Te = !0, _("%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)", r));
407
691
  };
408
692
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
409
693
  get: t,
@@ -411,70 +695,70 @@ function cr() {
411
695
  });
412
696
  }
413
697
  }
414
- var Ze = function(e, r, t, n, i, u, o) {
415
- var a = {
698
+ var hr = function(e, r, t, a, l, u, i) {
699
+ var o = {
416
700
  // This tag allows us to uniquely identify this as a React Element
417
- $$typeof: h,
701
+ $$typeof: f,
418
702
  // Built-in properties that belong on the element
419
703
  type: e,
420
704
  key: r,
421
705
  ref: t,
422
- props: o,
706
+ props: i,
423
707
  // Record the component responsible for creating this element.
424
708
  _owner: u
425
709
  };
426
- return a._store = {}, Object.defineProperty(a._store, "validated", {
710
+ return o._store = {}, Object.defineProperty(o._store, "validated", {
427
711
  configurable: !1,
428
712
  enumerable: !1,
429
713
  writable: !0,
430
714
  value: !1
431
- }), Object.defineProperty(a, "_self", {
715
+ }), Object.defineProperty(o, "_self", {
432
716
  configurable: !1,
433
717
  enumerable: !1,
434
718
  writable: !1,
435
- value: n
436
- }), Object.defineProperty(a, "_source", {
719
+ value: a
720
+ }), Object.defineProperty(o, "_source", {
437
721
  configurable: !1,
438
722
  enumerable: !1,
439
723
  writable: !1,
440
- value: i
441
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
724
+ value: l
725
+ }), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
442
726
  };
443
- function Qe(e, r, t, n, i) {
727
+ function mr(e, r, t, a, l) {
444
728
  {
445
- var u, o = {}, a = null, d = null;
446
- t !== void 0 && (de(t), a = "" + t), Ge(r) && (de(r.key), a = "" + r.key), Ke(r) && (d = r.ref, Xe(r, i));
729
+ var u, i = {}, o = null, h = null;
730
+ t !== void 0 && (Re(t), o = "" + t), dr(r) && (Re(r.key), o = "" + r.key), cr(r) && (h = r.ref, vr(r, l));
447
731
  for (u in r)
448
- A.call(r, u) && !qe.hasOwnProperty(u) && (o[u] = r[u]);
732
+ F.call(r, u) && !fr.hasOwnProperty(u) && (i[u] = r[u]);
449
733
  if (e && e.defaultProps) {
450
734
  var s = e.defaultProps;
451
735
  for (u in s)
452
- o[u] === void 0 && (o[u] = s[u]);
736
+ i[u] === void 0 && (i[u] = s[u]);
453
737
  }
454
- if (a || d) {
455
- var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
456
- a && ze(o, f), d && He(o, f);
738
+ if (o || h) {
739
+ var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
740
+ o && pr(i, c), h && _r(i, c);
457
741
  }
458
- return Ze(e, a, d, i, n, ve.current, o);
742
+ return hr(e, o, h, l, a, Ee.current, i);
459
743
  }
460
744
  }
461
- var K = C.ReactCurrentOwner, ye = C.ReactDebugCurrentFrame;
745
+ var Q = j.ReactCurrentOwner, Pe = j.ReactDebugCurrentFrame;
462
746
  function w(e) {
463
747
  if (e) {
464
- var r = e._owner, t = V(e.type, e._source, r ? r.type : null);
465
- ye.setExtraStackFrame(t);
748
+ var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
749
+ Pe.setExtraStackFrame(t);
466
750
  } else
467
- ye.setExtraStackFrame(null);
751
+ Pe.setExtraStackFrame(null);
468
752
  }
469
- var G;
470
- G = !1;
471
- function X(e) {
472
- return typeof e == "object" && e !== null && e.$$typeof === h;
753
+ var ee;
754
+ ee = !1;
755
+ function re(e) {
756
+ return typeof e == "object" && e !== null && e.$$typeof === f;
473
757
  }
474
- function ge() {
758
+ function xe() {
475
759
  {
476
- if (K.current) {
477
- var e = E(K.current.type);
760
+ if (Q.current) {
761
+ var e = T(Q.current.type);
478
762
  if (e)
479
763
  return `
480
764
 
@@ -483,13 +767,13 @@ Check the render method of \`` + e + "`.";
483
767
  return "";
484
768
  }
485
769
  }
486
- function er(e) {
770
+ function br(e) {
487
771
  return "";
488
772
  }
489
- var Ee = {};
490
- function rr(e) {
773
+ var Oe = {};
774
+ function gr(e) {
491
775
  {
492
- var r = ge();
776
+ var r = xe();
493
777
  if (!r) {
494
778
  var t = typeof e == "string" ? e : e.displayName || e.name;
495
779
  t && (r = `
@@ -499,39 +783,39 @@ Check the top-level render call using <` + t + ">.");
499
783
  return r;
500
784
  }
501
785
  }
502
- function he(e, r) {
786
+ function $e(e, r) {
503
787
  {
504
788
  if (!e._store || e._store.validated || e.key != null)
505
789
  return;
506
790
  e._store.validated = !0;
507
- var t = rr(r);
508
- if (Ee[t])
791
+ var t = gr(r);
792
+ if (Oe[t])
509
793
  return;
510
- Ee[t] = !0;
511
- var n = "";
512
- e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + E(e._owner.type) + "."), w(e), c('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), w(null);
794
+ Oe[t] = !0;
795
+ var a = "";
796
+ e && e._owner && e._owner !== Q.current && (a = " It was passed a child from " + T(e._owner.type) + "."), w(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), w(null);
513
797
  }
514
798
  }
515
- function Re(e, r) {
799
+ function Se(e, r) {
516
800
  {
517
801
  if (typeof e != "object")
518
802
  return;
519
- if (q(e))
803
+ if (X(e))
520
804
  for (var t = 0; t < e.length; t++) {
521
- var n = e[t];
522
- X(n) && he(n, r);
805
+ var a = e[t];
806
+ re(a) && $e(a, r);
523
807
  }
524
- else if (X(e))
808
+ else if (re(e))
525
809
  e._store && (e._store.validated = !0);
526
810
  else if (e) {
527
- var i = we(e);
528
- if (typeof i == "function" && i !== e.entries)
529
- for (var u = i.call(e), o; !(o = u.next()).done; )
530
- X(o.value) && he(o.value, r);
811
+ var l = Ze(e);
812
+ if (typeof l == "function" && l !== e.entries)
813
+ for (var u = l.call(e), i; !(i = u.next()).done; )
814
+ re(i.value) && $e(i.value, r);
531
815
  }
532
816
  }
533
817
  }
534
- function tr(e) {
818
+ function yr(e) {
535
819
  {
536
820
  var r = e.type;
537
821
  if (r == null || typeof r == "string")
@@ -539,114 +823,100 @@ Check the top-level render call using <` + t + ">.");
539
823
  var t;
540
824
  if (typeof r == "function")
541
825
  t = r.propTypes;
542
- else if (typeof r == "object" && (r.$$typeof === l || // Note: Memo only checks outer props here.
826
+ else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
543
827
  // Inner props are checked in the reconciler.
544
- r.$$typeof === y))
828
+ r.$$typeof === E))
545
829
  t = r.propTypes;
546
830
  else
547
831
  return;
548
832
  if (t) {
549
- var n = E(r);
550
- Ue(t, e.props, "prop", n, e);
551
- } else if (r.PropTypes !== void 0 && !G) {
552
- G = !0;
553
- var i = E(r);
554
- c("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
833
+ var a = T(r);
834
+ ir(t, e.props, "prop", a, e);
835
+ } else if (r.PropTypes !== void 0 && !ee) {
836
+ ee = !0;
837
+ var l = T(r);
838
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
555
839
  }
556
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && c("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
840
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
841
  }
558
842
  }
559
- function nr(e) {
843
+ function Rr(e) {
560
844
  {
561
845
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
562
- var n = r[t];
563
- if (n !== "children" && n !== "key") {
564
- w(e), c("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), w(null);
846
+ var a = r[t];
847
+ if (a !== "children" && a !== "key") {
848
+ w(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), w(null);
565
849
  break;
566
850
  }
567
851
  }
568
- e.ref !== null && (w(e), c("Invalid attribute `ref` supplied to `React.Fragment`."), w(null));
852
+ e.ref !== null && (w(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), w(null));
569
853
  }
570
854
  }
571
- var _e = {};
572
- function me(e, r, t, n, i, u) {
855
+ var je = {};
856
+ function we(e, r, t, a, l, u) {
573
857
  {
574
- var o = Ie(e);
575
- if (!o) {
576
- var a = "";
577
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
578
- var d = er();
579
- d ? a += d : a += ge();
858
+ var i = Qe(e);
859
+ if (!i) {
860
+ var o = "";
861
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
862
+ var h = br();
863
+ h ? o += h : o += xe();
580
864
  var s;
581
- e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === h ? (s = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
865
+ e === null ? s = "null" : X(e) ? s = "array" : e !== void 0 && e.$$typeof === f ? (s = "<" + (T(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, o);
582
866
  }
583
- var f = Qe(e, r, t, i, u);
584
- if (f == null)
585
- return f;
586
- if (o) {
587
- var b = r.children;
588
- if (b !== void 0)
589
- if (n)
590
- if (q(b)) {
591
- for (var j = 0; j < b.length; j++)
592
- Re(b[j], e);
593
- Object.freeze && Object.freeze(b);
867
+ var c = mr(e, r, t, l, u);
868
+ if (c == null)
869
+ return c;
870
+ if (i) {
871
+ var y = r.children;
872
+ if (y !== void 0)
873
+ if (a)
874
+ if (X(y)) {
875
+ for (var k = 0; k < y.length; k++)
876
+ Se(y[k], e);
877
+ Object.freeze && Object.freeze(y);
594
878
  } else
595
- c("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
879
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
596
880
  else
597
- Re(b, e);
881
+ Se(y, e);
598
882
  }
599
- if (A.call(r, "key")) {
600
- var T = E(e), v = Object.keys(r).filter(function(fr) {
601
- return fr !== "key";
602
- }), z = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!_e[T + z]) {
604
- var sr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
605
- c(`A props object containing a "key" prop is being spread into JSX:
883
+ if (F.call(r, "key")) {
884
+ var O = T(e), m = Object.keys(r).filter(function(Or) {
885
+ return Or !== "key";
886
+ }), te = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
887
+ if (!je[O + te]) {
888
+ var xr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
889
+ _(`A props object containing a "key" prop is being spread into JSX:
606
890
  let props = %s;
607
891
  <%s {...props} />
608
892
  React keys must be passed directly to JSX without using spread:
609
893
  let props = %s;
610
- <%s key={someKey} {...props} />`, z, T, sr, T), _e[T + z] = !0;
894
+ <%s key={someKey} {...props} />`, te, O, xr, O), je[O + te] = !0;
611
895
  }
612
896
  }
613
- return e === g ? nr(f) : tr(f), f;
897
+ return e === g ? Rr(c) : yr(c), c;
614
898
  }
615
899
  }
616
- function ar(e, r, t) {
617
- return me(e, r, t, !0);
900
+ function Er(e, r, t) {
901
+ return we(e, r, t, !0);
618
902
  }
619
- function or(e, r, t) {
620
- return me(e, r, t, !1);
903
+ function Cr(e, r, t) {
904
+ return we(e, r, t, !1);
621
905
  }
622
- var ir = or, ur = ar;
623
- $.Fragment = g, $.jsx = ir, $.jsxs = ur;
624
- }()), $;
906
+ var Tr = Cr, Pr = Er;
907
+ z.Fragment = g, z.jsx = Tr, z.jsxs = Pr;
908
+ }()), z;
625
909
  }
626
- var Se;
627
- function dr() {
628
- return Se || (Se = 1, process.env.NODE_ENV === "production" ? U.exports = lr() : U.exports = cr()), U.exports;
910
+ var ze;
911
+ function Ir() {
912
+ return ze || (ze = 1, process.env.NODE_ENV === "production" ? J.exports = Ar() : J.exports = Yr()), J.exports;
629
913
  }
630
- var vr = dr();
631
- const br = ({
632
- primary: x = !1,
633
- size: h = "medium",
634
- backgroundColor: k,
635
- label: g,
636
- ...O
637
- }) => {
638
- const S = x ? "storybook-button--primary" : "storybook-button--secondary";
639
- return /* @__PURE__ */ vr.jsx(
640
- "button",
641
- {
642
- type: "button",
643
- className: ["storybook-button", `storybook-button--${h}`, S].join(" "),
644
- style: { backgroundColor: k },
645
- ...O,
646
- children: g
647
- }
648
- );
914
+ var qr = Ir();
915
+ const Vr = (n, f) => {
916
+ var d;
917
+ return /* @__PURE__ */ qr.jsx($r, { type: n.btnType, className: "my-button", children: ((d = n.custObj) == null ? void 0 : d.name) || n.label });
649
918
  };
650
919
  export {
651
- br as XsButton
920
+ zr as OnChainProvider,
921
+ Vr as XsButton
652
922
  };