@rayburst/cli 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,578 @@
1
+ import { g as getDefaultExportFromCjs } from './_commonjsHelpers-B85MJLTf.js';
2
+
3
+ function _mergeNamespaces(n, m) {
4
+ for (var i = 0; i < m.length; i++) {
5
+ const e = m[i];
6
+ if (typeof e !== 'string' && !Array.isArray(e)) { for (const k in e) {
7
+ if (k !== 'default' && !(k in n)) {
8
+ const d = Object.getOwnPropertyDescriptor(e, k);
9
+ if (d) {
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: () => e[k]
13
+ });
14
+ }
15
+ }
16
+ } }
17
+ }
18
+ return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: 'Module' }));
19
+ }
20
+
21
+ var react = {exports: {}};
22
+
23
+ var react_production = {};
24
+
25
+ /**
26
+ * @license React
27
+ * react.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */
34
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
35
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
36
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
37
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
38
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
39
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
40
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
41
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
42
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
43
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
44
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
45
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
46
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
47
+ function getIteratorFn(maybeIterable) {
48
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
49
+ maybeIterable =
50
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
51
+ maybeIterable["@@iterator"];
52
+ return "function" === typeof maybeIterable ? maybeIterable : null;
53
+ }
54
+ var ReactNoopUpdateQueue = {
55
+ isMounted: function () {
56
+ return false;
57
+ },
58
+ enqueueForceUpdate: function () {},
59
+ enqueueReplaceState: function () {},
60
+ enqueueSetState: function () {}
61
+ },
62
+ assign = Object.assign,
63
+ emptyObject = {};
64
+ function Component(props, context, updater) {
65
+ this.props = props;
66
+ this.context = context;
67
+ this.refs = emptyObject;
68
+ this.updater = updater || ReactNoopUpdateQueue;
69
+ }
70
+ Component.prototype.isReactComponent = {};
71
+ Component.prototype.setState = function (partialState, callback) {
72
+ if (
73
+ "object" !== typeof partialState &&
74
+ "function" !== typeof partialState &&
75
+ null != partialState
76
+ )
77
+ throw Error(
78
+ "takes an object of state variables to update or a function which returns an object of state variables."
79
+ );
80
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
81
+ };
82
+ Component.prototype.forceUpdate = function (callback) {
83
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
84
+ };
85
+ function ComponentDummy() {}
86
+ ComponentDummy.prototype = Component.prototype;
87
+ function PureComponent(props, context, updater) {
88
+ this.props = props;
89
+ this.context = context;
90
+ this.refs = emptyObject;
91
+ this.updater = updater || ReactNoopUpdateQueue;
92
+ }
93
+ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
94
+ pureComponentPrototype.constructor = PureComponent;
95
+ assign(pureComponentPrototype, Component.prototype);
96
+ pureComponentPrototype.isPureReactComponent = true;
97
+ var isArrayImpl = Array.isArray;
98
+ function noop() {}
99
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null },
100
+ hasOwnProperty = Object.prototype.hasOwnProperty;
101
+ function ReactElement(type, key, props) {
102
+ var refProp = props.ref;
103
+ return {
104
+ $$typeof: REACT_ELEMENT_TYPE,
105
+ type: type,
106
+ key: key,
107
+ ref: void 0 !== refProp ? refProp : null,
108
+ props: props
109
+ };
110
+ }
111
+ function cloneAndReplaceKey(oldElement, newKey) {
112
+ return ReactElement(oldElement.type, newKey, oldElement.props);
113
+ }
114
+ function isValidElement(object) {
115
+ return (
116
+ "object" === typeof object &&
117
+ null !== object &&
118
+ object.$$typeof === REACT_ELEMENT_TYPE
119
+ );
120
+ }
121
+ function escape(key) {
122
+ var escaperLookup = { "=": "=0", ":": "=2" };
123
+ return (
124
+ "$" +
125
+ key.replace(/[=:]/g, function (match) {
126
+ return escaperLookup[match];
127
+ })
128
+ );
129
+ }
130
+ var userProvidedKeyEscapeRegex = /\/+/g;
131
+ function getElementKey(element, index) {
132
+ return "object" === typeof element && null !== element && null != element.key
133
+ ? escape("" + element.key)
134
+ : index.toString(36);
135
+ }
136
+ function resolveThenable(thenable) {
137
+ switch (thenable.status) {
138
+ case "fulfilled":
139
+ return thenable.value;
140
+ case "rejected":
141
+ throw thenable.reason;
142
+ default:
143
+ switch (
144
+ ("string" === typeof thenable.status
145
+ ? thenable.then(noop, noop)
146
+ : ((thenable.status = "pending"),
147
+ thenable.then(
148
+ function (fulfilledValue) {
149
+ "pending" === thenable.status &&
150
+ ((thenable.status = "fulfilled"),
151
+ (thenable.value = fulfilledValue));
152
+ },
153
+ function (error) {
154
+ "pending" === thenable.status &&
155
+ ((thenable.status = "rejected"), (thenable.reason = error));
156
+ }
157
+ )),
158
+ thenable.status)
159
+ ) {
160
+ case "fulfilled":
161
+ return thenable.value;
162
+ case "rejected":
163
+ throw thenable.reason;
164
+ }
165
+ }
166
+ throw thenable;
167
+ }
168
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
169
+ var type = typeof children;
170
+ if ("undefined" === type || "boolean" === type) children = null;
171
+ var invokeCallback = false;
172
+ if (null === children) invokeCallback = true;
173
+ else
174
+ switch (type) {
175
+ case "bigint":
176
+ case "string":
177
+ case "number":
178
+ invokeCallback = true;
179
+ break;
180
+ case "object":
181
+ switch (children.$$typeof) {
182
+ case REACT_ELEMENT_TYPE:
183
+ case REACT_PORTAL_TYPE:
184
+ invokeCallback = true;
185
+ break;
186
+ case REACT_LAZY_TYPE:
187
+ return (
188
+ (invokeCallback = children._init),
189
+ mapIntoArray(
190
+ invokeCallback(children._payload),
191
+ array,
192
+ escapedPrefix,
193
+ nameSoFar,
194
+ callback
195
+ )
196
+ );
197
+ }
198
+ }
199
+ if (invokeCallback)
200
+ return (
201
+ (callback = callback(children)),
202
+ (invokeCallback =
203
+ "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
204
+ isArrayImpl(callback)
205
+ ? ((escapedPrefix = ""),
206
+ null != invokeCallback &&
207
+ (escapedPrefix =
208
+ invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
209
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
210
+ return c;
211
+ }))
212
+ : null != callback &&
213
+ (isValidElement(callback) &&
214
+ (callback = cloneAndReplaceKey(
215
+ callback,
216
+ escapedPrefix +
217
+ (null == callback.key ||
218
+ (children && children.key === callback.key)
219
+ ? ""
220
+ : ("" + callback.key).replace(
221
+ userProvidedKeyEscapeRegex,
222
+ "$&/"
223
+ ) + "/") +
224
+ invokeCallback
225
+ )),
226
+ array.push(callback)),
227
+ 1
228
+ );
229
+ invokeCallback = 0;
230
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
231
+ if (isArrayImpl(children))
232
+ for (var i = 0; i < children.length; i++)
233
+ (nameSoFar = children[i]),
234
+ (type = nextNamePrefix + getElementKey(nameSoFar, i)),
235
+ (invokeCallback += mapIntoArray(
236
+ nameSoFar,
237
+ array,
238
+ escapedPrefix,
239
+ type,
240
+ callback
241
+ ));
242
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
243
+ for (
244
+ children = i.call(children), i = 0;
245
+ !(nameSoFar = children.next()).done;
246
+
247
+ )
248
+ (nameSoFar = nameSoFar.value),
249
+ (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
250
+ (invokeCallback += mapIntoArray(
251
+ nameSoFar,
252
+ array,
253
+ escapedPrefix,
254
+ type,
255
+ callback
256
+ ));
257
+ else if ("object" === type) {
258
+ if ("function" === typeof children.then)
259
+ return mapIntoArray(
260
+ resolveThenable(children),
261
+ array,
262
+ escapedPrefix,
263
+ nameSoFar,
264
+ callback
265
+ );
266
+ array = String(children);
267
+ throw Error(
268
+ "Objects are not valid as a React child (found: " +
269
+ ("[object Object]" === array
270
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
271
+ : array) +
272
+ "). If you meant to render a collection of children, use an array instead."
273
+ );
274
+ }
275
+ return invokeCallback;
276
+ }
277
+ function mapChildren(children, func, context) {
278
+ if (null == children) return children;
279
+ var result = [],
280
+ count = 0;
281
+ mapIntoArray(children, result, "", "", function (child) {
282
+ return func.call(context, child, count++);
283
+ });
284
+ return result;
285
+ }
286
+ function lazyInitializer(payload) {
287
+ if (-1 === payload._status) {
288
+ var ctor = payload._result;
289
+ ctor = ctor();
290
+ ctor.then(
291
+ function (moduleObject) {
292
+ if (0 === payload._status || -1 === payload._status)
293
+ (payload._status = 1), (payload._result = moduleObject);
294
+ },
295
+ function (error) {
296
+ if (0 === payload._status || -1 === payload._status)
297
+ (payload._status = 2), (payload._result = error);
298
+ }
299
+ );
300
+ -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
301
+ }
302
+ if (1 === payload._status) return payload._result.default;
303
+ throw payload._result;
304
+ }
305
+ var reportGlobalError =
306
+ "function" === typeof reportError
307
+ ? reportError
308
+ : function (error) {
309
+ if (
310
+ "object" === typeof window &&
311
+ "function" === typeof window.ErrorEvent
312
+ ) {
313
+ var event = new window.ErrorEvent("error", {
314
+ bubbles: true,
315
+ cancelable: true,
316
+ message:
317
+ "object" === typeof error &&
318
+ null !== error &&
319
+ "string" === typeof error.message
320
+ ? String(error.message)
321
+ : String(error),
322
+ error: error
323
+ });
324
+ if (!window.dispatchEvent(event)) return;
325
+ } else if (
326
+ "object" === typeof process &&
327
+ "function" === typeof process.emit
328
+ ) {
329
+ process.emit("uncaughtException", error);
330
+ return;
331
+ }
332
+ console.error(error);
333
+ },
334
+ Children = {
335
+ map: mapChildren,
336
+ forEach: function (children, forEachFunc, forEachContext) {
337
+ mapChildren(
338
+ children,
339
+ function () {
340
+ forEachFunc.apply(this, arguments);
341
+ },
342
+ forEachContext
343
+ );
344
+ },
345
+ count: function (children) {
346
+ var n = 0;
347
+ mapChildren(children, function () {
348
+ n++;
349
+ });
350
+ return n;
351
+ },
352
+ toArray: function (children) {
353
+ return (
354
+ mapChildren(children, function (child) {
355
+ return child;
356
+ }) || []
357
+ );
358
+ },
359
+ only: function (children) {
360
+ if (!isValidElement(children))
361
+ throw Error(
362
+ "React.Children.only expected to receive a single React element child."
363
+ );
364
+ return children;
365
+ }
366
+ };
367
+ react_production.Activity = REACT_ACTIVITY_TYPE;
368
+ react_production.Children = Children;
369
+ react_production.Component = Component;
370
+ react_production.Fragment = REACT_FRAGMENT_TYPE;
371
+ react_production.Profiler = REACT_PROFILER_TYPE;
372
+ react_production.PureComponent = PureComponent;
373
+ react_production.StrictMode = REACT_STRICT_MODE_TYPE;
374
+ react_production.Suspense = REACT_SUSPENSE_TYPE;
375
+ react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
376
+ ReactSharedInternals;
377
+ react_production.__COMPILER_RUNTIME = {
378
+ __proto__: null,
379
+ c: function (size) {
380
+ return ReactSharedInternals.H.useMemoCache(size);
381
+ }
382
+ };
383
+ react_production.cache = function (fn) {
384
+ return function () {
385
+ return fn.apply(null, arguments);
386
+ };
387
+ };
388
+ react_production.cacheSignal = function () {
389
+ return null;
390
+ };
391
+ react_production.cloneElement = function (element, config, children) {
392
+ if (null === element || void 0 === element)
393
+ throw Error(
394
+ "The argument must be a React element, but you passed " + element + "."
395
+ );
396
+ var props = assign({}, element.props),
397
+ key = element.key;
398
+ if (null != config)
399
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
400
+ !hasOwnProperty.call(config, propName) ||
401
+ "key" === propName ||
402
+ "__self" === propName ||
403
+ "__source" === propName ||
404
+ ("ref" === propName && void 0 === config.ref) ||
405
+ (props[propName] = config[propName]);
406
+ var propName = arguments.length - 2;
407
+ if (1 === propName) props.children = children;
408
+ else if (1 < propName) {
409
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
410
+ childArray[i] = arguments[i + 2];
411
+ props.children = childArray;
412
+ }
413
+ return ReactElement(element.type, key, props);
414
+ };
415
+ react_production.createContext = function (defaultValue) {
416
+ defaultValue = {
417
+ $$typeof: REACT_CONTEXT_TYPE,
418
+ _currentValue: defaultValue,
419
+ _currentValue2: defaultValue,
420
+ _threadCount: 0,
421
+ Provider: null,
422
+ Consumer: null
423
+ };
424
+ defaultValue.Provider = defaultValue;
425
+ defaultValue.Consumer = {
426
+ $$typeof: REACT_CONSUMER_TYPE,
427
+ _context: defaultValue
428
+ };
429
+ return defaultValue;
430
+ };
431
+ react_production.createElement = function (type, config, children) {
432
+ var propName,
433
+ props = {},
434
+ key = null;
435
+ if (null != config)
436
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
437
+ hasOwnProperty.call(config, propName) &&
438
+ "key" !== propName &&
439
+ "__self" !== propName &&
440
+ "__source" !== propName &&
441
+ (props[propName] = config[propName]);
442
+ var childrenLength = arguments.length - 2;
443
+ if (1 === childrenLength) props.children = children;
444
+ else if (1 < childrenLength) {
445
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
446
+ childArray[i] = arguments[i + 2];
447
+ props.children = childArray;
448
+ }
449
+ if (type && type.defaultProps)
450
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
451
+ void 0 === props[propName] &&
452
+ (props[propName] = childrenLength[propName]);
453
+ return ReactElement(type, key, props);
454
+ };
455
+ react_production.createRef = function () {
456
+ return { current: null };
457
+ };
458
+ react_production.forwardRef = function (render) {
459
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
460
+ };
461
+ react_production.isValidElement = isValidElement;
462
+ react_production.lazy = function (ctor) {
463
+ return {
464
+ $$typeof: REACT_LAZY_TYPE,
465
+ _payload: { _status: -1, _result: ctor },
466
+ _init: lazyInitializer
467
+ };
468
+ };
469
+ react_production.memo = function (type, compare) {
470
+ return {
471
+ $$typeof: REACT_MEMO_TYPE,
472
+ type: type,
473
+ compare: void 0 === compare ? null : compare
474
+ };
475
+ };
476
+ react_production.startTransition = function (scope) {
477
+ var prevTransition = ReactSharedInternals.T,
478
+ currentTransition = {};
479
+ ReactSharedInternals.T = currentTransition;
480
+ try {
481
+ var returnValue = scope(),
482
+ onStartTransitionFinish = ReactSharedInternals.S;
483
+ null !== onStartTransitionFinish &&
484
+ onStartTransitionFinish(currentTransition, returnValue);
485
+ "object" === typeof returnValue &&
486
+ null !== returnValue &&
487
+ "function" === typeof returnValue.then &&
488
+ returnValue.then(noop, reportGlobalError);
489
+ } catch (error) {
490
+ reportGlobalError(error);
491
+ } finally {
492
+ null !== prevTransition &&
493
+ null !== currentTransition.types &&
494
+ (prevTransition.types = currentTransition.types),
495
+ (ReactSharedInternals.T = prevTransition);
496
+ }
497
+ };
498
+ react_production.unstable_useCacheRefresh = function () {
499
+ return ReactSharedInternals.H.useCacheRefresh();
500
+ };
501
+ react_production.use = function (usable) {
502
+ return ReactSharedInternals.H.use(usable);
503
+ };
504
+ react_production.useActionState = function (action, initialState, permalink) {
505
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
506
+ };
507
+ react_production.useCallback = function (callback, deps) {
508
+ return ReactSharedInternals.H.useCallback(callback, deps);
509
+ };
510
+ react_production.useContext = function (Context) {
511
+ return ReactSharedInternals.H.useContext(Context);
512
+ };
513
+ react_production.useDebugValue = function () {};
514
+ react_production.useDeferredValue = function (value, initialValue) {
515
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
516
+ };
517
+ react_production.useEffect = function (create, deps) {
518
+ return ReactSharedInternals.H.useEffect(create, deps);
519
+ };
520
+ react_production.useEffectEvent = function (callback) {
521
+ return ReactSharedInternals.H.useEffectEvent(callback);
522
+ };
523
+ react_production.useId = function () {
524
+ return ReactSharedInternals.H.useId();
525
+ };
526
+ react_production.useImperativeHandle = function (ref, create, deps) {
527
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
528
+ };
529
+ react_production.useInsertionEffect = function (create, deps) {
530
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
531
+ };
532
+ react_production.useLayoutEffect = function (create, deps) {
533
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
534
+ };
535
+ react_production.useMemo = function (create, deps) {
536
+ return ReactSharedInternals.H.useMemo(create, deps);
537
+ };
538
+ react_production.useOptimistic = function (passthrough, reducer) {
539
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
540
+ };
541
+ react_production.useReducer = function (reducer, initialArg, init) {
542
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
543
+ };
544
+ react_production.useRef = function (initialValue) {
545
+ return ReactSharedInternals.H.useRef(initialValue);
546
+ };
547
+ react_production.useState = function (initialState) {
548
+ return ReactSharedInternals.H.useState(initialState);
549
+ };
550
+ react_production.useSyncExternalStore = function (
551
+ subscribe,
552
+ getSnapshot,
553
+ getServerSnapshot
554
+ ) {
555
+ return ReactSharedInternals.H.useSyncExternalStore(
556
+ subscribe,
557
+ getSnapshot,
558
+ getServerSnapshot
559
+ );
560
+ };
561
+ react_production.useTransition = function () {
562
+ return ReactSharedInternals.H.useTransition();
563
+ };
564
+ react_production.version = "19.2.0";
565
+
566
+ {
567
+ react.exports = react_production;
568
+ }
569
+
570
+ var reactExports = react.exports;
571
+ const index = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
572
+
573
+ const index$1 = /*#__PURE__*/_mergeNamespaces({
574
+ __proto__: null,
575
+ default: index
576
+ }, [reactExports]);
577
+
578
+ export { index$1 as i };