@sdata-plugin-adapter/react 0.0.0-alpha.4 → 0.1.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.
@@ -1,5 +1,6 @@
1
1
  import je from "react";
2
- import cr from "configJson";
2
+ import { setDomAttributes as cr } from "@sdata-plugin-adapter/utils";
3
+ import fr from "configJson";
3
4
  var M = { exports: {} }, I = {};
4
5
  /**
5
6
  * @license React
@@ -10,19 +11,19 @@ var M = { exports: {} }, I = {};
10
11
  * This source code is licensed under the MIT license found in the
11
12
  * LICENSE file in the root directory of this source tree.
12
13
  */
13
- var _e;
14
- function fr() {
15
- if (_e) return I;
16
- _e = 1;
17
- var P = je, w = Symbol.for("react.element"), j = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, v = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, E = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function y(l, s, _) {
19
- var d, m = {}, h = null, C = null;
20
- _ !== void 0 && (h = "" + _), s.key !== void 0 && (h = "" + s.key), s.ref !== void 0 && (C = s.ref);
21
- for (d in s) b.call(s, d) && !E.hasOwnProperty(d) && (m[d] = s[d]);
22
- if (l && l.defaultProps) for (d in s = l.defaultProps, s) m[d] === void 0 && (m[d] = s[d]);
23
- return { $$typeof: w, type: l, key: h, ref: C, props: m, _owner: v.current };
14
+ var we;
15
+ function lr() {
16
+ if (we) return I;
17
+ we = 1;
18
+ var O = je, E = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), b = Object.prototype.hasOwnProperty, v = O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
19
+ function m(l, s, P) {
20
+ var d, p = {}, h = null, C = null;
21
+ P !== void 0 && (h = "" + P), s.key !== void 0 && (h = "" + s.key), s.ref !== void 0 && (C = s.ref);
22
+ for (d in s) b.call(s, d) && !w.hasOwnProperty(d) && (p[d] = s[d]);
23
+ if (l && l.defaultProps) for (d in s = l.defaultProps, s) p[d] === void 0 && (p[d] = s[d]);
24
+ return { $$typeof: E, type: l, key: h, ref: C, props: p, _owner: v.current };
24
25
  }
25
- return I.Fragment = j, I.jsx = y, I.jsxs = y, I;
26
+ return I.Fragment = _, I.jsx = m, I.jsxs = m, I;
26
27
  }
27
28
  var $ = {};
28
29
  /**
@@ -34,19 +35,19 @@ var $ = {};
34
35
  * This source code is licensed under the MIT license found in the
35
36
  * LICENSE file in the root directory of this source tree.
36
37
  */
37
- var we;
38
- function lr() {
39
- return we || (we = 1, process.env.NODE_ENV !== "production" && (function() {
38
+ var Oe;
39
+ function dr() {
40
+ return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && (function() {
40
41
  "use strict";
41
- var P = je, w = Symbol.for("react.element"), j = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), E = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), X = Symbol.iterator, Se = "@@iterator";
42
+ var O = je, E = Symbol.for("react.element"), _ = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), m = Symbol.for("react.provider"), l = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), Z = Symbol.iterator, Se = "@@iterator";
42
43
  function Ce(e) {
43
44
  if (e === null || typeof e != "object")
44
45
  return null;
45
- var r = X && e[X] || e[Se];
46
+ var r = Z && e[Z] || e[Se];
46
47
  return typeof r == "function" ? r : null;
47
48
  }
48
- var x = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
49
- function p(e) {
49
+ var x = O.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
+ function y(e) {
50
51
  {
51
52
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
52
53
  t[n - 1] = arguments[n];
@@ -63,14 +64,14 @@ function lr() {
63
64
  u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
64
65
  }
65
66
  }
66
- var ke = !1, De = !1, Fe = !1, Ae = !1, Ie = !1, Z;
67
- Z = Symbol.for("react.module.reference");
67
+ var De = !1, ke = !1, Fe = !1, Ae = !1, Ie = !1, Q;
68
+ Q = Symbol.for("react.module.reference");
68
69
  function $e(e) {
69
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === E || Ie || e === v || e === _ || e === d || Ae || e === C || ke || De || Fe || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === m || e.$$typeof === y || e.$$typeof === l || e.$$typeof === s || // This needs to include all possible module reference object
70
+ return !!(typeof e == "string" || typeof e == "function" || e === b || e === w || Ie || e === v || e === P || e === d || Ae || e === C || De || ke || Fe || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === p || e.$$typeof === m || e.$$typeof === l || e.$$typeof === s || // This needs to include all possible module reference object
70
71
  // types supported by any Flight configuration anywhere since
71
72
  // we don't know which Flight build this will end up being used
72
73
  // with.
73
- e.$$typeof === Z || e.getModuleId !== void 0));
74
+ e.$$typeof === Q || e.getModuleId !== void 0));
74
75
  }
75
76
  function Me(e, r, t) {
76
77
  var n = e.displayName;
@@ -79,26 +80,26 @@ function lr() {
79
80
  var i = r.displayName || r.name || "";
80
81
  return i !== "" ? t + "(" + i + ")" : t;
81
82
  }
82
- function Q(e) {
83
+ function ee(e) {
83
84
  return e.displayName || "Context";
84
85
  }
85
- function O(e) {
86
+ function T(e) {
86
87
  if (e == null)
87
88
  return null;
88
- if (typeof e.tag == "number" && p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
89
+ if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
89
90
  return e.displayName || e.name || null;
90
91
  if (typeof e == "string")
91
92
  return e;
92
93
  switch (e) {
93
94
  case b:
94
95
  return "Fragment";
95
- case j:
96
+ case _:
96
97
  return "Portal";
97
- case E:
98
+ case w:
98
99
  return "Profiler";
99
100
  case v:
100
101
  return "StrictMode";
101
- case _:
102
+ case P:
102
103
  return "Suspense";
103
104
  case d:
104
105
  return "SuspenseList";
@@ -107,19 +108,19 @@ function lr() {
107
108
  switch (e.$$typeof) {
108
109
  case l:
109
110
  var r = e;
110
- return Q(r) + ".Consumer";
111
- case y:
111
+ return ee(r) + ".Consumer";
112
+ case m:
112
113
  var t = e;
113
- return Q(t._context) + ".Provider";
114
+ return ee(t._context) + ".Provider";
114
115
  case s:
115
116
  return Me(e, e.render, "ForwardRef");
116
- case m:
117
+ case p:
117
118
  var n = e.displayName || null;
118
- return n !== null ? n : O(e.type) || "Memo";
119
+ return n !== null ? n : T(e.type) || "Memo";
119
120
  case h: {
120
121
  var i = e, u = i._payload, o = i._init;
121
122
  try {
122
- return O(o(u));
123
+ return T(o(u));
123
124
  } catch {
124
125
  return null;
125
126
  }
@@ -127,18 +128,18 @@ function lr() {
127
128
  }
128
129
  return null;
129
130
  }
130
- var S = Object.assign, F = 0, ee, re, te, ne, ae, oe, ie;
131
- function ue() {
131
+ var S = Object.assign, F = 0, re, te, ne, ae, oe, ie, ue;
132
+ function se() {
132
133
  }
133
- ue.__reactDisabledLog = !0;
134
+ se.__reactDisabledLog = !0;
134
135
  function Ne() {
135
136
  {
136
137
  if (F === 0) {
137
- ee = console.log, re = console.info, te = console.warn, ne = console.error, ae = console.group, oe = console.groupCollapsed, ie = console.groupEnd;
138
+ re = console.log, te = console.info, ne = console.warn, ae = console.error, oe = console.group, ie = console.groupCollapsed, ue = console.groupEnd;
138
139
  var e = {
139
140
  configurable: !0,
140
141
  enumerable: !0,
141
- value: ue,
142
+ value: se,
142
143
  writable: !0
143
144
  };
144
145
  Object.defineProperties(console, {
@@ -164,29 +165,29 @@ function lr() {
164
165
  };
165
166
  Object.defineProperties(console, {
166
167
  log: S({}, e, {
167
- value: ee
168
+ value: re
168
169
  }),
169
170
  info: S({}, e, {
170
- value: re
171
+ value: te
171
172
  }),
172
173
  warn: S({}, e, {
173
- value: te
174
+ value: ne
174
175
  }),
175
176
  error: S({}, e, {
176
- value: ne
177
+ value: ae
177
178
  }),
178
179
  group: S({}, e, {
179
- value: ae
180
+ value: oe
180
181
  }),
181
182
  groupCollapsed: S({}, e, {
182
- value: oe
183
+ value: ie
183
184
  }),
184
185
  groupEnd: S({}, e, {
185
- value: ie
186
+ value: ue
186
187
  })
187
188
  });
188
189
  }
189
- F < 0 && p("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
+ F < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
190
191
  }
191
192
  }
192
193
  var V = x.ReactCurrentDispatcher, q;
@@ -208,7 +209,7 @@ function lr() {
208
209
  var Le = typeof WeakMap == "function" ? WeakMap : Map;
209
210
  W = new Le();
210
211
  }
211
- function se(e, r) {
212
+ function ce(e, r) {
212
213
  if (!e || G)
213
214
  return "";
214
215
  {
@@ -234,29 +235,29 @@ function lr() {
234
235
  }), typeof Reflect == "object" && Reflect.construct) {
235
236
  try {
236
237
  Reflect.construct(o, []);
237
- } catch (T) {
238
- n = T;
238
+ } catch (j) {
239
+ n = j;
239
240
  }
240
241
  Reflect.construct(e, [], o);
241
242
  } else {
242
243
  try {
243
244
  o.call();
244
- } catch (T) {
245
- n = T;
245
+ } catch (j) {
246
+ n = j;
246
247
  }
247
248
  e.call(o.prototype);
248
249
  }
249
250
  } else {
250
251
  try {
251
252
  throw Error();
252
- } catch (T) {
253
- n = T;
253
+ } catch (j) {
254
+ n = j;
254
255
  }
255
256
  e();
256
257
  }
257
- } catch (T) {
258
- if (T && n && typeof T.stack == "string") {
259
- for (var a = T.stack.split(`
258
+ } catch (j) {
259
+ if (j && n && typeof j.stack == "string") {
260
+ for (var a = j.stack.split(`
260
261
  `), g = n.stack.split(`
261
262
  `), c = a.length - 1, f = g.length - 1; c >= 1 && f >= 0 && a[c] !== g[f]; )
262
263
  f--;
@@ -276,11 +277,11 @@ function lr() {
276
277
  } finally {
277
278
  G = !1, V.current = u, We(), Error.prepareStackTrace = i;
278
279
  }
279
- var D = e ? e.displayName || e.name : "", Ee = D ? N(D) : "";
280
- return typeof e == "function" && W.set(e, Ee), Ee;
280
+ var k = e ? e.displayName || e.name : "", _e = k ? N(k) : "";
281
+ return typeof e == "function" && W.set(e, _e), _e;
281
282
  }
282
283
  function Ye(e, r, t) {
283
- return se(e, !1);
284
+ return ce(e, !1);
284
285
  }
285
286
  function Ue(e) {
286
287
  var r = e.prototype;
@@ -290,11 +291,11 @@ function lr() {
290
291
  if (e == null)
291
292
  return "";
292
293
  if (typeof e == "function")
293
- return se(e, Ue(e));
294
+ return ce(e, Ue(e));
294
295
  if (typeof e == "string")
295
296
  return N(e);
296
297
  switch (e) {
297
- case _:
298
+ case P:
298
299
  return N("Suspense");
299
300
  case d:
300
301
  return N("SuspenseList");
@@ -303,7 +304,7 @@ function lr() {
303
304
  switch (e.$$typeof) {
304
305
  case s:
305
306
  return Ye(e.render);
306
- case m:
307
+ case p:
307
308
  return L(e.type, r, t);
308
309
  case h: {
309
310
  var n = e, i = n._payload, u = n._init;
@@ -315,13 +316,13 @@ function lr() {
315
316
  }
316
317
  return "";
317
318
  }
318
- var Y = Object.prototype.hasOwnProperty, ce = {}, fe = x.ReactDebugCurrentFrame;
319
+ var Y = Object.prototype.hasOwnProperty, fe = {}, le = x.ReactDebugCurrentFrame;
319
320
  function U(e) {
320
321
  if (e) {
321
322
  var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
322
- fe.setExtraStackFrame(t);
323
+ le.setExtraStackFrame(t);
323
324
  } else
324
- fe.setExtraStackFrame(null);
325
+ le.setExtraStackFrame(null);
325
326
  }
326
327
  function Ve(e, r, t, n, i) {
327
328
  {
@@ -338,7 +339,7 @@ function lr() {
338
339
  } catch (c) {
339
340
  a = c;
340
341
  }
341
- a && !(a instanceof Error) && (U(i), 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).", n || "React class", t, o, typeof a), U(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, U(i), p("Failed %s type: %s", t, a.message), U(null));
342
+ a && !(a instanceof Error) && (U(i), y("%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), U(null)), a instanceof Error && !(a.message in fe) && (fe[a.message] = !0, U(i), y("Failed %s type: %s", t, a.message), U(null));
342
343
  }
343
344
  }
344
345
  }
@@ -354,24 +355,24 @@ function lr() {
354
355
  }
355
356
  function Je(e) {
356
357
  try {
357
- return le(e), !1;
358
+ return de(e), !1;
358
359
  } catch {
359
360
  return !0;
360
361
  }
361
362
  }
362
- function le(e) {
363
+ function de(e) {
363
364
  return "" + e;
364
365
  }
365
- function de(e) {
366
+ function ve(e) {
366
367
  if (Je(e))
367
- return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), le(e);
368
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), de(e);
368
369
  }
369
370
  var A = x.ReactCurrentOwner, Be = {
370
371
  key: !0,
371
372
  ref: !0,
372
373
  __self: !0,
373
374
  __source: !0
374
- }, ve, pe, B;
375
+ }, pe, ye, B;
375
376
  B = {};
376
377
  function ze(e) {
377
378
  if (Y.call(e, "ref")) {
@@ -391,14 +392,14 @@ function lr() {
391
392
  }
392
393
  function Ke(e, r) {
393
394
  if (typeof e.ref == "string" && A.current && r && A.current.stateNode !== r) {
394
- var t = O(A.current.type);
395
- B[t] || (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', O(A.current.type), e.ref), B[t] = !0);
395
+ var t = T(A.current.type);
396
+ B[t] || (y('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', T(A.current.type), e.ref), B[t] = !0);
396
397
  }
397
398
  }
398
399
  function Xe(e, r) {
399
400
  {
400
401
  var t = function() {
401
- ve || (ve = !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)", r));
402
+ pe || (pe = !0, y("%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));
402
403
  };
403
404
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
404
405
  get: t,
@@ -409,7 +410,7 @@ function lr() {
409
410
  function Ze(e, r) {
410
411
  {
411
412
  var t = function() {
412
- pe || (pe = !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)", r));
413
+ ye || (ye = !0, y("%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));
413
414
  };
414
415
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
415
416
  get: t,
@@ -420,7 +421,7 @@ function lr() {
420
421
  var Qe = function(e, r, t, n, i, u, o) {
421
422
  var a = {
422
423
  // This tag allows us to uniquely identify this as a React Element
423
- $$typeof: w,
424
+ $$typeof: E,
424
425
  // Built-in properties that belong on the element
425
426
  type: e,
426
427
  key: r,
@@ -449,7 +450,7 @@ function lr() {
449
450
  function er(e, r, t, n, i) {
450
451
  {
451
452
  var u, o = {}, a = null, g = null;
452
- t !== void 0 && (de(t), a = "" + t), He(r) && (de(r.key), a = "" + r.key), ze(r) && (g = r.ref, Ke(r, i));
453
+ t !== void 0 && (ve(t), a = "" + t), He(r) && (ve(r.key), a = "" + r.key), ze(r) && (g = r.ref, Ke(r, i));
453
454
  for (u in r)
454
455
  Y.call(r, u) && !Be.hasOwnProperty(u) && (o[u] = r[u]);
455
456
  if (e && e.defaultProps) {
@@ -465,7 +466,7 @@ function lr() {
465
466
  }
466
467
  }
467
468
  var z = x.ReactCurrentOwner, ge = x.ReactDebugCurrentFrame;
468
- function k(e) {
469
+ function D(e) {
469
470
  if (e) {
470
471
  var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
471
472
  ge.setExtraStackFrame(t);
@@ -475,12 +476,12 @@ function lr() {
475
476
  var H;
476
477
  H = !1;
477
478
  function K(e) {
478
- return typeof e == "object" && e !== null && e.$$typeof === w;
479
+ return typeof e == "object" && e !== null && e.$$typeof === E;
479
480
  }
480
- function ye() {
481
+ function me() {
481
482
  {
482
483
  if (z.current) {
483
- var e = O(z.current.type);
484
+ var e = T(z.current.type);
484
485
  if (e)
485
486
  return `
486
487
 
@@ -500,10 +501,10 @@ Check your code at ` + r + ":" + t + ".";
500
501
  return "";
501
502
  }
502
503
  }
503
- var me = {};
504
+ var be = {};
504
505
  function tr(e) {
505
506
  {
506
- var r = ye();
507
+ var r = me();
507
508
  if (!r) {
508
509
  var t = typeof e == "string" ? e : e.displayName || e.name;
509
510
  t && (r = `
@@ -513,27 +514,27 @@ Check the top-level render call using <` + t + ">.");
513
514
  return r;
514
515
  }
515
516
  }
516
- function be(e, r) {
517
+ function he(e, r) {
517
518
  {
518
519
  if (!e._store || e._store.validated || e.key != null)
519
520
  return;
520
521
  e._store.validated = !0;
521
522
  var t = tr(r);
522
- if (me[t])
523
+ if (be[t])
523
524
  return;
524
- me[t] = !0;
525
+ be[t] = !0;
525
526
  var n = "";
526
- e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + O(e._owner.type) + "."), k(e), p('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), k(null);
527
+ e && e._owner && e._owner !== z.current && (n = " It was passed a child from " + T(e._owner.type) + "."), D(e), y('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), D(null);
527
528
  }
528
529
  }
529
- function he(e, r) {
530
+ function Re(e, r) {
530
531
  {
531
532
  if (typeof e != "object")
532
533
  return;
533
534
  if (J(e))
534
535
  for (var t = 0; t < e.length; t++) {
535
536
  var n = e[t];
536
- K(n) && be(n, r);
537
+ K(n) && he(n, r);
537
538
  }
538
539
  else if (K(e))
539
540
  e._store && (e._store.validated = !0);
@@ -541,7 +542,7 @@ Check the top-level render call using <` + t + ">.");
541
542
  var i = Ce(e);
542
543
  if (typeof i == "function" && i !== e.entries)
543
544
  for (var u = i.call(e), o; !(o = u.next()).done; )
544
- K(o.value) && be(o.value, r);
545
+ K(o.value) && he(o.value, r);
545
546
  }
546
547
  }
547
548
  }
@@ -555,19 +556,19 @@ Check the top-level render call using <` + t + ">.");
555
556
  t = r.propTypes;
556
557
  else if (typeof r == "object" && (r.$$typeof === s || // Note: Memo only checks outer props here.
557
558
  // Inner props are checked in the reconciler.
558
- r.$$typeof === m))
559
+ r.$$typeof === p))
559
560
  t = r.propTypes;
560
561
  else
561
562
  return;
562
563
  if (t) {
563
- var n = O(r);
564
+ var n = T(r);
564
565
  Ve(t, e.props, "prop", n, e);
565
566
  } else if (r.PropTypes !== void 0 && !H) {
566
567
  H = !0;
567
- var i = O(r);
568
- p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
568
+ var i = T(r);
569
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
569
570
  }
570
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
571
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
571
572
  }
572
573
  }
573
574
  function ar(e) {
@@ -575,23 +576,23 @@ Check the top-level render call using <` + t + ">.");
575
576
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
576
577
  var n = r[t];
577
578
  if (n !== "children" && n !== "key") {
578
- k(e), p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), k(null);
579
+ D(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
579
580
  break;
580
581
  }
581
582
  }
582
- e.ref !== null && (k(e), p("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
583
+ e.ref !== null && (D(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
583
584
  }
584
585
  }
585
- function Re(e, r, t, n, i, u) {
586
+ function Ee(e, r, t, n, i, u) {
586
587
  {
587
588
  var o = $e(e);
588
589
  if (!o) {
589
590
  var a = "";
590
591
  (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.");
591
592
  var g = rr(i);
592
- g ? a += g : a += ye();
593
+ g ? a += g : a += me();
593
594
  var c;
594
- e === null ? c = "null" : J(e) ? c = "array" : e !== void 0 && e.$$typeof === w ? (c = "<" + (O(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
595
+ e === null ? c = "null" : J(e) ? c = "array" : e !== void 0 && e.$$typeof === E ? (c = "<" + (T(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : c = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", c, a);
595
596
  }
596
597
  var f = er(e, r, t, i, u);
597
598
  if (f == null)
@@ -601,95 +602,103 @@ Check the top-level render call using <` + t + ">.");
601
602
  if (R !== void 0)
602
603
  if (n)
603
604
  if (J(R)) {
604
- for (var D = 0; D < R.length; D++)
605
- he(R[D], e);
605
+ for (var k = 0; k < R.length; k++)
606
+ Re(R[k], e);
606
607
  Object.freeze && Object.freeze(R);
607
608
  } else
608
- 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.");
609
+ y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
609
610
  else
610
- he(R, e);
611
+ Re(R, e);
611
612
  }
612
613
  return e === b ? ar(f) : nr(f), f;
613
614
  }
614
615
  }
615
616
  function or(e, r, t) {
616
- return Re(e, r, t, !0);
617
+ return Ee(e, r, t, !0);
617
618
  }
618
619
  function ir(e, r, t) {
619
- return Re(e, r, t, !1);
620
+ return Ee(e, r, t, !1);
620
621
  }
621
622
  var ur = ir, sr = or;
622
623
  $.Fragment = b, $.jsx = ur, $.jsxs = sr;
623
624
  })()), $;
624
625
  }
625
- var Rr = M.exports, Oe;
626
- function dr() {
627
- return Oe || (Oe = 1, process.env.NODE_ENV === "production" ? M.exports = fr() : M.exports = lr()), M.exports;
626
+ var wr = M.exports, Pe;
627
+ function vr() {
628
+ return Pe || (Pe = 1, process.env.NODE_ENV === "production" ? M.exports = lr() : M.exports = dr()), M.exports;
628
629
  }
629
- var Te = dr();
630
- function vr({
631
- props: P,
632
- context: w,
633
- eventBus: j,
630
+ var Te = vr();
631
+ function pr({
632
+ props: O,
633
+ context: E,
634
+ eventBus: _,
634
635
  adapter: b = (v) => v
635
636
  }) {
636
- const v = window.React, { useEffect: E, useState: y } = v;
637
+ const v = window.React, { useEffect: w, useState: m } = v;
637
638
  return function(l) {
638
639
  const s = () => {
639
- const [_, d] = y(() => b(P));
640
- return E(() => {
641
- const m = (h) => {
640
+ const [P, d] = m(() => b(O));
641
+ return w(() => {
642
+ const p = (h) => {
642
643
  const C = b(h);
643
644
  d(C);
644
645
  };
645
- return j.on(m), () => {
646
- j.remove();
646
+ return _.on(p), () => {
647
+ _.remove();
647
648
  };
648
- }, []), /* @__PURE__ */ Te.jsx(l, { ...w, ..._ });
649
+ }, []), /* @__PURE__ */ Te.jsx(l, { ...E, ...P });
649
650
  };
650
651
  return /* @__PURE__ */ Te.jsx(s, {});
651
652
  };
652
653
  }
653
- const pr = !0, { id: Pe } = cr ?? {}, gr = window.online_development_islocal, yr = window.React, mr = window.ReactDOM, Er = ({
654
- App: P,
655
- setAttributes: w,
656
- adapter: j = (v) => v,
654
+ const yr = !0, { id: X } = fr ?? {}, gr = window.online_development_islocal, mr = window.React, br = window.ReactDOM, hr = async (O, E, _ = null) => {
655
+ cr(O, E, typeof _ == "function" ? _ : (v) => v);
656
+ }, Or = ({
657
+ App: O,
658
+ setAttributes: E = hr,
659
+ adapter: _ = (v) => v,
657
660
  beforeBootstrap: b = (v) => {
658
661
  v();
659
662
  }
660
663
  }) => {
661
- const { createRoot: v } = mr;
662
- if (Pe && (pr || !gr)) {
664
+ const { createRoot: v } = br;
665
+ if (X && (yr || !gr)) {
663
666
  window.CUSTOM_PLUGIN || (window.CUSTOM_PLUGIN = /* @__PURE__ */ new Map());
664
- const E = (y, l, s, _ = {}, d) => {
667
+ const w = (m, l, s, P = {}, d) => {
665
668
  b(
666
669
  async () => {
667
- await w(y, l);
668
- const m = vr({
669
- props: l,
670
- context: s,
671
- eventBus: _,
672
- adapter: j
673
- })(P), h = v(y);
674
- d == null || d(h), h.render(m);
670
+ try {
671
+ await E(m, l);
672
+ const p = pr({
673
+ // Cast props to the generic type expected by the HOC.
674
+ props: l,
675
+ context: s,
676
+ eventBus: P,
677
+ adapter: _
678
+ })(O), h = v(m);
679
+ d == null || d(h), h.render(p);
680
+ } catch (p) {
681
+ console.error(`[Plugin: ${X}] Bootstrap failed:`, p);
682
+ }
675
683
  },
676
- { dom: y, props: l }
684
+ { dom: m, props: l }
677
685
  );
678
686
  };
679
- window.CUSTOM_PLUGIN.set(Pe, E);
687
+ window.CUSTOM_PLUGIN.set(X, w);
680
688
  } else
681
689
  b(() => {
682
- var y;
683
- const E = document.getElementById("root");
684
- if (E) {
685
- const l = v(E), s = yr.createElement(P, {
690
+ var m;
691
+ const w = document.getElementById("root");
692
+ if (w) {
693
+ const l = v(w), s = mr.createElement(O, {
686
694
  type: "development"
687
695
  });
688
- (y = l == null ? void 0 : l.render) == null || y.call(l, s);
696
+ (m = l == null ? void 0 : l.render) == null || m.call(l, s);
689
697
  }
690
698
  });
691
699
  };
692
700
  export {
693
- Er as c
701
+ Or as c,
702
+ hr as s
694
703
  };
695
- //# sourceMappingURL=start-KvBmIDZs.js.map
704
+ //# sourceMappingURL=start-rmMDvB0v.js.map