@appkit/dek-lib 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -51,7 +51,8 @@ var __publicField = (obj, key, value) => {
51
51
  }
52
52
  var jsxRuntime$1 = { exports: {} };
53
53
  var reactJsxRuntime_production_min = {};
54
- /** @license React v16.14.0
54
+ /**
55
+ * @license React
55
56
  * react-jsx-runtime.production.min.js
56
57
  *
57
58
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -64,32 +65,27 @@ var __publicField = (obj, key, value) => {
64
65
  if (hasRequiredReactJsxRuntime_production_min)
65
66
  return reactJsxRuntime_production_min;
66
67
  hasRequiredReactJsxRuntime_production_min = 1;
67
- var f2 = React$3, g = 60103;
68
- reactJsxRuntime_production_min.Fragment = 60107;
69
- if ("function" === typeof Symbol && Symbol.for) {
70
- var h2 = Symbol.for;
71
- g = h2("react.element");
72
- reactJsxRuntime_production_min.Fragment = h2("react.fragment");
73
- }
74
- var m = f2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n4 = Object.prototype.hasOwnProperty, p2 = { key: true, ref: true, __self: true, __source: true };
75
- function q(c2, a2, k) {
76
- var b, d = {}, e4 = null, l2 = null;
77
- void 0 !== k && (e4 = "" + k);
68
+ var f2 = React$3, k = Symbol.for("react.element"), l2 = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n4 = f2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p2 = { key: true, ref: true, __self: true, __source: true };
69
+ function q(c2, a2, g) {
70
+ var b, d = {}, e4 = null, h2 = null;
71
+ void 0 !== g && (e4 = "" + g);
78
72
  void 0 !== a2.key && (e4 = "" + a2.key);
79
- void 0 !== a2.ref && (l2 = a2.ref);
73
+ void 0 !== a2.ref && (h2 = a2.ref);
80
74
  for (b in a2)
81
- n4.call(a2, b) && !p2.hasOwnProperty(b) && (d[b] = a2[b]);
75
+ m.call(a2, b) && !p2.hasOwnProperty(b) && (d[b] = a2[b]);
82
76
  if (c2 && c2.defaultProps)
83
77
  for (b in a2 = c2.defaultProps, a2)
84
78
  void 0 === d[b] && (d[b] = a2[b]);
85
- return { $$typeof: g, type: c2, key: e4, ref: l2, props: d, _owner: m.current };
79
+ return { $$typeof: k, type: c2, key: e4, ref: h2, props: d, _owner: n4.current };
86
80
  }
81
+ reactJsxRuntime_production_min.Fragment = l2;
87
82
  reactJsxRuntime_production_min.jsx = q;
88
83
  reactJsxRuntime_production_min.jsxs = q;
89
84
  return reactJsxRuntime_production_min;
90
85
  }
91
86
  var reactJsxRuntime_development = {};
92
- /** @license React v16.14.0
87
+ /**
88
+ * @license React
93
89
  * react-jsx-runtime.development.js
94
90
  *
95
91
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -102,64 +98,37 @@ var __publicField = (obj, key, value) => {
102
98
  if (hasRequiredReactJsxRuntime_development)
103
99
  return reactJsxRuntime_development;
104
100
  hasRequiredReactJsxRuntime_development = 1;
105
- (function(exports3) {
106
- if (process.env.NODE_ENV !== "production") {
107
- (function() {
108
- var React2 = React$3;
109
- var REACT_ELEMENT_TYPE = 60103;
110
- var REACT_PORTAL_TYPE = 60106;
111
- exports3.Fragment = 60107;
112
- var REACT_STRICT_MODE_TYPE = 60108;
113
- var REACT_PROFILER_TYPE = 60114;
114
- var REACT_PROVIDER_TYPE = 60109;
115
- var REACT_CONTEXT_TYPE = 60110;
116
- var REACT_FORWARD_REF_TYPE = 60112;
117
- var REACT_SUSPENSE_TYPE = 60113;
118
- var REACT_SUSPENSE_LIST_TYPE = 60120;
119
- var REACT_MEMO_TYPE = 60115;
120
- var REACT_LAZY_TYPE = 60116;
121
- var REACT_BLOCK_TYPE = 60121;
122
- var REACT_SERVER_BLOCK_TYPE = 60122;
123
- var REACT_FUNDAMENTAL_TYPE = 60117;
124
- var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
125
- var REACT_LEGACY_HIDDEN_TYPE = 60131;
126
- if (typeof Symbol === "function" && Symbol.for) {
127
- var symbolFor = Symbol.for;
128
- REACT_ELEMENT_TYPE = symbolFor("react.element");
129
- REACT_PORTAL_TYPE = symbolFor("react.portal");
130
- exports3.Fragment = symbolFor("react.fragment");
131
- REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
132
- REACT_PROFILER_TYPE = symbolFor("react.profiler");
133
- REACT_PROVIDER_TYPE = symbolFor("react.provider");
134
- REACT_CONTEXT_TYPE = symbolFor("react.context");
135
- REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
136
- REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
137
- REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
138
- REACT_MEMO_TYPE = symbolFor("react.memo");
139
- REACT_LAZY_TYPE = symbolFor("react.lazy");
140
- REACT_BLOCK_TYPE = symbolFor("react.block");
141
- REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
142
- REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
143
- symbolFor("react.scope");
144
- symbolFor("react.opaque.id");
145
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
146
- symbolFor("react.offscreen");
147
- REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
148
- }
149
- var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
150
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
151
- function getIteratorFn(maybeIterable) {
152
- if (maybeIterable === null || typeof maybeIterable !== "object") {
153
- return null;
154
- }
155
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
156
- if (typeof maybeIterator === "function") {
157
- return maybeIterator;
158
- }
101
+ if (process.env.NODE_ENV !== "production") {
102
+ (function() {
103
+ var React2 = React$3;
104
+ var REACT_ELEMENT_TYPE = Symbol.for("react.element");
105
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
106
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
107
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
108
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
109
+ var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
110
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
111
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
112
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
113
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
114
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
115
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
116
+ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
117
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
118
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
119
+ function getIteratorFn(maybeIterable) {
120
+ if (maybeIterable === null || typeof maybeIterable !== "object") {
159
121
  return null;
160
122
  }
161
- var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
162
- function error2(format2) {
123
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
124
+ if (typeof maybeIterator === "function") {
125
+ return maybeIterator;
126
+ }
127
+ return null;
128
+ }
129
+ var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
130
+ function error2(format2) {
131
+ {
163
132
  {
164
133
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
165
134
  args[_key2 - 1] = arguments[_key2];
@@ -167,546 +136,838 @@ var __publicField = (obj, key, value) => {
167
136
  printWarning("error", format2, args);
168
137
  }
169
138
  }
170
- function printWarning(level, format2, args) {
171
- {
172
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
173
- var stack = "";
174
- if (currentlyValidatingElement) {
175
- var name = getComponentName(currentlyValidatingElement.type);
176
- var owner = currentlyValidatingElement._owner;
177
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
178
- }
179
- stack += ReactDebugCurrentFrame.getStackAddendum();
180
- if (stack !== "") {
181
- format2 += "%s";
182
- args = args.concat([stack]);
183
- }
184
- var argsWithFormat = args.map(function(item) {
185
- return "" + item;
186
- });
187
- argsWithFormat.unshift("Warning: " + format2);
188
- Function.prototype.apply.call(console[level], console, argsWithFormat);
139
+ }
140
+ function printWarning(level, format2, args) {
141
+ {
142
+ var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
143
+ var stack = ReactDebugCurrentFrame2.getStackAddendum();
144
+ if (stack !== "") {
145
+ format2 += "%s";
146
+ args = args.concat([stack]);
189
147
  }
148
+ var argsWithFormat = args.map(function(item) {
149
+ return String(item);
150
+ });
151
+ argsWithFormat.unshift("Warning: " + format2);
152
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
190
153
  }
191
- var enableScopeAPI = false;
192
- function isValidElementType(type) {
193
- if (typeof type === "string" || typeof type === "function") {
194
- return true;
195
- }
196
- if (type === exports3.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
154
+ }
155
+ var enableScopeAPI = false;
156
+ var enableCacheElement = false;
157
+ var enableTransitionTracing = false;
158
+ var enableLegacyHidden = false;
159
+ var enableDebugTracing = false;
160
+ var REACT_MODULE_REFERENCE;
161
+ {
162
+ REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
163
+ }
164
+ function isValidElementType(type) {
165
+ if (typeof type === "string" || typeof type === "function") {
166
+ return true;
167
+ }
168
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
169
+ return true;
170
+ }
171
+ if (typeof type === "object" && type !== null) {
172
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
173
+ // types supported by any Flight configuration anywhere since
174
+ // we don't know which Flight build this will end up being used
175
+ // with.
176
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
197
177
  return true;
198
178
  }
199
- if (typeof type === "object" && type !== null) {
200
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
201
- return true;
202
- }
179
+ }
180
+ return false;
181
+ }
182
+ function getWrappedName(outerType, innerType, wrapperName) {
183
+ var displayName = outerType.displayName;
184
+ if (displayName) {
185
+ return displayName;
186
+ }
187
+ var functionName = innerType.displayName || innerType.name || "";
188
+ return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
189
+ }
190
+ function getContextName(type) {
191
+ return type.displayName || "Context";
192
+ }
193
+ function getComponentNameFromType(type) {
194
+ if (type == null) {
195
+ return null;
196
+ }
197
+ {
198
+ if (typeof type.tag === "number") {
199
+ error2("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
203
200
  }
204
- return false;
205
201
  }
206
- var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
207
- function describeComponentFrame(name, source, ownerName) {
208
- var sourceInfo = "";
209
- if (source) {
210
- var path = source.fileName;
211
- var fileName = path.replace(BEFORE_SLASH_RE, "");
212
- {
213
- if (/^index\./.test(fileName)) {
214
- var match = path.match(BEFORE_SLASH_RE);
215
- if (match) {
216
- var pathBeforeSlash = match[1];
217
- if (pathBeforeSlash) {
218
- var folderName = pathBeforeSlash.replace(BEFORE_SLASH_RE, "");
219
- fileName = folderName + "/" + fileName;
220
- }
221
- }
202
+ if (typeof type === "function") {
203
+ return type.displayName || type.name || null;
204
+ }
205
+ if (typeof type === "string") {
206
+ return type;
207
+ }
208
+ switch (type) {
209
+ case REACT_FRAGMENT_TYPE:
210
+ return "Fragment";
211
+ case REACT_PORTAL_TYPE:
212
+ return "Portal";
213
+ case REACT_PROFILER_TYPE:
214
+ return "Profiler";
215
+ case REACT_STRICT_MODE_TYPE:
216
+ return "StrictMode";
217
+ case REACT_SUSPENSE_TYPE:
218
+ return "Suspense";
219
+ case REACT_SUSPENSE_LIST_TYPE:
220
+ return "SuspenseList";
221
+ }
222
+ if (typeof type === "object") {
223
+ switch (type.$$typeof) {
224
+ case REACT_CONTEXT_TYPE:
225
+ var context = type;
226
+ return getContextName(context) + ".Consumer";
227
+ case REACT_PROVIDER_TYPE:
228
+ var provider = type;
229
+ return getContextName(provider._context) + ".Provider";
230
+ case REACT_FORWARD_REF_TYPE:
231
+ return getWrappedName(type, type.render, "ForwardRef");
232
+ case REACT_MEMO_TYPE:
233
+ var outerName = type.displayName || null;
234
+ if (outerName !== null) {
235
+ return outerName;
236
+ }
237
+ return getComponentNameFromType(type.type) || "Memo";
238
+ case REACT_LAZY_TYPE: {
239
+ var lazyComponent = type;
240
+ var payload = lazyComponent._payload;
241
+ var init = lazyComponent._init;
242
+ try {
243
+ return getComponentNameFromType(init(payload));
244
+ } catch (x) {
245
+ return null;
222
246
  }
223
247
  }
224
- sourceInfo = " (at " + fileName + ":" + source.lineNumber + ")";
225
- } else if (ownerName) {
226
- sourceInfo = " (created by " + ownerName + ")";
227
248
  }
228
- return "\n in " + (name || "Unknown") + sourceInfo;
229
- }
230
- var Resolved = 1;
231
- function refineResolvedLazyComponent(lazyComponent) {
232
- return lazyComponent._status === Resolved ? lazyComponent._result : null;
233
249
  }
234
- function getWrappedName(outerType, innerType, wrapperName) {
235
- var functionName = innerType.displayName || innerType.name || "";
236
- return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
250
+ return null;
251
+ }
252
+ var assign2 = Object.assign;
253
+ var disabledDepth = 0;
254
+ var prevLog;
255
+ var prevInfo;
256
+ var prevWarn;
257
+ var prevError;
258
+ var prevGroup;
259
+ var prevGroupCollapsed;
260
+ var prevGroupEnd;
261
+ function disabledLog() {
262
+ }
263
+ disabledLog.__reactDisabledLog = true;
264
+ function disableLogs() {
265
+ {
266
+ if (disabledDepth === 0) {
267
+ prevLog = console.log;
268
+ prevInfo = console.info;
269
+ prevWarn = console.warn;
270
+ prevError = console.error;
271
+ prevGroup = console.group;
272
+ prevGroupCollapsed = console.groupCollapsed;
273
+ prevGroupEnd = console.groupEnd;
274
+ var props = {
275
+ configurable: true,
276
+ enumerable: true,
277
+ value: disabledLog,
278
+ writable: true
279
+ };
280
+ Object.defineProperties(console, {
281
+ info: props,
282
+ log: props,
283
+ warn: props,
284
+ error: props,
285
+ group: props,
286
+ groupCollapsed: props,
287
+ groupEnd: props
288
+ });
289
+ }
290
+ disabledDepth++;
237
291
  }
238
- function getComponentName(type) {
239
- if (type == null) {
240
- return null;
292
+ }
293
+ function reenableLogs() {
294
+ {
295
+ disabledDepth--;
296
+ if (disabledDepth === 0) {
297
+ var props = {
298
+ configurable: true,
299
+ enumerable: true,
300
+ writable: true
301
+ };
302
+ Object.defineProperties(console, {
303
+ log: assign2({}, props, {
304
+ value: prevLog
305
+ }),
306
+ info: assign2({}, props, {
307
+ value: prevInfo
308
+ }),
309
+ warn: assign2({}, props, {
310
+ value: prevWarn
311
+ }),
312
+ error: assign2({}, props, {
313
+ value: prevError
314
+ }),
315
+ group: assign2({}, props, {
316
+ value: prevGroup
317
+ }),
318
+ groupCollapsed: assign2({}, props, {
319
+ value: prevGroupCollapsed
320
+ }),
321
+ groupEnd: assign2({}, props, {
322
+ value: prevGroupEnd
323
+ })
324
+ });
241
325
  }
242
- {
243
- if (typeof type.tag === "number") {
244
- error2("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
245
- }
326
+ if (disabledDepth < 0) {
327
+ error2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
246
328
  }
247
- if (typeof type === "function") {
248
- return type.displayName || type.name || null;
329
+ }
330
+ }
331
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
332
+ var prefix;
333
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
334
+ {
335
+ if (prefix === void 0) {
336
+ try {
337
+ throw Error();
338
+ } catch (x) {
339
+ var match = x.stack.trim().match(/\n( *(at )?)/);
340
+ prefix = match && match[1] || "";
341
+ }
249
342
  }
250
- if (typeof type === "string") {
251
- return type;
343
+ return "\n" + prefix + name;
344
+ }
345
+ }
346
+ var reentry = false;
347
+ var componentFrameCache;
348
+ {
349
+ var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
350
+ componentFrameCache = new PossiblyWeakMap();
351
+ }
352
+ function describeNativeComponentFrame(fn2, construct) {
353
+ if (!fn2 || reentry) {
354
+ return "";
355
+ }
356
+ {
357
+ var frame = componentFrameCache.get(fn2);
358
+ if (frame !== void 0) {
359
+ return frame;
252
360
  }
253
- switch (type) {
254
- case exports3.Fragment:
255
- return "Fragment";
256
- case REACT_PORTAL_TYPE:
257
- return "Portal";
258
- case REACT_PROFILER_TYPE:
259
- return "Profiler";
260
- case REACT_STRICT_MODE_TYPE:
261
- return "StrictMode";
262
- case REACT_SUSPENSE_TYPE:
263
- return "Suspense";
264
- case REACT_SUSPENSE_LIST_TYPE:
265
- return "SuspenseList";
266
- }
267
- if (typeof type === "object") {
268
- switch (type.$$typeof) {
269
- case REACT_CONTEXT_TYPE:
270
- return "Context.Consumer";
271
- case REACT_PROVIDER_TYPE:
272
- return "Context.Provider";
273
- case REACT_FORWARD_REF_TYPE:
274
- return getWrappedName(type, type.render, "ForwardRef");
275
- case REACT_MEMO_TYPE:
276
- return getComponentName(type.type);
277
- case REACT_BLOCK_TYPE:
278
- return getComponentName(type.render);
279
- case REACT_LAZY_TYPE: {
280
- var thenable = type;
281
- var resolvedThenable = refineResolvedLazyComponent(thenable);
282
- if (resolvedThenable) {
283
- return getComponentName(resolvedThenable);
361
+ }
362
+ var control;
363
+ reentry = true;
364
+ var previousPrepareStackTrace = Error.prepareStackTrace;
365
+ Error.prepareStackTrace = void 0;
366
+ var previousDispatcher;
367
+ {
368
+ previousDispatcher = ReactCurrentDispatcher.current;
369
+ ReactCurrentDispatcher.current = null;
370
+ disableLogs();
371
+ }
372
+ try {
373
+ if (construct) {
374
+ var Fake = function() {
375
+ throw Error();
376
+ };
377
+ Object.defineProperty(Fake.prototype, "props", {
378
+ set: function() {
379
+ throw Error();
380
+ }
381
+ });
382
+ if (typeof Reflect === "object" && Reflect.construct) {
383
+ try {
384
+ Reflect.construct(Fake, []);
385
+ } catch (x) {
386
+ control = x;
387
+ }
388
+ Reflect.construct(fn2, [], Fake);
389
+ } else {
390
+ try {
391
+ Fake.call();
392
+ } catch (x) {
393
+ control = x;
394
+ }
395
+ fn2.call(Fake.prototype);
396
+ }
397
+ } else {
398
+ try {
399
+ throw Error();
400
+ } catch (x) {
401
+ control = x;
402
+ }
403
+ fn2();
404
+ }
405
+ } catch (sample) {
406
+ if (sample && control && typeof sample.stack === "string") {
407
+ var sampleLines = sample.stack.split("\n");
408
+ var controlLines = control.stack.split("\n");
409
+ var s2 = sampleLines.length - 1;
410
+ var c2 = controlLines.length - 1;
411
+ while (s2 >= 1 && c2 >= 0 && sampleLines[s2] !== controlLines[c2]) {
412
+ c2--;
413
+ }
414
+ for (; s2 >= 1 && c2 >= 0; s2--, c2--) {
415
+ if (sampleLines[s2] !== controlLines[c2]) {
416
+ if (s2 !== 1 || c2 !== 1) {
417
+ do {
418
+ s2--;
419
+ c2--;
420
+ if (c2 < 0 || sampleLines[s2] !== controlLines[c2]) {
421
+ var _frame = "\n" + sampleLines[s2].replace(" at new ", " at ");
422
+ if (fn2.displayName && _frame.includes("<anonymous>")) {
423
+ _frame = _frame.replace("<anonymous>", fn2.displayName);
424
+ }
425
+ {
426
+ if (typeof fn2 === "function") {
427
+ componentFrameCache.set(fn2, _frame);
428
+ }
429
+ }
430
+ return _frame;
431
+ }
432
+ } while (s2 >= 1 && c2 >= 0);
284
433
  }
285
434
  break;
286
435
  }
287
436
  }
288
437
  }
289
- return null;
290
- }
291
- var loggedTypeFailures = {};
292
- ReactSharedInternals.ReactDebugCurrentFrame;
293
- var currentlyValidatingElement = null;
294
- function setCurrentlyValidatingElement(element) {
438
+ } finally {
439
+ reentry = false;
295
440
  {
296
- currentlyValidatingElement = element;
441
+ ReactCurrentDispatcher.current = previousDispatcher;
442
+ reenableLogs();
297
443
  }
444
+ Error.prepareStackTrace = previousPrepareStackTrace;
298
445
  }
299
- function checkPropTypes(typeSpecs, values, location2, componentName, element) {
300
- {
301
- var has2 = Function.call.bind(Object.prototype.hasOwnProperty);
302
- for (var typeSpecName in typeSpecs) {
303
- if (has2(typeSpecs, typeSpecName)) {
304
- var error$1 = void 0;
305
- try {
306
- if (typeof typeSpecs[typeSpecName] !== "function") {
307
- var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
308
- err.name = "Invariant Violation";
309
- throw err;
310
- }
311
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
312
- } catch (ex2) {
313
- error$1 = ex2;
314
- }
315
- if (error$1 && !(error$1 instanceof Error)) {
316
- setCurrentlyValidatingElement(element);
317
- error2("%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).", componentName || "React class", location2, typeSpecName, typeof error$1);
318
- setCurrentlyValidatingElement(null);
319
- }
320
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
321
- loggedTypeFailures[error$1.message] = true;
322
- setCurrentlyValidatingElement(element);
323
- error2("Failed %s type: %s", location2, error$1.message);
324
- setCurrentlyValidatingElement(null);
325
- }
326
- }
327
- }
446
+ var name = fn2 ? fn2.displayName || fn2.name : "";
447
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
448
+ {
449
+ if (typeof fn2 === "function") {
450
+ componentFrameCache.set(fn2, syntheticFrame);
328
451
  }
329
452
  }
330
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
331
- var hasOwnProperty2 = Object.prototype.hasOwnProperty;
332
- var RESERVED_PROPS = {
333
- key: true,
334
- ref: true,
335
- __self: true,
336
- __source: true
337
- };
338
- var specialPropKeyWarningShown;
339
- var specialPropRefWarningShown;
340
- var didWarnAboutStringRefs;
453
+ return syntheticFrame;
454
+ }
455
+ function describeFunctionComponentFrame(fn2, source, ownerFn) {
341
456
  {
342
- didWarnAboutStringRefs = {};
457
+ return describeNativeComponentFrame(fn2, false);
343
458
  }
344
- function hasValidRef(config2) {
459
+ }
460
+ function shouldConstruct(Component) {
461
+ var prototype2 = Component.prototype;
462
+ return !!(prototype2 && prototype2.isReactComponent);
463
+ }
464
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
465
+ if (type == null) {
466
+ return "";
467
+ }
468
+ if (typeof type === "function") {
345
469
  {
346
- if (hasOwnProperty2.call(config2, "ref")) {
347
- var getter = Object.getOwnPropertyDescriptor(config2, "ref").get;
348
- if (getter && getter.isReactWarning) {
349
- return false;
470
+ return describeNativeComponentFrame(type, shouldConstruct(type));
471
+ }
472
+ }
473
+ if (typeof type === "string") {
474
+ return describeBuiltInComponentFrame(type);
475
+ }
476
+ switch (type) {
477
+ case REACT_SUSPENSE_TYPE:
478
+ return describeBuiltInComponentFrame("Suspense");
479
+ case REACT_SUSPENSE_LIST_TYPE:
480
+ return describeBuiltInComponentFrame("SuspenseList");
481
+ }
482
+ if (typeof type === "object") {
483
+ switch (type.$$typeof) {
484
+ case REACT_FORWARD_REF_TYPE:
485
+ return describeFunctionComponentFrame(type.render);
486
+ case REACT_MEMO_TYPE:
487
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
488
+ case REACT_LAZY_TYPE: {
489
+ var lazyComponent = type;
490
+ var payload = lazyComponent._payload;
491
+ var init = lazyComponent._init;
492
+ try {
493
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
494
+ } catch (x) {
350
495
  }
351
496
  }
352
497
  }
353
- return config2.ref !== void 0;
354
498
  }
355
- function hasValidKey(config2) {
356
- {
357
- if (hasOwnProperty2.call(config2, "key")) {
358
- var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
359
- if (getter && getter.isReactWarning) {
360
- return false;
361
- }
362
- }
499
+ return "";
500
+ }
501
+ var hasOwnProperty2 = Object.prototype.hasOwnProperty;
502
+ var loggedTypeFailures = {};
503
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
504
+ function setCurrentlyValidatingElement(element) {
505
+ {
506
+ if (element) {
507
+ var owner = element._owner;
508
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
509
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
510
+ } else {
511
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
363
512
  }
364
- return config2.key !== void 0;
365
513
  }
366
- function warnIfStringRefCannotBeAutoConverted(config2, self2) {
367
- {
368
- if (typeof config2.ref === "string" && ReactCurrentOwner.current && self2 && ReactCurrentOwner.current.stateNode !== self2) {
369
- var componentName = getComponentName(ReactCurrentOwner.current.type);
370
- if (!didWarnAboutStringRefs[componentName]) {
371
- error2('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', getComponentName(ReactCurrentOwner.current.type), config2.ref);
372
- didWarnAboutStringRefs[componentName] = true;
514
+ }
515
+ function checkPropTypes(typeSpecs, values, location2, componentName, element) {
516
+ {
517
+ var has2 = Function.call.bind(hasOwnProperty2);
518
+ for (var typeSpecName in typeSpecs) {
519
+ if (has2(typeSpecs, typeSpecName)) {
520
+ var error$1 = void 0;
521
+ try {
522
+ if (typeof typeSpecs[typeSpecName] !== "function") {
523
+ var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
524
+ err.name = "Invariant Violation";
525
+ throw err;
526
+ }
527
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
528
+ } catch (ex2) {
529
+ error$1 = ex2;
530
+ }
531
+ if (error$1 && !(error$1 instanceof Error)) {
532
+ setCurrentlyValidatingElement(element);
533
+ error2("%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).", componentName || "React class", location2, typeSpecName, typeof error$1);
534
+ setCurrentlyValidatingElement(null);
535
+ }
536
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
537
+ loggedTypeFailures[error$1.message] = true;
538
+ setCurrentlyValidatingElement(element);
539
+ error2("Failed %s type: %s", location2, error$1.message);
540
+ setCurrentlyValidatingElement(null);
373
541
  }
374
542
  }
375
543
  }
376
544
  }
377
- function defineKeyPropWarningGetter(props, displayName) {
378
- {
379
- var warnAboutAccessingKey = function() {
380
- if (!specialPropKeyWarningShown) {
381
- specialPropKeyWarningShown = true;
382
- error2("%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)", displayName);
383
- }
384
- };
385
- warnAboutAccessingKey.isReactWarning = true;
386
- Object.defineProperty(props, "key", {
387
- get: warnAboutAccessingKey,
388
- configurable: true
389
- });
545
+ }
546
+ var isArrayImpl = Array.isArray;
547
+ function isArray2(a2) {
548
+ return isArrayImpl(a2);
549
+ }
550
+ function typeName(value) {
551
+ {
552
+ var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
553
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
554
+ return type;
555
+ }
556
+ }
557
+ function willCoercionThrow(value) {
558
+ {
559
+ try {
560
+ testStringCoercion(value);
561
+ return false;
562
+ } catch (e4) {
563
+ return true;
390
564
  }
391
565
  }
392
- function defineRefPropWarningGetter(props, displayName) {
393
- {
394
- var warnAboutAccessingRef = function() {
395
- if (!specialPropRefWarningShown) {
396
- specialPropRefWarningShown = true;
397
- error2("%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)", displayName);
398
- }
399
- };
400
- warnAboutAccessingRef.isReactWarning = true;
401
- Object.defineProperty(props, "ref", {
402
- get: warnAboutAccessingRef,
403
- configurable: true
404
- });
566
+ }
567
+ function testStringCoercion(value) {
568
+ return "" + value;
569
+ }
570
+ function checkKeyStringCoercion(value) {
571
+ {
572
+ if (willCoercionThrow(value)) {
573
+ error2("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
574
+ return testStringCoercion(value);
405
575
  }
406
576
  }
407
- var ReactElement = function(type, key, ref, self2, source, owner, props) {
408
- var element = {
409
- // This tag allows us to uniquely identify this as a React Element
410
- $$typeof: REACT_ELEMENT_TYPE,
411
- // Built-in properties that belong on the element
412
- type,
413
- key,
414
- ref,
415
- props,
416
- // Record the component responsible for creating this element.
417
- _owner: owner
418
- };
419
- {
420
- element._store = {};
421
- Object.defineProperty(element._store, "validated", {
422
- configurable: false,
423
- enumerable: false,
424
- writable: true,
425
- value: false
426
- });
427
- Object.defineProperty(element, "_self", {
428
- configurable: false,
429
- enumerable: false,
430
- writable: false,
431
- value: self2
432
- });
433
- Object.defineProperty(element, "_source", {
434
- configurable: false,
435
- enumerable: false,
436
- writable: false,
437
- value: source
438
- });
439
- if (Object.freeze) {
440
- Object.freeze(element.props);
441
- Object.freeze(element);
577
+ }
578
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
579
+ var RESERVED_PROPS = {
580
+ key: true,
581
+ ref: true,
582
+ __self: true,
583
+ __source: true
584
+ };
585
+ var specialPropKeyWarningShown;
586
+ var specialPropRefWarningShown;
587
+ var didWarnAboutStringRefs;
588
+ {
589
+ didWarnAboutStringRefs = {};
590
+ }
591
+ function hasValidRef(config2) {
592
+ {
593
+ if (hasOwnProperty2.call(config2, "ref")) {
594
+ var getter = Object.getOwnPropertyDescriptor(config2, "ref").get;
595
+ if (getter && getter.isReactWarning) {
596
+ return false;
442
597
  }
443
598
  }
444
- return element;
445
- };
446
- function jsxDEV(type, config2, maybeKey, source, self2) {
447
- {
448
- var propName;
449
- var props = {};
450
- var key = null;
451
- var ref = null;
452
- if (maybeKey !== void 0) {
453
- key = "" + maybeKey;
454
- }
455
- if (hasValidKey(config2)) {
456
- key = "" + config2.key;
457
- }
458
- if (hasValidRef(config2)) {
459
- ref = config2.ref;
460
- warnIfStringRefCannotBeAutoConverted(config2, self2);
461
- }
462
- for (propName in config2) {
463
- if (hasOwnProperty2.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
464
- props[propName] = config2[propName];
465
- }
466
- }
467
- if (type && type.defaultProps) {
468
- var defaultProps = type.defaultProps;
469
- for (propName in defaultProps) {
470
- if (props[propName] === void 0) {
471
- props[propName] = defaultProps[propName];
472
- }
473
- }
599
+ }
600
+ return config2.ref !== void 0;
601
+ }
602
+ function hasValidKey(config2) {
603
+ {
604
+ if (hasOwnProperty2.call(config2, "key")) {
605
+ var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
606
+ if (getter && getter.isReactWarning) {
607
+ return false;
474
608
  }
475
- if (key || ref) {
476
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
477
- if (key) {
478
- defineKeyPropWarningGetter(props, displayName);
479
- }
480
- if (ref) {
481
- defineRefPropWarningGetter(props, displayName);
482
- }
609
+ }
610
+ }
611
+ return config2.key !== void 0;
612
+ }
613
+ function warnIfStringRefCannotBeAutoConverted(config2, self2) {
614
+ {
615
+ if (typeof config2.ref === "string" && ReactCurrentOwner.current && self2 && ReactCurrentOwner.current.stateNode !== self2) {
616
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
617
+ if (!didWarnAboutStringRefs[componentName]) {
618
+ error2('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', getComponentNameFromType(ReactCurrentOwner.current.type), config2.ref);
619
+ didWarnAboutStringRefs[componentName] = true;
483
620
  }
484
- return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
485
621
  }
486
622
  }
487
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
488
- ReactSharedInternals.ReactDebugCurrentFrame;
489
- function setCurrentlyValidatingElement$1(element) {
490
- currentlyValidatingElement = element;
623
+ }
624
+ function defineKeyPropWarningGetter(props, displayName) {
625
+ {
626
+ var warnAboutAccessingKey = function() {
627
+ if (!specialPropKeyWarningShown) {
628
+ specialPropKeyWarningShown = true;
629
+ error2("%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)", displayName);
630
+ }
631
+ };
632
+ warnAboutAccessingKey.isReactWarning = true;
633
+ Object.defineProperty(props, "key", {
634
+ get: warnAboutAccessingKey,
635
+ configurable: true
636
+ });
491
637
  }
492
- var propTypesMisspellWarningShown;
638
+ }
639
+ function defineRefPropWarningGetter(props, displayName) {
493
640
  {
494
- propTypesMisspellWarningShown = false;
641
+ var warnAboutAccessingRef = function() {
642
+ if (!specialPropRefWarningShown) {
643
+ specialPropRefWarningShown = true;
644
+ error2("%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)", displayName);
645
+ }
646
+ };
647
+ warnAboutAccessingRef.isReactWarning = true;
648
+ Object.defineProperty(props, "ref", {
649
+ get: warnAboutAccessingRef,
650
+ configurable: true
651
+ });
495
652
  }
496
- function isValidElement(object) {
497
- {
498
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
653
+ }
654
+ var ReactElement = function(type, key, ref, self2, source, owner, props) {
655
+ var element = {
656
+ // This tag allows us to uniquely identify this as a React Element
657
+ $$typeof: REACT_ELEMENT_TYPE,
658
+ // Built-in properties that belong on the element
659
+ type,
660
+ key,
661
+ ref,
662
+ props,
663
+ // Record the component responsible for creating this element.
664
+ _owner: owner
665
+ };
666
+ {
667
+ element._store = {};
668
+ Object.defineProperty(element._store, "validated", {
669
+ configurable: false,
670
+ enumerable: false,
671
+ writable: true,
672
+ value: false
673
+ });
674
+ Object.defineProperty(element, "_self", {
675
+ configurable: false,
676
+ enumerable: false,
677
+ writable: false,
678
+ value: self2
679
+ });
680
+ Object.defineProperty(element, "_source", {
681
+ configurable: false,
682
+ enumerable: false,
683
+ writable: false,
684
+ value: source
685
+ });
686
+ if (Object.freeze) {
687
+ Object.freeze(element.props);
688
+ Object.freeze(element);
499
689
  }
500
690
  }
501
- function getDeclarationErrorAddendum() {
502
- {
503
- if (ReactCurrentOwner$1.current) {
504
- var name = getComponentName(ReactCurrentOwner$1.current.type);
505
- if (name) {
506
- return "\n\nCheck the render method of `" + name + "`.";
507
- }
691
+ return element;
692
+ };
693
+ function jsxDEV(type, config2, maybeKey, source, self2) {
694
+ {
695
+ var propName;
696
+ var props = {};
697
+ var key = null;
698
+ var ref = null;
699
+ if (maybeKey !== void 0) {
700
+ {
701
+ checkKeyStringCoercion(maybeKey);
508
702
  }
509
- return "";
703
+ key = "" + maybeKey;
510
704
  }
511
- }
512
- function getSourceInfoErrorAddendum(source) {
513
- {
514
- if (source !== void 0) {
515
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
516
- var lineNumber = source.lineNumber;
517
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
705
+ if (hasValidKey(config2)) {
706
+ {
707
+ checkKeyStringCoercion(config2.key);
518
708
  }
519
- return "";
709
+ key = "" + config2.key;
520
710
  }
521
- }
522
- var ownerHasKeyUseWarning = {};
523
- function getCurrentComponentErrorInfo(parentType) {
524
- {
525
- var info = getDeclarationErrorAddendum();
526
- if (!info) {
527
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
528
- if (parentName) {
529
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
711
+ if (hasValidRef(config2)) {
712
+ ref = config2.ref;
713
+ warnIfStringRefCannotBeAutoConverted(config2, self2);
714
+ }
715
+ for (propName in config2) {
716
+ if (hasOwnProperty2.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
717
+ props[propName] = config2[propName];
718
+ }
719
+ }
720
+ if (type && type.defaultProps) {
721
+ var defaultProps = type.defaultProps;
722
+ for (propName in defaultProps) {
723
+ if (props[propName] === void 0) {
724
+ props[propName] = defaultProps[propName];
530
725
  }
531
726
  }
532
- return info;
533
727
  }
534
- }
535
- function validateExplicitKey(element, parentType) {
536
- {
537
- if (!element._store || element._store.validated || element.key != null) {
538
- return;
728
+ if (key || ref) {
729
+ var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
730
+ if (key) {
731
+ defineKeyPropWarningGetter(props, displayName);
539
732
  }
540
- element._store.validated = true;
541
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
542
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
543
- return;
733
+ if (ref) {
734
+ defineRefPropWarningGetter(props, displayName);
544
735
  }
545
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
546
- var childOwner = "";
547
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
548
- childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
736
+ }
737
+ return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
738
+ }
739
+ }
740
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
741
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
742
+ function setCurrentlyValidatingElement$1(element) {
743
+ {
744
+ if (element) {
745
+ var owner = element._owner;
746
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
747
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
748
+ } else {
749
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
750
+ }
751
+ }
752
+ }
753
+ var propTypesMisspellWarningShown;
754
+ {
755
+ propTypesMisspellWarningShown = false;
756
+ }
757
+ function isValidElement(object) {
758
+ {
759
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
760
+ }
761
+ }
762
+ function getDeclarationErrorAddendum() {
763
+ {
764
+ if (ReactCurrentOwner$1.current) {
765
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
766
+ if (name) {
767
+ return "\n\nCheck the render method of `" + name + "`.";
549
768
  }
550
- setCurrentlyValidatingElement$1(element);
551
- error2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
552
- setCurrentlyValidatingElement$1(null);
553
769
  }
770
+ return "";
554
771
  }
555
- function validateChildKeys(node, parentType) {
556
- {
557
- if (typeof node !== "object") {
558
- return;
772
+ }
773
+ function getSourceInfoErrorAddendum(source) {
774
+ {
775
+ if (source !== void 0) {
776
+ var fileName = source.fileName.replace(/^.*[\\\/]/, "");
777
+ var lineNumber = source.lineNumber;
778
+ return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
779
+ }
780
+ return "";
781
+ }
782
+ }
783
+ var ownerHasKeyUseWarning = {};
784
+ function getCurrentComponentErrorInfo(parentType) {
785
+ {
786
+ var info = getDeclarationErrorAddendum();
787
+ if (!info) {
788
+ var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
789
+ if (parentName) {
790
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
559
791
  }
560
- if (Array.isArray(node)) {
561
- for (var i4 = 0; i4 < node.length; i4++) {
562
- var child = node[i4];
563
- if (isValidElement(child)) {
564
- validateExplicitKey(child, parentType);
565
- }
566
- }
567
- } else if (isValidElement(node)) {
568
- if (node._store) {
569
- node._store.validated = true;
792
+ }
793
+ return info;
794
+ }
795
+ }
796
+ function validateExplicitKey(element, parentType) {
797
+ {
798
+ if (!element._store || element._store.validated || element.key != null) {
799
+ return;
800
+ }
801
+ element._store.validated = true;
802
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
803
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
804
+ return;
805
+ }
806
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
807
+ var childOwner = "";
808
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
809
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
810
+ }
811
+ setCurrentlyValidatingElement$1(element);
812
+ error2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
813
+ setCurrentlyValidatingElement$1(null);
814
+ }
815
+ }
816
+ function validateChildKeys(node, parentType) {
817
+ {
818
+ if (typeof node !== "object") {
819
+ return;
820
+ }
821
+ if (isArray2(node)) {
822
+ for (var i4 = 0; i4 < node.length; i4++) {
823
+ var child = node[i4];
824
+ if (isValidElement(child)) {
825
+ validateExplicitKey(child, parentType);
570
826
  }
571
- } else if (node) {
572
- var iteratorFn = getIteratorFn(node);
573
- if (typeof iteratorFn === "function") {
574
- if (iteratorFn !== node.entries) {
575
- var iterator = iteratorFn.call(node);
576
- var step;
577
- while (!(step = iterator.next()).done) {
578
- if (isValidElement(step.value)) {
579
- validateExplicitKey(step.value, parentType);
580
- }
827
+ }
828
+ } else if (isValidElement(node)) {
829
+ if (node._store) {
830
+ node._store.validated = true;
831
+ }
832
+ } else if (node) {
833
+ var iteratorFn = getIteratorFn(node);
834
+ if (typeof iteratorFn === "function") {
835
+ if (iteratorFn !== node.entries) {
836
+ var iterator = iteratorFn.call(node);
837
+ var step;
838
+ while (!(step = iterator.next()).done) {
839
+ if (isValidElement(step.value)) {
840
+ validateExplicitKey(step.value, parentType);
581
841
  }
582
842
  }
583
843
  }
584
844
  }
585
845
  }
586
846
  }
587
- function validatePropTypes(element) {
588
- {
589
- var type = element.type;
590
- if (type === null || type === void 0 || typeof type === "string") {
591
- return;
592
- }
593
- var propTypes2;
594
- if (typeof type === "function") {
595
- propTypes2 = type.propTypes;
596
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
597
- // Inner props are checked in the reconciler.
598
- type.$$typeof === REACT_MEMO_TYPE)) {
599
- propTypes2 = type.propTypes;
600
- } else {
601
- return;
602
- }
603
- if (propTypes2) {
604
- var name = getComponentName(type);
605
- checkPropTypes(propTypes2, element.props, "prop", name, element);
606
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
607
- propTypesMisspellWarningShown = true;
608
- var _name = getComponentName(type);
609
- error2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
610
- }
611
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
612
- error2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
613
- }
847
+ }
848
+ function validatePropTypes(element) {
849
+ {
850
+ var type = element.type;
851
+ if (type === null || type === void 0 || typeof type === "string") {
852
+ return;
853
+ }
854
+ var propTypes2;
855
+ if (typeof type === "function") {
856
+ propTypes2 = type.propTypes;
857
+ } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
858
+ // Inner props are checked in the reconciler.
859
+ type.$$typeof === REACT_MEMO_TYPE)) {
860
+ propTypes2 = type.propTypes;
861
+ } else {
862
+ return;
863
+ }
864
+ if (propTypes2) {
865
+ var name = getComponentNameFromType(type);
866
+ checkPropTypes(propTypes2, element.props, "prop", name, element);
867
+ } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
868
+ propTypesMisspellWarningShown = true;
869
+ var _name = getComponentNameFromType(type);
870
+ error2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
871
+ }
872
+ if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
873
+ error2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
614
874
  }
615
875
  }
616
- function validateFragmentProps(fragment) {
617
- {
618
- var keys2 = Object.keys(fragment.props);
619
- for (var i4 = 0; i4 < keys2.length; i4++) {
620
- var key = keys2[i4];
621
- if (key !== "children" && key !== "key") {
622
- setCurrentlyValidatingElement$1(fragment);
623
- error2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
624
- setCurrentlyValidatingElement$1(null);
625
- break;
626
- }
627
- }
628
- if (fragment.ref !== null) {
876
+ }
877
+ function validateFragmentProps(fragment) {
878
+ {
879
+ var keys2 = Object.keys(fragment.props);
880
+ for (var i4 = 0; i4 < keys2.length; i4++) {
881
+ var key = keys2[i4];
882
+ if (key !== "children" && key !== "key") {
629
883
  setCurrentlyValidatingElement$1(fragment);
630
- error2("Invalid attribute `ref` supplied to `React.Fragment`.");
884
+ error2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
631
885
  setCurrentlyValidatingElement$1(null);
886
+ break;
632
887
  }
633
888
  }
889
+ if (fragment.ref !== null) {
890
+ setCurrentlyValidatingElement$1(fragment);
891
+ error2("Invalid attribute `ref` supplied to `React.Fragment`.");
892
+ setCurrentlyValidatingElement$1(null);
893
+ }
634
894
  }
635
- function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
636
- {
637
- var validType = isValidElementType(type);
638
- if (!validType) {
639
- var info = "";
640
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
641
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
642
- }
643
- var sourceInfo = getSourceInfoErrorAddendum(source);
644
- if (sourceInfo) {
645
- info += sourceInfo;
646
- } else {
647
- info += getDeclarationErrorAddendum();
648
- }
649
- var typeString;
650
- if (type === null) {
651
- typeString = "null";
652
- } else if (Array.isArray(type)) {
653
- typeString = "array";
654
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
655
- typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
656
- info = " Did you accidentally export a JSX literal instead of a component?";
657
- } else {
658
- typeString = typeof type;
659
- }
660
- error2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
661
- }
662
- var element = jsxDEV(type, props, key, source, self2);
663
- if (element == null) {
664
- return element;
665
- }
666
- if (validType) {
667
- var children = props.children;
668
- if (children !== void 0) {
669
- if (isStaticChildren) {
670
- if (Array.isArray(children)) {
671
- for (var i4 = 0; i4 < children.length; i4++) {
672
- validateChildKeys(children[i4], type);
673
- }
674
- if (Object.freeze) {
675
- Object.freeze(children);
676
- }
677
- } else {
678
- error2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
895
+ }
896
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
897
+ {
898
+ var validType = isValidElementType(type);
899
+ if (!validType) {
900
+ var info = "";
901
+ if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
902
+ info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
903
+ }
904
+ var sourceInfo = getSourceInfoErrorAddendum(source);
905
+ if (sourceInfo) {
906
+ info += sourceInfo;
907
+ } else {
908
+ info += getDeclarationErrorAddendum();
909
+ }
910
+ var typeString;
911
+ if (type === null) {
912
+ typeString = "null";
913
+ } else if (isArray2(type)) {
914
+ typeString = "array";
915
+ } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
916
+ typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
917
+ info = " Did you accidentally export a JSX literal instead of a component?";
918
+ } else {
919
+ typeString = typeof type;
920
+ }
921
+ error2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
922
+ }
923
+ var element = jsxDEV(type, props, key, source, self2);
924
+ if (element == null) {
925
+ return element;
926
+ }
927
+ if (validType) {
928
+ var children = props.children;
929
+ if (children !== void 0) {
930
+ if (isStaticChildren) {
931
+ if (isArray2(children)) {
932
+ for (var i4 = 0; i4 < children.length; i4++) {
933
+ validateChildKeys(children[i4], type);
934
+ }
935
+ if (Object.freeze) {
936
+ Object.freeze(children);
679
937
  }
680
938
  } else {
681
- validateChildKeys(children, type);
939
+ error2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
682
940
  }
941
+ } else {
942
+ validateChildKeys(children, type);
683
943
  }
684
944
  }
685
- if (type === exports3.Fragment) {
686
- validateFragmentProps(element);
687
- } else {
688
- validatePropTypes(element);
689
- }
690
- return element;
691
945
  }
692
- }
693
- function jsxWithValidationStatic(type, props, key) {
694
- {
695
- return jsxWithValidation(type, props, key, true);
946
+ if (type === REACT_FRAGMENT_TYPE) {
947
+ validateFragmentProps(element);
948
+ } else {
949
+ validatePropTypes(element);
696
950
  }
951
+ return element;
697
952
  }
698
- function jsxWithValidationDynamic(type, props, key) {
699
- {
700
- return jsxWithValidation(type, props, key, false);
701
- }
953
+ }
954
+ function jsxWithValidationStatic(type, props, key) {
955
+ {
956
+ return jsxWithValidation(type, props, key, true);
702
957
  }
703
- var jsx = jsxWithValidationDynamic;
704
- var jsxs = jsxWithValidationStatic;
705
- exports3.jsx = jsx;
706
- exports3.jsxs = jsxs;
707
- })();
708
- }
709
- })(reactJsxRuntime_development);
958
+ }
959
+ function jsxWithValidationDynamic(type, props, key) {
960
+ {
961
+ return jsxWithValidation(type, props, key, false);
962
+ }
963
+ }
964
+ var jsx = jsxWithValidationDynamic;
965
+ var jsxs = jsxWithValidationStatic;
966
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
967
+ reactJsxRuntime_development.jsx = jsx;
968
+ reactJsxRuntime_development.jsxs = jsxs;
969
+ })();
970
+ }
710
971
  return reactJsxRuntime_development;
711
972
  }
712
973
  if (process.env.NODE_ENV === "production") {
@@ -58362,7 +58623,7 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
58362
58623
  result.integrations.push({
58363
58624
  key: "base",
58364
58625
  pluginName: "base",
58365
- pluginVersion: "0.19.0",
58626
+ pluginVersion: "0.20.0",
58366
58627
  pluginConfig: []
58367
58628
  });
58368
58629
  return result;
@@ -58537,7 +58798,7 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
58537
58798
  };
58538
58799
  const About = () => {
58539
58800
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(x0, { padding: 20, direction: "vert", children: [
58540
- /* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.19.0"}` }),
58801
+ /* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.20.0"}` }),
58541
58802
  /* @__PURE__ */ jsxRuntimeExports.jsx(X4, { children: "From Appkit" })
