@legendapp/list 2.1.0-next.0 → 2.1.0-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +128 -600
  2. package/index.mjs +62 -534
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var React3 = require('react');
3
+ var React4 = require('react');
4
4
  var shim = require('use-sync-external-store/shim');
5
+ var reactDom = require('react-dom');
5
6
 
6
7
  function _interopNamespace(e) {
7
8
  if (e && e.__esModule) return e;
@@ -21,460 +22,14 @@ function _interopNamespace(e) {
21
22
  return Object.freeze(n);
22
23
  }
23
24
 
24
- var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
25
+ var React4__namespace = /*#__PURE__*/_interopNamespace(React4);
25
26
 
26
- var __create = Object.create;
27
- var __defProp = Object.defineProperty;
28
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
29
- var __getOwnPropNames = Object.getOwnPropertyNames;
30
- var __getProtoOf = Object.getPrototypeOf;
31
- var __hasOwnProp = Object.prototype.hasOwnProperty;
32
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
33
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
34
- }) : x)(function(x) {
35
- if (typeof require !== "undefined") return require.apply(this, arguments);
36
- throw Error('Dynamic require of "' + x + '" is not supported');
37
- });
38
- var __commonJS = (cb, mod) => function __require2() {
39
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
40
- };
41
- var __copyProps = (to, from, except, desc) => {
42
- if (from && typeof from === "object" || typeof from === "function") {
43
- for (let key of __getOwnPropNames(from))
44
- if (!__hasOwnProp.call(to, key) && key !== except)
45
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
- }
47
- return to;
48
- };
49
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
- // If the importer is in node compatibility mode or this is not an ESM
51
- // file that has been converted to a CommonJS file using a Babel-
52
- // compatible transform (i.e. "__esModule" has not been set), then set
53
- // "default" to the CommonJS "module.exports" for node compatibility.
54
- !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
- mod
56
- ));
57
-
58
- // node_modules/react-dom/cjs/react-dom.production.js
59
- var require_react_dom_production = __commonJS({
60
- "node_modules/react-dom/cjs/react-dom.production.js"(exports) {
61
- var React12 = __require("react");
62
- function formatProdErrorMessage(code) {
63
- var url = "https://react.dev/errors/" + code;
64
- if (1 < arguments.length) {
65
- url += "?args[]=" + encodeURIComponent(arguments[1]);
66
- for (var i = 2; i < arguments.length; i++)
67
- url += "&args[]=" + encodeURIComponent(arguments[i]);
68
- }
69
- return "Minified React error #" + code + "; visit " + url + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
70
- }
71
- function noop2() {
72
- }
73
- var Internals = {
74
- d: {
75
- f: noop2,
76
- r: function() {
77
- throw Error(formatProdErrorMessage(522));
78
- },
79
- D: noop2,
80
- C: noop2,
81
- L: noop2,
82
- m: noop2,
83
- X: noop2,
84
- S: noop2,
85
- M: noop2
86
- },
87
- p: 0,
88
- findDOMNode: null
89
- };
90
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
91
- function createPortal$1(children, containerInfo, implementation) {
92
- var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
93
- return {
94
- $$typeof: REACT_PORTAL_TYPE,
95
- key: null == key ? null : "" + key,
96
- children,
97
- containerInfo,
98
- implementation
99
- };
100
- }
101
- var ReactSharedInternals = React12.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
102
- function getCrossOriginStringAs(as, input) {
103
- if ("font" === as) return "";
104
- if ("string" === typeof input)
105
- return "use-credentials" === input ? input : "";
106
- }
107
- exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
108
- exports.createPortal = function(children, container) {
109
- var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
110
- if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
111
- throw Error(formatProdErrorMessage(299));
112
- return createPortal$1(children, container, null, key);
113
- };
114
- exports.flushSync = function(fn) {
115
- var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
116
- try {
117
- if (ReactSharedInternals.T = null, Internals.p = 2, fn) return fn();
118
- } finally {
119
- ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f();
120
- }
121
- };
122
- exports.preconnect = function(href, options) {
123
- "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
124
- };
125
- exports.prefetchDNS = function(href) {
126
- "string" === typeof href && Internals.d.D(href);
127
- };
128
- exports.preinit = function(href, options) {
129
- if ("string" === typeof href && options && "string" === typeof options.as) {
130
- var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
131
- "style" === as ? Internals.d.S(
132
- href,
133
- "string" === typeof options.precedence ? options.precedence : void 0,
134
- {
135
- crossOrigin,
136
- integrity,
137
- fetchPriority
138
- }
139
- ) : "script" === as && Internals.d.X(href, {
140
- crossOrigin,
141
- integrity,
142
- fetchPriority,
143
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
144
- });
145
- }
146
- };
147
- exports.preinitModule = function(href, options) {
148
- if ("string" === typeof href)
149
- if ("object" === typeof options && null !== options) {
150
- if (null == options.as || "script" === options.as) {
151
- var crossOrigin = getCrossOriginStringAs(
152
- options.as,
153
- options.crossOrigin
154
- );
155
- Internals.d.M(href, {
156
- crossOrigin,
157
- integrity: "string" === typeof options.integrity ? options.integrity : void 0,
158
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
159
- });
160
- }
161
- } else null == options && Internals.d.M(href);
162
- };
163
- exports.preload = function(href, options) {
164
- if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
165
- var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
166
- Internals.d.L(href, as, {
167
- crossOrigin,
168
- integrity: "string" === typeof options.integrity ? options.integrity : void 0,
169
- nonce: "string" === typeof options.nonce ? options.nonce : void 0,
170
- type: "string" === typeof options.type ? options.type : void 0,
171
- fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
172
- referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
173
- imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
174
- imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
175
- media: "string" === typeof options.media ? options.media : void 0
176
- });
177
- }
178
- };
179
- exports.preloadModule = function(href, options) {
180
- if ("string" === typeof href)
181
- if (options) {
182
- var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
183
- Internals.d.m(href, {
184
- as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
185
- crossOrigin,
186
- integrity: "string" === typeof options.integrity ? options.integrity : void 0
187
- });
188
- } else Internals.d.m(href);
189
- };
190
- exports.requestFormReset = function(form) {
191
- Internals.d.r(form);
192
- };
193
- exports.unstable_batchedUpdates = function(fn, a) {
194
- return fn(a);
195
- };
196
- exports.useFormState = function(action, initialState, permalink) {
197
- return ReactSharedInternals.H.useFormState(action, initialState, permalink);
198
- };
199
- exports.useFormStatus = function() {
200
- return ReactSharedInternals.H.useHostTransitionStatus();
201
- };
202
- exports.version = "19.1.1";
203
- }
204
- });
205
-
206
- // node_modules/react-dom/cjs/react-dom.development.js
207
- var require_react_dom_development = __commonJS({
208
- "node_modules/react-dom/cjs/react-dom.development.js"(exports) {
209
- "production" !== process.env.NODE_ENV && function() {
210
- function noop2() {
211
- }
212
- function testStringCoercion(value) {
213
- return "" + value;
214
- }
215
- function createPortal$1(children, containerInfo, implementation) {
216
- var key = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
217
- try {
218
- testStringCoercion(key);
219
- var JSCompiler_inline_result = false;
220
- } catch (e) {
221
- JSCompiler_inline_result = true;
222
- }
223
- JSCompiler_inline_result && (console.error(
224
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
225
- "function" === typeof Symbol && Symbol.toStringTag && key[Symbol.toStringTag] || key.constructor.name || "Object"
226
- ), testStringCoercion(key));
227
- return {
228
- $$typeof: REACT_PORTAL_TYPE,
229
- key: null == key ? null : "" + key,
230
- children,
231
- containerInfo,
232
- implementation
233
- };
234
- }
235
- function getCrossOriginStringAs(as, input) {
236
- if ("font" === as) return "";
237
- if ("string" === typeof input)
238
- return "use-credentials" === input ? input : "";
239
- }
240
- function getValueDescriptorExpectingObjectForWarning(thing) {
241
- return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : 'something with type "' + typeof thing + '"';
242
- }
243
- function getValueDescriptorExpectingEnumForWarning(thing) {
244
- return null === thing ? "`null`" : void 0 === thing ? "`undefined`" : "" === thing ? "an empty string" : "string" === typeof thing ? JSON.stringify(thing) : "number" === typeof thing ? "`" + thing + "`" : 'something with type "' + typeof thing + '"';
245
- }
246
- function resolveDispatcher() {
247
- var dispatcher = ReactSharedInternals.H;
248
- null === dispatcher && console.error(
249
- "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
250
- );
251
- return dispatcher;
252
- }
253
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
254
- var React12 = __require("react"), Internals = {
255
- d: {
256
- f: noop2,
257
- r: function() {
258
- throw Error(
259
- "Invalid form element. requestFormReset must be passed a form that was rendered by React."
260
- );
261
- },
262
- D: noop2,
263
- C: noop2,
264
- L: noop2,
265
- m: noop2,
266
- X: noop2,
267
- S: noop2,
268
- M: noop2
269
- },
270
- p: 0,
271
- findDOMNode: null
272
- }, REACT_PORTAL_TYPE = Symbol.for("react.portal"), ReactSharedInternals = React12.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
273
- "function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
274
- "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
275
- );
276
- exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = Internals;
277
- exports.createPortal = function(children, container) {
278
- var key = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
279
- if (!container || 1 !== container.nodeType && 9 !== container.nodeType && 11 !== container.nodeType)
280
- throw Error("Target container is not a DOM element.");
281
- return createPortal$1(children, container, null, key);
282
- };
283
- exports.flushSync = function(fn) {
284
- var previousTransition = ReactSharedInternals.T, previousUpdatePriority = Internals.p;
285
- try {
286
- if (ReactSharedInternals.T = null, Internals.p = 2, fn)
287
- return fn();
288
- } finally {
289
- ReactSharedInternals.T = previousTransition, Internals.p = previousUpdatePriority, Internals.d.f() && console.error(
290
- "flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
291
- );
292
- }
293
- };
294
- exports.preconnect = function(href, options) {
295
- "string" === typeof href && href ? null != options && "object" !== typeof options ? console.error(
296
- "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
297
- getValueDescriptorExpectingEnumForWarning(options)
298
- ) : null != options && "string" !== typeof options.crossOrigin && console.error(
299
- "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
300
- getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
301
- ) : console.error(
302
- "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
303
- getValueDescriptorExpectingObjectForWarning(href)
304
- );
305
- "string" === typeof href && (options ? (options = options.crossOrigin, options = "string" === typeof options ? "use-credentials" === options ? options : "" : void 0) : options = null, Internals.d.C(href, options));
306
- };
307
- exports.prefetchDNS = function(href) {
308
- if ("string" !== typeof href || !href)
309
- console.error(
310
- "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
311
- getValueDescriptorExpectingObjectForWarning(href)
312
- );
313
- else if (1 < arguments.length) {
314
- var options = arguments[1];
315
- "object" === typeof options && options.hasOwnProperty("crossOrigin") ? console.error(
316
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
317
- getValueDescriptorExpectingEnumForWarning(options)
318
- ) : console.error(
319
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
320
- getValueDescriptorExpectingEnumForWarning(options)
321
- );
322
- }
323
- "string" === typeof href && Internals.d.D(href);
324
- };
325
- exports.preinit = function(href, options) {
326
- "string" === typeof href && href ? null == options || "object" !== typeof options ? console.error(
327
- "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
328
- getValueDescriptorExpectingEnumForWarning(options)
329
- ) : "style" !== options.as && "script" !== options.as && console.error(
330
- 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
331
- getValueDescriptorExpectingEnumForWarning(options.as)
332
- ) : console.error(
333
- "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
334
- getValueDescriptorExpectingObjectForWarning(href)
335
- );
336
- if ("string" === typeof href && options && "string" === typeof options.as) {
337
- var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin), integrity = "string" === typeof options.integrity ? options.integrity : void 0, fetchPriority = "string" === typeof options.fetchPriority ? options.fetchPriority : void 0;
338
- "style" === as ? Internals.d.S(
339
- href,
340
- "string" === typeof options.precedence ? options.precedence : void 0,
341
- {
342
- crossOrigin,
343
- integrity,
344
- fetchPriority
345
- }
346
- ) : "script" === as && Internals.d.X(href, {
347
- crossOrigin,
348
- integrity,
349
- fetchPriority,
350
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
351
- });
352
- }
353
- };
354
- exports.preinitModule = function(href, options) {
355
- var encountered = "";
356
- "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
357
- void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "script" !== options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingEnumForWarning(options.as) + ".");
358
- if (encountered)
359
- console.error(
360
- "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
361
- encountered
362
- );
363
- else
364
- switch (encountered = options && "string" === typeof options.as ? options.as : "script", encountered) {
365
- case "script":
366
- break;
367
- default:
368
- encountered = getValueDescriptorExpectingEnumForWarning(encountered), console.error(
369
- 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
370
- encountered,
371
- href
372
- );
373
- }
374
- if ("string" === typeof href)
375
- if ("object" === typeof options && null !== options) {
376
- if (null == options.as || "script" === options.as)
377
- encountered = getCrossOriginStringAs(
378
- options.as,
379
- options.crossOrigin
380
- ), Internals.d.M(href, {
381
- crossOrigin: encountered,
382
- integrity: "string" === typeof options.integrity ? options.integrity : void 0,
383
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
384
- });
385
- } else null == options && Internals.d.M(href);
386
- };
387
- exports.preload = function(href, options) {
388
- var encountered = "";
389
- "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
390
- null == options || "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : "string" === typeof options.as && options.as || (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
391
- encountered && console.error(
392
- 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
393
- encountered
394
- );
395
- if ("string" === typeof href && "object" === typeof options && null !== options && "string" === typeof options.as) {
396
- encountered = options.as;
397
- var crossOrigin = getCrossOriginStringAs(
398
- encountered,
399
- options.crossOrigin
400
- );
401
- Internals.d.L(href, encountered, {
402
- crossOrigin,
403
- integrity: "string" === typeof options.integrity ? options.integrity : void 0,
404
- nonce: "string" === typeof options.nonce ? options.nonce : void 0,
405
- type: "string" === typeof options.type ? options.type : void 0,
406
- fetchPriority: "string" === typeof options.fetchPriority ? options.fetchPriority : void 0,
407
- referrerPolicy: "string" === typeof options.referrerPolicy ? options.referrerPolicy : void 0,
408
- imageSrcSet: "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
409
- imageSizes: "string" === typeof options.imageSizes ? options.imageSizes : void 0,
410
- media: "string" === typeof options.media ? options.media : void 0
411
- });
412
- }
413
- };
414
- exports.preloadModule = function(href, options) {
415
- var encountered = "";
416
- "string" === typeof href && href || (encountered += " The `href` argument encountered was " + getValueDescriptorExpectingObjectForWarning(href) + ".");
417
- void 0 !== options && "object" !== typeof options ? encountered += " The `options` argument encountered was " + getValueDescriptorExpectingObjectForWarning(options) + "." : options && "as" in options && "string" !== typeof options.as && (encountered += " The `as` option encountered was " + getValueDescriptorExpectingObjectForWarning(options.as) + ".");
418
- encountered && console.error(
419
- 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
420
- encountered
421
- );
422
- "string" === typeof href && (options ? (encountered = getCrossOriginStringAs(
423
- options.as,
424
- options.crossOrigin
425
- ), Internals.d.m(href, {
426
- as: "string" === typeof options.as && "script" !== options.as ? options.as : void 0,
427
- crossOrigin: encountered,
428
- integrity: "string" === typeof options.integrity ? options.integrity : void 0
429
- })) : Internals.d.m(href));
430
- };
431
- exports.requestFormReset = function(form) {
432
- Internals.d.r(form);
433
- };
434
- exports.unstable_batchedUpdates = function(fn, a) {
435
- return fn(a);
436
- };
437
- exports.useFormState = function(action, initialState, permalink) {
438
- return resolveDispatcher().useFormState(action, initialState, permalink);
439
- };
440
- exports.useFormStatus = function() {
441
- return resolveDispatcher().useHostTransitionStatus();
442
- };
443
- exports.version = "19.1.1";
444
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
445
- }();
446
- }
447
- });
448
-
449
- // node_modules/react-dom/index.js
450
- var require_react_dom = __commonJS({
451
- "node_modules/react-dom/index.js"(exports, module) {
452
- function checkDCE() {
453
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
454
- return;
455
- }
456
- if (process.env.NODE_ENV !== "production") {
457
- throw new Error("^_^");
458
- }
459
- try {
460
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
461
- } catch (err) {
462
- console.error(err);
463
- }
464
- }
465
- if (process.env.NODE_ENV === "production") {
466
- checkDCE();
467
- module.exports = require_react_dom_production();
468
- } else {
469
- module.exports = require_react_dom_development();
470
- }
471
- }
472
- });
473
- var AnimatedView = React3.forwardRef(function AnimatedView2(props, ref) {
474
- return /* @__PURE__ */ React.createElement("div", { ref, ...props });
27
+ // src/components/LegendList.tsx
28
+ var AnimatedView = React4.forwardRef(function AnimatedView2(props, ref) {
29
+ return /* @__PURE__ */ React4__namespace.createElement("div", { ref, ...props });
475
30
  });
476
- var View = React3.forwardRef(function View2(props, ref) {
477
- return /* @__PURE__ */ React.createElement("div", { ref, ...props });
31
+ var View = React4.forwardRef(function View2(props, ref) {
32
+ return /* @__PURE__ */ React4__namespace.createElement("div", { ref, ...props });
478
33
  });
479
34
  var Text = View;
480
35
 
@@ -482,9 +37,9 @@ var Text = View;
482
37
  var createAnimatedValue = (value) => value;
483
38
 
484
39
  // src/state/state.tsx
485
- var ContextState = React3__namespace.createContext(null);
40
+ var ContextState = React4__namespace.createContext(null);
486
41
  function StateProvider({ children }) {
487
- const [value] = React3__namespace.useState(() => ({
42
+ const [value] = React4__namespace.useState(() => ({
488
43
  animatedScrollY: createAnimatedValue(0),
489
44
  columnWrapperStyle: void 0,
490
45
  internalState: void 0,
@@ -503,10 +58,10 @@ function StateProvider({ children }) {
503
58
  ]),
504
59
  viewRefs: /* @__PURE__ */ new Map()
505
60
  }));
506
- return /* @__PURE__ */ React3__namespace.createElement(ContextState.Provider, { value }, children);
61
+ return /* @__PURE__ */ React4__namespace.createElement(ContextState.Provider, { value }, children);
507
62
  }
508
63
  function useStateContext() {
509
- return React3__namespace.useContext(ContextState);
64
+ return React4__namespace.useContext(ContextState);
510
65
  }
511
66
  function createSelectorFunctionsArr(ctx, signalNames) {
512
67
  let lastValues = [];
@@ -576,23 +131,23 @@ function getContentSize(ctx) {
576
131
  return headerSize + footerSize + totalSize + stylePaddingTop;
577
132
  }
578
133
  function useArr$(signalNames) {
579
- const ctx = React3__namespace.useContext(ContextState);
580
- const { subscribe, get } = React3__namespace.useMemo(() => createSelectorFunctionsArr(ctx, signalNames), [ctx, signalNames]);
134
+ const ctx = React4__namespace.useContext(ContextState);
135
+ const { subscribe, get } = React4__namespace.useMemo(() => createSelectorFunctionsArr(ctx, signalNames), [ctx, signalNames]);
581
136
  const value = shim.useSyncExternalStore(subscribe, get);
582
137
  return value;
583
138
  }
584
139
  function useSelector$(signalName, selector) {
585
- const ctx = React3__namespace.useContext(ContextState);
586
- const { subscribe, get } = React3__namespace.useMemo(() => createSelectorFunctionsArr(ctx, [signalName]), [ctx, signalName]);
140
+ const ctx = React4__namespace.useContext(ContextState);
141
+ const { subscribe, get } = React4__namespace.useMemo(() => createSelectorFunctionsArr(ctx, [signalName]), [ctx, signalName]);
587
142
  const value = shim.useSyncExternalStore(subscribe, () => selector(get()[0]));
588
143
  return value;
589
144
  }
590
145
 
591
146
  // src/components/DebugView.tsx
592
147
  var DebugRow = ({ children }) => {
593
- return /* @__PURE__ */ React3__namespace.createElement(View, { style: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" } }, children);
148
+ return /* @__PURE__ */ React4__namespace.createElement(View, { style: { alignItems: "center", flexDirection: "row", justifyContent: "space-between" } }, children);
594
149
  };
595
- var DebugView = React3__namespace.memo(function DebugView2({ state }) {
150
+ var DebugView = React4__namespace.memo(function DebugView2({ state }) {
596
151
  const ctx = useStateContext();
597
152
  const [totalSize = 0, scrollAdjust = 0, rawScroll = 0, scroll = 0, _numContainers = 0, _numContainersPooled = 0] = useArr$([
598
153
  "totalSize",
@@ -603,11 +158,11 @@ var DebugView = React3__namespace.memo(function DebugView2({ state }) {
603
158
  "numContainersPooled"
604
159
  ]);
605
160
  const contentSize = getContentSize(ctx);
606
- const [, forceUpdate] = React3.useReducer((x) => x + 1, 0);
161
+ const [, forceUpdate] = React4.useReducer((x) => x + 1, 0);
607
162
  useInterval(() => {
608
163
  forceUpdate();
609
164
  }, 100);
610
- return /* @__PURE__ */ React3__namespace.createElement(
165
+ return /* @__PURE__ */ React4__namespace.createElement(
611
166
  View,
612
167
  {
613
168
  pointerEvents: "none",
@@ -623,16 +178,16 @@ var DebugView = React3__namespace.memo(function DebugView2({ state }) {
623
178
  top: 0
624
179
  }
625
180
  },
626
- /* @__PURE__ */ React3__namespace.createElement(DebugRow, null, /* @__PURE__ */ React3__namespace.createElement(Text, null, "TotalSize:"), /* @__PURE__ */ React3__namespace.createElement(Text, null, totalSize.toFixed(2))),
627
- /* @__PURE__ */ React3__namespace.createElement(DebugRow, null, /* @__PURE__ */ React3__namespace.createElement(Text, null, "ContentSize:"), /* @__PURE__ */ React3__namespace.createElement(Text, null, contentSize.toFixed(2))),
628
- /* @__PURE__ */ React3__namespace.createElement(DebugRow, null, /* @__PURE__ */ React3__namespace.createElement(Text, null, "At end:"), /* @__PURE__ */ React3__namespace.createElement(Text, null, String(state.isAtEnd))),
629
- /* @__PURE__ */ React3__namespace.createElement(DebugRow, null, /* @__PURE__ */ React3__namespace.createElement(Text, null, "ScrollAdjust:"), /* @__PURE__ */ React3__namespace.createElement(Text, null, scrollAdjust.toFixed(2))),
630
- /* @__PURE__ */ React3__namespace.createElement(DebugRow, null, /* @__PURE__ */ React3__namespace.createElement(Text, null, "RawScroll: "), /* @__PURE__ */ React3__namespace.createElement(Text, null, rawScroll.toFixed(2))),
631
- /* @__PURE__ */ React3__namespace.createElement(DebugRow, null, /* @__PURE__ */ React3__namespace.createElement(Text, null, "ComputedScroll: "), /* @__PURE__ */ React3__namespace.createElement(Text, null, scroll.toFixed(2)))
181
+ /* @__PURE__ */ React4__namespace.createElement(DebugRow, null, /* @__PURE__ */ React4__namespace.createElement(Text, null, "TotalSize:"), /* @__PURE__ */ React4__namespace.createElement(Text, null, totalSize.toFixed(2))),
182
+ /* @__PURE__ */ React4__namespace.createElement(DebugRow, null, /* @__PURE__ */ React4__namespace.createElement(Text, null, "ContentSize:"), /* @__PURE__ */ React4__namespace.createElement(Text, null, contentSize.toFixed(2))),
183
+ /* @__PURE__ */ React4__namespace.createElement(DebugRow, null, /* @__PURE__ */ React4__namespace.createElement(Text, null, "At end:"), /* @__PURE__ */ React4__namespace.createElement(Text, null, String(state.isAtEnd))),
184
+ /* @__PURE__ */ React4__namespace.createElement(DebugRow, null, /* @__PURE__ */ React4__namespace.createElement(Text, null, "ScrollAdjust:"), /* @__PURE__ */ React4__namespace.createElement(Text, null, scrollAdjust.toFixed(2))),
185
+ /* @__PURE__ */ React4__namespace.createElement(DebugRow, null, /* @__PURE__ */ React4__namespace.createElement(Text, null, "RawScroll: "), /* @__PURE__ */ React4__namespace.createElement(Text, null, rawScroll.toFixed(2))),
186
+ /* @__PURE__ */ React4__namespace.createElement(DebugRow, null, /* @__PURE__ */ React4__namespace.createElement(Text, null, "ComputedScroll: "), /* @__PURE__ */ React4__namespace.createElement(Text, null, scroll.toFixed(2)))
632
187
  );
633
188
  });
634
189
  function useInterval(callback, delay) {
635
- React3.useEffect(() => {
190
+ React4.useEffect(() => {
636
191
  const interval = setInterval(callback, delay);
637
192
  return () => clearInterval(interval);
638
193
  }, [delay]);
@@ -655,7 +210,7 @@ function getGlobalResizeObserver() {
655
210
  }
656
211
  var callbackMap = /* @__PURE__ */ new WeakMap();
657
212
  function useResizeObserver(element, callback) {
658
- React3.useEffect(() => {
213
+ React4.useEffect(() => {
659
214
  if (!element) return;
660
215
  const observer = getGlobalResizeObserver();
661
216
  let callbacks = callbackMap.get(element);
@@ -686,14 +241,14 @@ function useSyncLayout({
686
241
  var _a, _b;
687
242
  useResizeObserver(
688
243
  ((_b = (_a = ref.current) == null ? void 0 : _a.getScrollableNode) == null ? void 0 : _b.call(_a)) || ref.current,
689
- React3.useCallback(
244
+ React4.useCallback(
690
245
  (entry) => {
691
246
  onLayoutChange(entry.contentRect, false);
692
247
  },
693
248
  [onLayoutChange]
694
249
  )
695
250
  );
696
- React3.useLayoutEffect(() => {
251
+ React4.useLayoutEffect(() => {
697
252
  if (ref.current) {
698
253
  const rect = ref.current.getBoundingClientRect();
699
254
  onLayoutChange(
@@ -712,17 +267,17 @@ function useSyncLayout({
712
267
 
713
268
  // src/components/LayoutView.tsx
714
269
  var LayoutView = ({ onLayoutChange, refView, children, ...rest }) => {
715
- const ref = refView != null ? refView : React3.useRef();
270
+ const ref = refView != null ? refView : React4.useRef();
716
271
  useSyncLayout({ onLayoutChange, ref });
717
- return /* @__PURE__ */ React.createElement("div", { ...rest, ref }, children);
272
+ return /* @__PURE__ */ React4__namespace.createElement("div", { ...rest, ref }, children);
718
273
  };
719
274
 
720
275
  // src/constants.ts
721
276
  var POSITION_OUT_OF_VIEW = -1e7;
722
277
  var ENABLE_DEVMODE = __DEV__ && false;
723
278
  var ENABLE_DEBUG_VIEW = __DEV__ && false;
724
- var typedForwardRef = React3.forwardRef;
725
- var typedMemo = React3.memo;
279
+ var typedForwardRef = React4.forwardRef;
280
+ var typedMemo = React4.memo;
726
281
 
727
282
  // src/components/PositionView.tsx
728
283
  var PositionViewState = typedMemo(function PositionView({
@@ -735,7 +290,7 @@ var PositionViewState = typedMemo(function PositionView({
735
290
  const [position = POSITION_OUT_OF_VIEW] = useArr$([`containerPosition${id}`]);
736
291
  const base = Array.isArray(style) ? Object.assign({}, ...style) : style;
737
292
  const combinedStyle = horizontal ? { ...base, left: position } : { ...base, top: position };
738
- return /* @__PURE__ */ React3__namespace.createElement(LayoutView, { refView, style: combinedStyle, ...rest });
293
+ return /* @__PURE__ */ React4__namespace.createElement(LayoutView, { refView, style: combinedStyle, ...rest });
739
294
  });
740
295
  var PositionViewSticky = typedMemo(function PositionViewSticky2({
741
296
  id,
@@ -746,7 +301,7 @@ var PositionViewSticky = typedMemo(function PositionViewSticky2({
746
301
  ...rest
747
302
  }) {
748
303
  const [position = POSITION_OUT_OF_VIEW] = useArr$([`containerPosition${id}`]);
749
- const viewStyle = React3__namespace.useMemo(() => {
304
+ const viewStyle = React4__namespace.useMemo(() => {
750
305
  const base = Array.isArray(style) ? Object.assign({}, ...style) : style;
751
306
  const axisStyle = horizontal ? { transform: `translateX(${position}px)` } : { top: position };
752
307
  return {
@@ -755,13 +310,13 @@ var PositionViewSticky = typedMemo(function PositionViewSticky2({
755
310
  ...axisStyle
756
311
  };
757
312
  }, [style, position, horizontal, index]);
758
- return /* @__PURE__ */ React3__namespace.createElement(LayoutView, { refView, style: viewStyle, ...rest });
313
+ return /* @__PURE__ */ React4__namespace.createElement(LayoutView, { refView, style: viewStyle, ...rest });
759
314
  });
760
315
  var PositionView2 = PositionViewState;
761
316
  function Separator({ ItemSeparatorComponent, itemKey, leadingItem }) {
762
317
  const [lastItemKeys] = useArr$(["lastItemKeys"]);
763
318
  const isALastItem = lastItemKeys.includes(itemKey);
764
- return isALastItem ? null : /* @__PURE__ */ React3__namespace.createElement(ItemSeparatorComponent, { leadingItem });
319
+ return isALastItem ? null : /* @__PURE__ */ React4__namespace.createElement(ItemSeparatorComponent, { leadingItem });
765
320
  }
766
321
 
767
322
  // src/constants-platform.ts
@@ -774,7 +329,7 @@ var Platform = {
774
329
  };
775
330
  var symbolFirst = Symbol();
776
331
  function useInit(cb) {
777
- const refValue = React3.useRef(symbolFirst);
332
+ const refValue = React4.useRef(symbolFirst);
778
333
  if (refValue.current === symbolFirst) {
779
334
  refValue.current = cb();
780
335
  }
@@ -813,10 +368,10 @@ function extractPadding(style, contentContainerStyle, type) {
813
368
  }
814
369
 
815
370
  // src/state/ContextContainer.ts
816
- var ContextContainer = React3.createContext(null);
371
+ var ContextContainer = React4.createContext(null);
817
372
  function useViewability(callback, configId) {
818
373
  const ctx = useStateContext();
819
- const { containerId } = React3.useContext(ContextContainer);
374
+ const { containerId } = React4.useContext(ContextContainer);
820
375
  const key = containerId + (configId != null ? configId : "");
821
376
  useInit(() => {
822
377
  const value = ctx.mapViewabilityValues.get(key);
@@ -825,7 +380,7 @@ function useViewability(callback, configId) {
825
380
  }
826
381
  });
827
382
  ctx.mapViewabilityCallbacks.set(key, callback);
828
- React3.useEffect(
383
+ React4.useEffect(
829
384
  () => () => {
830
385
  ctx.mapViewabilityCallbacks.delete(key);
831
386
  },
@@ -834,7 +389,7 @@ function useViewability(callback, configId) {
834
389
  }
835
390
  function useViewabilityAmount(callback) {
836
391
  const ctx = useStateContext();
837
- const { containerId } = React3.useContext(ContextContainer);
392
+ const { containerId } = React4.useContext(ContextContainer);
838
393
  useInit(() => {
839
394
  const value = ctx.mapViewabilityAmountValues.get(containerId);
840
395
  if (value) {
@@ -842,7 +397,7 @@ function useViewabilityAmount(callback) {
842
397
  }
843
398
  });
844
399
  ctx.mapViewabilityAmountCallbacks.set(containerId, callback);
845
- React3.useEffect(
400
+ React4.useEffect(
846
401
  () => () => {
847
402
  ctx.mapViewabilityAmountCallbacks.delete(containerId);
848
403
  },
@@ -850,12 +405,12 @@ function useViewabilityAmount(callback) {
850
405
  );
851
406
  }
852
407
  function useRecyclingEffect(effect) {
853
- const { index, value } = React3.useContext(ContextContainer);
854
- const prevValues = React3.useRef({
408
+ const { index, value } = React4.useContext(ContextContainer);
409
+ const prevValues = React4.useRef({
855
410
  prevIndex: void 0,
856
411
  prevItem: void 0
857
412
  });
858
- React3.useEffect(() => {
413
+ React4.useEffect(() => {
859
414
  let ret;
860
415
  if (prevValues.current.prevIndex !== void 0 && prevValues.current.prevItem !== void 0) {
861
416
  ret = effect({
@@ -873,12 +428,12 @@ function useRecyclingEffect(effect) {
873
428
  }, [index, value, effect]);
874
429
  }
875
430
  function useRecyclingState(valueOrFun) {
876
- const { index, value, itemKey, triggerLayout } = React3.useContext(ContextContainer);
877
- const refState = React3.useRef({
431
+ const { index, value, itemKey, triggerLayout } = React4.useContext(ContextContainer);
432
+ const refState = React4.useRef({
878
433
  itemKey: null,
879
434
  value: null
880
435
  });
881
- const [_, setRenderNum] = React3.useState(0);
436
+ const [_, setRenderNum] = React4.useState(0);
882
437
  const state = refState.current;
883
438
  if (state.itemKey !== itemKey) {
884
439
  state.itemKey = itemKey;
@@ -889,7 +444,7 @@ function useRecyclingState(valueOrFun) {
889
444
  prevItem: void 0
890
445
  }) : valueOrFun;
891
446
  }
892
- const setState = React3.useCallback(
447
+ const setState = React4.useCallback(
893
448
  (newState) => {
894
449
  state.value = isFunction(newState) ? newState(state.value) : newState;
895
450
  setRenderNum((v) => v + 1);
@@ -900,7 +455,7 @@ function useRecyclingState(valueOrFun) {
900
455
  return [state.value, setState];
901
456
  }
902
457
  function useIsLastItem() {
903
- const { itemKey } = React3.useContext(ContextContainer);
458
+ const { itemKey } = React4.useContext(ContextContainer);
904
459
  const isLast = useSelector$("lastItemKeys", (lastItemKeys) => (lastItemKeys == null ? void 0 : lastItemKeys.includes(itemKey)) || false);
905
460
  return isLast;
906
461
  }
@@ -910,7 +465,7 @@ function useListScrollSize() {
910
465
  }
911
466
  function useSyncLayout2() {
912
467
  {
913
- const { triggerLayout: syncLayout } = React3.useContext(ContextContainer);
468
+ const { triggerLayout: syncLayout } = React4.useContext(ContextContainer);
914
469
  return syncLayout;
915
470
  }
916
471
  }
@@ -934,12 +489,12 @@ var Container = typedMemo(function Container2({
934
489
  "extraData",
935
490
  `containerSticky${id}`
936
491
  ]);
937
- const refLastSize = React3.useRef();
938
- const ref = React3.useRef(null);
939
- const [_, forceLayoutRender] = React3.useState(0);
492
+ const refLastSize = React4.useRef();
493
+ const ref = React4.useRef(null);
494
+ const [_, forceLayoutRender] = React4.useState(0);
940
495
  const otherAxisPos = numColumns > 1 ? `${(column - 1) / numColumns * 100}%` : 0;
941
496
  const otherAxisSize = numColumns > 1 ? `${1 / numColumns * 100}%` : void 0;
942
- const style = React3.useMemo(() => {
497
+ const style = React4.useMemo(() => {
943
498
  let paddingStyles;
944
499
  if (columnWrapperStyle) {
945
500
  const { columnGap, rowGap, gap } = columnWrapperStyle;
@@ -975,12 +530,12 @@ var Container = typedMemo(function Container2({
975
530
  ...paddingStyles || {}
976
531
  };
977
532
  }, [horizontal, otherAxisPos, otherAxisSize, columnWrapperStyle, numColumns]);
978
- const renderedItemInfo = React3.useMemo(
533
+ const renderedItemInfo = React4.useMemo(
979
534
  () => itemKey !== void 0 ? getRenderedItem2(itemKey) : null,
980
535
  [itemKey, data, extraData]
981
536
  );
982
537
  const { index, renderedItem } = renderedItemInfo || {};
983
- const contextValue = React3.useMemo(() => {
538
+ const contextValue = React4.useMemo(() => {
984
539
  ctx.viewRefs.set(id, ref);
985
540
  return {
986
541
  containerId: id,
@@ -1006,7 +561,7 @@ var Container = typedMemo(function Container2({
1006
561
  }
1007
562
  };
1008
563
  const PositionComponent = isSticky ? PositionViewSticky : PositionView2;
1009
- return /* @__PURE__ */ React.createElement(ContextContainer.Provider, { value: contextValue }, /* @__PURE__ */ React.createElement(
564
+ return /* @__PURE__ */ React4__namespace.createElement(ContextContainer.Provider, { value: contextValue }, /* @__PURE__ */ React4__namespace.createElement(
1010
565
  PositionComponent,
1011
566
  {
1012
567
  horizontal,
@@ -1018,7 +573,7 @@ var Container = typedMemo(function Container2({
1018
573
  style
1019
574
  },
1020
575
  renderedItem,
1021
- renderedItemInfo && ItemSeparatorComponent && /* @__PURE__ */ React.createElement(
576
+ renderedItemInfo && ItemSeparatorComponent && /* @__PURE__ */ React4__namespace.createElement(
1022
577
  Separator,
1023
578
  {
1024
579
  ItemSeparatorComponent,
@@ -1116,8 +671,8 @@ function findLIS(arr) {
1116
671
  // src/hooks/useDOMOrder.ts
1117
672
  function useDOMOrder(ref) {
1118
673
  const ctx = useStateContext();
1119
- const debounceRef = React3.useRef(void 0);
1120
- React3.useEffect(() => {
674
+ const debounceRef = React4.useRef(void 0);
675
+ React4.useEffect(() => {
1121
676
  const unsubscribe = listen$(ctx, "lastPositionUpdate", () => {
1122
677
  if (debounceRef.current !== void 0) {
1123
678
  clearTimeout(debounceRef.current);
@@ -1141,7 +696,7 @@ function useDOMOrder(ref) {
1141
696
 
1142
697
  // src/components/Containers.tsx
1143
698
  var ContainersInner = typedMemo(function ContainersInner2({ horizontal, numColumns, children }) {
1144
- const ref = React3.useRef(null);
699
+ const ref = React4.useRef(null);
1145
700
  const ctx = useStateContext();
1146
701
  const columnWrapperStyle = ctx.columnWrapperStyle;
1147
702
  const [totalSize, otherAxisSize] = useArr$(["totalSize", "otherAxisSize"]);
@@ -1167,7 +722,7 @@ var ContainersInner = typedMemo(function ContainersInner2({ horizontal, numColum
1167
722
  }
1168
723
  }
1169
724
  }
1170
- return /* @__PURE__ */ React3__namespace.createElement("div", { ref, style }, children);
725
+ return /* @__PURE__ */ React4__namespace.createElement("div", { ref, style }, children);
1171
726
  });
1172
727
  var Containers = typedMemo(function Containers2({
1173
728
  horizontal,
@@ -1181,7 +736,7 @@ var Containers = typedMemo(function Containers2({
1181
736
  const containers = [];
1182
737
  for (let i = 0; i < numContainers; i++) {
1183
738
  containers.push(
1184
- /* @__PURE__ */ React3__namespace.createElement(
739
+ /* @__PURE__ */ React4__namespace.createElement(
1185
740
  Container,
1186
741
  {
1187
742
  getRenderedItem: getRenderedItem2,
@@ -1195,10 +750,10 @@ var Containers = typedMemo(function Containers2({
1195
750
  )
1196
751
  );
1197
752
  }
1198
- return /* @__PURE__ */ React3__namespace.createElement(ContainersInner, { horizontal, numColumns, waitForInitialLayout }, containers);
753
+ return /* @__PURE__ */ React4__namespace.createElement(ContainersInner, { horizontal, numColumns, waitForInitialLayout }, containers);
1199
754
  });
1200
- var DevNumbers = __DEV__ && React3__namespace.memo(function DevNumbers2() {
1201
- return Array.from({ length: 100 }).map((_, index) => /* @__PURE__ */ React3__namespace.createElement(
755
+ var DevNumbers = __DEV__ && React4__namespace.memo(function DevNumbers2() {
756
+ return Array.from({ length: 100 }).map((_, index) => /* @__PURE__ */ React4__namespace.createElement(
1202
757
  View,
1203
758
  {
1204
759
  key: index,
@@ -1210,10 +765,10 @@ var DevNumbers = __DEV__ && React3__namespace.memo(function DevNumbers2() {
1210
765
  width: "100%"
1211
766
  }
1212
767
  },
1213
- /* @__PURE__ */ React3__namespace.createElement(Text, { style: { color: "red" } }, index * 100)
768
+ /* @__PURE__ */ React4__namespace.createElement(Text, { style: { color: "red" } }, index * 100)
1214
769
  ));
1215
770
  });
1216
- var ListComponentScrollView = React3.forwardRef(function ListComponentScrollView2({
771
+ var ListComponentScrollView = React4.forwardRef(function ListComponentScrollView2({
1217
772
  children,
1218
773
  style,
1219
774
  contentContainerStyle,
@@ -1229,10 +784,10 @@ var ListComponentScrollView = React3.forwardRef(function ListComponentScrollView
1229
784
  ScrollComponent,
1230
785
  ...props
1231
786
  }, ref) {
1232
- const scrollRef = React3.useRef(null);
1233
- const contentRef = React3.useRef(null);
1234
- const momentumTimeout = React3.useRef(null);
1235
- React3.useImperativeHandle(ref, () => {
787
+ const scrollRef = React4.useRef(null);
788
+ const contentRef = React4.useRef(null);
789
+ const momentumTimeout = React4.useRef(null);
790
+ React4.useImperativeHandle(ref, () => {
1236
791
  const api = {
1237
792
  getBoundingClientRect: () => {
1238
793
  var _a;
@@ -1275,7 +830,7 @@ var ListComponentScrollView = React3.forwardRef(function ListComponentScrollView
1275
830
  };
1276
831
  return api;
1277
832
  }, [horizontal]);
1278
- const handleScroll = React3.useCallback(
833
+ const handleScroll = React4.useCallback(
1279
834
  (event) => {
1280
835
  if (!onScroll2 || !(event == null ? void 0 : event.target)) {
1281
836
  return;
@@ -1311,7 +866,7 @@ var ListComponentScrollView = React3.forwardRef(function ListComponentScrollView
1311
866
  },
1312
867
  [onScroll2, onMomentumScrollEnd]
1313
868
  );
1314
- React3.useLayoutEffect(() => {
869
+ React4.useLayoutEffect(() => {
1315
870
  const element = scrollRef.current;
1316
871
  if (!element) return;
1317
872
  element.addEventListener("scroll", handleScroll, { passive: true });
@@ -1319,13 +874,13 @@ var ListComponentScrollView = React3.forwardRef(function ListComponentScrollView
1319
874
  element.removeEventListener("scroll", handleScroll);
1320
875
  };
1321
876
  }, [handleScroll]);
1322
- React3.useLayoutEffect(() => {
877
+ React4.useLayoutEffect(() => {
1323
878
  if (contentOffset && scrollRef.current) {
1324
879
  scrollRef.current.scrollLeft = contentOffset.x || 0;
1325
880
  scrollRef.current.scrollTop = contentOffset.y || 0;
1326
881
  }
1327
882
  }, [contentOffset]);
1328
- React3.useLayoutEffect(() => {
883
+ React4.useLayoutEffect(() => {
1329
884
  if (!onLayout || !scrollRef.current) return;
1330
885
  const element = scrollRef.current;
1331
886
  const fireLayout = () => {
@@ -1365,11 +920,11 @@ var ListComponentScrollView = React3.forwardRef(function ListComponentScrollView
1365
920
  minWidth: horizontal ? "100%" : void 0,
1366
921
  ...contentContainerStyle
1367
922
  };
1368
- return /* @__PURE__ */ React.createElement("div", { ref: scrollRef, style: scrollViewStyle, ...props }, refreshControl, /* @__PURE__ */ React.createElement("div", { ref: contentRef, style: contentStyle }, children));
923
+ return /* @__PURE__ */ React4__namespace.createElement("div", { ref: scrollRef, style: scrollViewStyle, ...props }, refreshControl, /* @__PURE__ */ React4__namespace.createElement("div", { ref: contentRef, style: contentStyle }, children));
1369
924
  });
1370
925
  function useValueListener$(key, callback) {
1371
926
  const ctx = useStateContext();
1372
- React3.useLayoutEffect(() => {
927
+ React4.useLayoutEffect(() => {
1373
928
  listen$(ctx, key, (value) => {
1374
929
  callback(value);
1375
930
  });
@@ -1379,8 +934,8 @@ function useValueListener$(key, callback) {
1379
934
  // src/components/ScrollAdjust.tsx
1380
935
  function ScrollAdjust() {
1381
936
  const ctx = useStateContext();
1382
- const lastScrollOffsetRef = React3__namespace.useRef(0);
1383
- const callback = React3__namespace.useCallback(() => {
937
+ const lastScrollOffsetRef = React4__namespace.useRef(0);
938
+ const callback = React4__namespace.useCallback(() => {
1384
939
  var _a;
1385
940
  const scrollAdjust = peek$(ctx, "scrollAdjust");
1386
941
  const scrollAdjustUserOffset = peek$(ctx, "scrollAdjustUserOffset");
@@ -1414,21 +969,21 @@ function useValue$(key, params) {
1414
969
 
1415
970
  // src/components/ListComponent.tsx
1416
971
  var getComponent = (Component) => {
1417
- if (React3__namespace.isValidElement(Component)) {
972
+ if (React4__namespace.isValidElement(Component)) {
1418
973
  return Component;
1419
974
  }
1420
975
  if (Component) {
1421
- return /* @__PURE__ */ React3__namespace.createElement(Component, null);
976
+ return /* @__PURE__ */ React4__namespace.createElement(Component, null);
1422
977
  }
1423
978
  return null;
1424
979
  };
1425
980
  var Padding = () => {
1426
981
  const animPaddingTop = useValue$("alignItemsPaddingTop");
1427
- return /* @__PURE__ */ React3__namespace.createElement(AnimatedView, { style: { paddingTop: animPaddingTop } });
982
+ return /* @__PURE__ */ React4__namespace.createElement(AnimatedView, { style: { paddingTop: animPaddingTop } });
1428
983
  };
1429
984
  var PaddingDevMode = () => {
1430
985
  const animPaddingTop = useValue$("alignItemsPaddingTop");
1431
- return /* @__PURE__ */ React3__namespace.createElement(React3__namespace.Fragment, null, /* @__PURE__ */ React3__namespace.createElement(AnimatedView, { style: { paddingTop: animPaddingTop } }), /* @__PURE__ */ React3__namespace.createElement(
986
+ return /* @__PURE__ */ React4__namespace.createElement(React4__namespace.Fragment, null, /* @__PURE__ */ React4__namespace.createElement(AnimatedView, { style: { paddingTop: animPaddingTop } }), /* @__PURE__ */ React4__namespace.createElement(
1432
987
  AnimatedView,
1433
988
  {
1434
989
  style: {
@@ -1471,12 +1026,12 @@ var ListComponent = typedMemo(function ListComponent2({
1471
1026
  ...rest
1472
1027
  }) {
1473
1028
  const ctx = useStateContext();
1474
- const refHeader = React3__namespace.useRef(null);
1475
- const ScrollComponent = renderScrollComponent ? React3.useMemo(
1476
- () => React3__namespace.forwardRef((props, ref) => renderScrollComponent({ ...props, ref })),
1029
+ const refHeader = React4__namespace.useRef(null);
1030
+ const ScrollComponent = renderScrollComponent ? React4.useMemo(
1031
+ () => React4__namespace.forwardRef((props, ref) => renderScrollComponent({ ...props, ref })),
1477
1032
  [renderScrollComponent]
1478
1033
  ) : ListComponentScrollView;
1479
- React3__namespace.useEffect(() => {
1034
+ React4__namespace.useEffect(() => {
1480
1035
  if (canRender) {
1481
1036
  setTimeout(() => {
1482
1037
  scrollAdjustHandler.setMounted();
@@ -1484,13 +1039,13 @@ var ListComponent = typedMemo(function ListComponent2({
1484
1039
  }
1485
1040
  }, [canRender]);
1486
1041
  const SnapOrScroll = snapToIndices ? SnapWrapper : ScrollComponent;
1487
- const contentContainerStyleWeb = React3.useMemo(() => {
1042
+ const contentContainerStyleWeb = React4.useMemo(() => {
1488
1043
  const base = contentContainerStyle || void 0;
1489
1044
  if (!horizontal) return base;
1490
1045
  if (base && base.height === "100%") return base;
1491
1046
  return { ...base || {}, height: "100%" };
1492
1047
  }, [horizontal, (contentContainerStyle == null ? void 0 : contentContainerStyle.height) === "100%" ? 1 : 0]);
1493
- return /* @__PURE__ */ React3__namespace.createElement(
1048
+ return /* @__PURE__ */ React4__namespace.createElement(
1494
1049
  SnapOrScroll,
1495
1050
  {
1496
1051
  ...rest,
@@ -1504,9 +1059,9 @@ var ListComponent = typedMemo(function ListComponent2({
1504
1059
  ScrollComponent: snapToIndices ? ScrollComponent : void 0,
1505
1060
  style
1506
1061
  },
1507
- maintainVisibleContentPosition && /* @__PURE__ */ React3__namespace.createElement(ScrollAdjust, null),
1508
- ENABLE_DEVMODE ? /* @__PURE__ */ React3__namespace.createElement(PaddingDevMode, null) : /* @__PURE__ */ React3__namespace.createElement(Padding, null),
1509
- ListHeaderComponent && /* @__PURE__ */ React3__namespace.createElement(
1062
+ maintainVisibleContentPosition && /* @__PURE__ */ React4__namespace.createElement(ScrollAdjust, null),
1063
+ ENABLE_DEVMODE ? /* @__PURE__ */ React4__namespace.createElement(PaddingDevMode, null) : /* @__PURE__ */ React4__namespace.createElement(Padding, null),
1064
+ ListHeaderComponent && /* @__PURE__ */ React4__namespace.createElement(
1510
1065
  LayoutView,
1511
1066
  {
1512
1067
  onLayoutChange: onLayoutHeader,
@@ -1516,7 +1071,7 @@ var ListComponent = typedMemo(function ListComponent2({
1516
1071
  getComponent(ListHeaderComponent)
1517
1072
  ),
1518
1073
  ListEmptyComponent && getComponent(ListEmptyComponent),
1519
- canRender && /* @__PURE__ */ React3__namespace.createElement(
1074
+ canRender && /* @__PURE__ */ React4__namespace.createElement(
1520
1075
  Containers,
1521
1076
  {
1522
1077
  getRenderedItem: getRenderedItem2,
@@ -1527,7 +1082,7 @@ var ListComponent = typedMemo(function ListComponent2({
1527
1082
  waitForInitialLayout
1528
1083
  }
1529
1084
  ),
1530
- ListFooterComponent && /* @__PURE__ */ React3__namespace.createElement(
1085
+ ListFooterComponent && /* @__PURE__ */ React4__namespace.createElement(
1531
1086
  LayoutView,
1532
1087
  {
1533
1088
  onLayoutChange: (layout) => {
@@ -1538,7 +1093,7 @@ var ListComponent = typedMemo(function ListComponent2({
1538
1093
  },
1539
1094
  getComponent(ListFooterComponent)
1540
1095
  ),
1541
- __DEV__ && ENABLE_DEVMODE && /* @__PURE__ */ React3__namespace.createElement(DevNumbers, null)
1096
+ __DEV__ && ENABLE_DEVMODE && /* @__PURE__ */ React4__namespace.createElement(DevNumbers, null)
1542
1097
  );
1543
1098
  });
1544
1099
 
@@ -2093,9 +1648,6 @@ function maybeUpdateViewabilityCallback(ctx, configId, containerId, viewToken) {
2093
1648
  cb == null ? void 0 : cb(viewToken);
2094
1649
  }
2095
1650
 
2096
- // src/platform/batchedUpdates.ts
2097
- var import_react_dom = __toESM(require_react_dom());
2098
-
2099
1651
  // src/utils/checkAllSizesKnown.ts
2100
1652
  function checkAllSizesKnown(state) {
2101
1653
  const { startBuffered, endBuffered, sizesKnown } = state;
@@ -2426,7 +1978,7 @@ function handleStickyRecycling(ctx, state, stickyArray, scroll, scrollBuffer, pe
2426
1978
  }
2427
1979
  }
2428
1980
  function calculateItemsInView(ctx, state, params = {}) {
2429
- (0, import_react_dom.unstable_batchedUpdates)(() => {
1981
+ reactDom.unstable_batchedUpdates(() => {
2430
1982
  var _a, _b, _c, _d, _e, _f, _g, _h;
2431
1983
  const {
2432
1984
  columns,
@@ -3098,7 +2650,7 @@ function updateOneItemSize(state, itemKey, sizeObj) {
3098
2650
  return 0;
3099
2651
  }
3100
2652
  var useCombinedRef = (...refs) => {
3101
- const callback = React3.useCallback((element) => {
2653
+ const callback = React4.useCallback((element) => {
3102
2654
  for (const ref of refs) {
3103
2655
  if (!ref) {
3104
2656
  continue;
@@ -3165,21 +2717,21 @@ function getRenderedItem(ctx, state, key) {
3165
2717
  item: data[index],
3166
2718
  type: getItemType ? (_a = getItemType(data[index], index)) != null ? _a : "" : ""
3167
2719
  };
3168
- renderedItem = isFunction(renderItem) ? renderItem(itemProps) : React3__namespace.default.createElement(renderItem, itemProps);
2720
+ renderedItem = isFunction(renderItem) ? renderItem(itemProps) : React4__namespace.default.createElement(renderItem, itemProps);
3169
2721
  }
3170
2722
  return { index, item: data[index], renderedItem };
3171
2723
  }
3172
2724
  function useThrottleDebounce(mode) {
3173
- const timeoutRef = React3.useRef(null);
3174
- const lastCallTimeRef = React3.useRef(0);
3175
- const lastArgsRef = React3.useRef(null);
2725
+ const timeoutRef = React4.useRef(null);
2726
+ const lastCallTimeRef = React4.useRef(0);
2727
+ const lastArgsRef = React4.useRef(null);
3176
2728
  const clearTimeoutRef = () => {
3177
2729
  if (timeoutRef.current) {
3178
2730
  clearTimeout(timeoutRef.current);
3179
2731
  timeoutRef.current = null;
3180
2732
  }
3181
2733
  };
3182
- const execute = React3.useCallback(
2734
+ const execute = React4.useCallback(
3183
2735
  (callback, delay, ...args) => {
3184
2736
  {
3185
2737
  const now = Date.now();
@@ -3276,14 +2828,14 @@ var LegendList = typedMemo(
3276
2828
  const isChildrenMode = children !== void 0 && dataProp === void 0;
3277
2829
  const processedProps = isChildrenMode ? {
3278
2830
  ...restProps,
3279
- data: (isArray(children) ? children : React3__namespace.Children.toArray(children)).flat(1),
2831
+ data: (isArray(children) ? children : React4__namespace.Children.toArray(children)).flat(1),
3280
2832
  renderItem: ({ item }) => item
3281
2833
  } : {
3282
2834
  ...restProps,
3283
2835
  data: dataProp || [],
3284
2836
  renderItem: renderItemProp
3285
2837
  };
3286
- return /* @__PURE__ */ React3__namespace.createElement(StateProvider, null, /* @__PURE__ */ React3__namespace.createElement(LegendListInner, { ...processedProps, ref: forwardedRef }));
2838
+ return /* @__PURE__ */ React4__namespace.createElement(StateProvider, null, /* @__PURE__ */ React4__namespace.createElement(LegendListInner, { ...processedProps, ref: forwardedRef }));
3287
2839
  })
3288
2840
  );
3289
2841
  var LegendListInner = typedForwardRef(function LegendListInner2(props, forwardedRef) {
@@ -3336,21 +2888,21 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3336
2888
  waitForInitialLayout = true,
3337
2889
  ...rest
3338
2890
  } = props;
3339
- const [renderNum, setRenderNum] = React3.useState(0);
2891
+ const [renderNum, setRenderNum] = React4.useState(0);
3340
2892
  const initialScroll = initialScrollIndexProp || initialScrollOffsetProp ? typeof initialScrollIndexProp === "object" ? { index: initialScrollIndexProp.index || 0, viewOffset: initialScrollIndexProp.viewOffset || 0 } : { index: initialScrollIndexProp || 0, viewOffset: initialScrollOffsetProp || 0 } : void 0;
3341
- const [canRender, setCanRender] = React3__namespace.useState(!IsNewArchitecture);
2893
+ const [canRender, setCanRender] = React4__namespace.useState(!IsNewArchitecture);
3342
2894
  const contentContainerStyle = { ...StyleSheet.flatten(contentContainerStyleProp) };
3343
2895
  const style = { ...StyleSheet.flatten(styleProp) };
3344
2896
  const stylePaddingTopState = extractPadding(style, contentContainerStyle, "Top");
3345
2897
  const stylePaddingBottomState = extractPadding(style, contentContainerStyle, "Bottom");
3346
2898
  const ctx = useStateContext();
3347
2899
  ctx.columnWrapperStyle = columnWrapperStyle || (contentContainerStyle ? createColumnWrapperStyle(contentContainerStyle) : void 0);
3348
- const refScroller = React3.useRef(null);
2900
+ const refScroller = React4.useRef(null);
3349
2901
  const combinedRef = useCombinedRef(refScroller, refScrollView);
3350
2902
  const estimatedItemSize = estimatedItemSizeProp != null ? estimatedItemSizeProp : DEFAULT_ITEM_SIZE;
3351
2903
  const scrollBuffer = (drawDistance != null ? drawDistance : DEFAULT_DRAW_DISTANCE) || 1;
3352
2904
  const keyExtractor = keyExtractorProp != null ? keyExtractorProp : (_item, index) => index.toString();
3353
- const refState = React3.useRef();
2905
+ const refState = React4.useRef();
3354
2906
  if (!refState.current) {
3355
2907
  if (!ctx.internalState) {
3356
2908
  const initialScrollLength = (estimatedListSize != null ? estimatedListSize : { height: 0, width: 0 } )[horizontal ? "width" : "height"];
@@ -3445,7 +2997,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3445
2997
  scrollBuffer,
3446
2998
  snapToIndices,
3447
2999
  stickyIndicesArr: stickyIndices != null ? stickyIndices : [],
3448
- stickyIndicesSet: React3.useMemo(() => new Set(stickyIndices != null ? stickyIndices : []), [stickyIndices == null ? void 0 : stickyIndices.join(",")]),
3000
+ stickyIndicesSet: React4.useMemo(() => new Set(stickyIndices != null ? stickyIndices : []), [stickyIndices == null ? void 0 : stickyIndices.join(",")]),
3449
3001
  stylePaddingBottom: stylePaddingBottomState,
3450
3002
  stylePaddingTop: stylePaddingTopState,
3451
3003
  suggestEstimatedItemSize: !!suggestEstimatedItemSize
@@ -3472,7 +3024,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3472
3024
  }
3473
3025
  }
3474
3026
  };
3475
- const memoizedLastItemKeys = React3.useMemo(() => {
3027
+ const memoizedLastItemKeys = React4.useMemo(() => {
3476
3028
  if (!dataProp.length) return [];
3477
3029
  return Array.from(
3478
3030
  { length: Math.min(numColumnsProp, dataProp.length) },
@@ -3497,7 +3049,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3497
3049
  initializeStateVars();
3498
3050
  updateAllPositions(ctx, state);
3499
3051
  }
3500
- const initialContentOffset = React3.useMemo(() => {
3052
+ const initialContentOffset = React4.useMemo(() => {
3501
3053
  if (initialScroll) {
3502
3054
  const { index, viewOffset } = initialScroll;
3503
3055
  let initialContentOffset2 = viewOffset || 0;
@@ -3523,7 +3075,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3523
3075
  state.positions.clear();
3524
3076
  }
3525
3077
  }
3526
- const onLayoutHeader = React3.useCallback((rect, fromLayoutEffect) => {
3078
+ const onLayoutHeader = React4.useCallback((rect, fromLayoutEffect) => {
3527
3079
  const size = rect[horizontal ? "width" : "height"];
3528
3080
  set$(ctx, "headerSize", size);
3529
3081
  if ((initialScroll == null ? void 0 : initialScroll.index) !== void 0) {
@@ -3534,12 +3086,12 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3534
3086
  }
3535
3087
  }
3536
3088
  }, []);
3537
- React3.useLayoutEffect(() => {
3089
+ React4.useLayoutEffect(() => {
3538
3090
  if (snapToIndices) {
3539
3091
  updateSnapToOffsets(ctx, state);
3540
3092
  }
3541
3093
  }, [snapToIndices]);
3542
- React3.useLayoutEffect(() => {
3094
+ React4.useLayoutEffect(() => {
3543
3095
  const didAllocateContainers = dataProp.length > 0 && doInitialAllocateContainersCallback();
3544
3096
  if (!didAllocateContainers) {
3545
3097
  checkResetContainers(
@@ -3548,12 +3100,12 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3548
3100
  );
3549
3101
  }
3550
3102
  }, [dataProp, numColumnsProp]);
3551
- React3.useLayoutEffect(() => {
3103
+ React4.useLayoutEffect(() => {
3552
3104
  set$(ctx, "extraData", extraData);
3553
3105
  }, [extraData]);
3554
3106
  const { onLayout } = useSyncLayout({
3555
3107
  onLayout: onLayoutProp,
3556
- onLayoutChange: React3.useCallback(
3108
+ onLayoutChange: React4.useCallback(
3557
3109
  (rectangle) => {
3558
3110
  handleLayout(ctx, state, rectangle, setCanRender);
3559
3111
  },
@@ -3561,7 +3113,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3561
3113
  ),
3562
3114
  ref: refScroller
3563
3115
  });
3564
- React3.useLayoutEffect(initializeStateVars, [
3116
+ React4.useLayoutEffect(initializeStateVars, [
3565
3117
  memoizedLastItemKeys.join(","),
3566
3118
  numColumnsProp,
3567
3119
  stylePaddingTopState,
@@ -3570,7 +3122,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3570
3122
  const doInitialAllocateContainersCallback = () => {
3571
3123
  return doInitialAllocateContainers(ctx, state);
3572
3124
  };
3573
- React3.useImperativeHandle(forwardedRef, () => {
3125
+ React4.useImperativeHandle(forwardedRef, () => {
3574
3126
  const scrollIndexIntoView = (options) => {
3575
3127
  const state2 = refState.current;
3576
3128
  if (state2) {
@@ -3655,13 +3207,13 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3655
3207
  };
3656
3208
  }, []);
3657
3209
  {
3658
- React3.useEffect(() => {
3210
+ React4.useEffect(() => {
3659
3211
  if (initialContentOffset) {
3660
3212
  scrollTo(state, { animated: false, offset: initialContentOffset });
3661
3213
  }
3662
3214
  }, []);
3663
3215
  }
3664
- const fns = React3.useMemo(
3216
+ const fns = React4.useMemo(
3665
3217
  () => ({
3666
3218
  getRenderedItem: (key) => getRenderedItem(ctx, state, key),
3667
3219
  onScroll: (event) => onScroll(ctx, state, event),
@@ -3670,7 +3222,7 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3670
3222
  []
3671
3223
  );
3672
3224
  const onScrollHandler = useStickyScrollHandler(stickyIndices, horizontal, ctx, fns.onScroll);
3673
- return /* @__PURE__ */ React3__namespace.createElement(React3__namespace.Fragment, null, /* @__PURE__ */ React3__namespace.createElement(
3225
+ return /* @__PURE__ */ React4__namespace.createElement(React4__namespace.Fragment, null, /* @__PURE__ */ React4__namespace.createElement(
3674
3226
  ListComponent,
3675
3227
  {
3676
3228
  ...rest,
@@ -3697,9 +3249,9 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3697
3249
  },
3698
3250
  onScroll: onScrollHandler,
3699
3251
  recycleItems,
3700
- refreshControl: refreshControl ? stylePaddingTopState > 0 ? React3__namespace.cloneElement(refreshControl, {
3252
+ refreshControl: refreshControl ? stylePaddingTopState > 0 ? React4__namespace.cloneElement(refreshControl, {
3701
3253
  progressViewOffset: (refreshControl.props.progressViewOffset || 0) + stylePaddingTopState
3702
- }) : refreshControl : onRefresh && /* @__PURE__ */ React3__namespace.createElement(
3254
+ }) : refreshControl : onRefresh && /* @__PURE__ */ React4__namespace.createElement(
3703
3255
  RefreshControl,
3704
3256
  {
3705
3257
  onRefresh,
@@ -3715,32 +3267,8 @@ var LegendListInner = typedForwardRef(function LegendListInner2(props, forwarded
3715
3267
  updateItemSize: fns.updateItemSize,
3716
3268
  waitForInitialLayout
3717
3269
  }
3718
- ), __DEV__ && ENABLE_DEBUG_VIEW && /* @__PURE__ */ React3__namespace.createElement(DebugView, { state: refState.current }));
3270
+ ), __DEV__ && ENABLE_DEBUG_VIEW && /* @__PURE__ */ React4__namespace.createElement(DebugView, { state: refState.current }));
3719
3271
  });
3720
- /*! Bundled license information:
3721
-
3722
- react-dom/cjs/react-dom.production.js:
3723
- (**
3724
- * @license React
3725
- * react-dom.production.js
3726
- *
3727
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3728
- *
3729
- * This source code is licensed under the MIT license found in the
3730
- * LICENSE file in the root directory of this source tree.
3731
- *)
3732
-
3733
- react-dom/cjs/react-dom.development.js:
3734
- (**
3735
- * @license React
3736
- * react-dom.development.js
3737
- *
3738
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3739
- *
3740
- * This source code is licensed under the MIT license found in the
3741
- * LICENSE file in the root directory of this source tree.
3742
- *)
3743
- */
3744
3272
 
3745
3273
  exports.LegendList = LegendList;
3746
3274
  exports.useIsLastItem = useIsLastItem;