@easy-editor/react-renderer 0.0.4 → 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.
@@ -1,978 +1,20 @@
1
1
  'use strict';
2
2
 
3
3
  var mobxReact = require('mobx-react');
4
- var require$$0 = require('react');
4
+ var react = require('react');
5
5
  var core = require('@easy-editor/core');
6
- var lodashEs = require('lodash-es');
6
+ var jsxRuntime = require('react/jsx-runtime');
7
7
 
8
- const SettingRendererContext = /*#__PURE__*/require$$0.createContext({});
8
+ const SettingRendererContext = /*#__PURE__*/react.createContext({});
9
9
  const useSettingRendererContext = () => {
10
10
  try {
11
- return require$$0.useContext(SettingRendererContext);
11
+ return react.useContext(SettingRendererContext);
12
12
  } catch (error) {
13
13
  console.warn('useSettingRendererContext must be used within a SettingRendererContextProvider');
14
14
  }
15
15
  return {};
16
16
  };
17
17
 
18
- var jsxRuntime = {exports: {}};
19
-
20
- var reactJsxRuntime_production_min = {};
21
-
22
- /**
23
- * @license React
24
- * react-jsx-runtime.production.min.js
25
- *
26
- * Copyright (c) Facebook, Inc. and its affiliates.
27
- *
28
- * This source code is licensed under the MIT license found in the
29
- * LICENSE file in the root directory of this source tree.
30
- */
31
- var hasRequiredReactJsxRuntime_production_min;
32
- function requireReactJsxRuntime_production_min() {
33
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
34
- hasRequiredReactJsxRuntime_production_min = 1;
35
- var f = require$$0,
36
- k = Symbol.for("react.element"),
37
- l = Symbol.for("react.fragment"),
38
- m = Object.prototype.hasOwnProperty,
39
- n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
40
- p = {
41
- key: !0,
42
- ref: !0,
43
- __self: !0,
44
- __source: !0
45
- };
46
- function q(c, a, g) {
47
- var b,
48
- d = {},
49
- e = null,
50
- h = null;
51
- void 0 !== g && (e = "" + g);
52
- void 0 !== a.key && (e = "" + a.key);
53
- void 0 !== a.ref && (h = a.ref);
54
- for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
55
- if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
56
- return {
57
- $$typeof: k,
58
- type: c,
59
- key: e,
60
- ref: h,
61
- props: d,
62
- _owner: n.current
63
- };
64
- }
65
- reactJsxRuntime_production_min.Fragment = l;
66
- reactJsxRuntime_production_min.jsx = q;
67
- reactJsxRuntime_production_min.jsxs = q;
68
- return reactJsxRuntime_production_min;
69
- }
70
-
71
- var reactJsxRuntime_development = {};
72
-
73
- /**
74
- * @license React
75
- * react-jsx-runtime.development.js
76
- *
77
- * Copyright (c) Facebook, Inc. and its affiliates.
78
- *
79
- * This source code is licensed under the MIT license found in the
80
- * LICENSE file in the root directory of this source tree.
81
- */
82
- var hasRequiredReactJsxRuntime_development;
83
- function requireReactJsxRuntime_development() {
84
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
85
- hasRequiredReactJsxRuntime_development = 1;
86
- if (process.env.NODE_ENV !== "production") {
87
- (function () {
88
- var React = require$$0;
89
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
90
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
91
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
92
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
93
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
94
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
95
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
96
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
97
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
98
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
99
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
100
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
101
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
102
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
103
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
104
- function getIteratorFn(maybeIterable) {
105
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
106
- return null;
107
- }
108
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
109
- if (typeof maybeIterator === 'function') {
110
- return maybeIterator;
111
- }
112
- return null;
113
- }
114
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
115
- function error(format) {
116
- {
117
- {
118
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
119
- args[_key2 - 1] = arguments[_key2];
120
- }
121
- printWarning('error', format, args);
122
- }
123
- }
124
- }
125
- function printWarning(level, format, args) {
126
- {
127
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
128
- var stack = ReactDebugCurrentFrame.getStackAddendum();
129
- if (stack !== '') {
130
- format += '%s';
131
- args = args.concat([stack]);
132
- }
133
- var argsWithFormat = args.map(function (item) {
134
- return String(item);
135
- });
136
- argsWithFormat.unshift('Warning: ' + format);
137
- Function.prototype.apply.call(console[level], console, argsWithFormat);
138
- }
139
- }
140
- var enableScopeAPI = false;
141
- var enableCacheElement = false;
142
- var enableTransitionTracing = false;
143
- var enableLegacyHidden = false;
144
- var enableDebugTracing = false;
145
- var REACT_MODULE_REFERENCE;
146
- {
147
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
148
- }
149
- function isValidElementType(type) {
150
- if (typeof type === 'string' || typeof type === 'function') {
151
- return true;
152
- }
153
- 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) {
154
- return true;
155
- }
156
- if (typeof type === 'object' && type !== null) {
157
- 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 ||
158
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
159
- return true;
160
- }
161
- }
162
- return false;
163
- }
164
- function getWrappedName(outerType, innerType, wrapperName) {
165
- var displayName = outerType.displayName;
166
- if (displayName) {
167
- return displayName;
168
- }
169
- var functionName = innerType.displayName || innerType.name || '';
170
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
171
- }
172
- function getContextName(type) {
173
- return type.displayName || 'Context';
174
- }
175
- function getComponentNameFromType(type) {
176
- if (type == null) {
177
- return null;
178
- }
179
- {
180
- if (typeof type.tag === 'number') {
181
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
182
- }
183
- }
184
- if (typeof type === 'function') {
185
- return type.displayName || type.name || null;
186
- }
187
- if (typeof type === 'string') {
188
- return type;
189
- }
190
- switch (type) {
191
- case REACT_FRAGMENT_TYPE:
192
- return 'Fragment';
193
- case REACT_PORTAL_TYPE:
194
- return 'Portal';
195
- case REACT_PROFILER_TYPE:
196
- return 'Profiler';
197
- case REACT_STRICT_MODE_TYPE:
198
- return 'StrictMode';
199
- case REACT_SUSPENSE_TYPE:
200
- return 'Suspense';
201
- case REACT_SUSPENSE_LIST_TYPE:
202
- return 'SuspenseList';
203
- }
204
- if (typeof type === 'object') {
205
- switch (type.$$typeof) {
206
- case REACT_CONTEXT_TYPE:
207
- var context = type;
208
- return getContextName(context) + '.Consumer';
209
- case REACT_PROVIDER_TYPE:
210
- var provider = type;
211
- return getContextName(provider._context) + '.Provider';
212
- case REACT_FORWARD_REF_TYPE:
213
- return getWrappedName(type, type.render, 'ForwardRef');
214
- case REACT_MEMO_TYPE:
215
- var outerName = type.displayName || null;
216
- if (outerName !== null) {
217
- return outerName;
218
- }
219
- return getComponentNameFromType(type.type) || 'Memo';
220
- case REACT_LAZY_TYPE:
221
- {
222
- var lazyComponent = type;
223
- var payload = lazyComponent._payload;
224
- var init = lazyComponent._init;
225
- try {
226
- return getComponentNameFromType(init(payload));
227
- } catch (x) {
228
- return null;
229
- }
230
- }
231
- }
232
- }
233
- return null;
234
- }
235
- var assign = Object.assign;
236
- var disabledDepth = 0;
237
- var prevLog;
238
- var prevInfo;
239
- var prevWarn;
240
- var prevError;
241
- var prevGroup;
242
- var prevGroupCollapsed;
243
- var prevGroupEnd;
244
- function disabledLog() {}
245
- disabledLog.__reactDisabledLog = true;
246
- function disableLogs() {
247
- {
248
- if (disabledDepth === 0) {
249
- prevLog = console.log;
250
- prevInfo = console.info;
251
- prevWarn = console.warn;
252
- prevError = console.error;
253
- prevGroup = console.group;
254
- prevGroupCollapsed = console.groupCollapsed;
255
- prevGroupEnd = console.groupEnd;
256
- var props = {
257
- configurable: true,
258
- enumerable: true,
259
- value: disabledLog,
260
- writable: true
261
- };
262
- Object.defineProperties(console, {
263
- info: props,
264
- log: props,
265
- warn: props,
266
- error: props,
267
- group: props,
268
- groupCollapsed: props,
269
- groupEnd: props
270
- });
271
- }
272
- disabledDepth++;
273
- }
274
- }
275
- function reenableLogs() {
276
- {
277
- disabledDepth--;
278
- if (disabledDepth === 0) {
279
- var props = {
280
- configurable: true,
281
- enumerable: true,
282
- writable: true
283
- };
284
- Object.defineProperties(console, {
285
- log: assign({}, props, {
286
- value: prevLog
287
- }),
288
- info: assign({}, props, {
289
- value: prevInfo
290
- }),
291
- warn: assign({}, props, {
292
- value: prevWarn
293
- }),
294
- error: assign({}, props, {
295
- value: prevError
296
- }),
297
- group: assign({}, props, {
298
- value: prevGroup
299
- }),
300
- groupCollapsed: assign({}, props, {
301
- value: prevGroupCollapsed
302
- }),
303
- groupEnd: assign({}, props, {
304
- value: prevGroupEnd
305
- })
306
- });
307
- }
308
- if (disabledDepth < 0) {
309
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
310
- }
311
- }
312
- }
313
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
314
- var prefix;
315
- function describeBuiltInComponentFrame(name, source, ownerFn) {
316
- {
317
- if (prefix === undefined) {
318
- try {
319
- throw Error();
320
- } catch (x) {
321
- var match = x.stack.trim().match(/\n( *(at )?)/);
322
- prefix = match && match[1] || '';
323
- }
324
- }
325
- return '\n' + prefix + name;
326
- }
327
- }
328
- var reentry = false;
329
- var componentFrameCache;
330
- {
331
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
332
- componentFrameCache = new PossiblyWeakMap();
333
- }
334
- function describeNativeComponentFrame(fn, construct) {
335
- if (!fn || reentry) {
336
- return '';
337
- }
338
- {
339
- var frame = componentFrameCache.get(fn);
340
- if (frame !== undefined) {
341
- return frame;
342
- }
343
- }
344
- var control;
345
- reentry = true;
346
- var previousPrepareStackTrace = Error.prepareStackTrace;
347
- Error.prepareStackTrace = undefined;
348
- var previousDispatcher;
349
- {
350
- previousDispatcher = ReactCurrentDispatcher.current;
351
- ReactCurrentDispatcher.current = null;
352
- disableLogs();
353
- }
354
- try {
355
- if (construct) {
356
- var Fake = function () {
357
- throw Error();
358
- };
359
- Object.defineProperty(Fake.prototype, 'props', {
360
- set: function () {
361
- throw Error();
362
- }
363
- });
364
- if (typeof Reflect === 'object' && Reflect.construct) {
365
- try {
366
- Reflect.construct(Fake, []);
367
- } catch (x) {
368
- control = x;
369
- }
370
- Reflect.construct(fn, [], Fake);
371
- } else {
372
- try {
373
- Fake.call();
374
- } catch (x) {
375
- control = x;
376
- }
377
- fn.call(Fake.prototype);
378
- }
379
- } else {
380
- try {
381
- throw Error();
382
- } catch (x) {
383
- control = x;
384
- }
385
- fn();
386
- }
387
- } catch (sample) {
388
- if (sample && control && typeof sample.stack === 'string') {
389
- var sampleLines = sample.stack.split('\n');
390
- var controlLines = control.stack.split('\n');
391
- var s = sampleLines.length - 1;
392
- var c = controlLines.length - 1;
393
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
394
- c--;
395
- }
396
- for (; s >= 1 && c >= 0; s--, c--) {
397
- if (sampleLines[s] !== controlLines[c]) {
398
- if (s !== 1 || c !== 1) {
399
- do {
400
- s--;
401
- c--;
402
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
403
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at ');
404
- if (fn.displayName && _frame.includes('<anonymous>')) {
405
- _frame = _frame.replace('<anonymous>', fn.displayName);
406
- }
407
- {
408
- if (typeof fn === 'function') {
409
- componentFrameCache.set(fn, _frame);
410
- }
411
- }
412
- return _frame;
413
- }
414
- } while (s >= 1 && c >= 0);
415
- }
416
- break;
417
- }
418
- }
419
- }
420
- } finally {
421
- reentry = false;
422
- {
423
- ReactCurrentDispatcher.current = previousDispatcher;
424
- reenableLogs();
425
- }
426
- Error.prepareStackTrace = previousPrepareStackTrace;
427
- }
428
- var name = fn ? fn.displayName || fn.name : '';
429
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
430
- {
431
- if (typeof fn === 'function') {
432
- componentFrameCache.set(fn, syntheticFrame);
433
- }
434
- }
435
- return syntheticFrame;
436
- }
437
- function describeFunctionComponentFrame(fn, source, ownerFn) {
438
- {
439
- return describeNativeComponentFrame(fn, false);
440
- }
441
- }
442
- function shouldConstruct(Component) {
443
- var prototype = Component.prototype;
444
- return !!(prototype && prototype.isReactComponent);
445
- }
446
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
447
- if (type == null) {
448
- return '';
449
- }
450
- if (typeof type === 'function') {
451
- {
452
- return describeNativeComponentFrame(type, shouldConstruct(type));
453
- }
454
- }
455
- if (typeof type === 'string') {
456
- return describeBuiltInComponentFrame(type);
457
- }
458
- switch (type) {
459
- case REACT_SUSPENSE_TYPE:
460
- return describeBuiltInComponentFrame('Suspense');
461
- case REACT_SUSPENSE_LIST_TYPE:
462
- return describeBuiltInComponentFrame('SuspenseList');
463
- }
464
- if (typeof type === 'object') {
465
- switch (type.$$typeof) {
466
- case REACT_FORWARD_REF_TYPE:
467
- return describeFunctionComponentFrame(type.render);
468
- case REACT_MEMO_TYPE:
469
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
470
- case REACT_LAZY_TYPE:
471
- {
472
- var lazyComponent = type;
473
- var payload = lazyComponent._payload;
474
- var init = lazyComponent._init;
475
- try {
476
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
477
- } catch (x) {}
478
- }
479
- }
480
- }
481
- return '';
482
- }
483
- var hasOwnProperty = Object.prototype.hasOwnProperty;
484
- var loggedTypeFailures = {};
485
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
486
- function setCurrentlyValidatingElement(element) {
487
- {
488
- if (element) {
489
- var owner = element._owner;
490
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
491
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
492
- } else {
493
- ReactDebugCurrentFrame.setExtraStackFrame(null);
494
- }
495
- }
496
- }
497
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
498
- {
499
- var has = Function.call.bind(hasOwnProperty);
500
- for (var typeSpecName in typeSpecs) {
501
- if (has(typeSpecs, typeSpecName)) {
502
- var error$1 = void 0;
503
- try {
504
- if (typeof typeSpecs[typeSpecName] !== 'function') {
505
- var err = Error((componentName || 'React class') + ': ' + location + ' 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`.');
506
- err.name = 'Invariant Violation';
507
- throw err;
508
- }
509
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
510
- } catch (ex) {
511
- error$1 = ex;
512
- }
513
- if (error$1 && !(error$1 instanceof Error)) {
514
- setCurrentlyValidatingElement(element);
515
- error('%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', location, typeSpecName, typeof error$1);
516
- setCurrentlyValidatingElement(null);
517
- }
518
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
519
- loggedTypeFailures[error$1.message] = true;
520
- setCurrentlyValidatingElement(element);
521
- error('Failed %s type: %s', location, error$1.message);
522
- setCurrentlyValidatingElement(null);
523
- }
524
- }
525
- }
526
- }
527
- }
528
- var isArrayImpl = Array.isArray;
529
- function isArray(a) {
530
- return isArrayImpl(a);
531
- }
532
- function typeName(value) {
533
- {
534
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
535
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
536
- return type;
537
- }
538
- }
539
- function willCoercionThrow(value) {
540
- {
541
- try {
542
- testStringCoercion(value);
543
- return false;
544
- } catch (e) {
545
- return true;
546
- }
547
- }
548
- }
549
- function testStringCoercion(value) {
550
- return '' + value;
551
- }
552
- function checkKeyStringCoercion(value) {
553
- {
554
- if (willCoercionThrow(value)) {
555
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
556
- return testStringCoercion(value);
557
- }
558
- }
559
- }
560
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
561
- var RESERVED_PROPS = {
562
- key: true,
563
- ref: true,
564
- __self: true,
565
- __source: true
566
- };
567
- var specialPropKeyWarningShown;
568
- var specialPropRefWarningShown;
569
- var didWarnAboutStringRefs;
570
- {
571
- didWarnAboutStringRefs = {};
572
- }
573
- function hasValidRef(config) {
574
- {
575
- if (hasOwnProperty.call(config, 'ref')) {
576
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
577
- if (getter && getter.isReactWarning) {
578
- return false;
579
- }
580
- }
581
- }
582
- return config.ref !== undefined;
583
- }
584
- function hasValidKey(config) {
585
- {
586
- if (hasOwnProperty.call(config, 'key')) {
587
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
588
- if (getter && getter.isReactWarning) {
589
- return false;
590
- }
591
- }
592
- }
593
- return config.key !== undefined;
594
- }
595
- function warnIfStringRefCannotBeAutoConverted(config, self) {
596
- {
597
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
598
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
599
- if (!didWarnAboutStringRefs[componentName]) {
600
- error('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), config.ref);
601
- didWarnAboutStringRefs[componentName] = true;
602
- }
603
- }
604
- }
605
- }
606
- function defineKeyPropWarningGetter(props, displayName) {
607
- {
608
- var warnAboutAccessingKey = function () {
609
- if (!specialPropKeyWarningShown) {
610
- specialPropKeyWarningShown = true;
611
- error('%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);
612
- }
613
- };
614
- warnAboutAccessingKey.isReactWarning = true;
615
- Object.defineProperty(props, 'key', {
616
- get: warnAboutAccessingKey,
617
- configurable: true
618
- });
619
- }
620
- }
621
- function defineRefPropWarningGetter(props, displayName) {
622
- {
623
- var warnAboutAccessingRef = function () {
624
- if (!specialPropRefWarningShown) {
625
- specialPropRefWarningShown = true;
626
- error('%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);
627
- }
628
- };
629
- warnAboutAccessingRef.isReactWarning = true;
630
- Object.defineProperty(props, 'ref', {
631
- get: warnAboutAccessingRef,
632
- configurable: true
633
- });
634
- }
635
- }
636
- var ReactElement = function (type, key, ref, self, source, owner, props) {
637
- var element = {
638
- $$typeof: REACT_ELEMENT_TYPE,
639
- type: type,
640
- key: key,
641
- ref: ref,
642
- props: props,
643
- _owner: owner
644
- };
645
- {
646
- element._store = {};
647
- Object.defineProperty(element._store, 'validated', {
648
- configurable: false,
649
- enumerable: false,
650
- writable: true,
651
- value: false
652
- });
653
- Object.defineProperty(element, '_self', {
654
- configurable: false,
655
- enumerable: false,
656
- writable: false,
657
- value: self
658
- });
659
- Object.defineProperty(element, '_source', {
660
- configurable: false,
661
- enumerable: false,
662
- writable: false,
663
- value: source
664
- });
665
- if (Object.freeze) {
666
- Object.freeze(element.props);
667
- Object.freeze(element);
668
- }
669
- }
670
- return element;
671
- };
672
- function jsxDEV(type, config, maybeKey, source, self) {
673
- {
674
- var propName;
675
- var props = {};
676
- var key = null;
677
- var ref = null;
678
- if (maybeKey !== undefined) {
679
- {
680
- checkKeyStringCoercion(maybeKey);
681
- }
682
- key = '' + maybeKey;
683
- }
684
- if (hasValidKey(config)) {
685
- {
686
- checkKeyStringCoercion(config.key);
687
- }
688
- key = '' + config.key;
689
- }
690
- if (hasValidRef(config)) {
691
- ref = config.ref;
692
- warnIfStringRefCannotBeAutoConverted(config, self);
693
- }
694
- for (propName in config) {
695
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
696
- props[propName] = config[propName];
697
- }
698
- }
699
- if (type && type.defaultProps) {
700
- var defaultProps = type.defaultProps;
701
- for (propName in defaultProps) {
702
- if (props[propName] === undefined) {
703
- props[propName] = defaultProps[propName];
704
- }
705
- }
706
- }
707
- if (key || ref) {
708
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
709
- if (key) {
710
- defineKeyPropWarningGetter(props, displayName);
711
- }
712
- if (ref) {
713
- defineRefPropWarningGetter(props, displayName);
714
- }
715
- }
716
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
717
- }
718
- }
719
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
720
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
721
- function setCurrentlyValidatingElement$1(element) {
722
- {
723
- if (element) {
724
- var owner = element._owner;
725
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
726
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
727
- } else {
728
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
729
- }
730
- }
731
- }
732
- var propTypesMisspellWarningShown;
733
- {
734
- propTypesMisspellWarningShown = false;
735
- }
736
- function isValidElement(object) {
737
- {
738
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
739
- }
740
- }
741
- function getDeclarationErrorAddendum() {
742
- {
743
- if (ReactCurrentOwner$1.current) {
744
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
745
- if (name) {
746
- return '\n\nCheck the render method of `' + name + '`.';
747
- }
748
- }
749
- return '';
750
- }
751
- }
752
- function getSourceInfoErrorAddendum(source) {
753
- {
754
- return '';
755
- }
756
- }
757
- var ownerHasKeyUseWarning = {};
758
- function getCurrentComponentErrorInfo(parentType) {
759
- {
760
- var info = getDeclarationErrorAddendum();
761
- if (!info) {
762
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
763
- if (parentName) {
764
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
765
- }
766
- }
767
- return info;
768
- }
769
- }
770
- function validateExplicitKey(element, parentType) {
771
- {
772
- if (!element._store || element._store.validated || element.key != null) {
773
- return;
774
- }
775
- element._store.validated = true;
776
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
777
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
778
- return;
779
- }
780
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
781
- var childOwner = '';
782
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
783
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
784
- }
785
- setCurrentlyValidatingElement$1(element);
786
- error('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);
787
- setCurrentlyValidatingElement$1(null);
788
- }
789
- }
790
- function validateChildKeys(node, parentType) {
791
- {
792
- if (typeof node !== 'object') {
793
- return;
794
- }
795
- if (isArray(node)) {
796
- for (var i = 0; i < node.length; i++) {
797
- var child = node[i];
798
- if (isValidElement(child)) {
799
- validateExplicitKey(child, parentType);
800
- }
801
- }
802
- } else if (isValidElement(node)) {
803
- if (node._store) {
804
- node._store.validated = true;
805
- }
806
- } else if (node) {
807
- var iteratorFn = getIteratorFn(node);
808
- if (typeof iteratorFn === 'function') {
809
- if (iteratorFn !== node.entries) {
810
- var iterator = iteratorFn.call(node);
811
- var step;
812
- while (!(step = iterator.next()).done) {
813
- if (isValidElement(step.value)) {
814
- validateExplicitKey(step.value, parentType);
815
- }
816
- }
817
- }
818
- }
819
- }
820
- }
821
- }
822
- function validatePropTypes(element) {
823
- {
824
- var type = element.type;
825
- if (type === null || type === undefined || typeof type === 'string') {
826
- return;
827
- }
828
- var propTypes;
829
- if (typeof type === 'function') {
830
- propTypes = type.propTypes;
831
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE ||
832
- type.$$typeof === REACT_MEMO_TYPE)) {
833
- propTypes = type.propTypes;
834
- } else {
835
- return;
836
- }
837
- if (propTypes) {
838
- var name = getComponentNameFromType(type);
839
- checkPropTypes(propTypes, element.props, 'prop', name, element);
840
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
841
- propTypesMisspellWarningShown = true;
842
- var _name = getComponentNameFromType(type);
843
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
844
- }
845
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
846
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
847
- }
848
- }
849
- }
850
- function validateFragmentProps(fragment) {
851
- {
852
- var keys = Object.keys(fragment.props);
853
- for (var i = 0; i < keys.length; i++) {
854
- var key = keys[i];
855
- if (key !== 'children' && key !== 'key') {
856
- setCurrentlyValidatingElement$1(fragment);
857
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
858
- setCurrentlyValidatingElement$1(null);
859
- break;
860
- }
861
- }
862
- if (fragment.ref !== null) {
863
- setCurrentlyValidatingElement$1(fragment);
864
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
865
- setCurrentlyValidatingElement$1(null);
866
- }
867
- }
868
- }
869
- var didWarnAboutKeySpread = {};
870
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
871
- {
872
- var validType = isValidElementType(type);
873
- if (!validType) {
874
- var info = '';
875
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
876
- 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.";
877
- }
878
- var sourceInfo = getSourceInfoErrorAddendum();
879
- if (sourceInfo) {
880
- info += sourceInfo;
881
- } else {
882
- info += getDeclarationErrorAddendum();
883
- }
884
- var typeString;
885
- if (type === null) {
886
- typeString = 'null';
887
- } else if (isArray(type)) {
888
- typeString = 'array';
889
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
890
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
891
- info = ' Did you accidentally export a JSX literal instead of a component?';
892
- } else {
893
- typeString = typeof type;
894
- }
895
- error('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);
896
- }
897
- var element = jsxDEV(type, props, key, source, self);
898
- if (element == null) {
899
- return element;
900
- }
901
- if (validType) {
902
- var children = props.children;
903
- if (children !== undefined) {
904
- if (isStaticChildren) {
905
- if (isArray(children)) {
906
- for (var i = 0; i < children.length; i++) {
907
- validateChildKeys(children[i], type);
908
- }
909
- if (Object.freeze) {
910
- Object.freeze(children);
911
- }
912
- } else {
913
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
914
- }
915
- } else {
916
- validateChildKeys(children, type);
917
- }
918
- }
919
- }
920
- {
921
- if (hasOwnProperty.call(props, 'key')) {
922
- var componentName = getComponentNameFromType(type);
923
- var keys = Object.keys(props).filter(function (k) {
924
- return k !== 'key';
925
- });
926
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
927
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
928
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
929
- error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
930
- didWarnAboutKeySpread[componentName + beforeExample] = true;
931
- }
932
- }
933
- }
934
- if (type === REACT_FRAGMENT_TYPE) {
935
- validateFragmentProps(element);
936
- } else {
937
- validatePropTypes(element);
938
- }
939
- return element;
940
- }
941
- }
942
- function jsxWithValidationStatic(type, props, key) {
943
- {
944
- return jsxWithValidation(type, props, key, true);
945
- }
946
- }
947
- function jsxWithValidationDynamic(type, props, key) {
948
- {
949
- return jsxWithValidation(type, props, key, false);
950
- }
951
- }
952
- var jsx = jsxWithValidationDynamic;
953
- var jsxs = jsxWithValidationStatic;
954
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
955
- reactJsxRuntime_development.jsx = jsx;
956
- reactJsxRuntime_development.jsxs = jsxs;
957
- })();
958
- }
959
- return reactJsxRuntime_development;
960
- }
961
-
962
- var hasRequiredJsxRuntime;
963
- function requireJsxRuntime() {
964
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
965
- hasRequiredJsxRuntime = 1;
966
- if (process.env.NODE_ENV === 'production') {
967
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
968
- } else {
969
- jsxRuntime.exports = requireReactJsxRuntime_development();
970
- }
971
- return jsxRuntime.exports;
972
- }
973
-
974
- var jsxRuntimeExports = requireJsxRuntime();
975
-
976
18
  const getSetterInfo = field => {
977
19
  const {
978
20
  extraProps,
@@ -1049,7 +91,7 @@ const SettingSetter = mobxReact.observer(({
1049
91
  component: SetterComponent,
1050
92
  props: mixedSetterProps
1051
93
  } = setterManager.createSetterContent(setterType, setterProps);
1052
- return /*#__PURE__*/jsxRuntimeExports.jsx(SetterComponent, {
94
+ return /*#__PURE__*/jsxRuntime.jsx(SetterComponent, {
1053
95
  field: field,
1054
96
  selected: field.top?.getNode(),
1055
97
  initialValue: initialValue,
@@ -1082,17 +124,17 @@ const SettingFieldItem = mobxReact.observer(({
1082
124
  customFieldItem
1083
125
  } = useSettingRendererContext();
1084
126
  if (customFieldItem) {
1085
- return customFieldItem(field, /*#__PURE__*/jsxRuntimeExports.jsx(SettingSetter, {
127
+ return customFieldItem(field, /*#__PURE__*/jsxRuntime.jsx(SettingSetter, {
1086
128
  field: field
1087
129
  }));
1088
130
  }
1089
- return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
131
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
1090
132
  className: "space-y-2",
1091
- children: [/*#__PURE__*/jsxRuntimeExports.jsx("label", {
133
+ children: [/*#__PURE__*/jsxRuntime.jsx("label", {
1092
134
  htmlFor: field.id,
1093
135
  className: "block text-sm font-medium text-gray-700",
1094
136
  children: field.title
1095
- }), /*#__PURE__*/jsxRuntimeExports.jsx(SettingSetter, {
137
+ }), /*#__PURE__*/jsxRuntime.jsx(SettingSetter, {
1096
138
  field: field
1097
139
  })]
1098
140
  });
@@ -1104,16 +146,16 @@ const SettingFieldGroup = mobxReact.observer(({
1104
146
  customFieldGroup
1105
147
  } = useSettingRendererContext();
1106
148
  if (customFieldGroup) {
1107
- return customFieldGroup(field, /*#__PURE__*/jsxRuntimeExports.jsx(SettingSetter, {
149
+ return customFieldGroup(field, /*#__PURE__*/jsxRuntime.jsx(SettingSetter, {
1108
150
  field: field,
1109
- children: field.items?.map(item => /*#__PURE__*/jsxRuntimeExports.jsx(SettingFieldView, {
151
+ children: field.items?.map(item => /*#__PURE__*/jsxRuntime.jsx(SettingFieldView, {
1110
152
  field: item
1111
153
  }, item.id))
1112
154
  }));
1113
155
  }
1114
- return /*#__PURE__*/jsxRuntimeExports.jsx(SettingSetter, {
156
+ return /*#__PURE__*/jsxRuntime.jsx(SettingSetter, {
1115
157
  field: field,
1116
- children: field.items?.map(item => /*#__PURE__*/jsxRuntimeExports.jsx(SettingFieldView, {
158
+ children: field.items?.map(item => /*#__PURE__*/jsxRuntime.jsx(SettingFieldView, {
1117
159
  field: item
1118
160
  }, item.id))
1119
161
  });
@@ -1122,11 +164,11 @@ const SettingFieldView = ({
1122
164
  field
1123
165
  }) => {
1124
166
  if (field.isGroup) {
1125
- return /*#__PURE__*/jsxRuntimeExports.jsx(SettingFieldGroup, {
167
+ return /*#__PURE__*/jsxRuntime.jsx(SettingFieldGroup, {
1126
168
  field: field
1127
169
  }, field.id);
1128
170
  } else {
1129
- return /*#__PURE__*/jsxRuntimeExports.jsx(SettingFieldItem, {
171
+ return /*#__PURE__*/jsxRuntime.jsx(SettingFieldItem, {
1130
172
  field: field
1131
173
  }, field.id);
1132
174
  }
@@ -1146,7 +188,7 @@ const SettingRender = mobxReact.observer(props => {
1146
188
  settings
1147
189
  } = settingsManager;
1148
190
  const items = settings?.items;
1149
- const ctx = require$$0.useMemo(() => {
191
+ const ctx = react.useMemo(() => {
1150
192
  const ctx = {};
1151
193
  ctx.setterManager = setterManager;
1152
194
  ctx.settingsManager = settingsManager;
@@ -1156,11 +198,11 @@ const SettingRender = mobxReact.observer(props => {
1156
198
  }, [setterManager, settingsManager, customFieldItem, customFieldGroup]);
1157
199
  if (!settings) {
1158
200
  // 未选中节点,提示选中 或者 显示根节点设置
1159
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
201
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1160
202
  className: "lc-settings-main",
1161
- children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
203
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1162
204
  className: "lc-settings-notice",
1163
- children: /*#__PURE__*/jsxRuntimeExports.jsx("p", {
205
+ children: /*#__PURE__*/jsxRuntime.jsx("p", {
1164
206
  children: "Please select a node in canvas"
1165
207
  })
1166
208
  })
@@ -1169,22 +211,22 @@ const SettingRender = mobxReact.observer(props => {
1169
211
 
1170
212
  // 当节点被锁定,且未开启锁定后容器可设置属性
1171
213
  if (settings.isLocked) {
1172
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
214
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1173
215
  className: "lc-settings-main",
1174
- children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
216
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1175
217
  className: "lc-settings-notice",
1176
- children: /*#__PURE__*/jsxRuntimeExports.jsx("p", {
218
+ children: /*#__PURE__*/jsxRuntime.jsx("p", {
1177
219
  children: "Current node is locked"
1178
220
  })
1179
221
  })
1180
222
  });
1181
223
  }
1182
224
  if (Array.isArray(settings.items) && settings.items.length === 0) {
1183
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
225
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1184
226
  className: "lc-settings-main",
1185
- children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
227
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1186
228
  className: "lc-settings-notice",
1187
- children: /*#__PURE__*/jsxRuntimeExports.jsx("p", {
229
+ children: /*#__PURE__*/jsxRuntime.jsx("p", {
1188
230
  children: "No config found for this type of component"
1189
231
  })
1190
232
  })
@@ -1192,19 +234,19 @@ const SettingRender = mobxReact.observer(props => {
1192
234
  }
1193
235
  if (!settings.isSameComponent) {
1194
236
  // TODO: future support 获取设置项交集编辑
1195
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
237
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
1196
238
  className: "lc-settings-main",
1197
- children: /*#__PURE__*/jsxRuntimeExports.jsx("div", {
239
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
1198
240
  className: "lc-settings-notice",
1199
- children: /*#__PURE__*/jsxRuntimeExports.jsx("p", {
241
+ children: /*#__PURE__*/jsxRuntime.jsx("p", {
1200
242
  children: "Please select same kind of components"
1201
243
  })
1202
244
  })
1203
245
  });
1204
246
  }
1205
- return /*#__PURE__*/jsxRuntimeExports.jsx(SettingRendererContext.Provider, {
247
+ return /*#__PURE__*/jsxRuntime.jsx(SettingRendererContext.Provider, {
1206
248
  value: ctx,
1207
- children: items?.map(item => /*#__PURE__*/jsxRuntimeExports.jsx(SettingFieldView, {
249
+ children: items?.map(item => /*#__PURE__*/jsxRuntime.jsx(SettingFieldView, {
1208
250
  field: item
1209
251
  }, item.id))
1210
252
  });
@@ -1230,10 +272,570 @@ class Adapter {
1230
272
  }
1231
273
  const adapter = new Adapter();
1232
274
 
1233
- const RendererContext = /*#__PURE__*/require$$0.createContext({});
275
+ var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
276
+
277
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
278
+ var root = freeGlobal || freeSelf || Function('return this')();
279
+
280
+ var Symbol = root.Symbol;
281
+
282
+ var objectProto$7 = Object.prototype;
283
+ var hasOwnProperty$5 = objectProto$7.hasOwnProperty;
284
+ var nativeObjectToString$1 = objectProto$7.toString;
285
+ var symToStringTag$1 = Symbol ? Symbol.toStringTag : undefined;
286
+ function getRawTag(value) {
287
+ var isOwn = hasOwnProperty$5.call(value, symToStringTag$1),
288
+ tag = value[symToStringTag$1];
289
+ try {
290
+ value[symToStringTag$1] = undefined;
291
+ var unmasked = true;
292
+ } catch (e) {}
293
+ var result = nativeObjectToString$1.call(value);
294
+ if (unmasked) {
295
+ if (isOwn) {
296
+ value[symToStringTag$1] = tag;
297
+ } else {
298
+ delete value[symToStringTag$1];
299
+ }
300
+ }
301
+ return result;
302
+ }
303
+
304
+ var objectProto$6 = Object.prototype;
305
+ var nativeObjectToString = objectProto$6.toString;
306
+ function objectToString(value) {
307
+ return nativeObjectToString.call(value);
308
+ }
309
+
310
+ var nullTag = '[object Null]',
311
+ undefinedTag = '[object Undefined]';
312
+ var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
313
+ function baseGetTag(value) {
314
+ if (value == null) {
315
+ return value === undefined ? undefinedTag : nullTag;
316
+ }
317
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
318
+ }
319
+
320
+ function isObjectLike(value) {
321
+ return value != null && typeof value == 'object';
322
+ }
323
+
324
+ var symbolTag = '[object Symbol]';
325
+ function isSymbol(value) {
326
+ return typeof value == 'symbol' || isObjectLike(value) && baseGetTag(value) == symbolTag;
327
+ }
328
+
329
+ var isArray = Array.isArray;
330
+
331
+ var reWhitespace = /\s/;
332
+ function trimmedEndIndex(string) {
333
+ var index = string.length;
334
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
335
+ return index;
336
+ }
337
+
338
+ var reTrimStart = /^\s+/;
339
+ function baseTrim(string) {
340
+ return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '') : string;
341
+ }
342
+
343
+ function isObject(value) {
344
+ var type = typeof value;
345
+ return value != null && (type == 'object' || type == 'function');
346
+ }
347
+
348
+ var NAN = 0 / 0;
349
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
350
+ var reIsBinary = /^0b[01]+$/i;
351
+ var reIsOctal = /^0o[0-7]+$/i;
352
+ var freeParseInt = parseInt;
353
+ function toNumber(value) {
354
+ if (typeof value == 'number') {
355
+ return value;
356
+ }
357
+ if (isSymbol(value)) {
358
+ return NAN;
359
+ }
360
+ if (isObject(value)) {
361
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
362
+ value = isObject(other) ? other + '' : other;
363
+ }
364
+ if (typeof value != 'string') {
365
+ return value === 0 ? value : +value;
366
+ }
367
+ value = baseTrim(value);
368
+ var isBinary = reIsBinary.test(value);
369
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
370
+ }
371
+
372
+ function identity(value) {
373
+ return value;
374
+ }
375
+
376
+ var asyncTag = '[object AsyncFunction]',
377
+ funcTag$1 = '[object Function]',
378
+ genTag = '[object GeneratorFunction]',
379
+ proxyTag = '[object Proxy]';
380
+ function isFunction(value) {
381
+ if (!isObject(value)) {
382
+ return false;
383
+ }
384
+ var tag = baseGetTag(value);
385
+ return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag;
386
+ }
387
+
388
+ var coreJsData = root['__core-js_shared__'];
389
+
390
+ var maskSrcKey = function () {
391
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');
392
+ return uid ? 'Symbol(src)_1.' + uid : '';
393
+ }();
394
+ function isMasked(func) {
395
+ return !!maskSrcKey && maskSrcKey in func;
396
+ }
397
+
398
+ var funcProto$1 = Function.prototype;
399
+ var funcToString$1 = funcProto$1.toString;
400
+ function toSource(func) {
401
+ if (func != null) {
402
+ try {
403
+ return funcToString$1.call(func);
404
+ } catch (e) {}
405
+ try {
406
+ return func + '';
407
+ } catch (e) {}
408
+ }
409
+ return '';
410
+ }
411
+
412
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
413
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
414
+ var funcProto = Function.prototype,
415
+ objectProto$5 = Object.prototype;
416
+ var funcToString = funcProto.toString;
417
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
418
+ var reIsNative = RegExp('^' + funcToString.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$');
419
+ function baseIsNative(value) {
420
+ if (!isObject(value) || isMasked(value)) {
421
+ return false;
422
+ }
423
+ var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
424
+ return pattern.test(toSource(value));
425
+ }
426
+
427
+ function getValue$1(object, key) {
428
+ return object == null ? undefined : object[key];
429
+ }
430
+
431
+ function getNative(object, key) {
432
+ var value = getValue$1(object, key);
433
+ return baseIsNative(value) ? value : undefined;
434
+ }
435
+
436
+ var WeakMap = getNative(root, 'WeakMap');
437
+
438
+ function arrayEach(array, iteratee) {
439
+ var index = -1,
440
+ length = array == null ? 0 : array.length;
441
+ while (++index < length) {
442
+ if (iteratee(array[index], index, array) === false) {
443
+ break;
444
+ }
445
+ }
446
+ return array;
447
+ }
448
+
449
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
450
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
451
+ function isIndex(value, length) {
452
+ var type = typeof value;
453
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
454
+ return !!length && (type == 'number' || type != 'symbol' && reIsUint.test(value)) && value > -1 && value % 1 == 0 && value < length;
455
+ }
456
+
457
+ var MAX_SAFE_INTEGER = 9007199254740991;
458
+ function isLength(value) {
459
+ return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
460
+ }
461
+
462
+ function isArrayLike(value) {
463
+ return value != null && isLength(value.length) && !isFunction(value);
464
+ }
465
+
466
+ var objectProto$4 = Object.prototype;
467
+ function isPrototype(value) {
468
+ var Ctor = value && value.constructor,
469
+ proto = typeof Ctor == 'function' && Ctor.prototype || objectProto$4;
470
+ return value === proto;
471
+ }
472
+
473
+ function baseTimes(n, iteratee) {
474
+ var index = -1,
475
+ result = Array(n);
476
+ while (++index < n) {
477
+ result[index] = iteratee(index);
478
+ }
479
+ return result;
480
+ }
481
+
482
+ var argsTag$1 = '[object Arguments]';
483
+ function baseIsArguments(value) {
484
+ return isObjectLike(value) && baseGetTag(value) == argsTag$1;
485
+ }
486
+
487
+ var objectProto$3 = Object.prototype;
488
+ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
489
+ var propertyIsEnumerable = objectProto$3.propertyIsEnumerable;
490
+ var isArguments = baseIsArguments(function () {
491
+ return arguments;
492
+ }()) ? baseIsArguments : function (value) {
493
+ return isObjectLike(value) && hasOwnProperty$3.call(value, 'callee') && !propertyIsEnumerable.call(value, 'callee');
494
+ };
495
+
496
+ function stubFalse() {
497
+ return false;
498
+ }
499
+
500
+ var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports;
501
+ var freeModule$1 = freeExports$1 && typeof module == 'object' && module && !module.nodeType && module;
502
+ var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
503
+ var Buffer = moduleExports$1 ? root.Buffer : undefined;
504
+ var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;
505
+ var isBuffer = nativeIsBuffer || stubFalse;
506
+
507
+ var argsTag = '[object Arguments]',
508
+ arrayTag = '[object Array]',
509
+ boolTag = '[object Boolean]',
510
+ dateTag = '[object Date]',
511
+ errorTag = '[object Error]',
512
+ funcTag = '[object Function]',
513
+ mapTag$2 = '[object Map]',
514
+ numberTag = '[object Number]',
515
+ objectTag$1 = '[object Object]',
516
+ regexpTag = '[object RegExp]',
517
+ setTag$2 = '[object Set]',
518
+ stringTag = '[object String]',
519
+ weakMapTag$1 = '[object WeakMap]';
520
+ var arrayBufferTag = '[object ArrayBuffer]',
521
+ dataViewTag$1 = '[object DataView]',
522
+ float32Tag = '[object Float32Array]',
523
+ float64Tag = '[object Float64Array]',
524
+ int8Tag = '[object Int8Array]',
525
+ int16Tag = '[object Int16Array]',
526
+ int32Tag = '[object Int32Array]',
527
+ uint8Tag = '[object Uint8Array]',
528
+ uint8ClampedTag = '[object Uint8ClampedArray]',
529
+ uint16Tag = '[object Uint16Array]',
530
+ uint32Tag = '[object Uint32Array]';
531
+ var typedArrayTags = {};
532
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
533
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag$1] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag$2] = typedArrayTags[numberTag] = typedArrayTags[objectTag$1] = typedArrayTags[regexpTag] = typedArrayTags[setTag$2] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag$1] = false;
534
+ function baseIsTypedArray(value) {
535
+ return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
536
+ }
537
+
538
+ function baseUnary(func) {
539
+ return function (value) {
540
+ return func(value);
541
+ };
542
+ }
543
+
544
+ var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;
545
+ var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;
546
+ var moduleExports = freeModule && freeModule.exports === freeExports;
547
+ var freeProcess = moduleExports && freeGlobal.process;
548
+ var nodeUtil = function () {
549
+ try {
550
+ var types = freeModule && freeModule.require && freeModule.require('util').types;
551
+ if (types) {
552
+ return types;
553
+ }
554
+ return freeProcess && freeProcess.binding && freeProcess.binding('util');
555
+ } catch (e) {}
556
+ }();
557
+
558
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
559
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
560
+
561
+ var objectProto$2 = Object.prototype;
562
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
563
+ function arrayLikeKeys(value, inherited) {
564
+ var isArr = isArray(value),
565
+ isArg = !isArr && isArguments(value),
566
+ isBuff = !isArr && !isArg && isBuffer(value),
567
+ isType = !isArr && !isArg && !isBuff && isTypedArray(value),
568
+ skipIndexes = isArr || isArg || isBuff || isType,
569
+ result = skipIndexes ? baseTimes(value.length, String) : [],
570
+ length = result.length;
571
+ for (var key in value) {
572
+ if ((hasOwnProperty$2.call(value, key)) && !(skipIndexes && (
573
+ key == 'length' ||
574
+ isBuff && (key == 'offset' || key == 'parent') ||
575
+ isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') ||
576
+ isIndex(key, length)))) {
577
+ result.push(key);
578
+ }
579
+ }
580
+ return result;
581
+ }
582
+
583
+ function overArg(func, transform) {
584
+ return function (arg) {
585
+ return func(transform(arg));
586
+ };
587
+ }
588
+
589
+ var nativeKeys = overArg(Object.keys, Object);
590
+
591
+ var objectProto$1 = Object.prototype;
592
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
593
+ function baseKeys(object) {
594
+ if (!isPrototype(object)) {
595
+ return nativeKeys(object);
596
+ }
597
+ var result = [];
598
+ for (var key in Object(object)) {
599
+ if (hasOwnProperty$1.call(object, key) && key != 'constructor') {
600
+ result.push(key);
601
+ }
602
+ }
603
+ return result;
604
+ }
605
+
606
+ function keys(object) {
607
+ return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);
608
+ }
609
+
610
+ var Map$1 = getNative(root, 'Map');
611
+
612
+ var DataView = getNative(root, 'DataView');
613
+
614
+ var Promise$1 = getNative(root, 'Promise');
615
+
616
+ var Set = getNative(root, 'Set');
617
+
618
+ var mapTag$1 = '[object Map]',
619
+ objectTag = '[object Object]',
620
+ promiseTag = '[object Promise]',
621
+ setTag$1 = '[object Set]',
622
+ weakMapTag = '[object WeakMap]';
623
+ var dataViewTag = '[object DataView]';
624
+ var dataViewCtorString = toSource(DataView),
625
+ mapCtorString = toSource(Map$1),
626
+ promiseCtorString = toSource(Promise$1),
627
+ setCtorString = toSource(Set),
628
+ weakMapCtorString = toSource(WeakMap);
629
+ var getTag = baseGetTag;
630
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map$1 && getTag(new Map$1()) != mapTag$1 || Promise$1 && getTag(Promise$1.resolve()) != promiseTag || Set && getTag(new Set()) != setTag$1 || WeakMap && getTag(new WeakMap()) != weakMapTag) {
631
+ getTag = function (value) {
632
+ var result = baseGetTag(value),
633
+ Ctor = result == objectTag ? value.constructor : undefined,
634
+ ctorString = Ctor ? toSource(Ctor) : '';
635
+ if (ctorString) {
636
+ switch (ctorString) {
637
+ case dataViewCtorString:
638
+ return dataViewTag;
639
+ case mapCtorString:
640
+ return mapTag$1;
641
+ case promiseCtorString:
642
+ return promiseTag;
643
+ case setCtorString:
644
+ return setTag$1;
645
+ case weakMapCtorString:
646
+ return weakMapTag;
647
+ }
648
+ }
649
+ return result;
650
+ };
651
+ }
652
+
653
+ function createBaseFor(fromRight) {
654
+ return function (object, iteratee, keysFunc) {
655
+ var index = -1,
656
+ iterable = Object(object),
657
+ props = keysFunc(object),
658
+ length = props.length;
659
+ while (length--) {
660
+ var key = props[++index];
661
+ if (iteratee(iterable[key], key, iterable) === false) {
662
+ break;
663
+ }
664
+ }
665
+ return object;
666
+ };
667
+ }
668
+
669
+ var baseFor = createBaseFor();
670
+
671
+ function baseForOwn(object, iteratee) {
672
+ return object && baseFor(object, iteratee, keys);
673
+ }
674
+
675
+ function createBaseEach(eachFunc, fromRight) {
676
+ return function (collection, iteratee) {
677
+ if (collection == null) {
678
+ return collection;
679
+ }
680
+ if (!isArrayLike(collection)) {
681
+ return eachFunc(collection, iteratee);
682
+ }
683
+ var length = collection.length,
684
+ index = -1,
685
+ iterable = Object(collection);
686
+ while (++index < length) {
687
+ if (iteratee(iterable[index], index, iterable) === false) {
688
+ break;
689
+ }
690
+ }
691
+ return collection;
692
+ };
693
+ }
694
+
695
+ var baseEach = createBaseEach(baseForOwn);
696
+
697
+ var now = function () {
698
+ return root.Date.now();
699
+ };
700
+
701
+ var FUNC_ERROR_TEXT = 'Expected a function';
702
+ var nativeMax = Math.max,
703
+ nativeMin = Math.min;
704
+ function debounce(func, wait, options) {
705
+ var lastArgs,
706
+ lastThis,
707
+ maxWait,
708
+ result,
709
+ timerId,
710
+ lastCallTime,
711
+ lastInvokeTime = 0,
712
+ leading = false,
713
+ maxing = false,
714
+ trailing = true;
715
+ if (typeof func != 'function') {
716
+ throw new TypeError(FUNC_ERROR_TEXT);
717
+ }
718
+ wait = toNumber(wait) || 0;
719
+ if (isObject(options)) {
720
+ leading = !!options.leading;
721
+ maxing = 'maxWait' in options;
722
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
723
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
724
+ }
725
+ function invokeFunc(time) {
726
+ var args = lastArgs,
727
+ thisArg = lastThis;
728
+ lastArgs = lastThis = undefined;
729
+ lastInvokeTime = time;
730
+ result = func.apply(thisArg, args);
731
+ return result;
732
+ }
733
+ function leadingEdge(time) {
734
+ lastInvokeTime = time;
735
+ timerId = setTimeout(timerExpired, wait);
736
+ return leading ? invokeFunc(time) : result;
737
+ }
738
+ function remainingWait(time) {
739
+ var timeSinceLastCall = time - lastCallTime,
740
+ timeSinceLastInvoke = time - lastInvokeTime,
741
+ timeWaiting = wait - timeSinceLastCall;
742
+ return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
743
+ }
744
+ function shouldInvoke(time) {
745
+ var timeSinceLastCall = time - lastCallTime,
746
+ timeSinceLastInvoke = time - lastInvokeTime;
747
+ return lastCallTime === undefined || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
748
+ }
749
+ function timerExpired() {
750
+ var time = now();
751
+ if (shouldInvoke(time)) {
752
+ return trailingEdge(time);
753
+ }
754
+ timerId = setTimeout(timerExpired, remainingWait(time));
755
+ }
756
+ function trailingEdge(time) {
757
+ timerId = undefined;
758
+ if (trailing && lastArgs) {
759
+ return invokeFunc(time);
760
+ }
761
+ lastArgs = lastThis = undefined;
762
+ return result;
763
+ }
764
+ function cancel() {
765
+ if (timerId !== undefined) {
766
+ clearTimeout(timerId);
767
+ }
768
+ lastInvokeTime = 0;
769
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
770
+ }
771
+ function flush() {
772
+ return timerId === undefined ? result : trailingEdge(now());
773
+ }
774
+ function debounced() {
775
+ var time = now(),
776
+ isInvoking = shouldInvoke(time);
777
+ lastArgs = arguments;
778
+ lastThis = this;
779
+ lastCallTime = time;
780
+ if (isInvoking) {
781
+ if (timerId === undefined) {
782
+ return leadingEdge(lastCallTime);
783
+ }
784
+ if (maxing) {
785
+ clearTimeout(timerId);
786
+ timerId = setTimeout(timerExpired, wait);
787
+ return invokeFunc(lastCallTime);
788
+ }
789
+ }
790
+ if (timerId === undefined) {
791
+ timerId = setTimeout(timerExpired, wait);
792
+ }
793
+ return result;
794
+ }
795
+ debounced.cancel = cancel;
796
+ debounced.flush = flush;
797
+ return debounced;
798
+ }
799
+
800
+ function castFunction(value) {
801
+ return typeof value == 'function' ? value : identity;
802
+ }
803
+
804
+ function forEach(collection, iteratee) {
805
+ var func = isArray(collection) ? arrayEach : baseEach;
806
+ return func(collection, castFunction(iteratee));
807
+ }
808
+
809
+ var mapTag = '[object Map]',
810
+ setTag = '[object Set]';
811
+ var objectProto = Object.prototype;
812
+ var hasOwnProperty = objectProto.hasOwnProperty;
813
+ function isEmpty(value) {
814
+ if (value == null) {
815
+ return true;
816
+ }
817
+ if (isArrayLike(value) && (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
818
+ return !value.length;
819
+ }
820
+ var tag = getTag(value);
821
+ if (tag == mapTag || tag == setTag) {
822
+ return !value.size;
823
+ }
824
+ if (isPrototype(value)) {
825
+ return !baseKeys(value).length;
826
+ }
827
+ for (var key in value) {
828
+ if (hasOwnProperty.call(value, key)) {
829
+ return false;
830
+ }
831
+ }
832
+ return true;
833
+ }
834
+
835
+ const RendererContext = /*#__PURE__*/react.createContext({});
1234
836
  const useRendererContext = () => {
1235
837
  try {
1236
- return require$$0.useContext(RendererContext);
838
+ return react.useContext(RendererContext);
1237
839
  } catch (error) {
1238
840
  console.warn('useRendererContext must be used within a RendererContextProvider');
1239
841
  }
@@ -1242,7 +844,7 @@ const useRendererContext = () => {
1242
844
  function contextFactory() {
1243
845
  let context = window.__appContext;
1244
846
  if (!context) {
1245
- context = /*#__PURE__*/require$$0.createContext({});
847
+ context = /*#__PURE__*/react.createContext({});
1246
848
  window.__appContext = context;
1247
849
  }
1248
850
  return context;
@@ -1431,7 +1033,7 @@ function capitalizeFirstLetter(word) {
1431
1033
  return word[0].toUpperCase() + word.slice(1);
1432
1034
  }
1433
1035
  const isReactClass = obj => {
1434
- return obj && obj.prototype && (obj.prototype.isReactComponent || obj.prototype instanceof require$$0.Component);
1036
+ return obj && obj.prototype && (obj.prototype.isReactComponent || obj.prototype instanceof react.Component);
1435
1037
  };
1436
1038
  function isReactComponent(obj) {
1437
1039
  return obj && (isReactClass(obj) || typeof obj === 'function');
@@ -1446,8 +1048,8 @@ const cloneEnumerableProperty = (target, origin, excludes = excludePropertyNames
1446
1048
  return target;
1447
1049
  };
1448
1050
  const createForwardRefHocElement = (Wrapper, Comp) => {
1449
- const WrapperComponent = cloneEnumerableProperty(/*#__PURE__*/require$$0.forwardRef((props, ref) => {
1450
- return /*#__PURE__*/require$$0.createElement(Wrapper, {
1051
+ const WrapperComponent = cloneEnumerableProperty(/*#__PURE__*/react.forwardRef((props, ref) => {
1052
+ return /*#__PURE__*/react.createElement(Wrapper, {
1451
1053
  ...props,
1452
1054
  forwardRef: ref
1453
1055
  });
@@ -1488,7 +1090,7 @@ const patchDidCatch = (Comp, {
1488
1090
  }
1489
1091
  return originRender.call(this);
1490
1092
  };
1491
- if (!(Comp.prototype instanceof require$$0.PureComponent)) {
1093
+ if (!(Comp.prototype instanceof react.PureComponent)) {
1492
1094
  const originShouldComponentUpdate = Comp.prototype.shouldComponentUpdate;
1493
1095
  Comp.prototype.shouldComponentUpdate = function (nextProps, nextState) {
1494
1096
  if (nextState && nextState.engineRenderError) {
@@ -1500,14 +1102,14 @@ const patchDidCatch = (Comp, {
1500
1102
  };
1501
1103
  const cache$1 = new Map();
1502
1104
  const compWrapper = (Comp, info) => {
1503
- if (Comp?.prototype?.isReactComponent || Comp?.prototype instanceof require$$0.Component) {
1105
+ if (Comp?.prototype?.isReactComponent || Comp?.prototype instanceof react.Component) {
1504
1106
  patchDidCatch(Comp, info);
1505
1107
  return Comp;
1506
1108
  }
1507
1109
  if (info.schema.id && cache$1.has(info.schema.id) && cache$1.get(info.schema.id)?.Comp === Comp) {
1508
1110
  return cache$1.get(info.schema.id)?.WrapperComponent;
1509
1111
  }
1510
- class Wrapper extends require$$0.Component {
1112
+ class Wrapper extends react.Component {
1511
1113
  static displayName = Comp.displayName;
1512
1114
  render() {
1513
1115
  const {
@@ -1515,7 +1117,7 @@ const compWrapper = (Comp, info) => {
1515
1117
  ...rest
1516
1118
  } = this.props;
1517
1119
  // @ts-ignore
1518
- return /*#__PURE__*/require$$0.createElement(Comp, {
1120
+ return /*#__PURE__*/react.createElement(Comp, {
1519
1121
  ...rest,
1520
1122
  ref: forwardRef
1521
1123
  });
@@ -1570,7 +1172,7 @@ const initRerenderEvent = ({
1570
1172
  return;
1571
1173
  }
1572
1174
  cache.event.get(schema.id)?.dispose.forEach(disposeFn => disposeFn && disposeFn());
1573
- const debounceRerender = lodashEs.debounce(() => {
1175
+ const debounceRerender = debounce(() => {
1574
1176
  container.rerender();
1575
1177
  }, 20);
1576
1178
  cache.event.set(schema.id, {
@@ -1652,7 +1254,7 @@ const leafWrapper = (Comp, {
1652
1254
  if (curDocumentId && cache.component.has(componentCacheId) && cache.component.get(componentCacheId).Comp === Comp) {
1653
1255
  return cache.component.get(componentCacheId).LeafWrapper;
1654
1256
  }
1655
- class LeafHoc extends require$$0.Component {
1257
+ class LeafHoc extends react.Component {
1656
1258
  recordInfo = {};
1657
1259
  curEventLeaf;
1658
1260
  static displayName = schema.componentName;
@@ -1661,7 +1263,7 @@ const leafWrapper = (Comp, {
1661
1263
  renderUnitInfo;
1662
1264
 
1663
1265
  // 最小渲染单元做防抖处理
1664
- makeUnitRenderDebounced = lodashEs.debounce(() => {
1266
+ makeUnitRenderDebounced = debounce(() => {
1665
1267
  this.beforeRender(RerenderType.MinimalRenderUnit);
1666
1268
  const schema = this.leaf?.export?.(core.TRANSFORM_STAGE.RENDER);
1667
1269
  if (!schema) {
@@ -1831,7 +1433,7 @@ const leafWrapper = (Comp, {
1831
1433
  /** 监听参数变化 */
1832
1434
  initOnPropsChangeEvent(leaf = this.leaf) {
1833
1435
  // const handlePropsChange = debounce((propChangeInfo: PropChangeInfo) => {
1834
- const handlePropsChange = lodashEs.debounce(propChangeInfo => {
1436
+ const handlePropsChange = debounce(propChangeInfo => {
1835
1437
  const {
1836
1438
  key,
1837
1439
  newValue = null
@@ -2045,7 +1647,7 @@ function baseRendererFactory() {
2045
1647
  const DEFAULT_LOOP_ARG_INDEX = 'index';
2046
1648
  // const scopeIdx = 0
2047
1649
 
2048
- return class BaseRenderer extends require$$0.Component {
1650
+ return class BaseRenderer extends react.Component {
2049
1651
  static displayName = 'BaseRenderer';
2050
1652
  static defaultProps = {
2051
1653
  __schema: {}
@@ -2124,7 +1726,7 @@ function baseRendererFactory() {
2124
1726
  return resolve({});
2125
1727
  }
2126
1728
  this.__dataHelper.getInitData().then(res => {
2127
- if (lodashEs.isEmpty(res)) {
1729
+ if (isEmpty(res)) {
2128
1730
  this.forceUpdate();
2129
1731
  return resolve({});
2130
1732
  }
@@ -2177,7 +1779,7 @@ function baseRendererFactory() {
2177
1779
  }
2178
1780
  });
2179
1781
  this.__customMethodsList = customMethodsList;
2180
- lodashEs.forEach(__schema.methods, (val, key) => {
1782
+ forEach(__schema.methods, (val, key) => {
2181
1783
  let value = val;
2182
1784
  if (core.isJSExpression(value) || core.isJSFunction(value)) {
2183
1785
  value = this.__parseExpression(value, this);
@@ -2199,7 +1801,7 @@ function baseRendererFactory() {
2199
1801
  component: compContext,
2200
1802
  ...ctx
2201
1803
  };
2202
- lodashEs.forEach(obj, (val, key) => {
1804
+ forEach(obj, (val, key) => {
2203
1805
  this[key] = val;
2204
1806
  });
2205
1807
  };
@@ -2631,7 +2233,7 @@ function baseRendererFactory() {
2631
2233
  return checkPropTypes(value, path, propType, componentInfo.name) ? value : undefined;
2632
2234
  };
2633
2235
  const parseReactNode = (data, params) => {
2634
- if (lodashEs.isEmpty(params)) {
2236
+ if (isEmpty(params)) {
2635
2237
  const virtualDom = this.__createVirtualDom(data, scope, {
2636
2238
  schema,
2637
2239
  Comp
@@ -2690,7 +2292,7 @@ function baseRendererFactory() {
2690
2292
  return checkProps(props);
2691
2293
  }
2692
2294
  const res = {};
2693
- lodashEs.forEach(props, (val, key) => {
2295
+ forEach(props, (val, key) => {
2694
2296
  if (key.startsWith('__')) {
2695
2297
  res[key] = val;
2696
2298
  return;
@@ -2712,7 +2314,7 @@ function baseRendererFactory() {
2712
2314
  return this.__instanceMap[id];
2713
2315
  }
2714
2316
  __renderContextProvider = (customProps, children) => {
2715
- return /*#__PURE__*/jsxRuntimeExports.jsx(RendererContext.Provider, {
2317
+ return /*#__PURE__*/jsxRuntime.jsx(RendererContext.Provider, {
2716
2318
  value: {
2717
2319
  ...this.context,
2718
2320
  blockContext: this,
@@ -2722,7 +2324,7 @@ function baseRendererFactory() {
2722
2324
  });
2723
2325
  };
2724
2326
  __renderContextConsumer = children => {
2725
- return /*#__PURE__*/jsxRuntimeExports.jsx(RendererContext.Consumer, {
2327
+ return /*#__PURE__*/jsxRuntime.jsx(RendererContext.Consumer, {
2726
2328
  children: children
2727
2329
  });
2728
2330
  };
@@ -2788,7 +2390,7 @@ function baseRendererFactory() {
2788
2390
  ...(typeof this.props.style === 'object' ? this.props.style : {})
2789
2391
  };
2790
2392
  const id = this.props.id || parsedProps.id;
2791
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
2393
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2792
2394
  ref: this.__getRef,
2793
2395
  className: className,
2794
2396
  id: id,
@@ -2930,7 +2532,7 @@ const FaultComponent = ({
2930
2532
  error
2931
2533
  }) => {
2932
2534
  logger.error(`${componentName} 组件渲染异常, 异常原因: ${error?.message || error || '未知'}`);
2933
- return /*#__PURE__*/jsxRuntimeExports.jsxs("div", {
2535
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
2934
2536
  role: "alert",
2935
2537
  "aria-label": `${componentName} 组件渲染异常`,
2936
2538
  style: {
@@ -2953,11 +2555,11 @@ const NotFoundComponent = ({
2953
2555
  }) => {
2954
2556
  logger.warn(`Component ${componentName} not found`);
2955
2557
  if (enableStrictNotFoundMode) {
2956
- return /*#__PURE__*/jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {
2558
+ return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
2957
2559
  children: `${componentName} Component Not Found`
2958
2560
  });
2959
2561
  }
2960
- return /*#__PURE__*/jsxRuntimeExports.jsx("div", {
2562
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
2961
2563
  role: "alert",
2962
2564
  "aria-label": `${componentName} component not found`,
2963
2565
  style: {
@@ -2975,7 +2577,7 @@ const NotFoundComponent = ({
2975
2577
 
2976
2578
  function rendererFactory() {
2977
2579
  const RENDERER_COMPS = adapter.getRenderers();
2978
- return class Renderer extends require$$0.Component {
2580
+ return class Renderer extends react.Component {
2979
2581
  static displayName = 'Renderer';
2980
2582
  state = {};
2981
2583
  __ref;
@@ -3019,7 +2621,7 @@ function rendererFactory() {
3019
2621
  return SetComponent;
3020
2622
  }
3021
2623
  createElement(SetComponent, props, children) {
3022
- return (this.props.customCreateElement || require$$0.createElement)(SetComponent, props, children);
2624
+ return (this.props.customCreateElement || react.createElement)(SetComponent, props, children);
3023
2625
  }
3024
2626
  getNotFoundComponent() {
3025
2627
  return this.props.notFoundComponent || NotFoundComponent;
@@ -3034,7 +2636,7 @@ function rendererFactory() {
3034
2636
  appHelper,
3035
2637
  components
3036
2638
  } = this.props;
3037
- if (lodashEs.isEmpty(schema)) {
2639
+ if (isEmpty(schema)) {
3038
2640
  return null;
3039
2641
  }
3040
2642
  if (!isSchema(schema)) {
@@ -3049,7 +2651,7 @@ function rendererFactory() {
3049
2651
  // TODO: 默认最顶层使用 PageRenderer
3050
2652
  const Comp = allComponents.PageRenderer;
3051
2653
  if (this.state && this.state.engineRenderError) {
3052
- return /*#__PURE__*/require$$0.createElement(this.getFaultComponent(), {
2654
+ return /*#__PURE__*/react.createElement(this.getFaultComponent(), {
3053
2655
  componentName: schema.componentName,
3054
2656
  error: this.state.error
3055
2657
  });
@@ -3057,13 +2659,13 @@ function rendererFactory() {
3057
2659
  if (!Comp) {
3058
2660
  return null;
3059
2661
  }
3060
- return /*#__PURE__*/jsxRuntimeExports.jsx(RendererContext.Provider, {
2662
+ return /*#__PURE__*/jsxRuntime.jsx(RendererContext.Provider, {
3061
2663
  value: {
3062
2664
  appHelper,
3063
2665
  components: allComponents,
3064
2666
  engine: this
3065
2667
  },
3066
- children: /*#__PURE__*/jsxRuntimeExports.jsx(Comp, {
2668
+ children: /*#__PURE__*/jsxRuntime.jsx(Comp, {
3067
2669
  // ref={this.__getRef}
3068
2670
  __appHelper: appHelper,
3069
2671
  __components: allComponents,