prefix stringlengths 512 512 | suffix stringlengths 256 256 | middle stringlengths 14 229 | meta dict |
|---|---|---|---|
t, a, r) {
return {
getMetadata: function getMetadata(o) {
old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o);
var i = e[o];
if (void 0 !== i) if (1 === t) {
var n = i["public"];
if (void 0 !== n) return n[a];
} else if (2 === t) {
var l = i["private"... | } else if (2 === t) {
var s = n.priv;
void 0 === s && (s = n["private"] = new Map()), s.set(a, i);
} else n.constructor = i;
}
};
}
function old_convertMetadataMapToFinal(e, t) {
var a = e[Symbol.metadata || Symbol["for"](" | d_assertNotFinished(r, "setMetadata"), old_assertMetadataKey(o);
var n = e[o];
if (void 0 === n && (n = e[o] = {}), 1 === t) {
var l = n["public"];
void 0 === l && (l = n["public"] = {}), l[a] = i;
| {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/applyDecs.js",
"language": "javascript",
"file_size": 8360,
"cut_index": 716,
"middle_length": 229
} |
&& "function" === typeof moduleExports.then)
if ("fulfilled" === moduleExports.status)
moduleExports = moduleExports.value;
else throw moduleExports.reason;
if ("*" === metadata[2]) return moduleExports;
if ("" === metadata[2])
return moduleExports.__esModule ? moduleExports.default : moduleExport... | JSCompiler_temp_const$jscomp$1 = moduleLoading.prefix + chunks[i];
var JSCompiler_inline_result = moduleLoading.crossOrigin;
JSCompiler_inline_result =
"string" === typeof JSCompiler_inline_result
? "use-credentials" === JSCom | moduleLoading)
for (var i = 0; i < chunks.length; i++) {
var nonce = nonce$jscomp$0,
JSCompiler_temp_const = ReactDOMSharedInternals.d,
JSCompiler_temp_const$jscomp$0 = JSCompiler_temp_const.X,
| {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.production.js",
"language": "javascript",
"file_size": 70776,
"cut_index": 3790,
"middle_length": 229
} |
rror("attempted to call addInitializer after decoration was finished");
}(t), assertCallable(r, "An initializer"), e.push(r);
};
}
function memberDec(e, t, r, a, n, i, s, o) {
var c;
switch (n) {
case 1:
c = "accessor";
break;
case 2:
c = "method";
break... | (l = function l() {
return this[t];
}, u = function u(e) {
this[t] = e;
}) : 2 === n ? l = function l() {
return r.value;
} : (1 !== n && 3 !== n || (l = function l() {
return r.get.call(this);
}), 1 !== n && 4 !== n | c,
name: s ? "#" + t : t,
"static": i,
"private": s
},
p = {
v: !1
};
0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/applyDecs2203.js",
"language": "javascript",
"file_size": 6131,
"cut_index": 716,
"middle_length": 229
} |
ateAddInitializerMethod(e, t) {
return function (r) {
!function (e, t) {
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
}(t), assertCallable(r, "An initializer"), e.push(r);
};
}
function memberDec(e, t, r, n, a, i, o, s) {
var c;
switch (... | !1
};
0 !== a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() {
return this[t];
}, u = function u(e) {
this[t] = e;
}) : 2 === a ? l = function l() {
re | r";
break;
default:
c = "field";
}
var l,
u,
f = {
kind: c,
name: o ? "#" + t : toPropertyKey(t),
"static": i,
"private": o
},
p = {
v: | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/applyDecs2203R.js",
"language": "javascript",
"file_size": 6586,
"cut_index": 716,
"middle_length": 229
} |
tion applyDecs2301Factory() {
function createAddInitializerMethod(e, t) {
return function (r) {
!function (e, t) {
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
}(t), assertCallable(r, "An initializer"), e.push(r);
};
}
function assertInstanceI... | = "field";
}
var l,
f,
p = {
kind: u,
name: s ? "#" + t : toPropertyKey(t),
"static": i,
"private": s
},
d = {
v: !1
};
if (0 !== a && (p.addInitializer = createAddInitialize | case 1:
u = "accessor";
break;
case 2:
u = "method";
break;
case 3:
u = "getter";
break;
case 4:
u = "setter";
break;
default:
u | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/applyDecs2301.js",
"language": "javascript",
"file_size": 7489,
"cut_index": 716,
"middle_length": 229
} |
{},
target.$$id,
!0
),
proxy = new Proxy(clientReference, proxyHandlers$1);
target.status = "fulfilled";
target.value = proxy;
return (target.then = registerClientReferenceImpl(
function (resolve) {
r... | nceImpl(
function () {
throw Error(
"Attempted to call " +
String(name) +
"() from the server but " +
String(name) +
" is on the client. It's not possible t | "Cannot read Symbol exports. Only named exports are supported on a client module imported on the server."
);
clientReference = target[name];
clientReference ||
((clientReference = registerClientRefere | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.development.js",
"language": "javascript",
"file_size": 254455,
"cut_index": 7068,
"middle_length": 229
} |
=>{var e={154:function(e){(function(r,t){if(true){e.exports=t(r)}else{}})(typeof global!="undefined"?global:this,(function(e){if(e.CSS&&e.CSS.escape){return e.CSS.escape}var cssEscape=function(e){if(arguments.length==0){throw new TypeError("`CSS.escape` requires an argument.")}var r=String(e);var t=r.length;var n=-1;va... | cssEscape}))}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var a=r[t]={exports:{}};var i=true;try{e[t].call(a.exports,a,a.exports,__nccwpck_require__);i=false}finally{if(i)delete r[t]}return a.exports}if(typeof __ | tinue}if(n==0&&t==1&&a==45){i+="\\"+r.charAt(n);continue}if(a>=128||a==45||a==95||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122){i+=r.charAt(n);continue}i+="\\"+r.charAt(n)}return i};if(!e.CSS){e.CSS={}}e.CSS.escape=cssEscape;return | {
"filepath": "packages/next/src/compiled/css.escape/css.escape.js",
"language": "javascript",
"file_size": 1123,
"cut_index": 515,
"middle_length": 229
} |
;
function checkDCE() {
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
) {
return;
}
if (process.env.NODE_ENV !== 'production') {
// This branch is unreachable because this... | Verify that the code above has been dead code eliminated (DCE'd).
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
} catch (err) {
// DevTools shouldn't crash React, no matter what.
// We should still report in case we break this code.
| .
// Don't change the message. React DevTools relies on it. Also make sure
// this message doesn't occur elsewhere in this function, or it will cause
// a false positive.
throw new Error('^_^');
}
try {
// | {
"filepath": "packages/next/src/compiled/react-dom-experimental/client.js",
"language": "javascript",
"file_size": 1373,
"cut_index": 524,
"middle_length": 229
} |
;
function checkDCE() {
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
) {
return;
}
if (process.env.NODE_ENV !== 'production') {
// This branch is unreachable because this... | Verify that the code above has been dead code eliminated (DCE'd).
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
} catch (err) {
// DevTools shouldn't crash React, no matter what.
// We should still report in case we break this code.
| .
// Don't change the message. React DevTools relies on it. Also make sure
// this message doesn't occur elsewhere in this function, or it will cause
// a false positive.
throw new Error('^_^');
}
try {
// | {
"filepath": "packages/next/src/compiled/react-dom-experimental/index.js",
"language": "javascript",
"file_size": 1359,
"cut_index": 524,
"middle_length": 229
} |
attributeName] = !0;
return !1;
}
var unitlessNumbers = new Set(
"animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gr... | itive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink Webk | trokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPos | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js",
"language": "javascript",
"file_size": 260695,
"cut_index": 7068,
"middle_length": 229
} |
es: { default: {}, anonymous: {}, credentials: {} },
imageResources: {},
styleResources: {},
scriptResources: {},
moduleUnknownResources: {},
moduleScriptResources: {}
};
}
function createFormatContext(
insertionMode,
selectedValue,
tagScope,
viewTransition
) {
return {
insertionMode... | value ? props.value : props.defaultValue,
subtreeScope,
null
);
case "svg":
return createFormatContext(4, null, subtreeScope, null);
case "picture":
return createFormatContext(2, null, subtreeScope | 2, null);
| cope = parentContext.tagScope & -25;
switch (type) {
case "noscript":
return createFormatContext(2, null, subtreeScope | 1, null);
case "select":
return createFormatContext(
2,
null != props. | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js",
"language": "javascript",
"file_size": 266477,
"cut_index": 13624,
"middle_length": 229
} |
match) {
var html = "",
index,
lastIndex = 0;
for (index = match.index; index < text.length; index++) {
switch (text.charCodeAt(index)) {
case 34:
match = """;
break;
case 38:
match = "&";
break;
case 39:
match ... | uppercasePattern = /([A-Z])/g,
msPattern = /^ms-/,
isJavaScriptProtocol =
/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;
function sanitizeURL(url) {
return isJavaScriptP | }
lastIndex !== index && (html += text.slice(lastIndex, index));
lastIndex = index + 1;
html += match;
}
text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
}
return text;
}
var | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js",
"language": "javascript",
"file_size": 289955,
"cut_index": 13624,
"middle_length": 229
} |
{}
},
charsetChunks: [],
viewportChunks: [],
hoistableChunks: [],
preconnects: new Set(),
fontPreloads: new Set(),
highImagePreloads: new Set(),
styles: new Map(),
bootstrapScripts: new Set(),
scripts: new Set(),
bulkPreloads: new Set(),
preloads: {
images: new Map... | ptWithNonce]),
(idPrefix = inlineStyleWithNonce = void 0),
(externalRuntimeScript = {
rel: "preload",
as: "script",
fetchPriority: "low",
nonce: nonce
}),
"string" === typeof importMap | oist: !1
};
if (void 0 !== bootstrapScripts)
for (
inlineScriptWithNonce = 0;
inlineScriptWithNonce < bootstrapScripts.length;
inlineScriptWithNonce++
)
(importMap = bootstrapScripts[inlineScri | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js",
"language": "javascript",
"file_size": 290843,
"cut_index": 13624,
"middle_length": 229
} |
return !0;
if (hasOwnProperty.call(illegalAttributeNameCache, attributeName))
return !1;
if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
return (validatedAttributeNameCache[attributeName] = !0);
illegalAttributeNameCache[attributeName] = !0;
console.error("Invalid attribu... | handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."
)
: console.error(
"You provided a `value` prop to a form field without an `onChange` handler. | Input ||
props.readOnly ||
props.disabled ||
null == props.value ||
("select" === tagName
? console.error(
"You provided a `value` prop to a form field without an `onChange` | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js",
"language": "javascript",
"file_size": 462987,
"cut_index": 13624,
"middle_length": 229
} |
JSCompiler_inline_result = !0;
}
JSCompiler_inline_result &&
(console.error(
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
("function" === typeof Symbol &&
Symbol.toStringTag &&
... | ont" === as) return "";
if ("string" === typeof input)
return "use-credentials" === input ? input : "";
}
function getValueDescriptorExpectingObjectForWarning(thing) {
return null === thing
? "`null`"
: void 0 == | $$typeof: REACT_PORTAL_TYPE,
key: key,
children: children,
containerInfo: containerInfo,
implementation: implementation
};
}
function getCrossOriginStringAs(as, input) {
if ("f | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js",
"language": "javascript",
"file_size": 17960,
"cut_index": 1331,
"middle_length": 229
} |
font" === as) return "";
if ("string" === typeof input)
return "use-credentials" === input ? input : "";
}
function getValueDescriptorExpectingObjectForWarning(thing) {
return null === thing
? "`null`"
: void 0 === thing
? "`undefined`"
: "" === thing
... | typeof thing
? "`" + thing + "`"
: 'something with type "' + typeof thing + '"';
}
var React = require("next/dist/compiled/react-experimental"),
Internals = {
d: {
f: noop,
r: funct | ? "`null`"
: void 0 === thing
? "`undefined`"
: "" === thing
? "an empty string"
: "string" === typeof thing
? JSON.stringify(thing)
: "number" === | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js",
"language": "javascript",
"file_size": 14274,
"cut_index": 921,
"middle_length": 229
} |
r s;
if (process.env.NODE_ENV === 'production') {
s = require('./cjs/react-server-dom-turbopack-server.node.production.js');
} else {
s = require('./cjs/react-server-dom-turbopack-server.node.development.js');
}
exports.renderToReadableStream = s.renderToReadableStream;
exports.renderToPipeableStream = s.renderToP... | s.decodeFormState;
exports.registerServerReference = s.registerServerReference;
exports.registerClientReference = s.registerClientReference;
exports.createClientModuleProxy = s.createClientModuleProxy;
exports.createTemporaryReferenceSet = s.createTempora | deAction = s.decodeAction;
exports.decodeFormState = | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/server.node.js",
"language": "javascript",
"file_size": 853,
"cut_index": 529,
"middle_length": 52
} |
lue);
return "Object" === value ? "{...}" : value;
case "function":
return value.$$typeof === CLIENT_REFERENCE_TAG
? "client"
: (value = value.displayName || value.name)
? "function " + value
: "function";
default:
return ... | peof) {
case REACT_FORWARD_REF_TYPE:
return describeElementType(type.render);
case REACT_MEMO_TYPE:
return describeElementType(type.type);
case REACT_LAZY_TYPE:
var payload = type._payload;
| "Suspense";
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
case REACT_VIEW_TRANSITION_TYPE:
return "ViewTransition";
}
if ("object" === typeof type)
switch (type.$$ty | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js",
"language": "javascript",
"file_size": 192987,
"cut_index": 7068,
"middle_length": 229
} |
if (4 === metadata.length && "function" === typeof moduleExports.then)
if ("fulfilled" === moduleExports.status)
moduleExports = moduleExports.value;
else throw moduleExports.reason;
if ("*" === metadata[2]) return moduleExports;
if ("" === metadata[2])
return moduleExports.__esModule ? moduleExpo... | ler_temp_const.X,
JSCompiler_temp_const$jscomp$1 = moduleLoading.prefix + chunks[i];
var JSCompiler_inline_result = moduleLoading.crossOrigin;
JSCompiler_inline_result =
"string" === typeof JSCompiler_inline_result
? " | jscomp$0) {
if (null !== moduleLoading)
for (var i = 0; i < chunks.length; i++) {
var nonce = nonce$jscomp$0,
JSCompiler_temp_const = ReactDOMSharedInternals.d,
JSCompiler_temp_const$jscomp$0 = JSCompi | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.production.js",
"language": "javascript",
"file_size": 75418,
"cut_index": 3790,
"middle_length": 229
} |
x &&
((name = modulePath.slice(idx + 1)),
(resolvedModuleData = config[modulePath.slice(0, idx)]));
if (!resolvedModuleData)
throw Error(
'Could not find the module "' +
modulePath +
'" in the React Client Manifest. This is probably a bug in ... | entReference.$$async
? [resolvedModuleData.id, resolvedModuleData.chunks, name, 1]
: [resolvedModuleData.id, resolvedModuleData.chunks, name];
}
function preload(href, as, options) {
if ("string" === typeof href) {
var | modulePath +
'" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.'
);
return !0 === resolvedModuleData.async || !0 === cli | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.browser.development.js",
"language": "javascript",
"file_size": 218450,
"cut_index": 7068,
"middle_length": 229
} |
turn Object.defineProperties(proxyImplementation, {
$$typeof: { value: CLIENT_REFERENCE_TAG$1 },
$$id: { value: id },
$$async: { value: async }
});
}
var FunctionBind = Function.prototype.bind,
ArraySlice = Array.prototype.slice;
function bind() {
var newFn = FunctionBind.apply(this, arguments);
if ... | newFn;
}
var serverReferenceToString = {
value: function () {
return "function () { [omitted code] }";
},
configurable: !0,
writable: !0
},
PROMISE_PROTOTYPE = Promise.prototype,
deepProxyHandlers = {
get: function (target, | : this.$$bound ? this.$$bound.concat(args) : args };
return Object.defineProperties(newFn, {
$$typeof: $$typeof,
$$id: $$id,
$$bound: args,
bind: { value: bind, configurable: !0 }
});
}
return | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.production.js",
"language": "javascript",
"file_size": 121661,
"cut_index": 3790,
"middle_length": 229
} |
;
function checkDCE() {
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
) {
return;
}
if (process.env.NODE_ENV !== 'production') {
// This branch is unreachable because this... | Verify that the code above has been dead code eliminated (DCE'd).
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
} catch (err) {
// DevTools shouldn't crash React, no matter what.
// We should still report in case we break this code.
| .
// Don't change the message. React DevTools relies on it. Also make sure
// this message doesn't occur elsewhere in this function, or it will cause
// a false positive.
throw new Error('^_^');
}
try {
// | {
"filepath": "packages/next/src/compiled/react-dom-experimental/profiling.js",
"language": "javascript",
"file_size": 1378,
"cut_index": 524,
"middle_length": 229
} |
props) {
hasReadOnlyValue[props.type] ||
props.onChange ||
props.onInput ||
props.readOnly ||
props.disabled ||
null == props.value ||
("select" === tagName
? console.error(
"You provided a `value` prop to a form field without an `onChange` h... | hange ||
props.readOnly ||
props.disabled ||
null == props.checked ||
console.error(
"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field sh | a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."
));
props.onC | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js",
"language": "javascript",
"file_size": 425659,
"cut_index": 13624,
"middle_length": 229
} |
});
}
function typeName(value) {
return (
("function" === typeof Symbol &&
Symbol.toStringTag &&
value[Symbol.toStringTag]) ||
value.constructor.name ||
"Object"
);
}
function willCoercionThrow(value) {
try {
return testStringCoercion... | attributeName,
typeName(value)
),
testStringCoercion(value)
);
}
function checkCSSPropertyStringCoercion(value, propName) {
if (willCoercionThrow(value))
return (
console.error(
| buteName) {
if (willCoercionThrow(value))
return (
console.error(
"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
| {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js",
"language": "javascript",
"file_size": 457231,
"cut_index": 13624,
"middle_length": 229
} |
= stringToPrecomputedChunk(' nonce="'),
scriptIntegirty = stringToPrecomputedChunk(' integrity="'),
scriptCrossOrigin = stringToPrecomputedChunk(' crossorigin="'),
endAsyncScript = stringToPrecomputedChunk(' async="">\x3c/script>'),
startInlineStyle = stringToPrecomputedChunk("<style"),
scriptRegex = /(<\/|<)... |
var nonceScript = "string" === typeof nonce ? nonce : nonce && nonce.script,
inlineScriptWithNonce =
void 0 === nonceScript
? startInlineScript
: stringToPrecomputedChunk(
'<script nonce="' + escapeTextForBrowser(no | '<script type="importmap">'
),
importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
function createRenderState(
resumableState,
nonce,
externalRuntimeConfig,
importMap,
onHeaders,
maxHeadersLength
) { | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js",
"language": "javascript",
"file_size": 304258,
"cut_index": 13624,
"middle_length": 229
} |
and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
var React = require("next/dist/compiled/react-experimental");
function noop() {}
var Internals = {
d: {
f: noop,
r: function () {
throw Err... | server" condition must be enabled in any environment that runs React Server Components.'
);
function getCrossOriginStringAs(as, input) {
if ("font" === as) return "";
if ("string" === typeof input)
return "use-credentials" === input ? input : ""; | oop,
M: noop
},
p: 0,
findDOMNode: null
};
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
throw Error(
'The "react" package in this environment is not configured correctly. The "react- | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js",
"language": "javascript",
"file_size": 4941,
"cut_index": 614,
"middle_length": 229
} |
g[id];
if (resolvedModuleData) name = resolvedModuleData.name;
else {
var idx = id.lastIndexOf("#");
-1 !== idx &&
((name = id.slice(idx + 1)),
(resolvedModuleData = bundlerConfig[id.slice(0, idx)]));
if (!resolvedModuleData) throw Error(formatProdErrorMessage(589, id));
}
return resolve... | e;
},
function (reason) {
promise.status = "rejected";
promise.reason = reason;
}
);
return promise;
}
var instrumentedChunks = new WeakSet(),
loadedChunks = new WeakSet();
function ignoreReject() {}
function preloadModule(met | omise = __turbopack_require__(id);
if ("function" !== typeof promise.then || "fulfilled" === promise.status)
return null;
promise.then(
function (value) {
promise.status = "fulfilled";
promise.value = valu | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.production.js",
"language": "javascript",
"file_size": 63298,
"cut_index": 2151,
"middle_length": 229
} |
getOwnPropertyDescriptor(object, names[i]);
if (
!descriptor ||
(!descriptor.enumerable &&
(("key" !== names[i] && "ref" !== names[i]) ||
"function" !== typeof descriptor.get))
)
return !1;
}
return !0;
}
function objectName(obj... | 10 >= value.length ? value : value.slice(0, 10) + "..."
);
case "object":
if (isArrayImpl(value)) return "[...]";
if (null !== value && value.$$typeof === CLIENT_REFERENCE_TAG)
return "client";
| stringify(key);
return '"' + key + '"' === encodedKey ? key : encodedKey;
}
function describeValueForErrorMessage(value) {
switch (typeof value) {
case "string":
return JSON.stringify(
| {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.node.development.js",
"language": "javascript",
"file_size": 198795,
"cut_index": 7068,
"middle_length": 229
} |
e, props) {
hasReadOnlyValue[props.type] ||
props.onChange ||
props.onInput ||
props.readOnly ||
props.disabled ||
null == props.value ||
("select" === tagName
? console.error(
"You provided a `value` prop to a form field without an `onChange... | onChange ||
props.readOnly ||
props.disabled ||
null == props.checked ||
console.error(
"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field | ed a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."
));
props. | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js",
"language": "javascript",
"file_size": 425662,
"cut_index": 13624,
"middle_length": 229
} |
ymbol.toStringTag &&
value[Symbol.toStringTag]) ||
value.constructor.name ||
"Object"
);
}
function willCoercionThrow(value) {
try {
return testStringCoercion(value), !1;
} catch (e) {
return !0;
}
}
function testStringCoercion(value) {
... | }
function checkCSSPropertyStringCoercion(value, propName) {
if (willCoercionThrow(value))
return (
console.error(
"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string | rovided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
attributeName,
typeName(value)
),
testStringCoercion(value)
);
| {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js",
"language": "javascript",
"file_size": 456224,
"cut_index": 13624,
"middle_length": 229
} |
directory of this source tree.
*/
"use strict";
var React = require("next/dist/compiled/react-experimental");
function formatProdErrorMessage(code) {
var url = "https://react.dev/errors/" + code;
if (1 < arguments.length) {
url += "?args[]=" + encodeURIComponent(arguments[1]);
for (var i = 2; i < argument... | },
D: noop,
C: noop,
L: noop,
m: noop,
X: noop,
S: noop,
M: noop
},
p: 0,
findDOMNode: null
},
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
REACT_OPTIMISTIC_KEY = Symbol.for("react.optimistic | the non-minified dev environment for full errors and additional helpful warnings."
);
}
function noop() {}
var Internals = {
d: {
f: noop,
r: function () {
throw Error(formatProdErrorMessage(522));
| {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js",
"language": "javascript",
"file_size": 6875,
"cut_index": 716,
"middle_length": 229
} |
= clientReference.$$id,
name = "",
resolvedModuleData = config[modulePath];
if (resolvedModuleData) name = resolvedModuleData.name;
else {
var idx = modulePath.lastIndexOf("#");
-1 !== idx &&
((name = modulePath.slice(idx + 1)),
(resolvedModuleData = confi... | modulePath +
'" is marked as an async ESM module but was loaded as a CJS proxy. This is probably a bug in the React Server Components bundler.'
);
return !0 === resolvedModuleData.async || !0 === clientReference.$$async
| nt Manifest. This is probably a bug in the React Server Components bundler.'
);
}
if (!0 === resolvedModuleData.async && !0 === clientReference.$$async)
throw Error(
'The module "' +
| {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.edge.development.js",
"language": "javascript",
"file_size": 222582,
"cut_index": 7068,
"middle_length": 229
} |
astIndex, index));
lastIndex = index + 1;
html += match;
}
text = lastIndex !== index ? html + text.slice(lastIndex, index) : html;
}
return text;
}
var uppercasePattern = /([A-Z])/g,
msPattern = /^ms-/,
isJavaScriptProtocol =
/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[... | _WARN_USERS_THEY_CANNOT_UPGRADE,
sharedNotPendingObject = {
pending: !1,
data: null,
method: null,
action: null
},
previousDispatcher = ReactDOMSharedInternals.d;
ReactDOMSharedInternals.d = {
f: previousDispatcher.f,
r: previousD | avascript: URL as a security precaution.')"
: url;
}
var ReactSharedInternals =
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
ReactDOMSharedInternals =
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR | {
"filepath": "packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js",
"language": "javascript",
"file_size": 296535,
"cut_index": 13624,
"middle_length": 229
} |
ay(4096)),
(writtenBytes = 0)),
writeToDestination(destination, chunk))
: ((target = currentView.length - writtenBytes),
target < chunk.byteLength &&
(0 === target
? writeToDestination(destination, currentView)
: (currentView.set(chunk.suba... | stination(destination, currentView),
(currentView = new Uint8Array(4096)),
(writtenBytes = 0))));
return destinationHasCapacity;
}
var textEncoder = new util.TextEncoder();
function byteLengthOfChunk(chunk) {
return "string" === | (currentView = new Uint8Array(4096)),
(writtenBytes = 0)),
currentView.set(chunk, writtenBytes),
(writtenBytes += chunk.byteLength),
4096 === writtenBytes &&
(writeToDe | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-server.node.production.js",
"language": "javascript",
"file_size": 129742,
"cut_index": 3790,
"middle_length": 229
} |
!== names[i] && "ref" !== names[i]) ||
"function" !== typeof descriptor.get))
)
return !1;
}
return !0;
}
function objectName(object) {
object = Object.prototype.toString.call(object);
return object.slice(8, object.length - 1);
}
function describe... | "[...]";
if (null !== value && value.$$typeof === CLIENT_REFERENCE_TAG)
return "client";
value = objectName(value);
return "Object" === value ? "{...}" : value;
case "function":
return value.$$ty | switch (typeof value) {
case "string":
return JSON.stringify(
10 >= value.length ? value : value.slice(0, 10) + "..."
);
case "object":
if (isArrayImpl(value)) return | {
"filepath": "packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.edge.development.js",
"language": "javascript",
"file_size": 192300,
"cut_index": 7068,
"middle_length": 229
} |
) {
var n,
t,
o,
e = 2;
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) {
if (t && null != (n = r[t])) return n.call(r);
if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r));
t = "@@asyncIterator", o = "@@iterator";
}
throw ... | SyncIterator(r) {
this.s = r, this.n = r.next;
}, AsyncFromSyncIterator.prototype = {
s: null,
n: null,
next: function next() {
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
},
"return": function | ror(r + " is not an object."));
var n = r.done;
return Promise.resolve(r.value).then(function (r) {
return {
value: r,
done: n
};
});
}
return AsyncFromSyncIterator = function AsyncFrom | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/asyncIterator.js",
"language": "javascript",
"file_size": 1560,
"cut_index": 537,
"middle_length": 229
} |
var r = "function" == typeof SuppressedError ? SuppressedError : function (r, e) {
var n = Error();
return n.name = "SuppressedError", n.error = r, n.suppressed = e, n;
},
e = {},
n = [];
function using(r, e) {
if (null != e) {
if (Object(e) !== e) throw new TypeError("using declarat... | (r) {
return Promise.reject(r);
}
}), n.push({
v: e,
d: o,
a: r
});
} else r && n.push({
d: e,
a: r
});
return e;
}
return {
e: e,
u: using.bind(null, !1),
a: usi | ol.dispose || Symbol["for"]("Symbol.dispose")], r)) var t = o;
if ("function" != typeof o) throw new TypeError("Object is not disposable.");
t && (o = function o() {
try {
t.call(e);
} catch | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/usingCtx.js",
"language": "javascript",
"file_size": 1733,
"cut_index": 537,
"middle_length": 229
} |
"./OverloadYield.js";
function _wrapAsyncGenerator(e) {
return function () {
return new AsyncGenerator(e.apply(this, arguments));
};
}
function AsyncGenerator(e) {
var r, t;
function resume(r, t) {
try {
var n = e[r](t),
o = n.value,
u = o instanceof OverloadYield;
Promise.r... | return":
r.resolve({
value: n,
done: !0
});
break;
case "throw":
r.reject(n);
break;
default:
r.resolve({
value: n,
done: !1
});
}
(r = r.ne | }
settle(n.done ? "return" : "normal", t);
}, function (e) {
resume("throw", e);
});
} catch (e) {
settle("throw", e);
}
}
function settle(e, n) {
switch (e) {
case " | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/wrapAsyncGenerator.js",
"language": "javascript",
"file_size": 1827,
"cut_index": 537,
"middle_length": 229
} |
f from "./setPrototypeOf.js";
import isNativeFunction from "./isNativeFunction.js";
import construct from "./construct.js";
function _wrapNativeSuper(t) {
var r = "function" == typeof Map ? new Map() : void 0;
return _wrapNativeSuper = function _wrapNativeSuper(t) {
if (null === t || !isNativeFunction(t)) retur... | nstruct(t, arguments, getPrototypeOf(this).constructor);
}
return Wrapper.prototype = Object.create(t.prototype, {
constructor: {
value: Wrapper,
enumerable: !1,
writable: !0,
configurable: !0
}
}), s | per);
}
function Wrapper() {
return co | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/wrapNativeSuper.js",
"language": "javascript",
"file_size": 984,
"cut_index": 582,
"middle_length": 52
} |
peof.js";
import setPrototypeOf from "./setPrototypeOf.js";
import inherits from "./inherits.js";
function _wrapRegExp() {
_wrapRegExp = function _wrapRegExp(e, r) {
return new BabelRegExp(e, void 0, r);
};
var e = RegExp.prototype,
r = new WeakMap();
function BabelRegExp(e, t, p) {
var o = RegExp(e... | n inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
var t = e.exec.call(this, r);
if (t) {
t.groups = buildGroups(t, this);
var p = t.indices;
p && (p.groups = buildGroups(p, this));
}
return t;
| var o = p[t];
if ("number" == typeof o) r[t] = e[o];else {
for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
r[t] = e[o[i]];
}
return r;
}, Object.create(null));
}
retur | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/wrapRegExp.js",
"language": "javascript",
"file_size": 1801,
"cut_index": 537,
"middle_length": 229
} |
ders!=="object"||e.headers===null||typeof e.headers["content-type"]!=="string"){throw new Error("Missing Content-Type")}return getInstance(e)}},336:function(e,t,i){const{Readable:s,Writable:r}=i(203);const n=i(667);const{basename:a,convertToUTF8:o,getDecoder:f,parseContentType:l,parseDisposition:c}=i(827);const h=Buffe... | .crlf=0}push(e,t,i){let s=t;while(t<i){switch(this.state){case p:{let r=false;for(;t<i;++t){if(this.byteCount===b)return-1;++this.byteCount;const i=e[t];if(g[i]!==1){if(i!==58)return-1;this.name+=e.latin1Slice(s,t);if(this.name.length===0)return-1;++t;r=tr | t.create(null);this.pairCount=0;this.byteCount=0;this.state=p;this.name="";this.value="";this.crlf=0;this.cb=e}reset(){this.header=Object.create(null);this.pairCount=0;this.byteCount=0;this.state=p;this.name="";this.value="";this | {
"filepath": "packages/next/src/compiled/busboy/index.js",
"language": "javascript",
"file_size": 25365,
"cut_index": 1331,
"middle_length": 229
} |
{DOT_LITERAL:n,PLUS_LITERAL:o,QMARK_LITERAL:s,SLASH_LITERAL:r,ONE_CHAR:a,QMARK:i,END_ANCHOR:c,DOTS_SLASH:l,NO_DOT:f,NO_DOTS:A,NO_DOT_SLASH:_,NO_DOTS_SLASH:R,QMARK_NO_DOT:E,STAR:h,START_ANCHOR:p,SEP:g};const C={...b,SLASH_LITERAL:`[${e}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${n}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS... | ~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:y,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|) | ${e}]|$)`,SEP:"\\"};const y={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|} | {
"filepath": "packages/next/src/compiled/picomatch/index.js",
"language": "javascript",
"file_size": 23909,
"cut_index": 1331,
"middle_length": 229
} |
{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var n=a("{","}",t);if(!n||/\$$/.test(n.pre))re... | se):[""];return p.map((function(t){return n.pre+u[0]+t}))}}}var v=n.pre;var p=n.post.length?expand(n.post,false):[""];var d;if(h){var m=numeric(u[0]);var b=numeric(u[1]);var g=Math.max(u[0].length,u[1].length);var y=u.length==3?Math.abs(numeric(u[2])):1;va | )){t=n.pre+"{"+n.body+o+n.post;return expand(t)}return[t]}var u;if(h){u=n.body.split(/\.\./)}else{u=parseCommaParts(n.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var p=n.post.length?expand(n.post,fal | {
"filepath": "packages/next/src/compiled/glob/glob.js",
"language": "javascript",
"file_size": 36387,
"cut_index": 2151,
"middle_length": 229
} |
e);
a: for (; 0 < index; ) {
var parentIndex = (index - 1) >>> 1,
parent = heap[parentIndex];
if (0 < compare(parent, node))
(heap[parentIndex] = node),
(heap[index] = parent),
(index = parentIndex);
else break a;
}
}
function peek(... | left = heap[leftIndex],
rightIndex = leftIndex + 1,
right = heap[rightIndex];
if (0 > compare(left, last))
rightIndex < length && 0 > compare(right, left)
? ((heap[index] = right),
| (last !== first) {
heap[0] = last;
a: for (
var index = 0, length = heap.length, halfLength = length >>> 1;
index < halfLength;
) {
var leftIndex = 2 * (index + 1) - 1,
| {
"filepath": "packages/next/src/compiled/scheduler/cjs/scheduler-unstable_mock.development.js",
"language": "javascript",
"file_size": 13687,
"cut_index": 921,
"middle_length": 229
} |
parent = heap[parentIndex];
if (0 < compare(parent, node))
(heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);
else break a;
}
}
function peek(heap) {
return 0 === heap.length ? null : heap[0];
}
function pop(heap) {
if (0 === heap.length) return null;
var first = hea... | left)
? ((heap[index] = right),
(heap[rightIndex] = last),
(index = rightIndex))
: ((heap[index] = left),
(heap[leftIndex] = last),
(index = leftIndex));
else if (rightIndex < length | var leftIndex = 2 * (index + 1) - 1,
left = heap[leftIndex],
rightIndex = leftIndex + 1,
right = heap[rightIndex];
if (0 > compare(left, last))
rightIndex < length && 0 > compare(right, | {
"filepath": "packages/next/src/compiled/scheduler/cjs/scheduler-unstable_mock.production.js",
"language": "javascript",
"file_size": 11990,
"cut_index": 921,
"middle_length": 229
} |
s, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
"production" !== process.env.NODE_ENV &&
(function () {
function runTask(priorityLevel, postTaskPriority, node, callback) {
deadline = g... | void 0 !== scheduler.yield
? scheduler
.yield(continuationOptions)
.then(nextTask)
.catch(handleAbortError)
: scheduler
.postTask(nextTask, continuationOptions)
| ionOptions = { signal: node._controller.signal },
nextTask = runTask.bind(
null,
priorityLevel,
postTaskPriority,
node,
result
);
| {
"filepath": "packages/next/src/compiled/scheduler/cjs/scheduler-unstable_post_task.development.js",
"language": "javascript",
"file_size": 4639,
"cut_index": 614,
"middle_length": 229
} |
, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
"use strict";
var perf = window.performance,
setTimeout = window.setTimeout,
scheduler = global.scheduler,
getCurrentTime = perf.now.bind(perf),
deadline =... | postTaskPriority,
node,
result
);
void 0 !== scheduler.yield
? scheduler
.yield(continuationOptions)
.then(nextTask)
.catch(handleAbortError)
: scheduler
| priorityLevel;
var result = callback(!1);
if ("function" === typeof result) {
var continuationOptions = { signal: node._controller.signal },
nextTask = runTask.bind(
null,
priorityLevel,
| {
"filepath": "packages/next/src/compiled/scheduler/cjs/scheduler-unstable_post_task.production.js",
"language": "javascript",
"file_size": 3974,
"cut_index": 614,
"middle_length": 229
} |
{
var currentTime = exports.unstable_now();
startTime = currentTime;
var hasMoreWork = !0;
try {
a: {
isHostCallbackScheduled = !1;
isHostTimeoutScheduled &&
((isHostTimeoutScheduled = !1),
localClearTimeout(taskTimeoutID),
... | shouldYieldToHost()
);
) {
var callback = currentTask.callback;
if ("function" === typeof callback) {
currentTask.callback = null;
cur | eTimers(currentTime);
for (
currentTask = peek(taskQueue);
null !== currentTask &&
!(
currentTask.expirationTime > currentTime &&
| {
"filepath": "packages/next/src/compiled/scheduler/cjs/scheduler.development.js",
"language": "javascript",
"file_size": 12144,
"cut_index": 921,
"middle_length": 229
} |
unning) {
var currentTime = getCurrentTime();
startTime = currentTime;
var hasMoreWork = !0;
try {
a: {
isHostCallbackScheduled = !1;
isHostTimeoutScheduled &&
((isHostTimeoutScheduled = !1),
localClearTimeout(taskTimeoutID),
... | shouldYieldToHost()
);
) {
var callback = currentTask.callback;
if ("function" === typeof callback) {
currentTask.callback = null;
cu | ceTimers(currentTime);
for (
currentTask = peek(taskQueue);
null !== currentTask &&
!(
currentTask.expirationTime > currentTime &&
| {
"filepath": "packages/next/src/compiled/scheduler/cjs/scheduler.native.development.js",
"language": "javascript",
"file_size": 12327,
"cut_index": 921,
"middle_length": 229
} |
parent = heap[parentIndex];
if (0 < compare(parent, node))
(heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);
else break a;
}
}
function peek(heap) {
return 0 === heap.length ? null : heap[0];
}
function pop(heap) {
if (0 === heap.length) return null;
var first = heap[0],
... | ? ((heap[index] = right),
(heap[rightIndex] = last),
(index = rightIndex))
: ((heap[index] = left),
(heap[leftIndex] = last),
(index = leftIndex));
else if (rightIndex < length && 0 > | r leftIndex = 2 * (index + 1) - 1,
left = heap[leftIndex],
rightIndex = leftIndex + 1,
right = heap[rightIndex];
if (0 > compare(left, last))
rightIndex < length && 0 > compare(right, left)
| {
"filepath": "packages/next/src/compiled/scheduler/cjs/scheduler.native.production.js",
"language": "javascript",
"file_size": 10869,
"cut_index": 921,
"middle_length": 229
} |
= heap[parentIndex];
if (0 < compare(parent, node))
(heap[parentIndex] = node), (heap[index] = parent), (index = parentIndex);
else break a;
}
}
function peek(heap) {
return 0 === heap.length ? null : heap[0];
}
function pop(heap) {
if (0 === heap.length) return null;
var first = heap[0],
last... | ? ((heap[index] = right),
(heap[rightIndex] = last),
(index = rightIndex))
: ((heap[index] = left),
(heap[leftIndex] = last),
(index = leftIndex));
else if (rightIndex < length && 0 > compar | ndex = 2 * (index + 1) - 1,
left = heap[leftIndex],
rightIndex = leftIndex + 1,
right = heap[rightIndex];
if (0 > compare(left, last))
rightIndex < length && 0 > compare(right, left)
| {
"filepath": "packages/next/src/compiled/scheduler/cjs/scheduler.production.js",
"language": "javascript",
"file_size": 10181,
"cut_index": 921,
"middle_length": 229
} |
ew TypeError("The `x` argument is required")}if(typeof t!=="number"){return r+(e+1)+"G"}return r+(t+1)+";"+(e+1)+"H"};t.cursorMove=(e,t)=>{if(typeof e!=="number"){throw new TypeError("The `x` argument is required")}let s="";if(e<0){s+=r+-e+"D"}else if(e>0){s+=r+e+"C"}if(t<0){s+=r+-t+"A"}else if(t>0){s+=r+t+"B"}return s... | e=>{let r="";for(let s=0;s<e;s++){r+=t.eraseLine+(s<e-1?t.cursorUp():"")}if(e){r+=t.cursorLeft}return r};t.eraseEndLine=r+"K";t.eraseStartLine=r+"1K";t.eraseLine=r+"2K";t.eraseDown=r+"J";t.eraseUp=r+"1J";t.eraseScreen=r+"2J";t.scrollUp=r+"S";t.scrollDown=r | 1)+"D";t.cursorLeft=r+"G";t.cursorSavePosition=r+(u?"7":"s");t.cursorRestorePosition=r+(u?"8":"u");t.cursorGetPosition=r+"6n";t.cursorNextLine=r+"E";t.cursorPrevLine=r+"F";t.cursorHide=r+"?25l";t.cursorShow=r+"?25h";t.eraseLines= | {
"filepath": "packages/next/src/compiled/cli-select/index.js",
"language": "javascript",
"file_size": 6564,
"cut_index": 716,
"middle_length": 229
} |
her', () => {
describe('batch', () => {
it('should execute the work function immediately', async () => {
const batcher = Batcher.create<string, number>()
const workFn = jest.fn().mockResolvedValue(42)
const result = await batcher.batch('key', workFn)
expect(result).toBe(42)
expect(... | pect(workFn).toHaveBeenCalledTimes(1)
const [value1, value2] = await Promise.all([result1, result2])
expect(value1).toBe(42)
expect(value2).toBe(42)
expect(workFn).toHaveBeenCalledTimes(1)
})
it('should not batch calls to | ().mockResolvedValue(42)
const result1 = batcher.batch('key', workFn)
const result2 = batcher.batch('key', workFn)
expect(result1).toBeInstanceOf(Promise)
expect(result2).toBeInstanceOf(Promise)
ex | {
"filepath": "packages/next/src/lib/batcher.test.ts",
"language": "typescript",
"file_size": 2624,
"cut_index": 563,
"middle_length": 229
} |
ry() {
function createAddInitializerMethod(e, t) {
return function (r) {
!function (e, t) {
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
}(t), assertCallable(r, "An initializer"), e.push(r);
};
}
function assertInstanceIfPrivate(e, t) {
if... | r l,
f,
p = {
kind: u,
name: s ? "#" + t : toPropertyKey(t),
"static": i,
"private": s
},
d = {
v: !1
};
if (0 !== a && (p.addInitializer = createAddInitializerMethod(n, d)), s || 0 | "accessor";
break;
case 2:
u = "method";
break;
case 3:
u = "getter";
break;
case 4:
u = "setter";
break;
default:
u = "field";
}
va | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/applyDecs2301.js",
"language": "javascript",
"file_size": 7298,
"cut_index": 716,
"middle_length": 229
} |
om "./setFunctionName.js";
import toPropertyKey from "./toPropertyKey.js";
function applyDecs2311(e, t, n, r, o, i) {
var a,
c,
u,
s,
f,
l,
p,
d = Symbol.metadata || Symbol["for"]("Symbol.metadata"),
m = Object.defineProperty,
h = Object.create,
y = [h(null), h(null)],
v = ... | r, o, i, u, s, f, l, p) {
function d(e) {
if (!p(e)) throw new TypeError("Attempted to access private element on non-instance");
}
var h = [].concat(t[0]),
v = t[3],
w = !u,
D = 1 === o,
S = 3 === o,
j = 4 = | };
}
function b(e, t, n, r) {
if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
return e;
}
function applyDec(e, t, n, | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/applyDecs2311.js",
"language": "javascript",
"file_size": 4492,
"cut_index": 614,
"middle_length": 229
} |
portedIterableToArray from "./unsupportedIterableToArray.js";
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
t && (r... | der to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var o,
a = !0,
u = !1;
return {
s: function s() {
t = t.call(r);
},
n: function n() {
var r = t.next();
return a = r.done, r;
| done: !1,
value: r[_n++]
};
},
e: function e(r) {
throw r;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn or | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/createForOfIteratorHelper.js",
"language": "javascript",
"file_size": 1261,
"cut_index": 524,
"middle_length": 229
} |
e) {
return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) {
this.suppressed = e, this.error = r, this.stack = Error().stack;
}, dispose_SuppressedError.prototype = Object.create(Error.prototype, {
constr... | p = o.d.call(o.v);
if (o.a) return Promise.resolve(p).then(next, err);
} catch (r) {
return err(r);
}
if (s) throw e;
}
function err(r) {
return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next();
}
re | for (; r.length > 0;) try {
var o = r.pop(),
| {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/dispose.js",
"language": "javascript",
"file_size": 901,
"cut_index": 547,
"middle_length": 52
} |
rom "./defineProperty.js";
function ownKeys(e, r) {
var t = Object.keys(e);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return t;
}
function _o... | criptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return e;
}
export { _objectSpread2 as default }; | perty(e, r, t[r]);
}) : Object.getOwnPropertyDes | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/objectSpread2.js",
"language": "javascript",
"file_size": 843,
"cut_index": 535,
"middle_length": 52
} |
unctionName = require("./setFunctionName.js");
var toPropertyKey = require("./toPropertyKey.js");
function applyDecs2311(e, t, n, r, o, i) {
var a,
c,
u,
s,
f,
l,
p,
d = Symbol.metadata || Symbol["for"]("Symbol.metadata"),
m = Object.defineProperty,
h = Object.create,
y = [h(nu... | ction applyDec(e, t, n, r, o, i, u, s, f, l, p) {
function d(e) {
if (!p(e)) throw new TypeError("Attempted to access private element on non-instance");
}
var h = [].concat(t[0]),
v = t[3],
w = !u,
D = 1 === o,
S = | return r ? i : o;
};
}
function b(e, t, n, r) {
if ("function" != typeof e && (r || void 0 !== e)) throw new TypeError(t + " must " + (n || "be") + " a function" + (r ? "" : " or undefined"));
return e;
}
fun | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/applyDecs2311.js",
"language": "javascript",
"file_size": 4588,
"cut_index": 614,
"middle_length": 229
} |
tedIterableToArray = require("./unsupportedIterableToArray.js");
function _createForOfIteratorHelper(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (!t) {
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
t &&... | order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
var o,
a = !0,
u = !1;
return {
s: function s() {
t = t.call(r);
},
n: function n() {
var r = t.next();
return a = r.done, r;
| done: !1,
value: r[_n++]
};
},
e: function e(r) {
throw r;
},
f: F
};
}
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/createForOfIteratorHelper.js",
"language": "javascript",
"file_size": 1337,
"cut_index": 524,
"middle_length": 229
} |
nsupportedIterableToArray = require("./unsupportedIterableToArray.js");
function _createForOfIteratorHelperLoose(r, e) {
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (t) return (t = t.call(r)).next.bind(t);
if (Array.isArray(r) || (t = unsupportedIterableToArray(r)) || e && r ... | ttempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports | };
};
}
throw new TypeError("Invalid a | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/createForOfIteratorHelperLoose.js",
"language": "javascript",
"file_size": 826,
"cut_index": 517,
"middle_length": 52
} |
f SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(r, e) {
this.suppressed = e, this.error = r, this.stack = Error().stack;
}, dispose_SuppressedError.prototype = Object.create(Error.prototype, {
constructor: {
value: dispose_Suppr... | (o.a) return Promise.resolve(p).then(next, err);
} catch (r) {
return err(r);
}
if (s) throw e;
}
function err(r) {
return e = s ? new dispose_SuppressedError(e, r) : r, s = !0, next();
}
return next();
}
module.exports = _di | var o = r.pop(),
p = o.d.call(o.v);
if | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/dispose.js",
"language": "javascript",
"file_size": 974,
"cut_index": 582,
"middle_length": 52
} |
ar _typeof = require("./typeof.js")["default"];
function _getRequireWildcardCache(e) {
if ("function" != typeof WeakMap) return null;
var r = new WeakMap(),
t = new WeakMap();
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
return e ? t : r;
})(e);
}
function _interopRequireWil... | i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
}
return n["default"] = e, t && t.set(e, n), n;
}
module.exports = _interopRequireWildcard, module.exports.__esModule = tru | );
if (t && t.has(e)) return t.get(e);
var n = {
__proto__: null
},
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
var | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/interopRequireWildcard.js",
"language": "javascript",
"file_size": 1044,
"cut_index": 513,
"middle_length": 229
} |
ELEMENT_TYPE;
function _createRawReactElement(e, r, E, l) {
REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103);
var o = e && e.defaultProps,
n = arguments.length - 3;
if (r || 0 === n || (r = {
children: void 0
}), 1 === n... | = o || {});
return {
$$typeof: REACT_ELEMENT_TYPE,
type: e,
key: void 0 === E ? null : "" + E,
ref: null,
props: r,
_owner: null
};
}
module.exports = _createRawReactElement, module.exports.__esModule = true, module.exports["de | );else r || (r | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/jsx.js",
"language": "javascript",
"file_size": 817,
"cut_index": 522,
"middle_length": 14
} |
default"] = module.exports;
var t,
e = {},
r = Object.prototype,
n = r.hasOwnProperty,
o = Object.defineProperty || function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
c = i.asyncIterator || "@@asyncIterator",
... | ,
a = Object.create(i.prototype),
c = new Context(n || []);
return o(a, "_invoke", {
value: makeInvokeMethod(t, r, c)
}), a;
}
function tryCatch(t, e, r) {
try {
return {
type: "normal",
arg: t.call(e | }), t[e];
}
try {
define({}, "");
} catch (t) {
define = function define(t, e, r) {
return t[e] = r;
};
}
function wrap(t, e, r, n) {
var i = e && e.prototype instanceof Generator ? e : Generator | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/regeneratorRuntime.js",
"language": "javascript",
"file_size": 11048,
"cut_index": 921,
"middle_length": 229
} |
re("./OverloadYield.js");
function _wrapAsyncGenerator(e) {
return function () {
return new AsyncGenerator(e.apply(this, arguments));
};
}
function AsyncGenerator(e) {
var r, t;
function resume(r, t) {
try {
var n = e[r](t),
o = n.value,
u = o instanceof OverloadYield;
Promis... | e "return":
r.resolve({
value: n,
done: !0
});
break;
case "throw":
r.reject(n);
break;
default:
r.resolve({
value: n,
done: !1
});
}
(r = r | ;
}
settle(n.done ? "return" : "normal", t);
}, function (e) {
resume("throw", e);
});
} catch (e) {
settle("throw", e);
}
}
function settle(e, n) {
switch (e) {
cas | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/wrapAsyncGenerator.js",
"language": "javascript",
"file_size": 1903,
"cut_index": 537,
"middle_length": 229
} |
var r = "function" == typeof SuppressedError ? SuppressedError : function (r, e) {
var n = Error();
return n.name = "SuppressedError", n.error = r, n.suppressed = e, n;
},
e = {},
n = [];
function using(r, e) {
if (null != e) {
if (Object(e) !== e) throw new TypeError("using declarat... | (r) {
return Promise.reject(r);
}
}), n.push({
v: e,
d: o,
a: r
});
} else r && n.push({
d: e,
a: r
});
return e;
}
return {
e: e,
u: using.bind(null, !1),
a: usi | ol.dispose || Symbol["for"]("Symbol.dispose")], r)) var t = o;
if ("function" != typeof o) throw new TypeError("Object is not disposable.");
t && (o = function o() {
try {
t.call(e);
} catch | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/usingCtx.js",
"language": "javascript",
"file_size": 1806,
"cut_index": 537,
"middle_length": 229
} |
typeof.js")["default"];
var setPrototypeOf = require("./setPrototypeOf.js");
var inherits = require("./inherits.js");
function _wrapRegExp() {
module.exports = _wrapRegExp = function _wrapRegExp(e, r) {
return new BabelRegExp(e, void 0, r);
}, module.exports.__esModule = true, module.exports["default"] = module... | && i + 1 < o.length;) i++;
r[t] = e[o[i]];
}
return r;
}, Object.create(null));
}
return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
var t = e.exec.call(this, r);
if (t) {
t.groups = | type);
}
function buildGroups(e, t) {
var p = r.get(t);
return Object.keys(p).reduce(function (r, t) {
var o = p[t];
if ("number" == typeof o) r[t] = e[o];else {
for (var i = 0; void 0 === e[o[i]] | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/wrapRegExp.js",
"language": "javascript",
"file_size": 1989,
"cut_index": 537,
"middle_length": 229
} |
hod(e, t) {
return function (r) {
!function (e, t) {
if (e.v) throw Error("attempted to call addInitializer after decoration was finished");
}(t), assertCallable(r, "An initializer"), e.push(r);
};
}
function memberDec(e, t, r, n, a, i, o, s) {
var c;
switch (a) {
case 1:
... | == a && (f.addInitializer = createAddInitializerMethod(n, p)), 0 === a ? o ? (l = r.get, u = r.set) : (l = function l() {
return this[t];
}, u = function u(e) {
this[t] = e;
}) : 2 === a ? l = function l() {
return r.value;
} | default:
c = "field";
}
var l,
u,
f = {
kind: c,
name: o ? "#" + t : toPropertyKey(t),
"static": i,
"private": o
},
p = {
v: !1
};
0 ! | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/applyDecs2203R.js",
"language": "javascript",
"file_size": 6398,
"cut_index": 716,
"middle_length": 229
} |
yncIterator(r) {
var n,
t,
o,
e = 2;
for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) {
if (t && null != (n = r[t])) return n.call(r);
if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r));
t = "@@asyncIterator", o = "@@iterator";... | ion AsyncFromSyncIterator(r) {
this.s = r, this.n = r.next;
}, AsyncFromSyncIterator.prototype = {
s: null,
n: null,
next: function next() {
return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
},
"retu | ct(new TypeError(r + " is not an object."));
var n = r.done;
return Promise.resolve(r.value).then(function (r) {
return {
value: r,
done: n
};
});
}
return AsyncFromSyncIterator = funct | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/asyncIterator.js",
"language": "javascript",
"file_size": 1487,
"cut_index": 524,
"middle_length": 229
} |
) {
if ("function" != typeof WeakMap) return null;
var r = new WeakMap(),
t = new WeakMap();
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
return e ? t : r;
})(e);
}
function _interopRequireWildcard(e, r) {
if (!r && e && e.__esModule) return e;
if (null === e || "object"... | yDescriptor;
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
}
return n["default"] = e, t | a = Object.defineProperty && Object.getOwnPropert | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/interopRequireWildcard.js",
"language": "javascript",
"file_size": 957,
"cut_index": 582,
"middle_length": 52
} |
unctionName = require("./setFunctionName.js");
var toPropertyKey = require("./toPropertyKey.js");
function applyDecs2305(e, t, r, n, o, a) {
function i(e, t, r) {
return function (n, o) {
return r && r(n), e[t].call(n, o);
};
}
function c(e, t) {
for (var r = 0; r < e.length; r++) e[r].call(t);
... | g = t[3],
b = !u;
if (!b) {
r || Array.isArray(v) || (v = [v]);
var w = {},
S = [],
A = 3 === o ? "get" : 4 === o || d ? "set" : "value";
f ? (p || d ? w = {
get: setFunctionName(function () {
| ;
return e;
}
function applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) {
function m(e) {
if (!h(e)) throw new TypeError("Attempted to access private element on non-instance");
}
var y,
v = t[0],
| {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/applyDecs2305.js",
"language": "javascript",
"file_size": 5087,
"cut_index": 614,
"middle_length": 229
} |
lassElements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers);
}
function _getDecoratorsApi() {
_getDecoratorsApi = function _getDecoratorsApi() {
return e;
};
var e = {
elementsDefinitionOrder: [["method"], ["field"]],
initializeInstanceElements: function initializeInstanceElements(e, r) {
... | if (r.kind === i && ("static" === o || "prototype" === o)) {
var n = "static" === o ? e : t;
this.defineClassElement(n, r);
}
}, this);
}, this);
},
defineClassElement: function defineClassElement(e, | );
},
initializeClassElements: function initializeClassElements(e, r) {
var t = e.prototype;
["method", "field"].forEach(function (i) {
r.forEach(function (r) {
var o = r.placement;
| {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/decorate.js",
"language": "javascript",
"file_size": 9908,
"cut_index": 921,
"middle_length": 229
} |
_importDeferProxy(e) {
var t = null,
constValue = function constValue(e) {
return function () {
return e;
};
},
proxy = function proxy(r) {
return function (n, o, f) {
return null === t && (t = e()), r(t, o, f);
};
};
return new Proxy({}, {
defineProperty... | lect.has),
ownKeys: proxy(Reflect.ownKeys),
preventExtensions: constValue(!0),
set: constValue(!1),
setPrototypeOf: constValue(!1)
});
}
module.exports = _importDeferProxy, module.exports.__esModule = true, module.exports["default"] = mod | isExtensible: constValue(!1),
has: proxy(Ref | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/importDeferProxy.js",
"language": "javascript",
"file_size": 840,
"cut_index": 520,
"middle_length": 52
} |
= require("./superPropBase.js");
var defineProperty = require("./defineProperty.js");
function set(e, r, t, o) {
return set = "undefined" != typeof Reflect && Reflect.set ? Reflect.set : function (e, r, t, o) {
var f,
i = superPropBase(e, r);
if (i) {
if ((f = Object.getOwnPropertyDescriptor(i, r... | r, t);
return !0;
}, set(e, r, t, o);
}
function _set(e, r, t, o, f) {
if (!set(e, r, t, o || e) && f) throw new TypeError("failed to set property");
return t;
}
module.exports = _set, module.exports.__esModule = true, module.exports["default"] = | fineProperty(o, r, f);
} else defineProperty(o, | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/set.js",
"language": "javascript",
"file_size": 853,
"cut_index": 529,
"middle_length": 52
} |
{
getMetadata: function getMetadata(o) {
old_assertNotFinished(r, "getMetadata"), old_assertMetadataKey(o);
var i = e[o];
if (void 0 !== i) if (1 === t) {
var n = i["public"];
if (void 0 !== n) return n[a];
} else if (2 === t) {
var l = i["private"];
if (void ... | t) {
var s = n.priv;
void 0 === s && (s = n["private"] = new Map()), s.set(a, i);
} else n.constructor = i;
}
};
}
function old_convertMetadataMapToFinal(e, t) {
var a = e[Symbol.metadata || Symbol["for"]("Symbol.metadata")],
| r, "setMetadata"), old_assertMetadataKey(o);
var n = e[o];
if (void 0 === n && (n = e[o] = {}), 1 === t) {
var l = n["public"];
void 0 === l && (l = n["public"] = {}), l[a] = i;
} else if (2 === | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/applyDecs.js",
"language": "javascript",
"file_size": 8267,
"cut_index": 716,
"middle_length": 229
} |
d to call addInitializer after decoration was finished");
}(t), assertCallable(r, "An initializer"), e.push(r);
};
}
function memberDec(e, t, r, a, n, i, s, o) {
var c;
switch (n) {
case 1:
c = "accessor";
break;
case 2:
c = "method";
break;
case 3... | l() {
return this[t];
}, u = function u(e) {
this[t] = e;
}) : 2 === n ? l = function l() {
return r.value;
} : (1 !== n && 3 !== n || (l = function l() {
return r.get.call(this);
}), 1 !== n && 4 !== n || (u = funct | e: s ? "#" + t : t,
"static": i,
"private": s
},
p = {
v: !1
};
0 !== n && (f.addInitializer = createAddInitializerMethod(a, p)), 0 === n ? s ? (l = r.get, u = r.set) : (l = function | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/applyDecs2203.js",
"language": "javascript",
"file_size": 6044,
"cut_index": 716,
"middle_length": 229
} |
Object.defineProperty || function (t, e, r) {
t[e] = r.value;
},
i = "function" == typeof Symbol ? Symbol : {},
a = i.iterator || "@@iterator",
c = i.asyncIterator || "@@asyncIterator",
u = i.toStringTag || "@@toStringTag";
function define(t, e, r) {
return Object.defineProperty(t, e, {
... | lue: makeInvokeMethod(t, r, c)
}), a;
}
function tryCatch(t, e, r) {
try {
return {
type: "normal",
arg: t.call(e, r)
};
} catch (t) {
return {
type: "throw",
arg: t
};
}
}
e.w | urn t[e] = r;
};
}
function wrap(t, e, r, n) {
var i = e && e.prototype instanceof Generator ? e : Generator,
a = Object.create(i.prototype),
c = new Context(n || []);
return o(a, "_invoke", {
va | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/regeneratorRuntime.js",
"language": "javascript",
"file_size": 10866,
"cut_index": 921,
"middle_length": 229
} |
loadYield = require("./OverloadYield.js");
function _asyncGeneratorDelegate(t) {
var e = {},
n = !1;
function pump(e, r) {
return n = !0, r = new Promise(function (n) {
n(t[e](r));
}), {
done: !1,
value: new OverloadYield(r, 1)
};
}
return e["undefined" != typeof Symbol && Symb... | pump("throw", t);
}), "function" == typeof t["return"] && (e["return"] = function (t) {
return n ? (n = !1, t) : pump("return", t);
}), e;
}
module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = mo | unction (t) {
if (n) throw n = !1, t;
return | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/asyncGeneratorDelegate.js",
"language": "javascript",
"file_size": 841,
"cut_index": 520,
"middle_length": 52
} |
k,
}
/**
* Parse the bundler arguments and potentially sets the `TURBOPACK` environment variable.
*
* NOTE: rspack is configured via next config which is chaotic so it is possible for this to be overridden later.
*
* @param options The options to parse.
* @returns The bundler that was configured
*/
export functi... | t one.
if (options.turbopack) {
setBundlerFlag(Bundler.Turbopack, '--turbopack')
}
if (options.turbo) {
setBundlerFlag(Bundler.Turbopack, '--turbo')
} else if (process.env.TURBOPACK) {
// We don't really want to support this but it is t | Bundler, flag: string) => {
bundlerFlags.set(bundler, (bundlerFlags.get(bundler) ?? []).concat(flag))
}
// What turbo flag was set? We allow multiple to be set, which is silly but not ambiguous, just pick the most relevan | {
"filepath": "packages/next/src/lib/bundler.ts",
"language": "typescript",
"file_size": 3559,
"cut_index": 614,
"middle_length": 229
} |
e CoalescedInvoke<T> = {
isOrigin: boolean
value: T
}
export type UnwrapPromise<T> = T extends Promise<infer U> ? U : T
const globalInvokeCache = new Map<string, Promise<CoalescedInvoke<unknown>>>()
export function withCoalescedInvoke<F extends (...args: any) => any>(
func: F
): (
key: string,
args: Parame... | onst future = __wrapper()
.then((res) => {
globalInvokeCache.delete(key)
return { isOrigin: true, value: res as UnwrapPromise<ReturnType<F>> }
})
.catch((err) => {
globalInvokeCache.delete(key)
return Promi |
return entry.then((res) => ({
isOrigin: false,
value: res.value as UnwrapPromise<ReturnType<F>>,
}))
}
async function __wrapper() {
return await func.apply(undefined, args)
}
c | {
"filepath": "packages/next/src/lib/coalesced-function.ts",
"language": "typescript",
"file_size": 1087,
"cut_index": 515,
"middle_length": 229
} |
-to-regexp'
import { BloomFilter } from '../shared/lib/bloom-filter'
import { isDynamicRoute } from '../shared/lib/router/utils'
import { removeTrailingSlash } from '../shared/lib/router/utils/remove-trailing-slash'
import type { Redirect } from './load-custom-routes'
import { tryToParsePath } from './try-to-parse-path... | = new Set<string>()
for (let path of paths) {
if (isDynamicRoute(path)) {
if (isInterceptionRouteAppPath(path)) {
path = extractInterceptionRouteInformation(path).interceptedRoute
}
let subPath = ''
const pathParts | ng[],
redirects: Redirect[],
allowedErrorRate?: number
): {
staticFilter: ReturnType<BloomFilter['export']>
dynamicFilter: ReturnType<BloomFilter['export']>
} {
const staticPaths = new Set<string>()
const dynamicPaths | {
"filepath": "packages/next/src/lib/create-client-router-filter.ts",
"language": "typescript",
"file_size": 2154,
"cut_index": 563,
"middle_length": 229
} |
* A `Promise.withResolvers` implementation that exposes the `resolve` and
* `reject` functions on a `Promise`.
*
* @see https://tc39.es/proposal-promise-with-resolvers/
*/
export class DetachedPromise<T = any> {
public readonly resolve: (value: T | PromiseLike<T>) => void
public readonly reject: (reason: any) =... | to the object.
this.promise = new Promise<T>((res, rej) => {
resolve = res
reject = rej
})
// We know that resolvers is defined because the Promise constructor runs
// synchronously.
this.resolve = resolve!
this.reject | the resolvers | {
"filepath": "packages/next/src/lib/detached-promise.ts",
"language": "typescript",
"file_size": 804,
"cut_index": 517,
"middle_length": 14
} |
CODE_DELIMITER = '@'
/**
* Augments the digest field of errors thrown in React Server Components (RSC) with an error code.
* Since RSC errors can only be serialized through the digest field, this provides a way to include
* an additional error code that can be extracted client-side via `extractNextErrorCode`.
*
*... | RROR_CODE_DELIMITER}${thrownValue.__NEXT_ERROR_CODE}`
}
return originalDigest
}
export const extractNextErrorCode = (error: unknown): string | undefined => {
if (
typeof error === 'object' &&
error !== null &&
'__NEXT_ERROR_CODE' in erro | ErrorCode = (
thrownValue: unknown,
originalDigest: string
): string => {
if (
typeof thrownValue === 'object' &&
thrownValue !== null &&
'__NEXT_ERROR_CODE' in thrownValue
) {
return `${originalDigest}${E | {
"filepath": "packages/next/src/lib/error-telemetry-utils.ts",
"language": "typescript",
"file_size": 1421,
"cut_index": 524,
"middle_length": 229
} |
s'
import { join } from 'node:path'
import { tmpdir } from 'node:os'
import { findConfig } from './find-config'
// Jest does not support `import('file://something')` (file: imports) yet.
describe('findConfig()', () => {
const exampleConfig = {
basePath: '/docs',
}
const configCode = {
mjs: `
const ... | (const pkgConfigType of testPatterns.pkgConfigTypes) {
for (const ext of testPatterns.exts) {
it(`should load config properly from *.config.* file (type: "${pkgConfigType}", config: awsome.config.${ext})`, async () => {
// Create fixture | e TestPatterns = {
pkgConfigTypes: ('module' | 'commonjs')[]
exts: ('js' | 'mjs' | 'cjs')[]
}
const testPatterns: TestPatterns = {
pkgConfigTypes: ['module', 'commonjs'],
exts: ['js', 'mjs', 'cjs'],
}
for | {
"filepath": "packages/next/src/lib/find-config.test.ts",
"language": "typescript",
"file_size": 2222,
"cut_index": 563,
"middle_length": 229
} |
ort { readFile } from 'fs/promises'
import JSON5 from 'next/dist/compiled/json5'
import { pathToFileURL } from 'url'
type RecursivePartial<T> = {
[P in keyof T]?: RecursivePartial<T[P]>
}
export function findConfigPath(
dir: string,
key: string
): Promise<string | undefined> {
// If we didn't find the configu... | on. We should maybe
// force all the types to be `unknown` as well.
export async function findConfig<T>(
directory: string,
key: string,
_returnFile?: boolean
): Promise<RecursivePartial<T> | null> {
// `package.json` configuration always wins. Let | `${key}.config.mjs`,
`${key}.config.cjs`,
],
{
cwd: dir,
}
)
}
// We'll allow configuration to be typed, but we force everything provided to
// become optional. We do not perform any schema validati | {
"filepath": "packages/next/src/lib/find-config.ts",
"language": "typescript",
"file_size": 2872,
"cut_index": 563,
"middle_length": 229
} |
nction _iterableToArrayLimit(r, l) {
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (null != t) {
var e,
n,
i,
u,
a = [],
f = !0,
o = !1;
try {
if (i = (t = t.call(r)).next, 0 === l) {
if (Object(t) !== t... | null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
} finally {
if (o) throw n;
}
}
return a;
}
}
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.ex | if (!f && | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/iterableToArrayLimit.js",
"language": "javascript",
"file_size": 790,
"cut_index": 514,
"middle_length": 14
} |
.keys(e);
if (Object.getOwnPropertySymbols) {
var o = Object.getOwnPropertySymbols(e);
r && (o = o.filter(function (r) {
return Object.getOwnPropertyDescriptor(e, r).enumerable;
})), t.push.apply(t, o);
}
return t;
}
function _objectSpread2(e) {
for (var r = 1; r < arguments.length; r++) {
... | rs(t)) : ownKeys(Object(t)).forEach(function (r) {
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
});
}
return e;
}
module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exp | t.defineProperties(e, Object.getOwnPropertyDescripto | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/objectSpread2.js",
"language": "javascript",
"file_size": 919,
"cut_index": 606,
"middle_length": 52
} |
ements(s.F, a.elements), o.runClassFinishers(s.F, a.finishers);
}
function _getDecoratorsApi() {
_getDecoratorsApi = function _getDecoratorsApi() {
return e;
};
var e = {
elementsDefinitionOrder: [["method"], ["field"]],
initializeInstanceElements: function initializeInstanceElements(e, r) {
["m... | .kind === i && ("static" === o || "prototype" === o)) {
var n = "static" === o ? e : t;
this.defineClassElement(n, r);
}
}, this);
}, this);
},
defineClassElement: function defineClassElement(e, r) {
| },
initializeClassElements: function initializeClassElements(e, r) {
var t = e.prototype;
["method", "field"].forEach(function (i) {
r.forEach(function (r) {
var o = r.placement;
if (r | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/decorate.js",
"language": "javascript",
"file_size": 9829,
"cut_index": 921,
"middle_length": 229
} |
rom 'next/dist/compiled/path-to-regexp'
import type {
ManifestHeaderRoute,
ManifestRedirectRoute,
ManifestRewriteRoute,
} from '../build'
import {
normalizeRouteRegex,
type Header,
type Redirect,
type Rewrite,
type RouteType,
} from './load-custom-routes'
import { getRedirectStatus, modifyRouteRegex } f... | ite | Header,
restrictedRedirectPaths?: string[]
): ManifestHeaderRoute | ManifestRewriteRoute | ManifestRedirectRoute {
const compiled = pathToRegexp(route.source, [], {
strict: true,
sensitive: false,
delimiter: '/', // default is `/#?`, | ifestRewriteRoute
export function buildCustomRoute(
type: 'redirect',
route: Redirect,
restrictedRedirectPaths: string[]
): ManifestRedirectRoute
export function buildCustomRoute(
type: RouteType,
route: Redirect | Rewr | {
"filepath": "packages/next/src/lib/build-custom-route.ts",
"language": "typescript",
"file_size": 1789,
"cut_index": 537,
"middle_length": 229
} |
HEADER = 'application/json; charset=utf-8'
export const NEXT_QUERY_PARAM_PREFIX = 'nxtP'
export const NEXT_INTERCEPTION_MARKER_PREFIX = 'nxtI'
export const MATCHED_PATH_HEADER = 'x-matched-path'
export const PRERENDER_REVALIDATE_HEADER = 'x-prerender-revalidate'
export const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER ... | EXT_CACHE_TAGS_HEADER = 'x-next-cache-tags'
export const NEXT_CACHE_REVALIDATED_TAGS_HEADER = 'x-next-revalidated-tags'
export const NEXT_CACHE_REVALIDATE_TAG_TOKEN_HEADER =
'x-next-revalidate-tag-token'
export const NEXT_RESUME_HEADER = 'next-resume'
e | ION_SUFFIX = '.action'
export const NEXT_DATA_SUFFIX = '.json'
export const NEXT_META_SUFFIX = '.meta'
export const NEXT_BODY_SUFFIX = '.body'
export const NEXT_NAV_DEPLOYMENT_ID_HEADER = 'x-nextjs-deployment-id'
export const N | {
"filepath": "packages/next/src/lib/constants.ts",
"language": "typescript",
"file_size": 8675,
"cut_index": 716,
"middle_length": 229
} |
minimum number of operations required to convert string a to string b.
function minDistance(a: string, b: string, threshold: number): number {
const m = a.length
const n = b.length
if (m < n) {
return minDistance(b, a, threshold)
}
if (n === 0) {
return m
}
let previousRow = Array.from({ lengt... | }
return previousRow[previousRow.length - 1]
}
export function detectTypo(input: string, options: string[], threshold = 2) {
const potentialTypos = options
.map((o) => ({
option: o,
distance: minDistance(o, input, threshold),
})) | iousRow[j + 1] + 1
const deletions = currentRow[j] + 1
const substitutions = previousRow[j] + Number(s1 !== s2)
currentRow.push(Math.min(insertions, deletions, substitutions))
}
previousRow = currentRow
| {
"filepath": "packages/next/src/lib/detect-typo.ts",
"language": "typescript",
"file_size": 1206,
"cut_index": 518,
"middle_length": 229
} |
tPrototypeOf = require("./getPrototypeOf.js");
var setPrototypeOf = require("./setPrototypeOf.js");
var isNativeFunction = require("./isNativeFunction.js");
var construct = require("./construct.js");
function _wrapNativeSuper(t) {
var r = "function" == typeof Map ? new Map() : void 0;
return module.exports = _wrapN... | ototype = Object.create(t.prototype, {
constructor: {
value: Wrapper,
enumerable: !1,
writable: !0,
configurable: !0
}
}), setPrototypeOf(Wrapper, t);
}, module.exports.__esModule = true, module.exports["de | function");
if (void 0 !== r) {
if (r.has(t)) return r.get(t);
r.set(t, Wrapper);
}
function Wrapper() {
return construct(t, arguments, getPrototypeOf(this).constructor);
}
return Wrapper.pr | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/wrapNativeSuper.js",
"language": "javascript",
"file_size": 1164,
"cut_index": 518,
"middle_length": 229
} |
om "./setFunctionName.js";
import toPropertyKey from "./toPropertyKey.js";
function applyDecs2305(e, t, r, n, o, a) {
function i(e, t, r) {
return function (n, o) {
return r && r(n), e[t].call(n, o);
};
}
function c(e, t) {
for (var r = 0; r < e.length; r++) e[r].call(t);
return t;
}
fun... | !u;
if (!b) {
r || Array.isArray(v) || (v = [v]);
var w = {},
S = [],
A = 3 === o ? "get" : 4 === o || d ? "set" : "value";
f ? (p || d ? w = {
get: setFunctionName(function () {
return g(this);
| unction applyDec(e, t, r, n, o, a, c, u, l, f, p, d, h) {
function m(e) {
if (!h(e)) throw new TypeError("Attempted to access private element on non-instance");
}
var y,
v = t[0],
g = t[3],
b = | {
"filepath": "packages/next/src/compiled/@babel/runtime/helpers/esm/applyDecs2305.js",
"language": "javascript",
"file_size": 4991,
"cut_index": 614,
"middle_length": 229
} |
om 'next/dist/compiled/tar'
const { WritableStream } =
require('node:stream/web') as typeof import('node:stream/web')
import { getRegistry } from './helpers/get-registry'
import { getCacheDirectory } from './helpers/get-cache-directory'
const MAX_VERSIONS_TO_CACHE = 8
async function extractBinary(
outputDirectory... | eDirectory}`)
await fs.promises.mkdir(cacheDirectory, { recursive: true })
const tempFile = path.join(
cacheDirectory,
`${tarFileName}.temp-${Date.now()}`
)
const registry = getRegistry()
const downloadUrl = `${registry}${ | file: path.join(cacheDirectory, tarFileName),
cwd: outputDirectory,
strip: 1,
})
if (!fs.existsSync(path.join(cacheDirectory, tarFileName))) {
Log.info(`Downloading swc package ${pkgName}... to ${cach | {
"filepath": "packages/next/src/lib/download-swc.ts",
"language": "typescript",
"file_size": 4179,
"cut_index": 614,
"middle_length": 229
} |
ort { DetachedPromise } from './detached-promise'
type CacheKeyFn<K, C extends string | number | null> = (
key: K
) => PromiseLike<C> | C
type BatcherOptions<K, C extends string | number | null> = {
cacheKeyFn?: CacheKeyFn<K, C>
schedulerFn?: SchedulerFn<void>
}
type WorkFnContext<V, K> = {
resolve: (value: ... | * A function that will be called to schedule the wrapped function to be
* executed. This defaults to a function that will execute the function
* immediately.
*/
private readonly schedulerFn: SchedulerFn<void> = (fn) => fn()
) {}
/** | ecute at a time.
*/
export class Batcher<K, V, C extends string | number | null> {
private readonly pending = new Map<C, Promise<V>>()
protected constructor(
private readonly cacheKeyFn?: CacheKeyFn<K, C>,
/**
| {
"filepath": "packages/next/src/lib/batcher.ts",
"language": "typescript",
"file_size": 3023,
"cut_index": 563,
"middle_length": 229
} |
{
extractInfoFromServerReferenceId,
type ServerReferenceInfo,
} from '../shared/lib/server-reference-info'
// Only contains the properties we're interested in.
export interface ServerReference {
$$typeof: Symbol
$$id: string
}
export type ServerFunction = ServerReference &
((...args: unknown[]) => Promise<... | return type === 'use-cache'
}
export function getUseCacheFunctionInfo<T>(
value: T & Partial<ServerReference>
): ServerReferenceInfo | null {
if (!isServerReference(value)) {
return null
}
const info = extractInfoFromServerReferenceId(value. | rt function isUseCacheFunction<T>(
value: T & Partial<ServerReference>
): value is T & ServerFunction {
if (!isServerReference(value)) {
return false
}
const { type } = extractInfoFromServerReferenceId(value.$$id)
| {
"filepath": "packages/next/src/lib/client-and-server-references.ts",
"language": "typescript",
"file_size": 1237,
"cut_index": 518,
"middle_length": 229
} |
from '../shared/lib/is-plain-object'
// We allow some additional attached properties for Next.js errors
export interface NextError extends Error {
type?: string
page?: string
code?: string | number
cancelled?: boolean
digest?: string
}
/**
* This is a safe stringify function that handles circular reference... | value !== null) {
if (seen.has(value)) {
return '[Circular]'
}
seen.add(value)
}
return value
})
}
/**
* Checks whether the given value is a NextError.
* This can be used to print a more detailed error message with pr | /
function safeStringifyLite(obj: any) {
const seen = new WeakSet()
return JSON.stringify(obj, (_key, value) => {
// If value is an object and already seen, replace with "[Circular]"
if (typeof value === 'object' && | {
"filepath": "packages/next/src/lib/is-error.ts",
"language": "typescript",
"file_size": 1934,
"cut_index": 537,
"middle_length": 229
} |
at rejects certain
* patterns commonly used in Next.js interception routes. This module provides
* normalization functions to make Next.js route patterns compatible with the
* updated library while preserving all functionality.
*/
/**
* Internal separator used to normalize adjacent parameter patterns.
* This uni... | ion route markers followed immediately by parameters
// Pattern: /(.):param, /(..):param, /(...):param, /(.)(.):param etc.
// These patterns cause "Must have text between two parameters" errors
if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) {
return tr |
* Detects if a route pattern needs normalization for path-to-regexp compatibility.
*/
export function hasAdjacentParameterIssues(route: string): boolean {
if (typeof route !== 'string') return false
// Check for intercept | {
"filepath": "packages/next/src/lib/route-pattern-normalizer.ts",
"language": "typescript",
"file_size": 5270,
"cut_index": 716,
"middle_length": 229
} |
seLike<T>
export type SchedulerFn<T = void> = (cb: ScheduledFn<T>) => void
/**
* Schedules a function to be called on the next tick after the other promises
* have been resolved.
*
* @param cb the function to schedule
*/
export const scheduleOnNextTick = (cb: ScheduledFn<void>) => {
// We use Promise.resolve().... | UNTIME === 'edge') {
setTimeout(cb, 0)
} else {
process.nextTick(cb)
}
})
}
/**
* Schedules a function to be called using `setImmediate` or `setTimeout` if
* `setImmediate` is not available (like in the Edge runtime).
*
* @param | spired by the implementation of the DataLoader interface: https://github.com/graphql/dataloader/blob/d336bd15282664e0be4b4a657cb796f09bafbc6b/src/index.js#L213-L255
//
Promise.resolve().then(() => {
if (process.env.NEXT_R | {
"filepath": "packages/next/src/lib/scheduler.ts",
"language": "typescript",
"file_size": 2421,
"cut_index": 563,
"middle_length": 229
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.