@tscircuit/cli 0.1.69 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +399 -384
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -243948,9 +243948,9 @@ var require_react_development = __commonJS((exports2, module2) => {
|
|
|
243948
243948
|
case REACT_LAZY_TYPE: {
|
|
243949
243949
|
var lazyComponent = type;
|
|
243950
243950
|
var payload = lazyComponent._payload;
|
|
243951
|
-
var
|
|
243951
|
+
var init2 = lazyComponent._init;
|
|
243952
243952
|
try {
|
|
243953
|
-
return getComponentNameFromType(
|
|
243953
|
+
return getComponentNameFromType(init2(payload));
|
|
243954
243954
|
} catch (x) {
|
|
243955
243955
|
return null;
|
|
243956
243956
|
}
|
|
@@ -244635,9 +244635,9 @@ Your code should look like:
|
|
|
244635
244635
|
var dispatcher = resolveDispatcher();
|
|
244636
244636
|
return dispatcher.useState(initialState);
|
|
244637
244637
|
}
|
|
244638
|
-
function useReducer(reducer, initialArg,
|
|
244638
|
+
function useReducer(reducer, initialArg, init2) {
|
|
244639
244639
|
var dispatcher = resolveDispatcher();
|
|
244640
|
-
return dispatcher.useReducer(reducer, initialArg,
|
|
244640
|
+
return dispatcher.useReducer(reducer, initialArg, init2);
|
|
244641
244641
|
}
|
|
244642
244642
|
function useRef(initialValue) {
|
|
244643
244643
|
var dispatcher = resolveDispatcher();
|
|
@@ -244930,9 +244930,9 @@ Your code should look like:
|
|
|
244930
244930
|
case REACT_LAZY_TYPE: {
|
|
244931
244931
|
var lazyComponent = type;
|
|
244932
244932
|
var payload = lazyComponent._payload;
|
|
244933
|
-
var
|
|
244933
|
+
var init2 = lazyComponent._init;
|
|
244934
244934
|
try {
|
|
244935
|
-
return describeUnknownElementTypeFrameInDEV(
|
|
244935
|
+
return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn);
|
|
244936
244936
|
} catch (x) {}
|
|
244937
244937
|
}
|
|
244938
244938
|
}
|
|
@@ -248340,14 +248340,14 @@ Incoming: %s`, currentHookNameInDev, "[" + prevDeps.join(", ") + "]", "[" + next
|
|
|
248340
248340
|
function basicStateReducer(state, action) {
|
|
248341
248341
|
return typeof action === "function" ? action(state) : action;
|
|
248342
248342
|
}
|
|
248343
|
-
function mountReducer(reducer, initialArg,
|
|
248343
|
+
function mountReducer(reducer, initialArg, init2) {
|
|
248344
248344
|
var hook = mountWorkInProgressHook();
|
|
248345
|
-
if (
|
|
248346
|
-
var initialState =
|
|
248345
|
+
if (init2 !== undefined) {
|
|
248346
|
+
var initialState = init2(initialArg);
|
|
248347
248347
|
if (shouldDoubleInvokeUserFnsInHooksDEV) {
|
|
248348
248348
|
setIsStrictModeForDevtools(true);
|
|
248349
248349
|
try {
|
|
248350
|
-
|
|
248350
|
+
init2(initialArg);
|
|
248351
248351
|
} finally {
|
|
248352
248352
|
setIsStrictModeForDevtools(false);
|
|
248353
248353
|
}
|
|
@@ -253447,8 +253447,8 @@ Learn more about this warning here: https://react.dev/link/legacy-context`, sort
|
|
|
253447
253447
|
}
|
|
253448
253448
|
}, callDestroyInDEV = callDestroy["react-stack-bottom-frame"].bind(callDestroy), callLazyInit = {
|
|
253449
253449
|
"react-stack-bottom-frame": function(lazy) {
|
|
253450
|
-
var
|
|
253451
|
-
return
|
|
253450
|
+
var init2 = lazy._init;
|
|
253451
|
+
return init2(lazy._payload);
|
|
253452
253452
|
}
|
|
253453
253453
|
}, callLazyInitInDEV = callLazyInit["react-stack-bottom-frame"].bind(callLazyInit), thenableState$1 = null, thenableIndexCounter$1 = 0, currentDebugInfo = null, didWarnAboutMaps;
|
|
253454
253454
|
var didWarnAboutGenerators = didWarnAboutMaps = false;
|
|
@@ -253567,13 +253567,13 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
253567
253567
|
ReactSharedInternals.H = prevDispatcher;
|
|
253568
253568
|
}
|
|
253569
253569
|
},
|
|
253570
|
-
useReducer: function(reducer, initialArg,
|
|
253570
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
253571
253571
|
currentHookNameInDev = "useReducer";
|
|
253572
253572
|
mountHookTypesDev();
|
|
253573
253573
|
var prevDispatcher = ReactSharedInternals.H;
|
|
253574
253574
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
253575
253575
|
try {
|
|
253576
|
-
return mountReducer(reducer, initialArg,
|
|
253576
|
+
return mountReducer(reducer, initialArg, init2);
|
|
253577
253577
|
} finally {
|
|
253578
253578
|
ReactSharedInternals.H = prevDispatcher;
|
|
253579
253579
|
}
|
|
@@ -253688,13 +253688,13 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
253688
253688
|
ReactSharedInternals.H = prevDispatcher;
|
|
253689
253689
|
}
|
|
253690
253690
|
},
|
|
253691
|
-
useReducer: function(reducer, initialArg,
|
|
253691
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
253692
253692
|
currentHookNameInDev = "useReducer";
|
|
253693
253693
|
updateHookTypesDev();
|
|
253694
253694
|
var prevDispatcher = ReactSharedInternals.H;
|
|
253695
253695
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
253696
253696
|
try {
|
|
253697
|
-
return mountReducer(reducer, initialArg,
|
|
253697
|
+
return mountReducer(reducer, initialArg, init2);
|
|
253698
253698
|
} finally {
|
|
253699
253699
|
ReactSharedInternals.H = prevDispatcher;
|
|
253700
253700
|
}
|
|
@@ -253809,13 +253809,13 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
253809
253809
|
ReactSharedInternals.H = prevDispatcher;
|
|
253810
253810
|
}
|
|
253811
253811
|
},
|
|
253812
|
-
useReducer: function(reducer, initialArg,
|
|
253812
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
253813
253813
|
currentHookNameInDev = "useReducer";
|
|
253814
253814
|
updateHookTypesDev();
|
|
253815
253815
|
var prevDispatcher = ReactSharedInternals.H;
|
|
253816
253816
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
253817
253817
|
try {
|
|
253818
|
-
return updateReducer(reducer, initialArg,
|
|
253818
|
+
return updateReducer(reducer, initialArg, init2);
|
|
253819
253819
|
} finally {
|
|
253820
253820
|
ReactSharedInternals.H = prevDispatcher;
|
|
253821
253821
|
}
|
|
@@ -253930,13 +253930,13 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
253930
253930
|
ReactSharedInternals.H = prevDispatcher;
|
|
253931
253931
|
}
|
|
253932
253932
|
},
|
|
253933
|
-
useReducer: function(reducer, initialArg,
|
|
253933
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
253934
253934
|
currentHookNameInDev = "useReducer";
|
|
253935
253935
|
updateHookTypesDev();
|
|
253936
253936
|
var prevDispatcher = ReactSharedInternals.H;
|
|
253937
253937
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
253938
253938
|
try {
|
|
253939
|
-
return rerenderReducer(reducer, initialArg,
|
|
253939
|
+
return rerenderReducer(reducer, initialArg, init2);
|
|
253940
253940
|
} finally {
|
|
253941
253941
|
ReactSharedInternals.H = prevDispatcher;
|
|
253942
253942
|
}
|
|
@@ -254062,14 +254062,14 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
254062
254062
|
ReactSharedInternals.H = prevDispatcher;
|
|
254063
254063
|
}
|
|
254064
254064
|
},
|
|
254065
|
-
useReducer: function(reducer, initialArg,
|
|
254065
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
254066
254066
|
currentHookNameInDev = "useReducer";
|
|
254067
254067
|
warnInvalidHookAccess();
|
|
254068
254068
|
mountHookTypesDev();
|
|
254069
254069
|
var prevDispatcher = ReactSharedInternals.H;
|
|
254070
254070
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
254071
254071
|
try {
|
|
254072
|
-
return mountReducer(reducer, initialArg,
|
|
254072
|
+
return mountReducer(reducer, initialArg, init2);
|
|
254073
254073
|
} finally {
|
|
254074
254074
|
ReactSharedInternals.H = prevDispatcher;
|
|
254075
254075
|
}
|
|
@@ -254207,14 +254207,14 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
254207
254207
|
ReactSharedInternals.H = prevDispatcher;
|
|
254208
254208
|
}
|
|
254209
254209
|
},
|
|
254210
|
-
useReducer: function(reducer, initialArg,
|
|
254210
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
254211
254211
|
currentHookNameInDev = "useReducer";
|
|
254212
254212
|
warnInvalidHookAccess();
|
|
254213
254213
|
updateHookTypesDev();
|
|
254214
254214
|
var prevDispatcher = ReactSharedInternals.H;
|
|
254215
254215
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
254216
254216
|
try {
|
|
254217
|
-
return updateReducer(reducer, initialArg,
|
|
254217
|
+
return updateReducer(reducer, initialArg, init2);
|
|
254218
254218
|
} finally {
|
|
254219
254219
|
ReactSharedInternals.H = prevDispatcher;
|
|
254220
254220
|
}
|
|
@@ -254352,14 +254352,14 @@ Check the top-level render call using <` + componentName2 + ">.");
|
|
|
254352
254352
|
ReactSharedInternals.H = prevDispatcher;
|
|
254353
254353
|
}
|
|
254354
254354
|
},
|
|
254355
|
-
useReducer: function(reducer, initialArg,
|
|
254355
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
254356
254356
|
currentHookNameInDev = "useReducer";
|
|
254357
254357
|
warnInvalidHookAccess();
|
|
254358
254358
|
updateHookTypesDev();
|
|
254359
254359
|
var prevDispatcher = ReactSharedInternals.H;
|
|
254360
254360
|
ReactSharedInternals.H = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
254361
254361
|
try {
|
|
254362
|
-
return rerenderReducer(reducer, initialArg,
|
|
254362
|
+
return rerenderReducer(reducer, initialArg, init2);
|
|
254363
254363
|
} finally {
|
|
254364
254364
|
ReactSharedInternals.H = prevDispatcher;
|
|
254365
254365
|
}
|
|
@@ -255620,9 +255620,9 @@ var require_react_reconciler_development2 = __commonJS((exports2, module2) => {
|
|
|
255620
255620
|
case REACT_LAZY_TYPE: {
|
|
255621
255621
|
var lazyComponent = type;
|
|
255622
255622
|
var payload = lazyComponent._payload;
|
|
255623
|
-
var
|
|
255623
|
+
var init2 = lazyComponent._init;
|
|
255624
255624
|
try {
|
|
255625
|
-
return getComponentNameFromType(
|
|
255625
|
+
return getComponentNameFromType(init2(payload));
|
|
255626
255626
|
} catch (x) {
|
|
255627
255627
|
return null;
|
|
255628
255628
|
}
|
|
@@ -256258,9 +256258,9 @@ var require_react_reconciler_development2 = __commonJS((exports2, module2) => {
|
|
|
256258
256258
|
case REACT_LAZY_TYPE: {
|
|
256259
256259
|
var lazyComponent = type;
|
|
256260
256260
|
var payload = lazyComponent._payload;
|
|
256261
|
-
var
|
|
256261
|
+
var init2 = lazyComponent._init;
|
|
256262
256262
|
try {
|
|
256263
|
-
return describeUnknownElementTypeFrameInDEV(
|
|
256263
|
+
return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn);
|
|
256264
256264
|
} catch (x) {}
|
|
256265
256265
|
}
|
|
256266
256266
|
}
|
|
@@ -258442,8 +258442,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
258442
258442
|
}
|
|
258443
258443
|
function resolveLazy(lazyType2) {
|
|
258444
258444
|
var payload = lazyType2._payload;
|
|
258445
|
-
var
|
|
258446
|
-
return
|
|
258445
|
+
var init2 = lazyType2._init;
|
|
258446
|
+
return init2(payload);
|
|
258447
258447
|
}
|
|
258448
258448
|
function ChildReconciler(shouldTrackSideEffects) {
|
|
258449
258449
|
function deleteChild(returnFiber, childToDelete) {
|
|
@@ -258590,8 +258590,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
258590
258590
|
}
|
|
258591
258591
|
case REACT_LAZY_TYPE: {
|
|
258592
258592
|
var payload = newChild._payload;
|
|
258593
|
-
var
|
|
258594
|
-
return createChild(returnFiber,
|
|
258593
|
+
var init2 = newChild._init;
|
|
258594
|
+
return createChild(returnFiber, init2(payload), lanes);
|
|
258595
258595
|
}
|
|
258596
258596
|
}
|
|
258597
258597
|
if (isArray(newChild) || getIteratorFn(newChild)) {
|
|
@@ -258634,8 +258634,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
258634
258634
|
}
|
|
258635
258635
|
case REACT_LAZY_TYPE: {
|
|
258636
258636
|
var payload = newChild._payload;
|
|
258637
|
-
var
|
|
258638
|
-
return updateSlot(returnFiber, oldFiber,
|
|
258637
|
+
var init2 = newChild._init;
|
|
258638
|
+
return updateSlot(returnFiber, oldFiber, init2(payload), lanes);
|
|
258639
258639
|
}
|
|
258640
258640
|
}
|
|
258641
258641
|
if (isArray(newChild) || getIteratorFn(newChild)) {
|
|
@@ -258670,8 +258670,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
258670
258670
|
}
|
|
258671
258671
|
case REACT_LAZY_TYPE:
|
|
258672
258672
|
var payload = newChild._payload;
|
|
258673
|
-
var
|
|
258674
|
-
return updateFromMap(existingChildren, returnFiber, newIdx,
|
|
258673
|
+
var init2 = newChild._init;
|
|
258674
|
+
return updateFromMap(existingChildren, returnFiber, newIdx, init2(payload), lanes);
|
|
258675
258675
|
}
|
|
258676
258676
|
if (isArray(newChild) || getIteratorFn(newChild)) {
|
|
258677
258677
|
var _matchedFiber3 = existingChildren.get(newIdx) || null;
|
|
@@ -258712,8 +258712,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
258712
258712
|
break;
|
|
258713
258713
|
case REACT_LAZY_TYPE:
|
|
258714
258714
|
var payload = child._payload;
|
|
258715
|
-
var
|
|
258716
|
-
warnOnInvalidKey(
|
|
258715
|
+
var init2 = child._init;
|
|
258716
|
+
warnOnInvalidKey(init2(payload), knownKeys, returnFiber);
|
|
258717
258717
|
break;
|
|
258718
258718
|
}
|
|
258719
258719
|
}
|
|
@@ -259038,8 +259038,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
259038
259038
|
return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));
|
|
259039
259039
|
case REACT_LAZY_TYPE:
|
|
259040
259040
|
var payload = newChild._payload;
|
|
259041
|
-
var
|
|
259042
|
-
return reconcileChildFibers2(returnFiber, currentFirstChild,
|
|
259041
|
+
var init2 = newChild._init;
|
|
259042
|
+
return reconcileChildFibers2(returnFiber, currentFirstChild, init2(payload), lanes);
|
|
259043
259043
|
}
|
|
259044
259044
|
if (isArray(newChild)) {
|
|
259045
259045
|
return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);
|
|
@@ -260191,11 +260191,11 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
260191
260191
|
function basicStateReducer(state, action) {
|
|
260192
260192
|
return typeof action === "function" ? action(state) : action;
|
|
260193
260193
|
}
|
|
260194
|
-
function mountReducer(reducer, initialArg,
|
|
260194
|
+
function mountReducer(reducer, initialArg, init2) {
|
|
260195
260195
|
var hook = mountWorkInProgressHook();
|
|
260196
260196
|
var initialState;
|
|
260197
|
-
if (
|
|
260198
|
-
initialState =
|
|
260197
|
+
if (init2 !== undefined) {
|
|
260198
|
+
initialState = init2(initialArg);
|
|
260199
260199
|
} else {
|
|
260200
260200
|
initialState = initialArg;
|
|
260201
260201
|
}
|
|
@@ -260212,7 +260212,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
260212
260212
|
var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue);
|
|
260213
260213
|
return [hook.memoizedState, dispatch];
|
|
260214
260214
|
}
|
|
260215
|
-
function updateReducer(reducer, initialArg,
|
|
260215
|
+
function updateReducer(reducer, initialArg, init2) {
|
|
260216
260216
|
var hook = updateWorkInProgressHook();
|
|
260217
260217
|
var queue = hook.queue;
|
|
260218
260218
|
if (queue === null) {
|
|
@@ -260310,7 +260310,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
260310
260310
|
var dispatch = queue.dispatch;
|
|
260311
260311
|
return [hook.memoizedState, dispatch];
|
|
260312
260312
|
}
|
|
260313
|
-
function rerenderReducer(reducer, initialArg,
|
|
260313
|
+
function rerenderReducer(reducer, initialArg, init2) {
|
|
260314
260314
|
var hook = updateWorkInProgressHook();
|
|
260315
260315
|
var queue = hook.queue;
|
|
260316
260316
|
if (queue === null) {
|
|
@@ -261001,13 +261001,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
261001
261001
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261002
261002
|
}
|
|
261003
261003
|
},
|
|
261004
|
-
useReducer: function(reducer, initialArg,
|
|
261004
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
261005
261005
|
currentHookNameInDev = "useReducer";
|
|
261006
261006
|
mountHookTypesDev();
|
|
261007
261007
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
261008
261008
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
261009
261009
|
try {
|
|
261010
|
-
return mountReducer(reducer, initialArg,
|
|
261010
|
+
return mountReducer(reducer, initialArg, init2);
|
|
261011
261011
|
} finally {
|
|
261012
261012
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261013
261013
|
}
|
|
@@ -261105,13 +261105,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
261105
261105
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261106
261106
|
}
|
|
261107
261107
|
},
|
|
261108
|
-
useReducer: function(reducer, initialArg,
|
|
261108
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
261109
261109
|
currentHookNameInDev = "useReducer";
|
|
261110
261110
|
updateHookTypesDev();
|
|
261111
261111
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
261112
261112
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
261113
261113
|
try {
|
|
261114
|
-
return mountReducer(reducer, initialArg,
|
|
261114
|
+
return mountReducer(reducer, initialArg, init2);
|
|
261115
261115
|
} finally {
|
|
261116
261116
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261117
261117
|
}
|
|
@@ -261209,13 +261209,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
261209
261209
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261210
261210
|
}
|
|
261211
261211
|
},
|
|
261212
|
-
useReducer: function(reducer, initialArg,
|
|
261212
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
261213
261213
|
currentHookNameInDev = "useReducer";
|
|
261214
261214
|
updateHookTypesDev();
|
|
261215
261215
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
261216
261216
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
261217
261217
|
try {
|
|
261218
|
-
return updateReducer(reducer, initialArg,
|
|
261218
|
+
return updateReducer(reducer, initialArg, init2);
|
|
261219
261219
|
} finally {
|
|
261220
261220
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261221
261221
|
}
|
|
@@ -261313,13 +261313,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
261313
261313
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261314
261314
|
}
|
|
261315
261315
|
},
|
|
261316
|
-
useReducer: function(reducer, initialArg,
|
|
261316
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
261317
261317
|
currentHookNameInDev = "useReducer";
|
|
261318
261318
|
updateHookTypesDev();
|
|
261319
261319
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
261320
261320
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
261321
261321
|
try {
|
|
261322
|
-
return rerenderReducer(reducer, initialArg,
|
|
261322
|
+
return rerenderReducer(reducer, initialArg, init2);
|
|
261323
261323
|
} finally {
|
|
261324
261324
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261325
261325
|
}
|
|
@@ -261425,14 +261425,14 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
261425
261425
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261426
261426
|
}
|
|
261427
261427
|
},
|
|
261428
|
-
useReducer: function(reducer, initialArg,
|
|
261428
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
261429
261429
|
currentHookNameInDev = "useReducer";
|
|
261430
261430
|
warnInvalidHookAccess();
|
|
261431
261431
|
mountHookTypesDev();
|
|
261432
261432
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
261433
261433
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
261434
261434
|
try {
|
|
261435
|
-
return mountReducer(reducer, initialArg,
|
|
261435
|
+
return mountReducer(reducer, initialArg, init2);
|
|
261436
261436
|
} finally {
|
|
261437
261437
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261438
261438
|
}
|
|
@@ -261546,14 +261546,14 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
261546
261546
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261547
261547
|
}
|
|
261548
261548
|
},
|
|
261549
|
-
useReducer: function(reducer, initialArg,
|
|
261549
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
261550
261550
|
currentHookNameInDev = "useReducer";
|
|
261551
261551
|
warnInvalidHookAccess();
|
|
261552
261552
|
updateHookTypesDev();
|
|
261553
261553
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
261554
261554
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
261555
261555
|
try {
|
|
261556
|
-
return updateReducer(reducer, initialArg,
|
|
261556
|
+
return updateReducer(reducer, initialArg, init2);
|
|
261557
261557
|
} finally {
|
|
261558
261558
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261559
261559
|
}
|
|
@@ -261667,14 +261667,14 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
261667
261667
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261668
261668
|
}
|
|
261669
261669
|
},
|
|
261670
|
-
useReducer: function(reducer, initialArg,
|
|
261670
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
261671
261671
|
currentHookNameInDev = "useReducer";
|
|
261672
261672
|
warnInvalidHookAccess();
|
|
261673
261673
|
updateHookTypesDev();
|
|
261674
261674
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
261675
261675
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
261676
261676
|
try {
|
|
261677
|
-
return rerenderReducer(reducer, initialArg,
|
|
261677
|
+
return rerenderReducer(reducer, initialArg, init2);
|
|
261678
261678
|
} finally {
|
|
261679
261679
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
261680
261680
|
}
|
|
@@ -262892,9 +262892,9 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
262892
262892
|
if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
|
|
262893
262893
|
var lazyComponent = outerMemoType;
|
|
262894
262894
|
var payload = lazyComponent._payload;
|
|
262895
|
-
var
|
|
262895
|
+
var init2 = lazyComponent._init;
|
|
262896
262896
|
try {
|
|
262897
|
-
outerMemoType =
|
|
262897
|
+
outerMemoType = init2(payload);
|
|
262898
262898
|
} catch (x) {
|
|
262899
262899
|
outerMemoType = null;
|
|
262900
262900
|
}
|
|
@@ -263264,8 +263264,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
263264
263264
|
var props = workInProgress2.pendingProps;
|
|
263265
263265
|
var lazyComponent = elementType;
|
|
263266
263266
|
var payload = lazyComponent._payload;
|
|
263267
|
-
var
|
|
263268
|
-
var Component =
|
|
263267
|
+
var init2 = lazyComponent._init;
|
|
263268
|
+
var Component = init2(payload);
|
|
263269
263269
|
workInProgress2.type = Component;
|
|
263270
263270
|
var resolvedTag = workInProgress2.tag = resolveLazyComponentTag(Component);
|
|
263271
263271
|
var resolvedProps = resolveDefaultProps(Component, props);
|
|
@@ -270380,9 +270380,9 @@ var require_react_jsx_runtime_development = __commonJS((exports2) => {
|
|
|
270380
270380
|
case REACT_LAZY_TYPE: {
|
|
270381
270381
|
var lazyComponent = type;
|
|
270382
270382
|
var payload = lazyComponent._payload;
|
|
270383
|
-
var
|
|
270383
|
+
var init2 = lazyComponent._init;
|
|
270384
270384
|
try {
|
|
270385
|
-
return getComponentNameFromType(
|
|
270385
|
+
return getComponentNameFromType(init2(payload));
|
|
270386
270386
|
} catch (x) {
|
|
270387
270387
|
return null;
|
|
270388
270388
|
}
|
|
@@ -270633,9 +270633,9 @@ var require_react_jsx_runtime_development = __commonJS((exports2) => {
|
|
|
270633
270633
|
case REACT_LAZY_TYPE: {
|
|
270634
270634
|
var lazyComponent = type;
|
|
270635
270635
|
var payload = lazyComponent._payload;
|
|
270636
|
-
var
|
|
270636
|
+
var init2 = lazyComponent._init;
|
|
270637
270637
|
try {
|
|
270638
|
-
return describeUnknownElementTypeFrameInDEV(
|
|
270638
|
+
return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn);
|
|
270639
270639
|
} catch (x) {}
|
|
270640
270640
|
}
|
|
270641
270641
|
}
|
|
@@ -271772,9 +271772,9 @@ var require_react_reconciler_development3 = __commonJS((exports2, module2) => {
|
|
|
271772
271772
|
case REACT_LAZY_TYPE: {
|
|
271773
271773
|
var lazyComponent = type;
|
|
271774
271774
|
var payload = lazyComponent._payload;
|
|
271775
|
-
var
|
|
271775
|
+
var init2 = lazyComponent._init;
|
|
271776
271776
|
try {
|
|
271777
|
-
return getComponentNameFromType(
|
|
271777
|
+
return getComponentNameFromType(init2(payload));
|
|
271778
271778
|
} catch (x) {
|
|
271779
271779
|
return null;
|
|
271780
271780
|
}
|
|
@@ -272410,9 +272410,9 @@ var require_react_reconciler_development3 = __commonJS((exports2, module2) => {
|
|
|
272410
272410
|
case REACT_LAZY_TYPE: {
|
|
272411
272411
|
var lazyComponent = type;
|
|
272412
272412
|
var payload = lazyComponent._payload;
|
|
272413
|
-
var
|
|
272413
|
+
var init2 = lazyComponent._init;
|
|
272414
272414
|
try {
|
|
272415
|
-
return describeUnknownElementTypeFrameInDEV(
|
|
272415
|
+
return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn);
|
|
272416
272416
|
} catch (x) {}
|
|
272417
272417
|
}
|
|
272418
272418
|
}
|
|
@@ -274594,8 +274594,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
274594
274594
|
}
|
|
274595
274595
|
function resolveLazy(lazyType2) {
|
|
274596
274596
|
var payload = lazyType2._payload;
|
|
274597
|
-
var
|
|
274598
|
-
return
|
|
274597
|
+
var init2 = lazyType2._init;
|
|
274598
|
+
return init2(payload);
|
|
274599
274599
|
}
|
|
274600
274600
|
function ChildReconciler(shouldTrackSideEffects) {
|
|
274601
274601
|
function deleteChild(returnFiber, childToDelete) {
|
|
@@ -274742,8 +274742,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
274742
274742
|
}
|
|
274743
274743
|
case REACT_LAZY_TYPE: {
|
|
274744
274744
|
var payload = newChild._payload;
|
|
274745
|
-
var
|
|
274746
|
-
return createChild(returnFiber,
|
|
274745
|
+
var init2 = newChild._init;
|
|
274746
|
+
return createChild(returnFiber, init2(payload), lanes);
|
|
274747
274747
|
}
|
|
274748
274748
|
}
|
|
274749
274749
|
if (isArray(newChild) || getIteratorFn(newChild)) {
|
|
@@ -274786,8 +274786,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
274786
274786
|
}
|
|
274787
274787
|
case REACT_LAZY_TYPE: {
|
|
274788
274788
|
var payload = newChild._payload;
|
|
274789
|
-
var
|
|
274790
|
-
return updateSlot(returnFiber, oldFiber,
|
|
274789
|
+
var init2 = newChild._init;
|
|
274790
|
+
return updateSlot(returnFiber, oldFiber, init2(payload), lanes);
|
|
274791
274791
|
}
|
|
274792
274792
|
}
|
|
274793
274793
|
if (isArray(newChild) || getIteratorFn(newChild)) {
|
|
@@ -274822,8 +274822,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
274822
274822
|
}
|
|
274823
274823
|
case REACT_LAZY_TYPE:
|
|
274824
274824
|
var payload = newChild._payload;
|
|
274825
|
-
var
|
|
274826
|
-
return updateFromMap(existingChildren, returnFiber, newIdx,
|
|
274825
|
+
var init2 = newChild._init;
|
|
274826
|
+
return updateFromMap(existingChildren, returnFiber, newIdx, init2(payload), lanes);
|
|
274827
274827
|
}
|
|
274828
274828
|
if (isArray(newChild) || getIteratorFn(newChild)) {
|
|
274829
274829
|
var _matchedFiber3 = existingChildren.get(newIdx) || null;
|
|
@@ -274864,8 +274864,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
274864
274864
|
break;
|
|
274865
274865
|
case REACT_LAZY_TYPE:
|
|
274866
274866
|
var payload = child._payload;
|
|
274867
|
-
var
|
|
274868
|
-
warnOnInvalidKey(
|
|
274867
|
+
var init2 = child._init;
|
|
274868
|
+
warnOnInvalidKey(init2(payload), knownKeys, returnFiber);
|
|
274869
274869
|
break;
|
|
274870
274870
|
}
|
|
274871
274871
|
}
|
|
@@ -275190,8 +275190,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
275190
275190
|
return placeSingleChild(reconcileSinglePortal(returnFiber, currentFirstChild, newChild, lanes));
|
|
275191
275191
|
case REACT_LAZY_TYPE:
|
|
275192
275192
|
var payload = newChild._payload;
|
|
275193
|
-
var
|
|
275194
|
-
return reconcileChildFibers2(returnFiber, currentFirstChild,
|
|
275193
|
+
var init2 = newChild._init;
|
|
275194
|
+
return reconcileChildFibers2(returnFiber, currentFirstChild, init2(payload), lanes);
|
|
275195
275195
|
}
|
|
275196
275196
|
if (isArray(newChild)) {
|
|
275197
275197
|
return reconcileChildrenArray(returnFiber, currentFirstChild, newChild, lanes);
|
|
@@ -276343,11 +276343,11 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
276343
276343
|
function basicStateReducer(state, action) {
|
|
276344
276344
|
return typeof action === "function" ? action(state) : action;
|
|
276345
276345
|
}
|
|
276346
|
-
function mountReducer(reducer, initialArg,
|
|
276346
|
+
function mountReducer(reducer, initialArg, init2) {
|
|
276347
276347
|
var hook = mountWorkInProgressHook();
|
|
276348
276348
|
var initialState;
|
|
276349
|
-
if (
|
|
276350
|
-
initialState =
|
|
276349
|
+
if (init2 !== undefined) {
|
|
276350
|
+
initialState = init2(initialArg);
|
|
276351
276351
|
} else {
|
|
276352
276352
|
initialState = initialArg;
|
|
276353
276353
|
}
|
|
@@ -276364,7 +276364,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
276364
276364
|
var dispatch = queue.dispatch = dispatchReducerAction.bind(null, currentlyRenderingFiber$1, queue);
|
|
276365
276365
|
return [hook.memoizedState, dispatch];
|
|
276366
276366
|
}
|
|
276367
|
-
function updateReducer(reducer, initialArg,
|
|
276367
|
+
function updateReducer(reducer, initialArg, init2) {
|
|
276368
276368
|
var hook = updateWorkInProgressHook();
|
|
276369
276369
|
var queue = hook.queue;
|
|
276370
276370
|
if (queue === null) {
|
|
@@ -276462,7 +276462,7 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
276462
276462
|
var dispatch = queue.dispatch;
|
|
276463
276463
|
return [hook.memoizedState, dispatch];
|
|
276464
276464
|
}
|
|
276465
|
-
function rerenderReducer(reducer, initialArg,
|
|
276465
|
+
function rerenderReducer(reducer, initialArg, init2) {
|
|
276466
276466
|
var hook = updateWorkInProgressHook();
|
|
276467
276467
|
var queue = hook.queue;
|
|
276468
276468
|
if (queue === null) {
|
|
@@ -277153,13 +277153,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
277153
277153
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277154
277154
|
}
|
|
277155
277155
|
},
|
|
277156
|
-
useReducer: function(reducer, initialArg,
|
|
277156
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
277157
277157
|
currentHookNameInDev = "useReducer";
|
|
277158
277158
|
mountHookTypesDev();
|
|
277159
277159
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
277160
277160
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
277161
277161
|
try {
|
|
277162
|
-
return mountReducer(reducer, initialArg,
|
|
277162
|
+
return mountReducer(reducer, initialArg, init2);
|
|
277163
277163
|
} finally {
|
|
277164
277164
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277165
277165
|
}
|
|
@@ -277257,13 +277257,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
277257
277257
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277258
277258
|
}
|
|
277259
277259
|
},
|
|
277260
|
-
useReducer: function(reducer, initialArg,
|
|
277260
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
277261
277261
|
currentHookNameInDev = "useReducer";
|
|
277262
277262
|
updateHookTypesDev();
|
|
277263
277263
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
277264
277264
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
277265
277265
|
try {
|
|
277266
|
-
return mountReducer(reducer, initialArg,
|
|
277266
|
+
return mountReducer(reducer, initialArg, init2);
|
|
277267
277267
|
} finally {
|
|
277268
277268
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277269
277269
|
}
|
|
@@ -277361,13 +277361,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
277361
277361
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277362
277362
|
}
|
|
277363
277363
|
},
|
|
277364
|
-
useReducer: function(reducer, initialArg,
|
|
277364
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
277365
277365
|
currentHookNameInDev = "useReducer";
|
|
277366
277366
|
updateHookTypesDev();
|
|
277367
277367
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
277368
277368
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
277369
277369
|
try {
|
|
277370
|
-
return updateReducer(reducer, initialArg,
|
|
277370
|
+
return updateReducer(reducer, initialArg, init2);
|
|
277371
277371
|
} finally {
|
|
277372
277372
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277373
277373
|
}
|
|
@@ -277465,13 +277465,13 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
277465
277465
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277466
277466
|
}
|
|
277467
277467
|
},
|
|
277468
|
-
useReducer: function(reducer, initialArg,
|
|
277468
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
277469
277469
|
currentHookNameInDev = "useReducer";
|
|
277470
277470
|
updateHookTypesDev();
|
|
277471
277471
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
277472
277472
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnRerenderInDEV;
|
|
277473
277473
|
try {
|
|
277474
|
-
return rerenderReducer(reducer, initialArg,
|
|
277474
|
+
return rerenderReducer(reducer, initialArg, init2);
|
|
277475
277475
|
} finally {
|
|
277476
277476
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277477
277477
|
}
|
|
@@ -277577,14 +277577,14 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
277577
277577
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277578
277578
|
}
|
|
277579
277579
|
},
|
|
277580
|
-
useReducer: function(reducer, initialArg,
|
|
277580
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
277581
277581
|
currentHookNameInDev = "useReducer";
|
|
277582
277582
|
warnInvalidHookAccess();
|
|
277583
277583
|
mountHookTypesDev();
|
|
277584
277584
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
277585
277585
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnMountInDEV;
|
|
277586
277586
|
try {
|
|
277587
|
-
return mountReducer(reducer, initialArg,
|
|
277587
|
+
return mountReducer(reducer, initialArg, init2);
|
|
277588
277588
|
} finally {
|
|
277589
277589
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277590
277590
|
}
|
|
@@ -277698,14 +277698,14 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
277698
277698
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277699
277699
|
}
|
|
277700
277700
|
},
|
|
277701
|
-
useReducer: function(reducer, initialArg,
|
|
277701
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
277702
277702
|
currentHookNameInDev = "useReducer";
|
|
277703
277703
|
warnInvalidHookAccess();
|
|
277704
277704
|
updateHookTypesDev();
|
|
277705
277705
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
277706
277706
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
277707
277707
|
try {
|
|
277708
|
-
return updateReducer(reducer, initialArg,
|
|
277708
|
+
return updateReducer(reducer, initialArg, init2);
|
|
277709
277709
|
} finally {
|
|
277710
277710
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277711
277711
|
}
|
|
@@ -277819,14 +277819,14 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
277819
277819
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277820
277820
|
}
|
|
277821
277821
|
},
|
|
277822
|
-
useReducer: function(reducer, initialArg,
|
|
277822
|
+
useReducer: function(reducer, initialArg, init2) {
|
|
277823
277823
|
currentHookNameInDev = "useReducer";
|
|
277824
277824
|
warnInvalidHookAccess();
|
|
277825
277825
|
updateHookTypesDev();
|
|
277826
277826
|
var prevDispatcher = ReactCurrentDispatcher$1.current;
|
|
277827
277827
|
ReactCurrentDispatcher$1.current = InvalidNestedHooksDispatcherOnUpdateInDEV;
|
|
277828
277828
|
try {
|
|
277829
|
-
return rerenderReducer(reducer, initialArg,
|
|
277829
|
+
return rerenderReducer(reducer, initialArg, init2);
|
|
277830
277830
|
} finally {
|
|
277831
277831
|
ReactCurrentDispatcher$1.current = prevDispatcher;
|
|
277832
277832
|
}
|
|
@@ -279044,9 +279044,9 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
279044
279044
|
if (outerMemoType.$$typeof === REACT_LAZY_TYPE) {
|
|
279045
279045
|
var lazyComponent = outerMemoType;
|
|
279046
279046
|
var payload = lazyComponent._payload;
|
|
279047
|
-
var
|
|
279047
|
+
var init2 = lazyComponent._init;
|
|
279048
279048
|
try {
|
|
279049
|
-
outerMemoType =
|
|
279049
|
+
outerMemoType = init2(payload);
|
|
279050
279050
|
} catch (x) {
|
|
279051
279051
|
outerMemoType = null;
|
|
279052
279052
|
}
|
|
@@ -279416,8 +279416,8 @@ Learn more about this warning here: https://reactjs.org/link/legacy-context`, so
|
|
|
279416
279416
|
var props = workInProgress2.pendingProps;
|
|
279417
279417
|
var lazyComponent = elementType;
|
|
279418
279418
|
var payload = lazyComponent._payload;
|
|
279419
|
-
var
|
|
279420
|
-
var Component =
|
|
279419
|
+
var init2 = lazyComponent._init;
|
|
279420
|
+
var Component = init2(payload);
|
|
279421
279421
|
workInProgress2.type = Component;
|
|
279422
279422
|
var resolvedTag = workInProgress2.tag = resolveLazyComponentTag(Component);
|
|
279423
279423
|
var resolvedProps = resolveDefaultProps(Component, props);
|
|
@@ -292378,7 +292378,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
292378
292378
|
};
|
|
292379
292379
|
}
|
|
292380
292380
|
function arrayOf(elementType) {
|
|
292381
|
-
return
|
|
292381
|
+
return chain2(assertValueType("array"), assertEach(elementType));
|
|
292382
292382
|
}
|
|
292383
292383
|
function arrayOfType() {
|
|
292384
292384
|
return arrayOf(assertNodeType.apply(undefined, arguments));
|
|
@@ -292505,7 +292505,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
292505
292505
|
}
|
|
292506
292506
|
return validate3;
|
|
292507
292507
|
}
|
|
292508
|
-
function
|
|
292508
|
+
function chain2() {
|
|
292509
292509
|
for (var _len4 = arguments.length, fns = new Array(_len4), _key4 = 0;_key4 < _len4; _key4++) {
|
|
292510
292510
|
fns[_key4] = arguments[_key4];
|
|
292511
292511
|
}
|
|
@@ -292980,7 +292980,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
292980
292980
|
aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"],
|
|
292981
292981
|
fields: Object.assign({}, patternLikeCommon(), {
|
|
292982
292982
|
name: {
|
|
292983
|
-
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ?
|
|
292983
|
+
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ? chain2(assertValueType("string"), Object.assign(function(node2, key, val42) {
|
|
292984
292984
|
if (!isValidIdentifier$1(val42, false)) {
|
|
292985
292985
|
throw new TypeError('"' + val42 + '" is not a valid identifier name');
|
|
292986
292986
|
}
|
|
@@ -293068,7 +293068,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293068
293068
|
deprecatedAlias: "NumberLiteral",
|
|
293069
293069
|
fields: {
|
|
293070
293070
|
value: {
|
|
293071
|
-
validate:
|
|
293071
|
+
validate: chain2(assertValueType("number"), Object.assign(function(node2, key, val42) {}, {
|
|
293072
293072
|
type: "number"
|
|
293073
293073
|
}))
|
|
293074
293074
|
}
|
|
@@ -293096,7 +293096,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293096
293096
|
validate: assertValueType("string")
|
|
293097
293097
|
},
|
|
293098
293098
|
flags: {
|
|
293099
|
-
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ?
|
|
293099
|
+
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ? chain2(assertValueType("string"), Object.assign(function(node2, key, val42) {
|
|
293100
293100
|
var invalid = /[^gimsuy]/.exec(val42);
|
|
293101
293101
|
if (invalid) {
|
|
293102
293102
|
throw new TypeError('"' + invalid[0] + '" is not a valid RegExp flag');
|
|
@@ -293242,7 +293242,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293242
293242
|
validate: assertNodeType("Expression", "PatternLike")
|
|
293243
293243
|
},
|
|
293244
293244
|
shorthand: {
|
|
293245
|
-
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ?
|
|
293245
|
+
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ? chain2(assertValueType("boolean"), Object.assign(function(node2, key, shorthand) {
|
|
293246
293246
|
if (!shorthand)
|
|
293247
293247
|
return;
|
|
293248
293248
|
if (node2.computed) {
|
|
@@ -293355,7 +293355,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293355
293355
|
aliases: ["Statement"],
|
|
293356
293356
|
fields: {
|
|
293357
293357
|
block: {
|
|
293358
|
-
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ?
|
|
293358
|
+
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ? chain2(assertNodeType("BlockStatement"), Object.assign(function(node2) {
|
|
293359
293359
|
if (!node2.handler && !node2.finalizer) {
|
|
293360
293360
|
throw new TypeError("TryStatement expects either a handler or finalizer, or both");
|
|
293361
293361
|
}
|
|
@@ -293500,7 +293500,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293500
293500
|
aliases: ["Pattern", "PatternLike", "LVal"],
|
|
293501
293501
|
fields: Object.assign({}, patternLikeCommon(), {
|
|
293502
293502
|
elements: {
|
|
293503
|
-
validate:
|
|
293503
|
+
validate: chain2(assertValueType("array"), assertEach(assertNodeOrValueType("null", "PatternLike", "LVal")))
|
|
293504
293504
|
}
|
|
293505
293505
|
})
|
|
293506
293506
|
});
|
|
@@ -293645,7 +293645,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293645
293645
|
fields: Object.assign({
|
|
293646
293646
|
declaration: {
|
|
293647
293647
|
optional: true,
|
|
293648
|
-
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ?
|
|
293648
|
+
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ? chain2(assertNodeType("Declaration"), Object.assign(function(node2, key, val42) {
|
|
293649
293649
|
if (val42 && node2.specifiers.length) {
|
|
293650
293650
|
throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");
|
|
293651
293651
|
}
|
|
@@ -293809,7 +293809,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293809
293809
|
aliases: ["Expression"],
|
|
293810
293810
|
fields: {
|
|
293811
293811
|
meta: {
|
|
293812
|
-
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ?
|
|
293812
|
+
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ? chain2(assertNodeType("Identifier"), Object.assign(function(node2, key, val42) {
|
|
293813
293813
|
var property2;
|
|
293814
293814
|
switch (val42.name) {
|
|
293815
293815
|
case "function":
|
|
@@ -293860,7 +293860,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293860
293860
|
optional: true
|
|
293861
293861
|
},
|
|
293862
293862
|
key: {
|
|
293863
|
-
validate:
|
|
293863
|
+
validate: chain2(function() {
|
|
293864
293864
|
var normal = assertNodeType("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral");
|
|
293865
293865
|
var computed = assertNodeType("Expression");
|
|
293866
293866
|
return function(node2, key, val42) {
|
|
@@ -293879,7 +293879,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293879
293879
|
default: "method"
|
|
293880
293880
|
},
|
|
293881
293881
|
access: {
|
|
293882
|
-
validate:
|
|
293882
|
+
validate: chain2(assertValueType("string"), assertOneOf("public", "private", "protected")),
|
|
293883
293883
|
optional: true
|
|
293884
293884
|
},
|
|
293885
293885
|
decorators: {
|
|
@@ -293939,7 +293939,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293939
293939
|
builder: ["value", "tail"],
|
|
293940
293940
|
fields: {
|
|
293941
293941
|
value: {
|
|
293942
|
-
validate:
|
|
293942
|
+
validate: chain2(assertShape({
|
|
293943
293943
|
raw: {
|
|
293944
293944
|
validate: assertValueType("string")
|
|
293945
293945
|
},
|
|
@@ -293980,7 +293980,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
293980
293980
|
fields: {
|
|
293981
293981
|
quasis: validateArrayOfType("TemplateElement"),
|
|
293982
293982
|
expressions: {
|
|
293983
|
-
validate:
|
|
293983
|
+
validate: chain2(assertValueType("array"), assertEach(assertNodeType("Expression", "TSType")), function(node2, key, val42) {
|
|
293984
293984
|
if (node2.quasis.length !== val42.length + 1) {
|
|
293985
293985
|
throw new TypeError("Number of " + node2.type + ` quasis should be exactly one more than the number of expressions.
|
|
293986
293986
|
Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
@@ -293995,7 +293995,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
293995
293995
|
aliases: ["Expression", "Terminatorless"],
|
|
293996
293996
|
fields: {
|
|
293997
293997
|
delegate: {
|
|
293998
|
-
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ?
|
|
293998
|
+
validate: browser$1$1.env.BABEL_TYPES_8_BREAKING ? chain2(assertValueType("boolean"), Object.assign(function(node2, key, val42) {
|
|
293999
293999
|
if (val42 && !node2.argument) {
|
|
294000
294000
|
throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument");
|
|
294001
294001
|
}
|
|
@@ -294066,7 +294066,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
294066
294066
|
default: false
|
|
294067
294067
|
},
|
|
294068
294068
|
optional: {
|
|
294069
|
-
validate: !browser$1$1.env.BABEL_TYPES_8_BREAKING ? assertValueType("boolean") :
|
|
294069
|
+
validate: !browser$1$1.env.BABEL_TYPES_8_BREAKING ? assertValueType("boolean") : chain2(assertValueType("boolean"), assertOptionalChainStart())
|
|
294070
294070
|
}
|
|
294071
294071
|
}
|
|
294072
294072
|
});
|
|
@@ -294080,7 +294080,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
294080
294080
|
},
|
|
294081
294081
|
arguments: validateArrayOfType("Expression", "SpreadElement", "ArgumentPlaceholder"),
|
|
294082
294082
|
optional: {
|
|
294083
|
-
validate: !browser$1$1.env.BABEL_TYPES_8_BREAKING ? assertValueType("boolean") :
|
|
294083
|
+
validate: !browser$1$1.env.BABEL_TYPES_8_BREAKING ? assertValueType("boolean") : chain2(assertValueType("boolean"), assertOptionalChainStart())
|
|
294084
294084
|
},
|
|
294085
294085
|
typeArguments: {
|
|
294086
294086
|
validate: assertNodeType("TypeParameterInstantiation"),
|
|
@@ -294134,7 +294134,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
294134
294134
|
aliases: ["Property", "Accessor"],
|
|
294135
294135
|
fields: Object.assign({}, classMethodOrPropertyCommon(), {
|
|
294136
294136
|
key: {
|
|
294137
|
-
validate:
|
|
294137
|
+
validate: chain2(function() {
|
|
294138
294138
|
var normal = assertNodeType("Identifier", "StringLiteral", "NumericLiteral", "BigIntLiteral", "PrivateName");
|
|
294139
294139
|
var computed = assertNodeType("Expression");
|
|
294140
294140
|
return function(node2, key, val42) {
|
|
@@ -295339,7 +295339,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
295339
295339
|
fields: {
|
|
295340
295340
|
quasis: validateArrayOfType("TemplateElement"),
|
|
295341
295341
|
types: {
|
|
295342
|
-
validate:
|
|
295342
|
+
validate: chain2(assertValueType("array"), assertEach(assertNodeType("TSType")), function(node2, key, val42) {
|
|
295343
295343
|
if (node2.quasis.length !== val42.length + 1) {
|
|
295344
295344
|
throw new TypeError("Number of " + node2.type + ` quasis should be exactly one more than the number of types.
|
|
295345
295345
|
Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
@@ -295834,9 +295834,9 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
295834
295834
|
validate$5(defs.body, node2, "body", body, 1);
|
|
295835
295835
|
return node2;
|
|
295836
295836
|
}
|
|
295837
|
-
function forStatement(
|
|
295838
|
-
if (
|
|
295839
|
-
|
|
295837
|
+
function forStatement(init3, test, update2, body) {
|
|
295838
|
+
if (init3 === undefined) {
|
|
295839
|
+
init3 = null;
|
|
295840
295840
|
}
|
|
295841
295841
|
if (test === undefined) {
|
|
295842
295842
|
test = null;
|
|
@@ -295846,13 +295846,13 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
295846
295846
|
}
|
|
295847
295847
|
var node2 = {
|
|
295848
295848
|
type: "ForStatement",
|
|
295849
|
-
init:
|
|
295849
|
+
init: init3,
|
|
295850
295850
|
test,
|
|
295851
295851
|
update: update2,
|
|
295852
295852
|
body
|
|
295853
295853
|
};
|
|
295854
295854
|
var defs = NODE_FIELDS.ForStatement;
|
|
295855
|
-
validate$5(defs.init, node2, "init",
|
|
295855
|
+
validate$5(defs.init, node2, "init", init3, 1);
|
|
295856
295856
|
validate$5(defs.test, node2, "test", test, 1);
|
|
295857
295857
|
validate$5(defs.update, node2, "update", update2, 1);
|
|
295858
295858
|
validate$5(defs.body, node2, "body", body, 1);
|
|
@@ -296269,18 +296269,18 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
296269
296269
|
validate$5(defs.declarations, node2, "declarations", declarations, 1);
|
|
296270
296270
|
return node2;
|
|
296271
296271
|
}
|
|
296272
|
-
function variableDeclarator$6(id,
|
|
296273
|
-
if (
|
|
296274
|
-
|
|
296272
|
+
function variableDeclarator$6(id, init3) {
|
|
296273
|
+
if (init3 === undefined) {
|
|
296274
|
+
init3 = null;
|
|
296275
296275
|
}
|
|
296276
296276
|
var node2 = {
|
|
296277
296277
|
type: "VariableDeclarator",
|
|
296278
296278
|
id,
|
|
296279
|
-
init:
|
|
296279
|
+
init: init3
|
|
296280
296280
|
};
|
|
296281
296281
|
var defs = NODE_FIELDS.VariableDeclarator;
|
|
296282
296282
|
validate$5(defs.id, node2, "id", id, 1);
|
|
296283
|
-
validate$5(defs.init, node2, "init",
|
|
296283
|
+
validate$5(defs.init, node2, "init", init3, 1);
|
|
296284
296284
|
return node2;
|
|
296285
296285
|
}
|
|
296286
296286
|
function whileStatement(test, body) {
|
|
@@ -297556,26 +297556,26 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
297556
297556
|
validate$5(defs.id, node2, "id", id, 1);
|
|
297557
297557
|
return node2;
|
|
297558
297558
|
}
|
|
297559
|
-
function enumNumberMember(id,
|
|
297559
|
+
function enumNumberMember(id, init3) {
|
|
297560
297560
|
var node2 = {
|
|
297561
297561
|
type: "EnumNumberMember",
|
|
297562
297562
|
id,
|
|
297563
|
-
init:
|
|
297563
|
+
init: init3
|
|
297564
297564
|
};
|
|
297565
297565
|
var defs = NODE_FIELDS.EnumNumberMember;
|
|
297566
297566
|
validate$5(defs.id, node2, "id", id, 1);
|
|
297567
|
-
validate$5(defs.init, node2, "init",
|
|
297567
|
+
validate$5(defs.init, node2, "init", init3, 1);
|
|
297568
297568
|
return node2;
|
|
297569
297569
|
}
|
|
297570
|
-
function enumStringMember(id,
|
|
297570
|
+
function enumStringMember(id, init3) {
|
|
297571
297571
|
var node2 = {
|
|
297572
297572
|
type: "EnumStringMember",
|
|
297573
297573
|
id,
|
|
297574
|
-
init:
|
|
297574
|
+
init: init3
|
|
297575
297575
|
};
|
|
297576
297576
|
var defs = NODE_FIELDS.EnumStringMember;
|
|
297577
297577
|
validate$5(defs.id, node2, "id", id, 1);
|
|
297578
|
-
validate$5(defs.init, node2, "init",
|
|
297578
|
+
validate$5(defs.init, node2, "init", init3, 1);
|
|
297579
297579
|
return node2;
|
|
297580
297580
|
}
|
|
297581
297581
|
function enumDefaultedMember(id) {
|
|
@@ -303077,9 +303077,9 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
303077
303077
|
node2.type = node2.type.substring(8);
|
|
303078
303078
|
}
|
|
303079
303079
|
if (state.stop) {
|
|
303080
|
-
var
|
|
303081
|
-
|
|
303082
|
-
return this.finishNode(
|
|
303080
|
+
var chain3 = this.startNodeAtNode(node2);
|
|
303081
|
+
chain3.expression = node2;
|
|
303082
|
+
return this.finishNode(chain3, "ChainExpression");
|
|
303083
303083
|
}
|
|
303084
303084
|
} else if (node2.type === "MemberExpression" || node2.type === "CallExpression") {
|
|
303085
303085
|
node2.optional = false;
|
|
@@ -308259,13 +308259,13 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
308259
308259
|
_proto.flowEnumMemberRaw = function flowEnumMemberRaw() {
|
|
308260
308260
|
var loc = this.state.startLoc;
|
|
308261
308261
|
var id = this.parseIdentifier(true);
|
|
308262
|
-
var
|
|
308262
|
+
var init3 = this.eat(29) ? this.flowEnumMemberInit() : {
|
|
308263
308263
|
type: "none",
|
|
308264
308264
|
loc
|
|
308265
308265
|
};
|
|
308266
308266
|
return {
|
|
308267
308267
|
id,
|
|
308268
|
-
init:
|
|
308268
|
+
init: init3
|
|
308269
308269
|
};
|
|
308270
308270
|
};
|
|
308271
308271
|
_proto.flowEnumCheckExplicitTypeMismatch = function flowEnumCheckExplicitTypeMismatch(loc, context, expectedType) {
|
|
@@ -308293,7 +308293,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
308293
308293
|
break;
|
|
308294
308294
|
}
|
|
308295
308295
|
var memberNode = this.startNode();
|
|
308296
|
-
var _this$flowEnumMemberR = this.flowEnumMemberRaw(), id = _this$flowEnumMemberR.id,
|
|
308296
|
+
var _this$flowEnumMemberR = this.flowEnumMemberRaw(), id = _this$flowEnumMemberR.id, init3 = _this$flowEnumMemberR.init;
|
|
308297
308297
|
var memberName = id.name;
|
|
308298
308298
|
if (memberName === "") {
|
|
308299
308299
|
continue;
|
|
@@ -308318,35 +308318,35 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
308318
308318
|
memberName
|
|
308319
308319
|
};
|
|
308320
308320
|
memberNode.id = id;
|
|
308321
|
-
switch (
|
|
308321
|
+
switch (init3.type) {
|
|
308322
308322
|
case "boolean": {
|
|
308323
|
-
this.flowEnumCheckExplicitTypeMismatch(
|
|
308324
|
-
memberNode.init =
|
|
308323
|
+
this.flowEnumCheckExplicitTypeMismatch(init3.loc, context, "boolean");
|
|
308324
|
+
memberNode.init = init3.value;
|
|
308325
308325
|
members.booleanMembers.push(this.finishNode(memberNode, "EnumBooleanMember"));
|
|
308326
308326
|
break;
|
|
308327
308327
|
}
|
|
308328
308328
|
case "number": {
|
|
308329
|
-
this.flowEnumCheckExplicitTypeMismatch(
|
|
308330
|
-
memberNode.init =
|
|
308329
|
+
this.flowEnumCheckExplicitTypeMismatch(init3.loc, context, "number");
|
|
308330
|
+
memberNode.init = init3.value;
|
|
308331
308331
|
members.numberMembers.push(this.finishNode(memberNode, "EnumNumberMember"));
|
|
308332
308332
|
break;
|
|
308333
308333
|
}
|
|
308334
308334
|
case "string": {
|
|
308335
|
-
this.flowEnumCheckExplicitTypeMismatch(
|
|
308336
|
-
memberNode.init =
|
|
308335
|
+
this.flowEnumCheckExplicitTypeMismatch(init3.loc, context, "string");
|
|
308336
|
+
memberNode.init = init3.value;
|
|
308337
308337
|
members.stringMembers.push(this.finishNode(memberNode, "EnumStringMember"));
|
|
308338
308338
|
break;
|
|
308339
308339
|
}
|
|
308340
308340
|
case "invalid": {
|
|
308341
|
-
throw this.flowEnumErrorInvalidMemberInitializer(
|
|
308341
|
+
throw this.flowEnumErrorInvalidMemberInitializer(init3.loc, context);
|
|
308342
308342
|
}
|
|
308343
308343
|
case "none": {
|
|
308344
308344
|
switch (explicitType) {
|
|
308345
308345
|
case "boolean":
|
|
308346
|
-
this.flowEnumErrorBooleanMemberNotInitialized(
|
|
308346
|
+
this.flowEnumErrorBooleanMemberNotInitialized(init3.loc, context);
|
|
308347
308347
|
break;
|
|
308348
308348
|
case "number":
|
|
308349
|
-
this.flowEnumErrorNumberMemberNotInitialized(
|
|
308349
|
+
this.flowEnumErrorNumberMemberNotInitialized(init3.loc, context);
|
|
308350
308350
|
break;
|
|
308351
308351
|
default:
|
|
308352
308352
|
members.defaultedMembers.push(this.finishNode(memberNode, "EnumDefaultedMember"));
|
|
@@ -311669,13 +311669,13 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
311669
311669
|
if (!isAmbientContext)
|
|
311670
311670
|
return declaration;
|
|
311671
311671
|
for (var _i6 = 0, _declaration$declarat2 = declaration.declarations;_i6 < _declaration$declarat2.length; _i6++) {
|
|
311672
|
-
var _declaration$declarat3 = _declaration$declarat2[_i6], id = _declaration$declarat3.id,
|
|
311673
|
-
if (!
|
|
311672
|
+
var _declaration$declarat3 = _declaration$declarat2[_i6], id = _declaration$declarat3.id, init3 = _declaration$declarat3.init;
|
|
311673
|
+
if (!init3)
|
|
311674
311674
|
continue;
|
|
311675
311675
|
if (kind !== "const" || !!id.typeAnnotation) {
|
|
311676
|
-
this.raise(TSErrors.InitializerNotAllowedInAmbientContext,
|
|
311677
|
-
} else if (!isValidAmbientConstInitializer(
|
|
311678
|
-
this.raise(TSErrors.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,
|
|
311676
|
+
this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init3);
|
|
311677
|
+
} else if (!isValidAmbientConstInitializer(init3, this.hasPlugin("estree"))) {
|
|
311678
|
+
this.raise(TSErrors.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, init3);
|
|
311679
311679
|
}
|
|
311680
311680
|
}
|
|
311681
311681
|
return declaration;
|
|
@@ -315154,31 +315154,31 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
315154
315154
|
}
|
|
315155
315155
|
var startsWithAsync = this.isContextual(95);
|
|
315156
315156
|
var refExpressionErrors = new ExpressionErrors;
|
|
315157
|
-
var
|
|
315157
|
+
var init3 = this.parseExpression(true, refExpressionErrors);
|
|
315158
315158
|
var isForOf = this.isContextual(102);
|
|
315159
315159
|
if (isForOf) {
|
|
315160
315160
|
if (startsWithLet) {
|
|
315161
|
-
this.raise(Errors.ForOfLet,
|
|
315161
|
+
this.raise(Errors.ForOfLet, init3);
|
|
315162
315162
|
}
|
|
315163
|
-
if (awaitAt === null && startsWithAsync &&
|
|
315164
|
-
this.raise(Errors.ForOfAsync,
|
|
315163
|
+
if (awaitAt === null && startsWithAsync && init3.type === "Identifier") {
|
|
315164
|
+
this.raise(Errors.ForOfAsync, init3);
|
|
315165
315165
|
}
|
|
315166
315166
|
}
|
|
315167
315167
|
if (isForOf || this.match(58)) {
|
|
315168
315168
|
this.checkDestructuringPrivate(refExpressionErrors);
|
|
315169
|
-
this.toAssignable(
|
|
315169
|
+
this.toAssignable(init3, true);
|
|
315170
315170
|
var type2 = isForOf ? "ForOfStatement" : "ForInStatement";
|
|
315171
|
-
this.checkLVal(
|
|
315171
|
+
this.checkLVal(init3, {
|
|
315172
315172
|
type: type2
|
|
315173
315173
|
});
|
|
315174
|
-
return this.parseForIn(node2,
|
|
315174
|
+
return this.parseForIn(node2, init3, awaitAt);
|
|
315175
315175
|
} else {
|
|
315176
315176
|
this.checkExpressionErrors(refExpressionErrors, true);
|
|
315177
315177
|
}
|
|
315178
315178
|
if (awaitAt !== null) {
|
|
315179
315179
|
this.unexpected(awaitAt);
|
|
315180
315180
|
}
|
|
315181
|
-
return this.parseFor(node2,
|
|
315181
|
+
return this.parseFor(node2, init3);
|
|
315182
315182
|
};
|
|
315183
315183
|
_proto.parseFunctionStatement = function parseFunctionStatement(node2, isAsync3, isHangingDeclaration) {
|
|
315184
315184
|
this.next();
|
|
@@ -315416,9 +315416,9 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
315416
315416
|
}
|
|
315417
315417
|
this.next();
|
|
315418
315418
|
};
|
|
315419
|
-
_proto.parseFor = function parseFor(node2,
|
|
315419
|
+
_proto.parseFor = function parseFor(node2, init3) {
|
|
315420
315420
|
var _this5 = this;
|
|
315421
|
-
node2.init =
|
|
315421
|
+
node2.init = init3;
|
|
315422
315422
|
this.semicolon(false);
|
|
315423
315423
|
node2.test = this.match(13) ? null : this.parseExpression();
|
|
315424
315424
|
this.semicolon(false);
|
|
@@ -315431,7 +315431,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
315431
315431
|
this.state.labels.pop();
|
|
315432
315432
|
return this.finishNode(node2, "ForStatement");
|
|
315433
315433
|
};
|
|
315434
|
-
_proto.parseForIn = function parseForIn(node2,
|
|
315434
|
+
_proto.parseForIn = function parseForIn(node2, init3, awaitAt) {
|
|
315435
315435
|
var _this6 = this;
|
|
315436
315436
|
var isForIn = this.match(58);
|
|
315437
315437
|
this.next();
|
|
@@ -315441,19 +315441,19 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
315441
315441
|
} else {
|
|
315442
315442
|
node2["await"] = awaitAt !== null;
|
|
315443
315443
|
}
|
|
315444
|
-
if (
|
|
315445
|
-
this.raise(Errors.ForInOfLoopInitializer,
|
|
315444
|
+
if (init3.type === "VariableDeclaration" && init3.declarations[0].init != null && (!isForIn || !this.options.annexB || this.state.strict || init3.kind !== "var" || init3.declarations[0].id.type !== "Identifier")) {
|
|
315445
|
+
this.raise(Errors.ForInOfLoopInitializer, init3, {
|
|
315446
315446
|
type: isForIn ? "ForInStatement" : "ForOfStatement"
|
|
315447
315447
|
});
|
|
315448
315448
|
}
|
|
315449
|
-
if (
|
|
315450
|
-
this.raise(Errors.InvalidLhs,
|
|
315449
|
+
if (init3.type === "AssignmentPattern") {
|
|
315450
|
+
this.raise(Errors.InvalidLhs, init3, {
|
|
315451
315451
|
ancestor: {
|
|
315452
315452
|
type: "ForStatement"
|
|
315453
315453
|
}
|
|
315454
315454
|
});
|
|
315455
315455
|
}
|
|
315456
|
-
node2.left =
|
|
315456
|
+
node2.left = init3;
|
|
315457
315457
|
node2.right = isForIn ? this.parseExpression() : this.parseMaybeAssignAllowIn();
|
|
315458
315458
|
this.expect(11);
|
|
315459
315459
|
node2.body = this.withSmartMixTopicForbiddingContext(function() {
|
|
@@ -322024,8 +322024,8 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
322024
322024
|
if (path15.isSwitchStatement()) {
|
|
322025
322025
|
path15 = (this.getFunctionParent() || this.getProgramParent()).path;
|
|
322026
322026
|
}
|
|
322027
|
-
var { init:
|
|
322028
|
-
if (!
|
|
322027
|
+
var { init: init3, unique, kind: _opts$kind } = opts, kind = _opts$kind === undefined ? "var" : _opts$kind, id = opts.id;
|
|
322028
|
+
if (!init3 && !unique && (kind === "var" || kind === "let") && path15.isFunction() && !path15.node.name && isCallExpression$6(path15.parent, {
|
|
322029
322029
|
callee: path15.node
|
|
322030
322030
|
}) && path15.parent.arguments.length <= path15.node.params.length && isIdentifier$b(id)) {
|
|
322031
322031
|
path15.pushContainer("params", id);
|
|
@@ -322048,7 +322048,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
322048
322048
|
if (!unique)
|
|
322049
322049
|
path15.setData(dataKey, declarPath);
|
|
322050
322050
|
}
|
|
322051
|
-
var declarator = variableDeclarator$5(id,
|
|
322051
|
+
var declarator = variableDeclarator$5(id, init3);
|
|
322052
322052
|
var len = declarPath.node.declarations.push(declarator);
|
|
322053
322053
|
path15.scope.registerBinding(kind, declarPath.get("declarations")[len - 1]);
|
|
322054
322054
|
};
|
|
@@ -322211,13 +322211,13 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
322211
322211
|
continue;
|
|
322212
322212
|
seen.add(_path3.parent);
|
|
322213
322213
|
var firstId = undefined;
|
|
322214
|
-
var
|
|
322214
|
+
var init3 = [];
|
|
322215
322215
|
for (var _iterator18 = _createForOfIteratorHelperLoose(parent.declarations), _step18;!(_step18 = _iterator18()).done; ) {
|
|
322216
322216
|
var _firstId;
|
|
322217
322217
|
var decl = _step18.value;
|
|
322218
322218
|
(_firstId = firstId) != null || (firstId = decl.id);
|
|
322219
322219
|
if (decl.init) {
|
|
322220
|
-
|
|
322220
|
+
init3.push(assignmentExpression$7("=", decl.id, decl.init));
|
|
322221
322221
|
}
|
|
322222
322222
|
var ids = Object.keys(getBindingIdentifiers$3(decl, false, true, true));
|
|
322223
322223
|
for (var _i8 = 0, _ids = ids;_i8 < _ids.length; _i8++) {
|
|
@@ -322229,10 +322229,10 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
322229
322229
|
left: parent
|
|
322230
322230
|
})) {
|
|
322231
322231
|
parentPath.replaceWith(firstId);
|
|
322232
|
-
} else if (
|
|
322232
|
+
} else if (init3.length === 0) {
|
|
322233
322233
|
parentPath.remove();
|
|
322234
322234
|
} else {
|
|
322235
|
-
var expr =
|
|
322235
|
+
var expr = init3.length === 1 ? init3[0] : sequenceExpression$5(init3);
|
|
322236
322236
|
if (parentPath.parentPath.isForStatement({
|
|
322237
322237
|
init: parent
|
|
322238
322238
|
})) {
|
|
@@ -322414,7 +322414,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
322414
322414
|
var revLookup = [];
|
|
322415
322415
|
var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
322416
322416
|
var inited = false;
|
|
322417
|
-
function
|
|
322417
|
+
function init2() {
|
|
322418
322418
|
inited = true;
|
|
322419
322419
|
var code2 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
322420
322420
|
for (var i = 0, len = code2.length;i < len; ++i) {
|
|
@@ -322426,7 +322426,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
322426
322426
|
}
|
|
322427
322427
|
function toByteArray(b64) {
|
|
322428
322428
|
if (!inited) {
|
|
322429
|
-
|
|
322429
|
+
init2();
|
|
322430
322430
|
}
|
|
322431
322431
|
var i, j, l, tmp, placeHolders, arr;
|
|
322432
322432
|
var len = b64.length;
|
|
@@ -322467,7 +322467,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
322467
322467
|
}
|
|
322468
322468
|
function fromByteArray(uint8) {
|
|
322469
322469
|
if (!inited) {
|
|
322470
|
-
|
|
322470
|
+
init2();
|
|
322471
322471
|
}
|
|
322472
322472
|
var tmp;
|
|
322473
322473
|
var len = uint8.length;
|
|
@@ -332317,7 +332317,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
332317
332317
|
return arrowFunctionExpression$1(argsList, fnBody);
|
|
332318
332318
|
});
|
|
332319
332319
|
}
|
|
332320
|
-
function getBinding(thisEnvFn, key,
|
|
332320
|
+
function getBinding(thisEnvFn, key, init3) {
|
|
332321
332321
|
var cacheKey = "binding:" + key;
|
|
332322
332322
|
var data2 = thisEnvFn.getData(cacheKey);
|
|
332323
332323
|
if (!data2) {
|
|
@@ -332326,7 +332326,7 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
332326
332326
|
thisEnvFn.setData(cacheKey, data2);
|
|
332327
332327
|
thisEnvFn.scope.push({
|
|
332328
332328
|
id,
|
|
332329
|
-
init:
|
|
332329
|
+
init: init3(data2)
|
|
332330
332330
|
});
|
|
332331
332331
|
}
|
|
332332
332332
|
return data2;
|
|
@@ -336697,16 +336697,16 @@ Expected ` + (val42.length + 1) + " quasis but got " + node2.quasis.length);
|
|
|
336697
336697
|
for (var _iterator5 = _createForOfIteratorHelperLoose(path15.get("declarations")), _step5;!(_step5 = _iterator5()).done; ) {
|
|
336698
336698
|
var decl = _step5.value;
|
|
336699
336699
|
var id = decl.node.id;
|
|
336700
|
-
var
|
|
336701
|
-
if (isIdentifier$e(id) && exported.has(id.name) && !isArrowFunctionExpression(
|
|
336702
|
-
if (!
|
|
336700
|
+
var init3 = decl.node.init;
|
|
336701
|
+
if (isIdentifier$e(id) && exported.has(id.name) && !isArrowFunctionExpression(init3) && (!isFunctionExpression(init3) || init3.id) && (!isClassExpression(init3) || init3.id)) {
|
|
336702
|
+
if (!init3) {
|
|
336703
336703
|
if (isVar2) {
|
|
336704
336704
|
continue;
|
|
336705
336705
|
} else {
|
|
336706
|
-
|
|
336706
|
+
init3 = path15.scope.buildUndefinedNode();
|
|
336707
336707
|
}
|
|
336708
336708
|
}
|
|
336709
|
-
decl.node.init = buildBindingExportAssignmentExpression(metadata, exported.get(id.name),
|
|
336709
|
+
decl.node.init = buildBindingExportAssignmentExpression(metadata, exported.get(id.name), init3, path15.scope);
|
|
336710
336710
|
requeueInParent(decl.get("init"));
|
|
336711
336711
|
} else {
|
|
336712
336712
|
for (var _i2 = 0, _Object$keys = Object.keys(decl.getOuterBindingIdentifiers());_i2 < _Object$keys.length; _i2++) {
|
|
@@ -347980,24 +347980,24 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
347980
347980
|
var _marked$6 = _regeneratorRuntime().mark(buildPresetChain), _marked2$4 = _regeneratorRuntime().mark(buildRootChain), _marked3$1 = _regeneratorRuntime().mark(loadFileChain), _marked4 = _regeneratorRuntime().mark(mergeExtendsChain);
|
|
347981
347981
|
var debug$1 = browserExports("babel:config:config-chain");
|
|
347982
347982
|
function buildPresetChain(arg, context) {
|
|
347983
|
-
var
|
|
347983
|
+
var chain3;
|
|
347984
347984
|
return _regeneratorRuntime().wrap(function buildPresetChain$(_context) {
|
|
347985
347985
|
while (true)
|
|
347986
347986
|
switch (_context.prev = _context.next) {
|
|
347987
347987
|
case 0:
|
|
347988
347988
|
return _context.delegateYield(buildPresetChainWalker(arg, context), "t0", 1);
|
|
347989
347989
|
case 1:
|
|
347990
|
-
|
|
347991
|
-
if (
|
|
347990
|
+
chain3 = _context.t0;
|
|
347991
|
+
if (chain3) {
|
|
347992
347992
|
_context.next = 4;
|
|
347993
347993
|
break;
|
|
347994
347994
|
}
|
|
347995
347995
|
return _context.abrupt("return", null);
|
|
347996
347996
|
case 4:
|
|
347997
347997
|
return _context.abrupt("return", {
|
|
347998
|
-
plugins: dedupDescriptors(
|
|
347999
|
-
presets: dedupDescriptors(
|
|
348000
|
-
options:
|
|
347998
|
+
plugins: dedupDescriptors(chain3.plugins),
|
|
347999
|
+
presets: dedupDescriptors(chain3.presets),
|
|
348000
|
+
options: chain3.options.map(function(o) {
|
|
348001
348001
|
return normalizeOptions$7(o);
|
|
348002
348002
|
}),
|
|
348003
348003
|
files: new Set
|
|
@@ -348046,7 +348046,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348046
348046
|
});
|
|
348047
348047
|
});
|
|
348048
348048
|
function buildRootChain(opts, context) {
|
|
348049
|
-
var configReport, babelRcReport, programmaticLogger, programmaticChain, programmaticReport, configFile, babelrc, babelrcRoots, babelrcRootsDirectory, configFileChain, configFileLogger, validatedFile, result, ignoreFile, babelrcFile, isIgnored, fileChain, pkgData, _yield$findRelativeCo, _validatedFile, babelrcLogger, _result,
|
|
348049
|
+
var configReport, babelRcReport, programmaticLogger, programmaticChain, programmaticReport, configFile, babelrc, babelrcRoots, babelrcRootsDirectory, configFileChain, configFileLogger, validatedFile, result, ignoreFile, babelrcFile, isIgnored, fileChain, pkgData, _yield$findRelativeCo, _validatedFile, babelrcLogger, _result, chain3;
|
|
348050
348050
|
return _regeneratorRuntime().wrap(function buildRootChain$(_context2) {
|
|
348051
348051
|
while (true)
|
|
348052
348052
|
switch (_context2.prev = _context2.next) {
|
|
@@ -348174,18 +348174,18 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348174
348174
|
`) + `
|
|
348175
348175
|
-----End Babel configs-----`);
|
|
348176
348176
|
}
|
|
348177
|
-
|
|
348177
|
+
chain3 = mergeChain(mergeChain(mergeChain(emptyChain(), configFileChain), fileChain), programmaticChain);
|
|
348178
348178
|
return _context2.abrupt("return", {
|
|
348179
|
-
plugins: isIgnored ? [] : dedupDescriptors(
|
|
348180
|
-
presets: isIgnored ? [] : dedupDescriptors(
|
|
348181
|
-
options: isIgnored ? [] :
|
|
348179
|
+
plugins: isIgnored ? [] : dedupDescriptors(chain3.plugins),
|
|
348180
|
+
presets: isIgnored ? [] : dedupDescriptors(chain3.presets),
|
|
348181
|
+
options: isIgnored ? [] : chain3.options.map(function(o) {
|
|
348182
348182
|
return normalizeOptions$7(o);
|
|
348183
348183
|
}),
|
|
348184
348184
|
fileHandling: isIgnored ? "ignored" : "transpile",
|
|
348185
348185
|
ignore: ignoreFile || undefined,
|
|
348186
348186
|
babelrc: babelrcFile || undefined,
|
|
348187
348187
|
config: configFile || undefined,
|
|
348188
|
-
files:
|
|
348188
|
+
files: chain3.files
|
|
348189
348189
|
});
|
|
348190
348190
|
case 58:
|
|
348191
348191
|
case "end":
|
|
@@ -348275,16 +348275,16 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348275
348275
|
}
|
|
348276
348276
|
});
|
|
348277
348277
|
function loadFileChain(input, context, files, baseLogger) {
|
|
348278
|
-
var
|
|
348278
|
+
var chain3;
|
|
348279
348279
|
return _regeneratorRuntime().wrap(function loadFileChain$(_context3) {
|
|
348280
348280
|
while (true)
|
|
348281
348281
|
switch (_context3.prev = _context3.next) {
|
|
348282
348282
|
case 0:
|
|
348283
348283
|
return _context3.delegateYield(loadFileChainWalker(input, context, files, baseLogger), "t0", 1);
|
|
348284
348284
|
case 1:
|
|
348285
|
-
|
|
348286
|
-
|
|
348287
|
-
return _context3.abrupt("return",
|
|
348285
|
+
chain3 = _context3.t0;
|
|
348286
|
+
chain3 == null || chain3.files.add(input.filepath);
|
|
348287
|
+
return _context3.abrupt("return", chain3);
|
|
348288
348288
|
case 4:
|
|
348289
348289
|
case "end":
|
|
348290
348290
|
return _context3.stop();
|
|
@@ -348362,7 +348362,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348362
348362
|
files = new Set;
|
|
348363
348363
|
}
|
|
348364
348364
|
return _regeneratorRuntime().mark(function _callee() {
|
|
348365
|
-
var dirname8, flattenedConfigs, rootOpts, envOpts,
|
|
348365
|
+
var dirname8, flattenedConfigs, rootOpts, envOpts, chain3, logger, _i2, _flattenedConfigs, _flattenedConfigs$_i, config2, index2, envName;
|
|
348366
348366
|
return _regeneratorRuntime().wrap(function _callee$(_context4) {
|
|
348367
348367
|
while (true)
|
|
348368
348368
|
switch (_context4.prev = _context4.next) {
|
|
@@ -348412,7 +348412,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348412
348412
|
}
|
|
348413
348413
|
return _context4.abrupt("return", null);
|
|
348414
348414
|
case 6:
|
|
348415
|
-
|
|
348415
|
+
chain3 = emptyChain();
|
|
348416
348416
|
logger = createLogger(input, context, baseLogger);
|
|
348417
348417
|
_i2 = 0, _flattenedConfigs = flattenedConfigs;
|
|
348418
348418
|
case 9:
|
|
@@ -348421,7 +348421,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348421
348421
|
break;
|
|
348422
348422
|
}
|
|
348423
348423
|
_flattenedConfigs$_i = _flattenedConfigs[_i2], config2 = _flattenedConfigs$_i.config, index2 = _flattenedConfigs$_i.index, envName = _flattenedConfigs$_i.envName;
|
|
348424
|
-
return _context4.delegateYield(mergeExtendsChain(
|
|
348424
|
+
return _context4.delegateYield(mergeExtendsChain(chain3, config2.options, dirname8, context, files, baseLogger), "t0", 12);
|
|
348425
348425
|
case 12:
|
|
348426
348426
|
if (_context4.t0) {
|
|
348427
348427
|
_context4.next = 14;
|
|
@@ -348430,13 +348430,13 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348430
348430
|
return _context4.abrupt("return", null);
|
|
348431
348431
|
case 14:
|
|
348432
348432
|
logger(config2, index2, envName);
|
|
348433
|
-
return _context4.delegateYield(mergeChainOpts(
|
|
348433
|
+
return _context4.delegateYield(mergeChainOpts(chain3, config2), "t1", 16);
|
|
348434
348434
|
case 16:
|
|
348435
348435
|
_i2++;
|
|
348436
348436
|
_context4.next = 9;
|
|
348437
348437
|
break;
|
|
348438
348438
|
case 19:
|
|
348439
|
-
return _context4.abrupt("return",
|
|
348439
|
+
return _context4.abrupt("return", chain3);
|
|
348440
348440
|
case 20:
|
|
348441
348441
|
case "end":
|
|
348442
348442
|
return _context4.stop();
|
|
@@ -348445,7 +348445,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348445
348445
|
})();
|
|
348446
348446
|
};
|
|
348447
348447
|
}
|
|
348448
|
-
function mergeExtendsChain(
|
|
348448
|
+
function mergeExtendsChain(chain3, opts, dirname8, context, files, baseLogger) {
|
|
348449
348449
|
var file2, fileChain;
|
|
348450
348450
|
return _regeneratorRuntime().wrap(function mergeExtendsChain$(_context5) {
|
|
348451
348451
|
while (true)
|
|
@@ -348482,7 +348482,7 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
348482
348482
|
}
|
|
348483
348483
|
return _context5.abrupt("return", false);
|
|
348484
348484
|
case 12:
|
|
348485
|
-
mergeChain(
|
|
348485
|
+
mergeChain(chain3, fileChain);
|
|
348486
348486
|
return _context5.abrupt("return", true);
|
|
348487
348487
|
case 14:
|
|
348488
348488
|
case "end":
|
|
@@ -349316,9 +349316,9 @@ getting parsed as 6.1, which can lead to unexpected behavior.
|
|
|
349316
349316
|
options,
|
|
349317
349317
|
dirname: dirname8
|
|
349318
349318
|
};
|
|
349319
|
-
return _context6.delegateYield(forwardAsync(loadPluginDescriptor, function(
|
|
349319
|
+
return _context6.delegateYield(forwardAsync(loadPluginDescriptor, function(run3) {
|
|
349320
349320
|
return cache2.invalidate(function(data2) {
|
|
349321
|
-
return
|
|
349321
|
+
return run3(inheritsDescriptor, data2);
|
|
349322
349322
|
});
|
|
349323
349323
|
}), "t0", 6);
|
|
349324
349324
|
case 6:
|
|
@@ -352440,9 +352440,9 @@ Consider renaming the file to '.mjs', or setting sourceType:module ` + "or sourc
|
|
|
352440
352440
|
if (prop2.isClassPrivateMethod()) {
|
|
352441
352441
|
if (prop2.node.kind === "get") {
|
|
352442
352442
|
var body = prop2.node.body.body;
|
|
352443
|
-
var $ = undefined;
|
|
352444
|
-
if (body.length === 1 && isReturnStatement($ = body[0]) && isCallExpression$8($ =
|
|
352445
|
-
update2.getId = cloneNode$e($);
|
|
352443
|
+
var $2 = undefined;
|
|
352444
|
+
if (body.length === 1 && isReturnStatement($2 = body[0]) && isCallExpression$8($2 = $2.argument) && $2.arguments.length === 1 && isThisExpression$2($2.arguments[0]) && isIdentifier$e($2 = $2.callee)) {
|
|
352445
|
+
update2.getId = cloneNode$e($2);
|
|
352446
352446
|
update2.getterDeclared = true;
|
|
352447
352447
|
} else {
|
|
352448
352448
|
update2.getId = prop2.scope.generateUidIdentifier("get_" + name2);
|
|
@@ -352476,22 +352476,22 @@ Consider renaming the file to '.mjs', or setting sourceType:module ` + "or sourc
|
|
|
352476
352476
|
var isStatic2 = value2["static"], isMethod2 = value2.method, getId = value2.getId, setId = value2.setId;
|
|
352477
352477
|
var isGetterOrSetter = getId || setId;
|
|
352478
352478
|
var id = cloneNode$e(value2.id);
|
|
352479
|
-
var
|
|
352479
|
+
var init3 = undefined;
|
|
352480
352480
|
if (privateFieldsAsProperties) {
|
|
352481
|
-
|
|
352481
|
+
init3 = callExpression$c(state.addHelper("classPrivateFieldLooseKey"), [stringLiteral$6(name2)]);
|
|
352482
352482
|
} else if (privateFieldsAsSymbols) {
|
|
352483
|
-
|
|
352483
|
+
init3 = callExpression$c(identifier$d("Symbol"), [stringLiteral$6(name2)]);
|
|
352484
352484
|
} else if (!isStatic2) {
|
|
352485
352485
|
if (injectedIds.has(id.name))
|
|
352486
352486
|
continue;
|
|
352487
352487
|
injectedIds.add(id.name);
|
|
352488
|
-
|
|
352488
|
+
init3 = newExpression(identifier$d(isMethod2 && (!isGetterOrSetter || newHelpers(state)) ? "WeakSet" : "WeakMap"), []);
|
|
352489
352489
|
}
|
|
352490
|
-
if (
|
|
352490
|
+
if (init3) {
|
|
352491
352491
|
if (!privateFieldsAsSymbols) {
|
|
352492
|
-
annotateAsPure(
|
|
352492
|
+
annotateAsPure(init3);
|
|
352493
352493
|
}
|
|
352494
|
-
initNodes.push(template$2.statement.ast(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["var ", " = ", ""])), id,
|
|
352494
|
+
initNodes.push(template$2.statement.ast(_templateObject$B || (_templateObject$B = _taggedTemplateLiteralLoose(["var ", " = ", ""])), id, init3));
|
|
352495
352495
|
}
|
|
352496
352496
|
}
|
|
352497
352497
|
return initNodes;
|
|
@@ -355526,40 +355526,40 @@ If you are using ` + '["@babel/plugin-proposal-decorators", { "version": "legacy
|
|
|
355526
355526
|
_proto.getExtendsHelper = function getExtendsHelper() {
|
|
355527
355527
|
return this.useBuiltIns ? memberExpression$9(identifier$d("Object"), identifier$d("assign")) : this.addHelper("extends");
|
|
355528
355528
|
};
|
|
355529
|
-
_proto.buildVariableAssignment = function buildVariableAssignment(id,
|
|
355529
|
+
_proto.buildVariableAssignment = function buildVariableAssignment(id, init3) {
|
|
355530
355530
|
var op = this.operator;
|
|
355531
355531
|
if (isMemberExpression$7(id) || isOptionalMemberExpression$3(id))
|
|
355532
355532
|
op = "=";
|
|
355533
355533
|
var node2;
|
|
355534
355534
|
if (op) {
|
|
355535
|
-
node2 = expressionStatement$7(assignmentExpression$8(op, id, cloneNode$e(
|
|
355535
|
+
node2 = expressionStatement$7(assignmentExpression$8(op, id, cloneNode$e(init3) || this.scope.buildUndefinedNode()));
|
|
355536
355536
|
} else {
|
|
355537
355537
|
var nodeInit;
|
|
355538
|
-
if ((this.kind === "const" || this.kind === "using") &&
|
|
355538
|
+
if ((this.kind === "const" || this.kind === "using") && init3 === null) {
|
|
355539
355539
|
nodeInit = this.scope.buildUndefinedNode();
|
|
355540
355540
|
} else {
|
|
355541
|
-
nodeInit = cloneNode$e(
|
|
355541
|
+
nodeInit = cloneNode$e(init3);
|
|
355542
355542
|
}
|
|
355543
355543
|
node2 = variableDeclaration$6(this.kind, [variableDeclarator$6(id, nodeInit)]);
|
|
355544
355544
|
}
|
|
355545
355545
|
node2._blockHoist = this.blockHoist;
|
|
355546
355546
|
return node2;
|
|
355547
355547
|
};
|
|
355548
|
-
_proto.buildVariableDeclaration = function buildVariableDeclaration(id,
|
|
355549
|
-
var declar = variableDeclaration$6("var", [variableDeclarator$6(cloneNode$e(id), cloneNode$e(
|
|
355548
|
+
_proto.buildVariableDeclaration = function buildVariableDeclaration(id, init3) {
|
|
355549
|
+
var declar = variableDeclaration$6("var", [variableDeclarator$6(cloneNode$e(id), cloneNode$e(init3))]);
|
|
355550
355550
|
declar._blockHoist = this.blockHoist;
|
|
355551
355551
|
return declar;
|
|
355552
355552
|
};
|
|
355553
355553
|
_proto.push = function push(id, _init) {
|
|
355554
|
-
var
|
|
355554
|
+
var init3 = cloneNode$e(_init);
|
|
355555
355555
|
if (isObjectPattern$1(id)) {
|
|
355556
|
-
this.pushObjectPattern(id,
|
|
355556
|
+
this.pushObjectPattern(id, init3);
|
|
355557
355557
|
} else if (isArrayPattern(id)) {
|
|
355558
|
-
this.pushArrayPattern(id,
|
|
355558
|
+
this.pushArrayPattern(id, init3);
|
|
355559
355559
|
} else if (isAssignmentPattern$4(id)) {
|
|
355560
|
-
this.pushAssignmentPattern(id,
|
|
355560
|
+
this.pushAssignmentPattern(id, init3);
|
|
355561
355561
|
} else {
|
|
355562
|
-
this.nodes.push(this.buildVariableAssignment(id,
|
|
355562
|
+
this.nodes.push(this.buildVariableAssignment(id, init3));
|
|
355563
355563
|
}
|
|
355564
355564
|
};
|
|
355565
355565
|
_proto.toArray = function toArray(node2, count) {
|
|
@@ -366750,21 +366750,21 @@ bundler handle dynamic imports.
|
|
|
366750
366750
|
var _node = optionals[i];
|
|
366751
366751
|
var isCall = isCallExpression$8(_node);
|
|
366752
366752
|
var chainWithTypes = isCall ? _node.callee : _node.object;
|
|
366753
|
-
var
|
|
366753
|
+
var chain3 = skipTransparentExprWrapperNodes(chainWithTypes);
|
|
366754
366754
|
var ref47 = undefined;
|
|
366755
366755
|
var _check = undefined;
|
|
366756
|
-
if (isCall && isIdentifier$e(
|
|
366756
|
+
if (isCall && isIdentifier$e(chain3, {
|
|
366757
366757
|
name: "eval"
|
|
366758
366758
|
})) {
|
|
366759
|
-
_check = ref47 =
|
|
366759
|
+
_check = ref47 = chain3;
|
|
366760
366760
|
_node.callee = sequenceExpression$6([numericLiteral$5(0), ref47]);
|
|
366761
|
-
} else if (pureGetters && isCall && isSimpleMemberExpression(
|
|
366761
|
+
} else if (pureGetters && isCall && isSimpleMemberExpression(chain3)) {
|
|
366762
366762
|
_check = ref47 = _node.callee;
|
|
366763
|
-
} else if (scope2.isStatic(
|
|
366763
|
+
} else if (scope2.isStatic(chain3)) {
|
|
366764
366764
|
_check = ref47 = chainWithTypes;
|
|
366765
366765
|
} else {
|
|
366766
366766
|
if (!tmpVar || isCall) {
|
|
366767
|
-
tmpVar = scope2.generateUidIdentifierBasedOnNode(
|
|
366767
|
+
tmpVar = scope2.generateUidIdentifierBasedOnNode(chain3);
|
|
366768
366768
|
scope2.push({
|
|
366769
366769
|
id: cloneNode$e(tmpVar)
|
|
366770
366770
|
});
|
|
@@ -366777,11 +366777,11 @@ bundler handle dynamic imports.
|
|
|
366777
366777
|
_node.object = ref47;
|
|
366778
366778
|
}
|
|
366779
366779
|
}
|
|
366780
|
-
if (isCall && isMemberExpression$7(
|
|
366781
|
-
if (pureGetters && isSimpleMemberExpression(
|
|
366780
|
+
if (isCall && isMemberExpression$7(chain3)) {
|
|
366781
|
+
if (pureGetters && isSimpleMemberExpression(chain3)) {
|
|
366782
366782
|
_node.callee = chainWithTypes;
|
|
366783
366783
|
} else {
|
|
366784
|
-
var object2 =
|
|
366784
|
+
var object2 = chain3.object;
|
|
366785
366785
|
var context = undefined;
|
|
366786
366786
|
if (isSuper$2(object2)) {
|
|
366787
366787
|
context = thisExpression$4();
|
|
@@ -366789,7 +366789,7 @@ bundler handle dynamic imports.
|
|
|
366789
366789
|
var memoized = scope2.maybeGenerateMemoised(object2);
|
|
366790
366790
|
if (memoized) {
|
|
366791
366791
|
context = memoized;
|
|
366792
|
-
|
|
366792
|
+
chain3.object = assignmentExpression$8("=", memoized, object2);
|
|
366793
366793
|
} else {
|
|
366794
366794
|
context = object2;
|
|
366795
366795
|
}
|
|
@@ -367137,7 +367137,7 @@ bundler handle dynamic imports.
|
|
|
367137
367137
|
fieldPath.set("value", t3.unaryExpression("void", expr));
|
|
367138
367138
|
}
|
|
367139
367139
|
}
|
|
367140
|
-
function injectInitialization$1(classPath,
|
|
367140
|
+
function injectInitialization$1(classPath, init3) {
|
|
367141
367141
|
var firstFieldPath;
|
|
367142
367142
|
var constructorPath;
|
|
367143
367143
|
for (var _iterator2 = _createForOfIteratorHelperLoose(classPath.get("body.body")), _step2;!(_step2 = _iterator2()).done; ) {
|
|
@@ -367153,9 +367153,9 @@ bundler handle dynamic imports.
|
|
|
367153
367153
|
}
|
|
367154
367154
|
}
|
|
367155
367155
|
if (firstFieldPath) {
|
|
367156
|
-
injectToFieldInit(firstFieldPath,
|
|
367156
|
+
injectToFieldInit(firstFieldPath, init3, true);
|
|
367157
367157
|
} else {
|
|
367158
|
-
injectInitialization(classPath, constructorPath, [t3.expressionStatement(
|
|
367158
|
+
injectInitialization(classPath, constructorPath, [t3.expressionStatement(init3)]);
|
|
367159
367159
|
}
|
|
367160
367160
|
}
|
|
367161
367161
|
function getWeakSetId(weakSets, outerClass, reference, name2, inject) {
|
|
@@ -370381,7 +370381,7 @@ bundler handle dynamic imports.
|
|
|
370381
370381
|
return lazy(source) ? "lazy/function" : null;
|
|
370382
370382
|
}
|
|
370383
370383
|
},
|
|
370384
|
-
buildRequireWrapper: function buildRequireWrapper(name2,
|
|
370384
|
+
buildRequireWrapper: function buildRequireWrapper(name2, init3, payload, referenced) {
|
|
370385
370385
|
if (payload === "lazy/function") {
|
|
370386
370386
|
if (!referenced)
|
|
370387
370387
|
return false;
|
|
@@ -370391,7 +370391,7 @@ bundler handle dynamic imports.
|
|
|
370391
370391
|
`, ` = function(){ return data; };
|
|
370392
370392
|
return data;
|
|
370393
370393
|
}
|
|
370394
|
-
`])), name2,
|
|
370394
|
+
`])), name2, init3, name2);
|
|
370395
370395
|
}
|
|
370396
370396
|
},
|
|
370397
370397
|
wrapReference: function wrapReference(ref47, payload) {
|
|
@@ -370594,9 +370594,9 @@ bundler handle dynamic imports.
|
|
|
370594
370594
|
header = expressionStatement$7(loadExpr);
|
|
370595
370595
|
} else {
|
|
370596
370596
|
var _header;
|
|
370597
|
-
var
|
|
370597
|
+
var init3 = wrapInterop(path15, loadExpr, metadata.interop) || loadExpr;
|
|
370598
370598
|
if (metadata.wrap) {
|
|
370599
|
-
var res2 = hooks2.buildRequireWrapper(metadata.name,
|
|
370599
|
+
var res2 = hooks2.buildRequireWrapper(metadata.name, init3, metadata.wrap, metadata.referenced);
|
|
370600
370600
|
if (res2 === false)
|
|
370601
370601
|
continue;
|
|
370602
370602
|
else
|
|
@@ -370604,7 +370604,7 @@ bundler handle dynamic imports.
|
|
|
370604
370604
|
}
|
|
370605
370605
|
(_header = header) != null || (header = template$2.statement.ast(_templateObject2$8 || (_templateObject2$8 = _taggedTemplateLiteralLoose([`
|
|
370606
370606
|
var `, " = ", `;
|
|
370607
|
-
`])), metadata.name,
|
|
370607
|
+
`])), metadata.name, init3));
|
|
370608
370608
|
}
|
|
370609
370609
|
header.loc = metadata.loc;
|
|
370610
370610
|
headers.push(header);
|
|
@@ -372718,9 +372718,9 @@ bundler handle dynamic imports.
|
|
|
372718
372718
|
}
|
|
372719
372719
|
},
|
|
372720
372720
|
ForStatement: function ForStatement(path15) {
|
|
372721
|
-
var
|
|
372722
|
-
if (
|
|
372723
|
-
util3.replaceWithOrRemove(
|
|
372721
|
+
var init3 = path15.get("init");
|
|
372722
|
+
if (init3.isVariableDeclaration()) {
|
|
372723
|
+
util3.replaceWithOrRemove(init3, varDeclToExpr(init3, false));
|
|
372724
372724
|
}
|
|
372725
372725
|
},
|
|
372726
372726
|
ForXStatement: function ForXStatement(path15) {
|
|
@@ -410007,12 +410007,12 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
410007
410007
|
case "Program": {
|
|
410008
410008
|
var isGlobal = t3.isProgram(path15.parent);
|
|
410009
410009
|
var isSeen = seen(parentPath);
|
|
410010
|
-
var
|
|
410010
|
+
var init3 = t3.objectExpression([]);
|
|
410011
410011
|
if (isSeen || isGlobal) {
|
|
410012
|
-
|
|
410012
|
+
init3 = t3.logicalExpression("||", t3.cloneNode(fill.ID), init3);
|
|
410013
410013
|
}
|
|
410014
410014
|
var enumIIFE = buildEnumWrapper(Object.assign({}, fill, {
|
|
410015
|
-
INIT:
|
|
410015
|
+
INIT: init3
|
|
410016
410016
|
}));
|
|
410017
410017
|
if (isPure2)
|
|
410018
410018
|
annotateAsPure(enumIIFE);
|
|
@@ -410961,17 +410961,17 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
410961
410961
|
},
|
|
410962
410962
|
TSImportEqualsDeclaration: function TSImportEqualsDeclaration(path15, pass) {
|
|
410963
410963
|
var _path$node = path15.node, id = _path$node.id, moduleReference = _path$node.moduleReference;
|
|
410964
|
-
var
|
|
410964
|
+
var init3;
|
|
410965
410965
|
var varKind;
|
|
410966
410966
|
if (t3.isTSExternalModuleReference(moduleReference)) {
|
|
410967
410967
|
assertCjsTransformEnabled(path15, pass, "import " + id.name + " = require(...);", "import " + id.name + " from '...';", " alongside Typescript's --allowSyntheticDefaultImports option");
|
|
410968
|
-
|
|
410968
|
+
init3 = t3.callExpression(t3.identifier("require"), [moduleReference.expression]);
|
|
410969
410969
|
varKind = "const";
|
|
410970
410970
|
} else {
|
|
410971
|
-
|
|
410971
|
+
init3 = entityNameToExpr(moduleReference);
|
|
410972
410972
|
varKind = "var";
|
|
410973
410973
|
}
|
|
410974
|
-
var newNode = t3.variableDeclaration(varKind, [t3.variableDeclarator(id,
|
|
410974
|
+
var newNode = t3.variableDeclaration(varKind, [t3.variableDeclarator(id, init3)]);
|
|
410975
410975
|
{
|
|
410976
410976
|
path15.replaceWith(path15.node.isExport ? t3.exportNamedDeclaration(newNode) : newNode);
|
|
410977
410977
|
}
|
|
@@ -411433,7 +411433,7 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
411433
411433
|
}
|
|
411434
411434
|
return needsProxy ? "defer/proxy" : "defer/function";
|
|
411435
411435
|
},
|
|
411436
|
-
buildRequireWrapper: function buildRequireWrapper(name2,
|
|
411436
|
+
buildRequireWrapper: function buildRequireWrapper(name2, init3, payload, referenced) {
|
|
411437
411437
|
if (payload === "defer/proxy") {
|
|
411438
411438
|
if (!referenced)
|
|
411439
411439
|
return false;
|
|
@@ -411441,7 +411441,7 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
411441
411441
|
var `, " = ", `(
|
|
411442
411442
|
() => `, `
|
|
411443
411443
|
)
|
|
411444
|
-
`])), name2, file2.addHelper("importDeferProxy"),
|
|
411444
|
+
`])), name2, file2.addHelper("importDeferProxy"), init3);
|
|
411445
411445
|
}
|
|
411446
411446
|
if (payload === "defer/function") {
|
|
411447
411447
|
if (!referenced)
|
|
@@ -411451,7 +411451,7 @@ Using targets: ` + (0, _debugUtils.stringifyTargetsMultiline)(targets));
|
|
|
411451
411451
|
`, ` = () => data;
|
|
411452
411452
|
return data = `, `;
|
|
411453
411453
|
}
|
|
411454
|
-
`])), name2, name2,
|
|
411454
|
+
`])), name2, name2, init3);
|
|
411455
411455
|
}
|
|
411456
411456
|
},
|
|
411457
411457
|
wrapReference: function wrapReference(ref47, payload) {
|
|
@@ -418136,7 +418136,7 @@ Using plugins:`);
|
|
|
418136
418136
|
sourceFileName: filename
|
|
418137
418137
|
};
|
|
418138
418138
|
}
|
|
418139
|
-
function
|
|
418139
|
+
function run2(transformFn, script) {
|
|
418140
418140
|
var scriptEl = document.createElement("script");
|
|
418141
418141
|
if (script.type) {
|
|
418142
418142
|
scriptEl.setAttribute("type", script.type);
|
|
@@ -418185,7 +418185,7 @@ Using plugins:`);
|
|
|
418185
418185
|
var result = results[i2];
|
|
418186
418186
|
if (result.loaded && !result.executed) {
|
|
418187
418187
|
result.executed = true;
|
|
418188
|
-
|
|
418188
|
+
run2(transformFn, result);
|
|
418189
418189
|
} else if (!result.loaded && !result.error && !result.async) {
|
|
418190
418190
|
break;
|
|
418191
418191
|
}
|
|
@@ -426984,7 +426984,7 @@ import readline from "node:readline";
|
|
|
426984
426984
|
import { execSync as execSync2 } from "node:child_process";
|
|
426985
426985
|
var import_semver = __toESM2(require_semver2(), 1);
|
|
426986
426986
|
// package.json
|
|
426987
|
-
var version = "0.1.
|
|
426987
|
+
var version = "0.1.69";
|
|
426988
426988
|
var package_default = {
|
|
426989
426989
|
name: "@tscircuit/cli",
|
|
426990
426990
|
version,
|
|
@@ -430972,6 +430972,105 @@ var import_semver2 = __toESM2(require_semver2(), 1);
|
|
|
430972
430972
|
var import_debug = __toESM2(require_src(), 1);
|
|
430973
430973
|
import * as fs11 from "node:fs";
|
|
430974
430974
|
import * as path12 from "node:path";
|
|
430975
|
+
|
|
430976
|
+
// node_modules/kleur/index.mjs
|
|
430977
|
+
var FORCE_COLOR;
|
|
430978
|
+
var NODE_DISABLE_COLORS;
|
|
430979
|
+
var NO_COLOR;
|
|
430980
|
+
var TERM;
|
|
430981
|
+
var isTTY = true;
|
|
430982
|
+
if (typeof process !== "undefined") {
|
|
430983
|
+
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
|
|
430984
|
+
isTTY = process.stdout && process.stdout.isTTY;
|
|
430985
|
+
}
|
|
430986
|
+
var $ = {
|
|
430987
|
+
enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY),
|
|
430988
|
+
reset: init(0, 0),
|
|
430989
|
+
bold: init(1, 22),
|
|
430990
|
+
dim: init(2, 22),
|
|
430991
|
+
italic: init(3, 23),
|
|
430992
|
+
underline: init(4, 24),
|
|
430993
|
+
inverse: init(7, 27),
|
|
430994
|
+
hidden: init(8, 28),
|
|
430995
|
+
strikethrough: init(9, 29),
|
|
430996
|
+
black: init(30, 39),
|
|
430997
|
+
red: init(31, 39),
|
|
430998
|
+
green: init(32, 39),
|
|
430999
|
+
yellow: init(33, 39),
|
|
431000
|
+
blue: init(34, 39),
|
|
431001
|
+
magenta: init(35, 39),
|
|
431002
|
+
cyan: init(36, 39),
|
|
431003
|
+
white: init(37, 39),
|
|
431004
|
+
gray: init(90, 39),
|
|
431005
|
+
grey: init(90, 39),
|
|
431006
|
+
bgBlack: init(40, 49),
|
|
431007
|
+
bgRed: init(41, 49),
|
|
431008
|
+
bgGreen: init(42, 49),
|
|
431009
|
+
bgYellow: init(43, 49),
|
|
431010
|
+
bgBlue: init(44, 49),
|
|
431011
|
+
bgMagenta: init(45, 49),
|
|
431012
|
+
bgCyan: init(46, 49),
|
|
431013
|
+
bgWhite: init(47, 49)
|
|
431014
|
+
};
|
|
431015
|
+
function run(arr, str) {
|
|
431016
|
+
let i = 0, tmp, beg = "", end = "";
|
|
431017
|
+
for (;i < arr.length; i++) {
|
|
431018
|
+
tmp = arr[i];
|
|
431019
|
+
beg += tmp.open;
|
|
431020
|
+
end += tmp.close;
|
|
431021
|
+
if (!!~str.indexOf(tmp.close)) {
|
|
431022
|
+
str = str.replace(tmp.rgx, tmp.close + tmp.open);
|
|
431023
|
+
}
|
|
431024
|
+
}
|
|
431025
|
+
return beg + str + end;
|
|
431026
|
+
}
|
|
431027
|
+
function chain(has, keys) {
|
|
431028
|
+
let ctx = { has, keys };
|
|
431029
|
+
ctx.reset = $.reset.bind(ctx);
|
|
431030
|
+
ctx.bold = $.bold.bind(ctx);
|
|
431031
|
+
ctx.dim = $.dim.bind(ctx);
|
|
431032
|
+
ctx.italic = $.italic.bind(ctx);
|
|
431033
|
+
ctx.underline = $.underline.bind(ctx);
|
|
431034
|
+
ctx.inverse = $.inverse.bind(ctx);
|
|
431035
|
+
ctx.hidden = $.hidden.bind(ctx);
|
|
431036
|
+
ctx.strikethrough = $.strikethrough.bind(ctx);
|
|
431037
|
+
ctx.black = $.black.bind(ctx);
|
|
431038
|
+
ctx.red = $.red.bind(ctx);
|
|
431039
|
+
ctx.green = $.green.bind(ctx);
|
|
431040
|
+
ctx.yellow = $.yellow.bind(ctx);
|
|
431041
|
+
ctx.blue = $.blue.bind(ctx);
|
|
431042
|
+
ctx.magenta = $.magenta.bind(ctx);
|
|
431043
|
+
ctx.cyan = $.cyan.bind(ctx);
|
|
431044
|
+
ctx.white = $.white.bind(ctx);
|
|
431045
|
+
ctx.gray = $.gray.bind(ctx);
|
|
431046
|
+
ctx.grey = $.grey.bind(ctx);
|
|
431047
|
+
ctx.bgBlack = $.bgBlack.bind(ctx);
|
|
431048
|
+
ctx.bgRed = $.bgRed.bind(ctx);
|
|
431049
|
+
ctx.bgGreen = $.bgGreen.bind(ctx);
|
|
431050
|
+
ctx.bgYellow = $.bgYellow.bind(ctx);
|
|
431051
|
+
ctx.bgBlue = $.bgBlue.bind(ctx);
|
|
431052
|
+
ctx.bgMagenta = $.bgMagenta.bind(ctx);
|
|
431053
|
+
ctx.bgCyan = $.bgCyan.bind(ctx);
|
|
431054
|
+
ctx.bgWhite = $.bgWhite.bind(ctx);
|
|
431055
|
+
return ctx;
|
|
431056
|
+
}
|
|
431057
|
+
function init(open2, close) {
|
|
431058
|
+
let blk = {
|
|
431059
|
+
open: `\x1B[${open2}m`,
|
|
431060
|
+
close: `\x1B[${close}m`,
|
|
431061
|
+
rgx: new RegExp(`\\x1b\\[${close}m`, "g")
|
|
431062
|
+
};
|
|
431063
|
+
return function(txt) {
|
|
431064
|
+
if (this !== undefined && this.has !== undefined) {
|
|
431065
|
+
!!~this.has.indexOf(open2) || (this.has.push(open2), this.keys.push(blk));
|
|
431066
|
+
return txt === undefined ? this : $.enabled ? run(this.keys, txt + "") : txt + "";
|
|
431067
|
+
}
|
|
431068
|
+
return txt === undefined ? chain([open2], [blk]) : $.enabled ? run([blk], txt + "") : txt + "";
|
|
431069
|
+
};
|
|
431070
|
+
}
|
|
431071
|
+
var kleur_default = $;
|
|
431072
|
+
|
|
431073
|
+
// lib/shared/push-snippet.ts
|
|
430975
431074
|
var debug = import_debug.default("tsci:push-snippet");
|
|
430976
431075
|
var pushSnippet = async ({
|
|
430977
431076
|
filePath,
|
|
@@ -430994,7 +431093,7 @@ var pushSnippet = async ({
|
|
|
430994
431093
|
snippetFilePath = defaultEntrypoint;
|
|
430995
431094
|
onSuccess("No file provided. Using 'index.tsx' as the entrypoint.");
|
|
430996
431095
|
} else {
|
|
430997
|
-
onError("No entrypoint found. Run 'tsci init' to bootstrap a basic project.");
|
|
431096
|
+
onError(kleur_default.red("No entrypoint found. Run 'tsci init' to bootstrap a basic project."));
|
|
430998
431097
|
return onExit(1);
|
|
430999
431098
|
}
|
|
431000
431099
|
}
|
|
@@ -431038,8 +431137,15 @@ var pushSnippet = async ({
|
|
|
431038
431137
|
};
|
|
431039
431138
|
const doesPackageExist = await ky2.post("packages/get", {
|
|
431040
431139
|
json: { name: packageIdentifier },
|
|
431041
|
-
|
|
431042
|
-
}).json().then((response) =>
|
|
431140
|
+
headers: { Authorization: `Bearer ${sessionToken}` }
|
|
431141
|
+
}).json().then((response) => {
|
|
431142
|
+
debug("doesPackageExist", response);
|
|
431143
|
+
return true;
|
|
431144
|
+
}).catch((error) => {
|
|
431145
|
+
if (error.response.status === 404) {
|
|
431146
|
+
return false;
|
|
431147
|
+
}
|
|
431148
|
+
});
|
|
431043
431149
|
if (!doesPackageExist) {
|
|
431044
431150
|
await ky2.post("packages/create", {
|
|
431045
431151
|
json: {
|
|
@@ -431048,6 +431154,7 @@ var pushSnippet = async ({
|
|
|
431048
431154
|
},
|
|
431049
431155
|
headers: { Authorization: `Bearer ${sessionToken}` }
|
|
431050
431156
|
}).then((response) => {
|
|
431157
|
+
debug("createPackage", response);
|
|
431051
431158
|
onSuccess(`Package ${response.json()} created`);
|
|
431052
431159
|
}).catch((error) => {
|
|
431053
431160
|
onError(`Error creating package: ${error}`);
|
|
@@ -431057,15 +431164,20 @@ var pushSnippet = async ({
|
|
|
431057
431164
|
const doesReleaseExist = await ky2.post("package_releases/get", {
|
|
431058
431165
|
json: {
|
|
431059
431166
|
package_name_with_version: `${packageIdentifier}@${packageVersion}`
|
|
431060
|
-
}
|
|
431061
|
-
throwHttpErrors: false
|
|
431167
|
+
}
|
|
431062
431168
|
}).json().then((response) => {
|
|
431169
|
+
debug("doesReleaseExist", response);
|
|
431063
431170
|
if (response.package_release?.version) {
|
|
431064
431171
|
packageVersion = response.package_release.version;
|
|
431065
431172
|
updatePackageJsonVersion(response.package_release.version);
|
|
431066
431173
|
return true;
|
|
431067
431174
|
}
|
|
431068
431175
|
return !(response.error?.error_code === "package_release_not_found");
|
|
431176
|
+
}).catch((error) => {
|
|
431177
|
+
if (error.response.status === 404) {
|
|
431178
|
+
return false;
|
|
431179
|
+
}
|
|
431180
|
+
onError(`Error checking if release exists: ${error}`);
|
|
431069
431181
|
});
|
|
431070
431182
|
if (doesReleaseExist) {
|
|
431071
431183
|
const bumpedVersion = import_semver2.default.inc(packageVersion, "patch");
|
|
@@ -431076,8 +431188,7 @@ var pushSnippet = async ({
|
|
|
431076
431188
|
await ky2.post("package_releases/create", {
|
|
431077
431189
|
json: {
|
|
431078
431190
|
package_name_with_version: `${packageIdentifier}@${packageVersion}`
|
|
431079
|
-
}
|
|
431080
|
-
throwHttpErrors: false
|
|
431191
|
+
}
|
|
431081
431192
|
}).catch((error) => {
|
|
431082
431193
|
onError(`Error creating release: ${error}`);
|
|
431083
431194
|
return onExit(1);
|
|
@@ -431095,12 +431206,13 @@ var pushSnippet = async ({
|
|
|
431095
431206
|
file_path: file,
|
|
431096
431207
|
content_text: fileContent,
|
|
431097
431208
|
package_name_with_version: `${packageIdentifier}@${packageVersion}`
|
|
431098
|
-
}
|
|
431099
|
-
|
|
431100
|
-
|
|
431209
|
+
}
|
|
431210
|
+
}).json().then((response) => {
|
|
431211
|
+
debug("createPackageFile", response);
|
|
431101
431212
|
onSuccess(`Uploaded file ${file} to the registry.`);
|
|
431102
431213
|
}).catch((error) => {
|
|
431103
431214
|
onError(`Error uploading file ${file}: ${error}`);
|
|
431215
|
+
return onExit(1);
|
|
431104
431216
|
});
|
|
431105
431217
|
}
|
|
431106
431218
|
onSuccess([
|
|
@@ -456518,103 +456630,6 @@ circuit.add(<MyCircuit />)
|
|
|
456518
456630
|
}
|
|
456519
456631
|
}
|
|
456520
456632
|
|
|
456521
|
-
// node_modules/kleur/index.mjs
|
|
456522
|
-
var FORCE_COLOR;
|
|
456523
|
-
var NODE_DISABLE_COLORS;
|
|
456524
|
-
var NO_COLOR;
|
|
456525
|
-
var TERM;
|
|
456526
|
-
var isTTY = true;
|
|
456527
|
-
if (typeof process !== "undefined") {
|
|
456528
|
-
({ FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM } = process.env || {});
|
|
456529
|
-
isTTY = process.stdout && process.stdout.isTTY;
|
|
456530
|
-
}
|
|
456531
|
-
var $ = {
|
|
456532
|
-
enabled: !NODE_DISABLE_COLORS && NO_COLOR == null && TERM !== "dumb" && (FORCE_COLOR != null && FORCE_COLOR !== "0" || isTTY),
|
|
456533
|
-
reset: init(0, 0),
|
|
456534
|
-
bold: init(1, 22),
|
|
456535
|
-
dim: init(2, 22),
|
|
456536
|
-
italic: init(3, 23),
|
|
456537
|
-
underline: init(4, 24),
|
|
456538
|
-
inverse: init(7, 27),
|
|
456539
|
-
hidden: init(8, 28),
|
|
456540
|
-
strikethrough: init(9, 29),
|
|
456541
|
-
black: init(30, 39),
|
|
456542
|
-
red: init(31, 39),
|
|
456543
|
-
green: init(32, 39),
|
|
456544
|
-
yellow: init(33, 39),
|
|
456545
|
-
blue: init(34, 39),
|
|
456546
|
-
magenta: init(35, 39),
|
|
456547
|
-
cyan: init(36, 39),
|
|
456548
|
-
white: init(37, 39),
|
|
456549
|
-
gray: init(90, 39),
|
|
456550
|
-
grey: init(90, 39),
|
|
456551
|
-
bgBlack: init(40, 49),
|
|
456552
|
-
bgRed: init(41, 49),
|
|
456553
|
-
bgGreen: init(42, 49),
|
|
456554
|
-
bgYellow: init(43, 49),
|
|
456555
|
-
bgBlue: init(44, 49),
|
|
456556
|
-
bgMagenta: init(45, 49),
|
|
456557
|
-
bgCyan: init(46, 49),
|
|
456558
|
-
bgWhite: init(47, 49)
|
|
456559
|
-
};
|
|
456560
|
-
function run(arr, str) {
|
|
456561
|
-
let i = 0, tmp, beg = "", end = "";
|
|
456562
|
-
for (;i < arr.length; i++) {
|
|
456563
|
-
tmp = arr[i];
|
|
456564
|
-
beg += tmp.open;
|
|
456565
|
-
end += tmp.close;
|
|
456566
|
-
if (!!~str.indexOf(tmp.close)) {
|
|
456567
|
-
str = str.replace(tmp.rgx, tmp.close + tmp.open);
|
|
456568
|
-
}
|
|
456569
|
-
}
|
|
456570
|
-
return beg + str + end;
|
|
456571
|
-
}
|
|
456572
|
-
function chain(has, keys) {
|
|
456573
|
-
let ctx = { has, keys };
|
|
456574
|
-
ctx.reset = $.reset.bind(ctx);
|
|
456575
|
-
ctx.bold = $.bold.bind(ctx);
|
|
456576
|
-
ctx.dim = $.dim.bind(ctx);
|
|
456577
|
-
ctx.italic = $.italic.bind(ctx);
|
|
456578
|
-
ctx.underline = $.underline.bind(ctx);
|
|
456579
|
-
ctx.inverse = $.inverse.bind(ctx);
|
|
456580
|
-
ctx.hidden = $.hidden.bind(ctx);
|
|
456581
|
-
ctx.strikethrough = $.strikethrough.bind(ctx);
|
|
456582
|
-
ctx.black = $.black.bind(ctx);
|
|
456583
|
-
ctx.red = $.red.bind(ctx);
|
|
456584
|
-
ctx.green = $.green.bind(ctx);
|
|
456585
|
-
ctx.yellow = $.yellow.bind(ctx);
|
|
456586
|
-
ctx.blue = $.blue.bind(ctx);
|
|
456587
|
-
ctx.magenta = $.magenta.bind(ctx);
|
|
456588
|
-
ctx.cyan = $.cyan.bind(ctx);
|
|
456589
|
-
ctx.white = $.white.bind(ctx);
|
|
456590
|
-
ctx.gray = $.gray.bind(ctx);
|
|
456591
|
-
ctx.grey = $.grey.bind(ctx);
|
|
456592
|
-
ctx.bgBlack = $.bgBlack.bind(ctx);
|
|
456593
|
-
ctx.bgRed = $.bgRed.bind(ctx);
|
|
456594
|
-
ctx.bgGreen = $.bgGreen.bind(ctx);
|
|
456595
|
-
ctx.bgYellow = $.bgYellow.bind(ctx);
|
|
456596
|
-
ctx.bgBlue = $.bgBlue.bind(ctx);
|
|
456597
|
-
ctx.bgMagenta = $.bgMagenta.bind(ctx);
|
|
456598
|
-
ctx.bgCyan = $.bgCyan.bind(ctx);
|
|
456599
|
-
ctx.bgWhite = $.bgWhite.bind(ctx);
|
|
456600
|
-
return ctx;
|
|
456601
|
-
}
|
|
456602
|
-
function init(open2, close) {
|
|
456603
|
-
let blk = {
|
|
456604
|
-
open: `\x1B[${open2}m`,
|
|
456605
|
-
close: `\x1B[${close}m`,
|
|
456606
|
-
rgx: new RegExp(`\\x1b\\[${close}m`, "g")
|
|
456607
|
-
};
|
|
456608
|
-
return function(txt) {
|
|
456609
|
-
if (this !== undefined && this.has !== undefined) {
|
|
456610
|
-
!!~this.has.indexOf(open2) || (this.has.push(open2), this.keys.push(blk));
|
|
456611
|
-
return txt === undefined ? this : $.enabled ? run(this.keys, txt + "") : txt + "";
|
|
456612
|
-
}
|
|
456613
|
-
return txt === undefined ? chain([open2], [blk]) : $.enabled ? run([blk], txt + "") : txt + "";
|
|
456614
|
-
};
|
|
456615
|
-
}
|
|
456616
|
-
var kleur_default = $;
|
|
456617
|
-
|
|
456618
456633
|
// lib/getVersion.ts
|
|
456619
456634
|
var import_semver3 = __toESM2(require_semver2(), 1);
|
|
456620
456635
|
var getVersion = () => {
|