From 9388b3f8257bc2e580deaece4cd2677928104fc6 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 2 Mar 2023 19:02:10 -0800 Subject: Add a zig fmt action (#2277) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add a zig fmt action * add failing file * Setup prettier better * Update prettier-fmt.yml * Fail on error * Update prettier-fmt.yml * boop * boop2 * tar.gz * Update zig-fmt.yml * Update zig-fmt.yml * Update zig-fmt.yml * Update zig-fmt.yml * Update zig-fmt.yml * boop * Update prettier-fmt.yml * tag * newlines * multiline * fixup * Update zig-fmt.yml * update it * fixup * both * w * Update prettier-fmt.yml * prettier all the things * Update package.json * zig fmt * ❌ ✅ * bump * . * quotes * fix prettier ignore * once more * Update prettier-fmt.yml * Update fallback.ts * consistentcy --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- bench/react-hello-world/react-hello-world.node.js | 3285 +++++---------------- 1 file changed, 817 insertions(+), 2468 deletions(-) (limited to 'bench/react-hello-world/react-hello-world.node.js') diff --git a/bench/react-hello-world/react-hello-world.node.js b/bench/react-hello-world/react-hello-world.node.js index df9f0eaee..f2c7ae635 100644 --- a/bench/react-hello-world/react-hello-world.node.js +++ b/bench/react-hello-world/react-hello-world.node.js @@ -17,15 +17,9 @@ var Kd = (e, n, i, s) => { return e; }; var Dc = (e, n, i) => ( - (i = e != null ? Gd(Jd(e)) : {}), - Kd( - n || !e || !e.__esModule - ? Ac(i, "default", { value: e, enumerable: !0 }) - : i, - e - ) + (i = e != null ? Gd(Jd(e)) : {}), Kd(n || !e || !e.__esModule ? Ac(i, "default", { value: e, enumerable: !0 }) : i, e) ); -var Nc = an(($) => { +var Nc = an($ => { "use strict"; var Ai = Symbol.for("react.element"), qd = Symbol.for("react.portal"), @@ -42,8 +36,7 @@ var Nc = an(($) => { function up(e) { return e === null || typeof e != "object" ? null - : ((e = (Oc && e[Oc]) || e["@@iterator"]), - typeof e == "function" ? e : null); + : ((e = (Oc && e[Oc]) || e["@@iterator"]), typeof e == "function" ? e : null); } var Bc = { isMounted: function () { @@ -56,16 +49,13 @@ var Nc = an(($) => { Uc = Object.assign, jc = {}; function sa(e, n, i) { - (this.props = e), - (this.context = n), - (this.refs = jc), - (this.updater = i || Bc); + (this.props = e), (this.context = n), (this.refs = jc), (this.updater = i || Bc); } sa.prototype.isReactComponent = {}; sa.prototype.setState = function (e, n) { if (typeof e != "object" && typeof e != "function" && e != null) throw Error( - "setState(...): takes an object of state variables to update or a function which returns an object of state variables." + "setState(...): takes an object of state variables to update or a function which returns an object of state variables.", ); this.updater.enqueueSetState(this, e, n, "setState"); }; @@ -75,10 +65,7 @@ var Nc = an(($) => { function Hc() {} Hc.prototype = sa.prototype; function Hu(e, n, i) { - (this.props = e), - (this.context = n), - (this.refs = jc), - (this.updater = i || Bc); + (this.props = e), (this.context = n), (this.refs = jc), (this.updater = i || Bc); } var Wu = (Hu.prototype = new Hc()); Wu.constructor = Hu; @@ -94,9 +81,7 @@ var Nc = an(($) => { c = null, m = null; if (n != null) - for (s in (n.ref !== void 0 && (m = n.ref), - n.key !== void 0 && (c = "" + n.key), - n)) + for (s in (n.ref !== void 0 && (m = n.ref), n.key !== void 0 && (c = "" + n.key), n)) Wc.call(n, s) && !zc.hasOwnProperty(s) && (v[s] = n[s]); var S = arguments.length - 2; if (S === 1) v.children = i; @@ -104,8 +89,7 @@ var Nc = an(($) => { for (var E = Array(S), x = 0; x < S; x++) E[x] = arguments[x + 2]; v.children = E; } - if (e && e.defaultProps) - for (s in ((S = e.defaultProps), S)) v[s] === void 0 && (v[s] = S[s]); + if (e && e.defaultProps) for (s in ((S = e.defaultProps), S)) v[s] === void 0 && (v[s] = S[s]); return { $$typeof: Ai, type: e, @@ -139,9 +123,7 @@ var Nc = an(($) => { } var Lc = /\/+/g; function ju(e, n) { - return typeof e == "object" && e !== null && e.key != null - ? fp("" + e.key) - : n.toString(36); + return typeof e == "object" && e !== null && e.key != null ? fp("" + e.key) : n.toString(36); } function Ml(e, n, i, s, v) { var c = typeof e; @@ -174,14 +156,7 @@ var Nc = an(($) => { })) : v != null && ($u(v) && - (v = cp( - v, - i + - (!v.key || (m && m.key === v.key) - ? "" - : ("" + v.key).replace(Lc, "$&/") + "/") + - e - )), + (v = cp(v, i + (!v.key || (m && m.key === v.key) ? "" : ("" + v.key).replace(Lc, "$&/") + "/") + e)), n.push(v)), 1 ); @@ -192,17 +167,14 @@ var Nc = an(($) => { m += Ml(c, n, i, E, v); } else if (((E = up(e)), typeof E == "function")) - for (e = E.call(e), S = 0; !(c = e.next()).done; ) - (c = c.value), (E = s + ju(c, S++)), (m += Ml(c, n, i, E, v)); + for (e = E.call(e), S = 0; !(c = e.next()).done; ) (c = c.value), (E = s + ju(c, S++)), (m += Ml(c, n, i, E, v)); else if (c === "object") throw ( ((n = String(e)), Error( "Objects are not valid as a React child (found: " + - (n === "[object Object]" - ? "object with keys {" + Object.keys(e).join(", ") + "}" - : n) + - "). If you meant to render a collection of children, use an array instead." + (n === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : n) + + "). If you meant to render a collection of children, use an array instead.", )) ); return m; @@ -224,13 +196,11 @@ var Nc = an(($) => { (n = n()), n.then( function (i) { - (e._status === 0 || e._status === -1) && - ((e._status = 1), (e._result = i)); + (e._status === 0 || e._status === -1) && ((e._status = 1), (e._result = i)); }, function (i) { - (e._status === 0 || e._status === -1) && - ((e._status = 2), (e._result = i)); - } + (e._status === 0 || e._status === -1) && ((e._status = 2), (e._result = i)); + }, ), e._status === -1 && ((e._status = 0), (e._result = n)); } @@ -252,7 +222,7 @@ var Nc = an(($) => { function () { n.apply(this, arguments); }, - i + i, ); }, count: function (e) { @@ -272,10 +242,7 @@ var Nc = an(($) => { ); }, only: function (e) { - if (!$u(e)) - throw Error( - "React.Children.only expected to receive a single React element child." - ); + if (!$u(e)) throw Error("React.Children.only expected to receive a single React element child."); return e; }, }; @@ -288,11 +255,7 @@ var Nc = an(($) => { $.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = pp; $.cloneElement = function (e, n, i) { if (e == null) - throw Error( - "React.cloneElement(...): The argument must be a React element, but you passed " + - e + - "." - ); + throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + "."); var s = Uc({}, e.props), v = e.key, c = e.ref, @@ -304,10 +267,7 @@ var Nc = an(($) => { e.type && e.type.defaultProps) ) var S = e.type.defaultProps; - for (E in n) - Wc.call(n, E) && - !zc.hasOwnProperty(E) && - (s[E] = n[E] === void 0 && S !== void 0 ? S[E] : n[E]); + for (E in n) Wc.call(n, E) && !zc.hasOwnProperty(E) && (s[E] = n[E] === void 0 && S !== void 0 ? S[E] : n[E]); } var E = arguments.length - 2; if (E === 1) s.children = i; @@ -415,8 +375,7 @@ var Vc = an((N, Bl) => { (function () { "use strict"; typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == - "function" && + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); var e = "18.2.0", n = Symbol.for("react.element"), @@ -475,23 +434,13 @@ var Vc = an((N, Bl) => { (ft.ReactDebugCurrentFrame = _e), (ft.ReactCurrentActQueue = q); function Me(h) { { - for ( - var b = arguments.length, k = new Array(b > 1 ? b - 1 : 0), T = 1; - T < b; - T++ - ) - k[T - 1] = arguments[T]; + for (var b = arguments.length, k = new Array(b > 1 ? b - 1 : 0), T = 1; T < b; T++) k[T - 1] = arguments[T]; Er("warn", h, k); } } function B(h) { { - for ( - var b = arguments.length, k = new Array(b > 1 ? b - 1 : 0), T = 1; - T < b; - T++ - ) - k[T - 1] = arguments[T]; + for (var b = arguments.length, k = new Array(b > 1 ? b - 1 : 0), T = 1; T < b; T++) k[T - 1] = arguments[T]; Er("error", h, k); } } @@ -503,8 +452,7 @@ var Vc = an((N, Bl) => { var U = k.map(function (M) { return String(M); }); - U.unshift("Warning: " + b), - Function.prototype.apply.call(console[h], console, U); + U.unshift("Warning: " + b), Function.prototype.apply.call(console[h], console, U); } } var tt = {}; @@ -517,7 +465,7 @@ var Vc = an((N, Bl) => { B( "Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", b, - T + T, ), (tt[I] = !0); } @@ -540,16 +488,13 @@ var Vc = an((N, Bl) => { er = {}; Object.freeze(er); function re(h, b, k) { - (this.props = h), - (this.context = b), - (this.refs = er), - (this.updater = k || bt); + (this.props = h), (this.context = b), (this.refs = er), (this.updater = k || bt); } (re.prototype.isReactComponent = {}), (re.prototype.setState = function (h, b) { if (typeof h != "object" && typeof h != "function" && h != null) throw new Error( - "setState(...): takes an object of state variables to update or a function which returns an object of state variables." + "setState(...): takes an object of state variables to update or a function which returns an object of state variables.", ); this.updater.enqueueSetState(this, h, b, "setState"); }), @@ -570,11 +515,7 @@ var Vc = an((N, Bl) => { tr = function (h, b) { Object.defineProperty(re.prototype, h, { get: function () { - Me( - "%s(...) is deprecated in plain JavaScript React classes. %s", - b[0], - b[1] - ); + Me("%s(...) is deprecated in plain JavaScript React classes. %s", b[0], b[1]); }, }); }; @@ -583,15 +524,10 @@ var Vc = an((N, Bl) => { function nr() {} nr.prototype = re.prototype; function Rr(h, b, k) { - (this.props = h), - (this.context = b), - (this.refs = er), - (this.updater = k || bt); + (this.props = h), (this.context = b), (this.refs = er), (this.updater = k || bt); } var St = (Rr.prototype = new nr()); - (St.constructor = Rr), - Le(St, re.prototype), - (St.isPureReactComponent = !0); + (St.constructor = Rr), Le(St, re.prototype), (St.isPureReactComponent = !0); function so() { var h = { current: null }; return Object.seal(h), h; @@ -622,7 +558,7 @@ var Vc = an((N, Bl) => { return ( B( "The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", - ve(h) + ve(h), ), or(h) ); @@ -641,7 +577,7 @@ var Vc = an((N, Bl) => { if ( (typeof h.tag == "number" && B( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.", ), typeof h == "function") ) @@ -713,11 +649,10 @@ var Vc = an((N, Bl) => { ((lr = !0), B( "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", - b + b, )); }; - (k.isReactWarning = !0), - Object.defineProperty(h, "key", { get: k, configurable: !0 }); + (k.isReactWarning = !0), Object.defineProperty(h, "key", { get: k, configurable: !0 }); } function va(h, b) { var k = function () { @@ -725,25 +660,19 @@ var Vc = an((N, Bl) => { ((fn = !0), B( "%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", - b + b, )); }; - (k.isReactWarning = !0), - Object.defineProperty(h, "ref", { get: k, configurable: !0 }); + (k.isReactWarning = !0), Object.defineProperty(h, "ref", { get: k, configurable: !0 }); } function ga(h) { - if ( - typeof h.ref == "string" && - xe.current && - h.__self && - xe.current.stateNode !== h.__self - ) { + if (typeof h.ref == "string" && xe.current && h.__self && xe.current.stateNode !== h.__self) { var b = dt(xe.current.type); sr[b] || (B( 'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', b, - h.ref + h.ref, ), (sr[b] = !0)); } @@ -799,8 +728,7 @@ var Vc = an((N, Bl) => { for (T in ee) I[T] === void 0 && (I[T] = ee[T]); } if (U || M) { - var fe = - typeof h == "function" ? h.displayName || h.name || "Unknown" : h; + var fe = typeof h == "function" ? h.displayName || h.name || "Unknown" : h; U && po(I, fe), M && va(I, fe); } return dn(h, U, M, H, z, xe.current, I); @@ -811,11 +739,7 @@ var Vc = an((N, Bl) => { } function pn(h, b, k) { if (h == null) - throw new Error( - "React.cloneElement(...): The argument must be a React element, but you passed " + - h + - "." - ); + throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + h + "."); var T, I = Le({}, h.props), U = h.key, @@ -824,20 +748,16 @@ var Vc = an((N, Bl) => { z = h._source, Y = h._owner; if (b != null) { - pt(b) && ((M = b.ref), (Y = xe.current)), - ke(b) && (je(b.key), (U = "" + b.key)); + pt(b) && ((M = b.ref), (Y = xe.current)), ke(b) && (je(b.key), (U = "" + b.key)); var Q; h.type && h.type.defaultProps && (Q = h.type.defaultProps); for (T in b) - ir.call(b, T) && - !fo.hasOwnProperty(T) && - (b[T] === void 0 && Q !== void 0 ? (I[T] = Q[T]) : (I[T] = b[T])); + ir.call(b, T) && !fo.hasOwnProperty(T) && (b[T] === void 0 && Q !== void 0 ? (I[T] = Q[T]) : (I[T] = b[T])); } var K = arguments.length - 2; if (K === 1) I.children = k; else if (K > 1) { - for (var ee = Array(K), fe = 0; fe < K; fe++) - ee[fe] = arguments[fe + 2]; + for (var ee = Array(K), fe = 0; fe < K; fe++) ee[fe] = arguments[fe + 2]; I.children = ee; } return dn(h.type, U, M, H, z, Y, I); @@ -861,9 +781,7 @@ var Vc = an((N, Bl) => { return h.replace(hn, "$&/"); } function Ir(h, b) { - return typeof h == "object" && h !== null && h.key != null - ? (je(h.key), go("" + h.key)) - : b.toString(36); + return typeof h == "object" && h !== null && h.key != null ? (je(h.key), go("" + h.key)) : b.toString(36); } function ur(h, b, k, T, I) { var U = typeof h; @@ -897,14 +815,7 @@ var Vc = an((N, Bl) => { z != null && (wt(z) && (z.key && (!H || H.key !== z.key) && je(z.key), - (z = ma( - z, - k + - (z.key && (!H || H.key !== z.key) - ? vn("" + z.key) + "/" - : "") + - Y - ))), + (z = ma(z, k + (z.key && (!H || H.key !== z.key) ? vn("" + z.key) + "/" : "") + Y))), b.push(z)); return 1; } @@ -912,31 +823,22 @@ var Vc = an((N, Bl) => { ee, fe = 0, Se = T === "" ? Te : T + vo; - if (ye(h)) - for (var yr = 0; yr < h.length; yr++) - (K = h[yr]), (ee = Se + Ir(K, yr)), (fe += ur(K, b, k, ee, I)); + if (ye(h)) for (var yr = 0; yr < h.length; yr++) (K = h[yr]), (ee = Se + Ir(K, yr)), (fe += ur(K, b, k, ee, I)); else { var Pn = P(h); if (typeof Pn == "function") { var Wr = h; Pn === Wr.entries && - (xt || - Me( - "Using Maps as children is not supported. Use an array of keyed ReactElements instead." - ), + (xt || Me("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), (xt = !0)); for (var Co = Pn.call(Wr), zr, Oa = 0; !(zr = Co.next()).done; ) - (K = zr.value), - (ee = Se + Ir(K, Oa++)), - (fe += ur(K, b, k, ee, I)); + (K = zr.value), (ee = Se + Ir(K, Oa++)), (fe += ur(K, b, k, ee, I)); } else if (U === "object") { var Eo = String(h); throw new Error( "Objects are not valid as a React child (found: " + - (Eo === "[object Object]" - ? "object with keys {" + Object.keys(h).join(", ") + "}" - : Eo) + - "). If you meant to render a collection of children, use an array instead." + (Eo === "[object Object]" ? "object with keys {" + Object.keys(h).join(", ") + "}" : Eo) + + "). If you meant to render a collection of children, use an array instead.", ); } } @@ -968,7 +870,7 @@ var Vc = an((N, Bl) => { function () { b.apply(this, arguments); }, - k + k, ); } function mo(h) { @@ -979,10 +881,7 @@ var Vc = an((N, Bl) => { ); } function Ut(h) { - if (!wt(h)) - throw new Error( - "React.Children.only expected to receive a single React element child." - ); + if (!wt(h)) throw new Error("React.Children.only expected to receive a single React element child."); return h; } function gn(h) { @@ -1009,7 +908,7 @@ var Vc = an((N, Bl) => { T || ((T = !0), B( - "Rendering is not supported and will be removed in a future major release. Did you mean to render instead?" + "Rendering is not supported and will be removed in a future major release. Did you mean to render instead?", )), b.Provider ); @@ -1048,7 +947,7 @@ var Vc = an((N, Bl) => { k || ((k = !0), B( - "Rendering is not supported and will be removed in a future major release. Did you mean to render instead?" + "Rendering is not supported and will be removed in a future major release. Did you mean to render instead?", )), b.Consumer ); @@ -1062,7 +961,7 @@ var Vc = an((N, Bl) => { I || (Me( "Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", - M + M, ), (I = !0)); }, @@ -1093,7 +992,7 @@ var Vc = an((N, Bl) => { var M = h; (M._status = Sa), (M._result = U); } - } + }, ), h._status === jt) ) { @@ -1112,7 +1011,7 @@ Your code should look like: const MyComponent = lazy(() => import('./MyComponent')) Did you accidentally put curly braces around the import?`, - I + I, ), "default" in I || B( @@ -1120,7 +1019,7 @@ Did you accidentally put curly braces around the import?`, Your code should look like: const MyComponent = lazy(() => import('./MyComponent'))`, - I + I, ), I.default ); @@ -1139,7 +1038,7 @@ Your code should look like: }, set: function (U) { B( - "React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it." + "React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.", ), (T = U), Object.defineProperty(k, "defaultProps", { enumerable: !0 }); @@ -1152,7 +1051,7 @@ Your code should look like: }, set: function (U) { B( - "React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it." + "React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.", ), (I = U), Object.defineProperty(k, "propTypes", { enumerable: !0 }); @@ -1165,25 +1064,22 @@ Your code should look like: function ka(h) { h != null && h.$$typeof === D ? B( - "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." + "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).", ) : typeof h != "function" - ? B( - "forwardRef requires a render function but was given %s.", - h === null ? "null" : typeof h - ) + ? B("forwardRef requires a render function but was given %s.", h === null ? "null" : typeof h) : h.length !== 0 && h.length !== 2 && B( "forwardRef render functions accept exactly two parameters: props and ref. %s", h.length === 1 ? "Did you forget to use the ref parameter?" - : "Any additional parameter will be undefined." + : "Any additional parameter will be undefined.", ), h != null && (h.defaultProps != null || h.propTypes != null) && B( - "forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?" + "forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?", ); var b = { $$typeof: E, render: h }; { @@ -1231,10 +1127,7 @@ Your code should look like: } function Ta(h, b) { yo(h) || - B( - "memo: The first argument must be a component. Instead received: %s", - h === null ? "null" : typeof h - ); + B("memo: The first argument must be a component. Instead received: %s", h === null ? "null" : typeof h); var k = { $$typeof: D, type: h, compare: b === void 0 ? null : b }; { var T; @@ -1269,11 +1162,11 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f var k = h._context; k.Consumer === h ? B( - "Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?" + "Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?", ) : k.Provider === h && B( - "Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?" + "Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?", ); } return b.useContext(h); @@ -1389,10 +1282,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f groupEnd: Le({}, h, { value: Et }), }); } - Tt < 0 && - B( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); + Tt < 0 && B("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Ee = ft.ReactCurrentDispatcher, @@ -1489,9 +1379,7 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f ` ` + H[Y].replace(" at new ", " at "); return ( - h.displayName && - K.includes("") && - (K = K.replace("", h.displayName)), + h.displayName && K.includes("") && (K = K.replace("", h.displayName)), typeof h == "function" && Br.set(h, K), K ); @@ -1566,18 +1454,11 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof h[M] + - "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.", ); throw ((z.name = "Invariant Violation"), z); } - H = h[M]( - b, - M, - T, - k, - null, - "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED" - ); + H = h[M](b, M, T, k, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (Y) { H = Y; } @@ -1589,15 +1470,12 @@ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and f T || "React class", k, M, - typeof H + typeof H, ), pr(null)), H instanceof Error && !(H.message in Ce) && - ((Ce[H.message] = !0), - pr(I), - B("Failed %s type: %s", k, H.message), - pr(null)); + ((Ce[H.message] = !0), pr(I), B("Failed %s type: %s", k, H.message), pr(null)); } } } @@ -1665,15 +1543,12 @@ Check the top-level render call using <` + if (!Ur[k]) { Ur[k] = !0; var T = ""; - h && - h._owner && - h._owner !== xe.current && - (T = " It was passed a child from " + dt(h._owner.type) + "."), + h && h._owner && h._owner !== xe.current && (T = " It was passed a child from " + dt(h._owner.type) + "."), It(h), B( 'Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', k, - T + T, ), It(null); } @@ -1690,8 +1565,7 @@ Check the top-level render call using <` + else if (h) { var I = P(h); if (typeof I == "function" && I !== h.entries) - for (var U = I.call(h), M; !(M = U.next()).done; ) - wt(M.value) && Je(M.value, b); + for (var U = I.call(h), M; !(M = U.next()).done; ) wt(M.value) && Je(M.value, b); } } } @@ -1701,11 +1575,7 @@ Check the top-level render call using <` + if (b == null || typeof b == "string") return; var k; if (typeof b == "function") k = b.propTypes; - else if ( - typeof b == "object" && - (b.$$typeof === E || b.$$typeof === D) - ) - k = b.propTypes; + else if (typeof b == "object" && (b.$$typeof === E || b.$$typeof === D)) k = b.propTypes; else return; if (k) { var T = dt(b); @@ -1715,13 +1585,13 @@ Check the top-level render call using <` + var I = dt(b); B( "Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", - I || "Unknown" + I || "Unknown", ); } typeof b.getDefaultProps == "function" && !b.getDefaultProps.isReactClassApproved && B( - "getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead." + "getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.", ); } } @@ -1733,26 +1603,20 @@ Check the top-level render call using <` + It(h), B( "Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", - T + T, ), It(null); break; } } - h.ref !== null && - (It(h), - B("Invalid attribute `ref` supplied to `React.Fragment`."), - It(null)); + h.ref !== null && (It(h), B("Invalid attribute `ref` supplied to `React.Fragment`."), It(null)); } } function kn(h, b, k) { var T = yo(h); if (!T) { var I = ""; - (h === void 0 || - (typeof h == "object" && - h !== null && - Object.keys(h).length === 0)) && + (h === void 0 || (typeof h == "object" && h !== null && Object.keys(h).length === 0)) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var U = vt(b); @@ -1764,13 +1628,12 @@ Check the top-level render call using <` + ? (M = "array") : h !== void 0 && h.$$typeof === n ? ((M = "<" + (dt(h.type) || "Unknown") + " />"), - (I = - " Did you accidentally export a JSX literal instead of a component?")) + (I = " Did you accidentally export a JSX literal instead of a component?")) : (M = typeof h), B( "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", M, - I + I, ); } var H = ho.apply(this, arguments); @@ -1786,15 +1649,13 @@ Check the top-level render call using <` + Tn || ((Tn = !0), Me( - "React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead." + "React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.", )), Object.defineProperty(b, "type", { enumerable: !1, get: function () { return ( - Me( - "Factory.type is deprecated. Access the class directly before passing it to createFactory." - ), + Me("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", { value: h }), h ); @@ -1804,12 +1665,7 @@ Check the top-level render call using <` + ); } function ko(h, b, k) { - for ( - var T = pn.apply(this, arguments), I = 2; - I < arguments.length; - I++ - ) - xn(arguments[I], T.type); + for (var T = pn.apply(this, arguments), I = 2; I < arguments.length; I++) xn(arguments[I], T.type); return gr(T), T; } function To(h, b) { @@ -1824,7 +1680,7 @@ Check the top-level render call using <` + var I = T._updatedFibers.size; I > 10 && Me( - "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." + "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.", ), T._updatedFibers.clear(); } @@ -1844,7 +1700,7 @@ Check the top-level render call using <` + ((Cn = !0), typeof MessageChannel > "u" && B( - "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning." + "This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.", )); var U = new MessageChannel(); (U.port1.onmessage = I), U.port2.postMessage(void 0); @@ -1861,11 +1717,7 @@ Check the top-level render call using <` + var k = q.isBatchingLegacy, T; try { - if ( - ((q.isBatchingLegacy = !0), - (T = h()), - !k && q.didScheduleLegacyUpdate) - ) { + if (((q.isBatchingLegacy = !0), (T = h()), !k && q.didScheduleLegacyUpdate)) { var I = q.current; I !== null && ((q.didScheduleLegacyUpdate = !1), Rn(I)); } @@ -1874,11 +1726,7 @@ Check the top-level render call using <` + } finally { q.isBatchingLegacy = k; } - if ( - T !== null && - typeof T == "object" && - typeof T.then == "function" - ) { + if (T !== null && typeof T == "object" && typeof T.then == "function") { var U = T, M = !1, H = { @@ -1890,7 +1738,7 @@ Check the top-level render call using <` + }, function (Se) { mr(b), fe(Se); - } + }, ); }, }; @@ -1903,7 +1751,7 @@ Check the top-level render call using <` + M || ((Hr = !0), B( - "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);" + "You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);", )); }), H @@ -1915,9 +1763,7 @@ Check the top-level render call using <` + Y !== null && (Rn(Y), (q.current = null)); var Q = { then: function (ee, fe) { - q.current === null - ? ((q.current = []), Be(z, ee, fe)) - : ee(z); + q.current === null ? ((q.current = []), Be(z, ee, fe)) : ee(z); }, }; return Q; @@ -1935,7 +1781,7 @@ Check the top-level render call using <` + function mr(h) { h !== gt - 1 && B( - "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. " + "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ", ), (gt = h); } @@ -2013,20 +1859,15 @@ Check the top-level render call using <` + (N.useTransition = Ar), (N.version = e), typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && - typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == - "function" && - __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop( - new Error() - ); + typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); })(); }); var ua = an((_v, Nu) => { "use strict"; - process.env.NODE_ENV === "production" - ? (Nu.exports = Nc()) - : (Nu.exports = Vc()); + process.env.NODE_ENV === "production" ? (Nu.exports = Nc()) : (Nu.exports = Vc()); }); -var Wf = an((ca) => { +var Wf = an(ca => { "use strict"; var pf = ua(), hp = require("stream"), @@ -2036,13 +1877,7 @@ var Wf = an((ca) => { Yc = {}, Gc = {}; function hf(e) { - return qe.call(Gc, e) - ? !0 - : qe.call(Yc, e) - ? !1 - : vp.test(e) - ? (Gc[e] = !0) - : ((Yc[e] = !0), !1); + return qe.call(Gc, e) ? !0 : qe.call(Yc, e) ? !1 : vp.test(e) ? (Gc[e] = !0) : ((Yc[e] = !0), !1); } function Ge(e, n, i, s, v, c, m) { (this.acceptsBooleans = n === 2 || n === 3 || n === 4), @@ -2072,12 +1907,7 @@ var Wf = an((ca) => { ["contentEditable", "draggable", "spellCheck", "value"].forEach(function (e) { Fe[e] = new Ge(e, 2, !1, e.toLowerCase(), null, !1, !1); }); - [ - "autoReverse", - "externalResourcesRequired", - "focusable", - "preserveAlpha", - ].forEach(function (e) { + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function (e) { Fe[e] = new Ge(e, 2, !1, e, null, !1, !1); }); "allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope" @@ -2107,12 +1937,10 @@ var Wf = an((ca) => { var n = e.replace(qu, ec); Fe[n] = new Ge(n, 1, !1, e, null, !1, !1); }); - "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type" - .split(" ") - .forEach(function (e) { - var n = e.replace(qu, ec); - Fe[n] = new Ge(n, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1); - }); + "xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function (e) { + var n = e.replace(qu, ec); + Fe[n] = new Ge(n, 1, !1, e, "http://www.w3.org/1999/xlink", !1, !1); + }); ["xml:base", "xml:lang", "xml:space"].forEach(function (e) { var n = e.replace(qu, ec); Fe[n] = new Ge(n, 1, !1, e, "http://www.w3.org/XML/1998/namespace", !1, !1); @@ -2120,15 +1948,7 @@ var Wf = an((ca) => { ["tabIndex", "crossOrigin"].forEach(function (e) { Fe[e] = new Ge(e, 1, !1, e.toLowerCase(), null, !1, !1); }); - Fe.xlinkHref = new Ge( - "xlinkHref", - 1, - !1, - "xlink:href", - "http://www.w3.org/1999/xlink", - !0, - !1 - ); + Fe.xlinkHref = new Ge("xlinkHref", 1, !1, "xlink:href", "http://www.w3.org/1999/xlink", !0, !1); ["src", "href", "action", "formAction"].forEach(function (e) { Fe[e] = new Ge(e, 1, !1, e.toLowerCase(), null, !0, !0); }); @@ -2251,7 +2071,7 @@ var Wf = an((ca) => { function vf(e, n, i) { if (typeof i != "object") throw Error( - "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX." + "The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.", ); n = !0; for (var s in i) @@ -2264,20 +2084,11 @@ var Wf = an((ca) => { } else { c = s; var m = Xc.get(c); - m !== void 0 || - ((m = Ye(c.replace(yp, "-$1").toLowerCase().replace(bp, "-ms-"))), - Xc.set(c, m)), + m !== void 0 || ((m = Ye(c.replace(yp, "-$1").toLowerCase().replace(bp, "-ms-"))), Xc.set(c, m)), (c = m), - (v = - typeof v == "number" - ? v === 0 || qe.call(Hl, s) - ? "" + v - : v + "px" - : Ye(("" + v).trim())); + (v = typeof v == "number" ? (v === 0 || qe.call(Hl, s) ? "" + v : v + "px") : Ye(("" + v).trim())); } - n - ? ((n = !1), e.push(' style="', c, ":", v)) - : e.push(";", c, ":", v); + n ? ((n = !1), e.push(' style="', c, ":", v)) : e.push(";", c, ":", v); } } n || e.push('"'); @@ -2294,11 +2105,7 @@ var Wf = an((ca) => { case "suppressHydrationWarning": return; } - if ( - !(2 < i.length) || - (i[0] !== "o" && i[0] !== "O") || - (i[1] !== "n" && i[1] !== "N") - ) { + if (!(2 < i.length) || (i[0] !== "o" && i[0] !== "O") || (i[1] !== "n" && i[1] !== "N")) { if (((n = Fe.hasOwnProperty(i) ? Fe[i] : null), n !== null)) { switch (typeof s) { case "function": @@ -2312,9 +2119,7 @@ var Wf = an((ca) => { s && e.push(" ", i, '=""'); break; case 4: - s === !0 - ? e.push(" ", i, '=""') - : s !== !1 && e.push(" ", i, '="', Ye(s), '"'); + s === !0 ? e.push(" ", i, '=""') : s !== !1 && e.push(" ", i, '="', Ye(s), '"'); break; case 5: isNaN(s) || e.push(" ", i, '="', Ye(s), '"'); @@ -2331,11 +2136,7 @@ var Wf = an((ca) => { case "symbol": return; case "boolean": - if ( - ((n = i.toLowerCase().slice(0, 5)), - n !== "data-" && n !== "aria-") - ) - return; + if (((n = i.toLowerCase().slice(0, 5)), n !== "data-" && n !== "aria-")) return; } e.push(" ", i, '="', Ye(s), '"'); } @@ -2343,13 +2144,10 @@ var Wf = an((ca) => { } function Wl(e, n, i) { if (n != null) { - if (i != null) - throw Error( - "Can only set one of `children` or `props.dangerouslySetInnerHTML`." - ); + if (i != null) throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`."); if (typeof n != "object" || !("__html" in n)) throw Error( - "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information." + "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.", ); (n = n.__html), n != null && e.push("" + n); } @@ -2382,9 +2180,7 @@ var Wf = an((ca) => { it(e, s, c, m); } } - return ( - e.push(">"), Wl(e, v, i), typeof i == "string" ? (e.push(Ye(i)), null) : i - ); + return e.push(">"), Wl(e, v, i), typeof i == "string" ? (e.push(Ye(i)), null) : i; } var xp = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/, Zc = new Map(); @@ -2471,19 +2267,13 @@ var Wf = an((ca) => { m = E; break; case "dangerouslySetInnerHTML": - throw Error( - "`dangerouslySetInnerHTML` does not make sense on