58542
58803
  ] });
58543
58804
  };
@@ -58789,7 +59050,9 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
58789
59050
  };
58790
59051
  const SettingsScreen = ({ api: api2, isPluginDev }) => {
58791
59052
  const isPrivatePluginDev = !isPluginDev && api2.plugin("plugin").available;
58792
- const [selectedKey, setSelectedKey] = React$3.useState(
59053
+ const [selectedKey, setSelectedKey] = usePluginState(
59054
+ api2,
59055
+ "settings-screen-key",
58793
59056
  isPluginDev ? "plugin-dev" : "boards"
58794
59057
  );
58795
59058
  const handleMenuSelection = (key) => {
@@ -89881,7 +90144,7 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
89881
90144
  ) }),
89882
90145
  error2 && /* @__PURE__ */ jsxRuntimeExports.jsx(X4, { color: "red", paddingLeft: 15, paddingTop: 10, children: error2 })
89883
90146
  ] }) }),
89884
- /* @__PURE__ */ jsxRuntimeExports.jsx(LG1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(x0, { halign: "center", valign: "center", children: propsString && api2.plugin("plugin").component(
90147
+ /* @__PURE__ */ jsxRuntimeExports.jsx(LG1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(x0, { halign: "left", valign: "center", children: propsString && api2.plugin("plugin").component(
89885
90148
  params.componentKey,
89886
90149
  parsePropsForComponent(api2, propsArray)
89887
90150
  ) }) })
@@ -93995,7 +94258,7 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
93995
94258
  {
93996
94259
  key: "base",
93997
94260
  pluginName: "base",
93998
- pluginVersion: "0.19.0",
94261
+ pluginVersion: "0.20.0",
93999
94262
  pluginConfig: []
94000
94263
  }
94001
94264
  ],