mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-25 22:06:06 +00:00
16146 lines
855 KiB
JavaScript
16146 lines
855 KiB
JavaScript
module.exports = [
|
||
"[project]/coding/projects/LangBot/web/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
function _getRequireWildcardCache(nodeInterop) {
|
||
if (typeof WeakMap !== "function") return null;
|
||
var cacheBabelInterop = new WeakMap();
|
||
var cacheNodeInterop = new WeakMap();
|
||
return (_getRequireWildcardCache = function(nodeInterop) {
|
||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
||
})(nodeInterop);
|
||
}
|
||
function _interop_require_wildcard(obj, nodeInterop) {
|
||
if (!nodeInterop && obj && obj.__esModule) return obj;
|
||
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return {
|
||
default: obj
|
||
};
|
||
var cache = _getRequireWildcardCache(nodeInterop);
|
||
if (cache && cache.has(obj)) return cache.get(obj);
|
||
var newObj = {
|
||
__proto__: null
|
||
};
|
||
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
||
for(var key in obj){
|
||
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
||
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
||
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
||
else newObj[key] = obj[key];
|
||
}
|
||
}
|
||
newObj.default = obj;
|
||
if (cache) cache.set(obj, newObj);
|
||
return newObj;
|
||
}
|
||
exports._ = _interop_require_wildcard;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/module.compiled.js [app-ssr] (ecmascript)").vendored['contexts'].AppRouterContext; //# sourceMappingURL=app-router-context.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/module.compiled.js [app-ssr] (ecmascript)").vendored['contexts'].HooksClientContext; //# sourceMappingURL=hooks-client-context.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/shared/lib/segment.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
DEFAULT_SEGMENT_KEY: null,
|
||
NOT_FOUND_SEGMENT_KEY: null,
|
||
PAGE_SEGMENT_KEY: null,
|
||
addSearchParamsIfPageSegment: null,
|
||
computeSelectedLayoutSegment: null,
|
||
getSegmentValue: null,
|
||
getSelectedLayoutSegmentPath: null,
|
||
isGroupSegment: null,
|
||
isParallelRouteSegment: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
DEFAULT_SEGMENT_KEY: function() {
|
||
return DEFAULT_SEGMENT_KEY;
|
||
},
|
||
NOT_FOUND_SEGMENT_KEY: function() {
|
||
return NOT_FOUND_SEGMENT_KEY;
|
||
},
|
||
PAGE_SEGMENT_KEY: function() {
|
||
return PAGE_SEGMENT_KEY;
|
||
},
|
||
addSearchParamsIfPageSegment: function() {
|
||
return addSearchParamsIfPageSegment;
|
||
},
|
||
computeSelectedLayoutSegment: function() {
|
||
return computeSelectedLayoutSegment;
|
||
},
|
||
getSegmentValue: function() {
|
||
return getSegmentValue;
|
||
},
|
||
getSelectedLayoutSegmentPath: function() {
|
||
return getSelectedLayoutSegmentPath;
|
||
},
|
||
isGroupSegment: function() {
|
||
return isGroupSegment;
|
||
},
|
||
isParallelRouteSegment: function() {
|
||
return isParallelRouteSegment;
|
||
}
|
||
});
|
||
function getSegmentValue(segment) {
|
||
return Array.isArray(segment) ? segment[1] : segment;
|
||
}
|
||
function isGroupSegment(segment) {
|
||
// Use array[0] for performant purpose
|
||
return segment[0] === '(' && segment.endsWith(')');
|
||
}
|
||
function isParallelRouteSegment(segment) {
|
||
return segment.startsWith('@') && segment !== '@children';
|
||
}
|
||
function addSearchParamsIfPageSegment(segment, searchParams) {
|
||
const isPageSegment = segment.includes(PAGE_SEGMENT_KEY);
|
||
if (isPageSegment) {
|
||
const stringifiedQuery = JSON.stringify(searchParams);
|
||
return stringifiedQuery !== '{}' ? PAGE_SEGMENT_KEY + '?' + stringifiedQuery : PAGE_SEGMENT_KEY;
|
||
}
|
||
return segment;
|
||
}
|
||
function computeSelectedLayoutSegment(segments, parallelRouteKey) {
|
||
if (!segments || segments.length === 0) {
|
||
return null;
|
||
}
|
||
// For 'children', use first segment; for other parallel routes, use last segment
|
||
const rawSegment = parallelRouteKey === 'children' ? segments[0] : segments[segments.length - 1];
|
||
// If the default slot is showing, return null since it's not technically "selected" (it's a fallback)
|
||
// Returning an internal value like `__DEFAULT__` would be confusing
|
||
return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
|
||
}
|
||
function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
|
||
let node;
|
||
if (first) {
|
||
// Use the provided parallel route key on the first parallel route
|
||
node = tree[1][parallelRouteKey];
|
||
} else {
|
||
// After first parallel route prefer children, if there's no children pick the first parallel route.
|
||
const parallelRoutes = tree[1];
|
||
node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
|
||
}
|
||
if (!node) return segmentPath;
|
||
const segment = node[0];
|
||
let segmentValue = getSegmentValue(segment);
|
||
if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
|
||
return segmentPath;
|
||
}
|
||
segmentPath.push(segmentValue);
|
||
return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
|
||
}
|
||
const PAGE_SEGMENT_KEY = '__PAGE__';
|
||
const DEFAULT_SEGMENT_KEY = '__DEFAULT__';
|
||
const NOT_FOUND_SEGMENT_KEY = '/_not-found'; //# sourceMappingURL=segment.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/module.compiled.js [app-ssr] (ecmascript)").vendored['contexts'].ServerInsertedHtml; //# sourceMappingURL=server-inserted-html.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/unrecognized-action-error.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
UnrecognizedActionError: null,
|
||
unstable_isUnrecognizedActionError: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
UnrecognizedActionError: function() {
|
||
return UnrecognizedActionError;
|
||
},
|
||
unstable_isUnrecognizedActionError: function() {
|
||
return unstable_isUnrecognizedActionError;
|
||
}
|
||
});
|
||
class UnrecognizedActionError extends Error {
|
||
constructor(...args){
|
||
super(...args);
|
||
this.name = 'UnrecognizedActionError';
|
||
}
|
||
}
|
||
function unstable_isUnrecognizedActionError(error) {
|
||
return !!(error && typeof error === 'object' && error instanceof UnrecognizedActionError);
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=unrecognized-action-error.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/readonly-url-search-params.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* ReadonlyURLSearchParams implementation shared between client and server.
|
||
* This file is intentionally not marked as 'use client' or 'use server'
|
||
* so it can be imported by both environments.
|
||
*/ /** @internal */ Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "ReadonlyURLSearchParams", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return ReadonlyURLSearchParams;
|
||
}
|
||
});
|
||
class ReadonlyURLSearchParamsError extends Error {
|
||
constructor(){
|
||
super('Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams');
|
||
}
|
||
}
|
||
class ReadonlyURLSearchParams extends URLSearchParams {
|
||
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ append() {
|
||
throw new ReadonlyURLSearchParamsError();
|
||
}
|
||
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ delete() {
|
||
throw new ReadonlyURLSearchParamsError();
|
||
}
|
||
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ set() {
|
||
throw new ReadonlyURLSearchParamsError();
|
||
}
|
||
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ sort() {
|
||
throw new ReadonlyURLSearchParamsError();
|
||
}
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=readonly-url-search-params.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect-status-code.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "RedirectStatusCode", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return RedirectStatusCode;
|
||
}
|
||
});
|
||
var RedirectStatusCode = /*#__PURE__*/ function(RedirectStatusCode) {
|
||
RedirectStatusCode[RedirectStatusCode["SeeOther"] = 303] = "SeeOther";
|
||
RedirectStatusCode[RedirectStatusCode["TemporaryRedirect"] = 307] = "TemporaryRedirect";
|
||
RedirectStatusCode[RedirectStatusCode["PermanentRedirect"] = 308] = "PermanentRedirect";
|
||
return RedirectStatusCode;
|
||
}({});
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=redirect-status-code.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect-error.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
REDIRECT_ERROR_CODE: null,
|
||
RedirectType: null,
|
||
isRedirectError: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
REDIRECT_ERROR_CODE: function() {
|
||
return REDIRECT_ERROR_CODE;
|
||
},
|
||
RedirectType: function() {
|
||
return RedirectType;
|
||
},
|
||
isRedirectError: function() {
|
||
return isRedirectError;
|
||
}
|
||
});
|
||
const _redirectstatuscode = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect-status-code.js [app-ssr] (ecmascript)");
|
||
const REDIRECT_ERROR_CODE = 'NEXT_REDIRECT';
|
||
var RedirectType = /*#__PURE__*/ function(RedirectType) {
|
||
RedirectType["push"] = "push";
|
||
RedirectType["replace"] = "replace";
|
||
return RedirectType;
|
||
}({});
|
||
function isRedirectError(error) {
|
||
if (typeof error !== 'object' || error === null || !('digest' in error) || typeof error.digest !== 'string') {
|
||
return false;
|
||
}
|
||
const digest = error.digest.split(';');
|
||
const [errorCode, type] = digest;
|
||
const destination = digest.slice(2, -2).join(';');
|
||
const status = digest.at(-2);
|
||
const statusCode = Number(status);
|
||
return errorCode === REDIRECT_ERROR_CODE && (type === 'replace' || type === 'push') && typeof destination === 'string' && !isNaN(statusCode) && statusCode in _redirectstatuscode.RedirectStatusCode;
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=redirect-error.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
getRedirectError: null,
|
||
getRedirectStatusCodeFromError: null,
|
||
getRedirectTypeFromError: null,
|
||
getURLFromRedirectError: null,
|
||
permanentRedirect: null,
|
||
redirect: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
getRedirectError: function() {
|
||
return getRedirectError;
|
||
},
|
||
getRedirectStatusCodeFromError: function() {
|
||
return getRedirectStatusCodeFromError;
|
||
},
|
||
getRedirectTypeFromError: function() {
|
||
return getRedirectTypeFromError;
|
||
},
|
||
getURLFromRedirectError: function() {
|
||
return getURLFromRedirectError;
|
||
},
|
||
permanentRedirect: function() {
|
||
return permanentRedirect;
|
||
},
|
||
redirect: function() {
|
||
return redirect;
|
||
}
|
||
});
|
||
const _redirectstatuscode = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect-status-code.js [app-ssr] (ecmascript)");
|
||
const _redirecterror = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect-error.js [app-ssr] (ecmascript)");
|
||
const actionAsyncStorage = ("TURBOPACK compile-time truthy", 1) ? __turbopack_context__.r("[externals]/next/dist/server/app-render/action-async-storage.external.js [external] (next/dist/server/app-render/action-async-storage.external.js, cjs)").actionAsyncStorage : "TURBOPACK unreachable";
|
||
function getRedirectError(url, type, statusCode = _redirectstatuscode.RedirectStatusCode.TemporaryRedirect) {
|
||
const error = Object.defineProperty(new Error(_redirecterror.REDIRECT_ERROR_CODE), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
error.digest = `${_redirecterror.REDIRECT_ERROR_CODE};${type};${url};${statusCode};`;
|
||
return error;
|
||
}
|
||
function redirect(/** The URL to redirect to */ url, type) {
|
||
type ??= actionAsyncStorage?.getStore()?.isAction ? _redirecterror.RedirectType.push : _redirecterror.RedirectType.replace;
|
||
throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.TemporaryRedirect);
|
||
}
|
||
function permanentRedirect(/** The URL to redirect to */ url, type = _redirecterror.RedirectType.replace) {
|
||
throw getRedirectError(url, type, _redirectstatuscode.RedirectStatusCode.PermanentRedirect);
|
||
}
|
||
function getURLFromRedirectError(error) {
|
||
if (!(0, _redirecterror.isRedirectError)(error)) return null;
|
||
// Slices off the beginning of the digest that contains the code and the
|
||
// separating ';'.
|
||
return error.digest.split(';').slice(2, -2).join(';');
|
||
}
|
||
function getRedirectTypeFromError(error) {
|
||
if (!(0, _redirecterror.isRedirectError)(error)) {
|
||
throw Object.defineProperty(new Error('Not a redirect error'), "__NEXT_ERROR_CODE", {
|
||
value: "E260",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
return error.digest.split(';', 2)[1];
|
||
}
|
||
function getRedirectStatusCodeFromError(error) {
|
||
if (!(0, _redirecterror.isRedirectError)(error)) {
|
||
throw Object.defineProperty(new Error('Not a redirect error'), "__NEXT_ERROR_CODE", {
|
||
value: "E260",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
return Number(error.digest.split(';').at(-2));
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=redirect.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
HTTPAccessErrorStatus: null,
|
||
HTTP_ERROR_FALLBACK_ERROR_CODE: null,
|
||
getAccessFallbackErrorTypeByStatus: null,
|
||
getAccessFallbackHTTPStatus: null,
|
||
isHTTPAccessFallbackError: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
HTTPAccessErrorStatus: function() {
|
||
return HTTPAccessErrorStatus;
|
||
},
|
||
HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
|
||
return HTTP_ERROR_FALLBACK_ERROR_CODE;
|
||
},
|
||
getAccessFallbackErrorTypeByStatus: function() {
|
||
return getAccessFallbackErrorTypeByStatus;
|
||
},
|
||
getAccessFallbackHTTPStatus: function() {
|
||
return getAccessFallbackHTTPStatus;
|
||
},
|
||
isHTTPAccessFallbackError: function() {
|
||
return isHTTPAccessFallbackError;
|
||
}
|
||
});
|
||
const HTTPAccessErrorStatus = {
|
||
NOT_FOUND: 404,
|
||
FORBIDDEN: 403,
|
||
UNAUTHORIZED: 401
|
||
};
|
||
const ALLOWED_CODES = new Set(Object.values(HTTPAccessErrorStatus));
|
||
const HTTP_ERROR_FALLBACK_ERROR_CODE = 'NEXT_HTTP_ERROR_FALLBACK';
|
||
function isHTTPAccessFallbackError(error) {
|
||
if (typeof error !== 'object' || error === null || !('digest' in error) || typeof error.digest !== 'string') {
|
||
return false;
|
||
}
|
||
const [prefix, httpStatus] = error.digest.split(';');
|
||
return prefix === HTTP_ERROR_FALLBACK_ERROR_CODE && ALLOWED_CODES.has(Number(httpStatus));
|
||
}
|
||
function getAccessFallbackHTTPStatus(error) {
|
||
const httpStatus = error.digest.split(';')[1];
|
||
return Number(httpStatus);
|
||
}
|
||
function getAccessFallbackErrorTypeByStatus(status) {
|
||
switch(status){
|
||
case 401:
|
||
return 'unauthorized';
|
||
case 403:
|
||
return 'forbidden';
|
||
case 404:
|
||
return 'not-found';
|
||
default:
|
||
return;
|
||
}
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=http-access-fallback.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/not-found.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "notFound", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return notFound;
|
||
}
|
||
});
|
||
const _httpaccessfallback = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js [app-ssr] (ecmascript)");
|
||
/**
|
||
* This function allows you to render the [not-found.js file](https://nextjs.org/docs/app/api-reference/file-conventions/not-found)
|
||
* within a route segment as well as inject a tag.
|
||
*
|
||
* `notFound()` can be used in
|
||
* [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),
|
||
* [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and
|
||
* [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).
|
||
*
|
||
* - In a Server Component, this will insert a `<meta name="robots" content="noindex" />` meta tag and set the status code to 404.
|
||
* - In a Route Handler or Server Action, it will serve a 404 to the caller.
|
||
*
|
||
* Read more: [Next.js Docs: `notFound`](https://nextjs.org/docs/app/api-reference/functions/not-found)
|
||
*/ const DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;
|
||
function notFound() {
|
||
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
error.digest = DIGEST;
|
||
throw error;
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=not-found.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/forbidden.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "forbidden", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return forbidden;
|
||
}
|
||
});
|
||
const _httpaccessfallback = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js [app-ssr] (ecmascript)");
|
||
// TODO: Add `forbidden` docs
|
||
/**
|
||
* @experimental
|
||
* This function allows you to render the [forbidden.js file](https://nextjs.org/docs/app/api-reference/file-conventions/forbidden)
|
||
* within a route segment as well as inject a tag.
|
||
*
|
||
* `forbidden()` can be used in
|
||
* [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),
|
||
* [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and
|
||
* [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).
|
||
*
|
||
* Read more: [Next.js Docs: `forbidden`](https://nextjs.org/docs/app/api-reference/functions/forbidden)
|
||
*/ const DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};403`;
|
||
function forbidden() {
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
throw Object.defineProperty(new Error(`\`forbidden()\` is experimental and only allowed to be enabled when \`experimental.authInterrupts\` is enabled.`), "__NEXT_ERROR_CODE", {
|
||
value: "E488",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
error.digest = DIGEST;
|
||
throw error;
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=forbidden.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/unauthorized.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "unauthorized", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return unauthorized;
|
||
}
|
||
});
|
||
const _httpaccessfallback = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js [app-ssr] (ecmascript)");
|
||
// TODO: Add `unauthorized` docs
|
||
/**
|
||
* @experimental
|
||
* This function allows you to render the [unauthorized.js file](https://nextjs.org/docs/app/api-reference/file-conventions/unauthorized)
|
||
* within a route segment as well as inject a tag.
|
||
*
|
||
* `unauthorized()` can be used in
|
||
* [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),
|
||
* [Route Handlers](https://nextjs.org/docs/app/building-your-application/routing/route-handlers), and
|
||
* [Server Actions](https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations).
|
||
*
|
||
*
|
||
* Read more: [Next.js Docs: `unauthorized`](https://nextjs.org/docs/app/api-reference/functions/unauthorized)
|
||
*/ const DIGEST = `${_httpaccessfallback.HTTP_ERROR_FALLBACK_ERROR_CODE};401`;
|
||
function unauthorized() {
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
throw Object.defineProperty(new Error(`\`unauthorized()\` is experimental and only allowed to be used when \`experimental.authInterrupts\` is enabled.`), "__NEXT_ERROR_CODE", {
|
||
value: "E411",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
const error = Object.defineProperty(new Error(DIGEST), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
error.digest = DIGEST;
|
||
throw error;
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=unauthorized.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/server/dynamic-rendering-utils.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
isHangingPromiseRejectionError: null,
|
||
makeDevtoolsIOAwarePromise: null,
|
||
makeHangingPromise: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
isHangingPromiseRejectionError: function() {
|
||
return isHangingPromiseRejectionError;
|
||
},
|
||
makeDevtoolsIOAwarePromise: function() {
|
||
return makeDevtoolsIOAwarePromise;
|
||
},
|
||
makeHangingPromise: function() {
|
||
return makeHangingPromise;
|
||
}
|
||
});
|
||
function isHangingPromiseRejectionError(err) {
|
||
if (typeof err !== 'object' || err === null || !('digest' in err)) {
|
||
return false;
|
||
}
|
||
return err.digest === HANGING_PROMISE_REJECTION;
|
||
}
|
||
const HANGING_PROMISE_REJECTION = 'HANGING_PROMISE_REJECTION';
|
||
class HangingPromiseRejectionError extends Error {
|
||
constructor(route, expression){
|
||
super(`During prerendering, ${expression} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${expression} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${route}".`), this.route = route, this.expression = expression, this.digest = HANGING_PROMISE_REJECTION;
|
||
}
|
||
}
|
||
const abortListenersBySignal = new WeakMap();
|
||
function makeHangingPromise(signal, route, expression) {
|
||
if (signal.aborted) {
|
||
return Promise.reject(new HangingPromiseRejectionError(route, expression));
|
||
} else {
|
||
const hangingPromise = new Promise((_, reject)=>{
|
||
const boundRejection = reject.bind(null, new HangingPromiseRejectionError(route, expression));
|
||
let currentListeners = abortListenersBySignal.get(signal);
|
||
if (currentListeners) {
|
||
currentListeners.push(boundRejection);
|
||
} else {
|
||
const listeners = [
|
||
boundRejection
|
||
];
|
||
abortListenersBySignal.set(signal, listeners);
|
||
signal.addEventListener('abort', ()=>{
|
||
for(let i = 0; i < listeners.length; i++){
|
||
listeners[i]();
|
||
}
|
||
}, {
|
||
once: true
|
||
});
|
||
}
|
||
});
|
||
// We are fine if no one actually awaits this promise. We shouldn't consider this an unhandled rejection so
|
||
// we attach a noop catch handler here to suppress this warning. If you actually await somewhere or construct
|
||
// your own promise out of it you'll need to ensure you handle the error when it rejects.
|
||
hangingPromise.catch(ignoreReject);
|
||
return hangingPromise;
|
||
}
|
||
}
|
||
function ignoreReject() {}
|
||
function makeDevtoolsIOAwarePromise(underlying, requestStore, stage) {
|
||
if (requestStore.stagedRendering) {
|
||
// We resolve each stage in a timeout, so React DevTools will pick this up as IO.
|
||
return requestStore.stagedRendering.delayUntilStage(stage, undefined, underlying);
|
||
}
|
||
// in React DevTools if we resolve in a setTimeout we will observe
|
||
// the promise resolution as something that can suspend a boundary or root.
|
||
return new Promise((resolve)=>{
|
||
// Must use setTimeout to be considered IO React DevTools. setImmediate will not work.
|
||
setTimeout(()=>{
|
||
resolve(underlying);
|
||
}, 0);
|
||
});
|
||
} //# sourceMappingURL=dynamic-rendering-utils.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/server/lib/router-utils/is-postpone.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "isPostpone", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return isPostpone;
|
||
}
|
||
});
|
||
const REACT_POSTPONE_TYPE = Symbol.for('react.postpone');
|
||
function isPostpone(error) {
|
||
return typeof error === 'object' && error !== null && error.$$typeof === REACT_POSTPONE_TYPE;
|
||
} //# sourceMappingURL=is-postpone.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
// This has to be a shared module which is shared between client component error boundary and dynamic component
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
BailoutToCSRError: null,
|
||
isBailoutToCSRError: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
BailoutToCSRError: function() {
|
||
return BailoutToCSRError;
|
||
},
|
||
isBailoutToCSRError: function() {
|
||
return isBailoutToCSRError;
|
||
}
|
||
});
|
||
const BAILOUT_TO_CSR = 'BAILOUT_TO_CLIENT_SIDE_RENDERING';
|
||
class BailoutToCSRError extends Error {
|
||
constructor(reason){
|
||
super(`Bail out to client-side rendering: ${reason}`), this.reason = reason, this.digest = BAILOUT_TO_CSR;
|
||
}
|
||
}
|
||
function isBailoutToCSRError(err) {
|
||
if (typeof err !== 'object' || err === null || !('digest' in err)) {
|
||
return false;
|
||
}
|
||
return err.digest === BAILOUT_TO_CSR;
|
||
} //# sourceMappingURL=bailout-to-csr.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/is-next-router-error.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "isNextRouterError", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return isNextRouterError;
|
||
}
|
||
});
|
||
const _httpaccessfallback = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js [app-ssr] (ecmascript)");
|
||
const _redirecterror = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect-error.js [app-ssr] (ecmascript)");
|
||
function isNextRouterError(error) {
|
||
return (0, _redirecterror.isRedirectError)(error) || (0, _httpaccessfallback.isHTTPAccessFallbackError)(error);
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=is-next-router-error.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/hooks-server-context.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
DynamicServerError: null,
|
||
isDynamicServerError: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
DynamicServerError: function() {
|
||
return DynamicServerError;
|
||
},
|
||
isDynamicServerError: function() {
|
||
return isDynamicServerError;
|
||
}
|
||
});
|
||
const DYNAMIC_ERROR_CODE = 'DYNAMIC_SERVER_USAGE';
|
||
class DynamicServerError extends Error {
|
||
constructor(description){
|
||
super(`Dynamic server usage: ${description}`), this.description = description, this.digest = DYNAMIC_ERROR_CODE;
|
||
}
|
||
}
|
||
function isDynamicServerError(err) {
|
||
if (typeof err !== 'object' || err === null || !('digest' in err) || typeof err.digest !== 'string') {
|
||
return false;
|
||
}
|
||
return err.digest === DYNAMIC_ERROR_CODE;
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=hooks-server-context.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/static-generation-bailout.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
StaticGenBailoutError: null,
|
||
isStaticGenBailoutError: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
StaticGenBailoutError: function() {
|
||
return StaticGenBailoutError;
|
||
},
|
||
isStaticGenBailoutError: function() {
|
||
return isStaticGenBailoutError;
|
||
}
|
||
});
|
||
const NEXT_STATIC_GEN_BAILOUT = 'NEXT_STATIC_GEN_BAILOUT';
|
||
class StaticGenBailoutError extends Error {
|
||
constructor(...args){
|
||
super(...args), this.code = NEXT_STATIC_GEN_BAILOUT;
|
||
}
|
||
}
|
||
function isStaticGenBailoutError(error) {
|
||
if (typeof error !== 'object' || error === null || !('code' in error)) {
|
||
return false;
|
||
}
|
||
return error.code === NEXT_STATIC_GEN_BAILOUT;
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=static-generation-bailout.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/lib/framework/boundary-constants.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
METADATA_BOUNDARY_NAME: null,
|
||
OUTLET_BOUNDARY_NAME: null,
|
||
ROOT_LAYOUT_BOUNDARY_NAME: null,
|
||
VIEWPORT_BOUNDARY_NAME: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
METADATA_BOUNDARY_NAME: function() {
|
||
return METADATA_BOUNDARY_NAME;
|
||
},
|
||
OUTLET_BOUNDARY_NAME: function() {
|
||
return OUTLET_BOUNDARY_NAME;
|
||
},
|
||
ROOT_LAYOUT_BOUNDARY_NAME: function() {
|
||
return ROOT_LAYOUT_BOUNDARY_NAME;
|
||
},
|
||
VIEWPORT_BOUNDARY_NAME: function() {
|
||
return VIEWPORT_BOUNDARY_NAME;
|
||
}
|
||
});
|
||
const METADATA_BOUNDARY_NAME = '__next_metadata_boundary__';
|
||
const VIEWPORT_BOUNDARY_NAME = '__next_viewport_boundary__';
|
||
const OUTLET_BOUNDARY_NAME = '__next_outlet_boundary__';
|
||
const ROOT_LAYOUT_BOUNDARY_NAME = '__next_root_layout_boundary__'; //# sourceMappingURL=boundary-constants.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/lib/scheduler.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
atLeastOneTask: null,
|
||
scheduleImmediate: null,
|
||
scheduleOnNextTick: null,
|
||
waitAtLeastOneReactRenderTask: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
atLeastOneTask: function() {
|
||
return atLeastOneTask;
|
||
},
|
||
scheduleImmediate: function() {
|
||
return scheduleImmediate;
|
||
},
|
||
scheduleOnNextTick: function() {
|
||
return scheduleOnNextTick;
|
||
},
|
||
waitAtLeastOneReactRenderTask: function() {
|
||
return waitAtLeastOneReactRenderTask;
|
||
}
|
||
});
|
||
const scheduleOnNextTick = (cb)=>{
|
||
// We use Promise.resolve().then() here so that the operation is scheduled at
|
||
// the end of the promise job queue, we then add it to the next process tick
|
||
// to ensure it's evaluated afterwards.
|
||
//
|
||
// This was inspired by the implementation of the DataLoader interface: https://github.com/graphql/dataloader/blob/d336bd15282664e0be4b4a657cb796f09bafbc6b/src/index.js#L213-L255
|
||
//
|
||
Promise.resolve().then(()=>{
|
||
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
||
;
|
||
else {
|
||
process.nextTick(cb);
|
||
}
|
||
});
|
||
};
|
||
const scheduleImmediate = (cb)=>{
|
||
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
||
;
|
||
else {
|
||
setImmediate(cb);
|
||
}
|
||
};
|
||
function atLeastOneTask() {
|
||
return new Promise((resolve)=>scheduleImmediate(resolve));
|
||
}
|
||
function waitAtLeastOneReactRenderTask() {
|
||
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
||
;
|
||
else {
|
||
return new Promise((r)=>setImmediate(r));
|
||
}
|
||
} //# sourceMappingURL=scheduler.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/shared/lib/invariant-error.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "InvariantError", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return InvariantError;
|
||
}
|
||
});
|
||
class InvariantError extends Error {
|
||
constructor(message, options){
|
||
super(`Invariant: ${message.endsWith('.') ? message : message + '.'} This is a bug in Next.js.`, options);
|
||
this.name = 'InvariantError';
|
||
}
|
||
} //# sourceMappingURL=invariant-error.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/server/app-render/dynamic-rendering.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* The functions provided by this module are used to communicate certain properties
|
||
* about the currently running code so that Next.js can make decisions on how to handle
|
||
* the current execution in different rendering modes such as pre-rendering, resuming, and SSR.
|
||
*
|
||
* Today Next.js treats all code as potentially static. Certain APIs may only make sense when dynamically rendering.
|
||
* Traditionally this meant deopting the entire render to dynamic however with PPR we can now deopt parts
|
||
* of a React tree as dynamic while still keeping other parts static. There are really two different kinds of
|
||
* Dynamic indications.
|
||
*
|
||
* The first is simply an intention to be dynamic. unstable_noStore is an example of this where
|
||
* the currently executing code simply declares that the current scope is dynamic but if you use it
|
||
* inside unstable_cache it can still be cached. This type of indication can be removed if we ever
|
||
* make the default dynamic to begin with because the only way you would ever be static is inside
|
||
* a cache scope which this indication does not affect.
|
||
*
|
||
* The second is an indication that a dynamic data source was read. This is a stronger form of dynamic
|
||
* because it means that it is inappropriate to cache this at all. using a dynamic data source inside
|
||
* unstable_cache should error. If you want to use some dynamic data inside unstable_cache you should
|
||
* read that data outside the cache and pass it in as an argument to the cached function.
|
||
*/ Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
Postpone: null,
|
||
PreludeState: null,
|
||
abortAndThrowOnSynchronousRequestDataAccess: null,
|
||
abortOnSynchronousPlatformIOAccess: null,
|
||
accessedDynamicData: null,
|
||
annotateDynamicAccess: null,
|
||
consumeDynamicAccess: null,
|
||
createDynamicTrackingState: null,
|
||
createDynamicValidationState: null,
|
||
createHangingInputAbortSignal: null,
|
||
createRenderInBrowserAbortSignal: null,
|
||
delayUntilRuntimeStage: null,
|
||
formatDynamicAPIAccesses: null,
|
||
getFirstDynamicReason: null,
|
||
getStaticShellDisallowedDynamicReasons: null,
|
||
isDynamicPostpone: null,
|
||
isPrerenderInterruptedError: null,
|
||
logDisallowedDynamicError: null,
|
||
markCurrentScopeAsDynamic: null,
|
||
postponeWithTracking: null,
|
||
throwIfDisallowedDynamic: null,
|
||
throwToInterruptStaticGeneration: null,
|
||
trackAllowedDynamicAccess: null,
|
||
trackDynamicDataInDynamicRender: null,
|
||
trackDynamicHoleInRuntimeShell: null,
|
||
trackDynamicHoleInStaticShell: null,
|
||
useDynamicRouteParams: null,
|
||
useDynamicSearchParams: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
Postpone: function() {
|
||
return Postpone;
|
||
},
|
||
PreludeState: function() {
|
||
return PreludeState;
|
||
},
|
||
abortAndThrowOnSynchronousRequestDataAccess: function() {
|
||
return abortAndThrowOnSynchronousRequestDataAccess;
|
||
},
|
||
abortOnSynchronousPlatformIOAccess: function() {
|
||
return abortOnSynchronousPlatformIOAccess;
|
||
},
|
||
accessedDynamicData: function() {
|
||
return accessedDynamicData;
|
||
},
|
||
annotateDynamicAccess: function() {
|
||
return annotateDynamicAccess;
|
||
},
|
||
consumeDynamicAccess: function() {
|
||
return consumeDynamicAccess;
|
||
},
|
||
createDynamicTrackingState: function() {
|
||
return createDynamicTrackingState;
|
||
},
|
||
createDynamicValidationState: function() {
|
||
return createDynamicValidationState;
|
||
},
|
||
createHangingInputAbortSignal: function() {
|
||
return createHangingInputAbortSignal;
|
||
},
|
||
createRenderInBrowserAbortSignal: function() {
|
||
return createRenderInBrowserAbortSignal;
|
||
},
|
||
delayUntilRuntimeStage: function() {
|
||
return delayUntilRuntimeStage;
|
||
},
|
||
formatDynamicAPIAccesses: function() {
|
||
return formatDynamicAPIAccesses;
|
||
},
|
||
getFirstDynamicReason: function() {
|
||
return getFirstDynamicReason;
|
||
},
|
||
getStaticShellDisallowedDynamicReasons: function() {
|
||
return getStaticShellDisallowedDynamicReasons;
|
||
},
|
||
isDynamicPostpone: function() {
|
||
return isDynamicPostpone;
|
||
},
|
||
isPrerenderInterruptedError: function() {
|
||
return isPrerenderInterruptedError;
|
||
},
|
||
logDisallowedDynamicError: function() {
|
||
return logDisallowedDynamicError;
|
||
},
|
||
markCurrentScopeAsDynamic: function() {
|
||
return markCurrentScopeAsDynamic;
|
||
},
|
||
postponeWithTracking: function() {
|
||
return postponeWithTracking;
|
||
},
|
||
throwIfDisallowedDynamic: function() {
|
||
return throwIfDisallowedDynamic;
|
||
},
|
||
throwToInterruptStaticGeneration: function() {
|
||
return throwToInterruptStaticGeneration;
|
||
},
|
||
trackAllowedDynamicAccess: function() {
|
||
return trackAllowedDynamicAccess;
|
||
},
|
||
trackDynamicDataInDynamicRender: function() {
|
||
return trackDynamicDataInDynamicRender;
|
||
},
|
||
trackDynamicHoleInRuntimeShell: function() {
|
||
return trackDynamicHoleInRuntimeShell;
|
||
},
|
||
trackDynamicHoleInStaticShell: function() {
|
||
return trackDynamicHoleInStaticShell;
|
||
},
|
||
useDynamicRouteParams: function() {
|
||
return useDynamicRouteParams;
|
||
},
|
||
useDynamicSearchParams: function() {
|
||
return useDynamicSearchParams;
|
||
}
|
||
});
|
||
const _react = /*#__PURE__*/ _interop_require_default(__turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js [app-ssr] (ecmascript)"));
|
||
const _hooksservercontext = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/hooks-server-context.js [app-ssr] (ecmascript)");
|
||
const _staticgenerationbailout = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/static-generation-bailout.js [app-ssr] (ecmascript)");
|
||
const _workunitasyncstorageexternal = __turbopack_context__.r("[externals]/next/dist/server/app-render/work-unit-async-storage.external.js [external] (next/dist/server/app-render/work-unit-async-storage.external.js, cjs)");
|
||
const _workasyncstorageexternal = __turbopack_context__.r("[externals]/next/dist/server/app-render/work-async-storage.external.js [external] (next/dist/server/app-render/work-async-storage.external.js, cjs)");
|
||
const _dynamicrenderingutils = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/dynamic-rendering-utils.js [app-ssr] (ecmascript)");
|
||
const _boundaryconstants = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/lib/framework/boundary-constants.js [app-ssr] (ecmascript)");
|
||
const _scheduler = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/lib/scheduler.js [app-ssr] (ecmascript)");
|
||
const _bailouttocsr = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js [app-ssr] (ecmascript)");
|
||
const _invarianterror = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/shared/lib/invariant-error.js [app-ssr] (ecmascript)");
|
||
function _interop_require_default(obj) {
|
||
return obj && obj.__esModule ? obj : {
|
||
default: obj
|
||
};
|
||
}
|
||
const hasPostpone = typeof _react.default.unstable_postpone === 'function';
|
||
function createDynamicTrackingState(isDebugDynamicAccesses) {
|
||
return {
|
||
isDebugDynamicAccesses,
|
||
dynamicAccesses: [],
|
||
syncDynamicErrorWithStack: null
|
||
};
|
||
}
|
||
function createDynamicValidationState() {
|
||
return {
|
||
hasSuspenseAboveBody: false,
|
||
hasDynamicMetadata: false,
|
||
dynamicMetadata: null,
|
||
hasDynamicViewport: false,
|
||
hasAllowedDynamic: false,
|
||
dynamicErrors: []
|
||
};
|
||
}
|
||
function getFirstDynamicReason(trackingState) {
|
||
var _trackingState_dynamicAccesses_;
|
||
return (_trackingState_dynamicAccesses_ = trackingState.dynamicAccesses[0]) == null ? void 0 : _trackingState_dynamicAccesses_.expression;
|
||
}
|
||
function markCurrentScopeAsDynamic(store, workUnitStore, expression) {
|
||
if (workUnitStore) {
|
||
switch(workUnitStore.type){
|
||
case 'cache':
|
||
case 'unstable-cache':
|
||
// Inside cache scopes, marking a scope as dynamic has no effect,
|
||
// because the outer cache scope creates a cache boundary. This is
|
||
// subtly different from reading a dynamic data source, which is
|
||
// forbidden inside a cache scope.
|
||
return;
|
||
case 'private-cache':
|
||
// A private cache scope is already dynamic by definition.
|
||
return;
|
||
case 'prerender-legacy':
|
||
case 'prerender-ppr':
|
||
case 'request':
|
||
break;
|
||
default:
|
||
workUnitStore;
|
||
}
|
||
}
|
||
// If we're forcing dynamic rendering or we're forcing static rendering, we
|
||
// don't need to do anything here because the entire page is already dynamic
|
||
// or it's static and it should not throw or postpone here.
|
||
if (store.forceDynamic || store.forceStatic) return;
|
||
if (store.dynamicShouldError) {
|
||
throw Object.defineProperty(new _staticgenerationbailout.StaticGenBailoutError(`Route ${store.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
|
||
value: "E553",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
if (workUnitStore) {
|
||
switch(workUnitStore.type){
|
||
case 'prerender-ppr':
|
||
return postponeWithTracking(store.route, expression, workUnitStore.dynamicTracking);
|
||
case 'prerender-legacy':
|
||
workUnitStore.revalidate = 0;
|
||
// We aren't prerendering, but we are generating a static page. We need
|
||
// to bail out of static generation.
|
||
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
||
value: "E550",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
store.dynamicUsageDescription = expression;
|
||
store.dynamicUsageStack = err.stack;
|
||
throw err;
|
||
case 'request':
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
workUnitStore.usedDynamic = true;
|
||
}
|
||
break;
|
||
default:
|
||
workUnitStore;
|
||
}
|
||
}
|
||
}
|
||
function throwToInterruptStaticGeneration(expression, store, prerenderStore) {
|
||
// We aren't prerendering but we are generating a static page. We need to bail out of static generation
|
||
const err = Object.defineProperty(new _hooksservercontext.DynamicServerError(`Route ${store.route} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
|
||
value: "E558",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
prerenderStore.revalidate = 0;
|
||
store.dynamicUsageDescription = expression;
|
||
store.dynamicUsageStack = err.stack;
|
||
throw err;
|
||
}
|
||
function trackDynamicDataInDynamicRender(workUnitStore) {
|
||
switch(workUnitStore.type){
|
||
case 'cache':
|
||
case 'unstable-cache':
|
||
// Inside cache scopes, marking a scope as dynamic has no effect,
|
||
// because the outer cache scope creates a cache boundary. This is
|
||
// subtly different from reading a dynamic data source, which is
|
||
// forbidden inside a cache scope.
|
||
return;
|
||
case 'private-cache':
|
||
// A private cache scope is already dynamic by definition.
|
||
return;
|
||
case 'prerender':
|
||
case 'prerender-runtime':
|
||
case 'prerender-legacy':
|
||
case 'prerender-ppr':
|
||
case 'prerender-client':
|
||
break;
|
||
case 'request':
|
||
if ("TURBOPACK compile-time truthy", 1) {
|
||
workUnitStore.usedDynamic = true;
|
||
}
|
||
break;
|
||
default:
|
||
workUnitStore;
|
||
}
|
||
}
|
||
function abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore) {
|
||
const reason = `Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`;
|
||
const error = createPrerenderInterruptedError(reason);
|
||
prerenderStore.controller.abort(error);
|
||
const dynamicTracking = prerenderStore.dynamicTracking;
|
||
if (dynamicTracking) {
|
||
dynamicTracking.dynamicAccesses.push({
|
||
// When we aren't debugging, we don't need to create another error for the
|
||
// stack trace.
|
||
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : undefined,
|
||
expression
|
||
});
|
||
}
|
||
}
|
||
function abortOnSynchronousPlatformIOAccess(route, expression, errorWithStack, prerenderStore) {
|
||
const dynamicTracking = prerenderStore.dynamicTracking;
|
||
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
||
// It is important that we set this tracking value after aborting. Aborts are executed
|
||
// synchronously except for the case where you abort during render itself. By setting this
|
||
// value late we can use it to determine if any of the aborted tasks are the task that
|
||
// called the sync IO expression in the first place.
|
||
if (dynamicTracking) {
|
||
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
||
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
||
}
|
||
}
|
||
}
|
||
function abortAndThrowOnSynchronousRequestDataAccess(route, expression, errorWithStack, prerenderStore) {
|
||
const prerenderSignal = prerenderStore.controller.signal;
|
||
if (prerenderSignal.aborted === false) {
|
||
// TODO it would be better to move this aborted check into the callsite so we can avoid making
|
||
// the error object when it isn't relevant to the aborting of the prerender however
|
||
// since we need the throw semantics regardless of whether we abort it is easier to land
|
||
// this way. See how this was handled with `abortOnSynchronousPlatformIOAccess` for a closer
|
||
// to ideal implementation
|
||
abortOnSynchronousDynamicDataAccess(route, expression, prerenderStore);
|
||
// It is important that we set this tracking value after aborting. Aborts are executed
|
||
// synchronously except for the case where you abort during render itself. By setting this
|
||
// value late we can use it to determine if any of the aborted tasks are the task that
|
||
// called the sync IO expression in the first place.
|
||
const dynamicTracking = prerenderStore.dynamicTracking;
|
||
if (dynamicTracking) {
|
||
if (dynamicTracking.syncDynamicErrorWithStack === null) {
|
||
dynamicTracking.syncDynamicErrorWithStack = errorWithStack;
|
||
}
|
||
}
|
||
}
|
||
throw createPrerenderInterruptedError(`Route ${route} needs to bail out of prerendering at this point because it used ${expression}.`);
|
||
}
|
||
function Postpone({ reason, route }) {
|
||
const prerenderStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
||
const dynamicTracking = prerenderStore && prerenderStore.type === 'prerender-ppr' ? prerenderStore.dynamicTracking : null;
|
||
postponeWithTracking(route, reason, dynamicTracking);
|
||
}
|
||
function postponeWithTracking(route, expression, dynamicTracking) {
|
||
assertPostpone();
|
||
if (dynamicTracking) {
|
||
dynamicTracking.dynamicAccesses.push({
|
||
// When we aren't debugging, we don't need to create another error for the
|
||
// stack trace.
|
||
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : undefined,
|
||
expression
|
||
});
|
||
}
|
||
_react.default.unstable_postpone(createPostponeReason(route, expression));
|
||
}
|
||
function createPostponeReason(route, expression) {
|
||
return `Route ${route} needs to bail out of prerendering at this point because it used ${expression}. ` + `React throws this special object to indicate where. It should not be caught by ` + `your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
|
||
}
|
||
function isDynamicPostpone(err) {
|
||
if (typeof err === 'object' && err !== null && typeof err.message === 'string') {
|
||
return isDynamicPostponeReason(err.message);
|
||
}
|
||
return false;
|
||
}
|
||
function isDynamicPostponeReason(reason) {
|
||
return reason.includes('needs to bail out of prerendering at this point because it used') && reason.includes('Learn more: https://nextjs.org/docs/messages/ppr-caught-error');
|
||
}
|
||
if (isDynamicPostponeReason(createPostponeReason('%%%', '^^^')) === false) {
|
||
throw Object.defineProperty(new Error('Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js'), "__NEXT_ERROR_CODE", {
|
||
value: "E296",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
const NEXT_PRERENDER_INTERRUPTED = 'NEXT_PRERENDER_INTERRUPTED';
|
||
function createPrerenderInterruptedError(message) {
|
||
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
error.digest = NEXT_PRERENDER_INTERRUPTED;
|
||
return error;
|
||
}
|
||
function isPrerenderInterruptedError(error) {
|
||
return typeof error === 'object' && error !== null && error.digest === NEXT_PRERENDER_INTERRUPTED && 'name' in error && 'message' in error && error instanceof Error;
|
||
}
|
||
function accessedDynamicData(dynamicAccesses) {
|
||
return dynamicAccesses.length > 0;
|
||
}
|
||
function consumeDynamicAccess(serverDynamic, clientDynamic) {
|
||
// We mutate because we only call this once we are no longer writing
|
||
// to the dynamicTrackingState and it's more efficient than creating a new
|
||
// array.
|
||
serverDynamic.dynamicAccesses.push(...clientDynamic.dynamicAccesses);
|
||
return serverDynamic.dynamicAccesses;
|
||
}
|
||
function formatDynamicAPIAccesses(dynamicAccesses) {
|
||
return dynamicAccesses.filter((access)=>typeof access.stack === 'string' && access.stack.length > 0).map(({ expression, stack })=>{
|
||
stack = stack.split('\n') // Remove the "Error: " prefix from the first line of the stack trace as
|
||
// well as the first 4 lines of the stack trace which is the distance
|
||
// from the user code and the `new Error().stack` call.
|
||
.slice(4).filter((line)=>{
|
||
// Exclude Next.js internals from the stack trace.
|
||
if (line.includes('node_modules/next/')) {
|
||
return false;
|
||
}
|
||
// Exclude anonymous functions from the stack trace.
|
||
if (line.includes(' (<anonymous>)')) {
|
||
return false;
|
||
}
|
||
// Exclude Node.js internals from the stack trace.
|
||
if (line.includes(' (node:')) {
|
||
return false;
|
||
}
|
||
return true;
|
||
}).join('\n');
|
||
return `Dynamic API Usage Debug - ${expression}:\n${stack}`;
|
||
});
|
||
}
|
||
function assertPostpone() {
|
||
if (!hasPostpone) {
|
||
throw Object.defineProperty(new Error(`Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js`), "__NEXT_ERROR_CODE", {
|
||
value: "E224",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
}
|
||
function createRenderInBrowserAbortSignal() {
|
||
const controller = new AbortController();
|
||
controller.abort(Object.defineProperty(new _bailouttocsr.BailoutToCSRError('Render in Browser'), "__NEXT_ERROR_CODE", {
|
||
value: "E721",
|
||
enumerable: false,
|
||
configurable: true
|
||
}));
|
||
return controller.signal;
|
||
}
|
||
function createHangingInputAbortSignal(workUnitStore) {
|
||
switch(workUnitStore.type){
|
||
case 'prerender':
|
||
case 'prerender-runtime':
|
||
const controller = new AbortController();
|
||
if (workUnitStore.cacheSignal) {
|
||
// If we have a cacheSignal it means we're in a prospective render. If
|
||
// the input we're waiting on is coming from another cache, we do want
|
||
// to wait for it so that we can resolve this cache entry too.
|
||
workUnitStore.cacheSignal.inputReady().then(()=>{
|
||
controller.abort();
|
||
});
|
||
} else {
|
||
// Otherwise we're in the final render and we should already have all
|
||
// our caches filled.
|
||
// If the prerender uses stages, we have wait until the runtime stage,
|
||
// at which point all runtime inputs will be resolved.
|
||
// (otherwise, a runtime prerender might consider `cookies()` hanging
|
||
// even though they'd resolve in the next task.)
|
||
//
|
||
// We might still be waiting on some microtasks so we
|
||
// wait one tick before giving up. When we give up, we still want to
|
||
// render the content of this cache as deeply as we can so that we can
|
||
// suspend as deeply as possible in the tree or not at all if we don't
|
||
// end up waiting for the input.
|
||
const runtimeStagePromise = (0, _workunitasyncstorageexternal.getRuntimeStagePromise)(workUnitStore);
|
||
if (runtimeStagePromise) {
|
||
runtimeStagePromise.then(()=>(0, _scheduler.scheduleOnNextTick)(()=>controller.abort()));
|
||
} else {
|
||
(0, _scheduler.scheduleOnNextTick)(()=>controller.abort());
|
||
}
|
||
}
|
||
return controller.signal;
|
||
case 'prerender-client':
|
||
case 'prerender-ppr':
|
||
case 'prerender-legacy':
|
||
case 'request':
|
||
case 'cache':
|
||
case 'private-cache':
|
||
case 'unstable-cache':
|
||
return undefined;
|
||
default:
|
||
workUnitStore;
|
||
}
|
||
}
|
||
function annotateDynamicAccess(expression, prerenderStore) {
|
||
const dynamicTracking = prerenderStore.dynamicTracking;
|
||
if (dynamicTracking) {
|
||
dynamicTracking.dynamicAccesses.push({
|
||
stack: dynamicTracking.isDebugDynamicAccesses ? new Error().stack : undefined,
|
||
expression
|
||
});
|
||
}
|
||
}
|
||
function useDynamicRouteParams(expression) {
|
||
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
||
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
||
if (workStore && workUnitStore) {
|
||
switch(workUnitStore.type){
|
||
case 'prerender-client':
|
||
case 'prerender':
|
||
{
|
||
const fallbackParams = workUnitStore.fallbackRouteParams;
|
||
if (fallbackParams && fallbackParams.size > 0) {
|
||
// We are in a prerender with cacheComponents semantics. We are going to
|
||
// hang here and never resolve. This will cause the currently
|
||
// rendering component to effectively be a dynamic hole.
|
||
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
|
||
}
|
||
break;
|
||
}
|
||
case 'prerender-ppr':
|
||
{
|
||
const fallbackParams = workUnitStore.fallbackRouteParams;
|
||
if (fallbackParams && fallbackParams.size > 0) {
|
||
return postponeWithTracking(workStore.route, expression, workUnitStore.dynamicTracking);
|
||
}
|
||
break;
|
||
}
|
||
case 'prerender-runtime':
|
||
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called during a runtime prerender. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
||
value: "E771",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
case 'cache':
|
||
case 'private-cache':
|
||
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
||
value: "E745",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
case 'prerender-legacy':
|
||
case 'request':
|
||
case 'unstable-cache':
|
||
break;
|
||
default:
|
||
workUnitStore;
|
||
}
|
||
}
|
||
}
|
||
function useDynamicSearchParams(expression) {
|
||
const workStore = _workasyncstorageexternal.workAsyncStorage.getStore();
|
||
const workUnitStore = _workunitasyncstorageexternal.workUnitAsyncStorage.getStore();
|
||
if (!workStore) {
|
||
// We assume pages router context and just return
|
||
return;
|
||
}
|
||
if (!workUnitStore) {
|
||
(0, _workunitasyncstorageexternal.throwForMissingRequestStore)(expression);
|
||
}
|
||
switch(workUnitStore.type){
|
||
case 'prerender-client':
|
||
{
|
||
_react.default.use((0, _dynamicrenderingutils.makeHangingPromise)(workUnitStore.renderSignal, workStore.route, expression));
|
||
break;
|
||
}
|
||
case 'prerender-legacy':
|
||
case 'prerender-ppr':
|
||
{
|
||
if (workStore.forceStatic) {
|
||
return;
|
||
}
|
||
throw Object.defineProperty(new _bailouttocsr.BailoutToCSRError(expression), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
case 'prerender':
|
||
case 'prerender-runtime':
|
||
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called from a Server Component. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
||
value: "E795",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
case 'cache':
|
||
case 'unstable-cache':
|
||
case 'private-cache':
|
||
throw Object.defineProperty(new _invarianterror.InvariantError(`\`${expression}\` was called inside a cache scope. Next.js should be preventing ${expression} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
|
||
value: "E745",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
case 'request':
|
||
return;
|
||
default:
|
||
workUnitStore;
|
||
}
|
||
}
|
||
const hasSuspenseRegex = /\n\s+at Suspense \(<anonymous>\)/;
|
||
// Common implicit body tags that React will treat as body when placed directly in html
|
||
const bodyAndImplicitTags = 'body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6';
|
||
// Detects when RootLayoutBoundary (our framework marker component) appears
|
||
// after Suspense in the component stack, indicating the root layout is wrapped
|
||
// within a Suspense boundary. Ensures no body/html/implicit-body components are in between.
|
||
//
|
||
// Example matches:
|
||
// at Suspense (<anonymous>)
|
||
// at __next_root_layout_boundary__ (<anonymous>)
|
||
//
|
||
// Or with other components in between (but not body/html/implicit-body):
|
||
// at Suspense (<anonymous>)
|
||
// at SomeComponent (<anonymous>)
|
||
// at __next_root_layout_boundary__ (<anonymous>)
|
||
const hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex = new RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:${bodyAndImplicitTags}) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${_boundaryconstants.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`);
|
||
const hasMetadataRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.METADATA_BOUNDARY_NAME}[\\n\\s]`);
|
||
const hasViewportRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`);
|
||
const hasOutletRegex = new RegExp(`\\n\\s+at ${_boundaryconstants.OUTLET_BOUNDARY_NAME}[\\n\\s]`);
|
||
function trackAllowedDynamicAccess(workStore, componentStack, dynamicValidation, clientDynamic) {
|
||
if (hasOutletRegex.test(componentStack)) {
|
||
// We don't need to track that this is dynamic. It is only so when something else is also dynamic.
|
||
return;
|
||
} else if (hasMetadataRegex.test(componentStack)) {
|
||
dynamicValidation.hasDynamicMetadata = true;
|
||
return;
|
||
} else if (hasViewportRegex.test(componentStack)) {
|
||
dynamicValidation.hasDynamicViewport = true;
|
||
return;
|
||
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
||
// For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.
|
||
// But if you have Suspense above body, the prelude is empty but we allow that because having Suspense
|
||
// is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.
|
||
dynamicValidation.hasAllowedDynamic = true;
|
||
dynamicValidation.hasSuspenseAboveBody = true;
|
||
return;
|
||
} else if (hasSuspenseRegex.test(componentStack)) {
|
||
// this error had a Suspense boundary above it so we don't need to report it as a source
|
||
// of disallowed
|
||
dynamicValidation.hasAllowedDynamic = true;
|
||
return;
|
||
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
||
// This task was the task that called the sync error.
|
||
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
||
return;
|
||
} else {
|
||
const message = `Route "${workStore.route}": Uncached data was accessed outside of ` + '<Suspense>. This delays the entire page from rendering, resulting in a ' + 'slow user experience. Learn more: ' + 'https://nextjs.org/docs/messages/blocking-route';
|
||
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
||
dynamicValidation.dynamicErrors.push(error);
|
||
return;
|
||
}
|
||
}
|
||
function trackDynamicHoleInRuntimeShell(workStore, componentStack, dynamicValidation, clientDynamic) {
|
||
if (hasOutletRegex.test(componentStack)) {
|
||
// We don't need to track that this is dynamic. It is only so when something else is also dynamic.
|
||
return;
|
||
} else if (hasMetadataRegex.test(componentStack)) {
|
||
const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`;
|
||
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
||
dynamicValidation.dynamicMetadata = error;
|
||
return;
|
||
} else if (hasViewportRegex.test(componentStack)) {
|
||
const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`;
|
||
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
||
dynamicValidation.dynamicErrors.push(error);
|
||
return;
|
||
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
||
// For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.
|
||
// But if you have Suspense above body, the prelude is empty but we allow that because having Suspense
|
||
// is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.
|
||
dynamicValidation.hasAllowedDynamic = true;
|
||
dynamicValidation.hasSuspenseAboveBody = true;
|
||
return;
|
||
} else if (hasSuspenseRegex.test(componentStack)) {
|
||
// this error had a Suspense boundary above it so we don't need to report it as a source
|
||
// of disallowed
|
||
dynamicValidation.hasAllowedDynamic = true;
|
||
return;
|
||
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
||
// This task was the task that called the sync error.
|
||
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
||
return;
|
||
} else {
|
||
const message = `Route "${workStore.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
|
||
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
||
dynamicValidation.dynamicErrors.push(error);
|
||
return;
|
||
}
|
||
}
|
||
function trackDynamicHoleInStaticShell(workStore, componentStack, dynamicValidation, clientDynamic) {
|
||
if (hasOutletRegex.test(componentStack)) {
|
||
// We don't need to track that this is dynamic. It is only so when something else is also dynamic.
|
||
return;
|
||
} else if (hasMetadataRegex.test(componentStack)) {
|
||
const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`;
|
||
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
||
dynamicValidation.dynamicMetadata = error;
|
||
return;
|
||
} else if (hasViewportRegex.test(componentStack)) {
|
||
const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`;
|
||
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
||
dynamicValidation.dynamicErrors.push(error);
|
||
return;
|
||
} else if (hasSuspenseBeforeRootLayoutWithoutBodyOrImplicitBodyRegex.test(componentStack)) {
|
||
// For Suspense within body, the prelude wouldn't be empty so it wouldn't violate the empty static shells rule.
|
||
// But if you have Suspense above body, the prelude is empty but we allow that because having Suspense
|
||
// is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.
|
||
dynamicValidation.hasAllowedDynamic = true;
|
||
dynamicValidation.hasSuspenseAboveBody = true;
|
||
return;
|
||
} else if (hasSuspenseRegex.test(componentStack)) {
|
||
// this error had a Suspense boundary above it so we don't need to report it as a source
|
||
// of disallowed
|
||
dynamicValidation.hasAllowedDynamic = true;
|
||
return;
|
||
} else if (clientDynamic.syncDynamicErrorWithStack) {
|
||
// This task was the task that called the sync error.
|
||
dynamicValidation.dynamicErrors.push(clientDynamic.syncDynamicErrorWithStack);
|
||
return;
|
||
} else {
|
||
const message = `Route "${workStore.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`;
|
||
const error = createErrorWithComponentOrOwnerStack(message, componentStack);
|
||
dynamicValidation.dynamicErrors.push(error);
|
||
return;
|
||
}
|
||
}
|
||
/**
|
||
* In dev mode, we prefer using the owner stack, otherwise the provided
|
||
* component stack is used.
|
||
*/ function createErrorWithComponentOrOwnerStack(message, componentStack) {
|
||
const ownerStack = ("TURBOPACK compile-time value", "development") !== 'production' && _react.default.captureOwnerStack ? _react.default.captureOwnerStack() : null;
|
||
const error = Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
||
value: "E394",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
// TODO go back to owner stack here if available. This is temporarily using componentStack to get the right
|
||
//
|
||
error.stack = error.name + ': ' + message + (ownerStack || componentStack);
|
||
return error;
|
||
}
|
||
var PreludeState = /*#__PURE__*/ function(PreludeState) {
|
||
PreludeState[PreludeState["Full"] = 0] = "Full";
|
||
PreludeState[PreludeState["Empty"] = 1] = "Empty";
|
||
PreludeState[PreludeState["Errored"] = 2] = "Errored";
|
||
return PreludeState;
|
||
}({});
|
||
function logDisallowedDynamicError(workStore, error) {
|
||
console.error(error);
|
||
if (!workStore.dev) {
|
||
if (workStore.hasReadableErrorStacks) {
|
||
console.error(`To get a more detailed stack trace and pinpoint the issue, start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.`);
|
||
} else {
|
||
console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
|
||
- Start the app in development mode by running \`next dev\`, then open "${workStore.route}" in your browser to investigate the error.
|
||
- Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`);
|
||
}
|
||
}
|
||
}
|
||
function throwIfDisallowedDynamic(workStore, prelude, dynamicValidation, serverDynamic) {
|
||
if (serverDynamic.syncDynamicErrorWithStack) {
|
||
logDisallowedDynamicError(workStore, serverDynamic.syncDynamicErrorWithStack);
|
||
throw new _staticgenerationbailout.StaticGenBailoutError();
|
||
}
|
||
if (prelude !== 0) {
|
||
if (dynamicValidation.hasSuspenseAboveBody) {
|
||
// This route has opted into allowing fully dynamic rendering
|
||
// by including a Suspense boundary above the body. In this case
|
||
// a lack of a shell is not considered disallowed so we simply return
|
||
return;
|
||
}
|
||
// We didn't have any sync bailouts but there may be user code which
|
||
// blocked the root. We would have captured these during the prerender
|
||
// and can log them here and then terminate the build/validating render
|
||
const dynamicErrors = dynamicValidation.dynamicErrors;
|
||
if (dynamicErrors.length > 0) {
|
||
for(let i = 0; i < dynamicErrors.length; i++){
|
||
logDisallowedDynamicError(workStore, dynamicErrors[i]);
|
||
}
|
||
throw new _staticgenerationbailout.StaticGenBailoutError();
|
||
}
|
||
// If we got this far then the only other thing that could be blocking
|
||
// the root is dynamic Viewport. If this is dynamic then
|
||
// you need to opt into that by adding a Suspense boundary above the body
|
||
// to indicate your are ok with fully dynamic rendering.
|
||
if (dynamicValidation.hasDynamicViewport) {
|
||
console.error(`Route "${workStore.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`);
|
||
throw new _staticgenerationbailout.StaticGenBailoutError();
|
||
}
|
||
if (prelude === 1) {
|
||
// If we ever get this far then we messed up the tracking of invalid dynamic.
|
||
// We still adhere to the constraint that you must produce a shell but invite the
|
||
// user to report this as a bug in Next.js.
|
||
console.error(`Route "${workStore.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`);
|
||
throw new _staticgenerationbailout.StaticGenBailoutError();
|
||
}
|
||
} else {
|
||
if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.hasDynamicMetadata) {
|
||
console.error(`Route "${workStore.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`);
|
||
throw new _staticgenerationbailout.StaticGenBailoutError();
|
||
}
|
||
}
|
||
}
|
||
function getStaticShellDisallowedDynamicReasons(workStore, prelude, dynamicValidation) {
|
||
if (dynamicValidation.hasSuspenseAboveBody) {
|
||
// This route has opted into allowing fully dynamic rendering
|
||
// by including a Suspense boundary above the body. In this case
|
||
// a lack of a shell is not considered disallowed so we simply return
|
||
return [];
|
||
}
|
||
if (prelude !== 0) {
|
||
// We didn't have any sync bailouts but there may be user code which
|
||
// blocked the root. We would have captured these during the prerender
|
||
// and can log them here and then terminate the build/validating render
|
||
const dynamicErrors = dynamicValidation.dynamicErrors;
|
||
if (dynamicErrors.length > 0) {
|
||
return dynamicErrors;
|
||
}
|
||
if (prelude === 1) {
|
||
// If we ever get this far then we messed up the tracking of invalid dynamic.
|
||
// We still adhere to the constraint that you must produce a shell but invite the
|
||
// user to report this as a bug in Next.js.
|
||
return [
|
||
Object.defineProperty(new _invarianterror.InvariantError(`Route "${workStore.route}" did not produce a static shell and Next.js was unable to determine a reason.`), "__NEXT_ERROR_CODE", {
|
||
value: "E936",
|
||
enumerable: false,
|
||
configurable: true
|
||
})
|
||
];
|
||
}
|
||
} else {
|
||
// We have a prelude but we might still have dynamic metadata without any other dynamic access
|
||
if (dynamicValidation.hasAllowedDynamic === false && dynamicValidation.dynamicErrors.length === 0 && dynamicValidation.dynamicMetadata) {
|
||
return [
|
||
dynamicValidation.dynamicMetadata
|
||
];
|
||
}
|
||
}
|
||
// We had a non-empty prelude and there are no dynamic holes
|
||
return [];
|
||
}
|
||
function delayUntilRuntimeStage(prerenderStore, result) {
|
||
if (prerenderStore.runtimeStagePromise) {
|
||
return prerenderStore.runtimeStagePromise.then(()=>result);
|
||
}
|
||
return result;
|
||
} //# sourceMappingURL=dynamic-rendering.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/unstable-rethrow.server.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "unstable_rethrow", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return unstable_rethrow;
|
||
}
|
||
});
|
||
const _dynamicrenderingutils = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/dynamic-rendering-utils.js [app-ssr] (ecmascript)");
|
||
const _ispostpone = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/lib/router-utils/is-postpone.js [app-ssr] (ecmascript)");
|
||
const _bailouttocsr = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js [app-ssr] (ecmascript)");
|
||
const _isnextroutererror = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/is-next-router-error.js [app-ssr] (ecmascript)");
|
||
const _dynamicrendering = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/app-render/dynamic-rendering.js [app-ssr] (ecmascript)");
|
||
const _hooksservercontext = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/hooks-server-context.js [app-ssr] (ecmascript)");
|
||
function unstable_rethrow(error) {
|
||
if ((0, _isnextroutererror.isNextRouterError)(error) || (0, _bailouttocsr.isBailoutToCSRError)(error) || (0, _hooksservercontext.isDynamicServerError)(error) || (0, _dynamicrendering.isDynamicPostpone)(error) || (0, _ispostpone.isPostpone)(error) || (0, _dynamicrenderingutils.isHangingPromiseRejectionError)(error) || (0, _dynamicrendering.isPrerenderInterruptedError)(error)) {
|
||
throw error;
|
||
}
|
||
if (error instanceof Error && 'cause' in error) {
|
||
unstable_rethrow(error.cause);
|
||
}
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=unstable-rethrow.server.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/unstable-rethrow.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* This function should be used to rethrow internal Next.js errors so that they can be handled by the framework.
|
||
* When wrapping an API that uses errors to interrupt control flow, you should use this function before you do any error handling.
|
||
* This function will rethrow the error if it is a Next.js error so it can be handled, otherwise it will do nothing.
|
||
*
|
||
* Read more: [Next.js Docs: `unstable_rethrow`](https://nextjs.org/docs/app/api-reference/functions/unstable_rethrow)
|
||
*/ Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
Object.defineProperty(exports, "unstable_rethrow", {
|
||
enumerable: true,
|
||
get: function() {
|
||
return unstable_rethrow;
|
||
}
|
||
});
|
||
const unstable_rethrow = ("TURBOPACK compile-time truthy", 1) ? __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/unstable-rethrow.server.js [app-ssr] (ecmascript)").unstable_rethrow : "TURBOPACK unreachable";
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=unstable-rethrow.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/navigation.react-server.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
ReadonlyURLSearchParams: null,
|
||
RedirectType: null,
|
||
forbidden: null,
|
||
notFound: null,
|
||
permanentRedirect: null,
|
||
redirect: null,
|
||
unauthorized: null,
|
||
unstable_isUnrecognizedActionError: null,
|
||
unstable_rethrow: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
ReadonlyURLSearchParams: function() {
|
||
return _readonlyurlsearchparams.ReadonlyURLSearchParams;
|
||
},
|
||
RedirectType: function() {
|
||
return _redirecterror.RedirectType;
|
||
},
|
||
forbidden: function() {
|
||
return _forbidden.forbidden;
|
||
},
|
||
notFound: function() {
|
||
return _notfound.notFound;
|
||
},
|
||
permanentRedirect: function() {
|
||
return _redirect.permanentRedirect;
|
||
},
|
||
redirect: function() {
|
||
return _redirect.redirect;
|
||
},
|
||
unauthorized: function() {
|
||
return _unauthorized.unauthorized;
|
||
},
|
||
unstable_isUnrecognizedActionError: function() {
|
||
return unstable_isUnrecognizedActionError;
|
||
},
|
||
unstable_rethrow: function() {
|
||
return _unstablerethrow.unstable_rethrow;
|
||
}
|
||
});
|
||
const _readonlyurlsearchparams = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/readonly-url-search-params.js [app-ssr] (ecmascript)");
|
||
const _redirect = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect.js [app-ssr] (ecmascript)");
|
||
const _redirecterror = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/redirect-error.js [app-ssr] (ecmascript)");
|
||
const _notfound = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/not-found.js [app-ssr] (ecmascript)");
|
||
const _forbidden = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/forbidden.js [app-ssr] (ecmascript)");
|
||
const _unauthorized = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/unauthorized.js [app-ssr] (ecmascript)");
|
||
const _unstablerethrow = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/unstable-rethrow.js [app-ssr] (ecmascript)");
|
||
function unstable_isUnrecognizedActionError() {
|
||
throw Object.defineProperty(new Error('`unstable_isUnrecognizedActionError` can only be used on the client.'), "__NEXT_ERROR_CODE", {
|
||
value: "E776",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=navigation.react-server.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/navigation.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
Object.defineProperty(exports, "__esModule", {
|
||
value: true
|
||
});
|
||
0 && (module.exports = {
|
||
ReadonlyURLSearchParams: null,
|
||
RedirectType: null,
|
||
ServerInsertedHTMLContext: null,
|
||
forbidden: null,
|
||
notFound: null,
|
||
permanentRedirect: null,
|
||
redirect: null,
|
||
unauthorized: null,
|
||
unstable_isUnrecognizedActionError: null,
|
||
unstable_rethrow: null,
|
||
useParams: null,
|
||
usePathname: null,
|
||
useRouter: null,
|
||
useSearchParams: null,
|
||
useSelectedLayoutSegment: null,
|
||
useSelectedLayoutSegments: null,
|
||
useServerInsertedHTML: null
|
||
});
|
||
function _export(target, all) {
|
||
for(var name in all)Object.defineProperty(target, name, {
|
||
enumerable: true,
|
||
get: all[name]
|
||
});
|
||
}
|
||
_export(exports, {
|
||
// We need the same class that was used to instantiate the context value
|
||
// Otherwise instanceof checks will fail in usercode
|
||
ReadonlyURLSearchParams: function() {
|
||
return _hooksclientcontextsharedruntime.ReadonlyURLSearchParams;
|
||
},
|
||
RedirectType: function() {
|
||
return _navigationreactserver.RedirectType;
|
||
},
|
||
ServerInsertedHTMLContext: function() {
|
||
return _serverinsertedhtmlsharedruntime.ServerInsertedHTMLContext;
|
||
},
|
||
forbidden: function() {
|
||
return _navigationreactserver.forbidden;
|
||
},
|
||
notFound: function() {
|
||
return _navigationreactserver.notFound;
|
||
},
|
||
permanentRedirect: function() {
|
||
return _navigationreactserver.permanentRedirect;
|
||
},
|
||
redirect: function() {
|
||
return _navigationreactserver.redirect;
|
||
},
|
||
unauthorized: function() {
|
||
return _navigationreactserver.unauthorized;
|
||
},
|
||
unstable_isUnrecognizedActionError: function() {
|
||
return _unrecognizedactionerror.unstable_isUnrecognizedActionError;
|
||
},
|
||
unstable_rethrow: function() {
|
||
return _navigationreactserver.unstable_rethrow;
|
||
},
|
||
useParams: function() {
|
||
return useParams;
|
||
},
|
||
usePathname: function() {
|
||
return usePathname;
|
||
},
|
||
useRouter: function() {
|
||
return useRouter;
|
||
},
|
||
useSearchParams: function() {
|
||
return useSearchParams;
|
||
},
|
||
useSelectedLayoutSegment: function() {
|
||
return useSelectedLayoutSegment;
|
||
},
|
||
useSelectedLayoutSegments: function() {
|
||
return useSelectedLayoutSegments;
|
||
},
|
||
useServerInsertedHTML: function() {
|
||
return _serverinsertedhtmlsharedruntime.useServerInsertedHTML;
|
||
}
|
||
});
|
||
const _interop_require_wildcard = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs [app-ssr] (ecmascript)");
|
||
const _react = /*#__PURE__*/ _interop_require_wildcard._(__turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js [app-ssr] (ecmascript)"));
|
||
const _approutercontextsharedruntime = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/app-router-context.js [app-ssr] (ecmascript)");
|
||
const _hooksclientcontextsharedruntime = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/hooks-client-context.js [app-ssr] (ecmascript)");
|
||
const _segment = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/shared/lib/segment.js [app-ssr] (ecmascript)");
|
||
const _serverinsertedhtmlsharedruntime = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/contexts/server-inserted-html.js [app-ssr] (ecmascript)");
|
||
const _unrecognizedactionerror = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/unrecognized-action-error.js [app-ssr] (ecmascript)");
|
||
const _navigationreactserver = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/navigation.react-server.js [app-ssr] (ecmascript)");
|
||
const useDynamicRouteParams = ("TURBOPACK compile-time truthy", 1) ? __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/app-render/dynamic-rendering.js [app-ssr] (ecmascript)").useDynamicRouteParams : "TURBOPACK unreachable";
|
||
const useDynamicSearchParams = ("TURBOPACK compile-time truthy", 1) ? __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/app-render/dynamic-rendering.js [app-ssr] (ecmascript)").useDynamicSearchParams : "TURBOPACK unreachable";
|
||
function useSearchParams() {
|
||
useDynamicSearchParams?.('useSearchParams()');
|
||
const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext);
|
||
// In the case where this is `null`, the compat types added in
|
||
// `next-env.d.ts` will add a new overload that changes the return type to
|
||
// include `null`.
|
||
const readonlySearchParams = (0, _react.useMemo)(()=>{
|
||
if (!searchParams) {
|
||
// When the router is not ready in pages, we won't have the search params
|
||
// available.
|
||
return null;
|
||
}
|
||
return new _hooksclientcontextsharedruntime.ReadonlyURLSearchParams(searchParams);
|
||
}, [
|
||
searchParams
|
||
]);
|
||
// Instrument with Suspense DevTools (dev-only)
|
||
if (("TURBOPACK compile-time value", "development") !== 'production' && 'use' in _react.default) {
|
||
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
||
if (navigationPromises) {
|
||
return (0, _react.use)(navigationPromises.searchParams);
|
||
}
|
||
}
|
||
return readonlySearchParams;
|
||
}
|
||
function usePathname() {
|
||
useDynamicRouteParams?.('usePathname()');
|
||
// In the case where this is `null`, the compat types added in `next-env.d.ts`
|
||
// will add a new overload that changes the return type to include `null`.
|
||
const pathname = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathnameContext);
|
||
// Instrument with Suspense DevTools (dev-only)
|
||
if (("TURBOPACK compile-time value", "development") !== 'production' && 'use' in _react.default) {
|
||
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
||
if (navigationPromises) {
|
||
return (0, _react.use)(navigationPromises.pathname);
|
||
}
|
||
}
|
||
return pathname;
|
||
}
|
||
function useRouter() {
|
||
const router = (0, _react.useContext)(_approutercontextsharedruntime.AppRouterContext);
|
||
if (router === null) {
|
||
throw Object.defineProperty(new Error('invariant expected app router to be mounted'), "__NEXT_ERROR_CODE", {
|
||
value: "E238",
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
}
|
||
return router;
|
||
}
|
||
function useParams() {
|
||
useDynamicRouteParams?.('useParams()');
|
||
const params = (0, _react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext);
|
||
// Instrument with Suspense DevTools (dev-only)
|
||
if (("TURBOPACK compile-time value", "development") !== 'production' && 'use' in _react.default) {
|
||
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
||
if (navigationPromises) {
|
||
return (0, _react.use)(navigationPromises.params);
|
||
}
|
||
}
|
||
return params;
|
||
}
|
||
function useSelectedLayoutSegments(parallelRouteKey = 'children') {
|
||
useDynamicRouteParams?.('useSelectedLayoutSegments()');
|
||
const context = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext);
|
||
// @ts-expect-error This only happens in `pages`. Type is overwritten in navigation.d.ts
|
||
if (!context) return null;
|
||
// Instrument with Suspense DevTools (dev-only)
|
||
if (("TURBOPACK compile-time value", "development") !== 'production' && 'use' in _react.default) {
|
||
const navigationPromises = (0, _react.use)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
||
if (navigationPromises) {
|
||
const promise = navigationPromises.selectedLayoutSegmentsPromises?.get(parallelRouteKey);
|
||
if (promise) {
|
||
// We should always have a promise here, but if we don't, it's not worth erroring over.
|
||
// We just won't be able to instrument it, but can still provide the value.
|
||
return (0, _react.use)(promise);
|
||
}
|
||
}
|
||
}
|
||
return (0, _segment.getSelectedLayoutSegmentPath)(context.parentTree, parallelRouteKey);
|
||
}
|
||
function useSelectedLayoutSegment(parallelRouteKey = 'children') {
|
||
useDynamicRouteParams?.('useSelectedLayoutSegment()');
|
||
const navigationPromises = (0, _react.useContext)(_hooksclientcontextsharedruntime.NavigationPromisesContext);
|
||
const selectedLayoutSegments = useSelectedLayoutSegments(parallelRouteKey);
|
||
// Instrument with Suspense DevTools (dev-only)
|
||
if (("TURBOPACK compile-time value", "development") !== 'production' && navigationPromises && 'use' in _react.default) {
|
||
const promise = navigationPromises.selectedLayoutSegmentPromises?.get(parallelRouteKey);
|
||
if (promise) {
|
||
// We should always have a promise here, but if we don't, it's not worth erroring over.
|
||
// We just won't be able to instrument it, but can still provide the value.
|
||
return (0, _react.use)(promise);
|
||
}
|
||
}
|
||
return (0, _segment.computeSelectedLayoutSegment)(selectedLayoutSegments, parallelRouteKey);
|
||
}
|
||
if ((typeof exports.default === 'function' || typeof exports.default === 'object' && exports.default !== null) && typeof exports.default.__esModule === 'undefined') {
|
||
Object.defineProperty(exports.default, '__esModule', {
|
||
value: true
|
||
});
|
||
Object.assign(exports.default, exports);
|
||
module.exports = exports.default;
|
||
} //# sourceMappingURL=navigation.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/navigation.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/client/components/navigation.js [app-ssr] (ecmascript)");
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/bind.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>bind
|
||
]);
|
||
'use strict';
|
||
function bind(fn, thisArg) {
|
||
return function wrap() {
|
||
return fn.apply(thisArg, arguments);
|
||
};
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$bind$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/bind.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
// utils is a library of generic helper functions non-specific to axios
|
||
const { toString } = Object.prototype;
|
||
const { getPrototypeOf } = Object;
|
||
const { iterator, toStringTag } = Symbol;
|
||
const kindOf = ((cache)=>(thing)=>{
|
||
const str = toString.call(thing);
|
||
return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());
|
||
})(Object.create(null));
|
||
const kindOfTest = (type)=>{
|
||
type = type.toLowerCase();
|
||
return (thing)=>kindOf(thing) === type;
|
||
};
|
||
const typeOfTest = (type)=>(thing)=>typeof thing === type;
|
||
/**
|
||
* Determine if a value is a non-null object
|
||
*
|
||
* @param {Object} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is an Array, otherwise false
|
||
*/ const { isArray } = Array;
|
||
/**
|
||
* Determine if a value is undefined
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if the value is undefined, otherwise false
|
||
*/ const isUndefined = typeOfTest('undefined');
|
||
/**
|
||
* Determine if a value is a Buffer
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a Buffer, otherwise false
|
||
*/ function isBuffer(val) {
|
||
return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor) && isFunction(val.constructor.isBuffer) && val.constructor.isBuffer(val);
|
||
}
|
||
/**
|
||
* Determine if a value is an ArrayBuffer
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is an ArrayBuffer, otherwise false
|
||
*/ const isArrayBuffer = kindOfTest('ArrayBuffer');
|
||
/**
|
||
* Determine if a value is a view on an ArrayBuffer
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
|
||
*/ function isArrayBufferView(val) {
|
||
let result;
|
||
if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {
|
||
result = ArrayBuffer.isView(val);
|
||
} else {
|
||
result = val && val.buffer && isArrayBuffer(val.buffer);
|
||
}
|
||
return result;
|
||
}
|
||
/**
|
||
* Determine if a value is a String
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a String, otherwise false
|
||
*/ const isString = typeOfTest('string');
|
||
/**
|
||
* Determine if a value is a Function
|
||
*
|
||
* @param {*} val The value to test
|
||
* @returns {boolean} True if value is a Function, otherwise false
|
||
*/ const isFunction = typeOfTest('function');
|
||
/**
|
||
* Determine if a value is a Number
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a Number, otherwise false
|
||
*/ const isNumber = typeOfTest('number');
|
||
/**
|
||
* Determine if a value is an Object
|
||
*
|
||
* @param {*} thing The value to test
|
||
*
|
||
* @returns {boolean} True if value is an Object, otherwise false
|
||
*/ const isObject = (thing)=>thing !== null && typeof thing === 'object';
|
||
/**
|
||
* Determine if a value is a Boolean
|
||
*
|
||
* @param {*} thing The value to test
|
||
* @returns {boolean} True if value is a Boolean, otherwise false
|
||
*/ const isBoolean = (thing)=>thing === true || thing === false;
|
||
/**
|
||
* Determine if a value is a plain Object
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a plain Object, otherwise false
|
||
*/ const isPlainObject = (val)=>{
|
||
if (kindOf(val) !== 'object') {
|
||
return false;
|
||
}
|
||
const prototype = getPrototypeOf(val);
|
||
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(toStringTag in val) && !(iterator in val);
|
||
};
|
||
/**
|
||
* Determine if a value is an empty object (safely handles Buffers)
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is an empty object, otherwise false
|
||
*/ const isEmptyObject = (val)=>{
|
||
// Early return for non-objects or Buffers to prevent RangeError
|
||
if (!isObject(val) || isBuffer(val)) {
|
||
return false;
|
||
}
|
||
try {
|
||
return Object.keys(val).length === 0 && Object.getPrototypeOf(val) === Object.prototype;
|
||
} catch (e) {
|
||
// Fallback for any other objects that might cause RangeError with Object.keys()
|
||
return false;
|
||
}
|
||
};
|
||
/**
|
||
* Determine if a value is a Date
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a Date, otherwise false
|
||
*/ const isDate = kindOfTest('Date');
|
||
/**
|
||
* Determine if a value is a File
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a File, otherwise false
|
||
*/ const isFile = kindOfTest('File');
|
||
/**
|
||
* Determine if a value is a React Native Blob
|
||
* React Native "blob": an object with a `uri` attribute. Optionally, it can
|
||
* also have a `name` and `type` attribute to specify filename and content type
|
||
*
|
||
* @see https://github.com/facebook/react-native/blob/26684cf3adf4094eb6c405d345a75bf8c7c0bf88/Libraries/Network/FormData.js#L68-L71
|
||
*
|
||
* @param {*} value The value to test
|
||
*
|
||
* @returns {boolean} True if value is a React Native Blob, otherwise false
|
||
*/ const isReactNativeBlob = (value)=>{
|
||
return !!(value && typeof value.uri !== 'undefined');
|
||
};
|
||
/**
|
||
* Determine if environment is React Native
|
||
* ReactNative `FormData` has a non-standard `getParts()` method
|
||
*
|
||
* @param {*} formData The formData to test
|
||
*
|
||
* @returns {boolean} True if environment is React Native, otherwise false
|
||
*/ const isReactNative = (formData)=>formData && typeof formData.getParts !== 'undefined';
|
||
/**
|
||
* Determine if a value is a Blob
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a Blob, otherwise false
|
||
*/ const isBlob = kindOfTest('Blob');
|
||
/**
|
||
* Determine if a value is a FileList
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a File, otherwise false
|
||
*/ const isFileList = kindOfTest('FileList');
|
||
/**
|
||
* Determine if a value is a Stream
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a Stream, otherwise false
|
||
*/ const isStream = (val)=>isObject(val) && isFunction(val.pipe);
|
||
/**
|
||
* Determine if a value is a FormData
|
||
*
|
||
* @param {*} thing The value to test
|
||
*
|
||
* @returns {boolean} True if value is an FormData, otherwise false
|
||
*/ function getGlobal() {
|
||
if (typeof globalThis !== 'undefined') return globalThis;
|
||
if (typeof self !== 'undefined') return self;
|
||
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
||
;
|
||
if ("TURBOPACK compile-time truthy", 1) return /*TURBOPACK member replacement*/ __turbopack_context__.g;
|
||
//TURBOPACK unreachable
|
||
;
|
||
}
|
||
const G = getGlobal();
|
||
const FormDataCtor = typeof G.FormData !== 'undefined' ? G.FormData : undefined;
|
||
const isFormData = (thing)=>{
|
||
let kind;
|
||
return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction(thing.append) && ((kind = kindOf(thing)) === 'formdata' || kind === 'object' && isFunction(thing.toString) && thing.toString() === '[object FormData]'));
|
||
};
|
||
/**
|
||
* Determine if a value is a URLSearchParams object
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
||
*/ const isURLSearchParams = kindOfTest('URLSearchParams');
|
||
const [isReadableStream, isRequest, isResponse, isHeaders] = [
|
||
'ReadableStream',
|
||
'Request',
|
||
'Response',
|
||
'Headers'
|
||
].map(kindOfTest);
|
||
/**
|
||
* Trim excess whitespace off the beginning and end of a string
|
||
*
|
||
* @param {String} str The String to trim
|
||
*
|
||
* @returns {String} The String freed of excess whitespace
|
||
*/ const trim = (str)=>{
|
||
return str.trim ? str.trim() : str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
||
};
|
||
/**
|
||
* Iterate over an Array or an Object invoking a function for each item.
|
||
*
|
||
* If `obj` is an Array callback will be called passing
|
||
* the value, index, and complete array for each item.
|
||
*
|
||
* If 'obj' is an Object callback will be called passing
|
||
* the value, key, and complete object for each property.
|
||
*
|
||
* @param {Object|Array<unknown>} obj The object to iterate
|
||
* @param {Function} fn The callback to invoke for each item
|
||
*
|
||
* @param {Object} [options]
|
||
* @param {Boolean} [options.allOwnKeys = false]
|
||
* @returns {any}
|
||
*/ function forEach(obj, fn, { allOwnKeys = false } = {}) {
|
||
// Don't bother if no value provided
|
||
if (obj === null || typeof obj === 'undefined') {
|
||
return;
|
||
}
|
||
let i;
|
||
let l;
|
||
// Force an array if not already something iterable
|
||
if (typeof obj !== 'object') {
|
||
/*eslint no-param-reassign:0*/ obj = [
|
||
obj
|
||
];
|
||
}
|
||
if (isArray(obj)) {
|
||
// Iterate over array values
|
||
for(i = 0, l = obj.length; i < l; i++){
|
||
fn.call(null, obj[i], i, obj);
|
||
}
|
||
} else {
|
||
// Buffer check
|
||
if (isBuffer(obj)) {
|
||
return;
|
||
}
|
||
// Iterate over object keys
|
||
const keys = allOwnKeys ? Object.getOwnPropertyNames(obj) : Object.keys(obj);
|
||
const len = keys.length;
|
||
let key;
|
||
for(i = 0; i < len; i++){
|
||
key = keys[i];
|
||
fn.call(null, obj[key], key, obj);
|
||
}
|
||
}
|
||
}
|
||
/**
|
||
* Finds a key in an object, case-insensitive, returning the actual key name.
|
||
* Returns null if the object is a Buffer or if no match is found.
|
||
*
|
||
* @param {Object} obj - The object to search.
|
||
* @param {string} key - The key to find (case-insensitive).
|
||
* @returns {?string} The actual key name if found, otherwise null.
|
||
*/ function findKey(obj, key) {
|
||
if (isBuffer(obj)) {
|
||
return null;
|
||
}
|
||
key = key.toLowerCase();
|
||
const keys = Object.keys(obj);
|
||
let i = keys.length;
|
||
let _key;
|
||
while(i-- > 0){
|
||
_key = keys[i];
|
||
if (key === _key.toLowerCase()) {
|
||
return _key;
|
||
}
|
||
}
|
||
return null;
|
||
}
|
||
const _global = (()=>{
|
||
/*eslint no-undef:0*/ if (typeof globalThis !== 'undefined') return globalThis;
|
||
return typeof self !== 'undefined' ? self : ("TURBOPACK compile-time falsy", 0) ? "TURBOPACK unreachable" : /*TURBOPACK member replacement*/ __turbopack_context__.g;
|
||
})();
|
||
const isContextDefined = (context)=>!isUndefined(context) && context !== _global;
|
||
/**
|
||
* Accepts varargs expecting each argument to be an object, then
|
||
* immutably merges the properties of each object and returns result.
|
||
*
|
||
* When multiple objects contain the same key the later object in
|
||
* the arguments list will take precedence.
|
||
*
|
||
* Example:
|
||
*
|
||
* ```js
|
||
* const result = merge({foo: 123}, {foo: 456});
|
||
* console.log(result.foo); // outputs 456
|
||
* ```
|
||
*
|
||
* @param {Object} obj1 Object to merge
|
||
*
|
||
* @returns {Object} Result of all merge properties
|
||
*/ function merge() {
|
||
const { caseless, skipUndefined } = isContextDefined(this) && this || {};
|
||
const result = {};
|
||
const assignValue = (val, key)=>{
|
||
// Skip dangerous property names to prevent prototype pollution
|
||
if (key === '__proto__' || key === 'constructor' || key === 'prototype') {
|
||
return;
|
||
}
|
||
const targetKey = caseless && findKey(result, key) || key;
|
||
if (isPlainObject(result[targetKey]) && isPlainObject(val)) {
|
||
result[targetKey] = merge(result[targetKey], val);
|
||
} else if (isPlainObject(val)) {
|
||
result[targetKey] = merge({}, val);
|
||
} else if (isArray(val)) {
|
||
result[targetKey] = val.slice();
|
||
} else if (!skipUndefined || !isUndefined(val)) {
|
||
result[targetKey] = val;
|
||
}
|
||
};
|
||
for(let i = 0, l = arguments.length; i < l; i++){
|
||
arguments[i] && forEach(arguments[i], assignValue);
|
||
}
|
||
return result;
|
||
}
|
||
/**
|
||
* Extends object a by mutably adding to it the properties of object b.
|
||
*
|
||
* @param {Object} a The object to be extended
|
||
* @param {Object} b The object to copy properties from
|
||
* @param {Object} thisArg The object to bind function to
|
||
*
|
||
* @param {Object} [options]
|
||
* @param {Boolean} [options.allOwnKeys]
|
||
* @returns {Object} The resulting value of object a
|
||
*/ const extend = (a, b, thisArg, { allOwnKeys } = {})=>{
|
||
forEach(b, (val, key)=>{
|
||
if (thisArg && isFunction(val)) {
|
||
Object.defineProperty(a, key, {
|
||
value: (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$bind$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(val, thisArg),
|
||
writable: true,
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
} else {
|
||
Object.defineProperty(a, key, {
|
||
value: val,
|
||
writable: true,
|
||
enumerable: true,
|
||
configurable: true
|
||
});
|
||
}
|
||
}, {
|
||
allOwnKeys
|
||
});
|
||
return a;
|
||
};
|
||
/**
|
||
* Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
||
*
|
||
* @param {string} content with BOM
|
||
*
|
||
* @returns {string} content value without BOM
|
||
*/ const stripBOM = (content)=>{
|
||
if (content.charCodeAt(0) === 0xfeff) {
|
||
content = content.slice(1);
|
||
}
|
||
return content;
|
||
};
|
||
/**
|
||
* Inherit the prototype methods from one constructor into another
|
||
* @param {function} constructor
|
||
* @param {function} superConstructor
|
||
* @param {object} [props]
|
||
* @param {object} [descriptors]
|
||
*
|
||
* @returns {void}
|
||
*/ const inherits = (constructor, superConstructor, props, descriptors)=>{
|
||
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
||
Object.defineProperty(constructor.prototype, 'constructor', {
|
||
value: constructor,
|
||
writable: true,
|
||
enumerable: false,
|
||
configurable: true
|
||
});
|
||
Object.defineProperty(constructor, 'super', {
|
||
value: superConstructor.prototype
|
||
});
|
||
props && Object.assign(constructor.prototype, props);
|
||
};
|
||
/**
|
||
* Resolve object with deep prototype chain to a flat object
|
||
* @param {Object} sourceObj source object
|
||
* @param {Object} [destObj]
|
||
* @param {Function|Boolean} [filter]
|
||
* @param {Function} [propFilter]
|
||
*
|
||
* @returns {Object}
|
||
*/ const toFlatObject = (sourceObj, destObj, filter, propFilter)=>{
|
||
let props;
|
||
let i;
|
||
let prop;
|
||
const merged = {};
|
||
destObj = destObj || {};
|
||
// eslint-disable-next-line no-eq-null,eqeqeq
|
||
if (sourceObj == null) return destObj;
|
||
do {
|
||
props = Object.getOwnPropertyNames(sourceObj);
|
||
i = props.length;
|
||
while(i-- > 0){
|
||
prop = props[i];
|
||
if ((!propFilter || propFilter(prop, sourceObj, destObj)) && !merged[prop]) {
|
||
destObj[prop] = sourceObj[prop];
|
||
merged[prop] = true;
|
||
}
|
||
}
|
||
sourceObj = filter !== false && getPrototypeOf(sourceObj);
|
||
}while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype)
|
||
return destObj;
|
||
};
|
||
/**
|
||
* Determines whether a string ends with the characters of a specified string
|
||
*
|
||
* @param {String} str
|
||
* @param {String} searchString
|
||
* @param {Number} [position= 0]
|
||
*
|
||
* @returns {boolean}
|
||
*/ const endsWith = (str, searchString, position)=>{
|
||
str = String(str);
|
||
if (position === undefined || position > str.length) {
|
||
position = str.length;
|
||
}
|
||
position -= searchString.length;
|
||
const lastIndex = str.indexOf(searchString, position);
|
||
return lastIndex !== -1 && lastIndex === position;
|
||
};
|
||
/**
|
||
* Returns new array from array like object or null if failed
|
||
*
|
||
* @param {*} [thing]
|
||
*
|
||
* @returns {?Array}
|
||
*/ const toArray = (thing)=>{
|
||
if (!thing) return null;
|
||
if (isArray(thing)) return thing;
|
||
let i = thing.length;
|
||
if (!isNumber(i)) return null;
|
||
const arr = new Array(i);
|
||
while(i-- > 0){
|
||
arr[i] = thing[i];
|
||
}
|
||
return arr;
|
||
};
|
||
/**
|
||
* Checking if the Uint8Array exists and if it does, it returns a function that checks if the
|
||
* thing passed in is an instance of Uint8Array
|
||
*
|
||
* @param {TypedArray}
|
||
*
|
||
* @returns {Array}
|
||
*/ // eslint-disable-next-line func-names
|
||
const isTypedArray = ((TypedArray)=>{
|
||
// eslint-disable-next-line func-names
|
||
return (thing)=>{
|
||
return TypedArray && thing instanceof TypedArray;
|
||
};
|
||
})(typeof Uint8Array !== 'undefined' && getPrototypeOf(Uint8Array));
|
||
/**
|
||
* For each entry in the object, call the function with the key and value.
|
||
*
|
||
* @param {Object<any, any>} obj - The object to iterate over.
|
||
* @param {Function} fn - The function to call for each entry.
|
||
*
|
||
* @returns {void}
|
||
*/ const forEachEntry = (obj, fn)=>{
|
||
const generator = obj && obj[iterator];
|
||
const _iterator = generator.call(obj);
|
||
let result;
|
||
while((result = _iterator.next()) && !result.done){
|
||
const pair = result.value;
|
||
fn.call(obj, pair[0], pair[1]);
|
||
}
|
||
};
|
||
/**
|
||
* It takes a regular expression and a string, and returns an array of all the matches
|
||
*
|
||
* @param {string} regExp - The regular expression to match against.
|
||
* @param {string} str - The string to search.
|
||
*
|
||
* @returns {Array<boolean>}
|
||
*/ const matchAll = (regExp, str)=>{
|
||
let matches;
|
||
const arr = [];
|
||
while((matches = regExp.exec(str)) !== null){
|
||
arr.push(matches);
|
||
}
|
||
return arr;
|
||
};
|
||
/* Checking if the kindOfTest function returns true when passed an HTMLFormElement. */ const isHTMLForm = kindOfTest('HTMLFormElement');
|
||
const toCamelCase = (str)=>{
|
||
return str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function replacer(m, p1, p2) {
|
||
return p1.toUpperCase() + p2;
|
||
});
|
||
};
|
||
/* Creating a function that will check if an object has a property. */ const hasOwnProperty = (({ hasOwnProperty })=>(obj, prop)=>hasOwnProperty.call(obj, prop))(Object.prototype);
|
||
/**
|
||
* Determine if a value is a RegExp object
|
||
*
|
||
* @param {*} val The value to test
|
||
*
|
||
* @returns {boolean} True if value is a RegExp object, otherwise false
|
||
*/ const isRegExp = kindOfTest('RegExp');
|
||
const reduceDescriptors = (obj, reducer)=>{
|
||
const descriptors = Object.getOwnPropertyDescriptors(obj);
|
||
const reducedDescriptors = {};
|
||
forEach(descriptors, (descriptor, name)=>{
|
||
let ret;
|
||
if ((ret = reducer(descriptor, name, obj)) !== false) {
|
||
reducedDescriptors[name] = ret || descriptor;
|
||
}
|
||
});
|
||
Object.defineProperties(obj, reducedDescriptors);
|
||
};
|
||
/**
|
||
* Makes all methods read-only
|
||
* @param {Object} obj
|
||
*/ const freezeMethods = (obj)=>{
|
||
reduceDescriptors(obj, (descriptor, name)=>{
|
||
// skip restricted props in strict mode
|
||
if (isFunction(obj) && [
|
||
'arguments',
|
||
'caller',
|
||
'callee'
|
||
].indexOf(name) !== -1) {
|
||
return false;
|
||
}
|
||
const value = obj[name];
|
||
if (!isFunction(value)) return;
|
||
descriptor.enumerable = false;
|
||
if ('writable' in descriptor) {
|
||
descriptor.writable = false;
|
||
return;
|
||
}
|
||
if (!descriptor.set) {
|
||
descriptor.set = ()=>{
|
||
throw Error("Can not rewrite read-only method '" + name + "'");
|
||
};
|
||
}
|
||
});
|
||
};
|
||
/**
|
||
* Converts an array or a delimited string into an object set with values as keys and true as values.
|
||
* Useful for fast membership checks.
|
||
*
|
||
* @param {Array|string} arrayOrString - The array or string to convert.
|
||
* @param {string} delimiter - The delimiter to use if input is a string.
|
||
* @returns {Object} An object with keys from the array or string, values set to true.
|
||
*/ const toObjectSet = (arrayOrString, delimiter)=>{
|
||
const obj = {};
|
||
const define = (arr)=>{
|
||
arr.forEach((value)=>{
|
||
obj[value] = true;
|
||
});
|
||
};
|
||
isArray(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
|
||
return obj;
|
||
};
|
||
const noop = ()=>{};
|
||
const toFiniteNumber = (value, defaultValue)=>{
|
||
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
||
};
|
||
/**
|
||
* If the thing is a FormData object, return true, otherwise return false.
|
||
*
|
||
* @param {unknown} thing - The thing to check.
|
||
*
|
||
* @returns {boolean}
|
||
*/ function isSpecCompliantForm(thing) {
|
||
return !!(thing && isFunction(thing.append) && thing[toStringTag] === 'FormData' && thing[iterator]);
|
||
}
|
||
/**
|
||
* Recursively converts an object to a JSON-compatible object, handling circular references and Buffers.
|
||
*
|
||
* @param {Object} obj - The object to convert.
|
||
* @returns {Object} The JSON-compatible object.
|
||
*/ const toJSONObject = (obj)=>{
|
||
const stack = new Array(10);
|
||
const visit = (source, i)=>{
|
||
if (isObject(source)) {
|
||
if (stack.indexOf(source) >= 0) {
|
||
return;
|
||
}
|
||
//Buffer check
|
||
if (isBuffer(source)) {
|
||
return source;
|
||
}
|
||
if (!('toJSON' in source)) {
|
||
stack[i] = source;
|
||
const target = isArray(source) ? [] : {};
|
||
forEach(source, (value, key)=>{
|
||
const reducedValue = visit(value, i + 1);
|
||
!isUndefined(reducedValue) && (target[key] = reducedValue);
|
||
});
|
||
stack[i] = undefined;
|
||
return target;
|
||
}
|
||
}
|
||
return source;
|
||
};
|
||
return visit(obj, 0);
|
||
};
|
||
/**
|
||
* Determines if a value is an async function.
|
||
*
|
||
* @param {*} thing - The value to test.
|
||
* @returns {boolean} True if value is an async function, otherwise false.
|
||
*/ const isAsyncFn = kindOfTest('AsyncFunction');
|
||
/**
|
||
* Determines if a value is thenable (has then and catch methods).
|
||
*
|
||
* @param {*} thing - The value to test.
|
||
* @returns {boolean} True if value is thenable, otherwise false.
|
||
*/ const isThenable = (thing)=>thing && (isObject(thing) || isFunction(thing)) && isFunction(thing.then) && isFunction(thing.catch);
|
||
// original code
|
||
// https://github.com/DigitalBrainJS/AxiosPromise/blob/16deab13710ec09779922131f3fa5954320f83ab/lib/utils.js#L11-L34
|
||
/**
|
||
* Provides a cross-platform setImmediate implementation.
|
||
* Uses native setImmediate if available, otherwise falls back to postMessage or setTimeout.
|
||
*
|
||
* @param {boolean} setImmediateSupported - Whether setImmediate is supported.
|
||
* @param {boolean} postMessageSupported - Whether postMessage is supported.
|
||
* @returns {Function} A function to schedule a callback asynchronously.
|
||
*/ const _setImmediate = ((setImmediateSupported, postMessageSupported)=>{
|
||
if (setImmediateSupported) {
|
||
return setImmediate;
|
||
}
|
||
return postMessageSupported ? ((token, callbacks)=>{
|
||
_global.addEventListener('message', ({ source, data })=>{
|
||
if (source === _global && data === token) {
|
||
callbacks.length && callbacks.shift()();
|
||
}
|
||
}, false);
|
||
return (cb)=>{
|
||
callbacks.push(cb);
|
||
_global.postMessage(token, '*');
|
||
};
|
||
})(`axios@${Math.random()}`, []) : (cb)=>setTimeout(cb);
|
||
})(typeof setImmediate === 'function', isFunction(_global.postMessage));
|
||
/**
|
||
* Schedules a microtask or asynchronous callback as soon as possible.
|
||
* Uses queueMicrotask if available, otherwise falls back to process.nextTick or _setImmediate.
|
||
*
|
||
* @type {Function}
|
||
*/ const asap = typeof queueMicrotask !== 'undefined' ? queueMicrotask.bind(_global) : typeof process !== 'undefined' && process.nextTick || _setImmediate;
|
||
// *********************
|
||
const isIterable = (thing)=>thing != null && isFunction(thing[iterator]);
|
||
const __TURBOPACK__default__export__ = {
|
||
isArray,
|
||
isArrayBuffer,
|
||
isBuffer,
|
||
isFormData,
|
||
isArrayBufferView,
|
||
isString,
|
||
isNumber,
|
||
isBoolean,
|
||
isObject,
|
||
isPlainObject,
|
||
isEmptyObject,
|
||
isReadableStream,
|
||
isRequest,
|
||
isResponse,
|
||
isHeaders,
|
||
isUndefined,
|
||
isDate,
|
||
isFile,
|
||
isReactNativeBlob,
|
||
isReactNative,
|
||
isBlob,
|
||
isRegExp,
|
||
isFunction,
|
||
isStream,
|
||
isURLSearchParams,
|
||
isTypedArray,
|
||
isFileList,
|
||
forEach,
|
||
merge,
|
||
extend,
|
||
trim,
|
||
stripBOM,
|
||
inherits,
|
||
toFlatObject,
|
||
kindOf,
|
||
kindOfTest,
|
||
endsWith,
|
||
toArray,
|
||
forEachEntry,
|
||
matchAll,
|
||
isHTMLForm,
|
||
hasOwnProperty,
|
||
hasOwnProp: hasOwnProperty,
|
||
reduceDescriptors,
|
||
freezeMethods,
|
||
toObjectSet,
|
||
toCamelCase,
|
||
noop,
|
||
toFiniteNumber,
|
||
findKey,
|
||
global: _global,
|
||
isContextDefined,
|
||
isSpecCompliantForm,
|
||
toJSONObject,
|
||
isAsyncFn,
|
||
isThenable,
|
||
setImmediate: _setImmediate,
|
||
asap,
|
||
isIterable
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
class AxiosError extends Error {
|
||
static from(error, code, config, request, response, customProps) {
|
||
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
||
axiosError.cause = error;
|
||
axiosError.name = error.name;
|
||
// Preserve status from the original error if not already set from response
|
||
if (error.status != null && axiosError.status == null) {
|
||
axiosError.status = error.status;
|
||
}
|
||
customProps && Object.assign(axiosError, customProps);
|
||
return axiosError;
|
||
}
|
||
/**
|
||
* Create an Error with the specified message, config, error code, request and response.
|
||
*
|
||
* @param {string} message The error message.
|
||
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
||
* @param {Object} [config] The config.
|
||
* @param {Object} [request] The request.
|
||
* @param {Object} [response] The response.
|
||
*
|
||
* @returns {Error} The created error.
|
||
*/ constructor(message, code, config, request, response){
|
||
super(message);
|
||
// Make message enumerable to maintain backward compatibility
|
||
// The native Error constructor sets message as non-enumerable,
|
||
// but axios < v1.13.3 had it as enumerable
|
||
Object.defineProperty(this, 'message', {
|
||
value: message,
|
||
enumerable: true,
|
||
writable: true,
|
||
configurable: true
|
||
});
|
||
this.name = 'AxiosError';
|
||
this.isAxiosError = true;
|
||
code && (this.code = code);
|
||
config && (this.config = config);
|
||
request && (this.request = request);
|
||
if (response) {
|
||
this.response = response;
|
||
this.status = response.status;
|
||
}
|
||
}
|
||
toJSON() {
|
||
return {
|
||
// Standard
|
||
message: this.message,
|
||
name: this.name,
|
||
// Microsoft
|
||
description: this.description,
|
||
number: this.number,
|
||
// Mozilla
|
||
fileName: this.fileName,
|
||
lineNumber: this.lineNumber,
|
||
columnNumber: this.columnNumber,
|
||
stack: this.stack,
|
||
// Axios
|
||
config: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toJSONObject(this.config),
|
||
code: this.code,
|
||
status: this.status
|
||
};
|
||
}
|
||
}
|
||
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
||
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
||
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
||
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
||
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
||
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
||
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
||
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
||
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
||
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
||
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
||
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
||
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
||
const __TURBOPACK__default__export__ = AxiosError;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/delayed-stream/lib/delayed_stream.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var Stream = __turbopack_context__.r("[externals]/stream [external] (stream, cjs)").Stream;
|
||
var util = __turbopack_context__.r("[externals]/util [external] (util, cjs)");
|
||
module.exports = DelayedStream;
|
||
function DelayedStream() {
|
||
this.source = null;
|
||
this.dataSize = 0;
|
||
this.maxDataSize = 1024 * 1024;
|
||
this.pauseStream = true;
|
||
this._maxDataSizeExceeded = false;
|
||
this._released = false;
|
||
this._bufferedEvents = [];
|
||
}
|
||
util.inherits(DelayedStream, Stream);
|
||
DelayedStream.create = function(source, options) {
|
||
var delayedStream = new this();
|
||
options = options || {};
|
||
for(var option in options){
|
||
delayedStream[option] = options[option];
|
||
}
|
||
delayedStream.source = source;
|
||
var realEmit = source.emit;
|
||
source.emit = function() {
|
||
delayedStream._handleEmit(arguments);
|
||
return realEmit.apply(source, arguments);
|
||
};
|
||
source.on('error', function() {});
|
||
if (delayedStream.pauseStream) {
|
||
source.pause();
|
||
}
|
||
return delayedStream;
|
||
};
|
||
Object.defineProperty(DelayedStream.prototype, 'readable', {
|
||
configurable: true,
|
||
enumerable: true,
|
||
get: function() {
|
||
return this.source.readable;
|
||
}
|
||
});
|
||
DelayedStream.prototype.setEncoding = function() {
|
||
return this.source.setEncoding.apply(this.source, arguments);
|
||
};
|
||
DelayedStream.prototype.resume = function() {
|
||
if (!this._released) {
|
||
this.release();
|
||
}
|
||
this.source.resume();
|
||
};
|
||
DelayedStream.prototype.pause = function() {
|
||
this.source.pause();
|
||
};
|
||
DelayedStream.prototype.release = function() {
|
||
this._released = true;
|
||
this._bufferedEvents.forEach((function(args) {
|
||
this.emit.apply(this, args);
|
||
}).bind(this));
|
||
this._bufferedEvents = [];
|
||
};
|
||
DelayedStream.prototype.pipe = function() {
|
||
var r = Stream.prototype.pipe.apply(this, arguments);
|
||
this.resume();
|
||
return r;
|
||
};
|
||
DelayedStream.prototype._handleEmit = function(args) {
|
||
if (this._released) {
|
||
this.emit.apply(this, args);
|
||
return;
|
||
}
|
||
if (args[0] === 'data') {
|
||
this.dataSize += args[1].length;
|
||
this._checkIfMaxDataSizeExceeded();
|
||
}
|
||
this._bufferedEvents.push(args);
|
||
};
|
||
DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
|
||
if (this._maxDataSizeExceeded) {
|
||
return;
|
||
}
|
||
if (this.dataSize <= this.maxDataSize) {
|
||
return;
|
||
}
|
||
this._maxDataSizeExceeded = true;
|
||
var message = 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';
|
||
this.emit('error', new Error(message));
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/combined-stream/lib/combined_stream.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var util = __turbopack_context__.r("[externals]/util [external] (util, cjs)");
|
||
var Stream = __turbopack_context__.r("[externals]/stream [external] (stream, cjs)").Stream;
|
||
var DelayedStream = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/delayed-stream/lib/delayed_stream.js [app-ssr] (ecmascript)");
|
||
module.exports = CombinedStream;
|
||
function CombinedStream() {
|
||
this.writable = false;
|
||
this.readable = true;
|
||
this.dataSize = 0;
|
||
this.maxDataSize = 2 * 1024 * 1024;
|
||
this.pauseStreams = true;
|
||
this._released = false;
|
||
this._streams = [];
|
||
this._currentStream = null;
|
||
this._insideLoop = false;
|
||
this._pendingNext = false;
|
||
}
|
||
util.inherits(CombinedStream, Stream);
|
||
CombinedStream.create = function(options) {
|
||
var combinedStream = new this();
|
||
options = options || {};
|
||
for(var option in options){
|
||
combinedStream[option] = options[option];
|
||
}
|
||
return combinedStream;
|
||
};
|
||
CombinedStream.isStreamLike = function(stream) {
|
||
return typeof stream !== 'function' && typeof stream !== 'string' && typeof stream !== 'boolean' && typeof stream !== 'number' && !Buffer.isBuffer(stream);
|
||
};
|
||
CombinedStream.prototype.append = function(stream) {
|
||
var isStreamLike = CombinedStream.isStreamLike(stream);
|
||
if (isStreamLike) {
|
||
if (!(stream instanceof DelayedStream)) {
|
||
var newStream = DelayedStream.create(stream, {
|
||
maxDataSize: Infinity,
|
||
pauseStream: this.pauseStreams
|
||
});
|
||
stream.on('data', this._checkDataSize.bind(this));
|
||
stream = newStream;
|
||
}
|
||
this._handleErrors(stream);
|
||
if (this.pauseStreams) {
|
||
stream.pause();
|
||
}
|
||
}
|
||
this._streams.push(stream);
|
||
return this;
|
||
};
|
||
CombinedStream.prototype.pipe = function(dest, options) {
|
||
Stream.prototype.pipe.call(this, dest, options);
|
||
this.resume();
|
||
return dest;
|
||
};
|
||
CombinedStream.prototype._getNext = function() {
|
||
this._currentStream = null;
|
||
if (this._insideLoop) {
|
||
this._pendingNext = true;
|
||
return; // defer call
|
||
}
|
||
this._insideLoop = true;
|
||
try {
|
||
do {
|
||
this._pendingNext = false;
|
||
this._realGetNext();
|
||
}while (this._pendingNext)
|
||
} finally{
|
||
this._insideLoop = false;
|
||
}
|
||
};
|
||
CombinedStream.prototype._realGetNext = function() {
|
||
var stream = this._streams.shift();
|
||
if (typeof stream == 'undefined') {
|
||
this.end();
|
||
return;
|
||
}
|
||
if (typeof stream !== 'function') {
|
||
this._pipeNext(stream);
|
||
return;
|
||
}
|
||
var getStream = stream;
|
||
getStream((function(stream) {
|
||
var isStreamLike = CombinedStream.isStreamLike(stream);
|
||
if (isStreamLike) {
|
||
stream.on('data', this._checkDataSize.bind(this));
|
||
this._handleErrors(stream);
|
||
}
|
||
this._pipeNext(stream);
|
||
}).bind(this));
|
||
};
|
||
CombinedStream.prototype._pipeNext = function(stream) {
|
||
this._currentStream = stream;
|
||
var isStreamLike = CombinedStream.isStreamLike(stream);
|
||
if (isStreamLike) {
|
||
stream.on('end', this._getNext.bind(this));
|
||
stream.pipe(this, {
|
||
end: false
|
||
});
|
||
return;
|
||
}
|
||
var value = stream;
|
||
this.write(value);
|
||
this._getNext();
|
||
};
|
||
CombinedStream.prototype._handleErrors = function(stream) {
|
||
var self = this;
|
||
stream.on('error', function(err) {
|
||
self._emitError(err);
|
||
});
|
||
};
|
||
CombinedStream.prototype.write = function(data) {
|
||
this.emit('data', data);
|
||
};
|
||
CombinedStream.prototype.pause = function() {
|
||
if (!this.pauseStreams) {
|
||
return;
|
||
}
|
||
if (this.pauseStreams && this._currentStream && typeof this._currentStream.pause == 'function') this._currentStream.pause();
|
||
this.emit('pause');
|
||
};
|
||
CombinedStream.prototype.resume = function() {
|
||
if (!this._released) {
|
||
this._released = true;
|
||
this.writable = true;
|
||
this._getNext();
|
||
}
|
||
if (this.pauseStreams && this._currentStream && typeof this._currentStream.resume == 'function') this._currentStream.resume();
|
||
this.emit('resume');
|
||
};
|
||
CombinedStream.prototype.end = function() {
|
||
this._reset();
|
||
this.emit('end');
|
||
};
|
||
CombinedStream.prototype.destroy = function() {
|
||
this._reset();
|
||
this.emit('close');
|
||
};
|
||
CombinedStream.prototype._reset = function() {
|
||
this.writable = false;
|
||
this._streams = [];
|
||
this._currentStream = null;
|
||
};
|
||
CombinedStream.prototype._checkDataSize = function() {
|
||
this._updateDataSize();
|
||
if (this.dataSize <= this.maxDataSize) {
|
||
return;
|
||
}
|
||
var message = 'DelayedStream#maxDataSize of ' + this.maxDataSize + ' bytes exceeded.';
|
||
this._emitError(new Error(message));
|
||
};
|
||
CombinedStream.prototype._updateDataSize = function() {
|
||
this.dataSize = 0;
|
||
var self = this;
|
||
this._streams.forEach(function(stream) {
|
||
if (!stream.dataSize) {
|
||
return;
|
||
}
|
||
self.dataSize += stream.dataSize;
|
||
});
|
||
if (this._currentStream && this._currentStream.dataSize) {
|
||
this.dataSize += this._currentStream.dataSize;
|
||
}
|
||
};
|
||
CombinedStream.prototype._emitError = function(err) {
|
||
this._reset();
|
||
this.emit('error', err);
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/mime-db/db.json (json)", ((__turbopack_context__) => {
|
||
|
||
__turbopack_context__.v(JSON.parse("{\"application/1d-interleaved-parityfec\":{\"source\":\"iana\"},\"application/3gpdash-qoe-report+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/3gpp-ims+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/3gpphal+json\":{\"source\":\"iana\",\"compressible\":true},\"application/3gpphalforms+json\":{\"source\":\"iana\",\"compressible\":true},\"application/a2l\":{\"source\":\"iana\"},\"application/ace+cbor\":{\"source\":\"iana\"},\"application/activemessage\":{\"source\":\"iana\"},\"application/activity+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-costmap+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-costmapfilter+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-directory+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-endpointcost+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-endpointcostparams+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-endpointprop+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-endpointpropparams+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-error+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-networkmap+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-networkmapfilter+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-updatestreamcontrol+json\":{\"source\":\"iana\",\"compressible\":true},\"application/alto-updatestreamparams+json\":{\"source\":\"iana\",\"compressible\":true},\"application/aml\":{\"source\":\"iana\"},\"application/andrew-inset\":{\"source\":\"iana\",\"extensions\":[\"ez\"]},\"application/applefile\":{\"source\":\"iana\"},\"application/applixware\":{\"source\":\"apache\",\"extensions\":[\"aw\"]},\"application/at+jwt\":{\"source\":\"iana\"},\"application/atf\":{\"source\":\"iana\"},\"application/atfx\":{\"source\":\"iana\"},\"application/atom+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"atom\"]},\"application/atomcat+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"atomcat\"]},\"application/atomdeleted+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"atomdeleted\"]},\"application/atomicmail\":{\"source\":\"iana\"},\"application/atomsvc+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"atomsvc\"]},\"application/atsc-dwd+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"dwd\"]},\"application/atsc-dynamic-event-message\":{\"source\":\"iana\"},\"application/atsc-held+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"held\"]},\"application/atsc-rdt+json\":{\"source\":\"iana\",\"compressible\":true},\"application/atsc-rsat+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rsat\"]},\"application/atxml\":{\"source\":\"iana\"},\"application/auth-policy+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/bacnet-xdd+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/batch-smtp\":{\"source\":\"iana\"},\"application/bdoc\":{\"compressible\":false,\"extensions\":[\"bdoc\"]},\"application/beep+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/calendar+json\":{\"source\":\"iana\",\"compressible\":true},\"application/calendar+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xcs\"]},\"application/call-completion\":{\"source\":\"iana\"},\"application/cals-1840\":{\"source\":\"iana\"},\"application/captive+json\":{\"source\":\"iana\",\"compressible\":true},\"application/cbor\":{\"source\":\"iana\"},\"application/cbor-seq\":{\"source\":\"iana\"},\"application/cccex\":{\"source\":\"iana\"},\"application/ccmp+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/ccxml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"ccxml\"]},\"application/cdfx+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"cdfx\"]},\"application/cdmi-capability\":{\"source\":\"iana\",\"extensions\":[\"cdmia\"]},\"application/cdmi-container\":{\"source\":\"iana\",\"extensions\":[\"cdmic\"]},\"application/cdmi-domain\":{\"source\":\"iana\",\"extensions\":[\"cdmid\"]},\"application/cdmi-object\":{\"source\":\"iana\",\"extensions\":[\"cdmio\"]},\"application/cdmi-queue\":{\"source\":\"iana\",\"extensions\":[\"cdmiq\"]},\"application/cdni\":{\"source\":\"iana\"},\"application/cea\":{\"source\":\"iana\"},\"application/cea-2018+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/cellml+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/cfw\":{\"source\":\"iana\"},\"application/city+json\":{\"source\":\"iana\",\"compressible\":true},\"application/clr\":{\"source\":\"iana\"},\"application/clue+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/clue_info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/cms\":{\"source\":\"iana\"},\"application/cnrp+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/coap-group+json\":{\"source\":\"iana\",\"compressible\":true},\"application/coap-payload\":{\"source\":\"iana\"},\"application/commonground\":{\"source\":\"iana\"},\"application/conference-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/cose\":{\"source\":\"iana\"},\"application/cose-key\":{\"source\":\"iana\"},\"application/cose-key-set\":{\"source\":\"iana\"},\"application/cpl+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"cpl\"]},\"application/csrattrs\":{\"source\":\"iana\"},\"application/csta+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/cstadata+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/csvm+json\":{\"source\":\"iana\",\"compressible\":true},\"application/cu-seeme\":{\"source\":\"apache\",\"extensions\":[\"cu\"]},\"application/cwt\":{\"source\":\"iana\"},\"application/cybercash\":{\"source\":\"iana\"},\"application/dart\":{\"compressible\":true},\"application/dash+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mpd\"]},\"application/dash-patch+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mpp\"]},\"application/dashdelta\":{\"source\":\"iana\"},\"application/davmount+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"davmount\"]},\"application/dca-rft\":{\"source\":\"iana\"},\"application/dcd\":{\"source\":\"iana\"},\"application/dec-dx\":{\"source\":\"iana\"},\"application/dialog-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/dicom\":{\"source\":\"iana\"},\"application/dicom+json\":{\"source\":\"iana\",\"compressible\":true},\"application/dicom+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/dii\":{\"source\":\"iana\"},\"application/dit\":{\"source\":\"iana\"},\"application/dns\":{\"source\":\"iana\"},\"application/dns+json\":{\"source\":\"iana\",\"compressible\":true},\"application/dns-message\":{\"source\":\"iana\"},\"application/docbook+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"dbk\"]},\"application/dots+cbor\":{\"source\":\"iana\"},\"application/dskpp+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/dssc+der\":{\"source\":\"iana\",\"extensions\":[\"dssc\"]},\"application/dssc+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xdssc\"]},\"application/dvcs\":{\"source\":\"iana\"},\"application/ecmascript\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"es\",\"ecma\"]},\"application/edi-consent\":{\"source\":\"iana\"},\"application/edi-x12\":{\"source\":\"iana\",\"compressible\":false},\"application/edifact\":{\"source\":\"iana\",\"compressible\":false},\"application/efi\":{\"source\":\"iana\"},\"application/elm+json\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/elm+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/emergencycalldata.cap+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/emergencycalldata.comment+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/emergencycalldata.control+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/emergencycalldata.deviceinfo+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/emergencycalldata.ecall.msd\":{\"source\":\"iana\"},\"application/emergencycalldata.providerinfo+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/emergencycalldata.serviceinfo+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/emergencycalldata.subscriberinfo+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/emergencycalldata.veds+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/emma+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"emma\"]},\"application/emotionml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"emotionml\"]},\"application/encaprtp\":{\"source\":\"iana\"},\"application/epp+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/epub+zip\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"epub\"]},\"application/eshop\":{\"source\":\"iana\"},\"application/exi\":{\"source\":\"iana\",\"extensions\":[\"exi\"]},\"application/expect-ct-report+json\":{\"source\":\"iana\",\"compressible\":true},\"application/express\":{\"source\":\"iana\",\"extensions\":[\"exp\"]},\"application/fastinfoset\":{\"source\":\"iana\"},\"application/fastsoap\":{\"source\":\"iana\"},\"application/fdt+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"fdt\"]},\"application/fhir+json\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/fhir+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/fido.trusted-apps+json\":{\"compressible\":true},\"application/fits\":{\"source\":\"iana\"},\"application/flexfec\":{\"source\":\"iana\"},\"application/font-sfnt\":{\"source\":\"iana\"},\"application/font-tdpfr\":{\"source\":\"iana\",\"extensions\":[\"pfr\"]},\"application/font-woff\":{\"source\":\"iana\",\"compressible\":false},\"application/framework-attributes+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/geo+json\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"geojson\"]},\"application/geo+json-seq\":{\"source\":\"iana\"},\"application/geopackage+sqlite3\":{\"source\":\"iana\"},\"application/geoxacml+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/gltf-buffer\":{\"source\":\"iana\"},\"application/gml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"gml\"]},\"application/gpx+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"gpx\"]},\"application/gxf\":{\"source\":\"apache\",\"extensions\":[\"gxf\"]},\"application/gzip\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"gz\"]},\"application/h224\":{\"source\":\"iana\"},\"application/held+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/hjson\":{\"extensions\":[\"hjson\"]},\"application/http\":{\"source\":\"iana\"},\"application/hyperstudio\":{\"source\":\"iana\",\"extensions\":[\"stk\"]},\"application/ibe-key-request+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/ibe-pkg-reply+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/ibe-pp-data\":{\"source\":\"iana\"},\"application/iges\":{\"source\":\"iana\"},\"application/im-iscomposing+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/index\":{\"source\":\"iana\"},\"application/index.cmd\":{\"source\":\"iana\"},\"application/index.obj\":{\"source\":\"iana\"},\"application/index.response\":{\"source\":\"iana\"},\"application/index.vnd\":{\"source\":\"iana\"},\"application/inkml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"ink\",\"inkml\"]},\"application/iotp\":{\"source\":\"iana\"},\"application/ipfix\":{\"source\":\"iana\",\"extensions\":[\"ipfix\"]},\"application/ipp\":{\"source\":\"iana\"},\"application/isup\":{\"source\":\"iana\"},\"application/its+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"its\"]},\"application/java-archive\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"jar\",\"war\",\"ear\"]},\"application/java-serialized-object\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"ser\"]},\"application/java-vm\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"class\"]},\"application/javascript\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"js\",\"mjs\"]},\"application/jf2feed+json\":{\"source\":\"iana\",\"compressible\":true},\"application/jose\":{\"source\":\"iana\"},\"application/jose+json\":{\"source\":\"iana\",\"compressible\":true},\"application/jrd+json\":{\"source\":\"iana\",\"compressible\":true},\"application/jscalendar+json\":{\"source\":\"iana\",\"compressible\":true},\"application/json\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"json\",\"map\"]},\"application/json-patch+json\":{\"source\":\"iana\",\"compressible\":true},\"application/json-seq\":{\"source\":\"iana\"},\"application/json5\":{\"extensions\":[\"json5\"]},\"application/jsonml+json\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"jsonml\"]},\"application/jwk+json\":{\"source\":\"iana\",\"compressible\":true},\"application/jwk-set+json\":{\"source\":\"iana\",\"compressible\":true},\"application/jwt\":{\"source\":\"iana\"},\"application/kpml-request+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/kpml-response+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/ld+json\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"jsonld\"]},\"application/lgr+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"lgr\"]},\"application/link-format\":{\"source\":\"iana\"},\"application/load-control+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/lost+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"lostxml\"]},\"application/lostsync+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/lpf+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/lxf\":{\"source\":\"iana\"},\"application/mac-binhex40\":{\"source\":\"iana\",\"extensions\":[\"hqx\"]},\"application/mac-compactpro\":{\"source\":\"apache\",\"extensions\":[\"cpt\"]},\"application/macwriteii\":{\"source\":\"iana\"},\"application/mads+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mads\"]},\"application/manifest+json\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"webmanifest\"]},\"application/marc\":{\"source\":\"iana\",\"extensions\":[\"mrc\"]},\"application/marcxml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mrcx\"]},\"application/mathematica\":{\"source\":\"iana\",\"extensions\":[\"ma\",\"nb\",\"mb\"]},\"application/mathml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mathml\"]},\"application/mathml-content+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mathml-presentation+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-associated-procedure-description+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-deregister+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-envelope+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-msk+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-msk-response+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-protection-description+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-reception-report+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-register+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-register-response+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-schedule+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbms-user-service-description+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mbox\":{\"source\":\"iana\",\"extensions\":[\"mbox\"]},\"application/media-policy-dataset+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mpf\"]},\"application/media_control+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mediaservercontrol+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mscml\"]},\"application/merge-patch+json\":{\"source\":\"iana\",\"compressible\":true},\"application/metalink+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"metalink\"]},\"application/metalink4+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"meta4\"]},\"application/mets+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mets\"]},\"application/mf4\":{\"source\":\"iana\"},\"application/mikey\":{\"source\":\"iana\"},\"application/mipc\":{\"source\":\"iana\"},\"application/missing-blocks+cbor-seq\":{\"source\":\"iana\"},\"application/mmt-aei+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"maei\"]},\"application/mmt-usd+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"musd\"]},\"application/mods+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mods\"]},\"application/moss-keys\":{\"source\":\"iana\"},\"application/moss-signature\":{\"source\":\"iana\"},\"application/mosskey-data\":{\"source\":\"iana\"},\"application/mosskey-request\":{\"source\":\"iana\"},\"application/mp21\":{\"source\":\"iana\",\"extensions\":[\"m21\",\"mp21\"]},\"application/mp4\":{\"source\":\"iana\",\"extensions\":[\"mp4s\",\"m4p\"]},\"application/mpeg4-generic\":{\"source\":\"iana\"},\"application/mpeg4-iod\":{\"source\":\"iana\"},\"application/mpeg4-iod-xmt\":{\"source\":\"iana\"},\"application/mrb-consumer+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/mrb-publish+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/msc-ivr+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/msc-mixer+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/msword\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"doc\",\"dot\"]},\"application/mud+json\":{\"source\":\"iana\",\"compressible\":true},\"application/multipart-core\":{\"source\":\"iana\"},\"application/mxf\":{\"source\":\"iana\",\"extensions\":[\"mxf\"]},\"application/n-quads\":{\"source\":\"iana\",\"extensions\":[\"nq\"]},\"application/n-triples\":{\"source\":\"iana\",\"extensions\":[\"nt\"]},\"application/nasdata\":{\"source\":\"iana\"},\"application/news-checkgroups\":{\"source\":\"iana\",\"charset\":\"US-ASCII\"},\"application/news-groupinfo\":{\"source\":\"iana\",\"charset\":\"US-ASCII\"},\"application/news-transmission\":{\"source\":\"iana\"},\"application/nlsml+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/node\":{\"source\":\"iana\",\"extensions\":[\"cjs\"]},\"application/nss\":{\"source\":\"iana\"},\"application/oauth-authz-req+jwt\":{\"source\":\"iana\"},\"application/oblivious-dns-message\":{\"source\":\"iana\"},\"application/ocsp-request\":{\"source\":\"iana\"},\"application/ocsp-response\":{\"source\":\"iana\"},\"application/octet-stream\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"bin\",\"dms\",\"lrf\",\"mar\",\"so\",\"dist\",\"distz\",\"pkg\",\"bpk\",\"dump\",\"elc\",\"deploy\",\"exe\",\"dll\",\"deb\",\"dmg\",\"iso\",\"img\",\"msi\",\"msp\",\"msm\",\"buffer\"]},\"application/oda\":{\"source\":\"iana\",\"extensions\":[\"oda\"]},\"application/odm+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/odx\":{\"source\":\"iana\"},\"application/oebps-package+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"opf\"]},\"application/ogg\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"ogx\"]},\"application/omdoc+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"omdoc\"]},\"application/onenote\":{\"source\":\"apache\",\"extensions\":[\"onetoc\",\"onetoc2\",\"onetmp\",\"onepkg\"]},\"application/opc-nodeset+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/oscore\":{\"source\":\"iana\"},\"application/oxps\":{\"source\":\"iana\",\"extensions\":[\"oxps\"]},\"application/p21\":{\"source\":\"iana\"},\"application/p21+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/p2p-overlay+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"relo\"]},\"application/parityfec\":{\"source\":\"iana\"},\"application/passport\":{\"source\":\"iana\"},\"application/patch-ops-error+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xer\"]},\"application/pdf\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"pdf\"]},\"application/pdx\":{\"source\":\"iana\"},\"application/pem-certificate-chain\":{\"source\":\"iana\"},\"application/pgp-encrypted\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"pgp\"]},\"application/pgp-keys\":{\"source\":\"iana\",\"extensions\":[\"asc\"]},\"application/pgp-signature\":{\"source\":\"iana\",\"extensions\":[\"asc\",\"sig\"]},\"application/pics-rules\":{\"source\":\"apache\",\"extensions\":[\"prf\"]},\"application/pidf+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/pidf-diff+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/pkcs10\":{\"source\":\"iana\",\"extensions\":[\"p10\"]},\"application/pkcs12\":{\"source\":\"iana\"},\"application/pkcs7-mime\":{\"source\":\"iana\",\"extensions\":[\"p7m\",\"p7c\"]},\"application/pkcs7-signature\":{\"source\":\"iana\",\"extensions\":[\"p7s\"]},\"application/pkcs8\":{\"source\":\"iana\",\"extensions\":[\"p8\"]},\"application/pkcs8-encrypted\":{\"source\":\"iana\"},\"application/pkix-attr-cert\":{\"source\":\"iana\",\"extensions\":[\"ac\"]},\"application/pkix-cert\":{\"source\":\"iana\",\"extensions\":[\"cer\"]},\"application/pkix-crl\":{\"source\":\"iana\",\"extensions\":[\"crl\"]},\"application/pkix-pkipath\":{\"source\":\"iana\",\"extensions\":[\"pkipath\"]},\"application/pkixcmp\":{\"source\":\"iana\",\"extensions\":[\"pki\"]},\"application/pls+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"pls\"]},\"application/poc-settings+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/postscript\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"ai\",\"eps\",\"ps\"]},\"application/ppsp-tracker+json\":{\"source\":\"iana\",\"compressible\":true},\"application/problem+json\":{\"source\":\"iana\",\"compressible\":true},\"application/problem+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/provenance+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"provx\"]},\"application/prs.alvestrand.titrax-sheet\":{\"source\":\"iana\"},\"application/prs.cww\":{\"source\":\"iana\",\"extensions\":[\"cww\"]},\"application/prs.cyn\":{\"source\":\"iana\",\"charset\":\"7-BIT\"},\"application/prs.hpub+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/prs.nprend\":{\"source\":\"iana\"},\"application/prs.plucker\":{\"source\":\"iana\"},\"application/prs.rdf-xml-crypt\":{\"source\":\"iana\"},\"application/prs.xsf+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/pskc+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"pskcxml\"]},\"application/pvd+json\":{\"source\":\"iana\",\"compressible\":true},\"application/qsig\":{\"source\":\"iana\"},\"application/raml+yaml\":{\"compressible\":true,\"extensions\":[\"raml\"]},\"application/raptorfec\":{\"source\":\"iana\"},\"application/rdap+json\":{\"source\":\"iana\",\"compressible\":true},\"application/rdf+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rdf\",\"owl\"]},\"application/reginfo+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rif\"]},\"application/relax-ng-compact-syntax\":{\"source\":\"iana\",\"extensions\":[\"rnc\"]},\"application/remote-printing\":{\"source\":\"iana\"},\"application/reputon+json\":{\"source\":\"iana\",\"compressible\":true},\"application/resource-lists+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rl\"]},\"application/resource-lists-diff+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rld\"]},\"application/rfc+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/riscos\":{\"source\":\"iana\"},\"application/rlmi+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/rls-services+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rs\"]},\"application/route-apd+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rapd\"]},\"application/route-s-tsid+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"sls\"]},\"application/route-usd+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rusd\"]},\"application/rpki-ghostbusters\":{\"source\":\"iana\",\"extensions\":[\"gbr\"]},\"application/rpki-manifest\":{\"source\":\"iana\",\"extensions\":[\"mft\"]},\"application/rpki-publication\":{\"source\":\"iana\"},\"application/rpki-roa\":{\"source\":\"iana\",\"extensions\":[\"roa\"]},\"application/rpki-updown\":{\"source\":\"iana\"},\"application/rsd+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"rsd\"]},\"application/rss+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"rss\"]},\"application/rtf\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rtf\"]},\"application/rtploopback\":{\"source\":\"iana\"},\"application/rtx\":{\"source\":\"iana\"},\"application/samlassertion+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/samlmetadata+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/sarif+json\":{\"source\":\"iana\",\"compressible\":true},\"application/sarif-external-properties+json\":{\"source\":\"iana\",\"compressible\":true},\"application/sbe\":{\"source\":\"iana\"},\"application/sbml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"sbml\"]},\"application/scaip+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/scim+json\":{\"source\":\"iana\",\"compressible\":true},\"application/scvp-cv-request\":{\"source\":\"iana\",\"extensions\":[\"scq\"]},\"application/scvp-cv-response\":{\"source\":\"iana\",\"extensions\":[\"scs\"]},\"application/scvp-vp-request\":{\"source\":\"iana\",\"extensions\":[\"spq\"]},\"application/scvp-vp-response\":{\"source\":\"iana\",\"extensions\":[\"spp\"]},\"application/sdp\":{\"source\":\"iana\",\"extensions\":[\"sdp\"]},\"application/secevent+jwt\":{\"source\":\"iana\"},\"application/senml+cbor\":{\"source\":\"iana\"},\"application/senml+json\":{\"source\":\"iana\",\"compressible\":true},\"application/senml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"senmlx\"]},\"application/senml-etch+cbor\":{\"source\":\"iana\"},\"application/senml-etch+json\":{\"source\":\"iana\",\"compressible\":true},\"application/senml-exi\":{\"source\":\"iana\"},\"application/sensml+cbor\":{\"source\":\"iana\"},\"application/sensml+json\":{\"source\":\"iana\",\"compressible\":true},\"application/sensml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"sensmlx\"]},\"application/sensml-exi\":{\"source\":\"iana\"},\"application/sep+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/sep-exi\":{\"source\":\"iana\"},\"application/session-info\":{\"source\":\"iana\"},\"application/set-payment\":{\"source\":\"iana\"},\"application/set-payment-initiation\":{\"source\":\"iana\",\"extensions\":[\"setpay\"]},\"application/set-registration\":{\"source\":\"iana\"},\"application/set-registration-initiation\":{\"source\":\"iana\",\"extensions\":[\"setreg\"]},\"application/sgml\":{\"source\":\"iana\"},\"application/sgml-open-catalog\":{\"source\":\"iana\"},\"application/shf+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"shf\"]},\"application/sieve\":{\"source\":\"iana\",\"extensions\":[\"siv\",\"sieve\"]},\"application/simple-filter+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/simple-message-summary\":{\"source\":\"iana\"},\"application/simplesymbolcontainer\":{\"source\":\"iana\"},\"application/sipc\":{\"source\":\"iana\"},\"application/slate\":{\"source\":\"iana\"},\"application/smil\":{\"source\":\"iana\"},\"application/smil+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"smi\",\"smil\"]},\"application/smpte336m\":{\"source\":\"iana\"},\"application/soap+fastinfoset\":{\"source\":\"iana\"},\"application/soap+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/sparql-query\":{\"source\":\"iana\",\"extensions\":[\"rq\"]},\"application/sparql-results+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"srx\"]},\"application/spdx+json\":{\"source\":\"iana\",\"compressible\":true},\"application/spirits-event+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/sql\":{\"source\":\"iana\"},\"application/srgs\":{\"source\":\"iana\",\"extensions\":[\"gram\"]},\"application/srgs+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"grxml\"]},\"application/sru+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"sru\"]},\"application/ssdl+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"ssdl\"]},\"application/ssml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"ssml\"]},\"application/stix+json\":{\"source\":\"iana\",\"compressible\":true},\"application/swid+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"swidtag\"]},\"application/tamp-apex-update\":{\"source\":\"iana\"},\"application/tamp-apex-update-confirm\":{\"source\":\"iana\"},\"application/tamp-community-update\":{\"source\":\"iana\"},\"application/tamp-community-update-confirm\":{\"source\":\"iana\"},\"application/tamp-error\":{\"source\":\"iana\"},\"application/tamp-sequence-adjust\":{\"source\":\"iana\"},\"application/tamp-sequence-adjust-confirm\":{\"source\":\"iana\"},\"application/tamp-status-query\":{\"source\":\"iana\"},\"application/tamp-status-response\":{\"source\":\"iana\"},\"application/tamp-update\":{\"source\":\"iana\"},\"application/tamp-update-confirm\":{\"source\":\"iana\"},\"application/tar\":{\"compressible\":true},\"application/taxii+json\":{\"source\":\"iana\",\"compressible\":true},\"application/td+json\":{\"source\":\"iana\",\"compressible\":true},\"application/tei+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"tei\",\"teicorpus\"]},\"application/tetra_isi\":{\"source\":\"iana\"},\"application/thraud+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"tfi\"]},\"application/timestamp-query\":{\"source\":\"iana\"},\"application/timestamp-reply\":{\"source\":\"iana\"},\"application/timestamped-data\":{\"source\":\"iana\",\"extensions\":[\"tsd\"]},\"application/tlsrpt+gzip\":{\"source\":\"iana\"},\"application/tlsrpt+json\":{\"source\":\"iana\",\"compressible\":true},\"application/tnauthlist\":{\"source\":\"iana\"},\"application/token-introspection+jwt\":{\"source\":\"iana\"},\"application/toml\":{\"compressible\":true,\"extensions\":[\"toml\"]},\"application/trickle-ice-sdpfrag\":{\"source\":\"iana\"},\"application/trig\":{\"source\":\"iana\",\"extensions\":[\"trig\"]},\"application/ttml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"ttml\"]},\"application/tve-trigger\":{\"source\":\"iana\"},\"application/tzif\":{\"source\":\"iana\"},\"application/tzif-leap\":{\"source\":\"iana\"},\"application/ubjson\":{\"compressible\":false,\"extensions\":[\"ubj\"]},\"application/ulpfec\":{\"source\":\"iana\"},\"application/urc-grpsheet+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/urc-ressheet+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rsheet\"]},\"application/urc-targetdesc+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"td\"]},\"application/urc-uisocketdesc+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vcard+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vcard+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vemmi\":{\"source\":\"iana\"},\"application/vividence.scriptfile\":{\"source\":\"apache\"},\"application/vnd.1000minds.decision-model+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"1km\"]},\"application/vnd.3gpp-prose+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp-prose-pc3ch+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp-v2x-local-service-information\":{\"source\":\"iana\"},\"application/vnd.3gpp.5gnas\":{\"source\":\"iana\"},\"application/vnd.3gpp.access-transfer-events+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.bsf+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.gmop+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.gtpc\":{\"source\":\"iana\"},\"application/vnd.3gpp.interworking-data\":{\"source\":\"iana\"},\"application/vnd.3gpp.lpp\":{\"source\":\"iana\"},\"application/vnd.3gpp.mc-signalling-ear\":{\"source\":\"iana\"},\"application/vnd.3gpp.mcdata-affiliation-command+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcdata-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcdata-payload\":{\"source\":\"iana\"},\"application/vnd.3gpp.mcdata-service-config+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcdata-signalling\":{\"source\":\"iana\"},\"application/vnd.3gpp.mcdata-ue-config+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcdata-user-profile+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-affiliation-command+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-floor-request+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-location-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-mbms-usage-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-service-config+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-signed+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-ue-config+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-ue-init-config+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcptt-user-profile+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-affiliation-command+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-affiliation-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-location-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-mbms-usage-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-service-config+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-transmission-request+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-ue-config+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mcvideo-user-profile+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.mid-call+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.ngap\":{\"source\":\"iana\"},\"application/vnd.3gpp.pfcp\":{\"source\":\"iana\"},\"application/vnd.3gpp.pic-bw-large\":{\"source\":\"iana\",\"extensions\":[\"plb\"]},\"application/vnd.3gpp.pic-bw-small\":{\"source\":\"iana\",\"extensions\":[\"psb\"]},\"application/vnd.3gpp.pic-bw-var\":{\"source\":\"iana\",\"extensions\":[\"pvb\"]},\"application/vnd.3gpp.s1ap\":{\"source\":\"iana\"},\"application/vnd.3gpp.sms\":{\"source\":\"iana\"},\"application/vnd.3gpp.sms+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.srvcc-ext+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.srvcc-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.state-and-event-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp.ussd+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp2.bcmcsinfo+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.3gpp2.sms\":{\"source\":\"iana\"},\"application/vnd.3gpp2.tcap\":{\"source\":\"iana\",\"extensions\":[\"tcap\"]},\"application/vnd.3lightssoftware.imagescal\":{\"source\":\"iana\"},\"application/vnd.3m.post-it-notes\":{\"source\":\"iana\",\"extensions\":[\"pwn\"]},\"application/vnd.accpac.simply.aso\":{\"source\":\"iana\",\"extensions\":[\"aso\"]},\"application/vnd.accpac.simply.imp\":{\"source\":\"iana\",\"extensions\":[\"imp\"]},\"application/vnd.acucobol\":{\"source\":\"iana\",\"extensions\":[\"acu\"]},\"application/vnd.acucorp\":{\"source\":\"iana\",\"extensions\":[\"atc\",\"acutc\"]},\"application/vnd.adobe.air-application-installer-package+zip\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"air\"]},\"application/vnd.adobe.flash.movie\":{\"source\":\"iana\"},\"application/vnd.adobe.formscentral.fcdt\":{\"source\":\"iana\",\"extensions\":[\"fcdt\"]},\"application/vnd.adobe.fxp\":{\"source\":\"iana\",\"extensions\":[\"fxp\",\"fxpl\"]},\"application/vnd.adobe.partial-upload\":{\"source\":\"iana\"},\"application/vnd.adobe.xdp+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xdp\"]},\"application/vnd.adobe.xfdf\":{\"source\":\"iana\",\"extensions\":[\"xfdf\"]},\"application/vnd.aether.imp\":{\"source\":\"iana\"},\"application/vnd.afpc.afplinedata\":{\"source\":\"iana\"},\"application/vnd.afpc.afplinedata-pagedef\":{\"source\":\"iana\"},\"application/vnd.afpc.cmoca-cmresource\":{\"source\":\"iana\"},\"application/vnd.afpc.foca-charset\":{\"source\":\"iana\"},\"application/vnd.afpc.foca-codedfont\":{\"source\":\"iana\"},\"application/vnd.afpc.foca-codepage\":{\"source\":\"iana\"},\"application/vnd.afpc.modca\":{\"source\":\"iana\"},\"application/vnd.afpc.modca-cmtable\":{\"source\":\"iana\"},\"application/vnd.afpc.modca-formdef\":{\"source\":\"iana\"},\"application/vnd.afpc.modca-mediummap\":{\"source\":\"iana\"},\"application/vnd.afpc.modca-objectcontainer\":{\"source\":\"iana\"},\"application/vnd.afpc.modca-overlay\":{\"source\":\"iana\"},\"application/vnd.afpc.modca-pagesegment\":{\"source\":\"iana\"},\"application/vnd.age\":{\"source\":\"iana\",\"extensions\":[\"age\"]},\"application/vnd.ah-barcode\":{\"source\":\"iana\"},\"application/vnd.ahead.space\":{\"source\":\"iana\",\"extensions\":[\"ahead\"]},\"application/vnd.airzip.filesecure.azf\":{\"source\":\"iana\",\"extensions\":[\"azf\"]},\"application/vnd.airzip.filesecure.azs\":{\"source\":\"iana\",\"extensions\":[\"azs\"]},\"application/vnd.amadeus+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.amazon.ebook\":{\"source\":\"apache\",\"extensions\":[\"azw\"]},\"application/vnd.amazon.mobi8-ebook\":{\"source\":\"iana\"},\"application/vnd.americandynamics.acc\":{\"source\":\"iana\",\"extensions\":[\"acc\"]},\"application/vnd.amiga.ami\":{\"source\":\"iana\",\"extensions\":[\"ami\"]},\"application/vnd.amundsen.maze+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.android.ota\":{\"source\":\"iana\"},\"application/vnd.android.package-archive\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"apk\"]},\"application/vnd.anki\":{\"source\":\"iana\"},\"application/vnd.anser-web-certificate-issue-initiation\":{\"source\":\"iana\",\"extensions\":[\"cii\"]},\"application/vnd.anser-web-funds-transfer-initiation\":{\"source\":\"apache\",\"extensions\":[\"fti\"]},\"application/vnd.antix.game-component\":{\"source\":\"iana\",\"extensions\":[\"atx\"]},\"application/vnd.apache.arrow.file\":{\"source\":\"iana\"},\"application/vnd.apache.arrow.stream\":{\"source\":\"iana\"},\"application/vnd.apache.thrift.binary\":{\"source\":\"iana\"},\"application/vnd.apache.thrift.compact\":{\"source\":\"iana\"},\"application/vnd.apache.thrift.json\":{\"source\":\"iana\"},\"application/vnd.api+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.aplextor.warrp+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.apothekende.reservation+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.apple.installer+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mpkg\"]},\"application/vnd.apple.keynote\":{\"source\":\"iana\",\"extensions\":[\"key\"]},\"application/vnd.apple.mpegurl\":{\"source\":\"iana\",\"extensions\":[\"m3u8\"]},\"application/vnd.apple.numbers\":{\"source\":\"iana\",\"extensions\":[\"numbers\"]},\"application/vnd.apple.pages\":{\"source\":\"iana\",\"extensions\":[\"pages\"]},\"application/vnd.apple.pkpass\":{\"compressible\":false,\"extensions\":[\"pkpass\"]},\"application/vnd.arastra.swi\":{\"source\":\"iana\"},\"application/vnd.aristanetworks.swi\":{\"source\":\"iana\",\"extensions\":[\"swi\"]},\"application/vnd.artisan+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.artsquare\":{\"source\":\"iana\"},\"application/vnd.astraea-software.iota\":{\"source\":\"iana\",\"extensions\":[\"iota\"]},\"application/vnd.audiograph\":{\"source\":\"iana\",\"extensions\":[\"aep\"]},\"application/vnd.autopackage\":{\"source\":\"iana\"},\"application/vnd.avalon+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.avistar+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.balsamiq.bmml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"bmml\"]},\"application/vnd.balsamiq.bmpr\":{\"source\":\"iana\"},\"application/vnd.banana-accounting\":{\"source\":\"iana\"},\"application/vnd.bbf.usp.error\":{\"source\":\"iana\"},\"application/vnd.bbf.usp.msg\":{\"source\":\"iana\"},\"application/vnd.bbf.usp.msg+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.bekitzur-stech+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.bint.med-content\":{\"source\":\"iana\"},\"application/vnd.biopax.rdf+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.blink-idb-value-wrapper\":{\"source\":\"iana\"},\"application/vnd.blueice.multipass\":{\"source\":\"iana\",\"extensions\":[\"mpm\"]},\"application/vnd.bluetooth.ep.oob\":{\"source\":\"iana\"},\"application/vnd.bluetooth.le.oob\":{\"source\":\"iana\"},\"application/vnd.bmi\":{\"source\":\"iana\",\"extensions\":[\"bmi\"]},\"application/vnd.bpf\":{\"source\":\"iana\"},\"application/vnd.bpf3\":{\"source\":\"iana\"},\"application/vnd.businessobjects\":{\"source\":\"iana\",\"extensions\":[\"rep\"]},\"application/vnd.byu.uapi+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.cab-jscript\":{\"source\":\"iana\"},\"application/vnd.canon-cpdl\":{\"source\":\"iana\"},\"application/vnd.canon-lips\":{\"source\":\"iana\"},\"application/vnd.capasystems-pg+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.cendio.thinlinc.clientconf\":{\"source\":\"iana\"},\"application/vnd.century-systems.tcp_stream\":{\"source\":\"iana\"},\"application/vnd.chemdraw+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"cdxml\"]},\"application/vnd.chess-pgn\":{\"source\":\"iana\"},\"application/vnd.chipnuts.karaoke-mmd\":{\"source\":\"iana\",\"extensions\":[\"mmd\"]},\"application/vnd.ciedi\":{\"source\":\"iana\"},\"application/vnd.cinderella\":{\"source\":\"iana\",\"extensions\":[\"cdy\"]},\"application/vnd.cirpack.isdn-ext\":{\"source\":\"iana\"},\"application/vnd.citationstyles.style+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"csl\"]},\"application/vnd.claymore\":{\"source\":\"iana\",\"extensions\":[\"cla\"]},\"application/vnd.cloanto.rp9\":{\"source\":\"iana\",\"extensions\":[\"rp9\"]},\"application/vnd.clonk.c4group\":{\"source\":\"iana\",\"extensions\":[\"c4g\",\"c4d\",\"c4f\",\"c4p\",\"c4u\"]},\"application/vnd.cluetrust.cartomobile-config\":{\"source\":\"iana\",\"extensions\":[\"c11amc\"]},\"application/vnd.cluetrust.cartomobile-config-pkg\":{\"source\":\"iana\",\"extensions\":[\"c11amz\"]},\"application/vnd.coffeescript\":{\"source\":\"iana\"},\"application/vnd.collabio.xodocuments.document\":{\"source\":\"iana\"},\"application/vnd.collabio.xodocuments.document-template\":{\"source\":\"iana\"},\"application/vnd.collabio.xodocuments.presentation\":{\"source\":\"iana\"},\"application/vnd.collabio.xodocuments.presentation-template\":{\"source\":\"iana\"},\"application/vnd.collabio.xodocuments.spreadsheet\":{\"source\":\"iana\"},\"application/vnd.collabio.xodocuments.spreadsheet-template\":{\"source\":\"iana\"},\"application/vnd.collection+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.collection.doc+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.collection.next+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.comicbook+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.comicbook-rar\":{\"source\":\"iana\"},\"application/vnd.commerce-battelle\":{\"source\":\"iana\"},\"application/vnd.commonspace\":{\"source\":\"iana\",\"extensions\":[\"csp\"]},\"application/vnd.contact.cmsg\":{\"source\":\"iana\",\"extensions\":[\"cdbcmsg\"]},\"application/vnd.coreos.ignition+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.cosmocaller\":{\"source\":\"iana\",\"extensions\":[\"cmc\"]},\"application/vnd.crick.clicker\":{\"source\":\"iana\",\"extensions\":[\"clkx\"]},\"application/vnd.crick.clicker.keyboard\":{\"source\":\"iana\",\"extensions\":[\"clkk\"]},\"application/vnd.crick.clicker.palette\":{\"source\":\"iana\",\"extensions\":[\"clkp\"]},\"application/vnd.crick.clicker.template\":{\"source\":\"iana\",\"extensions\":[\"clkt\"]},\"application/vnd.crick.clicker.wordbank\":{\"source\":\"iana\",\"extensions\":[\"clkw\"]},\"application/vnd.criticaltools.wbs+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"wbs\"]},\"application/vnd.cryptii.pipe+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.crypto-shade-file\":{\"source\":\"iana\"},\"application/vnd.cryptomator.encrypted\":{\"source\":\"iana\"},\"application/vnd.cryptomator.vault\":{\"source\":\"iana\"},\"application/vnd.ctc-posml\":{\"source\":\"iana\",\"extensions\":[\"pml\"]},\"application/vnd.ctct.ws+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.cups-pdf\":{\"source\":\"iana\"},\"application/vnd.cups-postscript\":{\"source\":\"iana\"},\"application/vnd.cups-ppd\":{\"source\":\"iana\",\"extensions\":[\"ppd\"]},\"application/vnd.cups-raster\":{\"source\":\"iana\"},\"application/vnd.cups-raw\":{\"source\":\"iana\"},\"application/vnd.curl\":{\"source\":\"iana\"},\"application/vnd.curl.car\":{\"source\":\"apache\",\"extensions\":[\"car\"]},\"application/vnd.curl.pcurl\":{\"source\":\"apache\",\"extensions\":[\"pcurl\"]},\"application/vnd.cyan.dean.root+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.cybank\":{\"source\":\"iana\"},\"application/vnd.cyclonedx+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.cyclonedx+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.d2l.coursepackage1p0+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.d3m-dataset\":{\"source\":\"iana\"},\"application/vnd.d3m-problem\":{\"source\":\"iana\"},\"application/vnd.dart\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"dart\"]},\"application/vnd.data-vision.rdz\":{\"source\":\"iana\",\"extensions\":[\"rdz\"]},\"application/vnd.datapackage+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dataresource+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dbf\":{\"source\":\"iana\",\"extensions\":[\"dbf\"]},\"application/vnd.debian.binary-package\":{\"source\":\"iana\"},\"application/vnd.dece.data\":{\"source\":\"iana\",\"extensions\":[\"uvf\",\"uvvf\",\"uvd\",\"uvvd\"]},\"application/vnd.dece.ttml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"uvt\",\"uvvt\"]},\"application/vnd.dece.unspecified\":{\"source\":\"iana\",\"extensions\":[\"uvx\",\"uvvx\"]},\"application/vnd.dece.zip\":{\"source\":\"iana\",\"extensions\":[\"uvz\",\"uvvz\"]},\"application/vnd.denovo.fcselayout-link\":{\"source\":\"iana\",\"extensions\":[\"fe_launch\"]},\"application/vnd.desmume.movie\":{\"source\":\"iana\"},\"application/vnd.dir-bi.plate-dl-nosuffix\":{\"source\":\"iana\"},\"application/vnd.dm.delegation+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dna\":{\"source\":\"iana\",\"extensions\":[\"dna\"]},\"application/vnd.document+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dolby.mlp\":{\"source\":\"apache\",\"extensions\":[\"mlp\"]},\"application/vnd.dolby.mobile.1\":{\"source\":\"iana\"},\"application/vnd.dolby.mobile.2\":{\"source\":\"iana\"},\"application/vnd.doremir.scorecloud-binary-document\":{\"source\":\"iana\"},\"application/vnd.dpgraph\":{\"source\":\"iana\",\"extensions\":[\"dpg\"]},\"application/vnd.dreamfactory\":{\"source\":\"iana\",\"extensions\":[\"dfac\"]},\"application/vnd.drive+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ds-keypoint\":{\"source\":\"apache\",\"extensions\":[\"kpxx\"]},\"application/vnd.dtg.local\":{\"source\":\"iana\"},\"application/vnd.dtg.local.flash\":{\"source\":\"iana\"},\"application/vnd.dtg.local.html\":{\"source\":\"iana\"},\"application/vnd.dvb.ait\":{\"source\":\"iana\",\"extensions\":[\"ait\"]},\"application/vnd.dvb.dvbisl+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dvb.dvbj\":{\"source\":\"iana\"},\"application/vnd.dvb.esgcontainer\":{\"source\":\"iana\"},\"application/vnd.dvb.ipdcdftnotifaccess\":{\"source\":\"iana\"},\"application/vnd.dvb.ipdcesgaccess\":{\"source\":\"iana\"},\"application/vnd.dvb.ipdcesgaccess2\":{\"source\":\"iana\"},\"application/vnd.dvb.ipdcesgpdd\":{\"source\":\"iana\"},\"application/vnd.dvb.ipdcroaming\":{\"source\":\"iana\"},\"application/vnd.dvb.iptv.alfec-base\":{\"source\":\"iana\"},\"application/vnd.dvb.iptv.alfec-enhancement\":{\"source\":\"iana\"},\"application/vnd.dvb.notif-aggregate-root+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dvb.notif-container+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dvb.notif-generic+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dvb.notif-ia-msglist+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dvb.notif-ia-registration-request+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dvb.notif-ia-registration-response+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dvb.notif-init+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.dvb.pfr\":{\"source\":\"iana\"},\"application/vnd.dvb.service\":{\"source\":\"iana\",\"extensions\":[\"svc\"]},\"application/vnd.dxr\":{\"source\":\"iana\"},\"application/vnd.dynageo\":{\"source\":\"iana\",\"extensions\":[\"geo\"]},\"application/vnd.dzr\":{\"source\":\"iana\"},\"application/vnd.easykaraoke.cdgdownload\":{\"source\":\"iana\"},\"application/vnd.ecdis-update\":{\"source\":\"iana\"},\"application/vnd.ecip.rlp\":{\"source\":\"iana\"},\"application/vnd.eclipse.ditto+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ecowin.chart\":{\"source\":\"iana\",\"extensions\":[\"mag\"]},\"application/vnd.ecowin.filerequest\":{\"source\":\"iana\"},\"application/vnd.ecowin.fileupdate\":{\"source\":\"iana\"},\"application/vnd.ecowin.series\":{\"source\":\"iana\"},\"application/vnd.ecowin.seriesrequest\":{\"source\":\"iana\"},\"application/vnd.ecowin.seriesupdate\":{\"source\":\"iana\"},\"application/vnd.efi.img\":{\"source\":\"iana\"},\"application/vnd.efi.iso\":{\"source\":\"iana\"},\"application/vnd.emclient.accessrequest+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.enliven\":{\"source\":\"iana\",\"extensions\":[\"nml\"]},\"application/vnd.enphase.envoy\":{\"source\":\"iana\"},\"application/vnd.eprints.data+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.epson.esf\":{\"source\":\"iana\",\"extensions\":[\"esf\"]},\"application/vnd.epson.msf\":{\"source\":\"iana\",\"extensions\":[\"msf\"]},\"application/vnd.epson.quickanime\":{\"source\":\"iana\",\"extensions\":[\"qam\"]},\"application/vnd.epson.salt\":{\"source\":\"iana\",\"extensions\":[\"slt\"]},\"application/vnd.epson.ssf\":{\"source\":\"iana\",\"extensions\":[\"ssf\"]},\"application/vnd.ericsson.quickcall\":{\"source\":\"iana\"},\"application/vnd.espass-espass+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.eszigno3+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"es3\",\"et3\"]},\"application/vnd.etsi.aoc+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.asic-e+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.etsi.asic-s+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.etsi.cug+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvcommand+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvdiscovery+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvprofile+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvsad-bc+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvsad-cod+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvsad-npvr+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvservice+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvsync+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.iptvueprofile+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.mcid+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.mheg5\":{\"source\":\"iana\"},\"application/vnd.etsi.overload-control-policy-dataset+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.pstn+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.sci+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.simservs+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.timestamp-token\":{\"source\":\"iana\"},\"application/vnd.etsi.tsl+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.etsi.tsl.der\":{\"source\":\"iana\"},\"application/vnd.eu.kasparian.car+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.eudora.data\":{\"source\":\"iana\"},\"application/vnd.evolv.ecig.profile\":{\"source\":\"iana\"},\"application/vnd.evolv.ecig.settings\":{\"source\":\"iana\"},\"application/vnd.evolv.ecig.theme\":{\"source\":\"iana\"},\"application/vnd.exstream-empower+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.exstream-package\":{\"source\":\"iana\"},\"application/vnd.ezpix-album\":{\"source\":\"iana\",\"extensions\":[\"ez2\"]},\"application/vnd.ezpix-package\":{\"source\":\"iana\",\"extensions\":[\"ez3\"]},\"application/vnd.f-secure.mobile\":{\"source\":\"iana\"},\"application/vnd.familysearch.gedcom+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.fastcopy-disk-image\":{\"source\":\"iana\"},\"application/vnd.fdf\":{\"source\":\"iana\",\"extensions\":[\"fdf\"]},\"application/vnd.fdsn.mseed\":{\"source\":\"iana\",\"extensions\":[\"mseed\"]},\"application/vnd.fdsn.seed\":{\"source\":\"iana\",\"extensions\":[\"seed\",\"dataless\"]},\"application/vnd.ffsns\":{\"source\":\"iana\"},\"application/vnd.ficlab.flb+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.filmit.zfc\":{\"source\":\"iana\"},\"application/vnd.fints\":{\"source\":\"iana\"},\"application/vnd.firemonkeys.cloudcell\":{\"source\":\"iana\"},\"application/vnd.flographit\":{\"source\":\"iana\",\"extensions\":[\"gph\"]},\"application/vnd.fluxtime.clip\":{\"source\":\"iana\",\"extensions\":[\"ftc\"]},\"application/vnd.font-fontforge-sfd\":{\"source\":\"iana\"},\"application/vnd.framemaker\":{\"source\":\"iana\",\"extensions\":[\"fm\",\"frame\",\"maker\",\"book\"]},\"application/vnd.frogans.fnc\":{\"source\":\"iana\",\"extensions\":[\"fnc\"]},\"application/vnd.frogans.ltf\":{\"source\":\"iana\",\"extensions\":[\"ltf\"]},\"application/vnd.fsc.weblaunch\":{\"source\":\"iana\",\"extensions\":[\"fsc\"]},\"application/vnd.fujifilm.fb.docuworks\":{\"source\":\"iana\"},\"application/vnd.fujifilm.fb.docuworks.binder\":{\"source\":\"iana\"},\"application/vnd.fujifilm.fb.docuworks.container\":{\"source\":\"iana\"},\"application/vnd.fujifilm.fb.jfi+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.fujitsu.oasys\":{\"source\":\"iana\",\"extensions\":[\"oas\"]},\"application/vnd.fujitsu.oasys2\":{\"source\":\"iana\",\"extensions\":[\"oa2\"]},\"application/vnd.fujitsu.oasys3\":{\"source\":\"iana\",\"extensions\":[\"oa3\"]},\"application/vnd.fujitsu.oasysgp\":{\"source\":\"iana\",\"extensions\":[\"fg5\"]},\"application/vnd.fujitsu.oasysprs\":{\"source\":\"iana\",\"extensions\":[\"bh2\"]},\"application/vnd.fujixerox.art-ex\":{\"source\":\"iana\"},\"application/vnd.fujixerox.art4\":{\"source\":\"iana\"},\"application/vnd.fujixerox.ddd\":{\"source\":\"iana\",\"extensions\":[\"ddd\"]},\"application/vnd.fujixerox.docuworks\":{\"source\":\"iana\",\"extensions\":[\"xdw\"]},\"application/vnd.fujixerox.docuworks.binder\":{\"source\":\"iana\",\"extensions\":[\"xbd\"]},\"application/vnd.fujixerox.docuworks.container\":{\"source\":\"iana\"},\"application/vnd.fujixerox.hbpl\":{\"source\":\"iana\"},\"application/vnd.fut-misnet\":{\"source\":\"iana\"},\"application/vnd.futoin+cbor\":{\"source\":\"iana\"},\"application/vnd.futoin+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.fuzzysheet\":{\"source\":\"iana\",\"extensions\":[\"fzs\"]},\"application/vnd.genomatix.tuxedo\":{\"source\":\"iana\",\"extensions\":[\"txd\"]},\"application/vnd.gentics.grd+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.geo+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.geocube+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.geogebra.file\":{\"source\":\"iana\",\"extensions\":[\"ggb\"]},\"application/vnd.geogebra.slides\":{\"source\":\"iana\"},\"application/vnd.geogebra.tool\":{\"source\":\"iana\",\"extensions\":[\"ggt\"]},\"application/vnd.geometry-explorer\":{\"source\":\"iana\",\"extensions\":[\"gex\",\"gre\"]},\"application/vnd.geonext\":{\"source\":\"iana\",\"extensions\":[\"gxt\"]},\"application/vnd.geoplan\":{\"source\":\"iana\",\"extensions\":[\"g2w\"]},\"application/vnd.geospace\":{\"source\":\"iana\",\"extensions\":[\"g3w\"]},\"application/vnd.gerber\":{\"source\":\"iana\"},\"application/vnd.globalplatform.card-content-mgt\":{\"source\":\"iana\"},\"application/vnd.globalplatform.card-content-mgt-response\":{\"source\":\"iana\"},\"application/vnd.gmx\":{\"source\":\"iana\",\"extensions\":[\"gmx\"]},\"application/vnd.google-apps.document\":{\"compressible\":false,\"extensions\":[\"gdoc\"]},\"application/vnd.google-apps.presentation\":{\"compressible\":false,\"extensions\":[\"gslides\"]},\"application/vnd.google-apps.spreadsheet\":{\"compressible\":false,\"extensions\":[\"gsheet\"]},\"application/vnd.google-earth.kml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"kml\"]},\"application/vnd.google-earth.kmz\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"kmz\"]},\"application/vnd.gov.sk.e-form+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.gov.sk.e-form+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.gov.sk.xmldatacontainer+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.grafeq\":{\"source\":\"iana\",\"extensions\":[\"gqf\",\"gqs\"]},\"application/vnd.gridmp\":{\"source\":\"iana\"},\"application/vnd.groove-account\":{\"source\":\"iana\",\"extensions\":[\"gac\"]},\"application/vnd.groove-help\":{\"source\":\"iana\",\"extensions\":[\"ghf\"]},\"application/vnd.groove-identity-message\":{\"source\":\"iana\",\"extensions\":[\"gim\"]},\"application/vnd.groove-injector\":{\"source\":\"iana\",\"extensions\":[\"grv\"]},\"application/vnd.groove-tool-message\":{\"source\":\"iana\",\"extensions\":[\"gtm\"]},\"application/vnd.groove-tool-template\":{\"source\":\"iana\",\"extensions\":[\"tpl\"]},\"application/vnd.groove-vcard\":{\"source\":\"iana\",\"extensions\":[\"vcg\"]},\"application/vnd.hal+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.hal+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"hal\"]},\"application/vnd.handheld-entertainment+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"zmm\"]},\"application/vnd.hbci\":{\"source\":\"iana\",\"extensions\":[\"hbci\"]},\"application/vnd.hc+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.hcl-bireports\":{\"source\":\"iana\"},\"application/vnd.hdt\":{\"source\":\"iana\"},\"application/vnd.heroku+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.hhe.lesson-player\":{\"source\":\"iana\",\"extensions\":[\"les\"]},\"application/vnd.hl7cda+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/vnd.hl7v2+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/vnd.hp-hpgl\":{\"source\":\"iana\",\"extensions\":[\"hpgl\"]},\"application/vnd.hp-hpid\":{\"source\":\"iana\",\"extensions\":[\"hpid\"]},\"application/vnd.hp-hps\":{\"source\":\"iana\",\"extensions\":[\"hps\"]},\"application/vnd.hp-jlyt\":{\"source\":\"iana\",\"extensions\":[\"jlt\"]},\"application/vnd.hp-pcl\":{\"source\":\"iana\",\"extensions\":[\"pcl\"]},\"application/vnd.hp-pclxl\":{\"source\":\"iana\",\"extensions\":[\"pclxl\"]},\"application/vnd.httphone\":{\"source\":\"iana\"},\"application/vnd.hydrostatix.sof-data\":{\"source\":\"iana\",\"extensions\":[\"sfd-hdstx\"]},\"application/vnd.hyper+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.hyper-item+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.hyperdrive+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.hzn-3d-crossword\":{\"source\":\"iana\"},\"application/vnd.ibm.afplinedata\":{\"source\":\"iana\"},\"application/vnd.ibm.electronic-media\":{\"source\":\"iana\"},\"application/vnd.ibm.minipay\":{\"source\":\"iana\",\"extensions\":[\"mpy\"]},\"application/vnd.ibm.modcap\":{\"source\":\"iana\",\"extensions\":[\"afp\",\"listafp\",\"list3820\"]},\"application/vnd.ibm.rights-management\":{\"source\":\"iana\",\"extensions\":[\"irm\"]},\"application/vnd.ibm.secure-container\":{\"source\":\"iana\",\"extensions\":[\"sc\"]},\"application/vnd.iccprofile\":{\"source\":\"iana\",\"extensions\":[\"icc\",\"icm\"]},\"application/vnd.ieee.1905\":{\"source\":\"iana\"},\"application/vnd.igloader\":{\"source\":\"iana\",\"extensions\":[\"igl\"]},\"application/vnd.imagemeter.folder+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.imagemeter.image+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.immervision-ivp\":{\"source\":\"iana\",\"extensions\":[\"ivp\"]},\"application/vnd.immervision-ivu\":{\"source\":\"iana\",\"extensions\":[\"ivu\"]},\"application/vnd.ims.imsccv1p1\":{\"source\":\"iana\"},\"application/vnd.ims.imsccv1p2\":{\"source\":\"iana\"},\"application/vnd.ims.imsccv1p3\":{\"source\":\"iana\"},\"application/vnd.ims.lis.v2.result+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ims.lti.v2.toolconsumerprofile+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ims.lti.v2.toolproxy+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ims.lti.v2.toolproxy.id+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ims.lti.v2.toolsettings+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ims.lti.v2.toolsettings.simple+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.informedcontrol.rms+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.informix-visionary\":{\"source\":\"iana\"},\"application/vnd.infotech.project\":{\"source\":\"iana\"},\"application/vnd.infotech.project+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.innopath.wamp.notification\":{\"source\":\"iana\"},\"application/vnd.insors.igm\":{\"source\":\"iana\",\"extensions\":[\"igm\"]},\"application/vnd.intercon.formnet\":{\"source\":\"iana\",\"extensions\":[\"xpw\",\"xpx\"]},\"application/vnd.intergeo\":{\"source\":\"iana\",\"extensions\":[\"i2g\"]},\"application/vnd.intertrust.digibox\":{\"source\":\"iana\"},\"application/vnd.intertrust.nncp\":{\"source\":\"iana\"},\"application/vnd.intu.qbo\":{\"source\":\"iana\",\"extensions\":[\"qbo\"]},\"application/vnd.intu.qfx\":{\"source\":\"iana\",\"extensions\":[\"qfx\"]},\"application/vnd.iptc.g2.catalogitem+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.iptc.g2.conceptitem+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.iptc.g2.knowledgeitem+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.iptc.g2.newsitem+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.iptc.g2.newsmessage+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.iptc.g2.packageitem+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.iptc.g2.planningitem+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ipunplugged.rcprofile\":{\"source\":\"iana\",\"extensions\":[\"rcprofile\"]},\"application/vnd.irepository.package+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"irp\"]},\"application/vnd.is-xpr\":{\"source\":\"iana\",\"extensions\":[\"xpr\"]},\"application/vnd.isac.fcs\":{\"source\":\"iana\",\"extensions\":[\"fcs\"]},\"application/vnd.iso11783-10+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.jam\":{\"source\":\"iana\",\"extensions\":[\"jam\"]},\"application/vnd.japannet-directory-service\":{\"source\":\"iana\"},\"application/vnd.japannet-jpnstore-wakeup\":{\"source\":\"iana\"},\"application/vnd.japannet-payment-wakeup\":{\"source\":\"iana\"},\"application/vnd.japannet-registration\":{\"source\":\"iana\"},\"application/vnd.japannet-registration-wakeup\":{\"source\":\"iana\"},\"application/vnd.japannet-setstore-wakeup\":{\"source\":\"iana\"},\"application/vnd.japannet-verification\":{\"source\":\"iana\"},\"application/vnd.japannet-verification-wakeup\":{\"source\":\"iana\"},\"application/vnd.jcp.javame.midlet-rms\":{\"source\":\"iana\",\"extensions\":[\"rms\"]},\"application/vnd.jisp\":{\"source\":\"iana\",\"extensions\":[\"jisp\"]},\"application/vnd.joost.joda-archive\":{\"source\":\"iana\",\"extensions\":[\"joda\"]},\"application/vnd.jsk.isdn-ngn\":{\"source\":\"iana\"},\"application/vnd.kahootz\":{\"source\":\"iana\",\"extensions\":[\"ktz\",\"ktr\"]},\"application/vnd.kde.karbon\":{\"source\":\"iana\",\"extensions\":[\"karbon\"]},\"application/vnd.kde.kchart\":{\"source\":\"iana\",\"extensions\":[\"chrt\"]},\"application/vnd.kde.kformula\":{\"source\":\"iana\",\"extensions\":[\"kfo\"]},\"application/vnd.kde.kivio\":{\"source\":\"iana\",\"extensions\":[\"flw\"]},\"application/vnd.kde.kontour\":{\"source\":\"iana\",\"extensions\":[\"kon\"]},\"application/vnd.kde.kpresenter\":{\"source\":\"iana\",\"extensions\":[\"kpr\",\"kpt\"]},\"application/vnd.kde.kspread\":{\"source\":\"iana\",\"extensions\":[\"ksp\"]},\"application/vnd.kde.kword\":{\"source\":\"iana\",\"extensions\":[\"kwd\",\"kwt\"]},\"application/vnd.kenameaapp\":{\"source\":\"iana\",\"extensions\":[\"htke\"]},\"application/vnd.kidspiration\":{\"source\":\"iana\",\"extensions\":[\"kia\"]},\"application/vnd.kinar\":{\"source\":\"iana\",\"extensions\":[\"kne\",\"knp\"]},\"application/vnd.koan\":{\"source\":\"iana\",\"extensions\":[\"skp\",\"skd\",\"skt\",\"skm\"]},\"application/vnd.kodak-descriptor\":{\"source\":\"iana\",\"extensions\":[\"sse\"]},\"application/vnd.las\":{\"source\":\"iana\"},\"application/vnd.las.las+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.las.las+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"lasxml\"]},\"application/vnd.laszip\":{\"source\":\"iana\"},\"application/vnd.leap+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.liberty-request+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.llamagraphics.life-balance.desktop\":{\"source\":\"iana\",\"extensions\":[\"lbd\"]},\"application/vnd.llamagraphics.life-balance.exchange+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"lbe\"]},\"application/vnd.logipipe.circuit+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.loom\":{\"source\":\"iana\"},\"application/vnd.lotus-1-2-3\":{\"source\":\"iana\",\"extensions\":[\"123\"]},\"application/vnd.lotus-approach\":{\"source\":\"iana\",\"extensions\":[\"apr\"]},\"application/vnd.lotus-freelance\":{\"source\":\"iana\",\"extensions\":[\"pre\"]},\"application/vnd.lotus-notes\":{\"source\":\"iana\",\"extensions\":[\"nsf\"]},\"application/vnd.lotus-organizer\":{\"source\":\"iana\",\"extensions\":[\"org\"]},\"application/vnd.lotus-screencam\":{\"source\":\"iana\",\"extensions\":[\"scm\"]},\"application/vnd.lotus-wordpro\":{\"source\":\"iana\",\"extensions\":[\"lwp\"]},\"application/vnd.macports.portpkg\":{\"source\":\"iana\",\"extensions\":[\"portpkg\"]},\"application/vnd.mapbox-vector-tile\":{\"source\":\"iana\",\"extensions\":[\"mvt\"]},\"application/vnd.marlin.drm.actiontoken+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.marlin.drm.conftoken+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.marlin.drm.license+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.marlin.drm.mdcf\":{\"source\":\"iana\"},\"application/vnd.mason+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.maxar.archive.3tz+zip\":{\"source\":\"iana\",\"compressible\":false},\"application/vnd.maxmind.maxmind-db\":{\"source\":\"iana\"},\"application/vnd.mcd\":{\"source\":\"iana\",\"extensions\":[\"mcd\"]},\"application/vnd.medcalcdata\":{\"source\":\"iana\",\"extensions\":[\"mc1\"]},\"application/vnd.mediastation.cdkey\":{\"source\":\"iana\",\"extensions\":[\"cdkey\"]},\"application/vnd.meridian-slingshot\":{\"source\":\"iana\"},\"application/vnd.mfer\":{\"source\":\"iana\",\"extensions\":[\"mwf\"]},\"application/vnd.mfmp\":{\"source\":\"iana\",\"extensions\":[\"mfm\"]},\"application/vnd.micro+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.micrografx.flo\":{\"source\":\"iana\",\"extensions\":[\"flo\"]},\"application/vnd.micrografx.igx\":{\"source\":\"iana\",\"extensions\":[\"igx\"]},\"application/vnd.microsoft.portable-executable\":{\"source\":\"iana\"},\"application/vnd.microsoft.windows.thumbnail-cache\":{\"source\":\"iana\"},\"application/vnd.miele+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.mif\":{\"source\":\"iana\",\"extensions\":[\"mif\"]},\"application/vnd.minisoft-hp3000-save\":{\"source\":\"iana\"},\"application/vnd.mitsubishi.misty-guard.trustweb\":{\"source\":\"iana\"},\"application/vnd.mobius.daf\":{\"source\":\"iana\",\"extensions\":[\"daf\"]},\"application/vnd.mobius.dis\":{\"source\":\"iana\",\"extensions\":[\"dis\"]},\"application/vnd.mobius.mbk\":{\"source\":\"iana\",\"extensions\":[\"mbk\"]},\"application/vnd.mobius.mqy\":{\"source\":\"iana\",\"extensions\":[\"mqy\"]},\"application/vnd.mobius.msl\":{\"source\":\"iana\",\"extensions\":[\"msl\"]},\"application/vnd.mobius.plc\":{\"source\":\"iana\",\"extensions\":[\"plc\"]},\"application/vnd.mobius.txf\":{\"source\":\"iana\",\"extensions\":[\"txf\"]},\"application/vnd.mophun.application\":{\"source\":\"iana\",\"extensions\":[\"mpn\"]},\"application/vnd.mophun.certificate\":{\"source\":\"iana\",\"extensions\":[\"mpc\"]},\"application/vnd.motorola.flexsuite\":{\"source\":\"iana\"},\"application/vnd.motorola.flexsuite.adsi\":{\"source\":\"iana\"},\"application/vnd.motorola.flexsuite.fis\":{\"source\":\"iana\"},\"application/vnd.motorola.flexsuite.gotap\":{\"source\":\"iana\"},\"application/vnd.motorola.flexsuite.kmr\":{\"source\":\"iana\"},\"application/vnd.motorola.flexsuite.ttc\":{\"source\":\"iana\"},\"application/vnd.motorola.flexsuite.wem\":{\"source\":\"iana\"},\"application/vnd.motorola.iprm\":{\"source\":\"iana\"},\"application/vnd.mozilla.xul+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xul\"]},\"application/vnd.ms-3mfdocument\":{\"source\":\"iana\"},\"application/vnd.ms-artgalry\":{\"source\":\"iana\",\"extensions\":[\"cil\"]},\"application/vnd.ms-asf\":{\"source\":\"iana\"},\"application/vnd.ms-cab-compressed\":{\"source\":\"iana\",\"extensions\":[\"cab\"]},\"application/vnd.ms-color.iccprofile\":{\"source\":\"apache\"},\"application/vnd.ms-excel\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"xls\",\"xlm\",\"xla\",\"xlc\",\"xlt\",\"xlw\"]},\"application/vnd.ms-excel.addin.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"xlam\"]},\"application/vnd.ms-excel.sheet.binary.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"xlsb\"]},\"application/vnd.ms-excel.sheet.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"xlsm\"]},\"application/vnd.ms-excel.template.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"xltm\"]},\"application/vnd.ms-fontobject\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"eot\"]},\"application/vnd.ms-htmlhelp\":{\"source\":\"iana\",\"extensions\":[\"chm\"]},\"application/vnd.ms-ims\":{\"source\":\"iana\",\"extensions\":[\"ims\"]},\"application/vnd.ms-lrm\":{\"source\":\"iana\",\"extensions\":[\"lrm\"]},\"application/vnd.ms-office.activex+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ms-officetheme\":{\"source\":\"iana\",\"extensions\":[\"thmx\"]},\"application/vnd.ms-opentype\":{\"source\":\"apache\",\"compressible\":true},\"application/vnd.ms-outlook\":{\"compressible\":false,\"extensions\":[\"msg\"]},\"application/vnd.ms-package.obfuscated-opentype\":{\"source\":\"apache\"},\"application/vnd.ms-pki.seccat\":{\"source\":\"apache\",\"extensions\":[\"cat\"]},\"application/vnd.ms-pki.stl\":{\"source\":\"apache\",\"extensions\":[\"stl\"]},\"application/vnd.ms-playready.initiator+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ms-powerpoint\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"ppt\",\"pps\",\"pot\"]},\"application/vnd.ms-powerpoint.addin.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"ppam\"]},\"application/vnd.ms-powerpoint.presentation.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"pptm\"]},\"application/vnd.ms-powerpoint.slide.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"sldm\"]},\"application/vnd.ms-powerpoint.slideshow.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"ppsm\"]},\"application/vnd.ms-powerpoint.template.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"potm\"]},\"application/vnd.ms-printdevicecapabilities+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ms-printing.printticket+xml\":{\"source\":\"apache\",\"compressible\":true},\"application/vnd.ms-printschematicket+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ms-project\":{\"source\":\"iana\",\"extensions\":[\"mpp\",\"mpt\"]},\"application/vnd.ms-tnef\":{\"source\":\"iana\"},\"application/vnd.ms-windows.devicepairing\":{\"source\":\"iana\"},\"application/vnd.ms-windows.nwprinting.oob\":{\"source\":\"iana\"},\"application/vnd.ms-windows.printerpairing\":{\"source\":\"iana\"},\"application/vnd.ms-windows.wsd.oob\":{\"source\":\"iana\"},\"application/vnd.ms-wmdrm.lic-chlg-req\":{\"source\":\"iana\"},\"application/vnd.ms-wmdrm.lic-resp\":{\"source\":\"iana\"},\"application/vnd.ms-wmdrm.meter-chlg-req\":{\"source\":\"iana\"},\"application/vnd.ms-wmdrm.meter-resp\":{\"source\":\"iana\"},\"application/vnd.ms-word.document.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"docm\"]},\"application/vnd.ms-word.template.macroenabled.12\":{\"source\":\"iana\",\"extensions\":[\"dotm\"]},\"application/vnd.ms-works\":{\"source\":\"iana\",\"extensions\":[\"wps\",\"wks\",\"wcm\",\"wdb\"]},\"application/vnd.ms-wpl\":{\"source\":\"iana\",\"extensions\":[\"wpl\"]},\"application/vnd.ms-xpsdocument\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"xps\"]},\"application/vnd.msa-disk-image\":{\"source\":\"iana\"},\"application/vnd.mseq\":{\"source\":\"iana\",\"extensions\":[\"mseq\"]},\"application/vnd.msign\":{\"source\":\"iana\"},\"application/vnd.multiad.creator\":{\"source\":\"iana\"},\"application/vnd.multiad.creator.cif\":{\"source\":\"iana\"},\"application/vnd.music-niff\":{\"source\":\"iana\"},\"application/vnd.musician\":{\"source\":\"iana\",\"extensions\":[\"mus\"]},\"application/vnd.muvee.style\":{\"source\":\"iana\",\"extensions\":[\"msty\"]},\"application/vnd.mynfc\":{\"source\":\"iana\",\"extensions\":[\"taglet\"]},\"application/vnd.nacamar.ybrid+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.ncd.control\":{\"source\":\"iana\"},\"application/vnd.ncd.reference\":{\"source\":\"iana\"},\"application/vnd.nearst.inv+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.nebumind.line\":{\"source\":\"iana\"},\"application/vnd.nervana\":{\"source\":\"iana\"},\"application/vnd.netfpx\":{\"source\":\"iana\"},\"application/vnd.neurolanguage.nlu\":{\"source\":\"iana\",\"extensions\":[\"nlu\"]},\"application/vnd.nimn\":{\"source\":\"iana\"},\"application/vnd.nintendo.nitro.rom\":{\"source\":\"iana\"},\"application/vnd.nintendo.snes.rom\":{\"source\":\"iana\"},\"application/vnd.nitf\":{\"source\":\"iana\",\"extensions\":[\"ntf\",\"nitf\"]},\"application/vnd.noblenet-directory\":{\"source\":\"iana\",\"extensions\":[\"nnd\"]},\"application/vnd.noblenet-sealer\":{\"source\":\"iana\",\"extensions\":[\"nns\"]},\"application/vnd.noblenet-web\":{\"source\":\"iana\",\"extensions\":[\"nnw\"]},\"application/vnd.nokia.catalogs\":{\"source\":\"iana\"},\"application/vnd.nokia.conml+wbxml\":{\"source\":\"iana\"},\"application/vnd.nokia.conml+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.nokia.iptv.config+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.nokia.isds-radio-presets\":{\"source\":\"iana\"},\"application/vnd.nokia.landmark+wbxml\":{\"source\":\"iana\"},\"application/vnd.nokia.landmark+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.nokia.landmarkcollection+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.nokia.n-gage.ac+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"ac\"]},\"application/vnd.nokia.n-gage.data\":{\"source\":\"iana\",\"extensions\":[\"ngdat\"]},\"application/vnd.nokia.n-gage.symbian.install\":{\"source\":\"iana\",\"extensions\":[\"n-gage\"]},\"application/vnd.nokia.ncd\":{\"source\":\"iana\"},\"application/vnd.nokia.pcd+wbxml\":{\"source\":\"iana\"},\"application/vnd.nokia.pcd+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.nokia.radio-preset\":{\"source\":\"iana\",\"extensions\":[\"rpst\"]},\"application/vnd.nokia.radio-presets\":{\"source\":\"iana\",\"extensions\":[\"rpss\"]},\"application/vnd.novadigm.edm\":{\"source\":\"iana\",\"extensions\":[\"edm\"]},\"application/vnd.novadigm.edx\":{\"source\":\"iana\",\"extensions\":[\"edx\"]},\"application/vnd.novadigm.ext\":{\"source\":\"iana\",\"extensions\":[\"ext\"]},\"application/vnd.ntt-local.content-share\":{\"source\":\"iana\"},\"application/vnd.ntt-local.file-transfer\":{\"source\":\"iana\"},\"application/vnd.ntt-local.ogw_remote-access\":{\"source\":\"iana\"},\"application/vnd.ntt-local.sip-ta_remote\":{\"source\":\"iana\"},\"application/vnd.ntt-local.sip-ta_tcp_stream\":{\"source\":\"iana\"},\"application/vnd.oasis.opendocument.chart\":{\"source\":\"iana\",\"extensions\":[\"odc\"]},\"application/vnd.oasis.opendocument.chart-template\":{\"source\":\"iana\",\"extensions\":[\"otc\"]},\"application/vnd.oasis.opendocument.database\":{\"source\":\"iana\",\"extensions\":[\"odb\"]},\"application/vnd.oasis.opendocument.formula\":{\"source\":\"iana\",\"extensions\":[\"odf\"]},\"application/vnd.oasis.opendocument.formula-template\":{\"source\":\"iana\",\"extensions\":[\"odft\"]},\"application/vnd.oasis.opendocument.graphics\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"odg\"]},\"application/vnd.oasis.opendocument.graphics-template\":{\"source\":\"iana\",\"extensions\":[\"otg\"]},\"application/vnd.oasis.opendocument.image\":{\"source\":\"iana\",\"extensions\":[\"odi\"]},\"application/vnd.oasis.opendocument.image-template\":{\"source\":\"iana\",\"extensions\":[\"oti\"]},\"application/vnd.oasis.opendocument.presentation\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"odp\"]},\"application/vnd.oasis.opendocument.presentation-template\":{\"source\":\"iana\",\"extensions\":[\"otp\"]},\"application/vnd.oasis.opendocument.spreadsheet\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"ods\"]},\"application/vnd.oasis.opendocument.spreadsheet-template\":{\"source\":\"iana\",\"extensions\":[\"ots\"]},\"application/vnd.oasis.opendocument.text\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"odt\"]},\"application/vnd.oasis.opendocument.text-master\":{\"source\":\"iana\",\"extensions\":[\"odm\"]},\"application/vnd.oasis.opendocument.text-template\":{\"source\":\"iana\",\"extensions\":[\"ott\"]},\"application/vnd.oasis.opendocument.text-web\":{\"source\":\"iana\",\"extensions\":[\"oth\"]},\"application/vnd.obn\":{\"source\":\"iana\"},\"application/vnd.ocf+cbor\":{\"source\":\"iana\"},\"application/vnd.oci.image.manifest.v1+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oftn.l10n+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.contentaccessdownload+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.contentaccessstreaming+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.cspg-hexbinary\":{\"source\":\"iana\"},\"application/vnd.oipf.dae.svg+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.dae.xhtml+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.mippvcontrolmessage+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.pae.gem\":{\"source\":\"iana\"},\"application/vnd.oipf.spdiscovery+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.spdlist+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.ueprofile+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oipf.userprofile+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.olpc-sugar\":{\"source\":\"iana\",\"extensions\":[\"xo\"]},\"application/vnd.oma-scws-config\":{\"source\":\"iana\"},\"application/vnd.oma-scws-http-request\":{\"source\":\"iana\"},\"application/vnd.oma-scws-http-response\":{\"source\":\"iana\"},\"application/vnd.oma.bcast.associated-procedure-parameter+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.bcast.drm-trigger+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.bcast.imd+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.bcast.ltkm\":{\"source\":\"iana\"},\"application/vnd.oma.bcast.notification+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.bcast.provisioningtrigger\":{\"source\":\"iana\"},\"application/vnd.oma.bcast.sgboot\":{\"source\":\"iana\"},\"application/vnd.oma.bcast.sgdd+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.bcast.sgdu\":{\"source\":\"iana\"},\"application/vnd.oma.bcast.simple-symbol-container\":{\"source\":\"iana\"},\"application/vnd.oma.bcast.smartcard-trigger+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.bcast.sprov+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.bcast.stkm\":{\"source\":\"iana\"},\"application/vnd.oma.cab-address-book+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.cab-feature-handler+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.cab-pcc+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.cab-subs-invite+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.cab-user-prefs+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.dcd\":{\"source\":\"iana\"},\"application/vnd.oma.dcdc\":{\"source\":\"iana\"},\"application/vnd.oma.dd2+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"dd2\"]},\"application/vnd.oma.drm.risd+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.group-usage-list+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.lwm2m+cbor\":{\"source\":\"iana\"},\"application/vnd.oma.lwm2m+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.lwm2m+tlv\":{\"source\":\"iana\"},\"application/vnd.oma.pal+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.poc.detailed-progress-report+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.poc.final-report+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.poc.groups+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.poc.invocation-descriptor+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.poc.optimized-progress-report+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.push\":{\"source\":\"iana\"},\"application/vnd.oma.scidm.messages+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oma.xcap-directory+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.omads-email+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/vnd.omads-file+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/vnd.omads-folder+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/vnd.omaloc-supl-init\":{\"source\":\"iana\"},\"application/vnd.onepager\":{\"source\":\"iana\"},\"application/vnd.onepagertamp\":{\"source\":\"iana\"},\"application/vnd.onepagertamx\":{\"source\":\"iana\"},\"application/vnd.onepagertat\":{\"source\":\"iana\"},\"application/vnd.onepagertatp\":{\"source\":\"iana\"},\"application/vnd.onepagertatx\":{\"source\":\"iana\"},\"application/vnd.openblox.game+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"obgx\"]},\"application/vnd.openblox.game-binary\":{\"source\":\"iana\"},\"application/vnd.openeye.oeb\":{\"source\":\"iana\"},\"application/vnd.openofficeorg.extension\":{\"source\":\"apache\",\"extensions\":[\"oxt\"]},\"application/vnd.openstreetmap.data+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"osm\"]},\"application/vnd.opentimestamps.ots\":{\"source\":\"iana\"},\"application/vnd.openxmlformats-officedocument.custom-properties+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.customxmlproperties+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.drawing+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.drawingml.chart+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.extended-properties+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.comments+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.presentation\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"pptx\"]},\"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.slide\":{\"source\":\"iana\",\"extensions\":[\"sldx\"]},\"application/vnd.openxmlformats-officedocument.presentationml.slide+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.slideshow\":{\"source\":\"iana\",\"extensions\":[\"ppsx\"]},\"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.tags+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.template\":{\"source\":\"iana\",\"extensions\":[\"potx\"]},\"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"xlsx\"]},\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.template\":{\"source\":\"iana\",\"extensions\":[\"xltx\"]},\"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.theme+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.themeoverride+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.vmldrawing\":{\"source\":\"iana\"},\"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.document\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"docx\"]},\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.template\":{\"source\":\"iana\",\"extensions\":[\"dotx\"]},\"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-package.core-properties+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.openxmlformats-package.relationships+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oracle.resource+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.orange.indata\":{\"source\":\"iana\"},\"application/vnd.osa.netdeploy\":{\"source\":\"iana\"},\"application/vnd.osgeo.mapguide.package\":{\"source\":\"iana\",\"extensions\":[\"mgp\"]},\"application/vnd.osgi.bundle\":{\"source\":\"iana\"},\"application/vnd.osgi.dp\":{\"source\":\"iana\",\"extensions\":[\"dp\"]},\"application/vnd.osgi.subsystem\":{\"source\":\"iana\",\"extensions\":[\"esa\"]},\"application/vnd.otps.ct-kip+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.oxli.countgraph\":{\"source\":\"iana\"},\"application/vnd.pagerduty+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.palm\":{\"source\":\"iana\",\"extensions\":[\"pdb\",\"pqa\",\"oprc\"]},\"application/vnd.panoply\":{\"source\":\"iana\"},\"application/vnd.paos.xml\":{\"source\":\"iana\"},\"application/vnd.patentdive\":{\"source\":\"iana\"},\"application/vnd.patientecommsdoc\":{\"source\":\"iana\"},\"application/vnd.pawaafile\":{\"source\":\"iana\",\"extensions\":[\"paw\"]},\"application/vnd.pcos\":{\"source\":\"iana\"},\"application/vnd.pg.format\":{\"source\":\"iana\",\"extensions\":[\"str\"]},\"application/vnd.pg.osasli\":{\"source\":\"iana\",\"extensions\":[\"ei6\"]},\"application/vnd.piaccess.application-licence\":{\"source\":\"iana\"},\"application/vnd.picsel\":{\"source\":\"iana\",\"extensions\":[\"efif\"]},\"application/vnd.pmi.widget\":{\"source\":\"iana\",\"extensions\":[\"wg\"]},\"application/vnd.poc.group-advertisement+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.pocketlearn\":{\"source\":\"iana\",\"extensions\":[\"plf\"]},\"application/vnd.powerbuilder6\":{\"source\":\"iana\",\"extensions\":[\"pbd\"]},\"application/vnd.powerbuilder6-s\":{\"source\":\"iana\"},\"application/vnd.powerbuilder7\":{\"source\":\"iana\"},\"application/vnd.powerbuilder7-s\":{\"source\":\"iana\"},\"application/vnd.powerbuilder75\":{\"source\":\"iana\"},\"application/vnd.powerbuilder75-s\":{\"source\":\"iana\"},\"application/vnd.preminet\":{\"source\":\"iana\"},\"application/vnd.previewsystems.box\":{\"source\":\"iana\",\"extensions\":[\"box\"]},\"application/vnd.proteus.magazine\":{\"source\":\"iana\",\"extensions\":[\"mgz\"]},\"application/vnd.psfs\":{\"source\":\"iana\"},\"application/vnd.publishare-delta-tree\":{\"source\":\"iana\",\"extensions\":[\"qps\"]},\"application/vnd.pvi.ptid1\":{\"source\":\"iana\",\"extensions\":[\"ptid\"]},\"application/vnd.pwg-multiplexed\":{\"source\":\"iana\"},\"application/vnd.pwg-xhtml-print+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.qualcomm.brew-app-res\":{\"source\":\"iana\"},\"application/vnd.quarantainenet\":{\"source\":\"iana\"},\"application/vnd.quark.quarkxpress\":{\"source\":\"iana\",\"extensions\":[\"qxd\",\"qxt\",\"qwd\",\"qwt\",\"qxl\",\"qxb\"]},\"application/vnd.quobject-quoxdocument\":{\"source\":\"iana\"},\"application/vnd.radisys.moml+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-audit+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-audit-conf+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-audit-conn+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-audit-dialog+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-audit-stream+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-conf+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-dialog+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-dialog-base+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-dialog-fax-detect+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-dialog-fax-sendrecv+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-dialog-group+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-dialog-speech+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.radisys.msml-dialog-transform+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.rainstor.data\":{\"source\":\"iana\"},\"application/vnd.rapid\":{\"source\":\"iana\"},\"application/vnd.rar\":{\"source\":\"iana\",\"extensions\":[\"rar\"]},\"application/vnd.realvnc.bed\":{\"source\":\"iana\",\"extensions\":[\"bed\"]},\"application/vnd.recordare.musicxml\":{\"source\":\"iana\",\"extensions\":[\"mxl\"]},\"application/vnd.recordare.musicxml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"musicxml\"]},\"application/vnd.renlearn.rlprint\":{\"source\":\"iana\"},\"application/vnd.resilient.logic\":{\"source\":\"iana\"},\"application/vnd.restful+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.rig.cryptonote\":{\"source\":\"iana\",\"extensions\":[\"cryptonote\"]},\"application/vnd.rim.cod\":{\"source\":\"apache\",\"extensions\":[\"cod\"]},\"application/vnd.rn-realmedia\":{\"source\":\"apache\",\"extensions\":[\"rm\"]},\"application/vnd.rn-realmedia-vbr\":{\"source\":\"apache\",\"extensions\":[\"rmvb\"]},\"application/vnd.route66.link66+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"link66\"]},\"application/vnd.rs-274x\":{\"source\":\"iana\"},\"application/vnd.ruckus.download\":{\"source\":\"iana\"},\"application/vnd.s3sms\":{\"source\":\"iana\"},\"application/vnd.sailingtracker.track\":{\"source\":\"iana\",\"extensions\":[\"st\"]},\"application/vnd.sar\":{\"source\":\"iana\"},\"application/vnd.sbm.cid\":{\"source\":\"iana\"},\"application/vnd.sbm.mid2\":{\"source\":\"iana\"},\"application/vnd.scribus\":{\"source\":\"iana\"},\"application/vnd.sealed.3df\":{\"source\":\"iana\"},\"application/vnd.sealed.csf\":{\"source\":\"iana\"},\"application/vnd.sealed.doc\":{\"source\":\"iana\"},\"application/vnd.sealed.eml\":{\"source\":\"iana\"},\"application/vnd.sealed.mht\":{\"source\":\"iana\"},\"application/vnd.sealed.net\":{\"source\":\"iana\"},\"application/vnd.sealed.ppt\":{\"source\":\"iana\"},\"application/vnd.sealed.tiff\":{\"source\":\"iana\"},\"application/vnd.sealed.xls\":{\"source\":\"iana\"},\"application/vnd.sealedmedia.softseal.html\":{\"source\":\"iana\"},\"application/vnd.sealedmedia.softseal.pdf\":{\"source\":\"iana\"},\"application/vnd.seemail\":{\"source\":\"iana\",\"extensions\":[\"see\"]},\"application/vnd.seis+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.sema\":{\"source\":\"iana\",\"extensions\":[\"sema\"]},\"application/vnd.semd\":{\"source\":\"iana\",\"extensions\":[\"semd\"]},\"application/vnd.semf\":{\"source\":\"iana\",\"extensions\":[\"semf\"]},\"application/vnd.shade-save-file\":{\"source\":\"iana\"},\"application/vnd.shana.informed.formdata\":{\"source\":\"iana\",\"extensions\":[\"ifm\"]},\"application/vnd.shana.informed.formtemplate\":{\"source\":\"iana\",\"extensions\":[\"itp\"]},\"application/vnd.shana.informed.interchange\":{\"source\":\"iana\",\"extensions\":[\"iif\"]},\"application/vnd.shana.informed.package\":{\"source\":\"iana\",\"extensions\":[\"ipk\"]},\"application/vnd.shootproof+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.shopkick+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.shp\":{\"source\":\"iana\"},\"application/vnd.shx\":{\"source\":\"iana\"},\"application/vnd.sigrok.session\":{\"source\":\"iana\"},\"application/vnd.simtech-mindmapper\":{\"source\":\"iana\",\"extensions\":[\"twd\",\"twds\"]},\"application/vnd.siren+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.smaf\":{\"source\":\"iana\",\"extensions\":[\"mmf\"]},\"application/vnd.smart.notebook\":{\"source\":\"iana\"},\"application/vnd.smart.teacher\":{\"source\":\"iana\",\"extensions\":[\"teacher\"]},\"application/vnd.snesdev-page-table\":{\"source\":\"iana\"},\"application/vnd.software602.filler.form+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"fo\"]},\"application/vnd.software602.filler.form-xml-zip\":{\"source\":\"iana\"},\"application/vnd.solent.sdkm+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"sdkm\",\"sdkd\"]},\"application/vnd.spotfire.dxp\":{\"source\":\"iana\",\"extensions\":[\"dxp\"]},\"application/vnd.spotfire.sfs\":{\"source\":\"iana\",\"extensions\":[\"sfs\"]},\"application/vnd.sqlite3\":{\"source\":\"iana\"},\"application/vnd.sss-cod\":{\"source\":\"iana\"},\"application/vnd.sss-dtf\":{\"source\":\"iana\"},\"application/vnd.sss-ntf\":{\"source\":\"iana\"},\"application/vnd.stardivision.calc\":{\"source\":\"apache\",\"extensions\":[\"sdc\"]},\"application/vnd.stardivision.draw\":{\"source\":\"apache\",\"extensions\":[\"sda\"]},\"application/vnd.stardivision.impress\":{\"source\":\"apache\",\"extensions\":[\"sdd\"]},\"application/vnd.stardivision.math\":{\"source\":\"apache\",\"extensions\":[\"smf\"]},\"application/vnd.stardivision.writer\":{\"source\":\"apache\",\"extensions\":[\"sdw\",\"vor\"]},\"application/vnd.stardivision.writer-global\":{\"source\":\"apache\",\"extensions\":[\"sgl\"]},\"application/vnd.stepmania.package\":{\"source\":\"iana\",\"extensions\":[\"smzip\"]},\"application/vnd.stepmania.stepchart\":{\"source\":\"iana\",\"extensions\":[\"sm\"]},\"application/vnd.street-stream\":{\"source\":\"iana\"},\"application/vnd.sun.wadl+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"wadl\"]},\"application/vnd.sun.xml.calc\":{\"source\":\"apache\",\"extensions\":[\"sxc\"]},\"application/vnd.sun.xml.calc.template\":{\"source\":\"apache\",\"extensions\":[\"stc\"]},\"application/vnd.sun.xml.draw\":{\"source\":\"apache\",\"extensions\":[\"sxd\"]},\"application/vnd.sun.xml.draw.template\":{\"source\":\"apache\",\"extensions\":[\"std\"]},\"application/vnd.sun.xml.impress\":{\"source\":\"apache\",\"extensions\":[\"sxi\"]},\"application/vnd.sun.xml.impress.template\":{\"source\":\"apache\",\"extensions\":[\"sti\"]},\"application/vnd.sun.xml.math\":{\"source\":\"apache\",\"extensions\":[\"sxm\"]},\"application/vnd.sun.xml.writer\":{\"source\":\"apache\",\"extensions\":[\"sxw\"]},\"application/vnd.sun.xml.writer.global\":{\"source\":\"apache\",\"extensions\":[\"sxg\"]},\"application/vnd.sun.xml.writer.template\":{\"source\":\"apache\",\"extensions\":[\"stw\"]},\"application/vnd.sus-calendar\":{\"source\":\"iana\",\"extensions\":[\"sus\",\"susp\"]},\"application/vnd.svd\":{\"source\":\"iana\",\"extensions\":[\"svd\"]},\"application/vnd.swiftview-ics\":{\"source\":\"iana\"},\"application/vnd.sycle+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.syft+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.symbian.install\":{\"source\":\"apache\",\"extensions\":[\"sis\",\"sisx\"]},\"application/vnd.syncml+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"xsm\"]},\"application/vnd.syncml.dm+wbxml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"extensions\":[\"bdm\"]},\"application/vnd.syncml.dm+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"xdm\"]},\"application/vnd.syncml.dm.notification\":{\"source\":\"iana\"},\"application/vnd.syncml.dmddf+wbxml\":{\"source\":\"iana\"},\"application/vnd.syncml.dmddf+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"ddf\"]},\"application/vnd.syncml.dmtnds+wbxml\":{\"source\":\"iana\"},\"application/vnd.syncml.dmtnds+xml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true},\"application/vnd.syncml.ds.notification\":{\"source\":\"iana\"},\"application/vnd.tableschema+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.tao.intent-module-archive\":{\"source\":\"iana\",\"extensions\":[\"tao\"]},\"application/vnd.tcpdump.pcap\":{\"source\":\"iana\",\"extensions\":[\"pcap\",\"cap\",\"dmp\"]},\"application/vnd.think-cell.ppttc+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.tmd.mediaflex.api+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.tml\":{\"source\":\"iana\"},\"application/vnd.tmobile-livetv\":{\"source\":\"iana\",\"extensions\":[\"tmo\"]},\"application/vnd.tri.onesource\":{\"source\":\"iana\"},\"application/vnd.trid.tpt\":{\"source\":\"iana\",\"extensions\":[\"tpt\"]},\"application/vnd.triscape.mxs\":{\"source\":\"iana\",\"extensions\":[\"mxs\"]},\"application/vnd.trueapp\":{\"source\":\"iana\",\"extensions\":[\"tra\"]},\"application/vnd.truedoc\":{\"source\":\"iana\"},\"application/vnd.ubisoft.webplayer\":{\"source\":\"iana\"},\"application/vnd.ufdl\":{\"source\":\"iana\",\"extensions\":[\"ufd\",\"ufdl\"]},\"application/vnd.uiq.theme\":{\"source\":\"iana\",\"extensions\":[\"utz\"]},\"application/vnd.umajin\":{\"source\":\"iana\",\"extensions\":[\"umj\"]},\"application/vnd.unity\":{\"source\":\"iana\",\"extensions\":[\"unityweb\"]},\"application/vnd.uoml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"uoml\"]},\"application/vnd.uplanet.alert\":{\"source\":\"iana\"},\"application/vnd.uplanet.alert-wbxml\":{\"source\":\"iana\"},\"application/vnd.uplanet.bearer-choice\":{\"source\":\"iana\"},\"application/vnd.uplanet.bearer-choice-wbxml\":{\"source\":\"iana\"},\"application/vnd.uplanet.cacheop\":{\"source\":\"iana\"},\"application/vnd.uplanet.cacheop-wbxml\":{\"source\":\"iana\"},\"application/vnd.uplanet.channel\":{\"source\":\"iana\"},\"application/vnd.uplanet.channel-wbxml\":{\"source\":\"iana\"},\"application/vnd.uplanet.list\":{\"source\":\"iana\"},\"application/vnd.uplanet.list-wbxml\":{\"source\":\"iana\"},\"application/vnd.uplanet.listcmd\":{\"source\":\"iana\"},\"application/vnd.uplanet.listcmd-wbxml\":{\"source\":\"iana\"},\"application/vnd.uplanet.signal\":{\"source\":\"iana\"},\"application/vnd.uri-map\":{\"source\":\"iana\"},\"application/vnd.valve.source.material\":{\"source\":\"iana\"},\"application/vnd.vcx\":{\"source\":\"iana\",\"extensions\":[\"vcx\"]},\"application/vnd.vd-study\":{\"source\":\"iana\"},\"application/vnd.vectorworks\":{\"source\":\"iana\"},\"application/vnd.vel+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.verimatrix.vcas\":{\"source\":\"iana\"},\"application/vnd.veritone.aion+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.veryant.thin\":{\"source\":\"iana\"},\"application/vnd.ves.encrypted\":{\"source\":\"iana\"},\"application/vnd.vidsoft.vidconference\":{\"source\":\"iana\"},\"application/vnd.visio\":{\"source\":\"iana\",\"extensions\":[\"vsd\",\"vst\",\"vss\",\"vsw\"]},\"application/vnd.visionary\":{\"source\":\"iana\",\"extensions\":[\"vis\"]},\"application/vnd.vividence.scriptfile\":{\"source\":\"iana\"},\"application/vnd.vsf\":{\"source\":\"iana\",\"extensions\":[\"vsf\"]},\"application/vnd.wap.sic\":{\"source\":\"iana\"},\"application/vnd.wap.slc\":{\"source\":\"iana\"},\"application/vnd.wap.wbxml\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"extensions\":[\"wbxml\"]},\"application/vnd.wap.wmlc\":{\"source\":\"iana\",\"extensions\":[\"wmlc\"]},\"application/vnd.wap.wmlscriptc\":{\"source\":\"iana\",\"extensions\":[\"wmlsc\"]},\"application/vnd.webturbo\":{\"source\":\"iana\",\"extensions\":[\"wtb\"]},\"application/vnd.wfa.dpp\":{\"source\":\"iana\"},\"application/vnd.wfa.p2p\":{\"source\":\"iana\"},\"application/vnd.wfa.wsc\":{\"source\":\"iana\"},\"application/vnd.windows.devicepairing\":{\"source\":\"iana\"},\"application/vnd.wmc\":{\"source\":\"iana\"},\"application/vnd.wmf.bootstrap\":{\"source\":\"iana\"},\"application/vnd.wolfram.mathematica\":{\"source\":\"iana\"},\"application/vnd.wolfram.mathematica.package\":{\"source\":\"iana\"},\"application/vnd.wolfram.player\":{\"source\":\"iana\",\"extensions\":[\"nbp\"]},\"application/vnd.wordperfect\":{\"source\":\"iana\",\"extensions\":[\"wpd\"]},\"application/vnd.wqd\":{\"source\":\"iana\",\"extensions\":[\"wqd\"]},\"application/vnd.wrq-hp3000-labelled\":{\"source\":\"iana\"},\"application/vnd.wt.stf\":{\"source\":\"iana\",\"extensions\":[\"stf\"]},\"application/vnd.wv.csp+wbxml\":{\"source\":\"iana\"},\"application/vnd.wv.csp+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.wv.ssp+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.xacml+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.xara\":{\"source\":\"iana\",\"extensions\":[\"xar\"]},\"application/vnd.xfdl\":{\"source\":\"iana\",\"extensions\":[\"xfdl\"]},\"application/vnd.xfdl.webform\":{\"source\":\"iana\"},\"application/vnd.xmi+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/vnd.xmpie.cpkg\":{\"source\":\"iana\"},\"application/vnd.xmpie.dpkg\":{\"source\":\"iana\"},\"application/vnd.xmpie.plan\":{\"source\":\"iana\"},\"application/vnd.xmpie.ppkg\":{\"source\":\"iana\"},\"application/vnd.xmpie.xlim\":{\"source\":\"iana\"},\"application/vnd.yamaha.hv-dic\":{\"source\":\"iana\",\"extensions\":[\"hvd\"]},\"application/vnd.yamaha.hv-script\":{\"source\":\"iana\",\"extensions\":[\"hvs\"]},\"application/vnd.yamaha.hv-voice\":{\"source\":\"iana\",\"extensions\":[\"hvp\"]},\"application/vnd.yamaha.openscoreformat\":{\"source\":\"iana\",\"extensions\":[\"osf\"]},\"application/vnd.yamaha.openscoreformat.osfpvg+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"osfpvg\"]},\"application/vnd.yamaha.remote-setup\":{\"source\":\"iana\"},\"application/vnd.yamaha.smaf-audio\":{\"source\":\"iana\",\"extensions\":[\"saf\"]},\"application/vnd.yamaha.smaf-phrase\":{\"source\":\"iana\",\"extensions\":[\"spf\"]},\"application/vnd.yamaha.through-ngn\":{\"source\":\"iana\"},\"application/vnd.yamaha.tunnel-udpencap\":{\"source\":\"iana\"},\"application/vnd.yaoweme\":{\"source\":\"iana\"},\"application/vnd.yellowriver-custom-menu\":{\"source\":\"iana\",\"extensions\":[\"cmp\"]},\"application/vnd.youtube.yt\":{\"source\":\"iana\"},\"application/vnd.zul\":{\"source\":\"iana\",\"extensions\":[\"zir\",\"zirz\"]},\"application/vnd.zzazz.deck+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"zaz\"]},\"application/voicexml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"vxml\"]},\"application/voucher-cms+json\":{\"source\":\"iana\",\"compressible\":true},\"application/vq-rtcpxr\":{\"source\":\"iana\"},\"application/wasm\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"wasm\"]},\"application/watcherinfo+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"wif\"]},\"application/webpush-options+json\":{\"source\":\"iana\",\"compressible\":true},\"application/whoispp-query\":{\"source\":\"iana\"},\"application/whoispp-response\":{\"source\":\"iana\"},\"application/widget\":{\"source\":\"iana\",\"extensions\":[\"wgt\"]},\"application/winhlp\":{\"source\":\"apache\",\"extensions\":[\"hlp\"]},\"application/wita\":{\"source\":\"iana\"},\"application/wordperfect5.1\":{\"source\":\"iana\"},\"application/wsdl+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"wsdl\"]},\"application/wspolicy+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"wspolicy\"]},\"application/x-7z-compressed\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"7z\"]},\"application/x-abiword\":{\"source\":\"apache\",\"extensions\":[\"abw\"]},\"application/x-ace-compressed\":{\"source\":\"apache\",\"extensions\":[\"ace\"]},\"application/x-amf\":{\"source\":\"apache\"},\"application/x-apple-diskimage\":{\"source\":\"apache\",\"extensions\":[\"dmg\"]},\"application/x-arj\":{\"compressible\":false,\"extensions\":[\"arj\"]},\"application/x-authorware-bin\":{\"source\":\"apache\",\"extensions\":[\"aab\",\"x32\",\"u32\",\"vox\"]},\"application/x-authorware-map\":{\"source\":\"apache\",\"extensions\":[\"aam\"]},\"application/x-authorware-seg\":{\"source\":\"apache\",\"extensions\":[\"aas\"]},\"application/x-bcpio\":{\"source\":\"apache\",\"extensions\":[\"bcpio\"]},\"application/x-bdoc\":{\"compressible\":false,\"extensions\":[\"bdoc\"]},\"application/x-bittorrent\":{\"source\":\"apache\",\"extensions\":[\"torrent\"]},\"application/x-blorb\":{\"source\":\"apache\",\"extensions\":[\"blb\",\"blorb\"]},\"application/x-bzip\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"bz\"]},\"application/x-bzip2\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"bz2\",\"boz\"]},\"application/x-cbr\":{\"source\":\"apache\",\"extensions\":[\"cbr\",\"cba\",\"cbt\",\"cbz\",\"cb7\"]},\"application/x-cdlink\":{\"source\":\"apache\",\"extensions\":[\"vcd\"]},\"application/x-cfs-compressed\":{\"source\":\"apache\",\"extensions\":[\"cfs\"]},\"application/x-chat\":{\"source\":\"apache\",\"extensions\":[\"chat\"]},\"application/x-chess-pgn\":{\"source\":\"apache\",\"extensions\":[\"pgn\"]},\"application/x-chrome-extension\":{\"extensions\":[\"crx\"]},\"application/x-cocoa\":{\"source\":\"nginx\",\"extensions\":[\"cco\"]},\"application/x-compress\":{\"source\":\"apache\"},\"application/x-conference\":{\"source\":\"apache\",\"extensions\":[\"nsc\"]},\"application/x-cpio\":{\"source\":\"apache\",\"extensions\":[\"cpio\"]},\"application/x-csh\":{\"source\":\"apache\",\"extensions\":[\"csh\"]},\"application/x-deb\":{\"compressible\":false},\"application/x-debian-package\":{\"source\":\"apache\",\"extensions\":[\"deb\",\"udeb\"]},\"application/x-dgc-compressed\":{\"source\":\"apache\",\"extensions\":[\"dgc\"]},\"application/x-director\":{\"source\":\"apache\",\"extensions\":[\"dir\",\"dcr\",\"dxr\",\"cst\",\"cct\",\"cxt\",\"w3d\",\"fgd\",\"swa\"]},\"application/x-doom\":{\"source\":\"apache\",\"extensions\":[\"wad\"]},\"application/x-dtbncx+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"ncx\"]},\"application/x-dtbook+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"dtb\"]},\"application/x-dtbresource+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"res\"]},\"application/x-dvi\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"dvi\"]},\"application/x-envoy\":{\"source\":\"apache\",\"extensions\":[\"evy\"]},\"application/x-eva\":{\"source\":\"apache\",\"extensions\":[\"eva\"]},\"application/x-font-bdf\":{\"source\":\"apache\",\"extensions\":[\"bdf\"]},\"application/x-font-dos\":{\"source\":\"apache\"},\"application/x-font-framemaker\":{\"source\":\"apache\"},\"application/x-font-ghostscript\":{\"source\":\"apache\",\"extensions\":[\"gsf\"]},\"application/x-font-libgrx\":{\"source\":\"apache\"},\"application/x-font-linux-psf\":{\"source\":\"apache\",\"extensions\":[\"psf\"]},\"application/x-font-pcf\":{\"source\":\"apache\",\"extensions\":[\"pcf\"]},\"application/x-font-snf\":{\"source\":\"apache\",\"extensions\":[\"snf\"]},\"application/x-font-speedo\":{\"source\":\"apache\"},\"application/x-font-sunos-news\":{\"source\":\"apache\"},\"application/x-font-type1\":{\"source\":\"apache\",\"extensions\":[\"pfa\",\"pfb\",\"pfm\",\"afm\"]},\"application/x-font-vfont\":{\"source\":\"apache\"},\"application/x-freearc\":{\"source\":\"apache\",\"extensions\":[\"arc\"]},\"application/x-futuresplash\":{\"source\":\"apache\",\"extensions\":[\"spl\"]},\"application/x-gca-compressed\":{\"source\":\"apache\",\"extensions\":[\"gca\"]},\"application/x-glulx\":{\"source\":\"apache\",\"extensions\":[\"ulx\"]},\"application/x-gnumeric\":{\"source\":\"apache\",\"extensions\":[\"gnumeric\"]},\"application/x-gramps-xml\":{\"source\":\"apache\",\"extensions\":[\"gramps\"]},\"application/x-gtar\":{\"source\":\"apache\",\"extensions\":[\"gtar\"]},\"application/x-gzip\":{\"source\":\"apache\"},\"application/x-hdf\":{\"source\":\"apache\",\"extensions\":[\"hdf\"]},\"application/x-httpd-php\":{\"compressible\":true,\"extensions\":[\"php\"]},\"application/x-install-instructions\":{\"source\":\"apache\",\"extensions\":[\"install\"]},\"application/x-iso9660-image\":{\"source\":\"apache\",\"extensions\":[\"iso\"]},\"application/x-iwork-keynote-sffkey\":{\"extensions\":[\"key\"]},\"application/x-iwork-numbers-sffnumbers\":{\"extensions\":[\"numbers\"]},\"application/x-iwork-pages-sffpages\":{\"extensions\":[\"pages\"]},\"application/x-java-archive-diff\":{\"source\":\"nginx\",\"extensions\":[\"jardiff\"]},\"application/x-java-jnlp-file\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"jnlp\"]},\"application/x-javascript\":{\"compressible\":true},\"application/x-keepass2\":{\"extensions\":[\"kdbx\"]},\"application/x-latex\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"latex\"]},\"application/x-lua-bytecode\":{\"extensions\":[\"luac\"]},\"application/x-lzh-compressed\":{\"source\":\"apache\",\"extensions\":[\"lzh\",\"lha\"]},\"application/x-makeself\":{\"source\":\"nginx\",\"extensions\":[\"run\"]},\"application/x-mie\":{\"source\":\"apache\",\"extensions\":[\"mie\"]},\"application/x-mobipocket-ebook\":{\"source\":\"apache\",\"extensions\":[\"prc\",\"mobi\"]},\"application/x-mpegurl\":{\"compressible\":false},\"application/x-ms-application\":{\"source\":\"apache\",\"extensions\":[\"application\"]},\"application/x-ms-shortcut\":{\"source\":\"apache\",\"extensions\":[\"lnk\"]},\"application/x-ms-wmd\":{\"source\":\"apache\",\"extensions\":[\"wmd\"]},\"application/x-ms-wmz\":{\"source\":\"apache\",\"extensions\":[\"wmz\"]},\"application/x-ms-xbap\":{\"source\":\"apache\",\"extensions\":[\"xbap\"]},\"application/x-msaccess\":{\"source\":\"apache\",\"extensions\":[\"mdb\"]},\"application/x-msbinder\":{\"source\":\"apache\",\"extensions\":[\"obd\"]},\"application/x-mscardfile\":{\"source\":\"apache\",\"extensions\":[\"crd\"]},\"application/x-msclip\":{\"source\":\"apache\",\"extensions\":[\"clp\"]},\"application/x-msdos-program\":{\"extensions\":[\"exe\"]},\"application/x-msdownload\":{\"source\":\"apache\",\"extensions\":[\"exe\",\"dll\",\"com\",\"bat\",\"msi\"]},\"application/x-msmediaview\":{\"source\":\"apache\",\"extensions\":[\"mvb\",\"m13\",\"m14\"]},\"application/x-msmetafile\":{\"source\":\"apache\",\"extensions\":[\"wmf\",\"wmz\",\"emf\",\"emz\"]},\"application/x-msmoney\":{\"source\":\"apache\",\"extensions\":[\"mny\"]},\"application/x-mspublisher\":{\"source\":\"apache\",\"extensions\":[\"pub\"]},\"application/x-msschedule\":{\"source\":\"apache\",\"extensions\":[\"scd\"]},\"application/x-msterminal\":{\"source\":\"apache\",\"extensions\":[\"trm\"]},\"application/x-mswrite\":{\"source\":\"apache\",\"extensions\":[\"wri\"]},\"application/x-netcdf\":{\"source\":\"apache\",\"extensions\":[\"nc\",\"cdf\"]},\"application/x-ns-proxy-autoconfig\":{\"compressible\":true,\"extensions\":[\"pac\"]},\"application/x-nzb\":{\"source\":\"apache\",\"extensions\":[\"nzb\"]},\"application/x-perl\":{\"source\":\"nginx\",\"extensions\":[\"pl\",\"pm\"]},\"application/x-pilot\":{\"source\":\"nginx\",\"extensions\":[\"prc\",\"pdb\"]},\"application/x-pkcs12\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"p12\",\"pfx\"]},\"application/x-pkcs7-certificates\":{\"source\":\"apache\",\"extensions\":[\"p7b\",\"spc\"]},\"application/x-pkcs7-certreqresp\":{\"source\":\"apache\",\"extensions\":[\"p7r\"]},\"application/x-pki-message\":{\"source\":\"iana\"},\"application/x-rar-compressed\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"rar\"]},\"application/x-redhat-package-manager\":{\"source\":\"nginx\",\"extensions\":[\"rpm\"]},\"application/x-research-info-systems\":{\"source\":\"apache\",\"extensions\":[\"ris\"]},\"application/x-sea\":{\"source\":\"nginx\",\"extensions\":[\"sea\"]},\"application/x-sh\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"sh\"]},\"application/x-shar\":{\"source\":\"apache\",\"extensions\":[\"shar\"]},\"application/x-shockwave-flash\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"swf\"]},\"application/x-silverlight-app\":{\"source\":\"apache\",\"extensions\":[\"xap\"]},\"application/x-sql\":{\"source\":\"apache\",\"extensions\":[\"sql\"]},\"application/x-stuffit\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"sit\"]},\"application/x-stuffitx\":{\"source\":\"apache\",\"extensions\":[\"sitx\"]},\"application/x-subrip\":{\"source\":\"apache\",\"extensions\":[\"srt\"]},\"application/x-sv4cpio\":{\"source\":\"apache\",\"extensions\":[\"sv4cpio\"]},\"application/x-sv4crc\":{\"source\":\"apache\",\"extensions\":[\"sv4crc\"]},\"application/x-t3vm-image\":{\"source\":\"apache\",\"extensions\":[\"t3\"]},\"application/x-tads\":{\"source\":\"apache\",\"extensions\":[\"gam\"]},\"application/x-tar\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"tar\"]},\"application/x-tcl\":{\"source\":\"apache\",\"extensions\":[\"tcl\",\"tk\"]},\"application/x-tex\":{\"source\":\"apache\",\"extensions\":[\"tex\"]},\"application/x-tex-tfm\":{\"source\":\"apache\",\"extensions\":[\"tfm\"]},\"application/x-texinfo\":{\"source\":\"apache\",\"extensions\":[\"texinfo\",\"texi\"]},\"application/x-tgif\":{\"source\":\"apache\",\"extensions\":[\"obj\"]},\"application/x-ustar\":{\"source\":\"apache\",\"extensions\":[\"ustar\"]},\"application/x-virtualbox-hdd\":{\"compressible\":true,\"extensions\":[\"hdd\"]},\"application/x-virtualbox-ova\":{\"compressible\":true,\"extensions\":[\"ova\"]},\"application/x-virtualbox-ovf\":{\"compressible\":true,\"extensions\":[\"ovf\"]},\"application/x-virtualbox-vbox\":{\"compressible\":true,\"extensions\":[\"vbox\"]},\"application/x-virtualbox-vbox-extpack\":{\"compressible\":false,\"extensions\":[\"vbox-extpack\"]},\"application/x-virtualbox-vdi\":{\"compressible\":true,\"extensions\":[\"vdi\"]},\"application/x-virtualbox-vhd\":{\"compressible\":true,\"extensions\":[\"vhd\"]},\"application/x-virtualbox-vmdk\":{\"compressible\":true,\"extensions\":[\"vmdk\"]},\"application/x-wais-source\":{\"source\":\"apache\",\"extensions\":[\"src\"]},\"application/x-web-app-manifest+json\":{\"compressible\":true,\"extensions\":[\"webapp\"]},\"application/x-www-form-urlencoded\":{\"source\":\"iana\",\"compressible\":true},\"application/x-x509-ca-cert\":{\"source\":\"iana\",\"extensions\":[\"der\",\"crt\",\"pem\"]},\"application/x-x509-ca-ra-cert\":{\"source\":\"iana\"},\"application/x-x509-next-ca-cert\":{\"source\":\"iana\"},\"application/x-xfig\":{\"source\":\"apache\",\"extensions\":[\"fig\"]},\"application/x-xliff+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"xlf\"]},\"application/x-xpinstall\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"xpi\"]},\"application/x-xz\":{\"source\":\"apache\",\"extensions\":[\"xz\"]},\"application/x-zmachine\":{\"source\":\"apache\",\"extensions\":[\"z1\",\"z2\",\"z3\",\"z4\",\"z5\",\"z6\",\"z7\",\"z8\"]},\"application/x400-bp\":{\"source\":\"iana\"},\"application/xacml+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/xaml+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"xaml\"]},\"application/xcap-att+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xav\"]},\"application/xcap-caps+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xca\"]},\"application/xcap-diff+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xdf\"]},\"application/xcap-el+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xel\"]},\"application/xcap-error+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/xcap-ns+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xns\"]},\"application/xcon-conference-info+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/xcon-conference-info-diff+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/xenc+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xenc\"]},\"application/xhtml+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xhtml\",\"xht\"]},\"application/xhtml-voice+xml\":{\"source\":\"apache\",\"compressible\":true},\"application/xliff+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xlf\"]},\"application/xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xml\",\"xsl\",\"xsd\",\"rng\"]},\"application/xml-dtd\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"dtd\"]},\"application/xml-external-parsed-entity\":{\"source\":\"iana\"},\"application/xml-patch+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/xmpp+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/xop+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xop\"]},\"application/xproc+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"xpl\"]},\"application/xslt+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xsl\",\"xslt\"]},\"application/xspf+xml\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"xspf\"]},\"application/xv+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"mxml\",\"xhvml\",\"xvml\",\"xvm\"]},\"application/yang\":{\"source\":\"iana\",\"extensions\":[\"yang\"]},\"application/yang-data+json\":{\"source\":\"iana\",\"compressible\":true},\"application/yang-data+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/yang-patch+json\":{\"source\":\"iana\",\"compressible\":true},\"application/yang-patch+xml\":{\"source\":\"iana\",\"compressible\":true},\"application/yin+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"yin\"]},\"application/zip\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"zip\"]},\"application/zlib\":{\"source\":\"iana\"},\"application/zstd\":{\"source\":\"iana\"},\"audio/1d-interleaved-parityfec\":{\"source\":\"iana\"},\"audio/32kadpcm\":{\"source\":\"iana\"},\"audio/3gpp\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"3gpp\"]},\"audio/3gpp2\":{\"source\":\"iana\"},\"audio/aac\":{\"source\":\"iana\"},\"audio/ac3\":{\"source\":\"iana\"},\"audio/adpcm\":{\"source\":\"apache\",\"extensions\":[\"adp\"]},\"audio/amr\":{\"source\":\"iana\",\"extensions\":[\"amr\"]},\"audio/amr-wb\":{\"source\":\"iana\"},\"audio/amr-wb+\":{\"source\":\"iana\"},\"audio/aptx\":{\"source\":\"iana\"},\"audio/asc\":{\"source\":\"iana\"},\"audio/atrac-advanced-lossless\":{\"source\":\"iana\"},\"audio/atrac-x\":{\"source\":\"iana\"},\"audio/atrac3\":{\"source\":\"iana\"},\"audio/basic\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"au\",\"snd\"]},\"audio/bv16\":{\"source\":\"iana\"},\"audio/bv32\":{\"source\":\"iana\"},\"audio/clearmode\":{\"source\":\"iana\"},\"audio/cn\":{\"source\":\"iana\"},\"audio/dat12\":{\"source\":\"iana\"},\"audio/dls\":{\"source\":\"iana\"},\"audio/dsr-es201108\":{\"source\":\"iana\"},\"audio/dsr-es202050\":{\"source\":\"iana\"},\"audio/dsr-es202211\":{\"source\":\"iana\"},\"audio/dsr-es202212\":{\"source\":\"iana\"},\"audio/dv\":{\"source\":\"iana\"},\"audio/dvi4\":{\"source\":\"iana\"},\"audio/eac3\":{\"source\":\"iana\"},\"audio/encaprtp\":{\"source\":\"iana\"},\"audio/evrc\":{\"source\":\"iana\"},\"audio/evrc-qcp\":{\"source\":\"iana\"},\"audio/evrc0\":{\"source\":\"iana\"},\"audio/evrc1\":{\"source\":\"iana\"},\"audio/evrcb\":{\"source\":\"iana\"},\"audio/evrcb0\":{\"source\":\"iana\"},\"audio/evrcb1\":{\"source\":\"iana\"},\"audio/evrcnw\":{\"source\":\"iana\"},\"audio/evrcnw0\":{\"source\":\"iana\"},\"audio/evrcnw1\":{\"source\":\"iana\"},\"audio/evrcwb\":{\"source\":\"iana\"},\"audio/evrcwb0\":{\"source\":\"iana\"},\"audio/evrcwb1\":{\"source\":\"iana\"},\"audio/evs\":{\"source\":\"iana\"},\"audio/flexfec\":{\"source\":\"iana\"},\"audio/fwdred\":{\"source\":\"iana\"},\"audio/g711-0\":{\"source\":\"iana\"},\"audio/g719\":{\"source\":\"iana\"},\"audio/g722\":{\"source\":\"iana\"},\"audio/g7221\":{\"source\":\"iana\"},\"audio/g723\":{\"source\":\"iana\"},\"audio/g726-16\":{\"source\":\"iana\"},\"audio/g726-24\":{\"source\":\"iana\"},\"audio/g726-32\":{\"source\":\"iana\"},\"audio/g726-40\":{\"source\":\"iana\"},\"audio/g728\":{\"source\":\"iana\"},\"audio/g729\":{\"source\":\"iana\"},\"audio/g7291\":{\"source\":\"iana\"},\"audio/g729d\":{\"source\":\"iana\"},\"audio/g729e\":{\"source\":\"iana\"},\"audio/gsm\":{\"source\":\"iana\"},\"audio/gsm-efr\":{\"source\":\"iana\"},\"audio/gsm-hr-08\":{\"source\":\"iana\"},\"audio/ilbc\":{\"source\":\"iana\"},\"audio/ip-mr_v2.5\":{\"source\":\"iana\"},\"audio/isac\":{\"source\":\"apache\"},\"audio/l16\":{\"source\":\"iana\"},\"audio/l20\":{\"source\":\"iana\"},\"audio/l24\":{\"source\":\"iana\",\"compressible\":false},\"audio/l8\":{\"source\":\"iana\"},\"audio/lpc\":{\"source\":\"iana\"},\"audio/melp\":{\"source\":\"iana\"},\"audio/melp1200\":{\"source\":\"iana\"},\"audio/melp2400\":{\"source\":\"iana\"},\"audio/melp600\":{\"source\":\"iana\"},\"audio/mhas\":{\"source\":\"iana\"},\"audio/midi\":{\"source\":\"apache\",\"extensions\":[\"mid\",\"midi\",\"kar\",\"rmi\"]},\"audio/mobile-xmf\":{\"source\":\"iana\",\"extensions\":[\"mxmf\"]},\"audio/mp3\":{\"compressible\":false,\"extensions\":[\"mp3\"]},\"audio/mp4\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"m4a\",\"mp4a\"]},\"audio/mp4a-latm\":{\"source\":\"iana\"},\"audio/mpa\":{\"source\":\"iana\"},\"audio/mpa-robust\":{\"source\":\"iana\"},\"audio/mpeg\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"mpga\",\"mp2\",\"mp2a\",\"mp3\",\"m2a\",\"m3a\"]},\"audio/mpeg4-generic\":{\"source\":\"iana\"},\"audio/musepack\":{\"source\":\"apache\"},\"audio/ogg\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"oga\",\"ogg\",\"spx\",\"opus\"]},\"audio/opus\":{\"source\":\"iana\"},\"audio/parityfec\":{\"source\":\"iana\"},\"audio/pcma\":{\"source\":\"iana\"},\"audio/pcma-wb\":{\"source\":\"iana\"},\"audio/pcmu\":{\"source\":\"iana\"},\"audio/pcmu-wb\":{\"source\":\"iana\"},\"audio/prs.sid\":{\"source\":\"iana\"},\"audio/qcelp\":{\"source\":\"iana\"},\"audio/raptorfec\":{\"source\":\"iana\"},\"audio/red\":{\"source\":\"iana\"},\"audio/rtp-enc-aescm128\":{\"source\":\"iana\"},\"audio/rtp-midi\":{\"source\":\"iana\"},\"audio/rtploopback\":{\"source\":\"iana\"},\"audio/rtx\":{\"source\":\"iana\"},\"audio/s3m\":{\"source\":\"apache\",\"extensions\":[\"s3m\"]},\"audio/scip\":{\"source\":\"iana\"},\"audio/silk\":{\"source\":\"apache\",\"extensions\":[\"sil\"]},\"audio/smv\":{\"source\":\"iana\"},\"audio/smv-qcp\":{\"source\":\"iana\"},\"audio/smv0\":{\"source\":\"iana\"},\"audio/sofa\":{\"source\":\"iana\"},\"audio/sp-midi\":{\"source\":\"iana\"},\"audio/speex\":{\"source\":\"iana\"},\"audio/t140c\":{\"source\":\"iana\"},\"audio/t38\":{\"source\":\"iana\"},\"audio/telephone-event\":{\"source\":\"iana\"},\"audio/tetra_acelp\":{\"source\":\"iana\"},\"audio/tetra_acelp_bb\":{\"source\":\"iana\"},\"audio/tone\":{\"source\":\"iana\"},\"audio/tsvcis\":{\"source\":\"iana\"},\"audio/uemclip\":{\"source\":\"iana\"},\"audio/ulpfec\":{\"source\":\"iana\"},\"audio/usac\":{\"source\":\"iana\"},\"audio/vdvi\":{\"source\":\"iana\"},\"audio/vmr-wb\":{\"source\":\"iana\"},\"audio/vnd.3gpp.iufp\":{\"source\":\"iana\"},\"audio/vnd.4sb\":{\"source\":\"iana\"},\"audio/vnd.audiokoz\":{\"source\":\"iana\"},\"audio/vnd.celp\":{\"source\":\"iana\"},\"audio/vnd.cisco.nse\":{\"source\":\"iana\"},\"audio/vnd.cmles.radio-events\":{\"source\":\"iana\"},\"audio/vnd.cns.anp1\":{\"source\":\"iana\"},\"audio/vnd.cns.inf1\":{\"source\":\"iana\"},\"audio/vnd.dece.audio\":{\"source\":\"iana\",\"extensions\":[\"uva\",\"uvva\"]},\"audio/vnd.digital-winds\":{\"source\":\"iana\",\"extensions\":[\"eol\"]},\"audio/vnd.dlna.adts\":{\"source\":\"iana\"},\"audio/vnd.dolby.heaac.1\":{\"source\":\"iana\"},\"audio/vnd.dolby.heaac.2\":{\"source\":\"iana\"},\"audio/vnd.dolby.mlp\":{\"source\":\"iana\"},\"audio/vnd.dolby.mps\":{\"source\":\"iana\"},\"audio/vnd.dolby.pl2\":{\"source\":\"iana\"},\"audio/vnd.dolby.pl2x\":{\"source\":\"iana\"},\"audio/vnd.dolby.pl2z\":{\"source\":\"iana\"},\"audio/vnd.dolby.pulse.1\":{\"source\":\"iana\"},\"audio/vnd.dra\":{\"source\":\"iana\",\"extensions\":[\"dra\"]},\"audio/vnd.dts\":{\"source\":\"iana\",\"extensions\":[\"dts\"]},\"audio/vnd.dts.hd\":{\"source\":\"iana\",\"extensions\":[\"dtshd\"]},\"audio/vnd.dts.uhd\":{\"source\":\"iana\"},\"audio/vnd.dvb.file\":{\"source\":\"iana\"},\"audio/vnd.everad.plj\":{\"source\":\"iana\"},\"audio/vnd.hns.audio\":{\"source\":\"iana\"},\"audio/vnd.lucent.voice\":{\"source\":\"iana\",\"extensions\":[\"lvp\"]},\"audio/vnd.ms-playready.media.pya\":{\"source\":\"iana\",\"extensions\":[\"pya\"]},\"audio/vnd.nokia.mobile-xmf\":{\"source\":\"iana\"},\"audio/vnd.nortel.vbk\":{\"source\":\"iana\"},\"audio/vnd.nuera.ecelp4800\":{\"source\":\"iana\",\"extensions\":[\"ecelp4800\"]},\"audio/vnd.nuera.ecelp7470\":{\"source\":\"iana\",\"extensions\":[\"ecelp7470\"]},\"audio/vnd.nuera.ecelp9600\":{\"source\":\"iana\",\"extensions\":[\"ecelp9600\"]},\"audio/vnd.octel.sbc\":{\"source\":\"iana\"},\"audio/vnd.presonus.multitrack\":{\"source\":\"iana\"},\"audio/vnd.qcelp\":{\"source\":\"iana\"},\"audio/vnd.rhetorex.32kadpcm\":{\"source\":\"iana\"},\"audio/vnd.rip\":{\"source\":\"iana\",\"extensions\":[\"rip\"]},\"audio/vnd.rn-realaudio\":{\"compressible\":false},\"audio/vnd.sealedmedia.softseal.mpeg\":{\"source\":\"iana\"},\"audio/vnd.vmx.cvsd\":{\"source\":\"iana\"},\"audio/vnd.wave\":{\"compressible\":false},\"audio/vorbis\":{\"source\":\"iana\",\"compressible\":false},\"audio/vorbis-config\":{\"source\":\"iana\"},\"audio/wav\":{\"compressible\":false,\"extensions\":[\"wav\"]},\"audio/wave\":{\"compressible\":false,\"extensions\":[\"wav\"]},\"audio/webm\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"weba\"]},\"audio/x-aac\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"aac\"]},\"audio/x-aiff\":{\"source\":\"apache\",\"extensions\":[\"aif\",\"aiff\",\"aifc\"]},\"audio/x-caf\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"caf\"]},\"audio/x-flac\":{\"source\":\"apache\",\"extensions\":[\"flac\"]},\"audio/x-m4a\":{\"source\":\"nginx\",\"extensions\":[\"m4a\"]},\"audio/x-matroska\":{\"source\":\"apache\",\"extensions\":[\"mka\"]},\"audio/x-mpegurl\":{\"source\":\"apache\",\"extensions\":[\"m3u\"]},\"audio/x-ms-wax\":{\"source\":\"apache\",\"extensions\":[\"wax\"]},\"audio/x-ms-wma\":{\"source\":\"apache\",\"extensions\":[\"wma\"]},\"audio/x-pn-realaudio\":{\"source\":\"apache\",\"extensions\":[\"ram\",\"ra\"]},\"audio/x-pn-realaudio-plugin\":{\"source\":\"apache\",\"extensions\":[\"rmp\"]},\"audio/x-realaudio\":{\"source\":\"nginx\",\"extensions\":[\"ra\"]},\"audio/x-tta\":{\"source\":\"apache\"},\"audio/x-wav\":{\"source\":\"apache\",\"extensions\":[\"wav\"]},\"audio/xm\":{\"source\":\"apache\",\"extensions\":[\"xm\"]},\"chemical/x-cdx\":{\"source\":\"apache\",\"extensions\":[\"cdx\"]},\"chemical/x-cif\":{\"source\":\"apache\",\"extensions\":[\"cif\"]},\"chemical/x-cmdf\":{\"source\":\"apache\",\"extensions\":[\"cmdf\"]},\"chemical/x-cml\":{\"source\":\"apache\",\"extensions\":[\"cml\"]},\"chemical/x-csml\":{\"source\":\"apache\",\"extensions\":[\"csml\"]},\"chemical/x-pdb\":{\"source\":\"apache\"},\"chemical/x-xyz\":{\"source\":\"apache\",\"extensions\":[\"xyz\"]},\"font/collection\":{\"source\":\"iana\",\"extensions\":[\"ttc\"]},\"font/otf\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"otf\"]},\"font/sfnt\":{\"source\":\"iana\"},\"font/ttf\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"ttf\"]},\"font/woff\":{\"source\":\"iana\",\"extensions\":[\"woff\"]},\"font/woff2\":{\"source\":\"iana\",\"extensions\":[\"woff2\"]},\"image/aces\":{\"source\":\"iana\",\"extensions\":[\"exr\"]},\"image/apng\":{\"compressible\":false,\"extensions\":[\"apng\"]},\"image/avci\":{\"source\":\"iana\",\"extensions\":[\"avci\"]},\"image/avcs\":{\"source\":\"iana\",\"extensions\":[\"avcs\"]},\"image/avif\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"avif\"]},\"image/bmp\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"bmp\"]},\"image/cgm\":{\"source\":\"iana\",\"extensions\":[\"cgm\"]},\"image/dicom-rle\":{\"source\":\"iana\",\"extensions\":[\"drle\"]},\"image/emf\":{\"source\":\"iana\",\"extensions\":[\"emf\"]},\"image/fits\":{\"source\":\"iana\",\"extensions\":[\"fits\"]},\"image/g3fax\":{\"source\":\"iana\",\"extensions\":[\"g3\"]},\"image/gif\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"gif\"]},\"image/heic\":{\"source\":\"iana\",\"extensions\":[\"heic\"]},\"image/heic-sequence\":{\"source\":\"iana\",\"extensions\":[\"heics\"]},\"image/heif\":{\"source\":\"iana\",\"extensions\":[\"heif\"]},\"image/heif-sequence\":{\"source\":\"iana\",\"extensions\":[\"heifs\"]},\"image/hej2k\":{\"source\":\"iana\",\"extensions\":[\"hej2\"]},\"image/hsj2\":{\"source\":\"iana\",\"extensions\":[\"hsj2\"]},\"image/ief\":{\"source\":\"iana\",\"extensions\":[\"ief\"]},\"image/jls\":{\"source\":\"iana\",\"extensions\":[\"jls\"]},\"image/jp2\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"jp2\",\"jpg2\"]},\"image/jpeg\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"jpeg\",\"jpg\",\"jpe\"]},\"image/jph\":{\"source\":\"iana\",\"extensions\":[\"jph\"]},\"image/jphc\":{\"source\":\"iana\",\"extensions\":[\"jhc\"]},\"image/jpm\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"jpm\"]},\"image/jpx\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"jpx\",\"jpf\"]},\"image/jxr\":{\"source\":\"iana\",\"extensions\":[\"jxr\"]},\"image/jxra\":{\"source\":\"iana\",\"extensions\":[\"jxra\"]},\"image/jxrs\":{\"source\":\"iana\",\"extensions\":[\"jxrs\"]},\"image/jxs\":{\"source\":\"iana\",\"extensions\":[\"jxs\"]},\"image/jxsc\":{\"source\":\"iana\",\"extensions\":[\"jxsc\"]},\"image/jxsi\":{\"source\":\"iana\",\"extensions\":[\"jxsi\"]},\"image/jxss\":{\"source\":\"iana\",\"extensions\":[\"jxss\"]},\"image/ktx\":{\"source\":\"iana\",\"extensions\":[\"ktx\"]},\"image/ktx2\":{\"source\":\"iana\",\"extensions\":[\"ktx2\"]},\"image/naplps\":{\"source\":\"iana\"},\"image/pjpeg\":{\"compressible\":false},\"image/png\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"png\"]},\"image/prs.btif\":{\"source\":\"iana\",\"extensions\":[\"btif\"]},\"image/prs.pti\":{\"source\":\"iana\",\"extensions\":[\"pti\"]},\"image/pwg-raster\":{\"source\":\"iana\"},\"image/sgi\":{\"source\":\"apache\",\"extensions\":[\"sgi\"]},\"image/svg+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"svg\",\"svgz\"]},\"image/t38\":{\"source\":\"iana\",\"extensions\":[\"t38\"]},\"image/tiff\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"tif\",\"tiff\"]},\"image/tiff-fx\":{\"source\":\"iana\",\"extensions\":[\"tfx\"]},\"image/vnd.adobe.photoshop\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"psd\"]},\"image/vnd.airzip.accelerator.azv\":{\"source\":\"iana\",\"extensions\":[\"azv\"]},\"image/vnd.cns.inf2\":{\"source\":\"iana\"},\"image/vnd.dece.graphic\":{\"source\":\"iana\",\"extensions\":[\"uvi\",\"uvvi\",\"uvg\",\"uvvg\"]},\"image/vnd.djvu\":{\"source\":\"iana\",\"extensions\":[\"djvu\",\"djv\"]},\"image/vnd.dvb.subtitle\":{\"source\":\"iana\",\"extensions\":[\"sub\"]},\"image/vnd.dwg\":{\"source\":\"iana\",\"extensions\":[\"dwg\"]},\"image/vnd.dxf\":{\"source\":\"iana\",\"extensions\":[\"dxf\"]},\"image/vnd.fastbidsheet\":{\"source\":\"iana\",\"extensions\":[\"fbs\"]},\"image/vnd.fpx\":{\"source\":\"iana\",\"extensions\":[\"fpx\"]},\"image/vnd.fst\":{\"source\":\"iana\",\"extensions\":[\"fst\"]},\"image/vnd.fujixerox.edmics-mmr\":{\"source\":\"iana\",\"extensions\":[\"mmr\"]},\"image/vnd.fujixerox.edmics-rlc\":{\"source\":\"iana\",\"extensions\":[\"rlc\"]},\"image/vnd.globalgraphics.pgb\":{\"source\":\"iana\"},\"image/vnd.microsoft.icon\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"ico\"]},\"image/vnd.mix\":{\"source\":\"iana\"},\"image/vnd.mozilla.apng\":{\"source\":\"iana\"},\"image/vnd.ms-dds\":{\"compressible\":true,\"extensions\":[\"dds\"]},\"image/vnd.ms-modi\":{\"source\":\"iana\",\"extensions\":[\"mdi\"]},\"image/vnd.ms-photo\":{\"source\":\"apache\",\"extensions\":[\"wdp\"]},\"image/vnd.net-fpx\":{\"source\":\"iana\",\"extensions\":[\"npx\"]},\"image/vnd.pco.b16\":{\"source\":\"iana\",\"extensions\":[\"b16\"]},\"image/vnd.radiance\":{\"source\":\"iana\"},\"image/vnd.sealed.png\":{\"source\":\"iana\"},\"image/vnd.sealedmedia.softseal.gif\":{\"source\":\"iana\"},\"image/vnd.sealedmedia.softseal.jpg\":{\"source\":\"iana\"},\"image/vnd.svf\":{\"source\":\"iana\"},\"image/vnd.tencent.tap\":{\"source\":\"iana\",\"extensions\":[\"tap\"]},\"image/vnd.valve.source.texture\":{\"source\":\"iana\",\"extensions\":[\"vtf\"]},\"image/vnd.wap.wbmp\":{\"source\":\"iana\",\"extensions\":[\"wbmp\"]},\"image/vnd.xiff\":{\"source\":\"iana\",\"extensions\":[\"xif\"]},\"image/vnd.zbrush.pcx\":{\"source\":\"iana\",\"extensions\":[\"pcx\"]},\"image/webp\":{\"source\":\"apache\",\"extensions\":[\"webp\"]},\"image/wmf\":{\"source\":\"iana\",\"extensions\":[\"wmf\"]},\"image/x-3ds\":{\"source\":\"apache\",\"extensions\":[\"3ds\"]},\"image/x-cmu-raster\":{\"source\":\"apache\",\"extensions\":[\"ras\"]},\"image/x-cmx\":{\"source\":\"apache\",\"extensions\":[\"cmx\"]},\"image/x-freehand\":{\"source\":\"apache\",\"extensions\":[\"fh\",\"fhc\",\"fh4\",\"fh5\",\"fh7\"]},\"image/x-icon\":{\"source\":\"apache\",\"compressible\":true,\"extensions\":[\"ico\"]},\"image/x-jng\":{\"source\":\"nginx\",\"extensions\":[\"jng\"]},\"image/x-mrsid-image\":{\"source\":\"apache\",\"extensions\":[\"sid\"]},\"image/x-ms-bmp\":{\"source\":\"nginx\",\"compressible\":true,\"extensions\":[\"bmp\"]},\"image/x-pcx\":{\"source\":\"apache\",\"extensions\":[\"pcx\"]},\"image/x-pict\":{\"source\":\"apache\",\"extensions\":[\"pic\",\"pct\"]},\"image/x-portable-anymap\":{\"source\":\"apache\",\"extensions\":[\"pnm\"]},\"image/x-portable-bitmap\":{\"source\":\"apache\",\"extensions\":[\"pbm\"]},\"image/x-portable-graymap\":{\"source\":\"apache\",\"extensions\":[\"pgm\"]},\"image/x-portable-pixmap\":{\"source\":\"apache\",\"extensions\":[\"ppm\"]},\"image/x-rgb\":{\"source\":\"apache\",\"extensions\":[\"rgb\"]},\"image/x-tga\":{\"source\":\"apache\",\"extensions\":[\"tga\"]},\"image/x-xbitmap\":{\"source\":\"apache\",\"extensions\":[\"xbm\"]},\"image/x-xcf\":{\"compressible\":false},\"image/x-xpixmap\":{\"source\":\"apache\",\"extensions\":[\"xpm\"]},\"image/x-xwindowdump\":{\"source\":\"apache\",\"extensions\":[\"xwd\"]},\"message/cpim\":{\"source\":\"iana\"},\"message/delivery-status\":{\"source\":\"iana\"},\"message/disposition-notification\":{\"source\":\"iana\",\"extensions\":[\"disposition-notification\"]},\"message/external-body\":{\"source\":\"iana\"},\"message/feedback-report\":{\"source\":\"iana\"},\"message/global\":{\"source\":\"iana\",\"extensions\":[\"u8msg\"]},\"message/global-delivery-status\":{\"source\":\"iana\",\"extensions\":[\"u8dsn\"]},\"message/global-disposition-notification\":{\"source\":\"iana\",\"extensions\":[\"u8mdn\"]},\"message/global-headers\":{\"source\":\"iana\",\"extensions\":[\"u8hdr\"]},\"message/http\":{\"source\":\"iana\",\"compressible\":false},\"message/imdn+xml\":{\"source\":\"iana\",\"compressible\":true},\"message/news\":{\"source\":\"iana\"},\"message/partial\":{\"source\":\"iana\",\"compressible\":false},\"message/rfc822\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"eml\",\"mime\"]},\"message/s-http\":{\"source\":\"iana\"},\"message/sip\":{\"source\":\"iana\"},\"message/sipfrag\":{\"source\":\"iana\"},\"message/tracking-status\":{\"source\":\"iana\"},\"message/vnd.si.simp\":{\"source\":\"iana\"},\"message/vnd.wfa.wsc\":{\"source\":\"iana\",\"extensions\":[\"wsc\"]},\"model/3mf\":{\"source\":\"iana\",\"extensions\":[\"3mf\"]},\"model/e57\":{\"source\":\"iana\"},\"model/gltf+json\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"gltf\"]},\"model/gltf-binary\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"glb\"]},\"model/iges\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"igs\",\"iges\"]},\"model/mesh\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"msh\",\"mesh\",\"silo\"]},\"model/mtl\":{\"source\":\"iana\",\"extensions\":[\"mtl\"]},\"model/obj\":{\"source\":\"iana\",\"extensions\":[\"obj\"]},\"model/step\":{\"source\":\"iana\"},\"model/step+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"stpx\"]},\"model/step+zip\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"stpz\"]},\"model/step-xml+zip\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"stpxz\"]},\"model/stl\":{\"source\":\"iana\",\"extensions\":[\"stl\"]},\"model/vnd.collada+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"dae\"]},\"model/vnd.dwf\":{\"source\":\"iana\",\"extensions\":[\"dwf\"]},\"model/vnd.flatland.3dml\":{\"source\":\"iana\"},\"model/vnd.gdl\":{\"source\":\"iana\",\"extensions\":[\"gdl\"]},\"model/vnd.gs-gdl\":{\"source\":\"apache\"},\"model/vnd.gs.gdl\":{\"source\":\"iana\"},\"model/vnd.gtw\":{\"source\":\"iana\",\"extensions\":[\"gtw\"]},\"model/vnd.moml+xml\":{\"source\":\"iana\",\"compressible\":true},\"model/vnd.mts\":{\"source\":\"iana\",\"extensions\":[\"mts\"]},\"model/vnd.opengex\":{\"source\":\"iana\",\"extensions\":[\"ogex\"]},\"model/vnd.parasolid.transmit.binary\":{\"source\":\"iana\",\"extensions\":[\"x_b\"]},\"model/vnd.parasolid.transmit.text\":{\"source\":\"iana\",\"extensions\":[\"x_t\"]},\"model/vnd.pytha.pyox\":{\"source\":\"iana\"},\"model/vnd.rosette.annotated-data-model\":{\"source\":\"iana\"},\"model/vnd.sap.vds\":{\"source\":\"iana\",\"extensions\":[\"vds\"]},\"model/vnd.usdz+zip\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"usdz\"]},\"model/vnd.valve.source.compiled-map\":{\"source\":\"iana\",\"extensions\":[\"bsp\"]},\"model/vnd.vtu\":{\"source\":\"iana\",\"extensions\":[\"vtu\"]},\"model/vrml\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"wrl\",\"vrml\"]},\"model/x3d+binary\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"x3db\",\"x3dbz\"]},\"model/x3d+fastinfoset\":{\"source\":\"iana\",\"extensions\":[\"x3db\"]},\"model/x3d+vrml\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"x3dv\",\"x3dvz\"]},\"model/x3d+xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"x3d\",\"x3dz\"]},\"model/x3d-vrml\":{\"source\":\"iana\",\"extensions\":[\"x3dv\"]},\"multipart/alternative\":{\"source\":\"iana\",\"compressible\":false},\"multipart/appledouble\":{\"source\":\"iana\"},\"multipart/byteranges\":{\"source\":\"iana\"},\"multipart/digest\":{\"source\":\"iana\"},\"multipart/encrypted\":{\"source\":\"iana\",\"compressible\":false},\"multipart/form-data\":{\"source\":\"iana\",\"compressible\":false},\"multipart/header-set\":{\"source\":\"iana\"},\"multipart/mixed\":{\"source\":\"iana\"},\"multipart/multilingual\":{\"source\":\"iana\"},\"multipart/parallel\":{\"source\":\"iana\"},\"multipart/related\":{\"source\":\"iana\",\"compressible\":false},\"multipart/report\":{\"source\":\"iana\"},\"multipart/signed\":{\"source\":\"iana\",\"compressible\":false},\"multipart/vnd.bint.med-plus\":{\"source\":\"iana\"},\"multipart/voice-message\":{\"source\":\"iana\"},\"multipart/x-mixed-replace\":{\"source\":\"iana\"},\"text/1d-interleaved-parityfec\":{\"source\":\"iana\"},\"text/cache-manifest\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"appcache\",\"manifest\"]},\"text/calendar\":{\"source\":\"iana\",\"extensions\":[\"ics\",\"ifb\"]},\"text/calender\":{\"compressible\":true},\"text/cmd\":{\"compressible\":true},\"text/coffeescript\":{\"extensions\":[\"coffee\",\"litcoffee\"]},\"text/cql\":{\"source\":\"iana\"},\"text/cql-expression\":{\"source\":\"iana\"},\"text/cql-identifier\":{\"source\":\"iana\"},\"text/css\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"css\"]},\"text/csv\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"csv\"]},\"text/csv-schema\":{\"source\":\"iana\"},\"text/directory\":{\"source\":\"iana\"},\"text/dns\":{\"source\":\"iana\"},\"text/ecmascript\":{\"source\":\"iana\"},\"text/encaprtp\":{\"source\":\"iana\"},\"text/enriched\":{\"source\":\"iana\"},\"text/fhirpath\":{\"source\":\"iana\"},\"text/flexfec\":{\"source\":\"iana\"},\"text/fwdred\":{\"source\":\"iana\"},\"text/gff3\":{\"source\":\"iana\"},\"text/grammar-ref-list\":{\"source\":\"iana\"},\"text/html\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"html\",\"htm\",\"shtml\"]},\"text/jade\":{\"extensions\":[\"jade\"]},\"text/javascript\":{\"source\":\"iana\",\"compressible\":true},\"text/jcr-cnd\":{\"source\":\"iana\"},\"text/jsx\":{\"compressible\":true,\"extensions\":[\"jsx\"]},\"text/less\":{\"compressible\":true,\"extensions\":[\"less\"]},\"text/markdown\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"markdown\",\"md\"]},\"text/mathml\":{\"source\":\"nginx\",\"extensions\":[\"mml\"]},\"text/mdx\":{\"compressible\":true,\"extensions\":[\"mdx\"]},\"text/mizar\":{\"source\":\"iana\"},\"text/n3\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"n3\"]},\"text/parameters\":{\"source\":\"iana\",\"charset\":\"UTF-8\"},\"text/parityfec\":{\"source\":\"iana\"},\"text/plain\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"txt\",\"text\",\"conf\",\"def\",\"list\",\"log\",\"in\",\"ini\"]},\"text/provenance-notation\":{\"source\":\"iana\",\"charset\":\"UTF-8\"},\"text/prs.fallenstein.rst\":{\"source\":\"iana\"},\"text/prs.lines.tag\":{\"source\":\"iana\",\"extensions\":[\"dsc\"]},\"text/prs.prop.logic\":{\"source\":\"iana\"},\"text/raptorfec\":{\"source\":\"iana\"},\"text/red\":{\"source\":\"iana\"},\"text/rfc822-headers\":{\"source\":\"iana\"},\"text/richtext\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rtx\"]},\"text/rtf\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"rtf\"]},\"text/rtp-enc-aescm128\":{\"source\":\"iana\"},\"text/rtploopback\":{\"source\":\"iana\"},\"text/rtx\":{\"source\":\"iana\"},\"text/sgml\":{\"source\":\"iana\",\"extensions\":[\"sgml\",\"sgm\"]},\"text/shaclc\":{\"source\":\"iana\"},\"text/shex\":{\"source\":\"iana\",\"extensions\":[\"shex\"]},\"text/slim\":{\"extensions\":[\"slim\",\"slm\"]},\"text/spdx\":{\"source\":\"iana\",\"extensions\":[\"spdx\"]},\"text/strings\":{\"source\":\"iana\"},\"text/stylus\":{\"extensions\":[\"stylus\",\"styl\"]},\"text/t140\":{\"source\":\"iana\"},\"text/tab-separated-values\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"tsv\"]},\"text/troff\":{\"source\":\"iana\",\"extensions\":[\"t\",\"tr\",\"roff\",\"man\",\"me\",\"ms\"]},\"text/turtle\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"extensions\":[\"ttl\"]},\"text/ulpfec\":{\"source\":\"iana\"},\"text/uri-list\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"uri\",\"uris\",\"urls\"]},\"text/vcard\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"vcard\"]},\"text/vnd.a\":{\"source\":\"iana\"},\"text/vnd.abc\":{\"source\":\"iana\"},\"text/vnd.ascii-art\":{\"source\":\"iana\"},\"text/vnd.curl\":{\"source\":\"iana\",\"extensions\":[\"curl\"]},\"text/vnd.curl.dcurl\":{\"source\":\"apache\",\"extensions\":[\"dcurl\"]},\"text/vnd.curl.mcurl\":{\"source\":\"apache\",\"extensions\":[\"mcurl\"]},\"text/vnd.curl.scurl\":{\"source\":\"apache\",\"extensions\":[\"scurl\"]},\"text/vnd.debian.copyright\":{\"source\":\"iana\",\"charset\":\"UTF-8\"},\"text/vnd.dmclientscript\":{\"source\":\"iana\"},\"text/vnd.dvb.subtitle\":{\"source\":\"iana\",\"extensions\":[\"sub\"]},\"text/vnd.esmertec.theme-descriptor\":{\"source\":\"iana\",\"charset\":\"UTF-8\"},\"text/vnd.familysearch.gedcom\":{\"source\":\"iana\",\"extensions\":[\"ged\"]},\"text/vnd.ficlab.flt\":{\"source\":\"iana\"},\"text/vnd.fly\":{\"source\":\"iana\",\"extensions\":[\"fly\"]},\"text/vnd.fmi.flexstor\":{\"source\":\"iana\",\"extensions\":[\"flx\"]},\"text/vnd.gml\":{\"source\":\"iana\"},\"text/vnd.graphviz\":{\"source\":\"iana\",\"extensions\":[\"gv\"]},\"text/vnd.hans\":{\"source\":\"iana\"},\"text/vnd.hgl\":{\"source\":\"iana\"},\"text/vnd.in3d.3dml\":{\"source\":\"iana\",\"extensions\":[\"3dml\"]},\"text/vnd.in3d.spot\":{\"source\":\"iana\",\"extensions\":[\"spot\"]},\"text/vnd.iptc.newsml\":{\"source\":\"iana\"},\"text/vnd.iptc.nitf\":{\"source\":\"iana\"},\"text/vnd.latex-z\":{\"source\":\"iana\"},\"text/vnd.motorola.reflex\":{\"source\":\"iana\"},\"text/vnd.ms-mediapackage\":{\"source\":\"iana\"},\"text/vnd.net2phone.commcenter.command\":{\"source\":\"iana\"},\"text/vnd.radisys.msml-basic-layout\":{\"source\":\"iana\"},\"text/vnd.senx.warpscript\":{\"source\":\"iana\"},\"text/vnd.si.uricatalogue\":{\"source\":\"iana\"},\"text/vnd.sosi\":{\"source\":\"iana\"},\"text/vnd.sun.j2me.app-descriptor\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"extensions\":[\"jad\"]},\"text/vnd.trolltech.linguist\":{\"source\":\"iana\",\"charset\":\"UTF-8\"},\"text/vnd.wap.si\":{\"source\":\"iana\"},\"text/vnd.wap.sl\":{\"source\":\"iana\"},\"text/vnd.wap.wml\":{\"source\":\"iana\",\"extensions\":[\"wml\"]},\"text/vnd.wap.wmlscript\":{\"source\":\"iana\",\"extensions\":[\"wmls\"]},\"text/vtt\":{\"source\":\"iana\",\"charset\":\"UTF-8\",\"compressible\":true,\"extensions\":[\"vtt\"]},\"text/x-asm\":{\"source\":\"apache\",\"extensions\":[\"s\",\"asm\"]},\"text/x-c\":{\"source\":\"apache\",\"extensions\":[\"c\",\"cc\",\"cxx\",\"cpp\",\"h\",\"hh\",\"dic\"]},\"text/x-component\":{\"source\":\"nginx\",\"extensions\":[\"htc\"]},\"text/x-fortran\":{\"source\":\"apache\",\"extensions\":[\"f\",\"for\",\"f77\",\"f90\"]},\"text/x-gwt-rpc\":{\"compressible\":true},\"text/x-handlebars-template\":{\"extensions\":[\"hbs\"]},\"text/x-java-source\":{\"source\":\"apache\",\"extensions\":[\"java\"]},\"text/x-jquery-tmpl\":{\"compressible\":true},\"text/x-lua\":{\"extensions\":[\"lua\"]},\"text/x-markdown\":{\"compressible\":true,\"extensions\":[\"mkd\"]},\"text/x-nfo\":{\"source\":\"apache\",\"extensions\":[\"nfo\"]},\"text/x-opml\":{\"source\":\"apache\",\"extensions\":[\"opml\"]},\"text/x-org\":{\"compressible\":true,\"extensions\":[\"org\"]},\"text/x-pascal\":{\"source\":\"apache\",\"extensions\":[\"p\",\"pas\"]},\"text/x-processing\":{\"compressible\":true,\"extensions\":[\"pde\"]},\"text/x-sass\":{\"extensions\":[\"sass\"]},\"text/x-scss\":{\"extensions\":[\"scss\"]},\"text/x-setext\":{\"source\":\"apache\",\"extensions\":[\"etx\"]},\"text/x-sfv\":{\"source\":\"apache\",\"extensions\":[\"sfv\"]},\"text/x-suse-ymp\":{\"compressible\":true,\"extensions\":[\"ymp\"]},\"text/x-uuencode\":{\"source\":\"apache\",\"extensions\":[\"uu\"]},\"text/x-vcalendar\":{\"source\":\"apache\",\"extensions\":[\"vcs\"]},\"text/x-vcard\":{\"source\":\"apache\",\"extensions\":[\"vcf\"]},\"text/xml\":{\"source\":\"iana\",\"compressible\":true,\"extensions\":[\"xml\"]},\"text/xml-external-parsed-entity\":{\"source\":\"iana\"},\"text/yaml\":{\"compressible\":true,\"extensions\":[\"yaml\",\"yml\"]},\"video/1d-interleaved-parityfec\":{\"source\":\"iana\"},\"video/3gpp\":{\"source\":\"iana\",\"extensions\":[\"3gp\",\"3gpp\"]},\"video/3gpp-tt\":{\"source\":\"iana\"},\"video/3gpp2\":{\"source\":\"iana\",\"extensions\":[\"3g2\"]},\"video/av1\":{\"source\":\"iana\"},\"video/bmpeg\":{\"source\":\"iana\"},\"video/bt656\":{\"source\":\"iana\"},\"video/celb\":{\"source\":\"iana\"},\"video/dv\":{\"source\":\"iana\"},\"video/encaprtp\":{\"source\":\"iana\"},\"video/ffv1\":{\"source\":\"iana\"},\"video/flexfec\":{\"source\":\"iana\"},\"video/h261\":{\"source\":\"iana\",\"extensions\":[\"h261\"]},\"video/h263\":{\"source\":\"iana\",\"extensions\":[\"h263\"]},\"video/h263-1998\":{\"source\":\"iana\"},\"video/h263-2000\":{\"source\":\"iana\"},\"video/h264\":{\"source\":\"iana\",\"extensions\":[\"h264\"]},\"video/h264-rcdo\":{\"source\":\"iana\"},\"video/h264-svc\":{\"source\":\"iana\"},\"video/h265\":{\"source\":\"iana\"},\"video/iso.segment\":{\"source\":\"iana\",\"extensions\":[\"m4s\"]},\"video/jpeg\":{\"source\":\"iana\",\"extensions\":[\"jpgv\"]},\"video/jpeg2000\":{\"source\":\"iana\"},\"video/jpm\":{\"source\":\"apache\",\"extensions\":[\"jpm\",\"jpgm\"]},\"video/jxsv\":{\"source\":\"iana\"},\"video/mj2\":{\"source\":\"iana\",\"extensions\":[\"mj2\",\"mjp2\"]},\"video/mp1s\":{\"source\":\"iana\"},\"video/mp2p\":{\"source\":\"iana\"},\"video/mp2t\":{\"source\":\"iana\",\"extensions\":[\"ts\"]},\"video/mp4\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"mp4\",\"mp4v\",\"mpg4\"]},\"video/mp4v-es\":{\"source\":\"iana\"},\"video/mpeg\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"mpeg\",\"mpg\",\"mpe\",\"m1v\",\"m2v\"]},\"video/mpeg4-generic\":{\"source\":\"iana\"},\"video/mpv\":{\"source\":\"iana\"},\"video/nv\":{\"source\":\"iana\"},\"video/ogg\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"ogv\"]},\"video/parityfec\":{\"source\":\"iana\"},\"video/pointer\":{\"source\":\"iana\"},\"video/quicktime\":{\"source\":\"iana\",\"compressible\":false,\"extensions\":[\"qt\",\"mov\"]},\"video/raptorfec\":{\"source\":\"iana\"},\"video/raw\":{\"source\":\"iana\"},\"video/rtp-enc-aescm128\":{\"source\":\"iana\"},\"video/rtploopback\":{\"source\":\"iana\"},\"video/rtx\":{\"source\":\"iana\"},\"video/scip\":{\"source\":\"iana\"},\"video/smpte291\":{\"source\":\"iana\"},\"video/smpte292m\":{\"source\":\"iana\"},\"video/ulpfec\":{\"source\":\"iana\"},\"video/vc1\":{\"source\":\"iana\"},\"video/vc2\":{\"source\":\"iana\"},\"video/vnd.cctv\":{\"source\":\"iana\"},\"video/vnd.dece.hd\":{\"source\":\"iana\",\"extensions\":[\"uvh\",\"uvvh\"]},\"video/vnd.dece.mobile\":{\"source\":\"iana\",\"extensions\":[\"uvm\",\"uvvm\"]},\"video/vnd.dece.mp4\":{\"source\":\"iana\"},\"video/vnd.dece.pd\":{\"source\":\"iana\",\"extensions\":[\"uvp\",\"uvvp\"]},\"video/vnd.dece.sd\":{\"source\":\"iana\",\"extensions\":[\"uvs\",\"uvvs\"]},\"video/vnd.dece.video\":{\"source\":\"iana\",\"extensions\":[\"uvv\",\"uvvv\"]},\"video/vnd.directv.mpeg\":{\"source\":\"iana\"},\"video/vnd.directv.mpeg-tts\":{\"source\":\"iana\"},\"video/vnd.dlna.mpeg-tts\":{\"source\":\"iana\"},\"video/vnd.dvb.file\":{\"source\":\"iana\",\"extensions\":[\"dvb\"]},\"video/vnd.fvt\":{\"source\":\"iana\",\"extensions\":[\"fvt\"]},\"video/vnd.hns.video\":{\"source\":\"iana\"},\"video/vnd.iptvforum.1dparityfec-1010\":{\"source\":\"iana\"},\"video/vnd.iptvforum.1dparityfec-2005\":{\"source\":\"iana\"},\"video/vnd.iptvforum.2dparityfec-1010\":{\"source\":\"iana\"},\"video/vnd.iptvforum.2dparityfec-2005\":{\"source\":\"iana\"},\"video/vnd.iptvforum.ttsavc\":{\"source\":\"iana\"},\"video/vnd.iptvforum.ttsmpeg2\":{\"source\":\"iana\"},\"video/vnd.motorola.video\":{\"source\":\"iana\"},\"video/vnd.motorola.videop\":{\"source\":\"iana\"},\"video/vnd.mpegurl\":{\"source\":\"iana\",\"extensions\":[\"mxu\",\"m4u\"]},\"video/vnd.ms-playready.media.pyv\":{\"source\":\"iana\",\"extensions\":[\"pyv\"]},\"video/vnd.nokia.interleaved-multimedia\":{\"source\":\"iana\"},\"video/vnd.nokia.mp4vr\":{\"source\":\"iana\"},\"video/vnd.nokia.videovoip\":{\"source\":\"iana\"},\"video/vnd.objectvideo\":{\"source\":\"iana\"},\"video/vnd.radgamettools.bink\":{\"source\":\"iana\"},\"video/vnd.radgamettools.smacker\":{\"source\":\"iana\"},\"video/vnd.sealed.mpeg1\":{\"source\":\"iana\"},\"video/vnd.sealed.mpeg4\":{\"source\":\"iana\"},\"video/vnd.sealed.swf\":{\"source\":\"iana\"},\"video/vnd.sealedmedia.softseal.mov\":{\"source\":\"iana\"},\"video/vnd.uvvu.mp4\":{\"source\":\"iana\",\"extensions\":[\"uvu\",\"uvvu\"]},\"video/vnd.vivo\":{\"source\":\"iana\",\"extensions\":[\"viv\"]},\"video/vnd.youtube.yt\":{\"source\":\"iana\"},\"video/vp8\":{\"source\":\"iana\"},\"video/vp9\":{\"source\":\"iana\"},\"video/webm\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"webm\"]},\"video/x-f4v\":{\"source\":\"apache\",\"extensions\":[\"f4v\"]},\"video/x-fli\":{\"source\":\"apache\",\"extensions\":[\"fli\"]},\"video/x-flv\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"flv\"]},\"video/x-m4v\":{\"source\":\"apache\",\"extensions\":[\"m4v\"]},\"video/x-matroska\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"mkv\",\"mk3d\",\"mks\"]},\"video/x-mng\":{\"source\":\"apache\",\"extensions\":[\"mng\"]},\"video/x-ms-asf\":{\"source\":\"apache\",\"extensions\":[\"asf\",\"asx\"]},\"video/x-ms-vob\":{\"source\":\"apache\",\"extensions\":[\"vob\"]},\"video/x-ms-wm\":{\"source\":\"apache\",\"extensions\":[\"wm\"]},\"video/x-ms-wmv\":{\"source\":\"apache\",\"compressible\":false,\"extensions\":[\"wmv\"]},\"video/x-ms-wmx\":{\"source\":\"apache\",\"extensions\":[\"wmx\"]},\"video/x-ms-wvx\":{\"source\":\"apache\",\"extensions\":[\"wvx\"]},\"video/x-msvideo\":{\"source\":\"apache\",\"extensions\":[\"avi\"]},\"video/x-sgi-movie\":{\"source\":\"apache\",\"extensions\":[\"movie\"]},\"video/x-smv\":{\"source\":\"apache\",\"extensions\":[\"smv\"]},\"x-conference/x-cooltalk\":{\"source\":\"apache\",\"extensions\":[\"ice\"]},\"x-shader/x-fragment\":{\"compressible\":true},\"x-shader/x-vertex\":{\"compressible\":true}}"));}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/mime-db/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
/*!
|
||
* mime-db
|
||
* Copyright(c) 2014 Jonathan Ong
|
||
* Copyright(c) 2015-2022 Douglas Christopher Wilson
|
||
* MIT Licensed
|
||
*/ /**
|
||
* Module exports.
|
||
*/ module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/mime-db/db.json (json)");
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/mime-types/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/*!
|
||
* mime-types
|
||
* Copyright(c) 2014 Jonathan Ong
|
||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||
* MIT Licensed
|
||
*/ /**
|
||
* Module dependencies.
|
||
* @private
|
||
*/ var db = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/mime-db/index.js [app-ssr] (ecmascript)");
|
||
var extname = __turbopack_context__.r("[externals]/path [external] (path, cjs)").extname;
|
||
/**
|
||
* Module variables.
|
||
* @private
|
||
*/ var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/;
|
||
var TEXT_TYPE_REGEXP = /^text\//i;
|
||
/**
|
||
* Module exports.
|
||
* @public
|
||
*/ exports.charset = charset;
|
||
exports.charsets = {
|
||
lookup: charset
|
||
};
|
||
exports.contentType = contentType;
|
||
exports.extension = extension;
|
||
exports.extensions = Object.create(null);
|
||
exports.lookup = lookup;
|
||
exports.types = Object.create(null);
|
||
// Populate the extensions/types maps
|
||
populateMaps(exports.extensions, exports.types);
|
||
/**
|
||
* Get the default charset for a MIME type.
|
||
*
|
||
* @param {string} type
|
||
* @return {boolean|string}
|
||
*/ function charset(type) {
|
||
if (!type || typeof type !== 'string') {
|
||
return false;
|
||
}
|
||
// TODO: use media-typer
|
||
var match = EXTRACT_TYPE_REGEXP.exec(type);
|
||
var mime = match && db[match[1].toLowerCase()];
|
||
if (mime && mime.charset) {
|
||
return mime.charset;
|
||
}
|
||
// default text/* to utf-8
|
||
if (match && TEXT_TYPE_REGEXP.test(match[1])) {
|
||
return 'UTF-8';
|
||
}
|
||
return false;
|
||
}
|
||
/**
|
||
* Create a full Content-Type header given a MIME type or extension.
|
||
*
|
||
* @param {string} str
|
||
* @return {boolean|string}
|
||
*/ function contentType(str) {
|
||
// TODO: should this even be in this module?
|
||
if (!str || typeof str !== 'string') {
|
||
return false;
|
||
}
|
||
var mime = str.indexOf('/') === -1 ? exports.lookup(str) : str;
|
||
if (!mime) {
|
||
return false;
|
||
}
|
||
// TODO: use content-type or other module
|
||
if (mime.indexOf('charset') === -1) {
|
||
var charset = exports.charset(mime);
|
||
if (charset) mime += '; charset=' + charset.toLowerCase();
|
||
}
|
||
return mime;
|
||
}
|
||
/**
|
||
* Get the default extension for a MIME type.
|
||
*
|
||
* @param {string} type
|
||
* @return {boolean|string}
|
||
*/ function extension(type) {
|
||
if (!type || typeof type !== 'string') {
|
||
return false;
|
||
}
|
||
// TODO: use media-typer
|
||
var match = EXTRACT_TYPE_REGEXP.exec(type);
|
||
// get extensions
|
||
var exts = match && exports.extensions[match[1].toLowerCase()];
|
||
if (!exts || !exts.length) {
|
||
return false;
|
||
}
|
||
return exts[0];
|
||
}
|
||
/**
|
||
* Lookup the MIME type for a file path/extension.
|
||
*
|
||
* @param {string} path
|
||
* @return {boolean|string}
|
||
*/ function lookup(path) {
|
||
if (!path || typeof path !== 'string') {
|
||
return false;
|
||
}
|
||
// get the extension ("ext" or ".ext" or full path)
|
||
var extension = extname('x.' + path).toLowerCase().substr(1);
|
||
if (!extension) {
|
||
return false;
|
||
}
|
||
return exports.types[extension] || false;
|
||
}
|
||
/**
|
||
* Populate the extensions and types maps.
|
||
* @private
|
||
*/ function populateMaps(extensions, types) {
|
||
// source preference (least -> most)
|
||
var preference = [
|
||
'nginx',
|
||
'apache',
|
||
undefined,
|
||
'iana'
|
||
];
|
||
Object.keys(db).forEach(function forEachMimeType(type) {
|
||
var mime = db[type];
|
||
var exts = mime.extensions;
|
||
if (!exts || !exts.length) {
|
||
return;
|
||
}
|
||
// mime -> extensions
|
||
extensions[type] = exts;
|
||
// extension -> mime
|
||
for(var i = 0; i < exts.length; i++){
|
||
var extension = exts[i];
|
||
if (types[extension]) {
|
||
var from = preference.indexOf(db[types[extension]].source);
|
||
var to = preference.indexOf(mime.source);
|
||
if (types[extension] !== 'application/octet-stream' && (from > to || from === to && types[extension].substr(0, 12) === 'application/')) {
|
||
continue;
|
||
}
|
||
}
|
||
// set the extension -> mime
|
||
types[extension] = type;
|
||
}
|
||
});
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/defer.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
module.exports = defer;
|
||
/**
|
||
* Runs provided function on next iteration of the event loop
|
||
*
|
||
* @param {function} fn - function to run
|
||
*/ function defer(fn) {
|
||
var nextTick = typeof setImmediate == 'function' ? setImmediate : typeof process == 'object' && typeof process.nextTick == 'function' ? process.nextTick : null;
|
||
if (nextTick) {
|
||
nextTick(fn);
|
||
} else {
|
||
setTimeout(fn, 0);
|
||
}
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/async.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var defer = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/defer.js [app-ssr] (ecmascript)");
|
||
// API
|
||
module.exports = async;
|
||
/**
|
||
* Runs provided callback asynchronously
|
||
* even if callback itself is not
|
||
*
|
||
* @param {function} callback - callback to invoke
|
||
* @returns {function} - augmented callback
|
||
*/ function async(callback) {
|
||
var isAsync = false;
|
||
// check if async happened
|
||
defer(function() {
|
||
isAsync = true;
|
||
});
|
||
return function async_callback(err, result) {
|
||
if (isAsync) {
|
||
callback(err, result);
|
||
} else {
|
||
defer(function nextTick_callback() {
|
||
callback(err, result);
|
||
});
|
||
}
|
||
};
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/abort.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
// API
|
||
module.exports = abort;
|
||
/**
|
||
* Aborts leftover active jobs
|
||
*
|
||
* @param {object} state - current state object
|
||
*/ function abort(state) {
|
||
Object.keys(state.jobs).forEach(clean.bind(state));
|
||
// reset leftover jobs
|
||
state.jobs = {};
|
||
}
|
||
/**
|
||
* Cleans up leftover job by invoking abort function for the provided job id
|
||
*
|
||
* @this state
|
||
* @param {string|number} key - job id to abort
|
||
*/ function clean(key) {
|
||
if (typeof this.jobs[key] == 'function') {
|
||
this.jobs[key]();
|
||
}
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/iterate.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var async = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/async.js [app-ssr] (ecmascript)"), abort = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/abort.js [app-ssr] (ecmascript)");
|
||
// API
|
||
module.exports = iterate;
|
||
/**
|
||
* Iterates over each job object
|
||
*
|
||
* @param {array|object} list - array or object (named list) to iterate over
|
||
* @param {function} iterator - iterator to run
|
||
* @param {object} state - current job status
|
||
* @param {function} callback - invoked when all elements processed
|
||
*/ function iterate(list, iterator, state, callback) {
|
||
// store current index
|
||
var key = state['keyedList'] ? state['keyedList'][state.index] : state.index;
|
||
state.jobs[key] = runJob(iterator, key, list[key], function(error, output) {
|
||
// don't repeat yourself
|
||
// skip secondary callbacks
|
||
if (!(key in state.jobs)) {
|
||
return;
|
||
}
|
||
// clean up jobs
|
||
delete state.jobs[key];
|
||
if (error) {
|
||
// don't process rest of the results
|
||
// stop still active jobs
|
||
// and reset the list
|
||
abort(state);
|
||
} else {
|
||
state.results[key] = output;
|
||
}
|
||
// return salvaged results
|
||
callback(error, state.results);
|
||
});
|
||
}
|
||
/**
|
||
* Runs iterator over provided job element
|
||
*
|
||
* @param {function} iterator - iterator to invoke
|
||
* @param {string|number} key - key/index of the element in the list of jobs
|
||
* @param {mixed} item - job description
|
||
* @param {function} callback - invoked after iterator is done with the job
|
||
* @returns {function|mixed} - job abort function or something else
|
||
*/ function runJob(iterator, key, item, callback) {
|
||
var aborter;
|
||
// allow shortcut if iterator expects only two arguments
|
||
if (iterator.length == 2) {
|
||
aborter = iterator(item, async(callback));
|
||
} else {
|
||
aborter = iterator(item, key, async(callback));
|
||
}
|
||
return aborter;
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/state.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
// API
|
||
module.exports = state;
|
||
/**
|
||
* Creates initial state object
|
||
* for iteration over list
|
||
*
|
||
* @param {array|object} list - list to iterate over
|
||
* @param {function|null} sortMethod - function to use for keys sort,
|
||
* or `null` to keep them as is
|
||
* @returns {object} - initial state object
|
||
*/ function state(list, sortMethod) {
|
||
var isNamedList = !Array.isArray(list), initState = {
|
||
index: 0,
|
||
keyedList: isNamedList || sortMethod ? Object.keys(list) : null,
|
||
jobs: {},
|
||
results: isNamedList ? {} : [],
|
||
size: isNamedList ? Object.keys(list).length : list.length
|
||
};
|
||
if (sortMethod) {
|
||
// sort array keys based on it's values
|
||
// sort object's keys just on own merit
|
||
initState.keyedList.sort(isNamedList ? sortMethod : function(a, b) {
|
||
return sortMethod(list[a], list[b]);
|
||
});
|
||
}
|
||
return initState;
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/terminator.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var abort = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/abort.js [app-ssr] (ecmascript)"), async = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/async.js [app-ssr] (ecmascript)");
|
||
// API
|
||
module.exports = terminator;
|
||
/**
|
||
* Terminates jobs in the attached state context
|
||
*
|
||
* @this AsyncKitState#
|
||
* @param {function} callback - final callback to invoke after termination
|
||
*/ function terminator(callback) {
|
||
if (!Object.keys(this.jobs).length) {
|
||
return;
|
||
}
|
||
// fast forward iteration index
|
||
this.index = this.size;
|
||
// abort jobs
|
||
abort(this);
|
||
// send back results we have so far
|
||
async(callback)(null, this.results);
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/parallel.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var iterate = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/iterate.js [app-ssr] (ecmascript)"), initState = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/state.js [app-ssr] (ecmascript)"), terminator = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/terminator.js [app-ssr] (ecmascript)");
|
||
// Public API
|
||
module.exports = parallel;
|
||
/**
|
||
* Runs iterator over provided array elements in parallel
|
||
*
|
||
* @param {array|object} list - array or object (named list) to iterate over
|
||
* @param {function} iterator - iterator to run
|
||
* @param {function} callback - invoked when all elements processed
|
||
* @returns {function} - jobs terminator
|
||
*/ function parallel(list, iterator, callback) {
|
||
var state = initState(list);
|
||
while(state.index < (state['keyedList'] || list).length){
|
||
iterate(list, iterator, state, function(error, result) {
|
||
if (error) {
|
||
callback(error, result);
|
||
return;
|
||
}
|
||
// looks like it's the last one
|
||
if (Object.keys(state.jobs).length === 0) {
|
||
callback(null, state.results);
|
||
return;
|
||
}
|
||
});
|
||
state.index++;
|
||
}
|
||
return terminator.bind(state, callback);
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/serialOrdered.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var iterate = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/iterate.js [app-ssr] (ecmascript)"), initState = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/state.js [app-ssr] (ecmascript)"), terminator = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/lib/terminator.js [app-ssr] (ecmascript)");
|
||
// Public API
|
||
module.exports = serialOrdered;
|
||
// sorting helpers
|
||
module.exports.ascending = ascending;
|
||
module.exports.descending = descending;
|
||
/**
|
||
* Runs iterator over provided sorted array elements in series
|
||
*
|
||
* @param {array|object} list - array or object (named list) to iterate over
|
||
* @param {function} iterator - iterator to run
|
||
* @param {function} sortMethod - custom sort function
|
||
* @param {function} callback - invoked when all elements processed
|
||
* @returns {function} - jobs terminator
|
||
*/ function serialOrdered(list, iterator, sortMethod, callback) {
|
||
var state = initState(list, sortMethod);
|
||
iterate(list, iterator, state, function iteratorHandler(error, result) {
|
||
if (error) {
|
||
callback(error, result);
|
||
return;
|
||
}
|
||
state.index++;
|
||
// are we there yet?
|
||
if (state.index < (state['keyedList'] || list).length) {
|
||
iterate(list, iterator, state, iteratorHandler);
|
||
return;
|
||
}
|
||
// done here
|
||
callback(null, state.results);
|
||
});
|
||
return terminator.bind(state, callback);
|
||
}
|
||
/*
|
||
* -- Sort methods
|
||
*/ /**
|
||
* sort helper to sort array elements in ascending order
|
||
*
|
||
* @param {mixed} a - an item to compare
|
||
* @param {mixed} b - an item to compare
|
||
* @returns {number} - comparison result
|
||
*/ function ascending(a, b) {
|
||
return a < b ? -1 : a > b ? 1 : 0;
|
||
}
|
||
/**
|
||
* sort helper to sort array elements in descending order
|
||
*
|
||
* @param {mixed} a - an item to compare
|
||
* @param {mixed} b - an item to compare
|
||
* @returns {number} - comparison result
|
||
*/ function descending(a, b) {
|
||
return -1 * ascending(a, b);
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/serial.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var serialOrdered = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/serialOrdered.js [app-ssr] (ecmascript)");
|
||
// Public API
|
||
module.exports = serial;
|
||
/**
|
||
* Runs iterator over provided array elements in series
|
||
*
|
||
* @param {array|object} list - array or object (named list) to iterate over
|
||
* @param {function} iterator - iterator to run
|
||
* @param {function} callback - invoked when all elements processed
|
||
* @returns {function} - jobs terminator
|
||
*/ function serial(list, iterator, callback) {
|
||
return serialOrdered(list, iterator, null, callback);
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/asynckit/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
module.exports = {
|
||
parallel: __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/parallel.js [app-ssr] (ecmascript)"),
|
||
serial: __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/serial.js [app-ssr] (ecmascript)"),
|
||
serialOrdered: __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/serialOrdered.js [app-ssr] (ecmascript)")
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-object-atoms/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('.')} */ module.exports = Object;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-errors/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('.')} */ module.exports = Error;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-errors/eval.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./eval')} */ module.exports = EvalError;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-errors/range.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./range')} */ module.exports = RangeError;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-errors/ref.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./ref')} */ module.exports = ReferenceError;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-errors/syntax.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./syntax')} */ module.exports = SyntaxError;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-errors/type.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./type')} */ module.exports = TypeError;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-errors/uri.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./uri')} */ module.exports = URIError;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/abs.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./abs')} */ module.exports = Math.abs;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/floor.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./floor')} */ module.exports = Math.floor;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/max.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./max')} */ module.exports = Math.max;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/min.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./min')} */ module.exports = Math.min;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/pow.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./pow')} */ module.exports = Math.pow;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/round.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./round')} */ module.exports = Math.round;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/isNaN.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./isNaN')} */ module.exports = Number.isNaN || function isNaN(a) {
|
||
return a !== a;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/sign.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var $isNaN = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/isNaN.js [app-ssr] (ecmascript)");
|
||
/** @type {import('./sign')} */ module.exports = function sign(number) {
|
||
if ($isNaN(number) || number === 0) {
|
||
return number;
|
||
}
|
||
return number < 0 ? -1 : +1;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/gopd/gOPD.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./gOPD')} */ module.exports = Object.getOwnPropertyDescriptor;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/gopd/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('.')} */ var $gOPD = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/gopd/gOPD.js [app-ssr] (ecmascript)");
|
||
if ($gOPD) {
|
||
try {
|
||
$gOPD([], 'length');
|
||
} catch (e) {
|
||
// IE 8 has a broken gOPD
|
||
$gOPD = null;
|
||
}
|
||
}
|
||
module.exports = $gOPD;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-define-property/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('.')} */ var $defineProperty = Object.defineProperty || false;
|
||
if ($defineProperty) {
|
||
try {
|
||
$defineProperty({}, 'a', {
|
||
value: 1
|
||
});
|
||
} catch (e) {
|
||
// IE 8 has a broken defineProperty
|
||
$defineProperty = false;
|
||
}
|
||
}
|
||
module.exports = $defineProperty;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/has-symbols/shams.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./shams')} */ /* eslint complexity: [2, 18], max-statements: [2, 33] */ module.exports = function hasSymbols() {
|
||
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') {
|
||
return false;
|
||
}
|
||
if (typeof Symbol.iterator === 'symbol') {
|
||
return true;
|
||
}
|
||
/** @type {{ [k in symbol]?: unknown }} */ var obj = {};
|
||
var sym = Symbol('test');
|
||
var symObj = Object(sym);
|
||
if (typeof sym === 'string') {
|
||
return false;
|
||
}
|
||
if (Object.prototype.toString.call(sym) !== '[object Symbol]') {
|
||
return false;
|
||
}
|
||
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') {
|
||
return false;
|
||
}
|
||
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
||
// if (sym instanceof Symbol) { return false; }
|
||
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
||
// if (!(symObj instanceof Symbol)) { return false; }
|
||
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
||
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
||
var symVal = 42;
|
||
obj[sym] = symVal;
|
||
for(var _ in obj){
|
||
return false;
|
||
} // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
||
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) {
|
||
return false;
|
||
}
|
||
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) {
|
||
return false;
|
||
}
|
||
var syms = Object.getOwnPropertySymbols(obj);
|
||
if (syms.length !== 1 || syms[0] !== sym) {
|
||
return false;
|
||
}
|
||
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
|
||
return false;
|
||
}
|
||
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
||
// eslint-disable-next-line no-extra-parens
|
||
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
||
if (descriptor.value !== symVal || descriptor.enumerable !== true) {
|
||
return false;
|
||
}
|
||
}
|
||
return true;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/has-symbols/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
||
var hasSymbolSham = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/has-symbols/shams.js [app-ssr] (ecmascript)");
|
||
/** @type {import('.')} */ module.exports = function hasNativeSymbols() {
|
||
if (typeof origSymbol !== 'function') {
|
||
return false;
|
||
}
|
||
if (typeof Symbol !== 'function') {
|
||
return false;
|
||
}
|
||
if (typeof origSymbol('foo') !== 'symbol') {
|
||
return false;
|
||
}
|
||
if (typeof Symbol('bar') !== 'symbol') {
|
||
return false;
|
||
}
|
||
return hasSymbolSham();
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/get-proto/Reflect.getPrototypeOf.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./Reflect.getPrototypeOf')} */ module.exports = typeof Reflect !== 'undefined' && Reflect.getPrototypeOf || null;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/get-proto/Object.getPrototypeOf.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var $Object = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-object-atoms/index.js [app-ssr] (ecmascript)");
|
||
/** @type {import('./Object.getPrototypeOf')} */ module.exports = $Object.getPrototypeOf || null;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/function-bind/implementation.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/* eslint no-invalid-this: 1 */ var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
||
var toStr = Object.prototype.toString;
|
||
var max = Math.max;
|
||
var funcType = '[object Function]';
|
||
var concatty = function concatty(a, b) {
|
||
var arr = [];
|
||
for(var i = 0; i < a.length; i += 1){
|
||
arr[i] = a[i];
|
||
}
|
||
for(var j = 0; j < b.length; j += 1){
|
||
arr[j + a.length] = b[j];
|
||
}
|
||
return arr;
|
||
};
|
||
var slicy = function slicy(arrLike, offset) {
|
||
var arr = [];
|
||
for(var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1){
|
||
arr[j] = arrLike[i];
|
||
}
|
||
return arr;
|
||
};
|
||
var joiny = function(arr, joiner) {
|
||
var str = '';
|
||
for(var i = 0; i < arr.length; i += 1){
|
||
str += arr[i];
|
||
if (i + 1 < arr.length) {
|
||
str += joiner;
|
||
}
|
||
}
|
||
return str;
|
||
};
|
||
module.exports = function bind(that) {
|
||
var target = this;
|
||
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
||
throw new TypeError(ERROR_MESSAGE + target);
|
||
}
|
||
var args = slicy(arguments, 1);
|
||
var bound;
|
||
var binder = function() {
|
||
if (this instanceof bound) {
|
||
var result = target.apply(this, concatty(args, arguments));
|
||
if (Object(result) === result) {
|
||
return result;
|
||
}
|
||
return this;
|
||
}
|
||
return target.apply(that, concatty(args, arguments));
|
||
};
|
||
var boundLength = max(0, target.length - args.length);
|
||
var boundArgs = [];
|
||
for(var i = 0; i < boundLength; i++){
|
||
boundArgs[i] = '$' + i;
|
||
}
|
||
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
||
if (target.prototype) {
|
||
var Empty = function Empty() {};
|
||
Empty.prototype = target.prototype;
|
||
bound.prototype = new Empty();
|
||
Empty.prototype = null;
|
||
}
|
||
return bound;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/function-bind/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var implementation = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/function-bind/implementation.js [app-ssr] (ecmascript)");
|
||
module.exports = Function.prototype.bind || implementation;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/functionCall.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./functionCall')} */ module.exports = Function.prototype.call;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/functionApply.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./functionApply')} */ module.exports = Function.prototype.apply;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/reflectApply.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
/** @type {import('./reflectApply')} */ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/actualApply.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var bind = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/function-bind/index.js [app-ssr] (ecmascript)");
|
||
var $apply = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/functionApply.js [app-ssr] (ecmascript)");
|
||
var $call = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/functionCall.js [app-ssr] (ecmascript)");
|
||
var $reflectApply = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/reflectApply.js [app-ssr] (ecmascript)");
|
||
/** @type {import('./actualApply')} */ module.exports = $reflectApply || bind.call($call, $apply);
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var bind = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/function-bind/index.js [app-ssr] (ecmascript)");
|
||
var $TypeError = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/type.js [app-ssr] (ecmascript)");
|
||
var $call = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/functionCall.js [app-ssr] (ecmascript)");
|
||
var $actualApply = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/actualApply.js [app-ssr] (ecmascript)");
|
||
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */ module.exports = function callBindBasic(args) {
|
||
if (args.length < 1 || typeof args[0] !== 'function') {
|
||
throw new $TypeError('a function is required');
|
||
}
|
||
return $actualApply(bind, $call, args);
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/dunder-proto/get.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var callBind = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/index.js [app-ssr] (ecmascript)");
|
||
var gOPD = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/gopd/index.js [app-ssr] (ecmascript)");
|
||
var hasProtoAccessor;
|
||
try {
|
||
// eslint-disable-next-line no-extra-parens, no-proto
|
||
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ [].__proto__ === Array.prototype;
|
||
} catch (e) {
|
||
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
||
throw e;
|
||
}
|
||
}
|
||
// eslint-disable-next-line no-extra-parens
|
||
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, '__proto__');
|
||
var $Object = Object;
|
||
var $getPrototypeOf = $Object.getPrototypeOf;
|
||
/** @type {import('./get')} */ module.exports = desc && typeof desc.get === 'function' ? callBind([
|
||
desc.get
|
||
]) : typeof $getPrototypeOf === 'function' ? /** @type {import('./get')} */ function getDunder(value) {
|
||
// eslint-disable-next-line eqeqeq
|
||
return $getPrototypeOf(value == null ? value : $Object(value));
|
||
} : false;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/get-proto/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var reflectGetProto = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/get-proto/Reflect.getPrototypeOf.js [app-ssr] (ecmascript)");
|
||
var originalGetProto = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/get-proto/Object.getPrototypeOf.js [app-ssr] (ecmascript)");
|
||
var getDunderProto = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/dunder-proto/get.js [app-ssr] (ecmascript)");
|
||
/** @type {import('.')} */ module.exports = reflectGetProto ? function getProto(O) {
|
||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||
return reflectGetProto(O);
|
||
} : originalGetProto ? function getProto(O) {
|
||
if (!O || typeof O !== 'object' && typeof O !== 'function') {
|
||
throw new TypeError('getProto: not an object');
|
||
}
|
||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||
return originalGetProto(O);
|
||
} : getDunderProto ? function getProto(O) {
|
||
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
||
return getDunderProto(O);
|
||
} : null;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/hasown/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var call = Function.prototype.call;
|
||
var $hasOwn = Object.prototype.hasOwnProperty;
|
||
var bind = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/function-bind/index.js [app-ssr] (ecmascript)");
|
||
/** @type {import('.')} */ module.exports = bind.call(call, $hasOwn);
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/get-intrinsic/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var undefined1;
|
||
var $Object = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-object-atoms/index.js [app-ssr] (ecmascript)");
|
||
var $Error = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/index.js [app-ssr] (ecmascript)");
|
||
var $EvalError = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/eval.js [app-ssr] (ecmascript)");
|
||
var $RangeError = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/range.js [app-ssr] (ecmascript)");
|
||
var $ReferenceError = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/ref.js [app-ssr] (ecmascript)");
|
||
var $SyntaxError = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/syntax.js [app-ssr] (ecmascript)");
|
||
var $TypeError = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/type.js [app-ssr] (ecmascript)");
|
||
var $URIError = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/uri.js [app-ssr] (ecmascript)");
|
||
var abs = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/abs.js [app-ssr] (ecmascript)");
|
||
var floor = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/floor.js [app-ssr] (ecmascript)");
|
||
var max = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/max.js [app-ssr] (ecmascript)");
|
||
var min = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/min.js [app-ssr] (ecmascript)");
|
||
var pow = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/pow.js [app-ssr] (ecmascript)");
|
||
var round = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/round.js [app-ssr] (ecmascript)");
|
||
var sign = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/math-intrinsics/sign.js [app-ssr] (ecmascript)");
|
||
var $Function = Function;
|
||
// eslint-disable-next-line consistent-return
|
||
var getEvalledConstructor = function(expressionSyntax) {
|
||
try {
|
||
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
||
} catch (e) {}
|
||
};
|
||
var $gOPD = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/gopd/index.js [app-ssr] (ecmascript)");
|
||
var $defineProperty = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-define-property/index.js [app-ssr] (ecmascript)");
|
||
var throwTypeError = function() {
|
||
throw new $TypeError();
|
||
};
|
||
var ThrowTypeError = $gOPD ? function() {
|
||
try {
|
||
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
||
arguments.callee; // IE 8 does not throw here
|
||
return throwTypeError;
|
||
} catch (calleeThrows) {
|
||
try {
|
||
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
||
return $gOPD(arguments, 'callee').get;
|
||
} catch (gOPDthrows) {
|
||
return throwTypeError;
|
||
}
|
||
}
|
||
}() : throwTypeError;
|
||
var hasSymbols = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/has-symbols/index.js [app-ssr] (ecmascript)")();
|
||
var getProto = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/get-proto/index.js [app-ssr] (ecmascript)");
|
||
var $ObjectGPO = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/get-proto/Object.getPrototypeOf.js [app-ssr] (ecmascript)");
|
||
var $ReflectGPO = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/get-proto/Reflect.getPrototypeOf.js [app-ssr] (ecmascript)");
|
||
var $apply = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/functionApply.js [app-ssr] (ecmascript)");
|
||
var $call = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/call-bind-apply-helpers/functionCall.js [app-ssr] (ecmascript)");
|
||
var needsEval = {};
|
||
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
||
var INTRINSICS = {
|
||
__proto__: null,
|
||
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
||
'%Array%': Array,
|
||
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
||
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
||
'%AsyncFromSyncIteratorPrototype%': undefined,
|
||
'%AsyncFunction%': needsEval,
|
||
'%AsyncGenerator%': needsEval,
|
||
'%AsyncGeneratorFunction%': needsEval,
|
||
'%AsyncIteratorPrototype%': needsEval,
|
||
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
||
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
||
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
||
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
||
'%Boolean%': Boolean,
|
||
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
||
'%Date%': Date,
|
||
'%decodeURI%': decodeURI,
|
||
'%decodeURIComponent%': decodeURIComponent,
|
||
'%encodeURI%': encodeURI,
|
||
'%encodeURIComponent%': encodeURIComponent,
|
||
'%Error%': $Error,
|
||
'%eval%': eval,
|
||
'%EvalError%': $EvalError,
|
||
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
||
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
||
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
||
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
||
'%Function%': $Function,
|
||
'%GeneratorFunction%': needsEval,
|
||
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
||
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
||
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
||
'%isFinite%': isFinite,
|
||
'%isNaN%': isNaN,
|
||
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
||
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
||
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
||
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
||
'%Math%': Math,
|
||
'%Number%': Number,
|
||
'%Object%': $Object,
|
||
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
||
'%parseFloat%': parseFloat,
|
||
'%parseInt%': parseInt,
|
||
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
||
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
||
'%RangeError%': $RangeError,
|
||
'%ReferenceError%': $ReferenceError,
|
||
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
||
'%RegExp%': RegExp,
|
||
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
||
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
||
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
||
'%String%': String,
|
||
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
||
'%Symbol%': hasSymbols ? Symbol : undefined,
|
||
'%SyntaxError%': $SyntaxError,
|
||
'%ThrowTypeError%': ThrowTypeError,
|
||
'%TypedArray%': TypedArray,
|
||
'%TypeError%': $TypeError,
|
||
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
||
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
||
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
||
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
||
'%URIError%': $URIError,
|
||
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
||
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
||
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
||
'%Function.prototype.call%': $call,
|
||
'%Function.prototype.apply%': $apply,
|
||
'%Object.defineProperty%': $defineProperty,
|
||
'%Object.getPrototypeOf%': $ObjectGPO,
|
||
'%Math.abs%': abs,
|
||
'%Math.floor%': floor,
|
||
'%Math.max%': max,
|
||
'%Math.min%': min,
|
||
'%Math.pow%': pow,
|
||
'%Math.round%': round,
|
||
'%Math.sign%': sign,
|
||
'%Reflect.getPrototypeOf%': $ReflectGPO
|
||
};
|
||
if (getProto) {
|
||
try {
|
||
null.error; // eslint-disable-line no-unused-expressions
|
||
} catch (e) {
|
||
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
||
var errorProto = getProto(getProto(e));
|
||
INTRINSICS['%Error.prototype%'] = errorProto;
|
||
}
|
||
}
|
||
var doEval = function doEval(name) {
|
||
var value;
|
||
if (name === '%AsyncFunction%') {
|
||
value = getEvalledConstructor('async function () {}');
|
||
} else if (name === '%GeneratorFunction%') {
|
||
value = getEvalledConstructor('function* () {}');
|
||
} else if (name === '%AsyncGeneratorFunction%') {
|
||
value = getEvalledConstructor('async function* () {}');
|
||
} else if (name === '%AsyncGenerator%') {
|
||
var fn = doEval('%AsyncGeneratorFunction%');
|
||
if (fn) {
|
||
value = fn.prototype;
|
||
}
|
||
} else if (name === '%AsyncIteratorPrototype%') {
|
||
var gen = doEval('%AsyncGenerator%');
|
||
if (gen && getProto) {
|
||
value = getProto(gen.prototype);
|
||
}
|
||
}
|
||
INTRINSICS[name] = value;
|
||
return value;
|
||
};
|
||
var LEGACY_ALIASES = {
|
||
__proto__: null,
|
||
'%ArrayBufferPrototype%': [
|
||
'ArrayBuffer',
|
||
'prototype'
|
||
],
|
||
'%ArrayPrototype%': [
|
||
'Array',
|
||
'prototype'
|
||
],
|
||
'%ArrayProto_entries%': [
|
||
'Array',
|
||
'prototype',
|
||
'entries'
|
||
],
|
||
'%ArrayProto_forEach%': [
|
||
'Array',
|
||
'prototype',
|
||
'forEach'
|
||
],
|
||
'%ArrayProto_keys%': [
|
||
'Array',
|
||
'prototype',
|
||
'keys'
|
||
],
|
||
'%ArrayProto_values%': [
|
||
'Array',
|
||
'prototype',
|
||
'values'
|
||
],
|
||
'%AsyncFunctionPrototype%': [
|
||
'AsyncFunction',
|
||
'prototype'
|
||
],
|
||
'%AsyncGenerator%': [
|
||
'AsyncGeneratorFunction',
|
||
'prototype'
|
||
],
|
||
'%AsyncGeneratorPrototype%': [
|
||
'AsyncGeneratorFunction',
|
||
'prototype',
|
||
'prototype'
|
||
],
|
||
'%BooleanPrototype%': [
|
||
'Boolean',
|
||
'prototype'
|
||
],
|
||
'%DataViewPrototype%': [
|
||
'DataView',
|
||
'prototype'
|
||
],
|
||
'%DatePrototype%': [
|
||
'Date',
|
||
'prototype'
|
||
],
|
||
'%ErrorPrototype%': [
|
||
'Error',
|
||
'prototype'
|
||
],
|
||
'%EvalErrorPrototype%': [
|
||
'EvalError',
|
||
'prototype'
|
||
],
|
||
'%Float32ArrayPrototype%': [
|
||
'Float32Array',
|
||
'prototype'
|
||
],
|
||
'%Float64ArrayPrototype%': [
|
||
'Float64Array',
|
||
'prototype'
|
||
],
|
||
'%FunctionPrototype%': [
|
||
'Function',
|
||
'prototype'
|
||
],
|
||
'%Generator%': [
|
||
'GeneratorFunction',
|
||
'prototype'
|
||
],
|
||
'%GeneratorPrototype%': [
|
||
'GeneratorFunction',
|
||
'prototype',
|
||
'prototype'
|
||
],
|
||
'%Int8ArrayPrototype%': [
|
||
'Int8Array',
|
||
'prototype'
|
||
],
|
||
'%Int16ArrayPrototype%': [
|
||
'Int16Array',
|
||
'prototype'
|
||
],
|
||
'%Int32ArrayPrototype%': [
|
||
'Int32Array',
|
||
'prototype'
|
||
],
|
||
'%JSONParse%': [
|
||
'JSON',
|
||
'parse'
|
||
],
|
||
'%JSONStringify%': [
|
||
'JSON',
|
||
'stringify'
|
||
],
|
||
'%MapPrototype%': [
|
||
'Map',
|
||
'prototype'
|
||
],
|
||
'%NumberPrototype%': [
|
||
'Number',
|
||
'prototype'
|
||
],
|
||
'%ObjectPrototype%': [
|
||
'Object',
|
||
'prototype'
|
||
],
|
||
'%ObjProto_toString%': [
|
||
'Object',
|
||
'prototype',
|
||
'toString'
|
||
],
|
||
'%ObjProto_valueOf%': [
|
||
'Object',
|
||
'prototype',
|
||
'valueOf'
|
||
],
|
||
'%PromisePrototype%': [
|
||
'Promise',
|
||
'prototype'
|
||
],
|
||
'%PromiseProto_then%': [
|
||
'Promise',
|
||
'prototype',
|
||
'then'
|
||
],
|
||
'%Promise_all%': [
|
||
'Promise',
|
||
'all'
|
||
],
|
||
'%Promise_reject%': [
|
||
'Promise',
|
||
'reject'
|
||
],
|
||
'%Promise_resolve%': [
|
||
'Promise',
|
||
'resolve'
|
||
],
|
||
'%RangeErrorPrototype%': [
|
||
'RangeError',
|
||
'prototype'
|
||
],
|
||
'%ReferenceErrorPrototype%': [
|
||
'ReferenceError',
|
||
'prototype'
|
||
],
|
||
'%RegExpPrototype%': [
|
||
'RegExp',
|
||
'prototype'
|
||
],
|
||
'%SetPrototype%': [
|
||
'Set',
|
||
'prototype'
|
||
],
|
||
'%SharedArrayBufferPrototype%': [
|
||
'SharedArrayBuffer',
|
||
'prototype'
|
||
],
|
||
'%StringPrototype%': [
|
||
'String',
|
||
'prototype'
|
||
],
|
||
'%SymbolPrototype%': [
|
||
'Symbol',
|
||
'prototype'
|
||
],
|
||
'%SyntaxErrorPrototype%': [
|
||
'SyntaxError',
|
||
'prototype'
|
||
],
|
||
'%TypedArrayPrototype%': [
|
||
'TypedArray',
|
||
'prototype'
|
||
],
|
||
'%TypeErrorPrototype%': [
|
||
'TypeError',
|
||
'prototype'
|
||
],
|
||
'%Uint8ArrayPrototype%': [
|
||
'Uint8Array',
|
||
'prototype'
|
||
],
|
||
'%Uint8ClampedArrayPrototype%': [
|
||
'Uint8ClampedArray',
|
||
'prototype'
|
||
],
|
||
'%Uint16ArrayPrototype%': [
|
||
'Uint16Array',
|
||
'prototype'
|
||
],
|
||
'%Uint32ArrayPrototype%': [
|
||
'Uint32Array',
|
||
'prototype'
|
||
],
|
||
'%URIErrorPrototype%': [
|
||
'URIError',
|
||
'prototype'
|
||
],
|
||
'%WeakMapPrototype%': [
|
||
'WeakMap',
|
||
'prototype'
|
||
],
|
||
'%WeakSetPrototype%': [
|
||
'WeakSet',
|
||
'prototype'
|
||
]
|
||
};
|
||
var bind = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/function-bind/index.js [app-ssr] (ecmascript)");
|
||
var hasOwn = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/hasown/index.js [app-ssr] (ecmascript)");
|
||
var $concat = bind.call($call, Array.prototype.concat);
|
||
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
||
var $replace = bind.call($call, String.prototype.replace);
|
||
var $strSlice = bind.call($call, String.prototype.slice);
|
||
var $exec = bind.call($call, RegExp.prototype.exec);
|
||
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */ var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
||
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
||
var stringToPath = function stringToPath(string) {
|
||
var first = $strSlice(string, 0, 1);
|
||
var last = $strSlice(string, -1);
|
||
if (first === '%' && last !== '%') {
|
||
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
||
} else if (last === '%' && first !== '%') {
|
||
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
||
}
|
||
var result = [];
|
||
$replace(string, rePropName, function(match, number, quote, subString) {
|
||
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
||
});
|
||
return result;
|
||
};
|
||
/* end adaptation */ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
||
var intrinsicName = name;
|
||
var alias;
|
||
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
||
alias = LEGACY_ALIASES[intrinsicName];
|
||
intrinsicName = '%' + alias[0] + '%';
|
||
}
|
||
if (hasOwn(INTRINSICS, intrinsicName)) {
|
||
var value = INTRINSICS[intrinsicName];
|
||
if (value === needsEval) {
|
||
value = doEval(intrinsicName);
|
||
}
|
||
if (typeof value === 'undefined' && !allowMissing) {
|
||
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
||
}
|
||
return {
|
||
alias: alias,
|
||
name: intrinsicName,
|
||
value: value
|
||
};
|
||
}
|
||
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
||
};
|
||
module.exports = function GetIntrinsic(name, allowMissing) {
|
||
if (typeof name !== 'string' || name.length === 0) {
|
||
throw new $TypeError('intrinsic name must be a non-empty string');
|
||
}
|
||
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
||
throw new $TypeError('"allowMissing" argument must be a boolean');
|
||
}
|
||
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
||
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
||
}
|
||
var parts = stringToPath(name);
|
||
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
||
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
||
var intrinsicRealName = intrinsic.name;
|
||
var value = intrinsic.value;
|
||
var skipFurtherCaching = false;
|
||
var alias = intrinsic.alias;
|
||
if (alias) {
|
||
intrinsicBaseName = alias[0];
|
||
$spliceApply(parts, $concat([
|
||
0,
|
||
1
|
||
], alias));
|
||
}
|
||
for(var i = 1, isOwn = true; i < parts.length; i += 1){
|
||
var part = parts[i];
|
||
var first = $strSlice(part, 0, 1);
|
||
var last = $strSlice(part, -1);
|
||
if ((first === '"' || first === "'" || first === '`' || last === '"' || last === "'" || last === '`') && first !== last) {
|
||
throw new $SyntaxError('property names with quotes must have matching quotes');
|
||
}
|
||
if (part === 'constructor' || !isOwn) {
|
||
skipFurtherCaching = true;
|
||
}
|
||
intrinsicBaseName += '.' + part;
|
||
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
||
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
||
value = INTRINSICS[intrinsicRealName];
|
||
} else if (value != null) {
|
||
if (!(part in value)) {
|
||
if (!allowMissing) {
|
||
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
||
}
|
||
return void undefined;
|
||
}
|
||
if ($gOPD && i + 1 >= parts.length) {
|
||
var desc = $gOPD(value, part);
|
||
isOwn = !!desc;
|
||
// By convention, when a data property is converted to an accessor
|
||
// property to emulate a data property that does not suffer from
|
||
// the override mistake, that accessor's getter is marked with
|
||
// an `originalValue` property. Here, when we detect this, we
|
||
// uphold the illusion by pretending to see that original data
|
||
// property, i.e., returning the value rather than the getter
|
||
// itself.
|
||
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
||
value = desc.get;
|
||
} else {
|
||
value = value[part];
|
||
}
|
||
} else {
|
||
isOwn = hasOwn(value, part);
|
||
value = value[part];
|
||
}
|
||
if (isOwn && !skipFurtherCaching) {
|
||
INTRINSICS[intrinsicRealName] = value;
|
||
}
|
||
}
|
||
}
|
||
return value;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/has-tostringtag/shams.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var hasSymbols = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/has-symbols/shams.js [app-ssr] (ecmascript)");
|
||
/** @type {import('.')} */ module.exports = function hasToStringTagShams() {
|
||
return hasSymbols() && !!Symbol.toStringTag;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/es-set-tostringtag/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var GetIntrinsic = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/get-intrinsic/index.js [app-ssr] (ecmascript)");
|
||
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
||
var hasToStringTag = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/has-tostringtag/shams.js [app-ssr] (ecmascript)")();
|
||
var hasOwn = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/hasown/index.js [app-ssr] (ecmascript)");
|
||
var $TypeError = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-errors/type.js [app-ssr] (ecmascript)");
|
||
var toStringTag = hasToStringTag ? Symbol.toStringTag : null;
|
||
/** @type {import('.')} */ module.exports = function setToStringTag(object, value) {
|
||
var overrideIfSet = arguments.length > 2 && !!arguments[2] && arguments[2].force;
|
||
var nonConfigurable = arguments.length > 2 && !!arguments[2] && arguments[2].nonConfigurable;
|
||
if (typeof overrideIfSet !== 'undefined' && typeof overrideIfSet !== 'boolean' || typeof nonConfigurable !== 'undefined' && typeof nonConfigurable !== 'boolean') {
|
||
throw new $TypeError('if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans');
|
||
}
|
||
if (toStringTag && (overrideIfSet || !hasOwn(object, toStringTag))) {
|
||
if ($defineProperty) {
|
||
$defineProperty(object, toStringTag, {
|
||
configurable: !nonConfigurable,
|
||
enumerable: false,
|
||
value: value,
|
||
writable: false
|
||
});
|
||
} else {
|
||
object[toStringTag] = value; // eslint-disable-line no-param-reassign
|
||
}
|
||
}
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/form-data/lib/populate.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
// populates missing values
|
||
module.exports = function(dst, src) {
|
||
Object.keys(src).forEach(function(prop) {
|
||
dst[prop] = dst[prop] || src[prop]; // eslint-disable-line no-param-reassign
|
||
});
|
||
return dst;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/form-data/lib/form_data.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var CombinedStream = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/combined-stream/lib/combined_stream.js [app-ssr] (ecmascript)");
|
||
var util = __turbopack_context__.r("[externals]/util [external] (util, cjs)");
|
||
var path = __turbopack_context__.r("[externals]/path [external] (path, cjs)");
|
||
var http = __turbopack_context__.r("[externals]/http [external] (http, cjs)");
|
||
var https = __turbopack_context__.r("[externals]/https [external] (https, cjs)");
|
||
var parseUrl = __turbopack_context__.r("[externals]/url [external] (url, cjs)").parse;
|
||
var fs = __turbopack_context__.r("[externals]/fs [external] (fs, cjs)");
|
||
var Stream = __turbopack_context__.r("[externals]/stream [external] (stream, cjs)").Stream;
|
||
var crypto = __turbopack_context__.r("[externals]/crypto [external] (crypto, cjs)");
|
||
var mime = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/mime-types/index.js [app-ssr] (ecmascript)");
|
||
var asynckit = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/asynckit/index.js [app-ssr] (ecmascript)");
|
||
var setToStringTag = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/es-set-tostringtag/index.js [app-ssr] (ecmascript)");
|
||
var hasOwn = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/hasown/index.js [app-ssr] (ecmascript)");
|
||
var populate = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/form-data/lib/populate.js [app-ssr] (ecmascript)");
|
||
/**
|
||
* Create readable "multipart/form-data" streams.
|
||
* Can be used to submit forms
|
||
* and file uploads to other web applications.
|
||
*
|
||
* @constructor
|
||
* @param {object} options - Properties to be added/overriden for FormData and CombinedStream
|
||
*/ function FormData(options) {
|
||
if (!(this instanceof FormData)) {
|
||
return new FormData(options);
|
||
}
|
||
this._overheadLength = 0;
|
||
this._valueLength = 0;
|
||
this._valuesToMeasure = [];
|
||
CombinedStream.call(this);
|
||
options = options || {}; // eslint-disable-line no-param-reassign
|
||
for(var option in options){
|
||
this[option] = options[option];
|
||
}
|
||
}
|
||
// make it a Stream
|
||
util.inherits(FormData, CombinedStream);
|
||
FormData.LINE_BREAK = '\r\n';
|
||
FormData.DEFAULT_CONTENT_TYPE = 'application/octet-stream';
|
||
FormData.prototype.append = function(field, value, options) {
|
||
options = options || {}; // eslint-disable-line no-param-reassign
|
||
// allow filename as single option
|
||
if (typeof options === 'string') {
|
||
options = {
|
||
filename: options
|
||
}; // eslint-disable-line no-param-reassign
|
||
}
|
||
var append = CombinedStream.prototype.append.bind(this);
|
||
// all that streamy business can't handle numbers
|
||
if (typeof value === 'number' || value == null) {
|
||
value = String(value); // eslint-disable-line no-param-reassign
|
||
}
|
||
// https://github.com/felixge/node-form-data/issues/38
|
||
if (Array.isArray(value)) {
|
||
/*
|
||
* Please convert your array into string
|
||
* the way web server expects it
|
||
*/ this._error(new Error('Arrays are not supported.'));
|
||
return;
|
||
}
|
||
var header = this._multiPartHeader(field, value, options);
|
||
var footer = this._multiPartFooter();
|
||
append(header);
|
||
append(value);
|
||
append(footer);
|
||
// pass along options.knownLength
|
||
this._trackLength(header, value, options);
|
||
};
|
||
FormData.prototype._trackLength = function(header, value, options) {
|
||
var valueLength = 0;
|
||
/*
|
||
* used w/ getLengthSync(), when length is known.
|
||
* e.g. for streaming directly from a remote server,
|
||
* w/ a known file a size, and not wanting to wait for
|
||
* incoming file to finish to get its size.
|
||
*/ if (options.knownLength != null) {
|
||
valueLength += Number(options.knownLength);
|
||
} else if (Buffer.isBuffer(value)) {
|
||
valueLength = value.length;
|
||
} else if (typeof value === 'string') {
|
||
valueLength = Buffer.byteLength(value);
|
||
}
|
||
this._valueLength += valueLength;
|
||
// @check why add CRLF? does this account for custom/multiple CRLFs?
|
||
this._overheadLength += Buffer.byteLength(header) + FormData.LINE_BREAK.length;
|
||
// empty or either doesn't have path or not an http response or not a stream
|
||
if (!value || !value.path && !(value.readable && hasOwn(value, 'httpVersion')) && !(value instanceof Stream)) {
|
||
return;
|
||
}
|
||
// no need to bother with the length
|
||
if (!options.knownLength) {
|
||
this._valuesToMeasure.push(value);
|
||
}
|
||
};
|
||
FormData.prototype._lengthRetriever = function(value, callback) {
|
||
if (hasOwn(value, 'fd')) {
|
||
// take read range into a account
|
||
// `end` = Infinity –> read file till the end
|
||
//
|
||
// TODO: Looks like there is bug in Node fs.createReadStream
|
||
// it doesn't respect `end` options without `start` options
|
||
// Fix it when node fixes it.
|
||
// https://github.com/joyent/node/issues/7819
|
||
if (value.end != undefined && value.end != Infinity && value.start != undefined) {
|
||
// when end specified
|
||
// no need to calculate range
|
||
// inclusive, starts with 0
|
||
callback(null, value.end + 1 - (value.start ? value.start : 0)); // eslint-disable-line callback-return
|
||
// not that fast snoopy
|
||
} else {
|
||
// still need to fetch file size from fs
|
||
fs.stat(value.path, function(err, stat) {
|
||
if (err) {
|
||
callback(err);
|
||
return;
|
||
}
|
||
// update final size based on the range options
|
||
var fileSize = stat.size - (value.start ? value.start : 0);
|
||
callback(null, fileSize);
|
||
});
|
||
}
|
||
// or http response
|
||
} else if (hasOwn(value, 'httpVersion')) {
|
||
callback(null, Number(value.headers['content-length'])); // eslint-disable-line callback-return
|
||
// or request stream http://github.com/mikeal/request
|
||
} else if (hasOwn(value, 'httpModule')) {
|
||
// wait till response come back
|
||
value.on('response', function(response) {
|
||
value.pause();
|
||
callback(null, Number(response.headers['content-length']));
|
||
});
|
||
value.resume();
|
||
// something else
|
||
} else {
|
||
callback('Unknown stream'); // eslint-disable-line callback-return
|
||
}
|
||
};
|
||
FormData.prototype._multiPartHeader = function(field, value, options) {
|
||
/*
|
||
* custom header specified (as string)?
|
||
* it becomes responsible for boundary
|
||
* (e.g. to handle extra CRLFs on .NET servers)
|
||
*/ if (typeof options.header === 'string') {
|
||
return options.header;
|
||
}
|
||
var contentDisposition = this._getContentDisposition(value, options);
|
||
var contentType = this._getContentType(value, options);
|
||
var contents = '';
|
||
var headers = {
|
||
// add custom disposition as third element or keep it two elements if not
|
||
'Content-Disposition': [
|
||
'form-data',
|
||
'name="' + field + '"'
|
||
].concat(contentDisposition || []),
|
||
// if no content type. allow it to be empty array
|
||
'Content-Type': [].concat(contentType || [])
|
||
};
|
||
// allow custom headers.
|
||
if (typeof options.header === 'object') {
|
||
populate(headers, options.header);
|
||
}
|
||
var header;
|
||
for(var prop in headers){
|
||
if (hasOwn(headers, prop)) {
|
||
header = headers[prop];
|
||
// skip nullish headers.
|
||
if (header == null) {
|
||
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
||
}
|
||
// convert all headers to arrays.
|
||
if (!Array.isArray(header)) {
|
||
header = [
|
||
header
|
||
];
|
||
}
|
||
// add non-empty headers.
|
||
if (header.length) {
|
||
contents += prop + ': ' + header.join('; ') + FormData.LINE_BREAK;
|
||
}
|
||
}
|
||
}
|
||
return '--' + this.getBoundary() + FormData.LINE_BREAK + contents + FormData.LINE_BREAK;
|
||
};
|
||
FormData.prototype._getContentDisposition = function(value, options) {
|
||
var filename;
|
||
if (typeof options.filepath === 'string') {
|
||
// custom filepath for relative paths
|
||
filename = path.normalize(options.filepath).replace(/\\/g, '/');
|
||
} else if (options.filename || value && (value.name || value.path)) {
|
||
/*
|
||
* custom filename take precedence
|
||
* formidable and the browser add a name property
|
||
* fs- and request- streams have path property
|
||
*/ filename = path.basename(options.filename || value && (value.name || value.path));
|
||
} else if (value && value.readable && hasOwn(value, 'httpVersion')) {
|
||
// or try http response
|
||
filename = path.basename(value.client._httpMessage.path || '');
|
||
}
|
||
if (filename) {
|
||
return 'filename="' + filename + '"';
|
||
}
|
||
};
|
||
FormData.prototype._getContentType = function(value, options) {
|
||
// use custom content-type above all
|
||
var contentType = options.contentType;
|
||
// or try `name` from formidable, browser
|
||
if (!contentType && value && value.name) {
|
||
contentType = mime.lookup(value.name);
|
||
}
|
||
// or try `path` from fs-, request- streams
|
||
if (!contentType && value && value.path) {
|
||
contentType = mime.lookup(value.path);
|
||
}
|
||
// or if it's http-reponse
|
||
if (!contentType && value && value.readable && hasOwn(value, 'httpVersion')) {
|
||
contentType = value.headers['content-type'];
|
||
}
|
||
// or guess it from the filepath or filename
|
||
if (!contentType && (options.filepath || options.filename)) {
|
||
contentType = mime.lookup(options.filepath || options.filename);
|
||
}
|
||
// fallback to the default content type if `value` is not simple value
|
||
if (!contentType && value && typeof value === 'object') {
|
||
contentType = FormData.DEFAULT_CONTENT_TYPE;
|
||
}
|
||
return contentType;
|
||
};
|
||
FormData.prototype._multiPartFooter = function() {
|
||
return (function(next) {
|
||
var footer = FormData.LINE_BREAK;
|
||
var lastPart = this._streams.length === 0;
|
||
if (lastPart) {
|
||
footer += this._lastBoundary();
|
||
}
|
||
next(footer);
|
||
}).bind(this);
|
||
};
|
||
FormData.prototype._lastBoundary = function() {
|
||
return '--' + this.getBoundary() + '--' + FormData.LINE_BREAK;
|
||
};
|
||
FormData.prototype.getHeaders = function(userHeaders) {
|
||
var header;
|
||
var formHeaders = {
|
||
'content-type': 'multipart/form-data; boundary=' + this.getBoundary()
|
||
};
|
||
for(header in userHeaders){
|
||
if (hasOwn(userHeaders, header)) {
|
||
formHeaders[header.toLowerCase()] = userHeaders[header];
|
||
}
|
||
}
|
||
return formHeaders;
|
||
};
|
||
FormData.prototype.setBoundary = function(boundary) {
|
||
if (typeof boundary !== 'string') {
|
||
throw new TypeError('FormData boundary must be a string');
|
||
}
|
||
this._boundary = boundary;
|
||
};
|
||
FormData.prototype.getBoundary = function() {
|
||
if (!this._boundary) {
|
||
this._generateBoundary();
|
||
}
|
||
return this._boundary;
|
||
};
|
||
FormData.prototype.getBuffer = function() {
|
||
var dataBuffer = new Buffer.alloc(0); // eslint-disable-line new-cap
|
||
var boundary = this.getBoundary();
|
||
// Create the form content. Add Line breaks to the end of data.
|
||
for(var i = 0, len = this._streams.length; i < len; i++){
|
||
if (typeof this._streams[i] !== 'function') {
|
||
// Add content to the buffer.
|
||
if (Buffer.isBuffer(this._streams[i])) {
|
||
dataBuffer = Buffer.concat([
|
||
dataBuffer,
|
||
this._streams[i]
|
||
]);
|
||
} else {
|
||
dataBuffer = Buffer.concat([
|
||
dataBuffer,
|
||
Buffer.from(this._streams[i])
|
||
]);
|
||
}
|
||
// Add break after content.
|
||
if (typeof this._streams[i] !== 'string' || this._streams[i].substring(2, boundary.length + 2) !== boundary) {
|
||
dataBuffer = Buffer.concat([
|
||
dataBuffer,
|
||
Buffer.from(FormData.LINE_BREAK)
|
||
]);
|
||
}
|
||
}
|
||
}
|
||
// Add the footer and return the Buffer object.
|
||
return Buffer.concat([
|
||
dataBuffer,
|
||
Buffer.from(this._lastBoundary())
|
||
]);
|
||
};
|
||
FormData.prototype._generateBoundary = function() {
|
||
// This generates a 50 character boundary similar to those used by Firefox.
|
||
// They are optimized for boyer-moore parsing.
|
||
this._boundary = '--------------------------' + crypto.randomBytes(12).toString('hex');
|
||
};
|
||
// Note: getLengthSync DOESN'T calculate streams length
|
||
// As workaround one can calculate file size manually and add it as knownLength option
|
||
FormData.prototype.getLengthSync = function() {
|
||
var knownLength = this._overheadLength + this._valueLength;
|
||
// Don't get confused, there are 3 "internal" streams for each keyval pair so it basically checks if there is any value added to the form
|
||
if (this._streams.length) {
|
||
knownLength += this._lastBoundary().length;
|
||
}
|
||
// https://github.com/form-data/form-data/issues/40
|
||
if (!this.hasKnownLength()) {
|
||
/*
|
||
* Some async length retrievers are present
|
||
* therefore synchronous length calculation is false.
|
||
* Please use getLength(callback) to get proper length
|
||
*/ this._error(new Error('Cannot calculate proper length in synchronous way.'));
|
||
}
|
||
return knownLength;
|
||
};
|
||
// Public API to check if length of added values is known
|
||
// https://github.com/form-data/form-data/issues/196
|
||
// https://github.com/form-data/form-data/issues/262
|
||
FormData.prototype.hasKnownLength = function() {
|
||
var hasKnownLength = true;
|
||
if (this._valuesToMeasure.length) {
|
||
hasKnownLength = false;
|
||
}
|
||
return hasKnownLength;
|
||
};
|
||
FormData.prototype.getLength = function(cb) {
|
||
var knownLength = this._overheadLength + this._valueLength;
|
||
if (this._streams.length) {
|
||
knownLength += this._lastBoundary().length;
|
||
}
|
||
if (!this._valuesToMeasure.length) {
|
||
process.nextTick(cb.bind(this, null, knownLength));
|
||
return;
|
||
}
|
||
asynckit.parallel(this._valuesToMeasure, this._lengthRetriever, function(err, values) {
|
||
if (err) {
|
||
cb(err);
|
||
return;
|
||
}
|
||
values.forEach(function(length) {
|
||
knownLength += length;
|
||
});
|
||
cb(null, knownLength);
|
||
});
|
||
};
|
||
FormData.prototype.submit = function(params, cb) {
|
||
var request;
|
||
var options;
|
||
var defaults = {
|
||
method: 'post'
|
||
};
|
||
// parse provided url if it's string or treat it as options object
|
||
if (typeof params === 'string') {
|
||
params = parseUrl(params); // eslint-disable-line no-param-reassign
|
||
/* eslint sort-keys: 0 */ options = populate({
|
||
port: params.port,
|
||
path: params.pathname,
|
||
host: params.hostname,
|
||
protocol: params.protocol
|
||
}, defaults);
|
||
} else {
|
||
options = populate(params, defaults);
|
||
// if no port provided use default one
|
||
if (!options.port) {
|
||
options.port = options.protocol === 'https:' ? 443 : 80;
|
||
}
|
||
}
|
||
// put that good code in getHeaders to some use
|
||
options.headers = this.getHeaders(params.headers);
|
||
// https if specified, fallback to http in any other case
|
||
if (options.protocol === 'https:') {
|
||
request = https.request(options);
|
||
} else {
|
||
request = http.request(options);
|
||
}
|
||
// get content length and fire away
|
||
this.getLength((function(err, length) {
|
||
if (err && err !== 'Unknown stream') {
|
||
this._error(err);
|
||
return;
|
||
}
|
||
// add content length
|
||
if (length) {
|
||
request.setHeader('Content-Length', length);
|
||
}
|
||
this.pipe(request);
|
||
if (cb) {
|
||
var onResponse;
|
||
var callback = function(error, responce) {
|
||
request.removeListener('error', callback);
|
||
request.removeListener('response', onResponse);
|
||
return cb.call(this, error, responce);
|
||
};
|
||
onResponse = callback.bind(this, null);
|
||
request.on('error', callback);
|
||
request.on('response', onResponse);
|
||
}
|
||
}).bind(this));
|
||
return request;
|
||
};
|
||
FormData.prototype._error = function(err) {
|
||
if (!this.error) {
|
||
this.error = err;
|
||
this.pause();
|
||
this.emit('error', err);
|
||
}
|
||
};
|
||
FormData.prototype.toString = function() {
|
||
return '[object FormData]';
|
||
};
|
||
setToStringTag(FormData.prototype, 'FormData');
|
||
// Public API
|
||
module.exports = FormData;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/node/classes/FormData.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$form$2d$data$2f$lib$2f$form_data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/form-data/lib/form_data.js [app-ssr] (ecmascript)");
|
||
;
|
||
const __TURBOPACK__default__export__ = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$form$2d$data$2f$lib$2f$form_data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/toFormData.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
// temporary hotfix to avoid circular references until AxiosURLSearchParams is refactored
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$node$2f$classes$2f$FormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/node/classes/FormData.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
;
|
||
/**
|
||
* Determines if the given thing is a array or js object.
|
||
*
|
||
* @param {string} thing - The object or array to be visited.
|
||
*
|
||
* @returns {boolean}
|
||
*/ function isVisitable(thing) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isPlainObject(thing) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(thing);
|
||
}
|
||
/**
|
||
* It removes the brackets from the end of a string
|
||
*
|
||
* @param {string} key - The key of the parameter.
|
||
*
|
||
* @returns {string} the key without the brackets.
|
||
*/ function removeBrackets(key) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].endsWith(key, '[]') ? key.slice(0, -2) : key;
|
||
}
|
||
/**
|
||
* It takes a path, a key, and a boolean, and returns a string
|
||
*
|
||
* @param {string} path - The path to the current key.
|
||
* @param {string} key - The key of the current object being iterated over.
|
||
* @param {string} dots - If true, the key will be rendered with dots instead of brackets.
|
||
*
|
||
* @returns {string} The path to the current key.
|
||
*/ function renderKey(path, key, dots) {
|
||
if (!path) return key;
|
||
return path.concat(key).map(function each(token, i) {
|
||
// eslint-disable-next-line no-param-reassign
|
||
token = removeBrackets(token);
|
||
return !dots && i ? '[' + token + ']' : token;
|
||
}).join(dots ? '.' : '');
|
||
}
|
||
/**
|
||
* If the array is an array and none of its elements are visitable, then it's a flat array.
|
||
*
|
||
* @param {Array<any>} arr - The array to check
|
||
*
|
||
* @returns {boolean}
|
||
*/ function isFlatArray(arr) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(arr) && !arr.some(isVisitable);
|
||
}
|
||
const predicates = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFlatObject(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"], {}, null, function filter(prop) {
|
||
return /^is[A-Z]/.test(prop);
|
||
});
|
||
/**
|
||
* Convert a data object to FormData
|
||
*
|
||
* @param {Object} obj
|
||
* @param {?Object} [formData]
|
||
* @param {?Object} [options]
|
||
* @param {Function} [options.visitor]
|
||
* @param {Boolean} [options.metaTokens = true]
|
||
* @param {Boolean} [options.dots = false]
|
||
* @param {?Boolean} [options.indexes = false]
|
||
*
|
||
* @returns {Object}
|
||
**/ /**
|
||
* It converts an object into a FormData object
|
||
*
|
||
* @param {Object<any, any>} obj - The object to convert to form data.
|
||
* @param {string} formData - The FormData object to append to.
|
||
* @param {Object<string, any>} options
|
||
*
|
||
* @returns
|
||
*/ function toFormData(obj, formData, options) {
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isObject(obj)) {
|
||
throw new TypeError('target must be an object');
|
||
}
|
||
// eslint-disable-next-line no-param-reassign
|
||
formData = formData || new (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$node$2f$classes$2f$FormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"] || FormData)();
|
||
// eslint-disable-next-line no-param-reassign
|
||
options = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFlatObject(options, {
|
||
metaTokens: true,
|
||
dots: false,
|
||
indexes: false
|
||
}, false, function defined(option, source) {
|
||
// eslint-disable-next-line no-eq-null,eqeqeq
|
||
return !__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(source[option]);
|
||
});
|
||
const metaTokens = options.metaTokens;
|
||
// eslint-disable-next-line no-use-before-define
|
||
const visitor = options.visitor || defaultVisitor;
|
||
const dots = options.dots;
|
||
const indexes = options.indexes;
|
||
const _Blob = options.Blob || typeof Blob !== 'undefined' && Blob;
|
||
const useBlob = _Blob && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isSpecCompliantForm(formData);
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(visitor)) {
|
||
throw new TypeError('visitor must be a function');
|
||
}
|
||
function convertValue(value) {
|
||
if (value === null) return '';
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isDate(value)) {
|
||
return value.toISOString();
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isBoolean(value)) {
|
||
return value.toString();
|
||
}
|
||
if (!useBlob && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isBlob(value)) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Blob is not supported. Use a Buffer instead.');
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArrayBuffer(value) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isTypedArray(value)) {
|
||
return useBlob && typeof Blob === 'function' ? new Blob([
|
||
value
|
||
]) : Buffer.from(value);
|
||
}
|
||
return value;
|
||
}
|
||
/**
|
||
* Default visitor.
|
||
*
|
||
* @param {*} value
|
||
* @param {String|Number} key
|
||
* @param {Array<String|Number>} path
|
||
* @this {FormData}
|
||
*
|
||
* @returns {boolean} return true to visit the each prop of the value recursively
|
||
*/ function defaultVisitor(value, key, path) {
|
||
let arr = value;
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isReactNative(formData) && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isReactNativeBlob(value)) {
|
||
formData.append(renderKey(path, key, dots), convertValue(value));
|
||
return false;
|
||
}
|
||
if (value && !path && typeof value === 'object') {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].endsWith(key, '{}')) {
|
||
// eslint-disable-next-line no-param-reassign
|
||
key = metaTokens ? key : key.slice(0, -2);
|
||
// eslint-disable-next-line no-param-reassign
|
||
value = JSON.stringify(value);
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(value) && isFlatArray(value) || (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFileList(value) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].endsWith(key, '[]')) && (arr = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toArray(value))) {
|
||
// eslint-disable-next-line no-param-reassign
|
||
key = removeBrackets(key);
|
||
arr.forEach(function each(el, index) {
|
||
!(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(el) || el === null) && formData.append(// eslint-disable-next-line no-nested-ternary
|
||
indexes === true ? renderKey([
|
||
key
|
||
], index, dots) : indexes === null ? key : key + '[]', convertValue(el));
|
||
});
|
||
return false;
|
||
}
|
||
}
|
||
if (isVisitable(value)) {
|
||
return true;
|
||
}
|
||
formData.append(renderKey(path, key, dots), convertValue(value));
|
||
return false;
|
||
}
|
||
const stack = [];
|
||
const exposedHelpers = Object.assign(predicates, {
|
||
defaultVisitor,
|
||
convertValue,
|
||
isVisitable
|
||
});
|
||
function build(value, path) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(value)) return;
|
||
if (stack.indexOf(value) !== -1) {
|
||
throw Error('Circular reference detected in ' + path.join('.'));
|
||
}
|
||
stack.push(value);
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(value, function each(el, key) {
|
||
const result = !(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(el) || el === null) && visitor.call(formData, el, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(key) ? key.trim() : key, path, exposedHelpers);
|
||
if (result === true) {
|
||
build(el, path ? path.concat(key) : [
|
||
key
|
||
]);
|
||
}
|
||
});
|
||
stack.pop();
|
||
}
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isObject(obj)) {
|
||
throw new TypeError('data must be an object');
|
||
}
|
||
build(obj);
|
||
return formData;
|
||
}
|
||
const __TURBOPACK__default__export__ = toFormData;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/AxiosURLSearchParams.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toFormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/toFormData.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
/**
|
||
* It encodes a string by replacing all characters that are not in the unreserved set with
|
||
* their percent-encoded equivalents
|
||
*
|
||
* @param {string} str - The string to encode.
|
||
*
|
||
* @returns {string} The encoded string.
|
||
*/ function encode(str) {
|
||
const charMap = {
|
||
'!': '%21',
|
||
"'": '%27',
|
||
'(': '%28',
|
||
')': '%29',
|
||
'~': '%7E',
|
||
'%20': '+',
|
||
'%00': '\x00'
|
||
};
|
||
return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
|
||
return charMap[match];
|
||
});
|
||
}
|
||
/**
|
||
* It takes a params object and converts it to a FormData object
|
||
*
|
||
* @param {Object<string, any>} params - The parameters to be converted to a FormData object.
|
||
* @param {Object<string, any>} options - The options object passed to the Axios constructor.
|
||
*
|
||
* @returns {void}
|
||
*/ function AxiosURLSearchParams(params, options) {
|
||
this._pairs = [];
|
||
params && (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toFormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(params, this, options);
|
||
}
|
||
const prototype = AxiosURLSearchParams.prototype;
|
||
prototype.append = function append(name, value) {
|
||
this._pairs.push([
|
||
name,
|
||
value
|
||
]);
|
||
};
|
||
prototype.toString = function toString(encoder) {
|
||
const _encode = encoder ? function(value) {
|
||
return encoder.call(this, value, encode);
|
||
} : encode;
|
||
return this._pairs.map(function each(pair) {
|
||
return _encode(pair[0]) + '=' + _encode(pair[1]);
|
||
}, '').join('&');
|
||
};
|
||
const __TURBOPACK__default__export__ = AxiosURLSearchParams;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/buildURL.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>buildURL
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$AxiosURLSearchParams$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/AxiosURLSearchParams.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
/**
|
||
* It replaces all instances of the characters `:`, `$`, `,`, `+`, `[`, and `]` with their
|
||
* URI encoded counterparts
|
||
*
|
||
* @param {string} val The value to be encoded.
|
||
*
|
||
* @returns {string} The encoded value.
|
||
*/ function encode(val) {
|
||
return encodeURIComponent(val).replace(/%3A/gi, ':').replace(/%24/g, '$').replace(/%2C/gi, ',').replace(/%20/g, '+');
|
||
}
|
||
function buildURL(url, params, options) {
|
||
if (!params) {
|
||
return url;
|
||
}
|
||
const _encode = options && options.encode || encode;
|
||
const _options = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(options) ? {
|
||
serialize: options
|
||
} : options;
|
||
const serializeFn = _options && _options.serialize;
|
||
let serializedParams;
|
||
if (serializeFn) {
|
||
serializedParams = serializeFn(params, _options);
|
||
} else {
|
||
serializedParams = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isURLSearchParams(params) ? params.toString() : new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$AxiosURLSearchParams$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](params, _options).toString(_encode);
|
||
}
|
||
if (serializedParams) {
|
||
const hashmarkIndex = url.indexOf('#');
|
||
if (hashmarkIndex !== -1) {
|
||
url = url.slice(0, hashmarkIndex);
|
||
}
|
||
url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;
|
||
}
|
||
return url;
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/InterceptorManager.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
class InterceptorManager {
|
||
constructor(){
|
||
this.handlers = [];
|
||
}
|
||
/**
|
||
* Add a new interceptor to the stack
|
||
*
|
||
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
||
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
||
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
||
*
|
||
* @return {Number} An ID used to remove interceptor later
|
||
*/ use(fulfilled, rejected, options) {
|
||
this.handlers.push({
|
||
fulfilled,
|
||
rejected,
|
||
synchronous: options ? options.synchronous : false,
|
||
runWhen: options ? options.runWhen : null
|
||
});
|
||
return this.handlers.length - 1;
|
||
}
|
||
/**
|
||
* Remove an interceptor from the stack
|
||
*
|
||
* @param {Number} id The ID that was returned by `use`
|
||
*
|
||
* @returns {void}
|
||
*/ eject(id) {
|
||
if (this.handlers[id]) {
|
||
this.handlers[id] = null;
|
||
}
|
||
}
|
||
/**
|
||
* Clear all interceptors from the stack
|
||
*
|
||
* @returns {void}
|
||
*/ clear() {
|
||
if (this.handlers) {
|
||
this.handlers = [];
|
||
}
|
||
}
|
||
/**
|
||
* Iterate over all the registered interceptors
|
||
*
|
||
* This method is particularly useful for skipping over any
|
||
* interceptors that may have become `null` calling `eject`.
|
||
*
|
||
* @param {Function} fn The function to call for each interceptor
|
||
*
|
||
* @returns {void}
|
||
*/ forEach(fn) {
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(this.handlers, function forEachHandler(h) {
|
||
if (h !== null) {
|
||
fn(h);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
const __TURBOPACK__default__export__ = InterceptorManager;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/transitional.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
'use strict';
|
||
const __TURBOPACK__default__export__ = {
|
||
silentJSONParsing: true,
|
||
forcedJSONParsing: true,
|
||
clarifyTimeoutError: false,
|
||
legacyInterceptorReqResOrdering: true
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/node/classes/URLSearchParams.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$url__$5b$external$5d$__$28$url$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/url [external] (url, cjs)");
|
||
'use strict';
|
||
;
|
||
const __TURBOPACK__default__export__ = __TURBOPACK__imported__module__$5b$externals$5d2f$url__$5b$external$5d$__$28$url$2c$__cjs$29$__["default"].URLSearchParams;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/node/index.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$crypto__$5b$external$5d$__$28$crypto$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/crypto [external] (crypto, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$node$2f$classes$2f$URLSearchParams$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/node/classes/URLSearchParams.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$node$2f$classes$2f$FormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/node/classes/FormData.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
||
const DIGIT = '0123456789';
|
||
const ALPHABET = {
|
||
DIGIT,
|
||
ALPHA,
|
||
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
||
};
|
||
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT)=>{
|
||
let str = '';
|
||
const { length } = alphabet;
|
||
const randomValues = new Uint32Array(size);
|
||
__TURBOPACK__imported__module__$5b$externals$5d2f$crypto__$5b$external$5d$__$28$crypto$2c$__cjs$29$__["default"].randomFillSync(randomValues);
|
||
for(let i = 0; i < size; i++){
|
||
str += alphabet[randomValues[i] % length];
|
||
}
|
||
return str;
|
||
};
|
||
const __TURBOPACK__default__export__ = {
|
||
isNode: true,
|
||
classes: {
|
||
URLSearchParams: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$node$2f$classes$2f$URLSearchParams$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"],
|
||
FormData: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$node$2f$classes$2f$FormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"],
|
||
Blob: typeof Blob !== 'undefined' && Blob || null
|
||
},
|
||
ALPHABET,
|
||
generateString,
|
||
protocols: [
|
||
'http',
|
||
'https',
|
||
'file',
|
||
'data'
|
||
]
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/common/utils.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"hasBrowserEnv",
|
||
()=>hasBrowserEnv,
|
||
"hasStandardBrowserEnv",
|
||
()=>hasStandardBrowserEnv,
|
||
"hasStandardBrowserWebWorkerEnv",
|
||
()=>hasStandardBrowserWebWorkerEnv,
|
||
"navigator",
|
||
()=>_navigator,
|
||
"origin",
|
||
()=>origin
|
||
]);
|
||
const hasBrowserEnv = ("TURBOPACK compile-time value", "undefined") !== 'undefined' && typeof document !== 'undefined';
|
||
const _navigator = typeof navigator === 'object' && navigator || undefined;
|
||
/**
|
||
* Determine if we're running in a standard browser environment
|
||
*
|
||
* This allows axios to run in a web worker, and react-native.
|
||
* Both environments support XMLHttpRequest, but not fully standard globals.
|
||
*
|
||
* web workers:
|
||
* typeof window -> undefined
|
||
* typeof document -> undefined
|
||
*
|
||
* react-native:
|
||
* navigator.product -> 'ReactNative'
|
||
* nativescript
|
||
* navigator.product -> 'NativeScript' or 'NS'
|
||
*
|
||
* @returns {boolean}
|
||
*/ const hasStandardBrowserEnv = hasBrowserEnv && (!_navigator || [
|
||
'ReactNative',
|
||
'NativeScript',
|
||
'NS'
|
||
].indexOf(_navigator.product) < 0);
|
||
/**
|
||
* Determine if we're running in a standard browser webWorker environment
|
||
*
|
||
* Although the `isStandardBrowserEnv` method indicates that
|
||
* `allows axios to run in a web worker`, the WebWorker will still be
|
||
* filtered out due to its judgment standard
|
||
* `typeof window !== 'undefined' && typeof document !== 'undefined'`.
|
||
* This leads to a problem when axios post `FormData` in webWorker
|
||
*/ const hasStandardBrowserWebWorkerEnv = (()=>{
|
||
return typeof WorkerGlobalScope !== 'undefined' && // eslint-disable-next-line no-undef
|
||
self instanceof WorkerGlobalScope && typeof self.importScripts === 'function';
|
||
})();
|
||
const origin = hasBrowserEnv && window.location.href || 'http://localhost';
|
||
;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$node$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/node/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$common$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/common/utils.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
const __TURBOPACK__default__export__ = {
|
||
...__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$common$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__,
|
||
...__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$node$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/toURLEncodedForm.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>toURLEncodedForm
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toFormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/toFormData.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
;
|
||
function toURLEncodedForm(data, options) {
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toFormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(data, new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].classes.URLSearchParams(), {
|
||
visitor: function(value, key, path, helpers) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isNode && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isBuffer(value)) {
|
||
this.append(key, value.toString('base64'));
|
||
return false;
|
||
}
|
||
return helpers.defaultVisitor.apply(this, arguments);
|
||
},
|
||
...options
|
||
});
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/formDataToJSON.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
/**
|
||
* It takes a string like `foo[x][y][z]` and returns an array like `['foo', 'x', 'y', 'z']
|
||
*
|
||
* @param {string} name - The name of the property to get.
|
||
*
|
||
* @returns An array of strings.
|
||
*/ function parsePropPath(name) {
|
||
// foo[x][y][z]
|
||
// foo.x.y.z
|
||
// foo-x-y-z
|
||
// foo x y z
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].matchAll(/\w+|\[(\w*)]/g, name).map((match)=>{
|
||
return match[0] === '[]' ? '' : match[1] || match[0];
|
||
});
|
||
}
|
||
/**
|
||
* Convert an array to an object.
|
||
*
|
||
* @param {Array<any>} arr - The array to convert to an object.
|
||
*
|
||
* @returns An object with the same keys and values as the array.
|
||
*/ function arrayToObject(arr) {
|
||
const obj = {};
|
||
const keys = Object.keys(arr);
|
||
let i;
|
||
const len = keys.length;
|
||
let key;
|
||
for(i = 0; i < len; i++){
|
||
key = keys[i];
|
||
obj[key] = arr[key];
|
||
}
|
||
return obj;
|
||
}
|
||
/**
|
||
* It takes a FormData object and returns a JavaScript object
|
||
*
|
||
* @param {string} formData The FormData object to convert to JSON.
|
||
*
|
||
* @returns {Object<string, any> | null} The converted object.
|
||
*/ function formDataToJSON(formData) {
|
||
function buildPath(path, value, target, index) {
|
||
let name = path[index++];
|
||
if (name === '__proto__') return true;
|
||
const isNumericKey = Number.isFinite(+name);
|
||
const isLast = index >= path.length;
|
||
name = !name && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(target) ? target.length : name;
|
||
if (isLast) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].hasOwnProp(target, name)) {
|
||
target[name] = [
|
||
target[name],
|
||
value
|
||
];
|
||
} else {
|
||
target[name] = value;
|
||
}
|
||
return !isNumericKey;
|
||
}
|
||
if (!target[name] || !__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isObject(target[name])) {
|
||
target[name] = [];
|
||
}
|
||
const result = buildPath(path, value, target[name], index);
|
||
if (result && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(target[name])) {
|
||
target[name] = arrayToObject(target[name]);
|
||
}
|
||
return !isNumericKey;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFormData(formData) && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(formData.entries)) {
|
||
const obj = {};
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEachEntry(formData, (name, value)=>{
|
||
buildPath(parsePropPath(name), value, obj, 0);
|
||
});
|
||
return obj;
|
||
}
|
||
return null;
|
||
}
|
||
const __TURBOPACK__default__export__ = formDataToJSON;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/index.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$transitional$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/transitional.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toFormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/toFormData.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toURLEncodedForm$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/toURLEncodedForm.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$formDataToJSON$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/formDataToJSON.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
/**
|
||
* It takes a string, tries to parse it, and if it fails, it returns the stringified version
|
||
* of the input
|
||
*
|
||
* @param {any} rawValue - The value to be stringified.
|
||
* @param {Function} parser - A function that parses a string into a JavaScript object.
|
||
* @param {Function} encoder - A function that takes a value and returns a string.
|
||
*
|
||
* @returns {string} A stringified version of the rawValue.
|
||
*/ function stringifySafely(rawValue, parser, encoder) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(rawValue)) {
|
||
try {
|
||
(parser || JSON.parse)(rawValue);
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].trim(rawValue);
|
||
} catch (e) {
|
||
if (e.name !== 'SyntaxError') {
|
||
throw e;
|
||
}
|
||
}
|
||
}
|
||
return (encoder || JSON.stringify)(rawValue);
|
||
}
|
||
const defaults = {
|
||
transitional: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$transitional$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"],
|
||
adapter: [
|
||
'xhr',
|
||
'http',
|
||
'fetch'
|
||
],
|
||
transformRequest: [
|
||
function transformRequest(data, headers) {
|
||
const contentType = headers.getContentType() || '';
|
||
const hasJSONContentType = contentType.indexOf('application/json') > -1;
|
||
const isObjectPayload = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isObject(data);
|
||
if (isObjectPayload && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isHTMLForm(data)) {
|
||
data = new FormData(data);
|
||
}
|
||
const isFormData = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFormData(data);
|
||
if (isFormData) {
|
||
return hasJSONContentType ? JSON.stringify((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$formDataToJSON$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(data)) : data;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArrayBuffer(data) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isBuffer(data) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isStream(data) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFile(data) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isBlob(data) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isReadableStream(data)) {
|
||
return data;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArrayBufferView(data)) {
|
||
return data.buffer;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isURLSearchParams(data)) {
|
||
headers.setContentType('application/x-www-form-urlencoded;charset=utf-8', false);
|
||
return data.toString();
|
||
}
|
||
let isFileList;
|
||
if (isObjectPayload) {
|
||
if (contentType.indexOf('application/x-www-form-urlencoded') > -1) {
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toURLEncodedForm$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(data, this.formSerializer).toString();
|
||
}
|
||
if ((isFileList = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFileList(data)) || contentType.indexOf('multipart/form-data') > -1) {
|
||
const _FormData = this.env && this.env.FormData;
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toFormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(isFileList ? {
|
||
'files[]': data
|
||
} : data, _FormData && new _FormData(), this.formSerializer);
|
||
}
|
||
}
|
||
if (isObjectPayload || hasJSONContentType) {
|
||
headers.setContentType('application/json', false);
|
||
return stringifySafely(data);
|
||
}
|
||
return data;
|
||
}
|
||
],
|
||
transformResponse: [
|
||
function transformResponse(data) {
|
||
const transitional = this.transitional || defaults.transitional;
|
||
const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
|
||
const JSONRequested = this.responseType === 'json';
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isResponse(data) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isReadableStream(data)) {
|
||
return data;
|
||
}
|
||
if (data && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
|
||
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
||
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
||
try {
|
||
return JSON.parse(data, this.parseReviver);
|
||
} catch (e) {
|
||
if (strictJSONParsing) {
|
||
if (e.name === 'SyntaxError') {
|
||
throw __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(e, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_RESPONSE, this, null, this.response);
|
||
}
|
||
throw e;
|
||
}
|
||
}
|
||
}
|
||
return data;
|
||
}
|
||
],
|
||
/**
|
||
* A timeout in milliseconds to abort a request. If set to 0 (default) a
|
||
* timeout is not created.
|
||
*/ timeout: 0,
|
||
xsrfCookieName: 'XSRF-TOKEN',
|
||
xsrfHeaderName: 'X-XSRF-TOKEN',
|
||
maxContentLength: -1,
|
||
maxBodyLength: -1,
|
||
env: {
|
||
FormData: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].classes.FormData,
|
||
Blob: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].classes.Blob
|
||
},
|
||
validateStatus: function validateStatus(status) {
|
||
return status >= 200 && status < 300;
|
||
},
|
||
headers: {
|
||
common: {
|
||
Accept: 'application/json, text/plain, */*',
|
||
'Content-Type': undefined
|
||
}
|
||
}
|
||
};
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach([
|
||
'delete',
|
||
'get',
|
||
'head',
|
||
'post',
|
||
'put',
|
||
'patch'
|
||
], (method)=>{
|
||
defaults.headers[method] = {};
|
||
});
|
||
const __TURBOPACK__default__export__ = defaults;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/parseHeaders.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
// RawAxiosHeaders whose duplicates are ignored by node
|
||
// c.f. https://nodejs.org/api/http.html#http_message_headers
|
||
const ignoreDuplicateOf = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toObjectSet([
|
||
'age',
|
||
'authorization',
|
||
'content-length',
|
||
'content-type',
|
||
'etag',
|
||
'expires',
|
||
'from',
|
||
'host',
|
||
'if-modified-since',
|
||
'if-unmodified-since',
|
||
'last-modified',
|
||
'location',
|
||
'max-forwards',
|
||
'proxy-authorization',
|
||
'referer',
|
||
'retry-after',
|
||
'user-agent'
|
||
]);
|
||
const __TURBOPACK__default__export__ = (rawHeaders)=>{
|
||
const parsed = {};
|
||
let key;
|
||
let val;
|
||
let i;
|
||
rawHeaders && rawHeaders.split('\n').forEach(function parser(line) {
|
||
i = line.indexOf(':');
|
||
key = line.substring(0, i).trim().toLowerCase();
|
||
val = line.substring(i + 1).trim();
|
||
if (!key || parsed[key] && ignoreDuplicateOf[key]) {
|
||
return;
|
||
}
|
||
if (key === 'set-cookie') {
|
||
if (parsed[key]) {
|
||
parsed[key].push(val);
|
||
} else {
|
||
parsed[key] = [
|
||
val
|
||
];
|
||
}
|
||
} else {
|
||
parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;
|
||
}
|
||
});
|
||
return parsed;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$parseHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/parseHeaders.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
const $internals = Symbol('internals');
|
||
function normalizeHeader(header) {
|
||
return header && String(header).trim().toLowerCase();
|
||
}
|
||
function normalizeValue(value) {
|
||
if (value === false || value == null) {
|
||
return value;
|
||
}
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(value) ? value.map(normalizeValue) : String(value);
|
||
}
|
||
function parseTokens(str) {
|
||
const tokens = Object.create(null);
|
||
const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
||
let match;
|
||
while(match = tokensRE.exec(str)){
|
||
tokens[match[1]] = match[2];
|
||
}
|
||
return tokens;
|
||
}
|
||
const isValidHeaderName = (str)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
|
||
function matchHeaderValue(context, value, header, filter, isHeaderNameFilter) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(filter)) {
|
||
return filter.call(this, value, header);
|
||
}
|
||
if (isHeaderNameFilter) {
|
||
value = header;
|
||
}
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(value)) return;
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(filter)) {
|
||
return value.indexOf(filter) !== -1;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isRegExp(filter)) {
|
||
return filter.test(value);
|
||
}
|
||
}
|
||
function formatHeader(header) {
|
||
return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str)=>{
|
||
return char.toUpperCase() + str;
|
||
});
|
||
}
|
||
function buildAccessors(obj, header) {
|
||
const accessorName = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toCamelCase(' ' + header);
|
||
[
|
||
'get',
|
||
'set',
|
||
'has'
|
||
].forEach((methodName)=>{
|
||
Object.defineProperty(obj, methodName + accessorName, {
|
||
value: function(arg1, arg2, arg3) {
|
||
return this[methodName].call(this, header, arg1, arg2, arg3);
|
||
},
|
||
configurable: true
|
||
});
|
||
});
|
||
}
|
||
class AxiosHeaders {
|
||
constructor(headers){
|
||
headers && this.set(headers);
|
||
}
|
||
set(header, valueOrRewrite, rewrite) {
|
||
const self = this;
|
||
function setHeader(_value, _header, _rewrite) {
|
||
const lHeader = normalizeHeader(_header);
|
||
if (!lHeader) {
|
||
throw new Error('header name must be a non-empty string');
|
||
}
|
||
const key = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].findKey(self, lHeader);
|
||
if (!key || self[key] === undefined || _rewrite === true || _rewrite === undefined && self[key] !== false) {
|
||
self[key || _header] = normalizeValue(_value);
|
||
}
|
||
}
|
||
const setHeaders = (headers, _rewrite)=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(headers, (_value, _header)=>setHeader(_value, _header, _rewrite));
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isPlainObject(header) || header instanceof this.constructor) {
|
||
setHeaders(header, valueOrRewrite);
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
|
||
setHeaders((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$parseHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(header), valueOrRewrite);
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isObject(header) && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isIterable(header)) {
|
||
let obj = {}, dest, key;
|
||
for (const entry of header){
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(entry)) {
|
||
throw TypeError('Object iterator must return a key-value pair');
|
||
}
|
||
obj[key = entry[0]] = (dest = obj[key]) ? __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(dest) ? [
|
||
...dest,
|
||
entry[1]
|
||
] : [
|
||
dest,
|
||
entry[1]
|
||
] : entry[1];
|
||
}
|
||
setHeaders(obj, valueOrRewrite);
|
||
} else {
|
||
header != null && setHeader(valueOrRewrite, header, rewrite);
|
||
}
|
||
return this;
|
||
}
|
||
get(header, parser) {
|
||
header = normalizeHeader(header);
|
||
if (header) {
|
||
const key = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].findKey(this, header);
|
||
if (key) {
|
||
const value = this[key];
|
||
if (!parser) {
|
||
return value;
|
||
}
|
||
if (parser === true) {
|
||
return parseTokens(value);
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(parser)) {
|
||
return parser.call(this, value, key);
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isRegExp(parser)) {
|
||
return parser.exec(value);
|
||
}
|
||
throw new TypeError('parser must be boolean|regexp|function');
|
||
}
|
||
}
|
||
}
|
||
has(header, matcher) {
|
||
header = normalizeHeader(header);
|
||
if (header) {
|
||
const key = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].findKey(this, header);
|
||
return !!(key && this[key] !== undefined && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
|
||
}
|
||
return false;
|
||
}
|
||
delete(header, matcher) {
|
||
const self = this;
|
||
let deleted = false;
|
||
function deleteHeader(_header) {
|
||
_header = normalizeHeader(_header);
|
||
if (_header) {
|
||
const key = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].findKey(self, _header);
|
||
if (key && (!matcher || matchHeaderValue(self, self[key], key, matcher))) {
|
||
delete self[key];
|
||
deleted = true;
|
||
}
|
||
}
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(header)) {
|
||
header.forEach(deleteHeader);
|
||
} else {
|
||
deleteHeader(header);
|
||
}
|
||
return deleted;
|
||
}
|
||
clear(matcher) {
|
||
const keys = Object.keys(this);
|
||
let i = keys.length;
|
||
let deleted = false;
|
||
while(i--){
|
||
const key = keys[i];
|
||
if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
|
||
delete this[key];
|
||
deleted = true;
|
||
}
|
||
}
|
||
return deleted;
|
||
}
|
||
normalize(format) {
|
||
const self = this;
|
||
const headers = {};
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(this, (value, header)=>{
|
||
const key = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].findKey(headers, header);
|
||
if (key) {
|
||
self[key] = normalizeValue(value);
|
||
delete self[header];
|
||
return;
|
||
}
|
||
const normalized = format ? formatHeader(header) : String(header).trim();
|
||
if (normalized !== header) {
|
||
delete self[header];
|
||
}
|
||
self[normalized] = normalizeValue(value);
|
||
headers[normalized] = true;
|
||
});
|
||
return this;
|
||
}
|
||
concat(...targets) {
|
||
return this.constructor.concat(this, ...targets);
|
||
}
|
||
toJSON(asStrings) {
|
||
const obj = Object.create(null);
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(this, (value, header)=>{
|
||
value != null && value !== false && (obj[header] = asStrings && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(value) ? value.join(', ') : value);
|
||
});
|
||
return obj;
|
||
}
|
||
[Symbol.iterator]() {
|
||
return Object.entries(this.toJSON())[Symbol.iterator]();
|
||
}
|
||
toString() {
|
||
return Object.entries(this.toJSON()).map(([header, value])=>header + ': ' + value).join('\n');
|
||
}
|
||
getSetCookie() {
|
||
return this.get('set-cookie') || [];
|
||
}
|
||
get [Symbol.toStringTag]() {
|
||
return 'AxiosHeaders';
|
||
}
|
||
static from(thing) {
|
||
return thing instanceof this ? thing : new this(thing);
|
||
}
|
||
static concat(first, ...targets) {
|
||
const computed = new this(first);
|
||
targets.forEach((target)=>computed.set(target));
|
||
return computed;
|
||
}
|
||
static accessor(header) {
|
||
const internals = this[$internals] = this[$internals] = {
|
||
accessors: {}
|
||
};
|
||
const accessors = internals.accessors;
|
||
const prototype = this.prototype;
|
||
function defineAccessor(_header) {
|
||
const lHeader = normalizeHeader(_header);
|
||
if (!accessors[lHeader]) {
|
||
buildAccessors(prototype, _header);
|
||
accessors[lHeader] = true;
|
||
}
|
||
}
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
|
||
return this;
|
||
}
|
||
}
|
||
AxiosHeaders.accessor([
|
||
'Content-Type',
|
||
'Content-Length',
|
||
'Accept',
|
||
'Accept-Encoding',
|
||
'User-Agent',
|
||
'Authorization'
|
||
]);
|
||
// reserved names hotfix
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].reduceDescriptors(AxiosHeaders.prototype, ({ value }, key)=>{
|
||
let mapped = key[0].toUpperCase() + key.slice(1); // map `set` => `Set`
|
||
return {
|
||
get: ()=>value,
|
||
set (headerValue) {
|
||
this[mapped] = headerValue;
|
||
}
|
||
};
|
||
});
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].freezeMethods(AxiosHeaders);
|
||
const __TURBOPACK__default__export__ = AxiosHeaders;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/transformData.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>transformData
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
;
|
||
function transformData(fns, response) {
|
||
const config = this || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
const context = response || config;
|
||
const headers = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(context.headers);
|
||
let data = context.data;
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(fns, function transform(fn) {
|
||
data = fn.call(config, data, headers.normalize(), response ? response.status : undefined);
|
||
});
|
||
headers.normalize();
|
||
return data;
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/isCancel.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>isCancel
|
||
]);
|
||
'use strict';
|
||
function isCancel(value) {
|
||
return !!(value && value.__CANCEL__);
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CanceledError.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
class CanceledError extends __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"] {
|
||
/**
|
||
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
||
*
|
||
* @param {string=} message The message.
|
||
* @param {Object=} config The config.
|
||
* @param {Object=} request The request.
|
||
*
|
||
* @returns {CanceledError} The created error.
|
||
*/ constructor(message, config, request){
|
||
super(message == null ? 'canceled' : message, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_CANCELED, config, request);
|
||
this.name = 'CanceledError';
|
||
this.__CANCEL__ = true;
|
||
}
|
||
}
|
||
const __TURBOPACK__default__export__ = CanceledError;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/settle.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>settle
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
function settle(resolve, reject, response) {
|
||
const validateStatus = response.config.validateStatus;
|
||
if (!response.status || !validateStatus || validateStatus(response.status)) {
|
||
resolve(response);
|
||
} else {
|
||
reject(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Request failed with status code ' + response.status, [
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_REQUEST,
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_RESPONSE
|
||
][Math.floor(response.status / 100) - 4], response.config, response.request, response));
|
||
}
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/isAbsoluteURL.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>isAbsoluteURL
|
||
]);
|
||
'use strict';
|
||
function isAbsoluteURL(url) {
|
||
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
||
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
||
// by any combination of letters, digits, plus, period, or hyphen.
|
||
if (typeof url !== 'string') {
|
||
return false;
|
||
}
|
||
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/combineURLs.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>combineURLs
|
||
]);
|
||
'use strict';
|
||
function combineURLs(baseURL, relativeURL) {
|
||
return relativeURL ? baseURL.replace(/\/?\/$/, '') + '/' + relativeURL.replace(/^\/+/, '') : baseURL;
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/buildFullPath.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>buildFullPath
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$isAbsoluteURL$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/isAbsoluteURL.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$combineURLs$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/combineURLs.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
||
let isRelativeUrl = !(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$isAbsoluteURL$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(requestedURL);
|
||
if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$combineURLs$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(baseURL, requestedURL);
|
||
}
|
||
return requestedURL;
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/proxy-from-env/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
var parseUrl = __turbopack_context__.r("[externals]/url [external] (url, cjs)").parse;
|
||
var DEFAULT_PORTS = {
|
||
ftp: 21,
|
||
gopher: 70,
|
||
http: 80,
|
||
https: 443,
|
||
ws: 80,
|
||
wss: 443
|
||
};
|
||
var stringEndsWith = String.prototype.endsWith || function(s) {
|
||
return s.length <= this.length && this.indexOf(s, this.length - s.length) !== -1;
|
||
};
|
||
/**
|
||
* @param {string|object} url - The URL, or the result from url.parse.
|
||
* @return {string} The URL of the proxy that should handle the request to the
|
||
* given URL. If no proxy is set, this will be an empty string.
|
||
*/ function getProxyForUrl(url) {
|
||
var parsedUrl = typeof url === 'string' ? parseUrl(url) : url || {};
|
||
var proto = parsedUrl.protocol;
|
||
var hostname = parsedUrl.host;
|
||
var port = parsedUrl.port;
|
||
if (typeof hostname !== 'string' || !hostname || typeof proto !== 'string') {
|
||
return ''; // Don't proxy URLs without a valid scheme or host.
|
||
}
|
||
proto = proto.split(':', 1)[0];
|
||
// Stripping ports in this way instead of using parsedUrl.hostname to make
|
||
// sure that the brackets around IPv6 addresses are kept.
|
||
hostname = hostname.replace(/:\d*$/, '');
|
||
port = parseInt(port) || DEFAULT_PORTS[proto] || 0;
|
||
if (!shouldProxy(hostname, port)) {
|
||
return ''; // Don't proxy URLs that match NO_PROXY.
|
||
}
|
||
var proxy = getEnv('npm_config_' + proto + '_proxy') || getEnv(proto + '_proxy') || getEnv('npm_config_proxy') || getEnv('all_proxy');
|
||
if (proxy && proxy.indexOf('://') === -1) {
|
||
// Missing scheme in proxy, default to the requested URL's scheme.
|
||
proxy = proto + '://' + proxy;
|
||
}
|
||
return proxy;
|
||
}
|
||
/**
|
||
* Determines whether a given URL should be proxied.
|
||
*
|
||
* @param {string} hostname - The host name of the URL.
|
||
* @param {number} port - The effective port of the URL.
|
||
* @returns {boolean} Whether the given URL should be proxied.
|
||
* @private
|
||
*/ function shouldProxy(hostname, port) {
|
||
var NO_PROXY = (getEnv('npm_config_no_proxy') || getEnv('no_proxy')).toLowerCase();
|
||
if (!NO_PROXY) {
|
||
return true; // Always proxy if NO_PROXY is not set.
|
||
}
|
||
if (NO_PROXY === '*') {
|
||
return false; // Never proxy if wildcard is set.
|
||
}
|
||
return NO_PROXY.split(/[,\s]/).every(function(proxy) {
|
||
if (!proxy) {
|
||
return true; // Skip zero-length hosts.
|
||
}
|
||
var parsedProxy = proxy.match(/^(.+):(\d+)$/);
|
||
var parsedProxyHostname = parsedProxy ? parsedProxy[1] : proxy;
|
||
var parsedProxyPort = parsedProxy ? parseInt(parsedProxy[2]) : 0;
|
||
if (parsedProxyPort && parsedProxyPort !== port) {
|
||
return true; // Skip if ports don't match.
|
||
}
|
||
if (!/^[.*]/.test(parsedProxyHostname)) {
|
||
// No wildcards, so stop proxying if there is an exact match.
|
||
return hostname !== parsedProxyHostname;
|
||
}
|
||
if (parsedProxyHostname.charAt(0) === '*') {
|
||
// Remove leading wildcard.
|
||
parsedProxyHostname = parsedProxyHostname.slice(1);
|
||
}
|
||
// Stop proxying if the hostname ends with the no_proxy host.
|
||
return !stringEndsWith.call(hostname, parsedProxyHostname);
|
||
});
|
||
}
|
||
/**
|
||
* Get the value for an environment variable.
|
||
*
|
||
* @param {string} key - The name of the environment variable.
|
||
* @return {string} The value of the environment variable.
|
||
* @private
|
||
*/ function getEnv(key) {
|
||
return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || '';
|
||
}
|
||
exports.getProxyForUrl = getProxyForUrl;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/ms/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
/**
|
||
* Helpers.
|
||
*/ var s = 1000;
|
||
var m = s * 60;
|
||
var h = m * 60;
|
||
var d = h * 24;
|
||
var w = d * 7;
|
||
var y = d * 365.25;
|
||
/**
|
||
* Parse or format the given `val`.
|
||
*
|
||
* Options:
|
||
*
|
||
* - `long` verbose formatting [false]
|
||
*
|
||
* @param {String|Number} val
|
||
* @param {Object} [options]
|
||
* @throws {Error} throw an error if val is not a non-empty string or a number
|
||
* @return {String|Number}
|
||
* @api public
|
||
*/ module.exports = function(val, options) {
|
||
options = options || {};
|
||
var type = typeof val;
|
||
if (type === 'string' && val.length > 0) {
|
||
return parse(val);
|
||
} else if (type === 'number' && isFinite(val)) {
|
||
return options.long ? fmtLong(val) : fmtShort(val);
|
||
}
|
||
throw new Error('val is not a non-empty string or a valid number. val=' + JSON.stringify(val));
|
||
};
|
||
/**
|
||
* Parse the given `str` and return milliseconds.
|
||
*
|
||
* @param {String} str
|
||
* @return {Number}
|
||
* @api private
|
||
*/ function parse(str) {
|
||
str = String(str);
|
||
if (str.length > 100) {
|
||
return;
|
||
}
|
||
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
|
||
if (!match) {
|
||
return;
|
||
}
|
||
var n = parseFloat(match[1]);
|
||
var type = (match[2] || 'ms').toLowerCase();
|
||
switch(type){
|
||
case 'years':
|
||
case 'year':
|
||
case 'yrs':
|
||
case 'yr':
|
||
case 'y':
|
||
return n * y;
|
||
case 'weeks':
|
||
case 'week':
|
||
case 'w':
|
||
return n * w;
|
||
case 'days':
|
||
case 'day':
|
||
case 'd':
|
||
return n * d;
|
||
case 'hours':
|
||
case 'hour':
|
||
case 'hrs':
|
||
case 'hr':
|
||
case 'h':
|
||
return n * h;
|
||
case 'minutes':
|
||
case 'minute':
|
||
case 'mins':
|
||
case 'min':
|
||
case 'm':
|
||
return n * m;
|
||
case 'seconds':
|
||
case 'second':
|
||
case 'secs':
|
||
case 'sec':
|
||
case 's':
|
||
return n * s;
|
||
case 'milliseconds':
|
||
case 'millisecond':
|
||
case 'msecs':
|
||
case 'msec':
|
||
case 'ms':
|
||
return n;
|
||
default:
|
||
return undefined;
|
||
}
|
||
}
|
||
/**
|
||
* Short format for `ms`.
|
||
*
|
||
* @param {Number} ms
|
||
* @return {String}
|
||
* @api private
|
||
*/ function fmtShort(ms) {
|
||
var msAbs = Math.abs(ms);
|
||
if (msAbs >= d) {
|
||
return Math.round(ms / d) + 'd';
|
||
}
|
||
if (msAbs >= h) {
|
||
return Math.round(ms / h) + 'h';
|
||
}
|
||
if (msAbs >= m) {
|
||
return Math.round(ms / m) + 'm';
|
||
}
|
||
if (msAbs >= s) {
|
||
return Math.round(ms / s) + 's';
|
||
}
|
||
return ms + 'ms';
|
||
}
|
||
/**
|
||
* Long format for `ms`.
|
||
*
|
||
* @param {Number} ms
|
||
* @return {String}
|
||
* @api private
|
||
*/ function fmtLong(ms) {
|
||
var msAbs = Math.abs(ms);
|
||
if (msAbs >= d) {
|
||
return plural(ms, msAbs, d, 'day');
|
||
}
|
||
if (msAbs >= h) {
|
||
return plural(ms, msAbs, h, 'hour');
|
||
}
|
||
if (msAbs >= m) {
|
||
return plural(ms, msAbs, m, 'minute');
|
||
}
|
||
if (msAbs >= s) {
|
||
return plural(ms, msAbs, s, 'second');
|
||
}
|
||
return ms + ' ms';
|
||
}
|
||
/**
|
||
* Pluralization helper.
|
||
*/ function plural(ms, msAbs, n, name) {
|
||
var isPlural = msAbs >= n * 1.5;
|
||
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/debug/src/common.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
/**
|
||
* This is the common logic for both the Node.js and web browser
|
||
* implementations of `debug()`.
|
||
*/ function setup(env) {
|
||
createDebug.debug = createDebug;
|
||
createDebug.default = createDebug;
|
||
createDebug.coerce = coerce;
|
||
createDebug.disable = disable;
|
||
createDebug.enable = enable;
|
||
createDebug.enabled = enabled;
|
||
createDebug.humanize = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/ms/index.js [app-ssr] (ecmascript)");
|
||
createDebug.destroy = destroy;
|
||
Object.keys(env).forEach((key)=>{
|
||
createDebug[key] = env[key];
|
||
});
|
||
/**
|
||
* The currently active debug mode names, and names to skip.
|
||
*/ createDebug.names = [];
|
||
createDebug.skips = [];
|
||
/**
|
||
* Map of special "%n" handling functions, for the debug "format" argument.
|
||
*
|
||
* Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
|
||
*/ createDebug.formatters = {};
|
||
/**
|
||
* Selects a color for a debug namespace
|
||
* @param {String} namespace The namespace string for the debug instance to be colored
|
||
* @return {Number|String} An ANSI color code for the given namespace
|
||
* @api private
|
||
*/ function selectColor(namespace) {
|
||
let hash = 0;
|
||
for(let i = 0; i < namespace.length; i++){
|
||
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
||
hash |= 0; // Convert to 32bit integer
|
||
}
|
||
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
||
}
|
||
createDebug.selectColor = selectColor;
|
||
/**
|
||
* Create a debugger with the given `namespace`.
|
||
*
|
||
* @param {String} namespace
|
||
* @return {Function}
|
||
* @api public
|
||
*/ function createDebug(namespace) {
|
||
let prevTime;
|
||
let enableOverride = null;
|
||
let namespacesCache;
|
||
let enabledCache;
|
||
function debug(...args) {
|
||
// Disabled?
|
||
if (!debug.enabled) {
|
||
return;
|
||
}
|
||
const self = debug;
|
||
// Set `diff` timestamp
|
||
const curr = Number(new Date());
|
||
const ms = curr - (prevTime || curr);
|
||
self.diff = ms;
|
||
self.prev = prevTime;
|
||
self.curr = curr;
|
||
prevTime = curr;
|
||
args[0] = createDebug.coerce(args[0]);
|
||
if (typeof args[0] !== 'string') {
|
||
// Anything else let's inspect with %O
|
||
args.unshift('%O');
|
||
}
|
||
// Apply any `formatters` transformations
|
||
let index = 0;
|
||
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format)=>{
|
||
// If we encounter an escaped % then don't increase the array index
|
||
if (match === '%%') {
|
||
return '%';
|
||
}
|
||
index++;
|
||
const formatter = createDebug.formatters[format];
|
||
if (typeof formatter === 'function') {
|
||
const val = args[index];
|
||
match = formatter.call(self, val);
|
||
// Now we need to remove `args[index]` since it's inlined in the `format`
|
||
args.splice(index, 1);
|
||
index--;
|
||
}
|
||
return match;
|
||
});
|
||
// Apply env-specific formatting (colors, etc.)
|
||
createDebug.formatArgs.call(self, args);
|
||
const logFn = self.log || createDebug.log;
|
||
logFn.apply(self, args);
|
||
}
|
||
debug.namespace = namespace;
|
||
debug.useColors = createDebug.useColors();
|
||
debug.color = createDebug.selectColor(namespace);
|
||
debug.extend = extend;
|
||
debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
|
||
Object.defineProperty(debug, 'enabled', {
|
||
enumerable: true,
|
||
configurable: false,
|
||
get: ()=>{
|
||
if (enableOverride !== null) {
|
||
return enableOverride;
|
||
}
|
||
if (namespacesCache !== createDebug.namespaces) {
|
||
namespacesCache = createDebug.namespaces;
|
||
enabledCache = createDebug.enabled(namespace);
|
||
}
|
||
return enabledCache;
|
||
},
|
||
set: (v)=>{
|
||
enableOverride = v;
|
||
}
|
||
});
|
||
// Env-specific initialization logic for debug instances
|
||
if (typeof createDebug.init === 'function') {
|
||
createDebug.init(debug);
|
||
}
|
||
return debug;
|
||
}
|
||
function extend(namespace, delimiter) {
|
||
const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
|
||
newDebug.log = this.log;
|
||
return newDebug;
|
||
}
|
||
/**
|
||
* Enables a debug mode by namespaces. This can include modes
|
||
* separated by a colon and wildcards.
|
||
*
|
||
* @param {String} namespaces
|
||
* @api public
|
||
*/ function enable(namespaces) {
|
||
createDebug.save(namespaces);
|
||
createDebug.namespaces = namespaces;
|
||
createDebug.names = [];
|
||
createDebug.skips = [];
|
||
const split = (typeof namespaces === 'string' ? namespaces : '').trim().replace(/\s+/g, ',').split(',').filter(Boolean);
|
||
for (const ns of split){
|
||
if (ns[0] === '-') {
|
||
createDebug.skips.push(ns.slice(1));
|
||
} else {
|
||
createDebug.names.push(ns);
|
||
}
|
||
}
|
||
}
|
||
/**
|
||
* Checks if the given string matches a namespace template, honoring
|
||
* asterisks as wildcards.
|
||
*
|
||
* @param {String} search
|
||
* @param {String} template
|
||
* @return {Boolean}
|
||
*/ function matchesTemplate(search, template) {
|
||
let searchIndex = 0;
|
||
let templateIndex = 0;
|
||
let starIndex = -1;
|
||
let matchIndex = 0;
|
||
while(searchIndex < search.length){
|
||
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
||
// Match character or proceed with wildcard
|
||
if (template[templateIndex] === '*') {
|
||
starIndex = templateIndex;
|
||
matchIndex = searchIndex;
|
||
templateIndex++; // Skip the '*'
|
||
} else {
|
||
searchIndex++;
|
||
templateIndex++;
|
||
}
|
||
} else if (starIndex !== -1) {
|
||
// Backtrack to the last '*' and try to match more characters
|
||
templateIndex = starIndex + 1;
|
||
matchIndex++;
|
||
searchIndex = matchIndex;
|
||
} else {
|
||
return false; // No match
|
||
}
|
||
}
|
||
// Handle trailing '*' in template
|
||
while(templateIndex < template.length && template[templateIndex] === '*'){
|
||
templateIndex++;
|
||
}
|
||
return templateIndex === template.length;
|
||
}
|
||
/**
|
||
* Disable debug output.
|
||
*
|
||
* @return {String} namespaces
|
||
* @api public
|
||
*/ function disable() {
|
||
const namespaces = [
|
||
...createDebug.names,
|
||
...createDebug.skips.map((namespace)=>'-' + namespace)
|
||
].join(',');
|
||
createDebug.enable('');
|
||
return namespaces;
|
||
}
|
||
/**
|
||
* Returns true if the given mode name is enabled, false otherwise.
|
||
*
|
||
* @param {String} name
|
||
* @return {Boolean}
|
||
* @api public
|
||
*/ function enabled(name) {
|
||
for (const skip of createDebug.skips){
|
||
if (matchesTemplate(name, skip)) {
|
||
return false;
|
||
}
|
||
}
|
||
for (const ns of createDebug.names){
|
||
if (matchesTemplate(name, ns)) {
|
||
return true;
|
||
}
|
||
}
|
||
return false;
|
||
}
|
||
/**
|
||
* Coerce `val`.
|
||
*
|
||
* @param {Mixed} val
|
||
* @return {Mixed}
|
||
* @api private
|
||
*/ function coerce(val) {
|
||
if (val instanceof Error) {
|
||
return val.stack || val.message;
|
||
}
|
||
return val;
|
||
}
|
||
/**
|
||
* XXX DO NOT USE. This is a temporary stub function.
|
||
* XXX It WILL be removed in the next major release.
|
||
*/ function destroy() {
|
||
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
||
}
|
||
createDebug.enable(createDebug.load());
|
||
return createDebug;
|
||
}
|
||
module.exports = setup;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/has-flag/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
module.exports = (flag, argv = process.argv)=>{
|
||
const prefix = flag.startsWith('-') ? '' : flag.length === 1 ? '-' : '--';
|
||
const position = argv.indexOf(prefix + flag);
|
||
const terminatorPosition = argv.indexOf('--');
|
||
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/supports-color/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
const os = __turbopack_context__.r("[externals]/os [external] (os, cjs)");
|
||
const tty = __turbopack_context__.r("[externals]/tty [external] (tty, cjs)");
|
||
const hasFlag = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/has-flag/index.js [app-ssr] (ecmascript)");
|
||
const { env } = process;
|
||
let forceColor;
|
||
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false') || hasFlag('color=never')) {
|
||
forceColor = 0;
|
||
} else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true') || hasFlag('color=always')) {
|
||
forceColor = 1;
|
||
}
|
||
if ('FORCE_COLOR' in env) {
|
||
if (env.FORCE_COLOR === 'true') {
|
||
forceColor = 1;
|
||
} else if (env.FORCE_COLOR === 'false') {
|
||
forceColor = 0;
|
||
} else {
|
||
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
||
}
|
||
}
|
||
function translateLevel(level) {
|
||
if (level === 0) {
|
||
return false;
|
||
}
|
||
return {
|
||
level,
|
||
hasBasic: true,
|
||
has256: level >= 2,
|
||
has16m: level >= 3
|
||
};
|
||
}
|
||
function supportsColor(haveStream, streamIsTTY) {
|
||
if (forceColor === 0) {
|
||
return 0;
|
||
}
|
||
if (hasFlag('color=16m') || hasFlag('color=full') || hasFlag('color=truecolor')) {
|
||
return 3;
|
||
}
|
||
if (hasFlag('color=256')) {
|
||
return 2;
|
||
}
|
||
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
||
return 0;
|
||
}
|
||
const min = forceColor || 0;
|
||
if (env.TERM === 'dumb') {
|
||
return min;
|
||
}
|
||
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
||
;
|
||
if ('CI' in env) {
|
||
if ([
|
||
'TRAVIS',
|
||
'CIRCLECI',
|
||
'APPVEYOR',
|
||
'GITLAB_CI',
|
||
'GITHUB_ACTIONS',
|
||
'BUILDKITE'
|
||
].some((sign)=>sign in env) || env.CI_NAME === 'codeship') {
|
||
return 1;
|
||
}
|
||
return min;
|
||
}
|
||
if ('TEAMCITY_VERSION' in env) {
|
||
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
||
}
|
||
if (env.COLORTERM === 'truecolor') {
|
||
return 3;
|
||
}
|
||
if ('TERM_PROGRAM' in env) {
|
||
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
||
switch(env.TERM_PROGRAM){
|
||
case 'iTerm.app':
|
||
return version >= 3 ? 3 : 2;
|
||
case 'Apple_Terminal':
|
||
return 2;
|
||
}
|
||
}
|
||
if (/-256(color)?$/i.test(env.TERM)) {
|
||
return 2;
|
||
}
|
||
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
||
return 1;
|
||
}
|
||
if ('COLORTERM' in env) {
|
||
return 1;
|
||
}
|
||
return min;
|
||
}
|
||
function getSupportLevel(stream) {
|
||
const level = supportsColor(stream, stream && stream.isTTY);
|
||
return translateLevel(level);
|
||
}
|
||
module.exports = {
|
||
supportsColor: getSupportLevel,
|
||
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
||
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/debug/src/node.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
/**
|
||
* Module dependencies.
|
||
*/ const tty = __turbopack_context__.r("[externals]/tty [external] (tty, cjs)");
|
||
const util = __turbopack_context__.r("[externals]/util [external] (util, cjs)");
|
||
/**
|
||
* This is the Node.js implementation of `debug()`.
|
||
*/ exports.init = init;
|
||
exports.log = log;
|
||
exports.formatArgs = formatArgs;
|
||
exports.save = save;
|
||
exports.load = load;
|
||
exports.useColors = useColors;
|
||
exports.destroy = util.deprecate(()=>{}, 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
||
/**
|
||
* Colors.
|
||
*/ exports.colors = [
|
||
6,
|
||
2,
|
||
3,
|
||
4,
|
||
5,
|
||
1
|
||
];
|
||
try {
|
||
// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)
|
||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||
const supportsColor = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/supports-color/index.js [app-ssr] (ecmascript)");
|
||
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
||
exports.colors = [
|
||
20,
|
||
21,
|
||
26,
|
||
27,
|
||
32,
|
||
33,
|
||
38,
|
||
39,
|
||
40,
|
||
41,
|
||
42,
|
||
43,
|
||
44,
|
||
45,
|
||
56,
|
||
57,
|
||
62,
|
||
63,
|
||
68,
|
||
69,
|
||
74,
|
||
75,
|
||
76,
|
||
77,
|
||
78,
|
||
79,
|
||
80,
|
||
81,
|
||
92,
|
||
93,
|
||
98,
|
||
99,
|
||
112,
|
||
113,
|
||
128,
|
||
129,
|
||
134,
|
||
135,
|
||
148,
|
||
149,
|
||
160,
|
||
161,
|
||
162,
|
||
163,
|
||
164,
|
||
165,
|
||
166,
|
||
167,
|
||
168,
|
||
169,
|
||
170,
|
||
171,
|
||
172,
|
||
173,
|
||
178,
|
||
179,
|
||
184,
|
||
185,
|
||
196,
|
||
197,
|
||
198,
|
||
199,
|
||
200,
|
||
201,
|
||
202,
|
||
203,
|
||
204,
|
||
205,
|
||
206,
|
||
207,
|
||
208,
|
||
209,
|
||
214,
|
||
215,
|
||
220,
|
||
221
|
||
];
|
||
}
|
||
} catch (error) {
|
||
// Swallow - we only care if `supports-color` is available; it doesn't have to be.
|
||
}
|
||
/**
|
||
* Build up the default `inspectOpts` object from the environment variables.
|
||
*
|
||
* $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js
|
||
*/ exports.inspectOpts = Object.keys(process.env).filter((key)=>{
|
||
return /^debug_/i.test(key);
|
||
}).reduce((obj, key)=>{
|
||
// Camel-case
|
||
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k)=>{
|
||
return k.toUpperCase();
|
||
});
|
||
// Coerce string value into JS value
|
||
let val = process.env[key];
|
||
if (/^(yes|on|true|enabled)$/i.test(val)) {
|
||
val = true;
|
||
} else if (/^(no|off|false|disabled)$/i.test(val)) {
|
||
val = false;
|
||
} else if (val === 'null') {
|
||
val = null;
|
||
} else {
|
||
val = Number(val);
|
||
}
|
||
obj[prop] = val;
|
||
return obj;
|
||
}, {});
|
||
/**
|
||
* Is stdout a TTY? Colored output is enabled when `true`.
|
||
*/ function useColors() {
|
||
return 'colors' in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
||
}
|
||
/**
|
||
* Adds ANSI color escape codes if enabled.
|
||
*
|
||
* @api public
|
||
*/ function formatArgs(args) {
|
||
const { namespace: name, useColors } = this;
|
||
if (useColors) {
|
||
const c = this.color;
|
||
const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
|
||
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
|
||
args[0] = prefix + args[0].split('\n').join('\n' + prefix);
|
||
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
|
||
} else {
|
||
args[0] = getDate() + name + ' ' + args[0];
|
||
}
|
||
}
|
||
function getDate() {
|
||
if (exports.inspectOpts.hideDate) {
|
||
return '';
|
||
}
|
||
return new Date().toISOString() + ' ';
|
||
}
|
||
/**
|
||
* Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
|
||
*/ function log(...args) {
|
||
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
|
||
}
|
||
/**
|
||
* Save `namespaces`.
|
||
*
|
||
* @param {String} namespaces
|
||
* @api private
|
||
*/ function save(namespaces) {
|
||
if (namespaces) {
|
||
process.env.DEBUG = namespaces;
|
||
} else {
|
||
// If you set a process.env field to null or undefined, it gets cast to the
|
||
// string 'null' or 'undefined'. Just delete instead.
|
||
delete process.env.DEBUG;
|
||
}
|
||
}
|
||
/**
|
||
* Load `namespaces`.
|
||
*
|
||
* @return {String} returns the previously persisted debug modes
|
||
* @api private
|
||
*/ function load() {
|
||
return process.env.DEBUG;
|
||
}
|
||
/**
|
||
* Init logic for `debug` instances.
|
||
*
|
||
* Create a new `inspectOpts` object in case `useColors` is set
|
||
* differently for a particular `debug` instance.
|
||
*/ function init(debug) {
|
||
debug.inspectOpts = {};
|
||
const keys = Object.keys(exports.inspectOpts);
|
||
for(let i = 0; i < keys.length; i++){
|
||
debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];
|
||
}
|
||
}
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/debug/src/common.js [app-ssr] (ecmascript)")(exports);
|
||
const { formatters } = module.exports;
|
||
/**
|
||
* Map %o to `util.inspect()`, all on a single line.
|
||
*/ formatters.o = function(v) {
|
||
this.inspectOpts.colors = this.useColors;
|
||
return util.inspect(v, this.inspectOpts).split('\n').map((str)=>str.trim()).join(' ');
|
||
};
|
||
/**
|
||
* Map %O to `util.inspect()`, allowing multiple lines if needed.
|
||
*/ formatters.O = function(v) {
|
||
this.inspectOpts.colors = this.useColors;
|
||
return util.inspect(v, this.inspectOpts);
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/debug/src/browser.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
/* eslint-env browser */ /**
|
||
* This is the web browser implementation of `debug()`.
|
||
*/ exports.formatArgs = formatArgs;
|
||
exports.save = save;
|
||
exports.load = load;
|
||
exports.useColors = useColors;
|
||
exports.storage = localstorage();
|
||
exports.destroy = (()=>{
|
||
let warned = false;
|
||
return ()=>{
|
||
if (!warned) {
|
||
warned = true;
|
||
console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
|
||
}
|
||
};
|
||
})();
|
||
/**
|
||
* Colors.
|
||
*/ exports.colors = [
|
||
'#0000CC',
|
||
'#0000FF',
|
||
'#0033CC',
|
||
'#0033FF',
|
||
'#0066CC',
|
||
'#0066FF',
|
||
'#0099CC',
|
||
'#0099FF',
|
||
'#00CC00',
|
||
'#00CC33',
|
||
'#00CC66',
|
||
'#00CC99',
|
||
'#00CCCC',
|
||
'#00CCFF',
|
||
'#3300CC',
|
||
'#3300FF',
|
||
'#3333CC',
|
||
'#3333FF',
|
||
'#3366CC',
|
||
'#3366FF',
|
||
'#3399CC',
|
||
'#3399FF',
|
||
'#33CC00',
|
||
'#33CC33',
|
||
'#33CC66',
|
||
'#33CC99',
|
||
'#33CCCC',
|
||
'#33CCFF',
|
||
'#6600CC',
|
||
'#6600FF',
|
||
'#6633CC',
|
||
'#6633FF',
|
||
'#66CC00',
|
||
'#66CC33',
|
||
'#9900CC',
|
||
'#9900FF',
|
||
'#9933CC',
|
||
'#9933FF',
|
||
'#99CC00',
|
||
'#99CC33',
|
||
'#CC0000',
|
||
'#CC0033',
|
||
'#CC0066',
|
||
'#CC0099',
|
||
'#CC00CC',
|
||
'#CC00FF',
|
||
'#CC3300',
|
||
'#CC3333',
|
||
'#CC3366',
|
||
'#CC3399',
|
||
'#CC33CC',
|
||
'#CC33FF',
|
||
'#CC6600',
|
||
'#CC6633',
|
||
'#CC9900',
|
||
'#CC9933',
|
||
'#CCCC00',
|
||
'#CCCC33',
|
||
'#FF0000',
|
||
'#FF0033',
|
||
'#FF0066',
|
||
'#FF0099',
|
||
'#FF00CC',
|
||
'#FF00FF',
|
||
'#FF3300',
|
||
'#FF3333',
|
||
'#FF3366',
|
||
'#FF3399',
|
||
'#FF33CC',
|
||
'#FF33FF',
|
||
'#FF6600',
|
||
'#FF6633',
|
||
'#FF9900',
|
||
'#FF9933',
|
||
'#FFCC00',
|
||
'#FFCC33'
|
||
];
|
||
/**
|
||
* Currently only WebKit-based Web Inspectors, Firefox >= v31,
|
||
* and the Firebug extension (any Firefox version) are known
|
||
* to support "%c" CSS customizations.
|
||
*
|
||
* TODO: add a `localStorage` variable to explicitly enable/disable colors
|
||
*/ // eslint-disable-next-line complexity
|
||
function useColors() {
|
||
// NB: In an Electron preload script, document will be defined but not fully
|
||
// initialized. Since we know we're in Chrome, we'll just detect this case
|
||
// explicitly
|
||
if ("TURBOPACK compile-time falsy", 0) //TURBOPACK unreachable
|
||
;
|
||
// Internet Explorer and Edge do not support colors.
|
||
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
||
return false;
|
||
}
|
||
let m;
|
||
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
||
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
||
// eslint-disable-next-line no-return-assign
|
||
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || ("TURBOPACK compile-time value", "undefined") !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
||
}
|
||
/**
|
||
* Colorize log arguments if enabled.
|
||
*
|
||
* @api public
|
||
*/ function formatArgs(args) {
|
||
args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);
|
||
if (!this.useColors) {
|
||
return;
|
||
}
|
||
const c = 'color: ' + this.color;
|
||
args.splice(1, 0, c, 'color: inherit');
|
||
// The final "%c" is somewhat tricky, because there could be other
|
||
// arguments passed either before or after the %c, so we need to
|
||
// figure out the correct index to insert the CSS into
|
||
let index = 0;
|
||
let lastC = 0;
|
||
args[0].replace(/%[a-zA-Z%]/g, (match)=>{
|
||
if (match === '%%') {
|
||
return;
|
||
}
|
||
index++;
|
||
if (match === '%c') {
|
||
// We only are interested in the *last* %c
|
||
// (the user may have provided their own)
|
||
lastC = index;
|
||
}
|
||
});
|
||
args.splice(lastC, 0, c);
|
||
}
|
||
/**
|
||
* Invokes `console.debug()` when available.
|
||
* No-op when `console.debug` is not a "function".
|
||
* If `console.debug` is not available, falls back
|
||
* to `console.log`.
|
||
*
|
||
* @api public
|
||
*/ exports.log = console.debug || console.log || (()=>{});
|
||
/**
|
||
* Save `namespaces`.
|
||
*
|
||
* @param {String} namespaces
|
||
* @api private
|
||
*/ function save(namespaces) {
|
||
try {
|
||
if (namespaces) {
|
||
exports.storage.setItem('debug', namespaces);
|
||
} else {
|
||
exports.storage.removeItem('debug');
|
||
}
|
||
} catch (error) {
|
||
// Swallow
|
||
// XXX (@Qix-) should we be logging these?
|
||
}
|
||
}
|
||
/**
|
||
* Load `namespaces`.
|
||
*
|
||
* @return {String} returns the previously persisted debug modes
|
||
* @api private
|
||
*/ function load() {
|
||
let r;
|
||
try {
|
||
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG');
|
||
} catch (error) {
|
||
// Swallow
|
||
// XXX (@Qix-) should we be logging these?
|
||
}
|
||
// If debug isn't set in LS, and we're in Electron, try to load $DEBUG
|
||
if (!r && typeof process !== 'undefined' && 'env' in process) {
|
||
r = process.env.DEBUG;
|
||
}
|
||
return r;
|
||
}
|
||
/**
|
||
* Localstorage attempts to return the localstorage.
|
||
*
|
||
* This is necessary because safari throws
|
||
* when a user disables cookies/localstorage
|
||
* and you attempt to access it.
|
||
*
|
||
* @return {LocalStorage}
|
||
* @api private
|
||
*/ function localstorage() {
|
||
try {
|
||
// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
|
||
// The Browser also has localStorage in the global context.
|
||
return localStorage;
|
||
} catch (error) {
|
||
// Swallow
|
||
// XXX (@Qix-) should we be logging these?
|
||
}
|
||
}
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/debug/src/common.js [app-ssr] (ecmascript)")(exports);
|
||
const { formatters } = module.exports;
|
||
/**
|
||
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
||
*/ formatters.j = function(v) {
|
||
try {
|
||
return JSON.stringify(v);
|
||
} catch (error) {
|
||
return '[UnexpectedJSONParseError]: ' + error.message;
|
||
}
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/debug/src/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
/**
|
||
* Detect Electron renderer / nwjs process, which is node, but we should
|
||
* treat as a browser.
|
||
*/ if (typeof process === 'undefined' || process.type === 'renderer' || ("TURBOPACK compile-time value", false) === true || process.__nwjs) {
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/debug/src/browser.js [app-ssr] (ecmascript)");
|
||
} else {
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/debug/src/node.js [app-ssr] (ecmascript)");
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/follow-redirects/debug.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var debug;
|
||
module.exports = function() {
|
||
if (!debug) {
|
||
try {
|
||
/* eslint global-require: off */ debug = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/debug/src/index.js [app-ssr] (ecmascript)")("follow-redirects");
|
||
} catch (error) {}
|
||
if (typeof debug !== "function") {
|
||
debug = function() {};
|
||
}
|
||
}
|
||
debug.apply(null, arguments);
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/follow-redirects/index.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
|
||
var url = __turbopack_context__.r("[externals]/url [external] (url, cjs)");
|
||
var URL = url.URL;
|
||
var http = __turbopack_context__.r("[externals]/http [external] (http, cjs)");
|
||
var https = __turbopack_context__.r("[externals]/https [external] (https, cjs)");
|
||
var Writable = __turbopack_context__.r("[externals]/stream [external] (stream, cjs)").Writable;
|
||
var assert = __turbopack_context__.r("[externals]/assert [external] (assert, cjs)");
|
||
var debug = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/follow-redirects/debug.js [app-ssr] (ecmascript)");
|
||
// Preventive platform detection
|
||
// istanbul ignore next
|
||
(function detectUnsupportedEnvironment() {
|
||
var looksLikeNode = typeof process !== "undefined";
|
||
var looksLikeBrowser = ("TURBOPACK compile-time value", "undefined") !== "undefined" && typeof document !== "undefined";
|
||
var looksLikeV8 = isFunction(Error.captureStackTrace);
|
||
if (!looksLikeNode && (looksLikeBrowser || !looksLikeV8)) {
|
||
console.warn("The follow-redirects package should be excluded from browser builds.");
|
||
}
|
||
})();
|
||
// Whether to use the native URL object or the legacy url module
|
||
var useNativeURL = false;
|
||
try {
|
||
assert(new URL(""));
|
||
} catch (error) {
|
||
useNativeURL = error.code === "ERR_INVALID_URL";
|
||
}
|
||
// URL fields to preserve in copy operations
|
||
var preservedUrlFields = [
|
||
"auth",
|
||
"host",
|
||
"hostname",
|
||
"href",
|
||
"path",
|
||
"pathname",
|
||
"port",
|
||
"protocol",
|
||
"query",
|
||
"search",
|
||
"hash"
|
||
];
|
||
// Create handlers that pass events from native requests
|
||
var events = [
|
||
"abort",
|
||
"aborted",
|
||
"connect",
|
||
"error",
|
||
"socket",
|
||
"timeout"
|
||
];
|
||
var eventHandlers = Object.create(null);
|
||
events.forEach(function(event) {
|
||
eventHandlers[event] = function(arg1, arg2, arg3) {
|
||
this._redirectable.emit(event, arg1, arg2, arg3);
|
||
};
|
||
});
|
||
// Error types with codes
|
||
var InvalidUrlError = createErrorType("ERR_INVALID_URL", "Invalid URL", TypeError);
|
||
var RedirectionError = createErrorType("ERR_FR_REDIRECTION_FAILURE", "Redirected request failed");
|
||
var TooManyRedirectsError = createErrorType("ERR_FR_TOO_MANY_REDIRECTS", "Maximum number of redirects exceeded", RedirectionError);
|
||
var MaxBodyLengthExceededError = createErrorType("ERR_FR_MAX_BODY_LENGTH_EXCEEDED", "Request body larger than maxBodyLength limit");
|
||
var WriteAfterEndError = createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end");
|
||
// istanbul ignore next
|
||
var destroy = Writable.prototype.destroy || noop;
|
||
// An HTTP(S) request that can be redirected
|
||
function RedirectableRequest(options, responseCallback) {
|
||
// Initialize the request
|
||
Writable.call(this);
|
||
this._sanitizeOptions(options);
|
||
this._options = options;
|
||
this._ended = false;
|
||
this._ending = false;
|
||
this._redirectCount = 0;
|
||
this._redirects = [];
|
||
this._requestBodyLength = 0;
|
||
this._requestBodyBuffers = [];
|
||
// Attach a callback if passed
|
||
if (responseCallback) {
|
||
this.on("response", responseCallback);
|
||
}
|
||
// React to responses of native requests
|
||
var self = this;
|
||
this._onNativeResponse = function(response) {
|
||
try {
|
||
self._processResponse(response);
|
||
} catch (cause) {
|
||
self.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({
|
||
cause: cause
|
||
}));
|
||
}
|
||
};
|
||
// Perform the first request
|
||
this._performRequest();
|
||
}
|
||
RedirectableRequest.prototype = Object.create(Writable.prototype);
|
||
RedirectableRequest.prototype.abort = function() {
|
||
destroyRequest(this._currentRequest);
|
||
this._currentRequest.abort();
|
||
this.emit("abort");
|
||
};
|
||
RedirectableRequest.prototype.destroy = function(error) {
|
||
destroyRequest(this._currentRequest, error);
|
||
destroy.call(this, error);
|
||
return this;
|
||
};
|
||
// Writes buffered data to the current native request
|
||
RedirectableRequest.prototype.write = function(data, encoding, callback) {
|
||
// Writing is not allowed if end has been called
|
||
if (this._ending) {
|
||
throw new WriteAfterEndError();
|
||
}
|
||
// Validate input and shift parameters if necessary
|
||
if (!isString(data) && !isBuffer(data)) {
|
||
throw new TypeError("data should be a string, Buffer or Uint8Array");
|
||
}
|
||
if (isFunction(encoding)) {
|
||
callback = encoding;
|
||
encoding = null;
|
||
}
|
||
// Ignore empty buffers, since writing them doesn't invoke the callback
|
||
// https://github.com/nodejs/node/issues/22066
|
||
if (data.length === 0) {
|
||
if (callback) {
|
||
callback();
|
||
}
|
||
return;
|
||
}
|
||
// Only write when we don't exceed the maximum body length
|
||
if (this._requestBodyLength + data.length <= this._options.maxBodyLength) {
|
||
this._requestBodyLength += data.length;
|
||
this._requestBodyBuffers.push({
|
||
data: data,
|
||
encoding: encoding
|
||
});
|
||
this._currentRequest.write(data, encoding, callback);
|
||
} else {
|
||
this.emit("error", new MaxBodyLengthExceededError());
|
||
this.abort();
|
||
}
|
||
};
|
||
// Ends the current native request
|
||
RedirectableRequest.prototype.end = function(data, encoding, callback) {
|
||
// Shift parameters if necessary
|
||
if (isFunction(data)) {
|
||
callback = data;
|
||
data = encoding = null;
|
||
} else if (isFunction(encoding)) {
|
||
callback = encoding;
|
||
encoding = null;
|
||
}
|
||
// Write data if needed and end
|
||
if (!data) {
|
||
this._ended = this._ending = true;
|
||
this._currentRequest.end(null, null, callback);
|
||
} else {
|
||
var self = this;
|
||
var currentRequest = this._currentRequest;
|
||
this.write(data, encoding, function() {
|
||
self._ended = true;
|
||
currentRequest.end(null, null, callback);
|
||
});
|
||
this._ending = true;
|
||
}
|
||
};
|
||
// Sets a header value on the current native request
|
||
RedirectableRequest.prototype.setHeader = function(name, value) {
|
||
this._options.headers[name] = value;
|
||
this._currentRequest.setHeader(name, value);
|
||
};
|
||
// Clears a header value on the current native request
|
||
RedirectableRequest.prototype.removeHeader = function(name) {
|
||
delete this._options.headers[name];
|
||
this._currentRequest.removeHeader(name);
|
||
};
|
||
// Global timeout for all underlying requests
|
||
RedirectableRequest.prototype.setTimeout = function(msecs, callback) {
|
||
var self = this;
|
||
// Destroys the socket on timeout
|
||
function destroyOnTimeout(socket) {
|
||
socket.setTimeout(msecs);
|
||
socket.removeListener("timeout", socket.destroy);
|
||
socket.addListener("timeout", socket.destroy);
|
||
}
|
||
// Sets up a timer to trigger a timeout event
|
||
function startTimer(socket) {
|
||
if (self._timeout) {
|
||
clearTimeout(self._timeout);
|
||
}
|
||
self._timeout = setTimeout(function() {
|
||
self.emit("timeout");
|
||
clearTimer();
|
||
}, msecs);
|
||
destroyOnTimeout(socket);
|
||
}
|
||
// Stops a timeout from triggering
|
||
function clearTimer() {
|
||
// Clear the timeout
|
||
if (self._timeout) {
|
||
clearTimeout(self._timeout);
|
||
self._timeout = null;
|
||
}
|
||
// Clean up all attached listeners
|
||
self.removeListener("abort", clearTimer);
|
||
self.removeListener("error", clearTimer);
|
||
self.removeListener("response", clearTimer);
|
||
self.removeListener("close", clearTimer);
|
||
if (callback) {
|
||
self.removeListener("timeout", callback);
|
||
}
|
||
if (!self.socket) {
|
||
self._currentRequest.removeListener("socket", startTimer);
|
||
}
|
||
}
|
||
// Attach callback if passed
|
||
if (callback) {
|
||
this.on("timeout", callback);
|
||
}
|
||
// Start the timer if or when the socket is opened
|
||
if (this.socket) {
|
||
startTimer(this.socket);
|
||
} else {
|
||
this._currentRequest.once("socket", startTimer);
|
||
}
|
||
// Clean up on events
|
||
this.on("socket", destroyOnTimeout);
|
||
this.on("abort", clearTimer);
|
||
this.on("error", clearTimer);
|
||
this.on("response", clearTimer);
|
||
this.on("close", clearTimer);
|
||
return this;
|
||
};
|
||
// Proxy all other public ClientRequest methods
|
||
[
|
||
"flushHeaders",
|
||
"getHeader",
|
||
"setNoDelay",
|
||
"setSocketKeepAlive"
|
||
].forEach(function(method) {
|
||
RedirectableRequest.prototype[method] = function(a, b) {
|
||
return this._currentRequest[method](a, b);
|
||
};
|
||
});
|
||
// Proxy all public ClientRequest properties
|
||
[
|
||
"aborted",
|
||
"connection",
|
||
"socket"
|
||
].forEach(function(property) {
|
||
Object.defineProperty(RedirectableRequest.prototype, property, {
|
||
get: function() {
|
||
return this._currentRequest[property];
|
||
}
|
||
});
|
||
});
|
||
RedirectableRequest.prototype._sanitizeOptions = function(options) {
|
||
// Ensure headers are always present
|
||
if (!options.headers) {
|
||
options.headers = {};
|
||
}
|
||
// Since http.request treats host as an alias of hostname,
|
||
// but the url module interprets host as hostname plus port,
|
||
// eliminate the host property to avoid confusion.
|
||
if (options.host) {
|
||
// Use hostname if set, because it has precedence
|
||
if (!options.hostname) {
|
||
options.hostname = options.host;
|
||
}
|
||
delete options.host;
|
||
}
|
||
// Complete the URL object when necessary
|
||
if (!options.pathname && options.path) {
|
||
var searchPos = options.path.indexOf("?");
|
||
if (searchPos < 0) {
|
||
options.pathname = options.path;
|
||
} else {
|
||
options.pathname = options.path.substring(0, searchPos);
|
||
options.search = options.path.substring(searchPos);
|
||
}
|
||
}
|
||
};
|
||
// Executes the next native request (initial or redirect)
|
||
RedirectableRequest.prototype._performRequest = function() {
|
||
// Load the native protocol
|
||
var protocol = this._options.protocol;
|
||
var nativeProtocol = this._options.nativeProtocols[protocol];
|
||
if (!nativeProtocol) {
|
||
throw new TypeError("Unsupported protocol " + protocol);
|
||
}
|
||
// If specified, use the agent corresponding to the protocol
|
||
// (HTTP and HTTPS use different types of agents)
|
||
if (this._options.agents) {
|
||
var scheme = protocol.slice(0, -1);
|
||
this._options.agent = this._options.agents[scheme];
|
||
}
|
||
// Create the native request and set up its event handlers
|
||
var request = this._currentRequest = nativeProtocol.request(this._options, this._onNativeResponse);
|
||
request._redirectable = this;
|
||
for (var event of events){
|
||
request.on(event, eventHandlers[event]);
|
||
}
|
||
// RFC7230§5.3.1: When making a request directly to an origin server, […]
|
||
// a client MUST send only the absolute path […] as the request-target.
|
||
this._currentUrl = /^\//.test(this._options.path) ? url.format(this._options) : // When making a request to a proxy, […]
|
||
// a client MUST send the target URI in absolute-form […].
|
||
this._options.path;
|
||
// End a redirected request
|
||
// (The first request must be ended explicitly with RedirectableRequest#end)
|
||
if (this._isRedirect) {
|
||
// Write the request entity and end
|
||
var i = 0;
|
||
var self = this;
|
||
var buffers = this._requestBodyBuffers;
|
||
(function writeNext(error) {
|
||
// Only write if this request has not been redirected yet
|
||
// istanbul ignore else
|
||
if (request === self._currentRequest) {
|
||
// Report any write errors
|
||
// istanbul ignore if
|
||
if (error) {
|
||
self.emit("error", error);
|
||
} else if (i < buffers.length) {
|
||
var buffer = buffers[i++];
|
||
// istanbul ignore else
|
||
if (!request.finished) {
|
||
request.write(buffer.data, buffer.encoding, writeNext);
|
||
}
|
||
} else if (self._ended) {
|
||
request.end();
|
||
}
|
||
}
|
||
})();
|
||
}
|
||
};
|
||
// Processes a response from the current native request
|
||
RedirectableRequest.prototype._processResponse = function(response) {
|
||
// Store the redirected response
|
||
var statusCode = response.statusCode;
|
||
if (this._options.trackRedirects) {
|
||
this._redirects.push({
|
||
url: this._currentUrl,
|
||
headers: response.headers,
|
||
statusCode: statusCode
|
||
});
|
||
}
|
||
// RFC7231§6.4: The 3xx (Redirection) class of status code indicates
|
||
// that further action needs to be taken by the user agent in order to
|
||
// fulfill the request. If a Location header field is provided,
|
||
// the user agent MAY automatically redirect its request to the URI
|
||
// referenced by the Location field value,
|
||
// even if the specific status code is not understood.
|
||
// If the response is not a redirect; return it as-is
|
||
var location = response.headers.location;
|
||
if (!location || this._options.followRedirects === false || statusCode < 300 || statusCode >= 400) {
|
||
response.responseUrl = this._currentUrl;
|
||
response.redirects = this._redirects;
|
||
this.emit("response", response);
|
||
// Clean up
|
||
this._requestBodyBuffers = [];
|
||
return;
|
||
}
|
||
// The response is a redirect, so abort the current request
|
||
destroyRequest(this._currentRequest);
|
||
// Discard the remainder of the response to avoid waiting for data
|
||
response.destroy();
|
||
// RFC7231§6.4: A client SHOULD detect and intervene
|
||
// in cyclical redirections (i.e., "infinite" redirection loops).
|
||
if (++this._redirectCount > this._options.maxRedirects) {
|
||
throw new TooManyRedirectsError();
|
||
}
|
||
// Store the request headers if applicable
|
||
var requestHeaders;
|
||
var beforeRedirect = this._options.beforeRedirect;
|
||
if (beforeRedirect) {
|
||
requestHeaders = Object.assign({
|
||
// The Host header was set by nativeProtocol.request
|
||
Host: response.req.getHeader("host")
|
||
}, this._options.headers);
|
||
}
|
||
// RFC7231§6.4: Automatic redirection needs to done with
|
||
// care for methods not known to be safe, […]
|
||
// RFC7231§6.4.2–3: For historical reasons, a user agent MAY change
|
||
// the request method from POST to GET for the subsequent request.
|
||
var method = this._options.method;
|
||
if ((statusCode === 301 || statusCode === 302) && this._options.method === "POST" || // RFC7231§6.4.4: The 303 (See Other) status code indicates that
|
||
// the server is redirecting the user agent to a different resource […]
|
||
// A user agent can perform a retrieval request targeting that URI
|
||
// (a GET or HEAD request if using HTTP) […]
|
||
statusCode === 303 && !/^(?:GET|HEAD)$/.test(this._options.method)) {
|
||
this._options.method = "GET";
|
||
// Drop a possible entity and headers related to it
|
||
this._requestBodyBuffers = [];
|
||
removeMatchingHeaders(/^content-/i, this._options.headers);
|
||
}
|
||
// Drop the Host header, as the redirect might lead to a different host
|
||
var currentHostHeader = removeMatchingHeaders(/^host$/i, this._options.headers);
|
||
// If the redirect is relative, carry over the host of the last request
|
||
var currentUrlParts = parseUrl(this._currentUrl);
|
||
var currentHost = currentHostHeader || currentUrlParts.host;
|
||
var currentUrl = /^\w+:/.test(location) ? this._currentUrl : url.format(Object.assign(currentUrlParts, {
|
||
host: currentHost
|
||
}));
|
||
// Create the redirected request
|
||
var redirectUrl = resolveUrl(location, currentUrl);
|
||
debug("redirecting to", redirectUrl.href);
|
||
this._isRedirect = true;
|
||
spreadUrlObject(redirectUrl, this._options);
|
||
// Drop confidential headers when redirecting to a less secure protocol
|
||
// or to a different domain that is not a superdomain
|
||
if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
|
||
removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
|
||
}
|
||
// Evaluate the beforeRedirect callback
|
||
if (isFunction(beforeRedirect)) {
|
||
var responseDetails = {
|
||
headers: response.headers,
|
||
statusCode: statusCode
|
||
};
|
||
var requestDetails = {
|
||
url: currentUrl,
|
||
method: method,
|
||
headers: requestHeaders
|
||
};
|
||
beforeRedirect(this._options, responseDetails, requestDetails);
|
||
this._sanitizeOptions(this._options);
|
||
}
|
||
// Perform the redirected request
|
||
this._performRequest();
|
||
};
|
||
// Wraps the key/value object of protocols with redirect functionality
|
||
function wrap(protocols) {
|
||
// Default settings
|
||
var exports = {
|
||
maxRedirects: 21,
|
||
maxBodyLength: 10 * 1024 * 1024
|
||
};
|
||
// Wrap each protocol
|
||
var nativeProtocols = {};
|
||
Object.keys(protocols).forEach(function(scheme) {
|
||
var protocol = scheme + ":";
|
||
var nativeProtocol = nativeProtocols[protocol] = protocols[scheme];
|
||
var wrappedProtocol = exports[scheme] = Object.create(nativeProtocol);
|
||
// Executes a request, following redirects
|
||
function request(input, options, callback) {
|
||
// Parse parameters, ensuring that input is an object
|
||
if (isURL(input)) {
|
||
input = spreadUrlObject(input);
|
||
} else if (isString(input)) {
|
||
input = spreadUrlObject(parseUrl(input));
|
||
} else {
|
||
callback = options;
|
||
options = validateUrl(input);
|
||
input = {
|
||
protocol: protocol
|
||
};
|
||
}
|
||
if (isFunction(options)) {
|
||
callback = options;
|
||
options = null;
|
||
}
|
||
// Set defaults
|
||
options = Object.assign({
|
||
maxRedirects: exports.maxRedirects,
|
||
maxBodyLength: exports.maxBodyLength
|
||
}, input, options);
|
||
options.nativeProtocols = nativeProtocols;
|
||
if (!isString(options.host) && !isString(options.hostname)) {
|
||
options.hostname = "::1";
|
||
}
|
||
assert.equal(options.protocol, protocol, "protocol mismatch");
|
||
debug("options", options);
|
||
return new RedirectableRequest(options, callback);
|
||
}
|
||
// Executes a GET request, following redirects
|
||
function get(input, options, callback) {
|
||
var wrappedRequest = wrappedProtocol.request(input, options, callback);
|
||
wrappedRequest.end();
|
||
return wrappedRequest;
|
||
}
|
||
// Expose the properties on the wrapped protocol
|
||
Object.defineProperties(wrappedProtocol, {
|
||
request: {
|
||
value: request,
|
||
configurable: true,
|
||
enumerable: true,
|
||
writable: true
|
||
},
|
||
get: {
|
||
value: get,
|
||
configurable: true,
|
||
enumerable: true,
|
||
writable: true
|
||
}
|
||
});
|
||
});
|
||
return exports;
|
||
}
|
||
function noop() {}
|
||
function parseUrl(input) {
|
||
var parsed;
|
||
// istanbul ignore else
|
||
if (useNativeURL) {
|
||
parsed = new URL(input);
|
||
} else {
|
||
// Ensure the URL is valid and absolute
|
||
parsed = validateUrl(url.parse(input));
|
||
if (!isString(parsed.protocol)) {
|
||
throw new InvalidUrlError({
|
||
input
|
||
});
|
||
}
|
||
}
|
||
return parsed;
|
||
}
|
||
function resolveUrl(relative, base) {
|
||
// istanbul ignore next
|
||
return useNativeURL ? new URL(relative, base) : parseUrl(url.resolve(base, relative));
|
||
}
|
||
function validateUrl(input) {
|
||
if (/^\[/.test(input.hostname) && !/^\[[:0-9a-f]+\]$/i.test(input.hostname)) {
|
||
throw new InvalidUrlError({
|
||
input: input.href || input
|
||
});
|
||
}
|
||
if (/^\[/.test(input.host) && !/^\[[:0-9a-f]+\](:\d+)?$/i.test(input.host)) {
|
||
throw new InvalidUrlError({
|
||
input: input.href || input
|
||
});
|
||
}
|
||
return input;
|
||
}
|
||
function spreadUrlObject(urlObject, target) {
|
||
var spread = target || {};
|
||
for (var key of preservedUrlFields){
|
||
spread[key] = urlObject[key];
|
||
}
|
||
// Fix IPv6 hostname
|
||
if (spread.hostname.startsWith("[")) {
|
||
spread.hostname = spread.hostname.slice(1, -1);
|
||
}
|
||
// Ensure port is a number
|
||
if (spread.port !== "") {
|
||
spread.port = Number(spread.port);
|
||
}
|
||
// Concatenate path
|
||
spread.path = spread.search ? spread.pathname + spread.search : spread.pathname;
|
||
return spread;
|
||
}
|
||
function removeMatchingHeaders(regex, headers) {
|
||
var lastValue;
|
||
for(var header in headers){
|
||
if (regex.test(header)) {
|
||
lastValue = headers[header];
|
||
delete headers[header];
|
||
}
|
||
}
|
||
return lastValue === null || typeof lastValue === "undefined" ? undefined : String(lastValue).trim();
|
||
}
|
||
function createErrorType(code, message, baseClass) {
|
||
// Create constructor
|
||
function CustomError(properties) {
|
||
// istanbul ignore else
|
||
if (isFunction(Error.captureStackTrace)) {
|
||
Error.captureStackTrace(this, this.constructor);
|
||
}
|
||
Object.assign(this, properties || {});
|
||
this.code = code;
|
||
this.message = this.cause ? message + ": " + this.cause.message : message;
|
||
}
|
||
// Attach constructor and set default properties
|
||
CustomError.prototype = new (baseClass || Error)();
|
||
Object.defineProperties(CustomError.prototype, {
|
||
constructor: {
|
||
value: CustomError,
|
||
enumerable: false
|
||
},
|
||
name: {
|
||
value: "Error [" + code + "]",
|
||
enumerable: false
|
||
}
|
||
});
|
||
return CustomError;
|
||
}
|
||
function destroyRequest(request, error) {
|
||
for (var event of events){
|
||
request.removeListener(event, eventHandlers[event]);
|
||
}
|
||
request.on("error", noop);
|
||
request.destroy(error);
|
||
}
|
||
function isSubdomain(subdomain, domain) {
|
||
assert(isString(subdomain) && isString(domain));
|
||
var dot = subdomain.length - domain.length - 1;
|
||
return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
|
||
}
|
||
function isString(value) {
|
||
return typeof value === "string" || value instanceof String;
|
||
}
|
||
function isFunction(value) {
|
||
return typeof value === "function";
|
||
}
|
||
function isBuffer(value) {
|
||
return typeof value === "object" && "length" in value;
|
||
}
|
||
function isURL(value) {
|
||
return URL && value instanceof URL;
|
||
}
|
||
// Exports
|
||
module.exports = wrap({
|
||
http: http,
|
||
https: https
|
||
});
|
||
module.exports.wrap = wrap;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/env/data.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"VERSION",
|
||
()=>VERSION
|
||
]);
|
||
const VERSION = "1.13.6";
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/parseProtocol.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>parseProtocol
|
||
]);
|
||
'use strict';
|
||
function parseProtocol(url) {
|
||
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
|
||
return match && match[1] || '';
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/fromDataURI.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>fromDataURI
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$parseProtocol$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/parseProtocol.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
;
|
||
const DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
|
||
function fromDataURI(uri, asBlob, options) {
|
||
const _Blob = options && options.Blob || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].classes.Blob;
|
||
const protocol = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$parseProtocol$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(uri);
|
||
if (asBlob === undefined && _Blob) {
|
||
asBlob = true;
|
||
}
|
||
if (protocol === 'data') {
|
||
uri = protocol.length ? uri.slice(protocol.length + 1) : uri;
|
||
const match = DATA_URL_PATTERN.exec(uri);
|
||
if (!match) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Invalid URL', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_INVALID_URL);
|
||
}
|
||
const mime = match[1];
|
||
const isBase64 = match[2];
|
||
const body = match[3];
|
||
const buffer = Buffer.from(decodeURIComponent(body), isBase64 ? 'base64' : 'utf8');
|
||
if (asBlob) {
|
||
if (!_Blob) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Blob is not supported', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_NOT_SUPPORT);
|
||
}
|
||
return new _Blob([
|
||
buffer
|
||
], {
|
||
type: mime
|
||
});
|
||
}
|
||
return buffer;
|
||
}
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Unsupported protocol ' + protocol, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_NOT_SUPPORT);
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/AxiosTransformStream.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/stream [external] (stream, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
const kInternals = Symbol('internals');
|
||
class AxiosTransformStream extends __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].Transform {
|
||
constructor(options){
|
||
options = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFlatObject(options, {
|
||
maxRate: 0,
|
||
chunkSize: 64 * 1024,
|
||
minChunkSize: 100,
|
||
timeWindow: 500,
|
||
ticksRate: 2,
|
||
samplesCount: 15
|
||
}, null, (prop, source)=>{
|
||
return !__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(source[prop]);
|
||
});
|
||
super({
|
||
readableHighWaterMark: options.chunkSize
|
||
});
|
||
const internals = this[kInternals] = {
|
||
timeWindow: options.timeWindow,
|
||
chunkSize: options.chunkSize,
|
||
maxRate: options.maxRate,
|
||
minChunkSize: options.minChunkSize,
|
||
bytesSeen: 0,
|
||
isCaptured: false,
|
||
notifiedBytesLoaded: 0,
|
||
ts: Date.now(),
|
||
bytes: 0,
|
||
onReadCallback: null
|
||
};
|
||
this.on('newListener', (event)=>{
|
||
if (event === 'progress') {
|
||
if (!internals.isCaptured) {
|
||
internals.isCaptured = true;
|
||
}
|
||
}
|
||
});
|
||
}
|
||
_read(size) {
|
||
const internals = this[kInternals];
|
||
if (internals.onReadCallback) {
|
||
internals.onReadCallback();
|
||
}
|
||
return super._read(size);
|
||
}
|
||
_transform(chunk, encoding, callback) {
|
||
const internals = this[kInternals];
|
||
const maxRate = internals.maxRate;
|
||
const readableHighWaterMark = this.readableHighWaterMark;
|
||
const timeWindow = internals.timeWindow;
|
||
const divider = 1000 / timeWindow;
|
||
const bytesThreshold = maxRate / divider;
|
||
const minChunkSize = internals.minChunkSize !== false ? Math.max(internals.minChunkSize, bytesThreshold * 0.01) : 0;
|
||
const pushChunk = (_chunk, _callback)=>{
|
||
const bytes = Buffer.byteLength(_chunk);
|
||
internals.bytesSeen += bytes;
|
||
internals.bytes += bytes;
|
||
internals.isCaptured && this.emit('progress', internals.bytesSeen);
|
||
if (this.push(_chunk)) {
|
||
process.nextTick(_callback);
|
||
} else {
|
||
internals.onReadCallback = ()=>{
|
||
internals.onReadCallback = null;
|
||
process.nextTick(_callback);
|
||
};
|
||
}
|
||
};
|
||
const transformChunk = (_chunk, _callback)=>{
|
||
const chunkSize = Buffer.byteLength(_chunk);
|
||
let chunkRemainder = null;
|
||
let maxChunkSize = readableHighWaterMark;
|
||
let bytesLeft;
|
||
let passed = 0;
|
||
if (maxRate) {
|
||
const now = Date.now();
|
||
if (!internals.ts || (passed = now - internals.ts) >= timeWindow) {
|
||
internals.ts = now;
|
||
bytesLeft = bytesThreshold - internals.bytes;
|
||
internals.bytes = bytesLeft < 0 ? -bytesLeft : 0;
|
||
passed = 0;
|
||
}
|
||
bytesLeft = bytesThreshold - internals.bytes;
|
||
}
|
||
if (maxRate) {
|
||
if (bytesLeft <= 0) {
|
||
// next time window
|
||
return setTimeout(()=>{
|
||
_callback(null, _chunk);
|
||
}, timeWindow - passed);
|
||
}
|
||
if (bytesLeft < maxChunkSize) {
|
||
maxChunkSize = bytesLeft;
|
||
}
|
||
}
|
||
if (maxChunkSize && chunkSize > maxChunkSize && chunkSize - maxChunkSize > minChunkSize) {
|
||
chunkRemainder = _chunk.subarray(maxChunkSize);
|
||
_chunk = _chunk.subarray(0, maxChunkSize);
|
||
}
|
||
pushChunk(_chunk, chunkRemainder ? ()=>{
|
||
process.nextTick(_callback, null, chunkRemainder);
|
||
} : _callback);
|
||
};
|
||
transformChunk(chunk, function transformNextChunk(err, _chunk) {
|
||
if (err) {
|
||
return callback(err);
|
||
}
|
||
if (_chunk) {
|
||
transformChunk(_chunk, transformNextChunk);
|
||
} else {
|
||
callback(null);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
const __TURBOPACK__default__export__ = AxiosTransformStream;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/readBlob.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
const { asyncIterator } = Symbol;
|
||
const readBlob = async function*(blob) {
|
||
if (blob.stream) {
|
||
yield* blob.stream();
|
||
} else if (blob.arrayBuffer) {
|
||
yield await blob.arrayBuffer();
|
||
} else if (blob[asyncIterator]) {
|
||
yield* blob[asyncIterator]();
|
||
} else {
|
||
yield blob;
|
||
}
|
||
};
|
||
const __TURBOPACK__default__export__ = readBlob;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/formDataToStream.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$util__$5b$external$5d$__$28$util$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/util [external] (util, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/stream [external] (stream, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$readBlob$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/readBlob.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
const BOUNDARY_ALPHABET = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ALPHABET.ALPHA_DIGIT + '-_';
|
||
const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new __TURBOPACK__imported__module__$5b$externals$5d2f$util__$5b$external$5d$__$28$util$2c$__cjs$29$__["default"].TextEncoder();
|
||
const CRLF = '\r\n';
|
||
const CRLF_BYTES = textEncoder.encode(CRLF);
|
||
const CRLF_BYTES_COUNT = 2;
|
||
class FormDataPart {
|
||
constructor(name, value){
|
||
const { escapeName } = this.constructor;
|
||
const isStringValue = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(value);
|
||
let headers = `Content-Disposition: form-data; name="${escapeName(name)}"${!isStringValue && value.name ? `; filename="${escapeName(value.name)}"` : ''}${CRLF}`;
|
||
if (isStringValue) {
|
||
value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
|
||
} else {
|
||
headers += `Content-Type: ${value.type || 'application/octet-stream'}${CRLF}`;
|
||
}
|
||
this.headers = textEncoder.encode(headers + CRLF);
|
||
this.contentLength = isStringValue ? value.byteLength : value.size;
|
||
this.size = this.headers.byteLength + this.contentLength + CRLF_BYTES_COUNT;
|
||
this.name = name;
|
||
this.value = value;
|
||
}
|
||
async *encode() {
|
||
yield this.headers;
|
||
const { value } = this;
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isTypedArray(value)) {
|
||
yield value;
|
||
} else {
|
||
yield* (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$readBlob$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(value);
|
||
}
|
||
yield CRLF_BYTES;
|
||
}
|
||
static escapeName(name) {
|
||
return String(name).replace(/[\r\n"]/g, (match)=>({
|
||
'\r': '%0D',
|
||
'\n': '%0A',
|
||
'"': '%22'
|
||
})[match]);
|
||
}
|
||
}
|
||
const formDataToStream = (form, headersHandler, options)=>{
|
||
const { tag = 'form-data-boundary', size = 25, boundary = tag + '-' + __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].generateString(size, BOUNDARY_ALPHABET) } = options || {};
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFormData(form)) {
|
||
throw TypeError('FormData instance required');
|
||
}
|
||
if (boundary.length < 1 || boundary.length > 70) {
|
||
throw Error('boundary must be 10-70 characters long');
|
||
}
|
||
const boundaryBytes = textEncoder.encode('--' + boundary + CRLF);
|
||
const footerBytes = textEncoder.encode('--' + boundary + '--' + CRLF);
|
||
let contentLength = footerBytes.byteLength;
|
||
const parts = Array.from(form.entries()).map(([name, value])=>{
|
||
const part = new FormDataPart(name, value);
|
||
contentLength += part.size;
|
||
return part;
|
||
});
|
||
contentLength += boundaryBytes.byteLength * parts.length;
|
||
contentLength = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFiniteNumber(contentLength);
|
||
const computedHeaders = {
|
||
'Content-Type': `multipart/form-data; boundary=${boundary}`
|
||
};
|
||
if (Number.isFinite(contentLength)) {
|
||
computedHeaders['Content-Length'] = contentLength;
|
||
}
|
||
headersHandler && headersHandler(computedHeaders);
|
||
return __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["Readable"].from(async function*() {
|
||
for (const part of parts){
|
||
yield boundaryBytes;
|
||
yield* part.encode();
|
||
}
|
||
yield footerBytes;
|
||
}());
|
||
};
|
||
const __TURBOPACK__default__export__ = formDataToStream;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/stream [external] (stream, cjs)");
|
||
'use strict';
|
||
;
|
||
class ZlibHeaderTransformStream extends __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].Transform {
|
||
__transform(chunk, encoding, callback) {
|
||
this.push(chunk);
|
||
callback();
|
||
}
|
||
_transform(chunk, encoding, callback) {
|
||
if (chunk.length !== 0) {
|
||
this._transform = this.__transform;
|
||
// Add Default Compression headers if no zlib headers are present
|
||
if (chunk[0] !== 120) {
|
||
// Hex: 78
|
||
const header = Buffer.alloc(2);
|
||
header[0] = 120; // Hex: 78
|
||
header[1] = 156; // Hex: 9C
|
||
this.push(header, encoding);
|
||
}
|
||
}
|
||
this.__transform(chunk, encoding, callback);
|
||
}
|
||
}
|
||
const __TURBOPACK__default__export__ = ZlibHeaderTransformStream;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/callbackify.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
;
|
||
const callbackify = (fn, reducer)=>{
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isAsyncFn(fn) ? function(...args) {
|
||
const cb = args.pop();
|
||
fn.apply(this, args).then((value)=>{
|
||
try {
|
||
reducer ? cb(null, ...reducer(value)) : cb(null, value);
|
||
} catch (err) {
|
||
cb(err);
|
||
}
|
||
}, cb);
|
||
} : fn;
|
||
};
|
||
const __TURBOPACK__default__export__ = callbackify;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/speedometer.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
'use strict';
|
||
/**
|
||
* Calculate data maxRate
|
||
* @param {Number} [samplesCount= 10]
|
||
* @param {Number} [min= 1000]
|
||
* @returns {Function}
|
||
*/ function speedometer(samplesCount, min) {
|
||
samplesCount = samplesCount || 10;
|
||
const bytes = new Array(samplesCount);
|
||
const timestamps = new Array(samplesCount);
|
||
let head = 0;
|
||
let tail = 0;
|
||
let firstSampleTS;
|
||
min = min !== undefined ? min : 1000;
|
||
return function push(chunkLength) {
|
||
const now = Date.now();
|
||
const startedAt = timestamps[tail];
|
||
if (!firstSampleTS) {
|
||
firstSampleTS = now;
|
||
}
|
||
bytes[head] = chunkLength;
|
||
timestamps[head] = now;
|
||
let i = tail;
|
||
let bytesCount = 0;
|
||
while(i !== head){
|
||
bytesCount += bytes[i++];
|
||
i = i % samplesCount;
|
||
}
|
||
head = (head + 1) % samplesCount;
|
||
if (head === tail) {
|
||
tail = (tail + 1) % samplesCount;
|
||
}
|
||
if (now - firstSampleTS < min) {
|
||
return;
|
||
}
|
||
const passed = startedAt && now - startedAt;
|
||
return passed ? Math.round(bytesCount * 1000 / passed) : undefined;
|
||
};
|
||
}
|
||
const __TURBOPACK__default__export__ = speedometer;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/throttle.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
/**
|
||
* Throttle decorator
|
||
* @param {Function} fn
|
||
* @param {Number} freq
|
||
* @return {Function}
|
||
*/ function throttle(fn, freq) {
|
||
let timestamp = 0;
|
||
let threshold = 1000 / freq;
|
||
let lastArgs;
|
||
let timer;
|
||
const invoke = (args, now = Date.now())=>{
|
||
timestamp = now;
|
||
lastArgs = null;
|
||
if (timer) {
|
||
clearTimeout(timer);
|
||
timer = null;
|
||
}
|
||
fn(...args);
|
||
};
|
||
const throttled = (...args)=>{
|
||
const now = Date.now();
|
||
const passed = now - timestamp;
|
||
if (passed >= threshold) {
|
||
invoke(args, now);
|
||
} else {
|
||
lastArgs = args;
|
||
if (!timer) {
|
||
timer = setTimeout(()=>{
|
||
timer = null;
|
||
invoke(lastArgs);
|
||
}, threshold - passed);
|
||
}
|
||
}
|
||
};
|
||
const flush = ()=>lastArgs && invoke(lastArgs);
|
||
return [
|
||
throttled,
|
||
flush
|
||
];
|
||
}
|
||
const __TURBOPACK__default__export__ = throttle;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/progressEventReducer.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"asyncDecorator",
|
||
()=>asyncDecorator,
|
||
"progressEventDecorator",
|
||
()=>progressEventDecorator,
|
||
"progressEventReducer",
|
||
()=>progressEventReducer
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$speedometer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/speedometer.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$throttle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/throttle.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
const progressEventReducer = (listener, isDownloadStream, freq = 3)=>{
|
||
let bytesNotified = 0;
|
||
const _speedometer = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$speedometer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(50, 250);
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$throttle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])((e)=>{
|
||
const loaded = e.loaded;
|
||
const total = e.lengthComputable ? e.total : undefined;
|
||
const progressBytes = loaded - bytesNotified;
|
||
const rate = _speedometer(progressBytes);
|
||
const inRange = loaded <= total;
|
||
bytesNotified = loaded;
|
||
const data = {
|
||
loaded,
|
||
total,
|
||
progress: total ? loaded / total : undefined,
|
||
bytes: progressBytes,
|
||
rate: rate ? rate : undefined,
|
||
estimated: rate && total && inRange ? (total - loaded) / rate : undefined,
|
||
event: e,
|
||
lengthComputable: total != null,
|
||
[isDownloadStream ? 'download' : 'upload']: true
|
||
};
|
||
listener(data);
|
||
}, freq);
|
||
};
|
||
const progressEventDecorator = (total, throttled)=>{
|
||
const lengthComputable = total != null;
|
||
return [
|
||
(loaded)=>throttled[0]({
|
||
lengthComputable,
|
||
total,
|
||
loaded
|
||
}),
|
||
throttled[1]
|
||
];
|
||
};
|
||
const asyncDecorator = (fn)=>(...args)=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].asap(()=>fn(...args));
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
/**
|
||
* Estimate decoded byte length of a data:// URL *without* allocating large buffers.
|
||
* - For base64: compute exact decoded size using length and padding;
|
||
* handle %XX at the character-count level (no string allocation).
|
||
* - For non-base64: use UTF-8 byteLength of the encoded body as a safe upper bound.
|
||
*
|
||
* @param {string} url
|
||
* @returns {number}
|
||
*/ __turbopack_context__.s([
|
||
"default",
|
||
()=>estimateDataURLDecodedBytes
|
||
]);
|
||
function estimateDataURLDecodedBytes(url) {
|
||
if (!url || typeof url !== 'string') return 0;
|
||
if (!url.startsWith('data:')) return 0;
|
||
const comma = url.indexOf(',');
|
||
if (comma < 0) return 0;
|
||
const meta = url.slice(5, comma);
|
||
const body = url.slice(comma + 1);
|
||
const isBase64 = /;base64/i.test(meta);
|
||
if (isBase64) {
|
||
let effectiveLen = body.length;
|
||
const len = body.length; // cache length
|
||
for(let i = 0; i < len; i++){
|
||
if (body.charCodeAt(i) === 37 /* '%' */ && i + 2 < len) {
|
||
const a = body.charCodeAt(i + 1);
|
||
const b = body.charCodeAt(i + 2);
|
||
const isHex = (a >= 48 && a <= 57 || a >= 65 && a <= 70 || a >= 97 && a <= 102) && (b >= 48 && b <= 57 || b >= 65 && b <= 70 || b >= 97 && b <= 102);
|
||
if (isHex) {
|
||
effectiveLen -= 2;
|
||
i += 2;
|
||
}
|
||
}
|
||
}
|
||
let pad = 0;
|
||
let idx = len - 1;
|
||
const tailIsPct3D = (j)=>j >= 2 && body.charCodeAt(j - 2) === 37 && // '%'
|
||
body.charCodeAt(j - 1) === 51 && // '3'
|
||
(body.charCodeAt(j) === 68 || body.charCodeAt(j) === 100); // 'D' or 'd'
|
||
if (idx >= 0) {
|
||
if (body.charCodeAt(idx) === 61 /* '=' */ ) {
|
||
pad++;
|
||
idx--;
|
||
} else if (tailIsPct3D(idx)) {
|
||
pad++;
|
||
idx -= 3;
|
||
}
|
||
}
|
||
if (pad === 1 && idx >= 0) {
|
||
if (body.charCodeAt(idx) === 61 /* '=' */ ) {
|
||
pad++;
|
||
} else if (tailIsPct3D(idx)) {
|
||
pad++;
|
||
}
|
||
}
|
||
const groups = Math.floor(effectiveLen / 4);
|
||
const bytes = groups * 3 - (pad || 0);
|
||
return bytes > 0 ? bytes : 0;
|
||
}
|
||
return Buffer.byteLength(body, 'utf8');
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/http.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"__setProxy",
|
||
()=>__setProxy,
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/settle.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$buildFullPath$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/buildFullPath.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$buildURL$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/buildURL.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$proxy$2d$from$2d$env$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/proxy-from-env/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$http__$5b$external$5d$__$28$http$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/http [external] (http, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$https__$5b$external$5d$__$28$https$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/https [external] (https, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$http2__$5b$external$5d$__$28$http2$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/http2 [external] (http2, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$util__$5b$external$5d$__$28$util$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/util [external] (util, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$follow$2d$redirects$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/follow-redirects/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/zlib [external] (zlib, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$env$2f$data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/env/data.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$transitional$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/transitional.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CanceledError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$fromDataURI$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/fromDataURI.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/stream [external] (stream, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$AxiosTransformStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/AxiosTransformStream.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$externals$5d2f$events__$5b$external$5d$__$28$events$2c$__cjs$29$__ = __turbopack_context__.i("[externals]/events [external] (events, cjs)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$formDataToStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/formDataToStream.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$readBlob$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/readBlob.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$ZlibHeaderTransformStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$callbackify$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/callbackify.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/progressEventReducer.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$estimateDataURLDecodedBytes$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
const zlibOptions = {
|
||
flush: __TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__["default"].constants.Z_SYNC_FLUSH,
|
||
finishFlush: __TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__["default"].constants.Z_SYNC_FLUSH
|
||
};
|
||
const brotliOptions = {
|
||
flush: __TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__["default"].constants.BROTLI_OPERATION_FLUSH,
|
||
finishFlush: __TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__["default"].constants.BROTLI_OPERATION_FLUSH
|
||
};
|
||
const isBrotliSupported = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(__TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__["default"].createBrotliDecompress);
|
||
const { http: httpFollow, https: httpsFollow } = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$follow$2d$redirects$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
const isHttps = /https:?/;
|
||
const supportedProtocols = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].protocols.map((protocol)=>{
|
||
return protocol + ':';
|
||
});
|
||
const flushOnFinish = (stream, [throttled, flush])=>{
|
||
stream.on('end', flush).on('error', flush);
|
||
return throttled;
|
||
};
|
||
class Http2Sessions {
|
||
constructor(){
|
||
this.sessions = Object.create(null);
|
||
}
|
||
getSession(authority, options) {
|
||
options = Object.assign({
|
||
sessionTimeout: 1000
|
||
}, options);
|
||
let authoritySessions = this.sessions[authority];
|
||
if (authoritySessions) {
|
||
let len = authoritySessions.length;
|
||
for(let i = 0; i < len; i++){
|
||
const [sessionHandle, sessionOptions] = authoritySessions[i];
|
||
if (!sessionHandle.destroyed && !sessionHandle.closed && __TURBOPACK__imported__module__$5b$externals$5d2f$util__$5b$external$5d$__$28$util$2c$__cjs$29$__["default"].isDeepStrictEqual(sessionOptions, options)) {
|
||
return sessionHandle;
|
||
}
|
||
}
|
||
}
|
||
const session = __TURBOPACK__imported__module__$5b$externals$5d2f$http2__$5b$external$5d$__$28$http2$2c$__cjs$29$__["default"].connect(authority, options);
|
||
let removed;
|
||
const removeSession = ()=>{
|
||
if (removed) {
|
||
return;
|
||
}
|
||
removed = true;
|
||
let entries = authoritySessions, len = entries.length, i = len;
|
||
while(i--){
|
||
if (entries[i][0] === session) {
|
||
if (len === 1) {
|
||
delete this.sessions[authority];
|
||
} else {
|
||
entries.splice(i, 1);
|
||
}
|
||
return;
|
||
}
|
||
}
|
||
};
|
||
const originalRequestFn = session.request;
|
||
const { sessionTimeout } = options;
|
||
if (sessionTimeout != null) {
|
||
let timer;
|
||
let streamsCount = 0;
|
||
session.request = function() {
|
||
const stream = originalRequestFn.apply(this, arguments);
|
||
streamsCount++;
|
||
if (timer) {
|
||
clearTimeout(timer);
|
||
timer = null;
|
||
}
|
||
stream.once('close', ()=>{
|
||
if (!--streamsCount) {
|
||
timer = setTimeout(()=>{
|
||
timer = null;
|
||
removeSession();
|
||
}, sessionTimeout);
|
||
}
|
||
});
|
||
return stream;
|
||
};
|
||
}
|
||
session.once('close', removeSession);
|
||
let entry = [
|
||
session,
|
||
options
|
||
];
|
||
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [
|
||
entry
|
||
];
|
||
return session;
|
||
}
|
||
}
|
||
const http2Sessions = new Http2Sessions();
|
||
/**
|
||
* If the proxy or config beforeRedirects functions are defined, call them with the options
|
||
* object.
|
||
*
|
||
* @param {Object<string, any>} options - The options object that was passed to the request.
|
||
*
|
||
* @returns {Object<string, any>}
|
||
*/ function dispatchBeforeRedirect(options, responseDetails) {
|
||
if (options.beforeRedirects.proxy) {
|
||
options.beforeRedirects.proxy(options);
|
||
}
|
||
if (options.beforeRedirects.config) {
|
||
options.beforeRedirects.config(options, responseDetails);
|
||
}
|
||
}
|
||
/**
|
||
* If the proxy or config afterRedirects functions are defined, call them with the options
|
||
*
|
||
* @param {http.ClientRequestArgs} options
|
||
* @param {AxiosProxyConfig} configProxy configuration from Axios options object
|
||
* @param {string} location
|
||
*
|
||
* @returns {http.ClientRequestArgs}
|
||
*/ function setProxy(options, configProxy, location) {
|
||
let proxy = configProxy;
|
||
if (!proxy && proxy !== false) {
|
||
const proxyUrl = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$proxy$2d$from$2d$env$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].getProxyForUrl(location);
|
||
if (proxyUrl) {
|
||
proxy = new URL(proxyUrl);
|
||
}
|
||
}
|
||
if (proxy) {
|
||
// Basic proxy authorization
|
||
if (proxy.username) {
|
||
proxy.auth = (proxy.username || '') + ':' + (proxy.password || '');
|
||
}
|
||
if (proxy.auth) {
|
||
// Support proxy auth object form
|
||
const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
|
||
if (validProxyAuth) {
|
||
proxy.auth = (proxy.auth.username || '') + ':' + (proxy.auth.password || '');
|
||
} else if (typeof proxy.auth === 'object') {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Invalid proxy authorization', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_OPTION, {
|
||
proxy
|
||
});
|
||
}
|
||
const base64 = Buffer.from(proxy.auth, 'utf8').toString('base64');
|
||
options.headers['Proxy-Authorization'] = 'Basic ' + base64;
|
||
}
|
||
options.headers.host = options.hostname + (options.port ? ':' + options.port : '');
|
||
const proxyHost = proxy.hostname || proxy.host;
|
||
options.hostname = proxyHost;
|
||
// Replace 'host' since options is not a URL object
|
||
options.host = proxyHost;
|
||
options.port = proxy.port;
|
||
options.path = location;
|
||
if (proxy.protocol) {
|
||
options.protocol = proxy.protocol.includes(':') ? proxy.protocol : `${proxy.protocol}:`;
|
||
}
|
||
}
|
||
options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
|
||
// Configure proxy for redirected request, passing the original config proxy to apply
|
||
// the exact same logic as if the redirected request was performed by axios directly.
|
||
setProxy(redirectOptions, configProxy, redirectOptions.href);
|
||
};
|
||
}
|
||
const isHttpAdapterSupported = typeof process !== 'undefined' && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].kindOf(process) === 'process';
|
||
// temporary hotfix
|
||
const wrapAsync = (asyncExecutor)=>{
|
||
return new Promise((resolve, reject)=>{
|
||
let onDone;
|
||
let isDone;
|
||
const done = (value, isRejected)=>{
|
||
if (isDone) return;
|
||
isDone = true;
|
||
onDone && onDone(value, isRejected);
|
||
};
|
||
const _resolve = (value)=>{
|
||
done(value);
|
||
resolve(value);
|
||
};
|
||
const _reject = (reason)=>{
|
||
done(reason, true);
|
||
reject(reason);
|
||
};
|
||
asyncExecutor(_resolve, _reject, (onDoneHandler)=>onDone = onDoneHandler).catch(_reject);
|
||
});
|
||
};
|
||
const resolveFamily = ({ address, family })=>{
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(address)) {
|
||
throw TypeError('address must be a string');
|
||
}
|
||
return {
|
||
address,
|
||
family: family || (address.indexOf('.') < 0 ? 6 : 4)
|
||
};
|
||
};
|
||
const buildAddressEntry = (address, family)=>resolveFamily(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isObject(address) ? address : {
|
||
address,
|
||
family
|
||
});
|
||
const http2Transport = {
|
||
request (options, cb) {
|
||
const authority = options.protocol + '//' + options.hostname + ':' + (options.port || (options.protocol === 'https:' ? 443 : 80));
|
||
const { http2Options, headers } = options;
|
||
const session = http2Sessions.getSession(authority, http2Options);
|
||
const { HTTP2_HEADER_SCHEME, HTTP2_HEADER_METHOD, HTTP2_HEADER_PATH, HTTP2_HEADER_STATUS } = __TURBOPACK__imported__module__$5b$externals$5d2f$http2__$5b$external$5d$__$28$http2$2c$__cjs$29$__["default"].constants;
|
||
const http2Headers = {
|
||
[HTTP2_HEADER_SCHEME]: options.protocol.replace(':', ''),
|
||
[HTTP2_HEADER_METHOD]: options.method,
|
||
[HTTP2_HEADER_PATH]: options.path
|
||
};
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(headers, (header, name)=>{
|
||
name.charAt(0) !== ':' && (http2Headers[name] = header);
|
||
});
|
||
const req = session.request(http2Headers);
|
||
req.once('response', (responseHeaders)=>{
|
||
const response = req; //duplex
|
||
responseHeaders = Object.assign({}, responseHeaders);
|
||
const status = responseHeaders[HTTP2_HEADER_STATUS];
|
||
delete responseHeaders[HTTP2_HEADER_STATUS];
|
||
response.headers = responseHeaders;
|
||
response.statusCode = +status;
|
||
cb(response);
|
||
});
|
||
return req;
|
||
}
|
||
};
|
||
const __TURBOPACK__default__export__ = isHttpAdapterSupported && function httpAdapter(config) {
|
||
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
|
||
let { data, lookup, family, httpVersion = 1, http2Options } = config;
|
||
const { responseType, responseEncoding } = config;
|
||
const method = config.method.toUpperCase();
|
||
let isDone;
|
||
let rejected = false;
|
||
let req;
|
||
httpVersion = +httpVersion;
|
||
if (Number.isNaN(httpVersion)) {
|
||
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
|
||
}
|
||
if (httpVersion !== 1 && httpVersion !== 2) {
|
||
throw TypeError(`Unsupported protocol version '${httpVersion}'`);
|
||
}
|
||
const isHttp2 = httpVersion === 2;
|
||
if (lookup) {
|
||
const _lookup = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$callbackify$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(lookup, (value)=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(value) ? value : [
|
||
value
|
||
]);
|
||
// hotfix to support opt.all option which is required for node 20.x
|
||
lookup = (hostname, opt, cb)=>{
|
||
_lookup(hostname, opt, (err, arg0, arg1)=>{
|
||
if (err) {
|
||
return cb(err);
|
||
}
|
||
const addresses = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(arg0) ? arg0.map((addr)=>buildAddressEntry(addr)) : [
|
||
buildAddressEntry(arg0, arg1)
|
||
];
|
||
opt.all ? cb(err, addresses) : cb(err, addresses[0].address, addresses[0].family);
|
||
});
|
||
};
|
||
}
|
||
const abortEmitter = new __TURBOPACK__imported__module__$5b$externals$5d2f$events__$5b$external$5d$__$28$events$2c$__cjs$29$__["EventEmitter"]();
|
||
function abort(reason) {
|
||
try {
|
||
abortEmitter.emit('abort', !reason || reason.type ? new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](null, config, req) : reason);
|
||
} catch (err) {
|
||
console.warn('emit error', err);
|
||
}
|
||
}
|
||
abortEmitter.once('abort', reject);
|
||
const onFinished = ()=>{
|
||
if (config.cancelToken) {
|
||
config.cancelToken.unsubscribe(abort);
|
||
}
|
||
if (config.signal) {
|
||
config.signal.removeEventListener('abort', abort);
|
||
}
|
||
abortEmitter.removeAllListeners();
|
||
};
|
||
if (config.cancelToken || config.signal) {
|
||
config.cancelToken && config.cancelToken.subscribe(abort);
|
||
if (config.signal) {
|
||
config.signal.aborted ? abort() : config.signal.addEventListener('abort', abort);
|
||
}
|
||
}
|
||
onDone((response, isRejected)=>{
|
||
isDone = true;
|
||
if (isRejected) {
|
||
rejected = true;
|
||
onFinished();
|
||
return;
|
||
}
|
||
const { data } = response;
|
||
if (data instanceof __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].Readable || data instanceof __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].Duplex) {
|
||
const offListeners = __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].finished(data, ()=>{
|
||
offListeners();
|
||
onFinished();
|
||
});
|
||
} else {
|
||
onFinished();
|
||
}
|
||
});
|
||
// Parse url
|
||
const fullPath = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$buildFullPath$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(config.baseURL, config.url, config.allowAbsoluteUrls);
|
||
const parsed = new URL(fullPath, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].hasBrowserEnv ? __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].origin : undefined);
|
||
const protocol = parsed.protocol || supportedProtocols[0];
|
||
if (protocol === 'data:') {
|
||
// Apply the same semantics as HTTP: only enforce if a finite, non-negative cap is set.
|
||
if (config.maxContentLength > -1) {
|
||
// Use the exact string passed to fromDataURI (config.url); fall back to fullPath if needed.
|
||
const dataUrl = String(config.url || fullPath || '');
|
||
const estimated = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$estimateDataURLDecodedBytes$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(dataUrl);
|
||
if (estimated > config.maxContentLength) {
|
||
return reject(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('maxContentLength size of ' + config.maxContentLength + ' exceeded', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_RESPONSE, config));
|
||
}
|
||
}
|
||
let convertedData;
|
||
if (method !== 'GET') {
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(resolve, reject, {
|
||
status: 405,
|
||
statusText: 'method not allowed',
|
||
headers: {},
|
||
config
|
||
});
|
||
}
|
||
try {
|
||
convertedData = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$fromDataURI$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(config.url, responseType === 'blob', {
|
||
Blob: config.env && config.env.Blob
|
||
});
|
||
} catch (err) {
|
||
throw __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(err, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_REQUEST, config);
|
||
}
|
||
if (responseType === 'text') {
|
||
convertedData = convertedData.toString(responseEncoding);
|
||
if (!responseEncoding || responseEncoding === 'utf8') {
|
||
convertedData = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].stripBOM(convertedData);
|
||
}
|
||
} else if (responseType === 'stream') {
|
||
convertedData = __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].Readable.from(convertedData);
|
||
}
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(resolve, reject, {
|
||
data: convertedData,
|
||
status: 200,
|
||
statusText: 'OK',
|
||
headers: new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](),
|
||
config
|
||
});
|
||
}
|
||
if (supportedProtocols.indexOf(protocol) === -1) {
|
||
return reject(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Unsupported protocol ' + protocol, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_REQUEST, config));
|
||
}
|
||
const headers = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(config.headers).normalize();
|
||
// Set User-Agent (required by some servers)
|
||
// See https://github.com/axios/axios/issues/69
|
||
// User-Agent is specified; handle case where no UA header is desired
|
||
// Only set header if it hasn't been set in config
|
||
headers.set('User-Agent', 'axios/' + __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$env$2f$data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["VERSION"], false);
|
||
const { onUploadProgress, onDownloadProgress } = config;
|
||
const maxRate = config.maxRate;
|
||
let maxUploadRate = undefined;
|
||
let maxDownloadRate = undefined;
|
||
// support for spec compliant FormData objects
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isSpecCompliantForm(data)) {
|
||
const userBoundary = headers.getContentType(/boundary=([-_\w\d]{10,70})/i);
|
||
data = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$formDataToStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(data, (formHeaders)=>{
|
||
headers.set(formHeaders);
|
||
}, {
|
||
tag: `axios-${__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$env$2f$data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["VERSION"]}-boundary`,
|
||
boundary: userBoundary && userBoundary[1] || undefined
|
||
});
|
||
// support for https://www.npmjs.com/package/form-data api
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFormData(data) && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(data.getHeaders)) {
|
||
headers.set(data.getHeaders());
|
||
if (!headers.hasContentLength()) {
|
||
try {
|
||
const knownLength = await __TURBOPACK__imported__module__$5b$externals$5d2f$util__$5b$external$5d$__$28$util$2c$__cjs$29$__["default"].promisify(data.getLength).call(data);
|
||
Number.isFinite(knownLength) && knownLength >= 0 && headers.setContentLength(knownLength);
|
||
/*eslint no-empty:0*/ } catch (e) {}
|
||
}
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isBlob(data) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFile(data)) {
|
||
data.size && headers.setContentType(data.type || 'application/octet-stream');
|
||
headers.setContentLength(data.size || 0);
|
||
data = __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].Readable.from((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$readBlob$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(data));
|
||
} else if (data && !__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isStream(data)) {
|
||
if (Buffer.isBuffer(data)) {
|
||
// Nothing to do...
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArrayBuffer(data)) {
|
||
data = Buffer.from(new Uint8Array(data));
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(data)) {
|
||
data = Buffer.from(data, 'utf-8');
|
||
} else {
|
||
return reject(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_REQUEST, config));
|
||
}
|
||
// Add Content-Length header if data exists
|
||
headers.setContentLength(data.length, false);
|
||
if (config.maxBodyLength > -1 && data.length > config.maxBodyLength) {
|
||
return reject(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Request body larger than maxBodyLength limit', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_REQUEST, config));
|
||
}
|
||
}
|
||
const contentLength = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFiniteNumber(headers.getContentLength());
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(maxRate)) {
|
||
maxUploadRate = maxRate[0];
|
||
maxDownloadRate = maxRate[1];
|
||
} else {
|
||
maxUploadRate = maxDownloadRate = maxRate;
|
||
}
|
||
if (data && (onUploadProgress || maxUploadRate)) {
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isStream(data)) {
|
||
data = __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].Readable.from(data, {
|
||
objectMode: false
|
||
});
|
||
}
|
||
data = __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].pipeline([
|
||
data,
|
||
new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$AxiosTransformStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]({
|
||
maxRate: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFiniteNumber(maxUploadRate)
|
||
})
|
||
], __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].noop);
|
||
onUploadProgress && data.on('progress', flushOnFinish(data, (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventDecorator"])(contentLength, (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventReducer"])((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["asyncDecorator"])(onUploadProgress), false, 3))));
|
||
}
|
||
// HTTP basic authentication
|
||
let auth = undefined;
|
||
if (config.auth) {
|
||
const username = config.auth.username || '';
|
||
const password = config.auth.password || '';
|
||
auth = username + ':' + password;
|
||
}
|
||
if (!auth && parsed.username) {
|
||
const urlUsername = parsed.username;
|
||
const urlPassword = parsed.password;
|
||
auth = urlUsername + ':' + urlPassword;
|
||
}
|
||
auth && headers.delete('authorization');
|
||
let path;
|
||
try {
|
||
path = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$buildURL$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(parsed.pathname + parsed.search, config.params, config.paramsSerializer).replace(/^\?/, '');
|
||
} catch (err) {
|
||
const customErr = new Error(err.message);
|
||
customErr.config = config;
|
||
customErr.url = config.url;
|
||
customErr.exists = true;
|
||
return reject(customErr);
|
||
}
|
||
headers.set('Accept-Encoding', 'gzip, compress, deflate' + (isBrotliSupported ? ', br' : ''), false);
|
||
const options = {
|
||
path,
|
||
method: method,
|
||
headers: headers.toJSON(),
|
||
agents: {
|
||
http: config.httpAgent,
|
||
https: config.httpsAgent
|
||
},
|
||
auth,
|
||
protocol,
|
||
family,
|
||
beforeRedirect: dispatchBeforeRedirect,
|
||
beforeRedirects: {},
|
||
http2Options
|
||
};
|
||
// cacheable-lookup integration hotfix
|
||
!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(lookup) && (options.lookup = lookup);
|
||
if (config.socketPath) {
|
||
options.socketPath = config.socketPath;
|
||
} else {
|
||
options.hostname = parsed.hostname.startsWith('[') ? parsed.hostname.slice(1, -1) : parsed.hostname;
|
||
options.port = parsed.port;
|
||
setProxy(options, config.proxy, protocol + '//' + parsed.hostname + (parsed.port ? ':' + parsed.port : '') + options.path);
|
||
}
|
||
let transport;
|
||
const isHttpsRequest = isHttps.test(options.protocol);
|
||
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
|
||
if (isHttp2) {
|
||
transport = http2Transport;
|
||
} else {
|
||
if (config.transport) {
|
||
transport = config.transport;
|
||
} else if (config.maxRedirects === 0) {
|
||
transport = isHttpsRequest ? __TURBOPACK__imported__module__$5b$externals$5d2f$https__$5b$external$5d$__$28$https$2c$__cjs$29$__["default"] : __TURBOPACK__imported__module__$5b$externals$5d2f$http__$5b$external$5d$__$28$http$2c$__cjs$29$__["default"];
|
||
} else {
|
||
if (config.maxRedirects) {
|
||
options.maxRedirects = config.maxRedirects;
|
||
}
|
||
if (config.beforeRedirect) {
|
||
options.beforeRedirects.config = config.beforeRedirect;
|
||
}
|
||
transport = isHttpsRequest ? httpsFollow : httpFollow;
|
||
}
|
||
}
|
||
if (config.maxBodyLength > -1) {
|
||
options.maxBodyLength = config.maxBodyLength;
|
||
} else {
|
||
// follow-redirects does not skip comparison, so it should always succeed for axios -1 unlimited
|
||
options.maxBodyLength = Infinity;
|
||
}
|
||
if (config.insecureHTTPParser) {
|
||
options.insecureHTTPParser = config.insecureHTTPParser;
|
||
}
|
||
// Create the request
|
||
req = transport.request(options, function handleResponse(res) {
|
||
if (req.destroyed) return;
|
||
const streams = [
|
||
res
|
||
];
|
||
const responseLength = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFiniteNumber(res.headers['content-length']);
|
||
if (onDownloadProgress || maxDownloadRate) {
|
||
const transformStream = new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$AxiosTransformStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]({
|
||
maxRate: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFiniteNumber(maxDownloadRate)
|
||
});
|
||
onDownloadProgress && transformStream.on('progress', flushOnFinish(transformStream, (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventDecorator"])(responseLength, (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventReducer"])((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["asyncDecorator"])(onDownloadProgress), true, 3))));
|
||
streams.push(transformStream);
|
||
}
|
||
// decompress the response body transparently if required
|
||
let responseStream = res;
|
||
// return the last request in case of redirects
|
||
const lastRequest = res.req || req;
|
||
// if decompress disabled we should not decompress
|
||
if (config.decompress !== false && res.headers['content-encoding']) {
|
||
// if no content, but headers still say that it is encoded,
|
||
// remove the header not confuse downstream operations
|
||
if (method === 'HEAD' || res.statusCode === 204) {
|
||
delete res.headers['content-encoding'];
|
||
}
|
||
switch((res.headers['content-encoding'] || '').toLowerCase()){
|
||
/*eslint default-case:0*/ case 'gzip':
|
||
case 'x-gzip':
|
||
case 'compress':
|
||
case 'x-compress':
|
||
// add the unzipper to the body stream processing pipeline
|
||
streams.push(__TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__["default"].createUnzip(zlibOptions));
|
||
// remove the content-encoding in order to not confuse downstream operations
|
||
delete res.headers['content-encoding'];
|
||
break;
|
||
case 'deflate':
|
||
streams.push(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$ZlibHeaderTransformStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]());
|
||
// add the unzipper to the body stream processing pipeline
|
||
streams.push(__TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__["default"].createUnzip(zlibOptions));
|
||
// remove the content-encoding in order to not confuse downstream operations
|
||
delete res.headers['content-encoding'];
|
||
break;
|
||
case 'br':
|
||
if (isBrotliSupported) {
|
||
streams.push(__TURBOPACK__imported__module__$5b$externals$5d2f$zlib__$5b$external$5d$__$28$zlib$2c$__cjs$29$__["default"].createBrotliDecompress(brotliOptions));
|
||
delete res.headers['content-encoding'];
|
||
}
|
||
}
|
||
}
|
||
responseStream = streams.length > 1 ? __TURBOPACK__imported__module__$5b$externals$5d2f$stream__$5b$external$5d$__$28$stream$2c$__cjs$29$__["default"].pipeline(streams, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].noop) : streams[0];
|
||
const response = {
|
||
status: res.statusCode,
|
||
statusText: res.statusMessage,
|
||
headers: new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](res.headers),
|
||
config,
|
||
request: lastRequest
|
||
};
|
||
if (responseType === 'stream') {
|
||
response.data = responseStream;
|
||
(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(resolve, reject, response);
|
||
} else {
|
||
const responseBuffer = [];
|
||
let totalResponseBytes = 0;
|
||
responseStream.on('data', function handleStreamData(chunk) {
|
||
responseBuffer.push(chunk);
|
||
totalResponseBytes += chunk.length;
|
||
// make sure the content length is not over the maxContentLength if specified
|
||
if (config.maxContentLength > -1 && totalResponseBytes > config.maxContentLength) {
|
||
// stream.destroy() emit aborted event before calling reject() on Node.js v16
|
||
rejected = true;
|
||
responseStream.destroy();
|
||
abort(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('maxContentLength size of ' + config.maxContentLength + ' exceeded', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_RESPONSE, config, lastRequest));
|
||
}
|
||
});
|
||
responseStream.on('aborted', function handlerStreamAborted() {
|
||
if (rejected) {
|
||
return;
|
||
}
|
||
const err = new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('stream has been aborted', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_RESPONSE, config, lastRequest);
|
||
responseStream.destroy(err);
|
||
reject(err);
|
||
});
|
||
responseStream.on('error', function handleStreamError(err) {
|
||
if (req.destroyed) return;
|
||
reject(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(err, null, config, lastRequest));
|
||
});
|
||
responseStream.on('end', function handleStreamEnd() {
|
||
try {
|
||
let responseData = responseBuffer.length === 1 ? responseBuffer[0] : Buffer.concat(responseBuffer);
|
||
if (responseType !== 'arraybuffer') {
|
||
responseData = responseData.toString(responseEncoding);
|
||
if (!responseEncoding || responseEncoding === 'utf8') {
|
||
responseData = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].stripBOM(responseData);
|
||
}
|
||
}
|
||
response.data = responseData;
|
||
} catch (err) {
|
||
return reject(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(err, null, config, response.request, response));
|
||
}
|
||
(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(resolve, reject, response);
|
||
});
|
||
}
|
||
abortEmitter.once('abort', (err)=>{
|
||
if (!responseStream.destroyed) {
|
||
responseStream.emit('error', err);
|
||
responseStream.destroy();
|
||
}
|
||
});
|
||
});
|
||
abortEmitter.once('abort', (err)=>{
|
||
if (req.close) {
|
||
req.close();
|
||
} else {
|
||
req.destroy(err);
|
||
}
|
||
});
|
||
// Handle errors
|
||
req.on('error', function handleRequestError(err) {
|
||
reject(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(err, null, config, req));
|
||
});
|
||
// set tcp keep alive to prevent drop connection by peer
|
||
req.on('socket', function handleRequestSocket(socket) {
|
||
// default interval of sending ack packet is 1 minute
|
||
socket.setKeepAlive(true, 1000 * 60);
|
||
});
|
||
// Handle request timeout
|
||
if (config.timeout) {
|
||
// This is forcing a int timeout to avoid problems if the `req` interface doesn't handle other types.
|
||
const timeout = parseInt(config.timeout, 10);
|
||
if (Number.isNaN(timeout)) {
|
||
abort(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('error trying to parse `config.timeout` to int', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_OPTION_VALUE, config, req));
|
||
return;
|
||
}
|
||
// Sometime, the response will be very slow, and does not respond, the connect event will be block by event loop system.
|
||
// And timer callback will be fired, and abort() will be invoked before connection, then get "socket hang up" and code ECONNRESET.
|
||
// At this time, if we have a large number of request, nodejs will hang up some socket on background. and the number will up and up.
|
||
// And then these socket which be hang up will devouring CPU little by little.
|
||
// ClientRequest.setTimeout will be fired on the specify milliseconds, and can make sure that abort() will be fired after connect.
|
||
req.setTimeout(timeout, function handleRequestTimeout() {
|
||
if (isDone) return;
|
||
let timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
||
const transitional = config.transitional || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$transitional$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
if (config.timeoutErrorMessage) {
|
||
timeoutErrorMessage = config.timeoutErrorMessage;
|
||
}
|
||
abort(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](timeoutErrorMessage, transitional.clarifyTimeoutError ? __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ETIMEDOUT : __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ECONNABORTED, config, req));
|
||
});
|
||
} else {
|
||
// explicitly reset the socket timeout value for a possible `keep-alive` request
|
||
req.setTimeout(0);
|
||
}
|
||
// Send the request
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isStream(data)) {
|
||
let ended = false;
|
||
let errored = false;
|
||
data.on('end', ()=>{
|
||
ended = true;
|
||
});
|
||
data.once('error', (err)=>{
|
||
errored = true;
|
||
req.destroy(err);
|
||
});
|
||
data.on('close', ()=>{
|
||
if (!ended && !errored) {
|
||
abort(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Request stream has been aborted', config, req));
|
||
}
|
||
});
|
||
data.pipe(req);
|
||
} else {
|
||
data && req.write(data);
|
||
req.end();
|
||
}
|
||
});
|
||
};
|
||
const __setProxy = setProxy;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/isURLSameOrigin.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
;
|
||
const __TURBOPACK__default__export__ = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].hasStandardBrowserEnv ? ((origin, isMSIE)=>(url)=>{
|
||
url = new URL(url, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].origin);
|
||
return origin.protocol === url.protocol && origin.host === url.host && (isMSIE || origin.port === url.port);
|
||
})(new URL(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].origin), __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].navigator && /(msie|trident)/i.test(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].navigator.userAgent)) : ()=>true;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/cookies.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
const __TURBOPACK__default__export__ = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].hasStandardBrowserEnv ? {
|
||
write (name, value, expires, path, domain, secure, sameSite) {
|
||
if (typeof document === 'undefined') return;
|
||
const cookie = [
|
||
`${name}=${encodeURIComponent(value)}`
|
||
];
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isNumber(expires)) {
|
||
cookie.push(`expires=${new Date(expires).toUTCString()}`);
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(path)) {
|
||
cookie.push(`path=${path}`);
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(domain)) {
|
||
cookie.push(`domain=${domain}`);
|
||
}
|
||
if (secure === true) {
|
||
cookie.push('secure');
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(sameSite)) {
|
||
cookie.push(`SameSite=${sameSite}`);
|
||
}
|
||
document.cookie = cookie.join('; ');
|
||
},
|
||
read (name) {
|
||
if (typeof document === 'undefined') return null;
|
||
const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
|
||
return match ? decodeURIComponent(match[1]) : null;
|
||
},
|
||
remove (name) {
|
||
this.write(name, '', Date.now() - 86400000, '/');
|
||
}
|
||
} : {
|
||
write () {},
|
||
read () {
|
||
return null;
|
||
},
|
||
remove () {}
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/mergeConfig.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>mergeConfig
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
const headersToObject = (thing)=>thing instanceof __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"] ? {
|
||
...thing
|
||
} : thing;
|
||
function mergeConfig(config1, config2) {
|
||
// eslint-disable-next-line no-param-reassign
|
||
config2 = config2 || {};
|
||
const config = {};
|
||
function getMergedValue(target, source, prop, caseless) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isPlainObject(target) && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isPlainObject(source)) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].merge.call({
|
||
caseless
|
||
}, target, source);
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isPlainObject(source)) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].merge({}, source);
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(source)) {
|
||
return source.slice();
|
||
}
|
||
return source;
|
||
}
|
||
function mergeDeepProperties(a, b, prop, caseless) {
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(b)) {
|
||
return getMergedValue(a, b, prop, caseless);
|
||
} else if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(a)) {
|
||
return getMergedValue(undefined, a, prop, caseless);
|
||
}
|
||
}
|
||
// eslint-disable-next-line consistent-return
|
||
function valueFromConfig2(a, b) {
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(b)) {
|
||
return getMergedValue(undefined, b);
|
||
}
|
||
}
|
||
// eslint-disable-next-line consistent-return
|
||
function defaultToConfig2(a, b) {
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(b)) {
|
||
return getMergedValue(undefined, b);
|
||
} else if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(a)) {
|
||
return getMergedValue(undefined, a);
|
||
}
|
||
}
|
||
// eslint-disable-next-line consistent-return
|
||
function mergeDirectKeys(a, b, prop) {
|
||
if (prop in config2) {
|
||
return getMergedValue(a, b);
|
||
} else if (prop in config1) {
|
||
return getMergedValue(undefined, a);
|
||
}
|
||
}
|
||
const mergeMap = {
|
||
url: valueFromConfig2,
|
||
method: valueFromConfig2,
|
||
data: valueFromConfig2,
|
||
baseURL: defaultToConfig2,
|
||
transformRequest: defaultToConfig2,
|
||
transformResponse: defaultToConfig2,
|
||
paramsSerializer: defaultToConfig2,
|
||
timeout: defaultToConfig2,
|
||
timeoutMessage: defaultToConfig2,
|
||
withCredentials: defaultToConfig2,
|
||
withXSRFToken: defaultToConfig2,
|
||
adapter: defaultToConfig2,
|
||
responseType: defaultToConfig2,
|
||
xsrfCookieName: defaultToConfig2,
|
||
xsrfHeaderName: defaultToConfig2,
|
||
onUploadProgress: defaultToConfig2,
|
||
onDownloadProgress: defaultToConfig2,
|
||
decompress: defaultToConfig2,
|
||
maxContentLength: defaultToConfig2,
|
||
maxBodyLength: defaultToConfig2,
|
||
beforeRedirect: defaultToConfig2,
|
||
transport: defaultToConfig2,
|
||
httpAgent: defaultToConfig2,
|
||
httpsAgent: defaultToConfig2,
|
||
cancelToken: defaultToConfig2,
|
||
socketPath: defaultToConfig2,
|
||
responseEncoding: defaultToConfig2,
|
||
validateStatus: mergeDirectKeys,
|
||
headers: (a, b, prop)=>mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
||
};
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(Object.keys({
|
||
...config1,
|
||
...config2
|
||
}), function computeConfigValue(prop) {
|
||
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') return;
|
||
const merge = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
|
||
const configValue = merge(config1[prop], config2[prop], prop);
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(configValue) && merge !== mergeDirectKeys || (config[prop] = configValue);
|
||
});
|
||
return config;
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/resolveConfig.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$isURLSameOrigin$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/isURLSameOrigin.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$cookies$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/cookies.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$buildFullPath$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/buildFullPath.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/mergeConfig.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$buildURL$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/buildURL.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
const __TURBOPACK__default__export__ = (config)=>{
|
||
const newConfig = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])({}, config);
|
||
let { data, withXSRFToken, xsrfHeaderName, xsrfCookieName, headers, auth } = newConfig;
|
||
newConfig.headers = headers = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(headers);
|
||
newConfig.url = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$buildURL$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$buildFullPath$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
|
||
// HTTP basic authentication
|
||
if (auth) {
|
||
headers.set('Authorization', 'Basic ' + btoa((auth.username || '') + ':' + (auth.password ? unescape(encodeURIComponent(auth.password)) : '')));
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFormData(data)) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].hasStandardBrowserEnv || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].hasStandardBrowserWebWorkerEnv) {
|
||
headers.setContentType(undefined); // browser handles it
|
||
} else if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(data.getHeaders)) {
|
||
// Node.js FormData (like form-data package)
|
||
const formHeaders = data.getHeaders();
|
||
// Only set safe headers to avoid overwriting security headers
|
||
const allowedHeaders = [
|
||
'content-type',
|
||
'content-length'
|
||
];
|
||
Object.entries(formHeaders).forEach(([key, val])=>{
|
||
if (allowedHeaders.includes(key.toLowerCase())) {
|
||
headers.set(key, val);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
// Add xsrf header
|
||
// This is only done if running in a standard browser environment.
|
||
// Specifically not if we're in a web worker, or react-native.
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].hasStandardBrowserEnv) {
|
||
withXSRFToken && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
|
||
if (withXSRFToken || withXSRFToken !== false && (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$isURLSameOrigin$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(newConfig.url)) {
|
||
// Add xsrf header
|
||
const xsrfValue = xsrfHeaderName && xsrfCookieName && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$cookies$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].read(xsrfCookieName);
|
||
if (xsrfValue) {
|
||
headers.set(xsrfHeaderName, xsrfValue);
|
||
}
|
||
}
|
||
}
|
||
return newConfig;
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/xhr.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/settle.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$transitional$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/transitional.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CanceledError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$parseProtocol$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/parseProtocol.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/progressEventReducer.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$resolveConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/resolveConfig.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
const isXHRAdapterSupported = typeof XMLHttpRequest !== 'undefined';
|
||
const __TURBOPACK__default__export__ = isXHRAdapterSupported && function(config) {
|
||
return new Promise(function dispatchXhrRequest(resolve, reject) {
|
||
const _config = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$resolveConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(config);
|
||
let requestData = _config.data;
|
||
const requestHeaders = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(_config.headers).normalize();
|
||
let { responseType, onUploadProgress, onDownloadProgress } = _config;
|
||
let onCanceled;
|
||
let uploadThrottled, downloadThrottled;
|
||
let flushUpload, flushDownload;
|
||
function done() {
|
||
flushUpload && flushUpload(); // flush events
|
||
flushDownload && flushDownload(); // flush events
|
||
_config.cancelToken && _config.cancelToken.unsubscribe(onCanceled);
|
||
_config.signal && _config.signal.removeEventListener('abort', onCanceled);
|
||
}
|
||
let request = new XMLHttpRequest();
|
||
request.open(_config.method.toUpperCase(), _config.url, true);
|
||
// Set the request timeout in MS
|
||
request.timeout = _config.timeout;
|
||
function onloadend() {
|
||
if (!request) {
|
||
return;
|
||
}
|
||
// Prepare the response
|
||
const responseHeaders = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from('getAllResponseHeaders' in request && request.getAllResponseHeaders());
|
||
const responseData = !responseType || responseType === 'text' || responseType === 'json' ? request.responseText : request.response;
|
||
const response = {
|
||
data: responseData,
|
||
status: request.status,
|
||
statusText: request.statusText,
|
||
headers: responseHeaders,
|
||
config,
|
||
request
|
||
};
|
||
(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(function _resolve(value) {
|
||
resolve(value);
|
||
done();
|
||
}, function _reject(err) {
|
||
reject(err);
|
||
done();
|
||
}, response);
|
||
// Clean up request
|
||
request = null;
|
||
}
|
||
if ('onloadend' in request) {
|
||
// Use onloadend if available
|
||
request.onloadend = onloadend;
|
||
} else {
|
||
// Listen for ready state to emulate onloadend
|
||
request.onreadystatechange = function handleLoad() {
|
||
if (!request || request.readyState !== 4) {
|
||
return;
|
||
}
|
||
// The request errored out and we didn't get a response, this will be
|
||
// handled by onerror instead
|
||
// With one exception: request that using file: protocol, most browsers
|
||
// will return status as 0 even though it's a successful request
|
||
if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {
|
||
return;
|
||
}
|
||
// readystate handler is calling before onerror or ontimeout handlers,
|
||
// so we should call onloadend on the next 'tick'
|
||
setTimeout(onloadend);
|
||
};
|
||
}
|
||
// Handle browser request cancellation (as opposed to a manual cancellation)
|
||
request.onabort = function handleAbort() {
|
||
if (!request) {
|
||
return;
|
||
}
|
||
reject(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Request aborted', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ECONNABORTED, config, request));
|
||
// Clean up request
|
||
request = null;
|
||
};
|
||
// Handle low level network errors
|
||
request.onerror = function handleError(event) {
|
||
// Browsers deliver a ProgressEvent in XHR onerror
|
||
// (message may be empty; when present, surface it)
|
||
// See https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/error_event
|
||
const msg = event && event.message ? event.message : 'Network Error';
|
||
const err = new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](msg, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_NETWORK, config, request);
|
||
// attach the underlying event for consumers who want details
|
||
err.event = event || null;
|
||
reject(err);
|
||
request = null;
|
||
};
|
||
// Handle timeout
|
||
request.ontimeout = function handleTimeout() {
|
||
let timeoutErrorMessage = _config.timeout ? 'timeout of ' + _config.timeout + 'ms exceeded' : 'timeout exceeded';
|
||
const transitional = _config.transitional || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$transitional$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
if (_config.timeoutErrorMessage) {
|
||
timeoutErrorMessage = _config.timeoutErrorMessage;
|
||
}
|
||
reject(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](timeoutErrorMessage, transitional.clarifyTimeoutError ? __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ETIMEDOUT : __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ECONNABORTED, config, request));
|
||
// Clean up request
|
||
request = null;
|
||
};
|
||
// Remove Content-Type if data is undefined
|
||
requestData === undefined && requestHeaders.setContentType(null);
|
||
// Add headers to the request
|
||
if ('setRequestHeader' in request) {
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(requestHeaders.toJSON(), function setRequestHeader(val, key) {
|
||
request.setRequestHeader(key, val);
|
||
});
|
||
}
|
||
// Add withCredentials to request if needed
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isUndefined(_config.withCredentials)) {
|
||
request.withCredentials = !!_config.withCredentials;
|
||
}
|
||
// Add responseType to request if needed
|
||
if (responseType && responseType !== 'json') {
|
||
request.responseType = _config.responseType;
|
||
}
|
||
// Handle progress if needed
|
||
if (onDownloadProgress) {
|
||
[downloadThrottled, flushDownload] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventReducer"])(onDownloadProgress, true);
|
||
request.addEventListener('progress', downloadThrottled);
|
||
}
|
||
// Not all browsers support upload events
|
||
if (onUploadProgress && request.upload) {
|
||
[uploadThrottled, flushUpload] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventReducer"])(onUploadProgress);
|
||
request.upload.addEventListener('progress', uploadThrottled);
|
||
request.upload.addEventListener('loadend', flushUpload);
|
||
}
|
||
if (_config.cancelToken || _config.signal) {
|
||
// Handle cancellation
|
||
// eslint-disable-next-line func-names
|
||
onCanceled = (cancel)=>{
|
||
if (!request) {
|
||
return;
|
||
}
|
||
reject(!cancel || cancel.type ? new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](null, config, request) : cancel);
|
||
request.abort();
|
||
request = null;
|
||
};
|
||
_config.cancelToken && _config.cancelToken.subscribe(onCanceled);
|
||
if (_config.signal) {
|
||
_config.signal.aborted ? onCanceled() : _config.signal.addEventListener('abort', onCanceled);
|
||
}
|
||
}
|
||
const protocol = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$parseProtocol$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(_config.url);
|
||
if (protocol && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].protocols.indexOf(protocol) === -1) {
|
||
reject(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Unsupported protocol ' + protocol + ':', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_REQUEST, config));
|
||
return;
|
||
}
|
||
// Send the request
|
||
request.send(requestData || null);
|
||
});
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/composeSignals.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CanceledError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
const composeSignals = (signals, timeout)=>{
|
||
const { length } = signals = signals ? signals.filter(Boolean) : [];
|
||
if (timeout || length) {
|
||
let controller = new AbortController();
|
||
let aborted;
|
||
const onabort = function(reason) {
|
||
if (!aborted) {
|
||
aborted = true;
|
||
unsubscribe();
|
||
const err = reason instanceof Error ? reason : this.reason;
|
||
controller.abort(err instanceof __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"] ? err : new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](err instanceof Error ? err.message : err));
|
||
}
|
||
};
|
||
let timer = timeout && setTimeout(()=>{
|
||
timer = null;
|
||
onabort(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](`timeout of ${timeout}ms exceeded`, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ETIMEDOUT));
|
||
}, timeout);
|
||
const unsubscribe = ()=>{
|
||
if (signals) {
|
||
timer && clearTimeout(timer);
|
||
timer = null;
|
||
signals.forEach((signal)=>{
|
||
signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
|
||
});
|
||
signals = null;
|
||
}
|
||
};
|
||
signals.forEach((signal)=>signal.addEventListener('abort', onabort));
|
||
const { signal } = controller;
|
||
signal.unsubscribe = ()=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].asap(unsubscribe);
|
||
return signal;
|
||
}
|
||
};
|
||
const __TURBOPACK__default__export__ = composeSignals;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/trackStream.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"readBytes",
|
||
()=>readBytes,
|
||
"streamChunk",
|
||
()=>streamChunk,
|
||
"trackStream",
|
||
()=>trackStream
|
||
]);
|
||
const streamChunk = function*(chunk, chunkSize) {
|
||
let len = chunk.byteLength;
|
||
if (!chunkSize || len < chunkSize) {
|
||
yield chunk;
|
||
return;
|
||
}
|
||
let pos = 0;
|
||
let end;
|
||
while(pos < len){
|
||
end = pos + chunkSize;
|
||
yield chunk.slice(pos, end);
|
||
pos = end;
|
||
}
|
||
};
|
||
const readBytes = async function*(iterable, chunkSize) {
|
||
for await (const chunk of readStream(iterable)){
|
||
yield* streamChunk(chunk, chunkSize);
|
||
}
|
||
};
|
||
const readStream = async function*(stream) {
|
||
if (stream[Symbol.asyncIterator]) {
|
||
yield* stream;
|
||
return;
|
||
}
|
||
const reader = stream.getReader();
|
||
try {
|
||
for(;;){
|
||
const { done, value } = await reader.read();
|
||
if (done) {
|
||
break;
|
||
}
|
||
yield value;
|
||
}
|
||
} finally{
|
||
await reader.cancel();
|
||
}
|
||
};
|
||
const trackStream = (stream, chunkSize, onProgress, onFinish)=>{
|
||
const iterator = readBytes(stream, chunkSize);
|
||
let bytes = 0;
|
||
let done;
|
||
let _onFinish = (e)=>{
|
||
if (!done) {
|
||
done = true;
|
||
onFinish && onFinish(e);
|
||
}
|
||
};
|
||
return new ReadableStream({
|
||
async pull (controller) {
|
||
try {
|
||
const { done, value } = await iterator.next();
|
||
if (done) {
|
||
_onFinish();
|
||
controller.close();
|
||
return;
|
||
}
|
||
let len = value.byteLength;
|
||
if (onProgress) {
|
||
let loadedBytes = bytes += len;
|
||
onProgress(loadedBytes);
|
||
}
|
||
controller.enqueue(new Uint8Array(value));
|
||
} catch (err) {
|
||
_onFinish(err);
|
||
throw err;
|
||
}
|
||
},
|
||
cancel (reason) {
|
||
_onFinish(reason);
|
||
return iterator.return();
|
||
}
|
||
}, {
|
||
highWaterMark: 2
|
||
});
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/fetch.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__,
|
||
"getFetch",
|
||
()=>getFetch
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/platform/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$composeSignals$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/composeSignals.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$trackStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/trackStream.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/progressEventReducer.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$resolveConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/resolveConfig.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/settle.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
const DEFAULT_CHUNK_SIZE = 64 * 1024;
|
||
const { isFunction } = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
const globalFetchAPI = (({ Request, Response })=>({
|
||
Request,
|
||
Response
|
||
}))(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].global);
|
||
const { ReadableStream, TextEncoder } = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].global;
|
||
const test = (fn, ...args)=>{
|
||
try {
|
||
return !!fn(...args);
|
||
} catch (e) {
|
||
return false;
|
||
}
|
||
};
|
||
const factory = (env)=>{
|
||
env = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].merge.call({
|
||
skipUndefined: true
|
||
}, globalFetchAPI, env);
|
||
const { fetch: envFetch, Request, Response } = env;
|
||
const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
|
||
const isRequestSupported = isFunction(Request);
|
||
const isResponseSupported = isFunction(Response);
|
||
if (!isFetchSupported) {
|
||
return false;
|
||
}
|
||
const isReadableStreamSupported = isFetchSupported && isFunction(ReadableStream);
|
||
const encodeText = isFetchSupported && (typeof TextEncoder === 'function' ? ((encoder)=>(str)=>encoder.encode(str))(new TextEncoder()) : async (str)=>new Uint8Array(await new Request(str).arrayBuffer()));
|
||
const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(()=>{
|
||
let duplexAccessed = false;
|
||
const hasContentType = new Request(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].origin, {
|
||
body: new ReadableStream(),
|
||
method: 'POST',
|
||
get duplex () {
|
||
duplexAccessed = true;
|
||
return 'half';
|
||
}
|
||
}).headers.has('Content-Type');
|
||
return duplexAccessed && !hasContentType;
|
||
});
|
||
const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(()=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isReadableStream(new Response('').body));
|
||
const resolvers = {
|
||
stream: supportsResponseStream && ((res)=>res.body)
|
||
};
|
||
isFetchSupported && (()=>{
|
||
[
|
||
'text',
|
||
'arrayBuffer',
|
||
'blob',
|
||
'formData',
|
||
'stream'
|
||
].forEach((type)=>{
|
||
!resolvers[type] && (resolvers[type] = (res, config)=>{
|
||
let method = res && res[type];
|
||
if (method) {
|
||
return method.call(res);
|
||
}
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](`Response type '${type}' is not supported`, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_NOT_SUPPORT, config);
|
||
});
|
||
});
|
||
})();
|
||
const getBodyLength = async (body)=>{
|
||
if (body == null) {
|
||
return 0;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isBlob(body)) {
|
||
return body.size;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isSpecCompliantForm(body)) {
|
||
const _request = new Request(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$platform$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].origin, {
|
||
method: 'POST',
|
||
body
|
||
});
|
||
return (await _request.arrayBuffer()).byteLength;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArrayBufferView(body) || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArrayBuffer(body)) {
|
||
return body.byteLength;
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isURLSearchParams(body)) {
|
||
body = body + '';
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(body)) {
|
||
return (await encodeText(body)).byteLength;
|
||
}
|
||
};
|
||
const resolveBodyLength = async (headers, body)=>{
|
||
const length = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFiniteNumber(headers.getContentLength());
|
||
return length == null ? getBodyLength(body) : length;
|
||
};
|
||
return async (config)=>{
|
||
let { url, method, data, signal, cancelToken, timeout, onDownloadProgress, onUploadProgress, responseType, headers, withCredentials = 'same-origin', fetchOptions } = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$resolveConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(config);
|
||
let _fetch = envFetch || fetch;
|
||
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
||
let composedSignal = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$composeSignals$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])([
|
||
signal,
|
||
cancelToken && cancelToken.toAbortSignal()
|
||
], timeout);
|
||
let request = null;
|
||
const unsubscribe = composedSignal && composedSignal.unsubscribe && (()=>{
|
||
composedSignal.unsubscribe();
|
||
});
|
||
let requestContentLength;
|
||
try {
|
||
if (onUploadProgress && supportsRequestStream && method !== 'get' && method !== 'head' && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
|
||
let _request = new Request(url, {
|
||
method: 'POST',
|
||
body: data,
|
||
duplex: 'half'
|
||
});
|
||
let contentTypeHeader;
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFormData(data) && (contentTypeHeader = _request.headers.get('content-type'))) {
|
||
headers.setContentType(contentTypeHeader);
|
||
}
|
||
if (_request.body) {
|
||
const [onProgress, flush] = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventDecorator"])(requestContentLength, (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventReducer"])((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["asyncDecorator"])(onUploadProgress)));
|
||
data = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$trackStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["trackStream"])(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
||
}
|
||
}
|
||
if (!__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isString(withCredentials)) {
|
||
withCredentials = withCredentials ? 'include' : 'omit';
|
||
}
|
||
// Cloudflare Workers throws when credentials are defined
|
||
// see https://github.com/cloudflare/workerd/issues/902
|
||
const isCredentialsSupported = isRequestSupported && 'credentials' in Request.prototype;
|
||
const resolvedOptions = {
|
||
...fetchOptions,
|
||
signal: composedSignal,
|
||
method: method.toUpperCase(),
|
||
headers: headers.normalize().toJSON(),
|
||
body: data,
|
||
duplex: 'half',
|
||
credentials: isCredentialsSupported ? withCredentials : undefined
|
||
};
|
||
request = isRequestSupported && new Request(url, resolvedOptions);
|
||
let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
|
||
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
||
if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
|
||
const options = {};
|
||
[
|
||
'status',
|
||
'statusText',
|
||
'headers'
|
||
].forEach((prop)=>{
|
||
options[prop] = response[prop];
|
||
});
|
||
const responseContentLength = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].toFiniteNumber(response.headers.get('content-length'));
|
||
const [onProgress, flush] = onDownloadProgress && (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventDecorator"])(responseContentLength, (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["progressEventReducer"])((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$progressEventReducer$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["asyncDecorator"])(onDownloadProgress), true)) || [];
|
||
response = new Response((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$trackStream$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["trackStream"])(response.body, DEFAULT_CHUNK_SIZE, onProgress, ()=>{
|
||
flush && flush();
|
||
unsubscribe && unsubscribe();
|
||
}), options);
|
||
}
|
||
responseType = responseType || 'text';
|
||
let responseData = await resolvers[__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].findKey(resolvers, responseType) || 'text'](response, config);
|
||
!isStreamResponse && unsubscribe && unsubscribe();
|
||
return await new Promise((resolve, reject)=>{
|
||
(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$settle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(resolve, reject, {
|
||
data: responseData,
|
||
headers: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(response.headers),
|
||
status: response.status,
|
||
statusText: response.statusText,
|
||
config,
|
||
request
|
||
});
|
||
});
|
||
} catch (err) {
|
||
unsubscribe && unsubscribe();
|
||
if (err && err.name === 'TypeError' && /Load failed|fetch/i.test(err.message)) {
|
||
throw Object.assign(new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Network Error', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_NETWORK, config, request, err && err.response), {
|
||
cause: err.cause || err
|
||
});
|
||
}
|
||
throw __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(err, err && err.code, config, request, err && err.response);
|
||
}
|
||
};
|
||
};
|
||
const seedCache = new Map();
|
||
const getFetch = (config)=>{
|
||
let env = config && config.env || {};
|
||
const { fetch: fetch1, Request, Response } = env;
|
||
const seeds = [
|
||
Request,
|
||
Response,
|
||
fetch1
|
||
];
|
||
let len = seeds.length, i = len, seed, target, map = seedCache;
|
||
while(i--){
|
||
seed = seeds[i];
|
||
target = map.get(seed);
|
||
target === undefined && map.set(seed, target = i ? new Map() : factory(env));
|
||
map = target;
|
||
}
|
||
return target;
|
||
};
|
||
const adapter = getFetch();
|
||
const __TURBOPACK__default__export__ = adapter;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/adapters.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$http$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/http.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$xhr$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/xhr.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$fetch$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/fetch.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
/**
|
||
* Known adapters mapping.
|
||
* Provides environment-specific adapters for Axios:
|
||
* - `http` for Node.js
|
||
* - `xhr` for browsers
|
||
* - `fetch` for fetch API-based requests
|
||
*
|
||
* @type {Object<string, Function|Object>}
|
||
*/ const knownAdapters = {
|
||
http: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$http$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"],
|
||
xhr: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$xhr$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"],
|
||
fetch: {
|
||
get: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$fetch$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["getFetch"]
|
||
}
|
||
};
|
||
// Assign adapter names for easier debugging and identification
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach(knownAdapters, (fn, value)=>{
|
||
if (fn) {
|
||
try {
|
||
Object.defineProperty(fn, 'name', {
|
||
value
|
||
});
|
||
} catch (e) {
|
||
// eslint-disable-next-line no-empty
|
||
}
|
||
Object.defineProperty(fn, 'adapterName', {
|
||
value
|
||
});
|
||
}
|
||
});
|
||
/**
|
||
* Render a rejection reason string for unknown or unsupported adapters
|
||
*
|
||
* @param {string} reason
|
||
* @returns {string}
|
||
*/ const renderReason = (reason)=>`- ${reason}`;
|
||
/**
|
||
* Check if the adapter is resolved (function, null, or false)
|
||
*
|
||
* @param {Function|null|false} adapter
|
||
* @returns {boolean}
|
||
*/ const isResolvedHandle = (adapter)=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(adapter) || adapter === null || adapter === false;
|
||
/**
|
||
* Get the first suitable adapter from the provided list.
|
||
* Tries each adapter in order until a supported one is found.
|
||
* Throws an AxiosError if no adapter is suitable.
|
||
*
|
||
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
|
||
* @param {Object} config - Axios request configuration
|
||
* @throws {AxiosError} If no suitable adapter is available
|
||
* @returns {Function} The resolved adapter function
|
||
*/ function getAdapter(adapters, config) {
|
||
adapters = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isArray(adapters) ? adapters : [
|
||
adapters
|
||
];
|
||
const { length } = adapters;
|
||
let nameOrAdapter;
|
||
let adapter;
|
||
const rejectedReasons = {};
|
||
for(let i = 0; i < length; i++){
|
||
nameOrAdapter = adapters[i];
|
||
let id;
|
||
adapter = nameOrAdapter;
|
||
if (!isResolvedHandle(nameOrAdapter)) {
|
||
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
|
||
if (adapter === undefined) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](`Unknown adapter '${id}'`);
|
||
}
|
||
}
|
||
if (adapter && (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(adapter) || (adapter = adapter.get(config)))) {
|
||
break;
|
||
}
|
||
rejectedReasons[id || '#' + i] = adapter;
|
||
}
|
||
if (!adapter) {
|
||
const reasons = Object.entries(rejectedReasons).map(([id, state])=>`adapter ${id} ` + (state === false ? 'is not supported by the environment' : 'is not available in the build'));
|
||
let s = length ? reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0]) : 'as no adapter specified';
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](`There is no suitable adapter to dispatch the request ` + s, 'ERR_NOT_SUPPORT');
|
||
}
|
||
return adapter;
|
||
}
|
||
const __TURBOPACK__default__export__ = {
|
||
/**
|
||
* Resolve an adapter from a list of adapter names or functions.
|
||
* @type {Function}
|
||
*/ getAdapter,
|
||
/**
|
||
* Exposes all known adapters
|
||
* @type {Object<string, Function|Object>}
|
||
*/ adapters: knownAdapters
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/dispatchRequest.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>dispatchRequest
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$transformData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/transformData.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$isCancel$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/isCancel.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CanceledError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$adapters$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/adapters.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
/**
|
||
* Throws a `CanceledError` if cancellation has been requested.
|
||
*
|
||
* @param {Object} config The config that is to be used for the request
|
||
*
|
||
* @returns {void}
|
||
*/ function throwIfCancellationRequested(config) {
|
||
if (config.cancelToken) {
|
||
config.cancelToken.throwIfRequested();
|
||
}
|
||
if (config.signal && config.signal.aborted) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](null, config);
|
||
}
|
||
}
|
||
function dispatchRequest(config) {
|
||
throwIfCancellationRequested(config);
|
||
config.headers = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(config.headers);
|
||
// Transform request data
|
||
config.data = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$transformData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].call(config, config.transformRequest);
|
||
if ([
|
||
'post',
|
||
'put',
|
||
'patch'
|
||
].indexOf(config.method) !== -1) {
|
||
config.headers.setContentType('application/x-www-form-urlencoded', false);
|
||
}
|
||
const adapter = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$adapters$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].getAdapter(config.adapter || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].adapter, config);
|
||
return adapter(config).then(function onAdapterResolution(response) {
|
||
throwIfCancellationRequested(config);
|
||
// Transform response data
|
||
response.data = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$transformData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].call(config, config.transformResponse, response);
|
||
response.headers = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(response.headers);
|
||
return response;
|
||
}, function onAdapterRejection(reason) {
|
||
if (!(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$isCancel$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(reason)) {
|
||
throwIfCancellationRequested(config);
|
||
// Transform response data
|
||
if (reason && reason.response) {
|
||
reason.response.data = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$transformData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].call(config, config.transformResponse, reason.response);
|
||
reason.response.headers = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].from(reason.response.headers);
|
||
}
|
||
}
|
||
return Promise.reject(reason);
|
||
});
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/validator.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$env$2f$data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/env/data.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
const validators = {};
|
||
// eslint-disable-next-line func-names
|
||
[
|
||
'object',
|
||
'boolean',
|
||
'number',
|
||
'function',
|
||
'string',
|
||
'symbol'
|
||
].forEach((type, i)=>{
|
||
validators[type] = function validator(thing) {
|
||
return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;
|
||
};
|
||
});
|
||
const deprecatedWarnings = {};
|
||
/**
|
||
* Transitional option validator
|
||
*
|
||
* @param {function|boolean?} validator - set to false if the transitional option has been removed
|
||
* @param {string?} version - deprecated version / removed since version
|
||
* @param {string?} message - some message with additional info
|
||
*
|
||
* @returns {function}
|
||
*/ validators.transitional = function transitional(validator, version, message) {
|
||
function formatMessage(opt, desc) {
|
||
return '[Axios v' + __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$env$2f$data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["VERSION"] + "] Transitional option '" + opt + "'" + desc + (message ? '. ' + message : '');
|
||
}
|
||
// eslint-disable-next-line func-names
|
||
return (value, opt, opts)=>{
|
||
if (validator === false) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')), __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_DEPRECATED);
|
||
}
|
||
if (version && !deprecatedWarnings[opt]) {
|
||
deprecatedWarnings[opt] = true;
|
||
// eslint-disable-next-line no-console
|
||
console.warn(formatMessage(opt, ' has been deprecated since v' + version + ' and will be removed in the near future'));
|
||
}
|
||
return validator ? validator(value, opt, opts) : true;
|
||
};
|
||
};
|
||
validators.spelling = function spelling(correctSpelling) {
|
||
return (value, opt)=>{
|
||
// eslint-disable-next-line no-console
|
||
console.warn(`${opt} is likely a misspelling of ${correctSpelling}`);
|
||
return true;
|
||
};
|
||
};
|
||
/**
|
||
* Assert object's properties type
|
||
*
|
||
* @param {object} options
|
||
* @param {object} schema
|
||
* @param {boolean?} allowUnknown
|
||
*
|
||
* @returns {object}
|
||
*/ function assertOptions(options, schema, allowUnknown) {
|
||
if (typeof options !== 'object') {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('options must be an object', __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_OPTION_VALUE);
|
||
}
|
||
const keys = Object.keys(options);
|
||
let i = keys.length;
|
||
while(i-- > 0){
|
||
const opt = keys[i];
|
||
const validator = schema[opt];
|
||
if (validator) {
|
||
const value = options[opt];
|
||
const result = value === undefined || validator(value, opt, options);
|
||
if (result !== true) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('option ' + opt + ' must be ' + result, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_OPTION_VALUE);
|
||
}
|
||
continue;
|
||
}
|
||
if (allowUnknown !== true) {
|
||
throw new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]('Unknown option ' + opt, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].ERR_BAD_OPTION);
|
||
}
|
||
}
|
||
}
|
||
const __TURBOPACK__default__export__ = {
|
||
assertOptions,
|
||
validators
|
||
};
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/Axios.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$buildURL$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/buildURL.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$InterceptorManager$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/InterceptorManager.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$dispatchRequest$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/dispatchRequest.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/mergeConfig.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$buildFullPath$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/buildFullPath.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$validator$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/validator.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$transitional$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/transitional.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
const validators = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$validator$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].validators;
|
||
/**
|
||
* Create a new instance of Axios
|
||
*
|
||
* @param {Object} instanceConfig The default config for the instance
|
||
*
|
||
* @return {Axios} A new instance of Axios
|
||
*/ class Axios {
|
||
constructor(instanceConfig){
|
||
this.defaults = instanceConfig || {};
|
||
this.interceptors = {
|
||
request: new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$InterceptorManager$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](),
|
||
response: new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$InterceptorManager$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]()
|
||
};
|
||
}
|
||
/**
|
||
* Dispatch a request
|
||
*
|
||
* @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
|
||
* @param {?Object} config
|
||
*
|
||
* @returns {Promise} The Promise to be fulfilled
|
||
*/ async request(configOrUrl, config) {
|
||
try {
|
||
return await this._request(configOrUrl, config);
|
||
} catch (err) {
|
||
if (err instanceof Error) {
|
||
let dummy = {};
|
||
Error.captureStackTrace ? Error.captureStackTrace(dummy) : dummy = new Error();
|
||
// slice off the Error: ... line
|
||
const stack = dummy.stack ? dummy.stack.replace(/^.+\n/, '') : '';
|
||
try {
|
||
if (!err.stack) {
|
||
err.stack = stack;
|
||
// match without the 2 top stack lines
|
||
} else if (stack && !String(err.stack).endsWith(stack.replace(/^.+\n.+\n/, ''))) {
|
||
err.stack += '\n' + stack;
|
||
}
|
||
} catch (e) {
|
||
// ignore the case where "stack" is an un-writable property
|
||
}
|
||
}
|
||
throw err;
|
||
}
|
||
}
|
||
_request(configOrUrl, config) {
|
||
/*eslint no-param-reassign:0*/ // Allow for axios('example/url'[, config]) a la fetch API
|
||
if (typeof configOrUrl === 'string') {
|
||
config = config || {};
|
||
config.url = configOrUrl;
|
||
} else {
|
||
config = configOrUrl || {};
|
||
}
|
||
config = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(this.defaults, config);
|
||
const { transitional, paramsSerializer, headers } = config;
|
||
if (transitional !== undefined) {
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$validator$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].assertOptions(transitional, {
|
||
silentJSONParsing: validators.transitional(validators.boolean),
|
||
forcedJSONParsing: validators.transitional(validators.boolean),
|
||
clarifyTimeoutError: validators.transitional(validators.boolean),
|
||
legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
|
||
}, false);
|
||
}
|
||
if (paramsSerializer != null) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isFunction(paramsSerializer)) {
|
||
config.paramsSerializer = {
|
||
serialize: paramsSerializer
|
||
};
|
||
} else {
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$validator$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].assertOptions(paramsSerializer, {
|
||
encode: validators.function,
|
||
serialize: validators.function
|
||
}, true);
|
||
}
|
||
}
|
||
// Set config.allowAbsoluteUrls
|
||
if (config.allowAbsoluteUrls !== undefined) {
|
||
// do nothing
|
||
} else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
||
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
||
} else {
|
||
config.allowAbsoluteUrls = true;
|
||
}
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$validator$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].assertOptions(config, {
|
||
baseUrl: validators.spelling('baseURL'),
|
||
withXsrfToken: validators.spelling('withXSRFToken')
|
||
}, true);
|
||
// Set config.method
|
||
config.method = (config.method || this.defaults.method || 'get').toLowerCase();
|
||
// Flatten headers
|
||
let contextHeaders = headers && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].merge(headers.common, headers[config.method]);
|
||
headers && __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach([
|
||
'delete',
|
||
'get',
|
||
'head',
|
||
'post',
|
||
'put',
|
||
'patch',
|
||
'common'
|
||
], (method)=>{
|
||
delete headers[method];
|
||
});
|
||
config.headers = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].concat(contextHeaders, headers);
|
||
// filter out skipped interceptors
|
||
const requestInterceptorChain = [];
|
||
let synchronousRequestInterceptors = true;
|
||
this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {
|
||
if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {
|
||
return;
|
||
}
|
||
synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;
|
||
const transitional = config.transitional || __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$transitional$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
const legacyInterceptorReqResOrdering = transitional && transitional.legacyInterceptorReqResOrdering;
|
||
if (legacyInterceptorReqResOrdering) {
|
||
requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);
|
||
} else {
|
||
requestInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
||
}
|
||
});
|
||
const responseInterceptorChain = [];
|
||
this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {
|
||
responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);
|
||
});
|
||
let promise;
|
||
let i = 0;
|
||
let len;
|
||
if (!synchronousRequestInterceptors) {
|
||
const chain = [
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$dispatchRequest$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].bind(this),
|
||
undefined
|
||
];
|
||
chain.unshift(...requestInterceptorChain);
|
||
chain.push(...responseInterceptorChain);
|
||
len = chain.length;
|
||
promise = Promise.resolve(config);
|
||
while(i < len){
|
||
promise = promise.then(chain[i++], chain[i++]);
|
||
}
|
||
return promise;
|
||
}
|
||
len = requestInterceptorChain.length;
|
||
let newConfig = config;
|
||
while(i < len){
|
||
const onFulfilled = requestInterceptorChain[i++];
|
||
const onRejected = requestInterceptorChain[i++];
|
||
try {
|
||
newConfig = onFulfilled(newConfig);
|
||
} catch (error) {
|
||
onRejected.call(this, error);
|
||
break;
|
||
}
|
||
}
|
||
try {
|
||
promise = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$dispatchRequest$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].call(this, newConfig);
|
||
} catch (error) {
|
||
return Promise.reject(error);
|
||
}
|
||
i = 0;
|
||
len = responseInterceptorChain.length;
|
||
while(i < len){
|
||
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
|
||
}
|
||
return promise;
|
||
}
|
||
getUri(config) {
|
||
config = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(this.defaults, config);
|
||
const fullPath = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$buildFullPath$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(config.baseURL, config.url, config.allowAbsoluteUrls);
|
||
return (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$buildURL$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(fullPath, config.params, config.paramsSerializer);
|
||
}
|
||
}
|
||
// Provide aliases for supported request methods
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach([
|
||
'delete',
|
||
'get',
|
||
'head',
|
||
'options'
|
||
], function forEachMethodNoData(method) {
|
||
/*eslint func-names:0*/ Axios.prototype[method] = function(url, config) {
|
||
return this.request((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(config || {}, {
|
||
method,
|
||
url,
|
||
data: (config || {}).data
|
||
}));
|
||
};
|
||
});
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].forEach([
|
||
'post',
|
||
'put',
|
||
'patch'
|
||
], function forEachMethodWithData(method) {
|
||
/*eslint func-names:0*/ function generateHTTPMethod(isForm) {
|
||
return function httpMethod(url, data, config) {
|
||
return this.request((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(config || {}, {
|
||
method,
|
||
headers: isForm ? {
|
||
'Content-Type': 'multipart/form-data'
|
||
} : {},
|
||
url,
|
||
data
|
||
}));
|
||
};
|
||
}
|
||
Axios.prototype[method] = generateHTTPMethod();
|
||
Axios.prototype[method + 'Form'] = generateHTTPMethod(true);
|
||
});
|
||
const __TURBOPACK__default__export__ = Axios;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CancelToken.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CanceledError.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
/**
|
||
* A `CancelToken` is an object that can be used to request cancellation of an operation.
|
||
*
|
||
* @param {Function} executor The executor function.
|
||
*
|
||
* @returns {CancelToken}
|
||
*/ class CancelToken {
|
||
constructor(executor){
|
||
if (typeof executor !== 'function') {
|
||
throw new TypeError('executor must be a function.');
|
||
}
|
||
let resolvePromise;
|
||
this.promise = new Promise(function promiseExecutor(resolve) {
|
||
resolvePromise = resolve;
|
||
});
|
||
const token = this;
|
||
// eslint-disable-next-line func-names
|
||
this.promise.then((cancel)=>{
|
||
if (!token._listeners) return;
|
||
let i = token._listeners.length;
|
||
while(i-- > 0){
|
||
token._listeners[i](cancel);
|
||
}
|
||
token._listeners = null;
|
||
});
|
||
// eslint-disable-next-line func-names
|
||
this.promise.then = (onfulfilled)=>{
|
||
let _resolve;
|
||
// eslint-disable-next-line func-names
|
||
const promise = new Promise((resolve)=>{
|
||
token.subscribe(resolve);
|
||
_resolve = resolve;
|
||
}).then(onfulfilled);
|
||
promise.cancel = function reject() {
|
||
token.unsubscribe(_resolve);
|
||
};
|
||
return promise;
|
||
};
|
||
executor(function cancel(message, config, request) {
|
||
if (token.reason) {
|
||
// Cancellation has already been requested
|
||
return;
|
||
}
|
||
token.reason = new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](message, config, request);
|
||
resolvePromise(token.reason);
|
||
});
|
||
}
|
||
/**
|
||
* Throws a `CanceledError` if cancellation has been requested.
|
||
*/ throwIfRequested() {
|
||
if (this.reason) {
|
||
throw this.reason;
|
||
}
|
||
}
|
||
/**
|
||
* Subscribe to the cancel signal
|
||
*/ subscribe(listener) {
|
||
if (this.reason) {
|
||
listener(this.reason);
|
||
return;
|
||
}
|
||
if (this._listeners) {
|
||
this._listeners.push(listener);
|
||
} else {
|
||
this._listeners = [
|
||
listener
|
||
];
|
||
}
|
||
}
|
||
/**
|
||
* Unsubscribe from the cancel signal
|
||
*/ unsubscribe(listener) {
|
||
if (!this._listeners) {
|
||
return;
|
||
}
|
||
const index = this._listeners.indexOf(listener);
|
||
if (index !== -1) {
|
||
this._listeners.splice(index, 1);
|
||
}
|
||
}
|
||
toAbortSignal() {
|
||
const controller = new AbortController();
|
||
const abort = (err)=>{
|
||
controller.abort(err);
|
||
};
|
||
this.subscribe(abort);
|
||
controller.signal.unsubscribe = ()=>this.unsubscribe(abort);
|
||
return controller.signal;
|
||
}
|
||
/**
|
||
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
||
* cancels the `CancelToken`.
|
||
*/ static source() {
|
||
let cancel;
|
||
const token = new CancelToken(function executor(c) {
|
||
cancel = c;
|
||
});
|
||
return {
|
||
token,
|
||
cancel
|
||
};
|
||
}
|
||
}
|
||
const __TURBOPACK__default__export__ = CancelToken;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/spread.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>spread
|
||
]);
|
||
'use strict';
|
||
function spread(callback) {
|
||
return function wrap(arr) {
|
||
return callback.apply(null, arr);
|
||
};
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/isAxiosError.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>isAxiosError
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
function isAxiosError(payload) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isObject(payload) && payload.isAxiosError === true;
|
||
}
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/HttpStatusCode.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
const HttpStatusCode = {
|
||
Continue: 100,
|
||
SwitchingProtocols: 101,
|
||
Processing: 102,
|
||
EarlyHints: 103,
|
||
Ok: 200,
|
||
Created: 201,
|
||
Accepted: 202,
|
||
NonAuthoritativeInformation: 203,
|
||
NoContent: 204,
|
||
ResetContent: 205,
|
||
PartialContent: 206,
|
||
MultiStatus: 207,
|
||
AlreadyReported: 208,
|
||
ImUsed: 226,
|
||
MultipleChoices: 300,
|
||
MovedPermanently: 301,
|
||
Found: 302,
|
||
SeeOther: 303,
|
||
NotModified: 304,
|
||
UseProxy: 305,
|
||
Unused: 306,
|
||
TemporaryRedirect: 307,
|
||
PermanentRedirect: 308,
|
||
BadRequest: 400,
|
||
Unauthorized: 401,
|
||
PaymentRequired: 402,
|
||
Forbidden: 403,
|
||
NotFound: 404,
|
||
MethodNotAllowed: 405,
|
||
NotAcceptable: 406,
|
||
ProxyAuthenticationRequired: 407,
|
||
RequestTimeout: 408,
|
||
Conflict: 409,
|
||
Gone: 410,
|
||
LengthRequired: 411,
|
||
PreconditionFailed: 412,
|
||
PayloadTooLarge: 413,
|
||
UriTooLong: 414,
|
||
UnsupportedMediaType: 415,
|
||
RangeNotSatisfiable: 416,
|
||
ExpectationFailed: 417,
|
||
ImATeapot: 418,
|
||
MisdirectedRequest: 421,
|
||
UnprocessableEntity: 422,
|
||
Locked: 423,
|
||
FailedDependency: 424,
|
||
TooEarly: 425,
|
||
UpgradeRequired: 426,
|
||
PreconditionRequired: 428,
|
||
TooManyRequests: 429,
|
||
RequestHeaderFieldsTooLarge: 431,
|
||
UnavailableForLegalReasons: 451,
|
||
InternalServerError: 500,
|
||
NotImplemented: 501,
|
||
BadGateway: 502,
|
||
ServiceUnavailable: 503,
|
||
GatewayTimeout: 504,
|
||
HttpVersionNotSupported: 505,
|
||
VariantAlsoNegotiates: 506,
|
||
InsufficientStorage: 507,
|
||
LoopDetected: 508,
|
||
NotExtended: 510,
|
||
NetworkAuthenticationRequired: 511,
|
||
WebServerIsDown: 521,
|
||
ConnectionTimedOut: 522,
|
||
OriginIsUnreachable: 523,
|
||
TimeoutOccurred: 524,
|
||
SslHandshakeFailed: 525,
|
||
InvalidSslCertificate: 526
|
||
};
|
||
Object.entries(HttpStatusCode).forEach(([key, value])=>{
|
||
HttpStatusCode[value] = key;
|
||
});
|
||
const __TURBOPACK__default__export__ = HttpStatusCode;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/axios/lib/axios.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$bind$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/bind.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$Axios$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/Axios.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/mergeConfig.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/defaults/index.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$formDataToJSON$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/formDataToJSON.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CanceledError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CancelToken$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/CancelToken.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$isCancel$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/cancel/isCancel.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$env$2f$data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/env/data.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toFormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/toFormData.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$spread$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/spread.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$isAxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/isAxiosError.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/core/AxiosHeaders.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$adapters$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/adapters/adapters.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$HttpStatusCode$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/axios/lib/helpers/HttpStatusCode.js [app-ssr] (ecmascript)");
|
||
'use strict';
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
;
|
||
/**
|
||
* Create an instance of Axios
|
||
*
|
||
* @param {Object} defaultConfig The default config for the instance
|
||
*
|
||
* @returns {Axios} A new instance of Axios
|
||
*/ function createInstance(defaultConfig) {
|
||
const context = new __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$Axios$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"](defaultConfig);
|
||
const instance = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$bind$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$Axios$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].prototype.request, context);
|
||
// Copy axios.prototype to instance
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].extend(instance, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$Axios$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].prototype, context, {
|
||
allOwnKeys: true
|
||
});
|
||
// Copy context to instance
|
||
__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].extend(instance, context, null, {
|
||
allOwnKeys: true
|
||
});
|
||
// Factory for creating new instances
|
||
instance.create = function create(instanceConfig) {
|
||
return createInstance((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(defaultConfig, instanceConfig));
|
||
};
|
||
return instance;
|
||
}
|
||
// Create the default instance to be exported
|
||
const axios = createInstance(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$defaults$2f$index$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]);
|
||
// Expose Axios class to allow class inheritance
|
||
axios.Axios = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$Axios$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
// Expose Cancel & CancelToken
|
||
axios.CanceledError = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CanceledError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
axios.CancelToken = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$CancelToken$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
axios.isCancel = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$cancel$2f$isCancel$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
axios.VERSION = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$env$2f$data$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["VERSION"];
|
||
axios.toFormData = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$toFormData$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
// Expose AxiosError class
|
||
axios.AxiosError = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
// alias for CanceledError for backward compatibility
|
||
axios.Cancel = axios.CanceledError;
|
||
// Expose all/spread
|
||
axios.all = function all(promises) {
|
||
return Promise.all(promises);
|
||
};
|
||
axios.spread = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$spread$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
// Expose isAxiosError
|
||
axios.isAxiosError = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$isAxiosError$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
// Expose mergeConfig
|
||
axios.mergeConfig = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$mergeConfig$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
axios.AxiosHeaders = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$core$2f$AxiosHeaders$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
axios.formToJSON = (thing)=>(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$formDataToJSON$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].isHTMLForm(thing) ? new FormData(thing) : thing);
|
||
axios.getAdapter = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$adapters$2f$adapters$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"].getAdapter;
|
||
axios.HttpStatusCode = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$axios$2f$lib$2f$helpers$2f$HttpStatusCode$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"];
|
||
axios.default = axios;
|
||
const __TURBOPACK__default__export__ = axios;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/shared/src/utils.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"hasA11yProp",
|
||
()=>hasA11yProp,
|
||
"mergeClasses",
|
||
()=>mergeClasses,
|
||
"toCamelCase",
|
||
()=>toCamelCase,
|
||
"toKebabCase",
|
||
()=>toKebabCase,
|
||
"toPascalCase",
|
||
()=>toPascalCase
|
||
]);
|
||
/**
|
||
* @license lucide-react v0.507.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ const toKebabCase = (string)=>string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
||
const toCamelCase = (string)=>string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2)=>p2 ? p2.toUpperCase() : p1.toLowerCase());
|
||
const toPascalCase = (string)=>{
|
||
const camelCase = toCamelCase(string);
|
||
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
||
};
|
||
const mergeClasses = (...classes)=>classes.filter((className, index, array)=>{
|
||
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
||
}).join(" ").trim();
|
||
const hasA11yProp = (props)=>{
|
||
for(const prop in props){
|
||
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
||
return true;
|
||
}
|
||
}
|
||
};
|
||
;
|
||
//# sourceMappingURL=utils.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/defaultAttributes.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>defaultAttributes
|
||
]);
|
||
/**
|
||
* @license lucide-react v0.507.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ var defaultAttributes = {
|
||
xmlns: "http://www.w3.org/2000/svg",
|
||
width: 24,
|
||
height: 24,
|
||
viewBox: "0 0 24 24",
|
||
fill: "none",
|
||
stroke: "currentColor",
|
||
strokeWidth: 2,
|
||
strokeLinecap: "round",
|
||
strokeLinejoin: "round"
|
||
};
|
||
;
|
||
//# sourceMappingURL=defaultAttributes.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/Icon.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>Icon
|
||
]);
|
||
/**
|
||
* @license lucide-react v0.507.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$defaultAttributes$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/defaultAttributes.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/shared/src/utils.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
const Icon = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["forwardRef"])(({ color = "currentColor", size = 24, strokeWidth = 2, absoluteStrokeWidth, className = "", children, iconNode, ...rest }, ref)=>(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["createElement"])("svg", {
|
||
ref,
|
||
...__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$defaultAttributes$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"],
|
||
width: size,
|
||
height: size,
|
||
stroke: color,
|
||
strokeWidth: absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
||
className: (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["mergeClasses"])("lucide", className),
|
||
...!children && !(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["hasA11yProp"])(rest) && {
|
||
"aria-hidden": "true"
|
||
},
|
||
...rest
|
||
}, [
|
||
...iconNode.map(([tag, attrs])=>(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["createElement"])(tag, attrs)),
|
||
...Array.isArray(children) ? children : [
|
||
children
|
||
]
|
||
]));
|
||
;
|
||
//# sourceMappingURL=Icon.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"default",
|
||
()=>createLucideIcon
|
||
]);
|
||
/**
|
||
* @license lucide-react v0.507.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/shared/src/utils.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$Icon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/Icon.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
const createLucideIcon = (iconName, iconNode)=>{
|
||
const Component = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["forwardRef"])(({ className, ...props }, ref)=>(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["createElement"])(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$Icon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"], {
|
||
ref,
|
||
iconNode,
|
||
className: (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["mergeClasses"])(`lucide-${(0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["toKebabCase"])((0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["toPascalCase"])(iconName))}`, `lucide-${iconName}`, className),
|
||
...props
|
||
}));
|
||
Component.displayName = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$shared$2f$src$2f$utils$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["toPascalCase"])(iconName);
|
||
return Component;
|
||
};
|
||
;
|
||
//# sourceMappingURL=createLucideIcon.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/loader-circle.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"__iconNode",
|
||
()=>__iconNode,
|
||
"default",
|
||
()=>LoaderCircle
|
||
]);
|
||
/**
|
||
* @license lucide-react v0.507.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-ssr] (ecmascript)");
|
||
;
|
||
const __iconNode = [
|
||
[
|
||
"path",
|
||
{
|
||
d: "M21 12a9 9 0 1 1-6.219-8.56",
|
||
key: "13zald"
|
||
}
|
||
]
|
||
];
|
||
const LoaderCircle = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])("loader-circle", __iconNode);
|
||
;
|
||
//# sourceMappingURL=loader-circle.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/loader-circle.js [app-ssr] (ecmascript) <export default as Loader2>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Loader2",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$loader$2d$circle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$loader$2d$circle$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/loader-circle.js [app-ssr] (ecmascript)");
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/circle-alert.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"__iconNode",
|
||
()=>__iconNode,
|
||
"default",
|
||
()=>CircleAlert
|
||
]);
|
||
/**
|
||
* @license lucide-react v0.507.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-ssr] (ecmascript)");
|
||
;
|
||
const __iconNode = [
|
||
[
|
||
"circle",
|
||
{
|
||
cx: "12",
|
||
cy: "12",
|
||
r: "10",
|
||
key: "1mglay"
|
||
}
|
||
],
|
||
[
|
||
"line",
|
||
{
|
||
x1: "12",
|
||
x2: "12",
|
||
y1: "8",
|
||
y2: "12",
|
||
key: "1pkeuh"
|
||
}
|
||
],
|
||
[
|
||
"line",
|
||
{
|
||
x1: "12",
|
||
x2: "12.01",
|
||
y1: "16",
|
||
y2: "16",
|
||
key: "4dfq90"
|
||
}
|
||
]
|
||
];
|
||
const CircleAlert = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])("circle-alert", __iconNode);
|
||
;
|
||
//# sourceMappingURL=circle-alert.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/circle-alert.js [app-ssr] (ecmascript) <export default as AlertCircle>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"AlertCircle",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$circle$2d$alert$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$circle$2d$alert$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/circle-alert.js [app-ssr] (ecmascript)");
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/circle-check.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"__iconNode",
|
||
()=>__iconNode,
|
||
"default",
|
||
()=>CircleCheck
|
||
]);
|
||
/**
|
||
* @license lucide-react v0.507.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-ssr] (ecmascript)");
|
||
;
|
||
const __iconNode = [
|
||
[
|
||
"circle",
|
||
{
|
||
cx: "12",
|
||
cy: "12",
|
||
r: "10",
|
||
key: "1mglay"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "m9 12 2 2 4-4",
|
||
key: "dzmm74"
|
||
}
|
||
]
|
||
];
|
||
const CircleCheck = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])("circle-check", __iconNode);
|
||
;
|
||
//# sourceMappingURL=circle-check.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/circle-check.js [app-ssr] (ecmascript) <export default as CheckCircle2>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"CheckCircle2",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$circle$2d$check$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$circle$2d$check$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/circle-check.js [app-ssr] (ecmascript)");
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/triangle-alert.js [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"__iconNode",
|
||
()=>__iconNode,
|
||
"default",
|
||
()=>TriangleAlert
|
||
]);
|
||
/**
|
||
* @license lucide-react v0.507.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/ var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/createLucideIcon.js [app-ssr] (ecmascript)");
|
||
;
|
||
const __iconNode = [
|
||
[
|
||
"path",
|
||
{
|
||
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
||
key: "wmoenq"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M12 9v4",
|
||
key: "juzpu7"
|
||
}
|
||
],
|
||
[
|
||
"path",
|
||
{
|
||
d: "M12 17h.01",
|
||
key: "p32p05"
|
||
}
|
||
]
|
||
];
|
||
const TriangleAlert = (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$createLucideIcon$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"])("triangle-alert", __iconNode);
|
||
;
|
||
//# sourceMappingURL=triangle-alert.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/triangle-alert.js [app-ssr] (ecmascript) <export default as AlertTriangle>", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"AlertTriangle",
|
||
()=>__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$triangle$2d$alert$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["default"]
|
||
]);
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$lucide$2d$react$2f$dist$2f$esm$2f$icons$2f$triangle$2d$alert$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/lucide-react/dist/esm/icons/triangle-alert.js [app-ssr] (ecmascript)");
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/clsx/dist/clsx.mjs [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"clsx",
|
||
()=>clsx,
|
||
"default",
|
||
()=>__TURBOPACK__default__export__
|
||
]);
|
||
function r(e) {
|
||
var t, f, n = "";
|
||
if ("string" == typeof e || "number" == typeof e) n += e;
|
||
else if ("object" == typeof e) if (Array.isArray(e)) {
|
||
var o = e.length;
|
||
for(t = 0; t < o; t++)e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
||
} else for(f in e)e[f] && (n && (n += " "), n += f);
|
||
return n;
|
||
}
|
||
function clsx() {
|
||
for(var e, t, f = 0, n = "", o = arguments.length; f < o; f++)(e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
||
return n;
|
||
}
|
||
const __TURBOPACK__default__export__ = clsx;
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/tailwind-merge/dist/bundle-mjs.mjs [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"createTailwindMerge",
|
||
()=>createTailwindMerge,
|
||
"extendTailwindMerge",
|
||
()=>extendTailwindMerge,
|
||
"fromTheme",
|
||
()=>fromTheme,
|
||
"getDefaultConfig",
|
||
()=>getDefaultConfig,
|
||
"mergeConfigs",
|
||
()=>mergeConfigs,
|
||
"twJoin",
|
||
()=>twJoin,
|
||
"twMerge",
|
||
()=>twMerge,
|
||
"validators",
|
||
()=>validators
|
||
]);
|
||
/**
|
||
* Concatenates two arrays faster than the array spread operator.
|
||
*/ const concatArrays = (array1, array2)=>{
|
||
// Pre-allocate for better V8 optimization
|
||
const combinedArray = new Array(array1.length + array2.length);
|
||
for(let i = 0; i < array1.length; i++){
|
||
combinedArray[i] = array1[i];
|
||
}
|
||
for(let i = 0; i < array2.length; i++){
|
||
combinedArray[array1.length + i] = array2[i];
|
||
}
|
||
return combinedArray;
|
||
};
|
||
// Factory function ensures consistent object shapes
|
||
const createClassValidatorObject = (classGroupId, validator)=>({
|
||
classGroupId,
|
||
validator
|
||
});
|
||
// Factory ensures consistent ClassPartObject shape
|
||
const createClassPartObject = (nextPart = new Map(), validators = null, classGroupId)=>({
|
||
nextPart,
|
||
validators,
|
||
classGroupId
|
||
});
|
||
const CLASS_PART_SEPARATOR = '-';
|
||
const EMPTY_CONFLICTS = [];
|
||
// I use two dots here because one dot is used as prefix for class groups in plugins
|
||
const ARBITRARY_PROPERTY_PREFIX = 'arbitrary..';
|
||
const createClassGroupUtils = (config)=>{
|
||
const classMap = createClassMap(config);
|
||
const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
|
||
const getClassGroupId = (className)=>{
|
||
if (className.startsWith('[') && className.endsWith(']')) {
|
||
return getGroupIdForArbitraryProperty(className);
|
||
}
|
||
const classParts = className.split(CLASS_PART_SEPARATOR);
|
||
// Classes like `-inset-1` produce an empty string as first classPart. We assume that classes for negative values are used correctly and skip it.
|
||
const startIndex = classParts[0] === '' && classParts.length > 1 ? 1 : 0;
|
||
return getGroupRecursive(classParts, startIndex, classMap);
|
||
};
|
||
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier)=>{
|
||
if (hasPostfixModifier) {
|
||
const modifierConflicts = conflictingClassGroupModifiers[classGroupId];
|
||
const baseConflicts = conflictingClassGroups[classGroupId];
|
||
if (modifierConflicts) {
|
||
if (baseConflicts) {
|
||
// Merge base conflicts with modifier conflicts
|
||
return concatArrays(baseConflicts, modifierConflicts);
|
||
}
|
||
// Only modifier conflicts
|
||
return modifierConflicts;
|
||
}
|
||
// Fall back to without postfix if no modifier conflicts
|
||
return baseConflicts || EMPTY_CONFLICTS;
|
||
}
|
||
return conflictingClassGroups[classGroupId] || EMPTY_CONFLICTS;
|
||
};
|
||
return {
|
||
getClassGroupId,
|
||
getConflictingClassGroupIds
|
||
};
|
||
};
|
||
const getGroupRecursive = (classParts, startIndex, classPartObject)=>{
|
||
const classPathsLength = classParts.length - startIndex;
|
||
if (classPathsLength === 0) {
|
||
return classPartObject.classGroupId;
|
||
}
|
||
const currentClassPart = classParts[startIndex];
|
||
const nextClassPartObject = classPartObject.nextPart.get(currentClassPart);
|
||
if (nextClassPartObject) {
|
||
const result = getGroupRecursive(classParts, startIndex + 1, nextClassPartObject);
|
||
if (result) return result;
|
||
}
|
||
const validators = classPartObject.validators;
|
||
if (validators === null) {
|
||
return undefined;
|
||
}
|
||
// Build classRest string efficiently by joining from startIndex onwards
|
||
const classRest = startIndex === 0 ? classParts.join(CLASS_PART_SEPARATOR) : classParts.slice(startIndex).join(CLASS_PART_SEPARATOR);
|
||
const validatorsLength = validators.length;
|
||
for(let i = 0; i < validatorsLength; i++){
|
||
const validatorObj = validators[i];
|
||
if (validatorObj.validator(classRest)) {
|
||
return validatorObj.classGroupId;
|
||
}
|
||
}
|
||
return undefined;
|
||
};
|
||
/**
|
||
* Get the class group ID for an arbitrary property.
|
||
*
|
||
* @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
|
||
*/ const getGroupIdForArbitraryProperty = (className)=>className.slice(1, -1).indexOf(':') === -1 ? undefined : (()=>{
|
||
const content = className.slice(1, -1);
|
||
const colonIndex = content.indexOf(':');
|
||
const property = content.slice(0, colonIndex);
|
||
return property ? ARBITRARY_PROPERTY_PREFIX + property : undefined;
|
||
})();
|
||
/**
|
||
* Exported for testing only
|
||
*/ const createClassMap = (config)=>{
|
||
const { theme, classGroups } = config;
|
||
return processClassGroups(classGroups, theme);
|
||
};
|
||
// Split into separate functions to maintain monomorphic call sites
|
||
const processClassGroups = (classGroups, theme)=>{
|
||
const classMap = createClassPartObject();
|
||
for(const classGroupId in classGroups){
|
||
const group = classGroups[classGroupId];
|
||
processClassesRecursively(group, classMap, classGroupId, theme);
|
||
}
|
||
return classMap;
|
||
};
|
||
const processClassesRecursively = (classGroup, classPartObject, classGroupId, theme)=>{
|
||
const len = classGroup.length;
|
||
for(let i = 0; i < len; i++){
|
||
const classDefinition = classGroup[i];
|
||
processClassDefinition(classDefinition, classPartObject, classGroupId, theme);
|
||
}
|
||
};
|
||
// Split into separate functions for each type to maintain monomorphic call sites
|
||
const processClassDefinition = (classDefinition, classPartObject, classGroupId, theme)=>{
|
||
if (typeof classDefinition === 'string') {
|
||
processStringDefinition(classDefinition, classPartObject, classGroupId);
|
||
return;
|
||
}
|
||
if (typeof classDefinition === 'function') {
|
||
processFunctionDefinition(classDefinition, classPartObject, classGroupId, theme);
|
||
return;
|
||
}
|
||
processObjectDefinition(classDefinition, classPartObject, classGroupId, theme);
|
||
};
|
||
const processStringDefinition = (classDefinition, classPartObject, classGroupId)=>{
|
||
const classPartObjectToEdit = classDefinition === '' ? classPartObject : getPart(classPartObject, classDefinition);
|
||
classPartObjectToEdit.classGroupId = classGroupId;
|
||
};
|
||
const processFunctionDefinition = (classDefinition, classPartObject, classGroupId, theme)=>{
|
||
if (isThemeGetter(classDefinition)) {
|
||
processClassesRecursively(classDefinition(theme), classPartObject, classGroupId, theme);
|
||
return;
|
||
}
|
||
if (classPartObject.validators === null) {
|
||
classPartObject.validators = [];
|
||
}
|
||
classPartObject.validators.push(createClassValidatorObject(classGroupId, classDefinition));
|
||
};
|
||
const processObjectDefinition = (classDefinition, classPartObject, classGroupId, theme)=>{
|
||
const entries = Object.entries(classDefinition);
|
||
const len = entries.length;
|
||
for(let i = 0; i < len; i++){
|
||
const [key, value] = entries[i];
|
||
processClassesRecursively(value, getPart(classPartObject, key), classGroupId, theme);
|
||
}
|
||
};
|
||
const getPart = (classPartObject, path)=>{
|
||
let current = classPartObject;
|
||
const parts = path.split(CLASS_PART_SEPARATOR);
|
||
const len = parts.length;
|
||
for(let i = 0; i < len; i++){
|
||
const part = parts[i];
|
||
let next = current.nextPart.get(part);
|
||
if (!next) {
|
||
next = createClassPartObject();
|
||
current.nextPart.set(part, next);
|
||
}
|
||
current = next;
|
||
}
|
||
return current;
|
||
};
|
||
// Type guard maintains monomorphic check
|
||
const isThemeGetter = (func)=>'isThemeGetter' in func && func.isThemeGetter === true;
|
||
// LRU cache implementation using plain objects for simplicity
|
||
const createLruCache = (maxCacheSize)=>{
|
||
if (maxCacheSize < 1) {
|
||
return {
|
||
get: ()=>undefined,
|
||
set: ()=>{}
|
||
};
|
||
}
|
||
let cacheSize = 0;
|
||
let cache = Object.create(null);
|
||
let previousCache = Object.create(null);
|
||
const update = (key, value)=>{
|
||
cache[key] = value;
|
||
cacheSize++;
|
||
if (cacheSize > maxCacheSize) {
|
||
cacheSize = 0;
|
||
previousCache = cache;
|
||
cache = Object.create(null);
|
||
}
|
||
};
|
||
return {
|
||
get (key) {
|
||
let value = cache[key];
|
||
if (value !== undefined) {
|
||
return value;
|
||
}
|
||
if ((value = previousCache[key]) !== undefined) {
|
||
update(key, value);
|
||
return value;
|
||
}
|
||
},
|
||
set (key, value) {
|
||
if (key in cache) {
|
||
cache[key] = value;
|
||
} else {
|
||
update(key, value);
|
||
}
|
||
}
|
||
};
|
||
};
|
||
const IMPORTANT_MODIFIER = '!';
|
||
const MODIFIER_SEPARATOR = ':';
|
||
const EMPTY_MODIFIERS = [];
|
||
// Pre-allocated result object shape for consistency
|
||
const createResultObject = (modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition, isExternal)=>({
|
||
modifiers,
|
||
hasImportantModifier,
|
||
baseClassName,
|
||
maybePostfixModifierPosition,
|
||
isExternal
|
||
});
|
||
const createParseClassName = (config)=>{
|
||
const { prefix, experimentalParseClassName } = config;
|
||
/**
|
||
* Parse class name into parts.
|
||
*
|
||
* Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
|
||
* @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
|
||
*/ let parseClassName = (className)=>{
|
||
// Use simple array with push for better performance
|
||
const modifiers = [];
|
||
let bracketDepth = 0;
|
||
let parenDepth = 0;
|
||
let modifierStart = 0;
|
||
let postfixModifierPosition;
|
||
const len = className.length;
|
||
for(let index = 0; index < len; index++){
|
||
const currentCharacter = className[index];
|
||
if (bracketDepth === 0 && parenDepth === 0) {
|
||
if (currentCharacter === MODIFIER_SEPARATOR) {
|
||
modifiers.push(className.slice(modifierStart, index));
|
||
modifierStart = index + 1;
|
||
continue;
|
||
}
|
||
if (currentCharacter === '/') {
|
||
postfixModifierPosition = index;
|
||
continue;
|
||
}
|
||
}
|
||
if (currentCharacter === '[') bracketDepth++;
|
||
else if (currentCharacter === ']') bracketDepth--;
|
||
else if (currentCharacter === '(') parenDepth++;
|
||
else if (currentCharacter === ')') parenDepth--;
|
||
}
|
||
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
|
||
// Inline important modifier check
|
||
let baseClassName = baseClassNameWithImportantModifier;
|
||
let hasImportantModifier = false;
|
||
if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
|
||
baseClassName = baseClassNameWithImportantModifier.slice(0, -1);
|
||
hasImportantModifier = true;
|
||
} else if (/**
|
||
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
||
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
||
*/ baseClassNameWithImportantModifier.startsWith(IMPORTANT_MODIFIER)) {
|
||
baseClassName = baseClassNameWithImportantModifier.slice(1);
|
||
hasImportantModifier = true;
|
||
}
|
||
const maybePostfixModifierPosition = postfixModifierPosition && postfixModifierPosition > modifierStart ? postfixModifierPosition - modifierStart : undefined;
|
||
return createResultObject(modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition);
|
||
};
|
||
if (prefix) {
|
||
const fullPrefix = prefix + MODIFIER_SEPARATOR;
|
||
const parseClassNameOriginal = parseClassName;
|
||
parseClassName = (className)=>className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, undefined, true);
|
||
}
|
||
if (experimentalParseClassName) {
|
||
const parseClassNameOriginal = parseClassName;
|
||
parseClassName = (className)=>experimentalParseClassName({
|
||
className,
|
||
parseClassName: parseClassNameOriginal
|
||
});
|
||
}
|
||
return parseClassName;
|
||
};
|
||
/**
|
||
* Sorts modifiers according to following schema:
|
||
* - Predefined modifiers are sorted alphabetically
|
||
* - When an arbitrary variant appears, it must be preserved which modifiers are before and after it
|
||
*/ const createSortModifiers = (config)=>{
|
||
// Pre-compute weights for all known modifiers for O(1) comparison
|
||
const modifierWeights = new Map();
|
||
// Assign weights to sensitive modifiers (highest priority, but preserve order)
|
||
config.orderSensitiveModifiers.forEach((mod, index)=>{
|
||
modifierWeights.set(mod, 1000000 + index); // High weights for sensitive mods
|
||
});
|
||
return (modifiers)=>{
|
||
const result = [];
|
||
let currentSegment = [];
|
||
// Process modifiers in one pass
|
||
for(let i = 0; i < modifiers.length; i++){
|
||
const modifier = modifiers[i];
|
||
// Check if modifier is sensitive (starts with '[' or in orderSensitiveModifiers)
|
||
const isArbitrary = modifier[0] === '[';
|
||
const isOrderSensitive = modifierWeights.has(modifier);
|
||
if (isArbitrary || isOrderSensitive) {
|
||
// Sort and flush current segment alphabetically
|
||
if (currentSegment.length > 0) {
|
||
currentSegment.sort();
|
||
result.push(...currentSegment);
|
||
currentSegment = [];
|
||
}
|
||
result.push(modifier);
|
||
} else {
|
||
// Regular modifier - add to current segment for batch sorting
|
||
currentSegment.push(modifier);
|
||
}
|
||
}
|
||
// Sort and add any remaining segment items
|
||
if (currentSegment.length > 0) {
|
||
currentSegment.sort();
|
||
result.push(...currentSegment);
|
||
}
|
||
return result;
|
||
};
|
||
};
|
||
const createConfigUtils = (config)=>({
|
||
cache: createLruCache(config.cacheSize),
|
||
parseClassName: createParseClassName(config),
|
||
sortModifiers: createSortModifiers(config),
|
||
...createClassGroupUtils(config)
|
||
});
|
||
const SPLIT_CLASSES_REGEX = /\s+/;
|
||
const mergeClassList = (classList, configUtils)=>{
|
||
const { parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers } = configUtils;
|
||
/**
|
||
* Set of classGroupIds in following format:
|
||
* `{importantModifier}{variantModifiers}{classGroupId}`
|
||
* @example 'float'
|
||
* @example 'hover:focus:bg-color'
|
||
* @example 'md:!pr'
|
||
*/ const classGroupsInConflict = [];
|
||
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
||
let result = '';
|
||
for(let index = classNames.length - 1; index >= 0; index -= 1){
|
||
const originalClassName = classNames[index];
|
||
const { isExternal, modifiers, hasImportantModifier, baseClassName, maybePostfixModifierPosition } = parseClassName(originalClassName);
|
||
if (isExternal) {
|
||
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
||
continue;
|
||
}
|
||
let hasPostfixModifier = !!maybePostfixModifierPosition;
|
||
let classGroupId = getClassGroupId(hasPostfixModifier ? baseClassName.substring(0, maybePostfixModifierPosition) : baseClassName);
|
||
if (!classGroupId) {
|
||
if (!hasPostfixModifier) {
|
||
// Not a Tailwind class
|
||
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
||
continue;
|
||
}
|
||
classGroupId = getClassGroupId(baseClassName);
|
||
if (!classGroupId) {
|
||
// Not a Tailwind class
|
||
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
||
continue;
|
||
}
|
||
hasPostfixModifier = false;
|
||
}
|
||
// Fast path: skip sorting for empty or single modifier
|
||
const variantModifier = modifiers.length === 0 ? '' : modifiers.length === 1 ? modifiers[0] : sortModifiers(modifiers).join(':');
|
||
const modifierId = hasImportantModifier ? variantModifier + IMPORTANT_MODIFIER : variantModifier;
|
||
const classId = modifierId + classGroupId;
|
||
if (classGroupsInConflict.indexOf(classId) > -1) {
|
||
continue;
|
||
}
|
||
classGroupsInConflict.push(classId);
|
||
const conflictGroups = getConflictingClassGroupIds(classGroupId, hasPostfixModifier);
|
||
for(let i = 0; i < conflictGroups.length; ++i){
|
||
const group = conflictGroups[i];
|
||
classGroupsInConflict.push(modifierId + group);
|
||
}
|
||
// Tailwind class not in conflict
|
||
result = originalClassName + (result.length > 0 ? ' ' + result : result);
|
||
}
|
||
return result;
|
||
};
|
||
/**
|
||
* The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
|
||
*
|
||
* Specifically:
|
||
* - Runtime code from https://github.com/lukeed/clsx/blob/v1.2.1/src/index.js
|
||
* - TypeScript types from https://github.com/lukeed/clsx/blob/v1.2.1/clsx.d.ts
|
||
*
|
||
* Original code has MIT license: Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
|
||
*/ const twJoin = (...classLists)=>{
|
||
let index = 0;
|
||
let argument;
|
||
let resolvedValue;
|
||
let string = '';
|
||
while(index < classLists.length){
|
||
if (argument = classLists[index++]) {
|
||
if (resolvedValue = toValue(argument)) {
|
||
string && (string += ' ');
|
||
string += resolvedValue;
|
||
}
|
||
}
|
||
}
|
||
return string;
|
||
};
|
||
const toValue = (mix)=>{
|
||
// Fast path for strings
|
||
if (typeof mix === 'string') {
|
||
return mix;
|
||
}
|
||
let resolvedValue;
|
||
let string = '';
|
||
for(let k = 0; k < mix.length; k++){
|
||
if (mix[k]) {
|
||
if (resolvedValue = toValue(mix[k])) {
|
||
string && (string += ' ');
|
||
string += resolvedValue;
|
||
}
|
||
}
|
||
}
|
||
return string;
|
||
};
|
||
const createTailwindMerge = (createConfigFirst, ...createConfigRest)=>{
|
||
let configUtils;
|
||
let cacheGet;
|
||
let cacheSet;
|
||
let functionToCall;
|
||
const initTailwindMerge = (classList)=>{
|
||
const config = createConfigRest.reduce((previousConfig, createConfigCurrent)=>createConfigCurrent(previousConfig), createConfigFirst());
|
||
configUtils = createConfigUtils(config);
|
||
cacheGet = configUtils.cache.get;
|
||
cacheSet = configUtils.cache.set;
|
||
functionToCall = tailwindMerge;
|
||
return tailwindMerge(classList);
|
||
};
|
||
const tailwindMerge = (classList)=>{
|
||
const cachedResult = cacheGet(classList);
|
||
if (cachedResult) {
|
||
return cachedResult;
|
||
}
|
||
const result = mergeClassList(classList, configUtils);
|
||
cacheSet(classList, result);
|
||
return result;
|
||
};
|
||
functionToCall = initTailwindMerge;
|
||
return (...args)=>functionToCall(twJoin(...args));
|
||
};
|
||
const fallbackThemeArr = [];
|
||
const fromTheme = (key)=>{
|
||
const themeGetter = (theme)=>theme[key] || fallbackThemeArr;
|
||
themeGetter.isThemeGetter = true;
|
||
return themeGetter;
|
||
};
|
||
const arbitraryValueRegex = /^\[(?:(\w[\w-]*):)?(.+)\]$/i;
|
||
const arbitraryVariableRegex = /^\((?:(\w[\w-]*):)?(.+)\)$/i;
|
||
const fractionRegex = /^\d+\/\d+$/;
|
||
const tshirtUnitRegex = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/;
|
||
const lengthUnitRegex = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/;
|
||
const colorFunctionRegex = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/;
|
||
// Shadow always begins with x and y offset separated by underscore optionally prepended by inset
|
||
const shadowRegex = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
||
const imageRegex = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;
|
||
const isFraction = (value)=>fractionRegex.test(value);
|
||
const isNumber = (value)=>!!value && !Number.isNaN(Number(value));
|
||
const isInteger = (value)=>!!value && Number.isInteger(Number(value));
|
||
const isPercent = (value)=>value.endsWith('%') && isNumber(value.slice(0, -1));
|
||
const isTshirtSize = (value)=>tshirtUnitRegex.test(value);
|
||
const isAny = ()=>true;
|
||
const isLengthOnly = (value)=>// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
||
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
||
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
||
lengthUnitRegex.test(value) && !colorFunctionRegex.test(value);
|
||
const isNever = ()=>false;
|
||
const isShadow = (value)=>shadowRegex.test(value);
|
||
const isImage = (value)=>imageRegex.test(value);
|
||
const isAnyNonArbitrary = (value)=>!isArbitraryValue(value) && !isArbitraryVariable(value);
|
||
const isArbitrarySize = (value)=>getIsArbitraryValue(value, isLabelSize, isNever);
|
||
const isArbitraryValue = (value)=>arbitraryValueRegex.test(value);
|
||
const isArbitraryLength = (value)=>getIsArbitraryValue(value, isLabelLength, isLengthOnly);
|
||
const isArbitraryNumber = (value)=>getIsArbitraryValue(value, isLabelNumber, isNumber);
|
||
const isArbitraryPosition = (value)=>getIsArbitraryValue(value, isLabelPosition, isNever);
|
||
const isArbitraryImage = (value)=>getIsArbitraryValue(value, isLabelImage, isImage);
|
||
const isArbitraryShadow = (value)=>getIsArbitraryValue(value, isLabelShadow, isShadow);
|
||
const isArbitraryVariable = (value)=>arbitraryVariableRegex.test(value);
|
||
const isArbitraryVariableLength = (value)=>getIsArbitraryVariable(value, isLabelLength);
|
||
const isArbitraryVariableFamilyName = (value)=>getIsArbitraryVariable(value, isLabelFamilyName);
|
||
const isArbitraryVariablePosition = (value)=>getIsArbitraryVariable(value, isLabelPosition);
|
||
const isArbitraryVariableSize = (value)=>getIsArbitraryVariable(value, isLabelSize);
|
||
const isArbitraryVariableImage = (value)=>getIsArbitraryVariable(value, isLabelImage);
|
||
const isArbitraryVariableShadow = (value)=>getIsArbitraryVariable(value, isLabelShadow, true);
|
||
// Helpers
|
||
const getIsArbitraryValue = (value, testLabel, testValue)=>{
|
||
const result = arbitraryValueRegex.exec(value);
|
||
if (result) {
|
||
if (result[1]) {
|
||
return testLabel(result[1]);
|
||
}
|
||
return testValue(result[2]);
|
||
}
|
||
return false;
|
||
};
|
||
const getIsArbitraryVariable = (value, testLabel, shouldMatchNoLabel = false)=>{
|
||
const result = arbitraryVariableRegex.exec(value);
|
||
if (result) {
|
||
if (result[1]) {
|
||
return testLabel(result[1]);
|
||
}
|
||
return shouldMatchNoLabel;
|
||
}
|
||
return false;
|
||
};
|
||
// Labels
|
||
const isLabelPosition = (label)=>label === 'position' || label === 'percentage';
|
||
const isLabelImage = (label)=>label === 'image' || label === 'url';
|
||
const isLabelSize = (label)=>label === 'length' || label === 'size' || label === 'bg-size';
|
||
const isLabelLength = (label)=>label === 'length';
|
||
const isLabelNumber = (label)=>label === 'number';
|
||
const isLabelFamilyName = (label)=>label === 'family-name';
|
||
const isLabelShadow = (label)=>label === 'shadow';
|
||
const validators = /*#__PURE__*/ Object.defineProperty({
|
||
__proto__: null,
|
||
isAny,
|
||
isAnyNonArbitrary,
|
||
isArbitraryImage,
|
||
isArbitraryLength,
|
||
isArbitraryNumber,
|
||
isArbitraryPosition,
|
||
isArbitraryShadow,
|
||
isArbitrarySize,
|
||
isArbitraryValue,
|
||
isArbitraryVariable,
|
||
isArbitraryVariableFamilyName,
|
||
isArbitraryVariableImage,
|
||
isArbitraryVariableLength,
|
||
isArbitraryVariablePosition,
|
||
isArbitraryVariableShadow,
|
||
isArbitraryVariableSize,
|
||
isFraction,
|
||
isInteger,
|
||
isNumber,
|
||
isPercent,
|
||
isTshirtSize
|
||
}, Symbol.toStringTag, {
|
||
value: 'Module'
|
||
});
|
||
const getDefaultConfig = ()=>{
|
||
/**
|
||
* Theme getters for theme variable namespaces
|
||
* @see https://tailwindcss.com/docs/theme#theme-variable-namespaces
|
||
*/ /***/ const themeColor = fromTheme('color');
|
||
const themeFont = fromTheme('font');
|
||
const themeText = fromTheme('text');
|
||
const themeFontWeight = fromTheme('font-weight');
|
||
const themeTracking = fromTheme('tracking');
|
||
const themeLeading = fromTheme('leading');
|
||
const themeBreakpoint = fromTheme('breakpoint');
|
||
const themeContainer = fromTheme('container');
|
||
const themeSpacing = fromTheme('spacing');
|
||
const themeRadius = fromTheme('radius');
|
||
const themeShadow = fromTheme('shadow');
|
||
const themeInsetShadow = fromTheme('inset-shadow');
|
||
const themeTextShadow = fromTheme('text-shadow');
|
||
const themeDropShadow = fromTheme('drop-shadow');
|
||
const themeBlur = fromTheme('blur');
|
||
const themePerspective = fromTheme('perspective');
|
||
const themeAspect = fromTheme('aspect');
|
||
const themeEase = fromTheme('ease');
|
||
const themeAnimate = fromTheme('animate');
|
||
/**
|
||
* Helpers to avoid repeating the same scales
|
||
*
|
||
* We use functions that create a new array every time they're called instead of static arrays.
|
||
* This ensures that users who modify any scale by mutating the array (e.g. with `array.push(element)`) don't accidentally mutate arrays in other parts of the config.
|
||
*/ /***/ const scaleBreak = ()=>[
|
||
'auto',
|
||
'avoid',
|
||
'all',
|
||
'avoid-page',
|
||
'page',
|
||
'left',
|
||
'right',
|
||
'column'
|
||
];
|
||
const scalePosition = ()=>[
|
||
'center',
|
||
'top',
|
||
'bottom',
|
||
'left',
|
||
'right',
|
||
'top-left',
|
||
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
||
'left-top',
|
||
'top-right',
|
||
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
||
'right-top',
|
||
'bottom-right',
|
||
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
||
'right-bottom',
|
||
'bottom-left',
|
||
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
||
'left-bottom'
|
||
];
|
||
const scalePositionWithArbitrary = ()=>[
|
||
...scalePosition(),
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleOverflow = ()=>[
|
||
'auto',
|
||
'hidden',
|
||
'clip',
|
||
'visible',
|
||
'scroll'
|
||
];
|
||
const scaleOverscroll = ()=>[
|
||
'auto',
|
||
'contain',
|
||
'none'
|
||
];
|
||
const scaleUnambiguousSpacing = ()=>[
|
||
isArbitraryVariable,
|
||
isArbitraryValue,
|
||
themeSpacing
|
||
];
|
||
const scaleInset = ()=>[
|
||
isFraction,
|
||
'full',
|
||
'auto',
|
||
...scaleUnambiguousSpacing()
|
||
];
|
||
const scaleGridTemplateColsRows = ()=>[
|
||
isInteger,
|
||
'none',
|
||
'subgrid',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleGridColRowStartAndEnd = ()=>[
|
||
'auto',
|
||
{
|
||
span: [
|
||
'full',
|
||
isInteger,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
},
|
||
isInteger,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleGridColRowStartOrEnd = ()=>[
|
||
isInteger,
|
||
'auto',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleGridAutoColsRows = ()=>[
|
||
'auto',
|
||
'min',
|
||
'max',
|
||
'fr',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleAlignPrimaryAxis = ()=>[
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'between',
|
||
'around',
|
||
'evenly',
|
||
'stretch',
|
||
'baseline',
|
||
'center-safe',
|
||
'end-safe'
|
||
];
|
||
const scaleAlignSecondaryAxis = ()=>[
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'stretch',
|
||
'center-safe',
|
||
'end-safe'
|
||
];
|
||
const scaleMargin = ()=>[
|
||
'auto',
|
||
...scaleUnambiguousSpacing()
|
||
];
|
||
const scaleSizing = ()=>[
|
||
isFraction,
|
||
'auto',
|
||
'full',
|
||
'dvw',
|
||
'dvh',
|
||
'lvw',
|
||
'lvh',
|
||
'svw',
|
||
'svh',
|
||
'min',
|
||
'max',
|
||
'fit',
|
||
...scaleUnambiguousSpacing()
|
||
];
|
||
const scaleColor = ()=>[
|
||
themeColor,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleBgPosition = ()=>[
|
||
...scalePosition(),
|
||
isArbitraryVariablePosition,
|
||
isArbitraryPosition,
|
||
{
|
||
position: [
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
];
|
||
const scaleBgRepeat = ()=>[
|
||
'no-repeat',
|
||
{
|
||
repeat: [
|
||
'',
|
||
'x',
|
||
'y',
|
||
'space',
|
||
'round'
|
||
]
|
||
}
|
||
];
|
||
const scaleBgSize = ()=>[
|
||
'auto',
|
||
'cover',
|
||
'contain',
|
||
isArbitraryVariableSize,
|
||
isArbitrarySize,
|
||
{
|
||
size: [
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
];
|
||
const scaleGradientStopPosition = ()=>[
|
||
isPercent,
|
||
isArbitraryVariableLength,
|
||
isArbitraryLength
|
||
];
|
||
const scaleRadius = ()=>[
|
||
// Deprecated since Tailwind CSS v4.0.0
|
||
'',
|
||
'none',
|
||
'full',
|
||
themeRadius,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleBorderWidth = ()=>[
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariableLength,
|
||
isArbitraryLength
|
||
];
|
||
const scaleLineStyle = ()=>[
|
||
'solid',
|
||
'dashed',
|
||
'dotted',
|
||
'double'
|
||
];
|
||
const scaleBlendMode = ()=>[
|
||
'normal',
|
||
'multiply',
|
||
'screen',
|
||
'overlay',
|
||
'darken',
|
||
'lighten',
|
||
'color-dodge',
|
||
'color-burn',
|
||
'hard-light',
|
||
'soft-light',
|
||
'difference',
|
||
'exclusion',
|
||
'hue',
|
||
'saturation',
|
||
'color',
|
||
'luminosity'
|
||
];
|
||
const scaleMaskImagePosition = ()=>[
|
||
isNumber,
|
||
isPercent,
|
||
isArbitraryVariablePosition,
|
||
isArbitraryPosition
|
||
];
|
||
const scaleBlur = ()=>[
|
||
// Deprecated since Tailwind CSS v4.0.0
|
||
'',
|
||
'none',
|
||
themeBlur,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleRotate = ()=>[
|
||
'none',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleScale = ()=>[
|
||
'none',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleSkew = ()=>[
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
];
|
||
const scaleTranslate = ()=>[
|
||
isFraction,
|
||
'full',
|
||
...scaleUnambiguousSpacing()
|
||
];
|
||
return {
|
||
cacheSize: 500,
|
||
theme: {
|
||
animate: [
|
||
'spin',
|
||
'ping',
|
||
'pulse',
|
||
'bounce'
|
||
],
|
||
aspect: [
|
||
'video'
|
||
],
|
||
blur: [
|
||
isTshirtSize
|
||
],
|
||
breakpoint: [
|
||
isTshirtSize
|
||
],
|
||
color: [
|
||
isAny
|
||
],
|
||
container: [
|
||
isTshirtSize
|
||
],
|
||
'drop-shadow': [
|
||
isTshirtSize
|
||
],
|
||
ease: [
|
||
'in',
|
||
'out',
|
||
'in-out'
|
||
],
|
||
font: [
|
||
isAnyNonArbitrary
|
||
],
|
||
'font-weight': [
|
||
'thin',
|
||
'extralight',
|
||
'light',
|
||
'normal',
|
||
'medium',
|
||
'semibold',
|
||
'bold',
|
||
'extrabold',
|
||
'black'
|
||
],
|
||
'inset-shadow': [
|
||
isTshirtSize
|
||
],
|
||
leading: [
|
||
'none',
|
||
'tight',
|
||
'snug',
|
||
'normal',
|
||
'relaxed',
|
||
'loose'
|
||
],
|
||
perspective: [
|
||
'dramatic',
|
||
'near',
|
||
'normal',
|
||
'midrange',
|
||
'distant',
|
||
'none'
|
||
],
|
||
radius: [
|
||
isTshirtSize
|
||
],
|
||
shadow: [
|
||
isTshirtSize
|
||
],
|
||
spacing: [
|
||
'px',
|
||
isNumber
|
||
],
|
||
text: [
|
||
isTshirtSize
|
||
],
|
||
'text-shadow': [
|
||
isTshirtSize
|
||
],
|
||
tracking: [
|
||
'tighter',
|
||
'tight',
|
||
'normal',
|
||
'wide',
|
||
'wider',
|
||
'widest'
|
||
]
|
||
},
|
||
classGroups: {
|
||
// --------------
|
||
// --- Layout ---
|
||
// --------------
|
||
/**
|
||
* Aspect Ratio
|
||
* @see https://tailwindcss.com/docs/aspect-ratio
|
||
*/ aspect: [
|
||
{
|
||
aspect: [
|
||
'auto',
|
||
'square',
|
||
isFraction,
|
||
isArbitraryValue,
|
||
isArbitraryVariable,
|
||
themeAspect
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Container
|
||
* @see https://tailwindcss.com/docs/container
|
||
* @deprecated since Tailwind CSS v4.0.0
|
||
*/ container: [
|
||
'container'
|
||
],
|
||
/**
|
||
* Columns
|
||
* @see https://tailwindcss.com/docs/columns
|
||
*/ columns: [
|
||
{
|
||
columns: [
|
||
isNumber,
|
||
isArbitraryValue,
|
||
isArbitraryVariable,
|
||
themeContainer
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Break After
|
||
* @see https://tailwindcss.com/docs/break-after
|
||
*/ 'break-after': [
|
||
{
|
||
'break-after': scaleBreak()
|
||
}
|
||
],
|
||
/**
|
||
* Break Before
|
||
* @see https://tailwindcss.com/docs/break-before
|
||
*/ 'break-before': [
|
||
{
|
||
'break-before': scaleBreak()
|
||
}
|
||
],
|
||
/**
|
||
* Break Inside
|
||
* @see https://tailwindcss.com/docs/break-inside
|
||
*/ 'break-inside': [
|
||
{
|
||
'break-inside': [
|
||
'auto',
|
||
'avoid',
|
||
'avoid-page',
|
||
'avoid-column'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Box Decoration Break
|
||
* @see https://tailwindcss.com/docs/box-decoration-break
|
||
*/ 'box-decoration': [
|
||
{
|
||
'box-decoration': [
|
||
'slice',
|
||
'clone'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Box Sizing
|
||
* @see https://tailwindcss.com/docs/box-sizing
|
||
*/ box: [
|
||
{
|
||
box: [
|
||
'border',
|
||
'content'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Display
|
||
* @see https://tailwindcss.com/docs/display
|
||
*/ display: [
|
||
'block',
|
||
'inline-block',
|
||
'inline',
|
||
'flex',
|
||
'inline-flex',
|
||
'table',
|
||
'inline-table',
|
||
'table-caption',
|
||
'table-cell',
|
||
'table-column',
|
||
'table-column-group',
|
||
'table-footer-group',
|
||
'table-header-group',
|
||
'table-row-group',
|
||
'table-row',
|
||
'flow-root',
|
||
'grid',
|
||
'inline-grid',
|
||
'contents',
|
||
'list-item',
|
||
'hidden'
|
||
],
|
||
/**
|
||
* Screen Reader Only
|
||
* @see https://tailwindcss.com/docs/display#screen-reader-only
|
||
*/ sr: [
|
||
'sr-only',
|
||
'not-sr-only'
|
||
],
|
||
/**
|
||
* Floats
|
||
* @see https://tailwindcss.com/docs/float
|
||
*/ float: [
|
||
{
|
||
float: [
|
||
'right',
|
||
'left',
|
||
'none',
|
||
'start',
|
||
'end'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Clear
|
||
* @see https://tailwindcss.com/docs/clear
|
||
*/ clear: [
|
||
{
|
||
clear: [
|
||
'left',
|
||
'right',
|
||
'both',
|
||
'none',
|
||
'start',
|
||
'end'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Isolation
|
||
* @see https://tailwindcss.com/docs/isolation
|
||
*/ isolation: [
|
||
'isolate',
|
||
'isolation-auto'
|
||
],
|
||
/**
|
||
* Object Fit
|
||
* @see https://tailwindcss.com/docs/object-fit
|
||
*/ 'object-fit': [
|
||
{
|
||
object: [
|
||
'contain',
|
||
'cover',
|
||
'fill',
|
||
'none',
|
||
'scale-down'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Object Position
|
||
* @see https://tailwindcss.com/docs/object-position
|
||
*/ 'object-position': [
|
||
{
|
||
object: scalePositionWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Overflow
|
||
* @see https://tailwindcss.com/docs/overflow
|
||
*/ overflow: [
|
||
{
|
||
overflow: scaleOverflow()
|
||
}
|
||
],
|
||
/**
|
||
* Overflow X
|
||
* @see https://tailwindcss.com/docs/overflow
|
||
*/ 'overflow-x': [
|
||
{
|
||
'overflow-x': scaleOverflow()
|
||
}
|
||
],
|
||
/**
|
||
* Overflow Y
|
||
* @see https://tailwindcss.com/docs/overflow
|
||
*/ 'overflow-y': [
|
||
{
|
||
'overflow-y': scaleOverflow()
|
||
}
|
||
],
|
||
/**
|
||
* Overscroll Behavior
|
||
* @see https://tailwindcss.com/docs/overscroll-behavior
|
||
*/ overscroll: [
|
||
{
|
||
overscroll: scaleOverscroll()
|
||
}
|
||
],
|
||
/**
|
||
* Overscroll Behavior X
|
||
* @see https://tailwindcss.com/docs/overscroll-behavior
|
||
*/ 'overscroll-x': [
|
||
{
|
||
'overscroll-x': scaleOverscroll()
|
||
}
|
||
],
|
||
/**
|
||
* Overscroll Behavior Y
|
||
* @see https://tailwindcss.com/docs/overscroll-behavior
|
||
*/ 'overscroll-y': [
|
||
{
|
||
'overscroll-y': scaleOverscroll()
|
||
}
|
||
],
|
||
/**
|
||
* Position
|
||
* @see https://tailwindcss.com/docs/position
|
||
*/ position: [
|
||
'static',
|
||
'fixed',
|
||
'absolute',
|
||
'relative',
|
||
'sticky'
|
||
],
|
||
/**
|
||
* Top / Right / Bottom / Left
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ inset: [
|
||
{
|
||
inset: scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* Right / Left
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ 'inset-x': [
|
||
{
|
||
'inset-x': scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* Top / Bottom
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ 'inset-y': [
|
||
{
|
||
'inset-y': scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* Start
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ start: [
|
||
{
|
||
start: scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* End
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ end: [
|
||
{
|
||
end: scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* Top
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ top: [
|
||
{
|
||
top: scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* Right
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ right: [
|
||
{
|
||
right: scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* Bottom
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ bottom: [
|
||
{
|
||
bottom: scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* Left
|
||
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
||
*/ left: [
|
||
{
|
||
left: scaleInset()
|
||
}
|
||
],
|
||
/**
|
||
* Visibility
|
||
* @see https://tailwindcss.com/docs/visibility
|
||
*/ visibility: [
|
||
'visible',
|
||
'invisible',
|
||
'collapse'
|
||
],
|
||
/**
|
||
* Z-Index
|
||
* @see https://tailwindcss.com/docs/z-index
|
||
*/ z: [
|
||
{
|
||
z: [
|
||
isInteger,
|
||
'auto',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// ------------------------
|
||
// --- Flexbox and Grid ---
|
||
// ------------------------
|
||
/**
|
||
* Flex Basis
|
||
* @see https://tailwindcss.com/docs/flex-basis
|
||
*/ basis: [
|
||
{
|
||
basis: [
|
||
isFraction,
|
||
'full',
|
||
'auto',
|
||
themeContainer,
|
||
...scaleUnambiguousSpacing()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Flex Direction
|
||
* @see https://tailwindcss.com/docs/flex-direction
|
||
*/ 'flex-direction': [
|
||
{
|
||
flex: [
|
||
'row',
|
||
'row-reverse',
|
||
'col',
|
||
'col-reverse'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Flex Wrap
|
||
* @see https://tailwindcss.com/docs/flex-wrap
|
||
*/ 'flex-wrap': [
|
||
{
|
||
flex: [
|
||
'nowrap',
|
||
'wrap',
|
||
'wrap-reverse'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Flex
|
||
* @see https://tailwindcss.com/docs/flex
|
||
*/ flex: [
|
||
{
|
||
flex: [
|
||
isNumber,
|
||
isFraction,
|
||
'auto',
|
||
'initial',
|
||
'none',
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Flex Grow
|
||
* @see https://tailwindcss.com/docs/flex-grow
|
||
*/ grow: [
|
||
{
|
||
grow: [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Flex Shrink
|
||
* @see https://tailwindcss.com/docs/flex-shrink
|
||
*/ shrink: [
|
||
{
|
||
shrink: [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Order
|
||
* @see https://tailwindcss.com/docs/order
|
||
*/ order: [
|
||
{
|
||
order: [
|
||
isInteger,
|
||
'first',
|
||
'last',
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Template Columns
|
||
* @see https://tailwindcss.com/docs/grid-template-columns
|
||
*/ 'grid-cols': [
|
||
{
|
||
'grid-cols': scaleGridTemplateColsRows()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Column Start / End
|
||
* @see https://tailwindcss.com/docs/grid-column
|
||
*/ 'col-start-end': [
|
||
{
|
||
col: scaleGridColRowStartAndEnd()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Column Start
|
||
* @see https://tailwindcss.com/docs/grid-column
|
||
*/ 'col-start': [
|
||
{
|
||
'col-start': scaleGridColRowStartOrEnd()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Column End
|
||
* @see https://tailwindcss.com/docs/grid-column
|
||
*/ 'col-end': [
|
||
{
|
||
'col-end': scaleGridColRowStartOrEnd()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Template Rows
|
||
* @see https://tailwindcss.com/docs/grid-template-rows
|
||
*/ 'grid-rows': [
|
||
{
|
||
'grid-rows': scaleGridTemplateColsRows()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Row Start / End
|
||
* @see https://tailwindcss.com/docs/grid-row
|
||
*/ 'row-start-end': [
|
||
{
|
||
row: scaleGridColRowStartAndEnd()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Row Start
|
||
* @see https://tailwindcss.com/docs/grid-row
|
||
*/ 'row-start': [
|
||
{
|
||
'row-start': scaleGridColRowStartOrEnd()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Row End
|
||
* @see https://tailwindcss.com/docs/grid-row
|
||
*/ 'row-end': [
|
||
{
|
||
'row-end': scaleGridColRowStartOrEnd()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Auto Flow
|
||
* @see https://tailwindcss.com/docs/grid-auto-flow
|
||
*/ 'grid-flow': [
|
||
{
|
||
'grid-flow': [
|
||
'row',
|
||
'col',
|
||
'dense',
|
||
'row-dense',
|
||
'col-dense'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Grid Auto Columns
|
||
* @see https://tailwindcss.com/docs/grid-auto-columns
|
||
*/ 'auto-cols': [
|
||
{
|
||
'auto-cols': scaleGridAutoColsRows()
|
||
}
|
||
],
|
||
/**
|
||
* Grid Auto Rows
|
||
* @see https://tailwindcss.com/docs/grid-auto-rows
|
||
*/ 'auto-rows': [
|
||
{
|
||
'auto-rows': scaleGridAutoColsRows()
|
||
}
|
||
],
|
||
/**
|
||
* Gap
|
||
* @see https://tailwindcss.com/docs/gap
|
||
*/ gap: [
|
||
{
|
||
gap: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Gap X
|
||
* @see https://tailwindcss.com/docs/gap
|
||
*/ 'gap-x': [
|
||
{
|
||
'gap-x': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Gap Y
|
||
* @see https://tailwindcss.com/docs/gap
|
||
*/ 'gap-y': [
|
||
{
|
||
'gap-y': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Justify Content
|
||
* @see https://tailwindcss.com/docs/justify-content
|
||
*/ 'justify-content': [
|
||
{
|
||
justify: [
|
||
...scaleAlignPrimaryAxis(),
|
||
'normal'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Justify Items
|
||
* @see https://tailwindcss.com/docs/justify-items
|
||
*/ 'justify-items': [
|
||
{
|
||
'justify-items': [
|
||
...scaleAlignSecondaryAxis(),
|
||
'normal'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Justify Self
|
||
* @see https://tailwindcss.com/docs/justify-self
|
||
*/ 'justify-self': [
|
||
{
|
||
'justify-self': [
|
||
'auto',
|
||
...scaleAlignSecondaryAxis()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Align Content
|
||
* @see https://tailwindcss.com/docs/align-content
|
||
*/ 'align-content': [
|
||
{
|
||
content: [
|
||
'normal',
|
||
...scaleAlignPrimaryAxis()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Align Items
|
||
* @see https://tailwindcss.com/docs/align-items
|
||
*/ 'align-items': [
|
||
{
|
||
items: [
|
||
...scaleAlignSecondaryAxis(),
|
||
{
|
||
baseline: [
|
||
'',
|
||
'last'
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Align Self
|
||
* @see https://tailwindcss.com/docs/align-self
|
||
*/ 'align-self': [
|
||
{
|
||
self: [
|
||
'auto',
|
||
...scaleAlignSecondaryAxis(),
|
||
{
|
||
baseline: [
|
||
'',
|
||
'last'
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Place Content
|
||
* @see https://tailwindcss.com/docs/place-content
|
||
*/ 'place-content': [
|
||
{
|
||
'place-content': scaleAlignPrimaryAxis()
|
||
}
|
||
],
|
||
/**
|
||
* Place Items
|
||
* @see https://tailwindcss.com/docs/place-items
|
||
*/ 'place-items': [
|
||
{
|
||
'place-items': [
|
||
...scaleAlignSecondaryAxis(),
|
||
'baseline'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Place Self
|
||
* @see https://tailwindcss.com/docs/place-self
|
||
*/ 'place-self': [
|
||
{
|
||
'place-self': [
|
||
'auto',
|
||
...scaleAlignSecondaryAxis()
|
||
]
|
||
}
|
||
],
|
||
// Spacing
|
||
/**
|
||
* Padding
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ p: [
|
||
{
|
||
p: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Padding X
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ px: [
|
||
{
|
||
px: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Padding Y
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ py: [
|
||
{
|
||
py: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Padding Start
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ ps: [
|
||
{
|
||
ps: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Padding End
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pe: [
|
||
{
|
||
pe: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Padding Top
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pt: [
|
||
{
|
||
pt: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Padding Right
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pr: [
|
||
{
|
||
pr: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Padding Bottom
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pb: [
|
||
{
|
||
pb: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Padding Left
|
||
* @see https://tailwindcss.com/docs/padding
|
||
*/ pl: [
|
||
{
|
||
pl: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Margin
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ m: [
|
||
{
|
||
m: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Margin X
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ mx: [
|
||
{
|
||
mx: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Margin Y
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ my: [
|
||
{
|
||
my: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Margin Start
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ ms: [
|
||
{
|
||
ms: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Margin End
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ me: [
|
||
{
|
||
me: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Margin Top
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ mt: [
|
||
{
|
||
mt: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Margin Right
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ mr: [
|
||
{
|
||
mr: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Margin Bottom
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ mb: [
|
||
{
|
||
mb: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Margin Left
|
||
* @see https://tailwindcss.com/docs/margin
|
||
*/ ml: [
|
||
{
|
||
ml: scaleMargin()
|
||
}
|
||
],
|
||
/**
|
||
* Space Between X
|
||
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
||
*/ 'space-x': [
|
||
{
|
||
'space-x': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Space Between X Reverse
|
||
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
||
*/ 'space-x-reverse': [
|
||
'space-x-reverse'
|
||
],
|
||
/**
|
||
* Space Between Y
|
||
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
||
*/ 'space-y': [
|
||
{
|
||
'space-y': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Space Between Y Reverse
|
||
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
||
*/ 'space-y-reverse': [
|
||
'space-y-reverse'
|
||
],
|
||
// --------------
|
||
// --- Sizing ---
|
||
// --------------
|
||
/**
|
||
* Size
|
||
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
||
*/ size: [
|
||
{
|
||
size: scaleSizing()
|
||
}
|
||
],
|
||
/**
|
||
* Width
|
||
* @see https://tailwindcss.com/docs/width
|
||
*/ w: [
|
||
{
|
||
w: [
|
||
themeContainer,
|
||
'screen',
|
||
...scaleSizing()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Min-Width
|
||
* @see https://tailwindcss.com/docs/min-width
|
||
*/ 'min-w': [
|
||
{
|
||
'min-w': [
|
||
themeContainer,
|
||
'screen',
|
||
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ 'none',
|
||
...scaleSizing()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Max-Width
|
||
* @see https://tailwindcss.com/docs/max-width
|
||
*/ 'max-w': [
|
||
{
|
||
'max-w': [
|
||
themeContainer,
|
||
'screen',
|
||
'none',
|
||
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ 'prose',
|
||
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ {
|
||
screen: [
|
||
themeBreakpoint
|
||
]
|
||
},
|
||
...scaleSizing()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Height
|
||
* @see https://tailwindcss.com/docs/height
|
||
*/ h: [
|
||
{
|
||
h: [
|
||
'screen',
|
||
'lh',
|
||
...scaleSizing()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Min-Height
|
||
* @see https://tailwindcss.com/docs/min-height
|
||
*/ 'min-h': [
|
||
{
|
||
'min-h': [
|
||
'screen',
|
||
'lh',
|
||
'none',
|
||
...scaleSizing()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Max-Height
|
||
* @see https://tailwindcss.com/docs/max-height
|
||
*/ 'max-h': [
|
||
{
|
||
'max-h': [
|
||
'screen',
|
||
'lh',
|
||
...scaleSizing()
|
||
]
|
||
}
|
||
],
|
||
// ------------------
|
||
// --- Typography ---
|
||
// ------------------
|
||
/**
|
||
* Font Size
|
||
* @see https://tailwindcss.com/docs/font-size
|
||
*/ 'font-size': [
|
||
{
|
||
text: [
|
||
'base',
|
||
themeText,
|
||
isArbitraryVariableLength,
|
||
isArbitraryLength
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Font Smoothing
|
||
* @see https://tailwindcss.com/docs/font-smoothing
|
||
*/ 'font-smoothing': [
|
||
'antialiased',
|
||
'subpixel-antialiased'
|
||
],
|
||
/**
|
||
* Font Style
|
||
* @see https://tailwindcss.com/docs/font-style
|
||
*/ 'font-style': [
|
||
'italic',
|
||
'not-italic'
|
||
],
|
||
/**
|
||
* Font Weight
|
||
* @see https://tailwindcss.com/docs/font-weight
|
||
*/ 'font-weight': [
|
||
{
|
||
font: [
|
||
themeFontWeight,
|
||
isArbitraryVariable,
|
||
isArbitraryNumber
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Font Stretch
|
||
* @see https://tailwindcss.com/docs/font-stretch
|
||
*/ 'font-stretch': [
|
||
{
|
||
'font-stretch': [
|
||
'ultra-condensed',
|
||
'extra-condensed',
|
||
'condensed',
|
||
'semi-condensed',
|
||
'normal',
|
||
'semi-expanded',
|
||
'expanded',
|
||
'extra-expanded',
|
||
'ultra-expanded',
|
||
isPercent,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Font Family
|
||
* @see https://tailwindcss.com/docs/font-family
|
||
*/ 'font-family': [
|
||
{
|
||
font: [
|
||
isArbitraryVariableFamilyName,
|
||
isArbitraryValue,
|
||
themeFont
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-normal': [
|
||
'normal-nums'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-ordinal': [
|
||
'ordinal'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-slashed-zero': [
|
||
'slashed-zero'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-figure': [
|
||
'lining-nums',
|
||
'oldstyle-nums'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-spacing': [
|
||
'proportional-nums',
|
||
'tabular-nums'
|
||
],
|
||
/**
|
||
* Font Variant Numeric
|
||
* @see https://tailwindcss.com/docs/font-variant-numeric
|
||
*/ 'fvn-fraction': [
|
||
'diagonal-fractions',
|
||
'stacked-fractions'
|
||
],
|
||
/**
|
||
* Letter Spacing
|
||
* @see https://tailwindcss.com/docs/letter-spacing
|
||
*/ tracking: [
|
||
{
|
||
tracking: [
|
||
themeTracking,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Line Clamp
|
||
* @see https://tailwindcss.com/docs/line-clamp
|
||
*/ 'line-clamp': [
|
||
{
|
||
'line-clamp': [
|
||
isNumber,
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryNumber
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Line Height
|
||
* @see https://tailwindcss.com/docs/line-height
|
||
*/ leading: [
|
||
{
|
||
leading: [
|
||
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */ themeLeading,
|
||
...scaleUnambiguousSpacing()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* List Style Image
|
||
* @see https://tailwindcss.com/docs/list-style-image
|
||
*/ 'list-image': [
|
||
{
|
||
'list-image': [
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* List Style Position
|
||
* @see https://tailwindcss.com/docs/list-style-position
|
||
*/ 'list-style-position': [
|
||
{
|
||
list: [
|
||
'inside',
|
||
'outside'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* List Style Type
|
||
* @see https://tailwindcss.com/docs/list-style-type
|
||
*/ 'list-style-type': [
|
||
{
|
||
list: [
|
||
'disc',
|
||
'decimal',
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Alignment
|
||
* @see https://tailwindcss.com/docs/text-align
|
||
*/ 'text-alignment': [
|
||
{
|
||
text: [
|
||
'left',
|
||
'center',
|
||
'right',
|
||
'justify',
|
||
'start',
|
||
'end'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Placeholder Color
|
||
* @deprecated since Tailwind CSS v3.0.0
|
||
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
||
*/ 'placeholder-color': [
|
||
{
|
||
placeholder: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Text Color
|
||
* @see https://tailwindcss.com/docs/text-color
|
||
*/ 'text-color': [
|
||
{
|
||
text: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Text Decoration
|
||
* @see https://tailwindcss.com/docs/text-decoration
|
||
*/ 'text-decoration': [
|
||
'underline',
|
||
'overline',
|
||
'line-through',
|
||
'no-underline'
|
||
],
|
||
/**
|
||
* Text Decoration Style
|
||
* @see https://tailwindcss.com/docs/text-decoration-style
|
||
*/ 'text-decoration-style': [
|
||
{
|
||
decoration: [
|
||
...scaleLineStyle(),
|
||
'wavy'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Decoration Thickness
|
||
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
||
*/ 'text-decoration-thickness': [
|
||
{
|
||
decoration: [
|
||
isNumber,
|
||
'from-font',
|
||
'auto',
|
||
isArbitraryVariable,
|
||
isArbitraryLength
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Decoration Color
|
||
* @see https://tailwindcss.com/docs/text-decoration-color
|
||
*/ 'text-decoration-color': [
|
||
{
|
||
decoration: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Text Underline Offset
|
||
* @see https://tailwindcss.com/docs/text-underline-offset
|
||
*/ 'underline-offset': [
|
||
{
|
||
'underline-offset': [
|
||
isNumber,
|
||
'auto',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Transform
|
||
* @see https://tailwindcss.com/docs/text-transform
|
||
*/ 'text-transform': [
|
||
'uppercase',
|
||
'lowercase',
|
||
'capitalize',
|
||
'normal-case'
|
||
],
|
||
/**
|
||
* Text Overflow
|
||
* @see https://tailwindcss.com/docs/text-overflow
|
||
*/ 'text-overflow': [
|
||
'truncate',
|
||
'text-ellipsis',
|
||
'text-clip'
|
||
],
|
||
/**
|
||
* Text Wrap
|
||
* @see https://tailwindcss.com/docs/text-wrap
|
||
*/ 'text-wrap': [
|
||
{
|
||
text: [
|
||
'wrap',
|
||
'nowrap',
|
||
'balance',
|
||
'pretty'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Indent
|
||
* @see https://tailwindcss.com/docs/text-indent
|
||
*/ indent: [
|
||
{
|
||
indent: scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Vertical Alignment
|
||
* @see https://tailwindcss.com/docs/vertical-align
|
||
*/ 'vertical-align': [
|
||
{
|
||
align: [
|
||
'baseline',
|
||
'top',
|
||
'middle',
|
||
'bottom',
|
||
'text-top',
|
||
'text-bottom',
|
||
'sub',
|
||
'super',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Whitespace
|
||
* @see https://tailwindcss.com/docs/whitespace
|
||
*/ whitespace: [
|
||
{
|
||
whitespace: [
|
||
'normal',
|
||
'nowrap',
|
||
'pre',
|
||
'pre-line',
|
||
'pre-wrap',
|
||
'break-spaces'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Word Break
|
||
* @see https://tailwindcss.com/docs/word-break
|
||
*/ break: [
|
||
{
|
||
break: [
|
||
'normal',
|
||
'words',
|
||
'all',
|
||
'keep'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Overflow Wrap
|
||
* @see https://tailwindcss.com/docs/overflow-wrap
|
||
*/ wrap: [
|
||
{
|
||
wrap: [
|
||
'break-word',
|
||
'anywhere',
|
||
'normal'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Hyphens
|
||
* @see https://tailwindcss.com/docs/hyphens
|
||
*/ hyphens: [
|
||
{
|
||
hyphens: [
|
||
'none',
|
||
'manual',
|
||
'auto'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Content
|
||
* @see https://tailwindcss.com/docs/content
|
||
*/ content: [
|
||
{
|
||
content: [
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// -------------------
|
||
// --- Backgrounds ---
|
||
// -------------------
|
||
/**
|
||
* Background Attachment
|
||
* @see https://tailwindcss.com/docs/background-attachment
|
||
*/ 'bg-attachment': [
|
||
{
|
||
bg: [
|
||
'fixed',
|
||
'local',
|
||
'scroll'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Clip
|
||
* @see https://tailwindcss.com/docs/background-clip
|
||
*/ 'bg-clip': [
|
||
{
|
||
'bg-clip': [
|
||
'border',
|
||
'padding',
|
||
'content',
|
||
'text'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Origin
|
||
* @see https://tailwindcss.com/docs/background-origin
|
||
*/ 'bg-origin': [
|
||
{
|
||
'bg-origin': [
|
||
'border',
|
||
'padding',
|
||
'content'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Position
|
||
* @see https://tailwindcss.com/docs/background-position
|
||
*/ 'bg-position': [
|
||
{
|
||
bg: scaleBgPosition()
|
||
}
|
||
],
|
||
/**
|
||
* Background Repeat
|
||
* @see https://tailwindcss.com/docs/background-repeat
|
||
*/ 'bg-repeat': [
|
||
{
|
||
bg: scaleBgRepeat()
|
||
}
|
||
],
|
||
/**
|
||
* Background Size
|
||
* @see https://tailwindcss.com/docs/background-size
|
||
*/ 'bg-size': [
|
||
{
|
||
bg: scaleBgSize()
|
||
}
|
||
],
|
||
/**
|
||
* Background Image
|
||
* @see https://tailwindcss.com/docs/background-image
|
||
*/ 'bg-image': [
|
||
{
|
||
bg: [
|
||
'none',
|
||
{
|
||
linear: [
|
||
{
|
||
to: [
|
||
't',
|
||
'tr',
|
||
'r',
|
||
'br',
|
||
'b',
|
||
'bl',
|
||
'l',
|
||
'tl'
|
||
]
|
||
},
|
||
isInteger,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
],
|
||
radial: [
|
||
'',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
],
|
||
conic: [
|
||
isInteger,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
},
|
||
isArbitraryVariableImage,
|
||
isArbitraryImage
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Color
|
||
* @see https://tailwindcss.com/docs/background-color
|
||
*/ 'bg-color': [
|
||
{
|
||
bg: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops From Position
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-from-pos': [
|
||
{
|
||
from: scaleGradientStopPosition()
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops Via Position
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-via-pos': [
|
||
{
|
||
via: scaleGradientStopPosition()
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops To Position
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-to-pos': [
|
||
{
|
||
to: scaleGradientStopPosition()
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops From
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-from': [
|
||
{
|
||
from: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops Via
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-via': [
|
||
{
|
||
via: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Gradient Color Stops To
|
||
* @see https://tailwindcss.com/docs/gradient-color-stops
|
||
*/ 'gradient-to': [
|
||
{
|
||
to: scaleColor()
|
||
}
|
||
],
|
||
// ---------------
|
||
// --- Borders ---
|
||
// ---------------
|
||
/**
|
||
* Border Radius
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ rounded: [
|
||
{
|
||
rounded: scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Start
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-s': [
|
||
{
|
||
'rounded-s': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius End
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-e': [
|
||
{
|
||
'rounded-e': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Top
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-t': [
|
||
{
|
||
'rounded-t': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Right
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-r': [
|
||
{
|
||
'rounded-r': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Bottom
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-b': [
|
||
{
|
||
'rounded-b': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Left
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-l': [
|
||
{
|
||
'rounded-l': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Start Start
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-ss': [
|
||
{
|
||
'rounded-ss': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Start End
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-se': [
|
||
{
|
||
'rounded-se': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius End End
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-ee': [
|
||
{
|
||
'rounded-ee': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius End Start
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-es': [
|
||
{
|
||
'rounded-es': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Top Left
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-tl': [
|
||
{
|
||
'rounded-tl': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Top Right
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-tr': [
|
||
{
|
||
'rounded-tr': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Bottom Right
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-br': [
|
||
{
|
||
'rounded-br': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Radius Bottom Left
|
||
* @see https://tailwindcss.com/docs/border-radius
|
||
*/ 'rounded-bl': [
|
||
{
|
||
'rounded-bl': scaleRadius()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w': [
|
||
{
|
||
border: scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width X
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-x': [
|
||
{
|
||
'border-x': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Y
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-y': [
|
||
{
|
||
'border-y': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Start
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-s': [
|
||
{
|
||
'border-s': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width End
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-e': [
|
||
{
|
||
'border-e': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Top
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-t': [
|
||
{
|
||
'border-t': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Right
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-r': [
|
||
{
|
||
'border-r': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Bottom
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-b': [
|
||
{
|
||
'border-b': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Border Width Left
|
||
* @see https://tailwindcss.com/docs/border-width
|
||
*/ 'border-w-l': [
|
||
{
|
||
'border-l': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Divide Width X
|
||
* @see https://tailwindcss.com/docs/border-width#between-children
|
||
*/ 'divide-x': [
|
||
{
|
||
'divide-x': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Divide Width X Reverse
|
||
* @see https://tailwindcss.com/docs/border-width#between-children
|
||
*/ 'divide-x-reverse': [
|
||
'divide-x-reverse'
|
||
],
|
||
/**
|
||
* Divide Width Y
|
||
* @see https://tailwindcss.com/docs/border-width#between-children
|
||
*/ 'divide-y': [
|
||
{
|
||
'divide-y': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Divide Width Y Reverse
|
||
* @see https://tailwindcss.com/docs/border-width#between-children
|
||
*/ 'divide-y-reverse': [
|
||
'divide-y-reverse'
|
||
],
|
||
/**
|
||
* Border Style
|
||
* @see https://tailwindcss.com/docs/border-style
|
||
*/ 'border-style': [
|
||
{
|
||
border: [
|
||
...scaleLineStyle(),
|
||
'hidden',
|
||
'none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Divide Style
|
||
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
||
*/ 'divide-style': [
|
||
{
|
||
divide: [
|
||
...scaleLineStyle(),
|
||
'hidden',
|
||
'none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Color
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color': [
|
||
{
|
||
border: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color X
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-x': [
|
||
{
|
||
'border-x': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Y
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-y': [
|
||
{
|
||
'border-y': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color S
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-s': [
|
||
{
|
||
'border-s': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color E
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-e': [
|
||
{
|
||
'border-e': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Top
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-t': [
|
||
{
|
||
'border-t': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Right
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-r': [
|
||
{
|
||
'border-r': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Bottom
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-b': [
|
||
{
|
||
'border-b': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Border Color Left
|
||
* @see https://tailwindcss.com/docs/border-color
|
||
*/ 'border-color-l': [
|
||
{
|
||
'border-l': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Divide Color
|
||
* @see https://tailwindcss.com/docs/divide-color
|
||
*/ 'divide-color': [
|
||
{
|
||
divide: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Outline Style
|
||
* @see https://tailwindcss.com/docs/outline-style
|
||
*/ 'outline-style': [
|
||
{
|
||
outline: [
|
||
...scaleLineStyle(),
|
||
'none',
|
||
'hidden'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Outline Offset
|
||
* @see https://tailwindcss.com/docs/outline-offset
|
||
*/ 'outline-offset': [
|
||
{
|
||
'outline-offset': [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Outline Width
|
||
* @see https://tailwindcss.com/docs/outline-width
|
||
*/ 'outline-w': [
|
||
{
|
||
outline: [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariableLength,
|
||
isArbitraryLength
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Outline Color
|
||
* @see https://tailwindcss.com/docs/outline-color
|
||
*/ 'outline-color': [
|
||
{
|
||
outline: scaleColor()
|
||
}
|
||
],
|
||
// ---------------
|
||
// --- Effects ---
|
||
// ---------------
|
||
/**
|
||
* Box Shadow
|
||
* @see https://tailwindcss.com/docs/box-shadow
|
||
*/ shadow: [
|
||
{
|
||
shadow: [
|
||
// Deprecated since Tailwind CSS v4.0.0
|
||
'',
|
||
'none',
|
||
themeShadow,
|
||
isArbitraryVariableShadow,
|
||
isArbitraryShadow
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Box Shadow Color
|
||
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
||
*/ 'shadow-color': [
|
||
{
|
||
shadow: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Inset Box Shadow
|
||
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
||
*/ 'inset-shadow': [
|
||
{
|
||
'inset-shadow': [
|
||
'none',
|
||
themeInsetShadow,
|
||
isArbitraryVariableShadow,
|
||
isArbitraryShadow
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Inset Box Shadow Color
|
||
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
||
*/ 'inset-shadow-color': [
|
||
{
|
||
'inset-shadow': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Ring Width
|
||
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
||
*/ 'ring-w': [
|
||
{
|
||
ring: scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Ring Width Inset
|
||
* @see https://v3.tailwindcss.com/docs/ring-width#inset-rings
|
||
* @deprecated since Tailwind CSS v4.0.0
|
||
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
||
*/ 'ring-w-inset': [
|
||
'ring-inset'
|
||
],
|
||
/**
|
||
* Ring Color
|
||
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
||
*/ 'ring-color': [
|
||
{
|
||
ring: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Ring Offset Width
|
||
* @see https://v3.tailwindcss.com/docs/ring-offset-width
|
||
* @deprecated since Tailwind CSS v4.0.0
|
||
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
||
*/ 'ring-offset-w': [
|
||
{
|
||
'ring-offset': [
|
||
isNumber,
|
||
isArbitraryLength
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Ring Offset Color
|
||
* @see https://v3.tailwindcss.com/docs/ring-offset-color
|
||
* @deprecated since Tailwind CSS v4.0.0
|
||
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
||
*/ 'ring-offset-color': [
|
||
{
|
||
'ring-offset': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Inset Ring Width
|
||
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
||
*/ 'inset-ring-w': [
|
||
{
|
||
'inset-ring': scaleBorderWidth()
|
||
}
|
||
],
|
||
/**
|
||
* Inset Ring Color
|
||
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
||
*/ 'inset-ring-color': [
|
||
{
|
||
'inset-ring': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Text Shadow
|
||
* @see https://tailwindcss.com/docs/text-shadow
|
||
*/ 'text-shadow': [
|
||
{
|
||
'text-shadow': [
|
||
'none',
|
||
themeTextShadow,
|
||
isArbitraryVariableShadow,
|
||
isArbitraryShadow
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Text Shadow Color
|
||
* @see https://tailwindcss.com/docs/text-shadow#setting-the-shadow-color
|
||
*/ 'text-shadow-color': [
|
||
{
|
||
'text-shadow': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Opacity
|
||
* @see https://tailwindcss.com/docs/opacity
|
||
*/ opacity: [
|
||
{
|
||
opacity: [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Mix Blend Mode
|
||
* @see https://tailwindcss.com/docs/mix-blend-mode
|
||
*/ 'mix-blend': [
|
||
{
|
||
'mix-blend': [
|
||
...scaleBlendMode(),
|
||
'plus-darker',
|
||
'plus-lighter'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Background Blend Mode
|
||
* @see https://tailwindcss.com/docs/background-blend-mode
|
||
*/ 'bg-blend': [
|
||
{
|
||
'bg-blend': scaleBlendMode()
|
||
}
|
||
],
|
||
/**
|
||
* Mask Clip
|
||
* @see https://tailwindcss.com/docs/mask-clip
|
||
*/ 'mask-clip': [
|
||
{
|
||
'mask-clip': [
|
||
'border',
|
||
'padding',
|
||
'content',
|
||
'fill',
|
||
'stroke',
|
||
'view'
|
||
]
|
||
},
|
||
'mask-no-clip'
|
||
],
|
||
/**
|
||
* Mask Composite
|
||
* @see https://tailwindcss.com/docs/mask-composite
|
||
*/ 'mask-composite': [
|
||
{
|
||
mask: [
|
||
'add',
|
||
'subtract',
|
||
'intersect',
|
||
'exclude'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Mask Image
|
||
* @see https://tailwindcss.com/docs/mask-image
|
||
*/ 'mask-image-linear-pos': [
|
||
{
|
||
'mask-linear': [
|
||
isNumber
|
||
]
|
||
}
|
||
],
|
||
'mask-image-linear-from-pos': [
|
||
{
|
||
'mask-linear-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-linear-to-pos': [
|
||
{
|
||
'mask-linear-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-linear-from-color': [
|
||
{
|
||
'mask-linear-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-linear-to-color': [
|
||
{
|
||
'mask-linear-to': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-t-from-pos': [
|
||
{
|
||
'mask-t-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-t-to-pos': [
|
||
{
|
||
'mask-t-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-t-from-color': [
|
||
{
|
||
'mask-t-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-t-to-color': [
|
||
{
|
||
'mask-t-to': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-r-from-pos': [
|
||
{
|
||
'mask-r-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-r-to-pos': [
|
||
{
|
||
'mask-r-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-r-from-color': [
|
||
{
|
||
'mask-r-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-r-to-color': [
|
||
{
|
||
'mask-r-to': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-b-from-pos': [
|
||
{
|
||
'mask-b-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-b-to-pos': [
|
||
{
|
||
'mask-b-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-b-from-color': [
|
||
{
|
||
'mask-b-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-b-to-color': [
|
||
{
|
||
'mask-b-to': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-l-from-pos': [
|
||
{
|
||
'mask-l-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-l-to-pos': [
|
||
{
|
||
'mask-l-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-l-from-color': [
|
||
{
|
||
'mask-l-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-l-to-color': [
|
||
{
|
||
'mask-l-to': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-x-from-pos': [
|
||
{
|
||
'mask-x-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-x-to-pos': [
|
||
{
|
||
'mask-x-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-x-from-color': [
|
||
{
|
||
'mask-x-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-x-to-color': [
|
||
{
|
||
'mask-x-to': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-y-from-pos': [
|
||
{
|
||
'mask-y-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-y-to-pos': [
|
||
{
|
||
'mask-y-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-y-from-color': [
|
||
{
|
||
'mask-y-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-y-to-color': [
|
||
{
|
||
'mask-y-to': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-radial': [
|
||
{
|
||
'mask-radial': [
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
'mask-image-radial-from-pos': [
|
||
{
|
||
'mask-radial-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-radial-to-pos': [
|
||
{
|
||
'mask-radial-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-radial-from-color': [
|
||
{
|
||
'mask-radial-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-radial-to-color': [
|
||
{
|
||
'mask-radial-to': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-radial-shape': [
|
||
{
|
||
'mask-radial': [
|
||
'circle',
|
||
'ellipse'
|
||
]
|
||
}
|
||
],
|
||
'mask-image-radial-size': [
|
||
{
|
||
'mask-radial': [
|
||
{
|
||
closest: [
|
||
'side',
|
||
'corner'
|
||
],
|
||
farthest: [
|
||
'side',
|
||
'corner'
|
||
]
|
||
}
|
||
]
|
||
}
|
||
],
|
||
'mask-image-radial-pos': [
|
||
{
|
||
'mask-radial-at': scalePosition()
|
||
}
|
||
],
|
||
'mask-image-conic-pos': [
|
||
{
|
||
'mask-conic': [
|
||
isNumber
|
||
]
|
||
}
|
||
],
|
||
'mask-image-conic-from-pos': [
|
||
{
|
||
'mask-conic-from': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-conic-to-pos': [
|
||
{
|
||
'mask-conic-to': scaleMaskImagePosition()
|
||
}
|
||
],
|
||
'mask-image-conic-from-color': [
|
||
{
|
||
'mask-conic-from': scaleColor()
|
||
}
|
||
],
|
||
'mask-image-conic-to-color': [
|
||
{
|
||
'mask-conic-to': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Mask Mode
|
||
* @see https://tailwindcss.com/docs/mask-mode
|
||
*/ 'mask-mode': [
|
||
{
|
||
mask: [
|
||
'alpha',
|
||
'luminance',
|
||
'match'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Mask Origin
|
||
* @see https://tailwindcss.com/docs/mask-origin
|
||
*/ 'mask-origin': [
|
||
{
|
||
'mask-origin': [
|
||
'border',
|
||
'padding',
|
||
'content',
|
||
'fill',
|
||
'stroke',
|
||
'view'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Mask Position
|
||
* @see https://tailwindcss.com/docs/mask-position
|
||
*/ 'mask-position': [
|
||
{
|
||
mask: scaleBgPosition()
|
||
}
|
||
],
|
||
/**
|
||
* Mask Repeat
|
||
* @see https://tailwindcss.com/docs/mask-repeat
|
||
*/ 'mask-repeat': [
|
||
{
|
||
mask: scaleBgRepeat()
|
||
}
|
||
],
|
||
/**
|
||
* Mask Size
|
||
* @see https://tailwindcss.com/docs/mask-size
|
||
*/ 'mask-size': [
|
||
{
|
||
mask: scaleBgSize()
|
||
}
|
||
],
|
||
/**
|
||
* Mask Type
|
||
* @see https://tailwindcss.com/docs/mask-type
|
||
*/ 'mask-type': [
|
||
{
|
||
'mask-type': [
|
||
'alpha',
|
||
'luminance'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Mask Image
|
||
* @see https://tailwindcss.com/docs/mask-image
|
||
*/ 'mask-image': [
|
||
{
|
||
mask: [
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// ---------------
|
||
// --- Filters ---
|
||
// ---------------
|
||
/**
|
||
* Filter
|
||
* @see https://tailwindcss.com/docs/filter
|
||
*/ filter: [
|
||
{
|
||
filter: [
|
||
// Deprecated since Tailwind CSS v3.0.0
|
||
'',
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Blur
|
||
* @see https://tailwindcss.com/docs/blur
|
||
*/ blur: [
|
||
{
|
||
blur: scaleBlur()
|
||
}
|
||
],
|
||
/**
|
||
* Brightness
|
||
* @see https://tailwindcss.com/docs/brightness
|
||
*/ brightness: [
|
||
{
|
||
brightness: [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Contrast
|
||
* @see https://tailwindcss.com/docs/contrast
|
||
*/ contrast: [
|
||
{
|
||
contrast: [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Drop Shadow
|
||
* @see https://tailwindcss.com/docs/drop-shadow
|
||
*/ 'drop-shadow': [
|
||
{
|
||
'drop-shadow': [
|
||
// Deprecated since Tailwind CSS v4.0.0
|
||
'',
|
||
'none',
|
||
themeDropShadow,
|
||
isArbitraryVariableShadow,
|
||
isArbitraryShadow
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Drop Shadow Color
|
||
* @see https://tailwindcss.com/docs/filter-drop-shadow#setting-the-shadow-color
|
||
*/ 'drop-shadow-color': [
|
||
{
|
||
'drop-shadow': scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Grayscale
|
||
* @see https://tailwindcss.com/docs/grayscale
|
||
*/ grayscale: [
|
||
{
|
||
grayscale: [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Hue Rotate
|
||
* @see https://tailwindcss.com/docs/hue-rotate
|
||
*/ 'hue-rotate': [
|
||
{
|
||
'hue-rotate': [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Invert
|
||
* @see https://tailwindcss.com/docs/invert
|
||
*/ invert: [
|
||
{
|
||
invert: [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Saturate
|
||
* @see https://tailwindcss.com/docs/saturate
|
||
*/ saturate: [
|
||
{
|
||
saturate: [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Sepia
|
||
* @see https://tailwindcss.com/docs/sepia
|
||
*/ sepia: [
|
||
{
|
||
sepia: [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Filter
|
||
* @see https://tailwindcss.com/docs/backdrop-filter
|
||
*/ 'backdrop-filter': [
|
||
{
|
||
'backdrop-filter': [
|
||
// Deprecated since Tailwind CSS v3.0.0
|
||
'',
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Blur
|
||
* @see https://tailwindcss.com/docs/backdrop-blur
|
||
*/ 'backdrop-blur': [
|
||
{
|
||
'backdrop-blur': scaleBlur()
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Brightness
|
||
* @see https://tailwindcss.com/docs/backdrop-brightness
|
||
*/ 'backdrop-brightness': [
|
||
{
|
||
'backdrop-brightness': [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Contrast
|
||
* @see https://tailwindcss.com/docs/backdrop-contrast
|
||
*/ 'backdrop-contrast': [
|
||
{
|
||
'backdrop-contrast': [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Grayscale
|
||
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
||
*/ 'backdrop-grayscale': [
|
||
{
|
||
'backdrop-grayscale': [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Hue Rotate
|
||
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
||
*/ 'backdrop-hue-rotate': [
|
||
{
|
||
'backdrop-hue-rotate': [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Invert
|
||
* @see https://tailwindcss.com/docs/backdrop-invert
|
||
*/ 'backdrop-invert': [
|
||
{
|
||
'backdrop-invert': [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Opacity
|
||
* @see https://tailwindcss.com/docs/backdrop-opacity
|
||
*/ 'backdrop-opacity': [
|
||
{
|
||
'backdrop-opacity': [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Saturate
|
||
* @see https://tailwindcss.com/docs/backdrop-saturate
|
||
*/ 'backdrop-saturate': [
|
||
{
|
||
'backdrop-saturate': [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Backdrop Sepia
|
||
* @see https://tailwindcss.com/docs/backdrop-sepia
|
||
*/ 'backdrop-sepia': [
|
||
{
|
||
'backdrop-sepia': [
|
||
'',
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// --------------
|
||
// --- Tables ---
|
||
// --------------
|
||
/**
|
||
* Border Collapse
|
||
* @see https://tailwindcss.com/docs/border-collapse
|
||
*/ 'border-collapse': [
|
||
{
|
||
border: [
|
||
'collapse',
|
||
'separate'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Border Spacing
|
||
* @see https://tailwindcss.com/docs/border-spacing
|
||
*/ 'border-spacing': [
|
||
{
|
||
'border-spacing': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Border Spacing X
|
||
* @see https://tailwindcss.com/docs/border-spacing
|
||
*/ 'border-spacing-x': [
|
||
{
|
||
'border-spacing-x': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Border Spacing Y
|
||
* @see https://tailwindcss.com/docs/border-spacing
|
||
*/ 'border-spacing-y': [
|
||
{
|
||
'border-spacing-y': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Table Layout
|
||
* @see https://tailwindcss.com/docs/table-layout
|
||
*/ 'table-layout': [
|
||
{
|
||
table: [
|
||
'auto',
|
||
'fixed'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Caption Side
|
||
* @see https://tailwindcss.com/docs/caption-side
|
||
*/ caption: [
|
||
{
|
||
caption: [
|
||
'top',
|
||
'bottom'
|
||
]
|
||
}
|
||
],
|
||
// ---------------------------------
|
||
// --- Transitions and Animation ---
|
||
// ---------------------------------
|
||
/**
|
||
* Transition Property
|
||
* @see https://tailwindcss.com/docs/transition-property
|
||
*/ transition: [
|
||
{
|
||
transition: [
|
||
'',
|
||
'all',
|
||
'colors',
|
||
'opacity',
|
||
'shadow',
|
||
'transform',
|
||
'none',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Transition Behavior
|
||
* @see https://tailwindcss.com/docs/transition-behavior
|
||
*/ 'transition-behavior': [
|
||
{
|
||
transition: [
|
||
'normal',
|
||
'discrete'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Transition Duration
|
||
* @see https://tailwindcss.com/docs/transition-duration
|
||
*/ duration: [
|
||
{
|
||
duration: [
|
||
isNumber,
|
||
'initial',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Transition Timing Function
|
||
* @see https://tailwindcss.com/docs/transition-timing-function
|
||
*/ ease: [
|
||
{
|
||
ease: [
|
||
'linear',
|
||
'initial',
|
||
themeEase,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Transition Delay
|
||
* @see https://tailwindcss.com/docs/transition-delay
|
||
*/ delay: [
|
||
{
|
||
delay: [
|
||
isNumber,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Animation
|
||
* @see https://tailwindcss.com/docs/animation
|
||
*/ animate: [
|
||
{
|
||
animate: [
|
||
'none',
|
||
themeAnimate,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// ------------------
|
||
// --- Transforms ---
|
||
// ------------------
|
||
/**
|
||
* Backface Visibility
|
||
* @see https://tailwindcss.com/docs/backface-visibility
|
||
*/ backface: [
|
||
{
|
||
backface: [
|
||
'hidden',
|
||
'visible'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Perspective
|
||
* @see https://tailwindcss.com/docs/perspective
|
||
*/ perspective: [
|
||
{
|
||
perspective: [
|
||
themePerspective,
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Perspective Origin
|
||
* @see https://tailwindcss.com/docs/perspective-origin
|
||
*/ 'perspective-origin': [
|
||
{
|
||
'perspective-origin': scalePositionWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Rotate
|
||
* @see https://tailwindcss.com/docs/rotate
|
||
*/ rotate: [
|
||
{
|
||
rotate: scaleRotate()
|
||
}
|
||
],
|
||
/**
|
||
* Rotate X
|
||
* @see https://tailwindcss.com/docs/rotate
|
||
*/ 'rotate-x': [
|
||
{
|
||
'rotate-x': scaleRotate()
|
||
}
|
||
],
|
||
/**
|
||
* Rotate Y
|
||
* @see https://tailwindcss.com/docs/rotate
|
||
*/ 'rotate-y': [
|
||
{
|
||
'rotate-y': scaleRotate()
|
||
}
|
||
],
|
||
/**
|
||
* Rotate Z
|
||
* @see https://tailwindcss.com/docs/rotate
|
||
*/ 'rotate-z': [
|
||
{
|
||
'rotate-z': scaleRotate()
|
||
}
|
||
],
|
||
/**
|
||
* Scale
|
||
* @see https://tailwindcss.com/docs/scale
|
||
*/ scale: [
|
||
{
|
||
scale: scaleScale()
|
||
}
|
||
],
|
||
/**
|
||
* Scale X
|
||
* @see https://tailwindcss.com/docs/scale
|
||
*/ 'scale-x': [
|
||
{
|
||
'scale-x': scaleScale()
|
||
}
|
||
],
|
||
/**
|
||
* Scale Y
|
||
* @see https://tailwindcss.com/docs/scale
|
||
*/ 'scale-y': [
|
||
{
|
||
'scale-y': scaleScale()
|
||
}
|
||
],
|
||
/**
|
||
* Scale Z
|
||
* @see https://tailwindcss.com/docs/scale
|
||
*/ 'scale-z': [
|
||
{
|
||
'scale-z': scaleScale()
|
||
}
|
||
],
|
||
/**
|
||
* Scale 3D
|
||
* @see https://tailwindcss.com/docs/scale
|
||
*/ 'scale-3d': [
|
||
'scale-3d'
|
||
],
|
||
/**
|
||
* Skew
|
||
* @see https://tailwindcss.com/docs/skew
|
||
*/ skew: [
|
||
{
|
||
skew: scaleSkew()
|
||
}
|
||
],
|
||
/**
|
||
* Skew X
|
||
* @see https://tailwindcss.com/docs/skew
|
||
*/ 'skew-x': [
|
||
{
|
||
'skew-x': scaleSkew()
|
||
}
|
||
],
|
||
/**
|
||
* Skew Y
|
||
* @see https://tailwindcss.com/docs/skew
|
||
*/ 'skew-y': [
|
||
{
|
||
'skew-y': scaleSkew()
|
||
}
|
||
],
|
||
/**
|
||
* Transform
|
||
* @see https://tailwindcss.com/docs/transform
|
||
*/ transform: [
|
||
{
|
||
transform: [
|
||
isArbitraryVariable,
|
||
isArbitraryValue,
|
||
'',
|
||
'none',
|
||
'gpu',
|
||
'cpu'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Transform Origin
|
||
* @see https://tailwindcss.com/docs/transform-origin
|
||
*/ 'transform-origin': [
|
||
{
|
||
origin: scalePositionWithArbitrary()
|
||
}
|
||
],
|
||
/**
|
||
* Transform Style
|
||
* @see https://tailwindcss.com/docs/transform-style
|
||
*/ 'transform-style': [
|
||
{
|
||
transform: [
|
||
'3d',
|
||
'flat'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Translate
|
||
* @see https://tailwindcss.com/docs/translate
|
||
*/ translate: [
|
||
{
|
||
translate: scaleTranslate()
|
||
}
|
||
],
|
||
/**
|
||
* Translate X
|
||
* @see https://tailwindcss.com/docs/translate
|
||
*/ 'translate-x': [
|
||
{
|
||
'translate-x': scaleTranslate()
|
||
}
|
||
],
|
||
/**
|
||
* Translate Y
|
||
* @see https://tailwindcss.com/docs/translate
|
||
*/ 'translate-y': [
|
||
{
|
||
'translate-y': scaleTranslate()
|
||
}
|
||
],
|
||
/**
|
||
* Translate Z
|
||
* @see https://tailwindcss.com/docs/translate
|
||
*/ 'translate-z': [
|
||
{
|
||
'translate-z': scaleTranslate()
|
||
}
|
||
],
|
||
/**
|
||
* Translate None
|
||
* @see https://tailwindcss.com/docs/translate
|
||
*/ 'translate-none': [
|
||
'translate-none'
|
||
],
|
||
// ---------------------
|
||
// --- Interactivity ---
|
||
// ---------------------
|
||
/**
|
||
* Accent Color
|
||
* @see https://tailwindcss.com/docs/accent-color
|
||
*/ accent: [
|
||
{
|
||
accent: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Appearance
|
||
* @see https://tailwindcss.com/docs/appearance
|
||
*/ appearance: [
|
||
{
|
||
appearance: [
|
||
'none',
|
||
'auto'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Caret Color
|
||
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
||
*/ 'caret-color': [
|
||
{
|
||
caret: scaleColor()
|
||
}
|
||
],
|
||
/**
|
||
* Color Scheme
|
||
* @see https://tailwindcss.com/docs/color-scheme
|
||
*/ 'color-scheme': [
|
||
{
|
||
scheme: [
|
||
'normal',
|
||
'dark',
|
||
'light',
|
||
'light-dark',
|
||
'only-dark',
|
||
'only-light'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Cursor
|
||
* @see https://tailwindcss.com/docs/cursor
|
||
*/ cursor: [
|
||
{
|
||
cursor: [
|
||
'auto',
|
||
'default',
|
||
'pointer',
|
||
'wait',
|
||
'text',
|
||
'move',
|
||
'help',
|
||
'not-allowed',
|
||
'none',
|
||
'context-menu',
|
||
'progress',
|
||
'cell',
|
||
'crosshair',
|
||
'vertical-text',
|
||
'alias',
|
||
'copy',
|
||
'no-drop',
|
||
'grab',
|
||
'grabbing',
|
||
'all-scroll',
|
||
'col-resize',
|
||
'row-resize',
|
||
'n-resize',
|
||
'e-resize',
|
||
's-resize',
|
||
'w-resize',
|
||
'ne-resize',
|
||
'nw-resize',
|
||
'se-resize',
|
||
'sw-resize',
|
||
'ew-resize',
|
||
'ns-resize',
|
||
'nesw-resize',
|
||
'nwse-resize',
|
||
'zoom-in',
|
||
'zoom-out',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Field Sizing
|
||
* @see https://tailwindcss.com/docs/field-sizing
|
||
*/ 'field-sizing': [
|
||
{
|
||
'field-sizing': [
|
||
'fixed',
|
||
'content'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Pointer Events
|
||
* @see https://tailwindcss.com/docs/pointer-events
|
||
*/ 'pointer-events': [
|
||
{
|
||
'pointer-events': [
|
||
'auto',
|
||
'none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Resize
|
||
* @see https://tailwindcss.com/docs/resize
|
||
*/ resize: [
|
||
{
|
||
resize: [
|
||
'none',
|
||
'',
|
||
'y',
|
||
'x'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Behavior
|
||
* @see https://tailwindcss.com/docs/scroll-behavior
|
||
*/ 'scroll-behavior': [
|
||
{
|
||
scroll: [
|
||
'auto',
|
||
'smooth'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-m': [
|
||
{
|
||
'scroll-m': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin X
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-mx': [
|
||
{
|
||
'scroll-mx': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Y
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-my': [
|
||
{
|
||
'scroll-my': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Start
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-ms': [
|
||
{
|
||
'scroll-ms': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin End
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-me': [
|
||
{
|
||
'scroll-me': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Top
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-mt': [
|
||
{
|
||
'scroll-mt': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Right
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-mr': [
|
||
{
|
||
'scroll-mr': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Bottom
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-mb': [
|
||
{
|
||
'scroll-mb': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Margin Left
|
||
* @see https://tailwindcss.com/docs/scroll-margin
|
||
*/ 'scroll-ml': [
|
||
{
|
||
'scroll-ml': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-p': [
|
||
{
|
||
'scroll-p': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding X
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-px': [
|
||
{
|
||
'scroll-px': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Y
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-py': [
|
||
{
|
||
'scroll-py': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Start
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-ps': [
|
||
{
|
||
'scroll-ps': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding End
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pe': [
|
||
{
|
||
'scroll-pe': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Top
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pt': [
|
||
{
|
||
'scroll-pt': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Right
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pr': [
|
||
{
|
||
'scroll-pr': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Bottom
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pb': [
|
||
{
|
||
'scroll-pb': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Padding Left
|
||
* @see https://tailwindcss.com/docs/scroll-padding
|
||
*/ 'scroll-pl': [
|
||
{
|
||
'scroll-pl': scaleUnambiguousSpacing()
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Snap Align
|
||
* @see https://tailwindcss.com/docs/scroll-snap-align
|
||
*/ 'snap-align': [
|
||
{
|
||
snap: [
|
||
'start',
|
||
'end',
|
||
'center',
|
||
'align-none'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Snap Stop
|
||
* @see https://tailwindcss.com/docs/scroll-snap-stop
|
||
*/ 'snap-stop': [
|
||
{
|
||
snap: [
|
||
'normal',
|
||
'always'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Snap Type
|
||
* @see https://tailwindcss.com/docs/scroll-snap-type
|
||
*/ 'snap-type': [
|
||
{
|
||
snap: [
|
||
'none',
|
||
'x',
|
||
'y',
|
||
'both'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Scroll Snap Type Strictness
|
||
* @see https://tailwindcss.com/docs/scroll-snap-type
|
||
*/ 'snap-strictness': [
|
||
{
|
||
snap: [
|
||
'mandatory',
|
||
'proximity'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Touch Action
|
||
* @see https://tailwindcss.com/docs/touch-action
|
||
*/ touch: [
|
||
{
|
||
touch: [
|
||
'auto',
|
||
'none',
|
||
'manipulation'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Touch Action X
|
||
* @see https://tailwindcss.com/docs/touch-action
|
||
*/ 'touch-x': [
|
||
{
|
||
'touch-pan': [
|
||
'x',
|
||
'left',
|
||
'right'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Touch Action Y
|
||
* @see https://tailwindcss.com/docs/touch-action
|
||
*/ 'touch-y': [
|
||
{
|
||
'touch-pan': [
|
||
'y',
|
||
'up',
|
||
'down'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Touch Action Pinch Zoom
|
||
* @see https://tailwindcss.com/docs/touch-action
|
||
*/ 'touch-pz': [
|
||
'touch-pinch-zoom'
|
||
],
|
||
/**
|
||
* User Select
|
||
* @see https://tailwindcss.com/docs/user-select
|
||
*/ select: [
|
||
{
|
||
select: [
|
||
'none',
|
||
'text',
|
||
'all',
|
||
'auto'
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Will Change
|
||
* @see https://tailwindcss.com/docs/will-change
|
||
*/ 'will-change': [
|
||
{
|
||
'will-change': [
|
||
'auto',
|
||
'scroll',
|
||
'contents',
|
||
'transform',
|
||
isArbitraryVariable,
|
||
isArbitraryValue
|
||
]
|
||
}
|
||
],
|
||
// -----------
|
||
// --- SVG ---
|
||
// -----------
|
||
/**
|
||
* Fill
|
||
* @see https://tailwindcss.com/docs/fill
|
||
*/ fill: [
|
||
{
|
||
fill: [
|
||
'none',
|
||
...scaleColor()
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Stroke Width
|
||
* @see https://tailwindcss.com/docs/stroke-width
|
||
*/ 'stroke-w': [
|
||
{
|
||
stroke: [
|
||
isNumber,
|
||
isArbitraryVariableLength,
|
||
isArbitraryLength,
|
||
isArbitraryNumber
|
||
]
|
||
}
|
||
],
|
||
/**
|
||
* Stroke
|
||
* @see https://tailwindcss.com/docs/stroke
|
||
*/ stroke: [
|
||
{
|
||
stroke: [
|
||
'none',
|
||
...scaleColor()
|
||
]
|
||
}
|
||
],
|
||
// ---------------------
|
||
// --- Accessibility ---
|
||
// ---------------------
|
||
/**
|
||
* Forced Color Adjust
|
||
* @see https://tailwindcss.com/docs/forced-color-adjust
|
||
*/ 'forced-color-adjust': [
|
||
{
|
||
'forced-color-adjust': [
|
||
'auto',
|
||
'none'
|
||
]
|
||
}
|
||
]
|
||
},
|
||
conflictingClassGroups: {
|
||
overflow: [
|
||
'overflow-x',
|
||
'overflow-y'
|
||
],
|
||
overscroll: [
|
||
'overscroll-x',
|
||
'overscroll-y'
|
||
],
|
||
inset: [
|
||
'inset-x',
|
||
'inset-y',
|
||
'start',
|
||
'end',
|
||
'top',
|
||
'right',
|
||
'bottom',
|
||
'left'
|
||
],
|
||
'inset-x': [
|
||
'right',
|
||
'left'
|
||
],
|
||
'inset-y': [
|
||
'top',
|
||
'bottom'
|
||
],
|
||
flex: [
|
||
'basis',
|
||
'grow',
|
||
'shrink'
|
||
],
|
||
gap: [
|
||
'gap-x',
|
||
'gap-y'
|
||
],
|
||
p: [
|
||
'px',
|
||
'py',
|
||
'ps',
|
||
'pe',
|
||
'pt',
|
||
'pr',
|
||
'pb',
|
||
'pl'
|
||
],
|
||
px: [
|
||
'pr',
|
||
'pl'
|
||
],
|
||
py: [
|
||
'pt',
|
||
'pb'
|
||
],
|
||
m: [
|
||
'mx',
|
||
'my',
|
||
'ms',
|
||
'me',
|
||
'mt',
|
||
'mr',
|
||
'mb',
|
||
'ml'
|
||
],
|
||
mx: [
|
||
'mr',
|
||
'ml'
|
||
],
|
||
my: [
|
||
'mt',
|
||
'mb'
|
||
],
|
||
size: [
|
||
'w',
|
||
'h'
|
||
],
|
||
'font-size': [
|
||
'leading'
|
||
],
|
||
'fvn-normal': [
|
||
'fvn-ordinal',
|
||
'fvn-slashed-zero',
|
||
'fvn-figure',
|
||
'fvn-spacing',
|
||
'fvn-fraction'
|
||
],
|
||
'fvn-ordinal': [
|
||
'fvn-normal'
|
||
],
|
||
'fvn-slashed-zero': [
|
||
'fvn-normal'
|
||
],
|
||
'fvn-figure': [
|
||
'fvn-normal'
|
||
],
|
||
'fvn-spacing': [
|
||
'fvn-normal'
|
||
],
|
||
'fvn-fraction': [
|
||
'fvn-normal'
|
||
],
|
||
'line-clamp': [
|
||
'display',
|
||
'overflow'
|
||
],
|
||
rounded: [
|
||
'rounded-s',
|
||
'rounded-e',
|
||
'rounded-t',
|
||
'rounded-r',
|
||
'rounded-b',
|
||
'rounded-l',
|
||
'rounded-ss',
|
||
'rounded-se',
|
||
'rounded-ee',
|
||
'rounded-es',
|
||
'rounded-tl',
|
||
'rounded-tr',
|
||
'rounded-br',
|
||
'rounded-bl'
|
||
],
|
||
'rounded-s': [
|
||
'rounded-ss',
|
||
'rounded-es'
|
||
],
|
||
'rounded-e': [
|
||
'rounded-se',
|
||
'rounded-ee'
|
||
],
|
||
'rounded-t': [
|
||
'rounded-tl',
|
||
'rounded-tr'
|
||
],
|
||
'rounded-r': [
|
||
'rounded-tr',
|
||
'rounded-br'
|
||
],
|
||
'rounded-b': [
|
||
'rounded-br',
|
||
'rounded-bl'
|
||
],
|
||
'rounded-l': [
|
||
'rounded-tl',
|
||
'rounded-bl'
|
||
],
|
||
'border-spacing': [
|
||
'border-spacing-x',
|
||
'border-spacing-y'
|
||
],
|
||
'border-w': [
|
||
'border-w-x',
|
||
'border-w-y',
|
||
'border-w-s',
|
||
'border-w-e',
|
||
'border-w-t',
|
||
'border-w-r',
|
||
'border-w-b',
|
||
'border-w-l'
|
||
],
|
||
'border-w-x': [
|
||
'border-w-r',
|
||
'border-w-l'
|
||
],
|
||
'border-w-y': [
|
||
'border-w-t',
|
||
'border-w-b'
|
||
],
|
||
'border-color': [
|
||
'border-color-x',
|
||
'border-color-y',
|
||
'border-color-s',
|
||
'border-color-e',
|
||
'border-color-t',
|
||
'border-color-r',
|
||
'border-color-b',
|
||
'border-color-l'
|
||
],
|
||
'border-color-x': [
|
||
'border-color-r',
|
||
'border-color-l'
|
||
],
|
||
'border-color-y': [
|
||
'border-color-t',
|
||
'border-color-b'
|
||
],
|
||
translate: [
|
||
'translate-x',
|
||
'translate-y',
|
||
'translate-none'
|
||
],
|
||
'translate-none': [
|
||
'translate',
|
||
'translate-x',
|
||
'translate-y',
|
||
'translate-z'
|
||
],
|
||
'scroll-m': [
|
||
'scroll-mx',
|
||
'scroll-my',
|
||
'scroll-ms',
|
||
'scroll-me',
|
||
'scroll-mt',
|
||
'scroll-mr',
|
||
'scroll-mb',
|
||
'scroll-ml'
|
||
],
|
||
'scroll-mx': [
|
||
'scroll-mr',
|
||
'scroll-ml'
|
||
],
|
||
'scroll-my': [
|
||
'scroll-mt',
|
||
'scroll-mb'
|
||
],
|
||
'scroll-p': [
|
||
'scroll-px',
|
||
'scroll-py',
|
||
'scroll-ps',
|
||
'scroll-pe',
|
||
'scroll-pt',
|
||
'scroll-pr',
|
||
'scroll-pb',
|
||
'scroll-pl'
|
||
],
|
||
'scroll-px': [
|
||
'scroll-pr',
|
||
'scroll-pl'
|
||
],
|
||
'scroll-py': [
|
||
'scroll-pt',
|
||
'scroll-pb'
|
||
],
|
||
touch: [
|
||
'touch-x',
|
||
'touch-y',
|
||
'touch-pz'
|
||
],
|
||
'touch-x': [
|
||
'touch'
|
||
],
|
||
'touch-y': [
|
||
'touch'
|
||
],
|
||
'touch-pz': [
|
||
'touch'
|
||
]
|
||
},
|
||
conflictingClassGroupModifiers: {
|
||
'font-size': [
|
||
'leading'
|
||
]
|
||
},
|
||
orderSensitiveModifiers: [
|
||
'*',
|
||
'**',
|
||
'after',
|
||
'backdrop',
|
||
'before',
|
||
'details-content',
|
||
'file',
|
||
'first-letter',
|
||
'first-line',
|
||
'marker',
|
||
'placeholder',
|
||
'selection'
|
||
]
|
||
};
|
||
};
|
||
/**
|
||
* @param baseConfig Config where other config will be merged into. This object will be mutated.
|
||
* @param configExtension Partial config to merge into the `baseConfig`.
|
||
*/ const mergeConfigs = (baseConfig, { cacheSize, prefix, experimentalParseClassName, extend = {}, override = {} })=>{
|
||
overrideProperty(baseConfig, 'cacheSize', cacheSize);
|
||
overrideProperty(baseConfig, 'prefix', prefix);
|
||
overrideProperty(baseConfig, 'experimentalParseClassName', experimentalParseClassName);
|
||
overrideConfigProperties(baseConfig.theme, override.theme);
|
||
overrideConfigProperties(baseConfig.classGroups, override.classGroups);
|
||
overrideConfigProperties(baseConfig.conflictingClassGroups, override.conflictingClassGroups);
|
||
overrideConfigProperties(baseConfig.conflictingClassGroupModifiers, override.conflictingClassGroupModifiers);
|
||
overrideProperty(baseConfig, 'orderSensitiveModifiers', override.orderSensitiveModifiers);
|
||
mergeConfigProperties(baseConfig.theme, extend.theme);
|
||
mergeConfigProperties(baseConfig.classGroups, extend.classGroups);
|
||
mergeConfigProperties(baseConfig.conflictingClassGroups, extend.conflictingClassGroups);
|
||
mergeConfigProperties(baseConfig.conflictingClassGroupModifiers, extend.conflictingClassGroupModifiers);
|
||
mergeArrayProperties(baseConfig, extend, 'orderSensitiveModifiers');
|
||
return baseConfig;
|
||
};
|
||
const overrideProperty = (baseObject, overrideKey, overrideValue)=>{
|
||
if (overrideValue !== undefined) {
|
||
baseObject[overrideKey] = overrideValue;
|
||
}
|
||
};
|
||
const overrideConfigProperties = (baseObject, overrideObject)=>{
|
||
if (overrideObject) {
|
||
for(const key in overrideObject){
|
||
overrideProperty(baseObject, key, overrideObject[key]);
|
||
}
|
||
}
|
||
};
|
||
const mergeConfigProperties = (baseObject, mergeObject)=>{
|
||
if (mergeObject) {
|
||
for(const key in mergeObject){
|
||
mergeArrayProperties(baseObject, mergeObject, key);
|
||
}
|
||
}
|
||
};
|
||
const mergeArrayProperties = (baseObject, mergeObject, key)=>{
|
||
const mergeValue = mergeObject[key];
|
||
if (mergeValue !== undefined) {
|
||
baseObject[key] = baseObject[key] ? baseObject[key].concat(mergeValue) : mergeValue;
|
||
}
|
||
};
|
||
const extendTailwindMerge = (configExtension, ...createConfig)=>typeof configExtension === 'function' ? createTailwindMerge(getDefaultConfig, configExtension, ...createConfig) : createTailwindMerge(()=>mergeConfigs(getDefaultConfig(), configExtension), ...createConfig);
|
||
const twMerge = /*#__PURE__*/ createTailwindMerge(getDefaultConfig);
|
||
;
|
||
//# sourceMappingURL=bundle-mjs.mjs.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/@radix-ui/react-compose-refs/dist/index.mjs [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"composeRefs",
|
||
()=>composeRefs,
|
||
"useComposedRefs",
|
||
()=>useComposedRefs
|
||
]);
|
||
// packages/react/compose-refs/src/compose-refs.tsx
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js [app-ssr] (ecmascript)");
|
||
;
|
||
function setRef(ref, value) {
|
||
if (typeof ref === "function") {
|
||
return ref(value);
|
||
} else if (ref !== null && ref !== void 0) {
|
||
ref.current = value;
|
||
}
|
||
}
|
||
function composeRefs(...refs) {
|
||
return (node)=>{
|
||
let hasCleanup = false;
|
||
const cleanups = refs.map((ref)=>{
|
||
const cleanup = setRef(ref, node);
|
||
if (!hasCleanup && typeof cleanup == "function") {
|
||
hasCleanup = true;
|
||
}
|
||
return cleanup;
|
||
});
|
||
if (hasCleanup) {
|
||
return ()=>{
|
||
for(let i = 0; i < cleanups.length; i++){
|
||
const cleanup = cleanups[i];
|
||
if (typeof cleanup == "function") {
|
||
cleanup();
|
||
} else {
|
||
setRef(refs[i], null);
|
||
}
|
||
}
|
||
};
|
||
}
|
||
};
|
||
}
|
||
function useComposedRefs(...refs) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["useCallback"](composeRefs(...refs), refs);
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js [app-ssr] (ecmascript)", ((__turbopack_context__, module, exports) => {
|
||
"use strict";
|
||
|
||
module.exports = __turbopack_context__.r("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/module.compiled.js [app-ssr] (ecmascript)").vendored['react-ssr'].ReactJsxRuntime; //# sourceMappingURL=react-jsx-runtime.js.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/@radix-ui/react-slot/dist/index.mjs [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"Root",
|
||
()=>Slot,
|
||
"Slot",
|
||
()=>Slot,
|
||
"Slottable",
|
||
()=>Slottable,
|
||
"createSlot",
|
||
()=>createSlot,
|
||
"createSlottable",
|
||
()=>createSlottable
|
||
]);
|
||
// src/slot.tsx
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react.js [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$compose$2d$refs$2f$dist$2f$index$2e$mjs__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/@radix-ui/react-compose-refs/dist/index.mjs [app-ssr] (ecmascript)");
|
||
var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2d$jsx$2d$runtime$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/next/dist/server/route-modules/app-page/vendored/ssr/react-jsx-runtime.js [app-ssr] (ecmascript)");
|
||
;
|
||
;
|
||
;
|
||
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||
var use = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__[" use ".trim().toString()];
|
||
function isPromiseLike(value) {
|
||
return typeof value === "object" && value !== null && "then" in value;
|
||
}
|
||
function isLazyComponent(element) {
|
||
return element != null && typeof element === "object" && "$$typeof" in element && element.$$typeof === REACT_LAZY_TYPE && "_payload" in element && isPromiseLike(element._payload);
|
||
}
|
||
// @__NO_SIDE_EFFECTS__
|
||
function createSlot(ownerName) {
|
||
const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
|
||
const Slot2 = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.forwardRef((props, forwardedRef)=>{
|
||
let { children, ...slotProps } = props;
|
||
if (isLazyComponent(children) && typeof use === "function") {
|
||
children = use(children._payload);
|
||
}
|
||
const childrenArray = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.Children.toArray(children);
|
||
const slottable = childrenArray.find(isSlottable);
|
||
if (slottable) {
|
||
const newElement = slottable.props.children;
|
||
const newChildren = childrenArray.map((child)=>{
|
||
if (child === slottable) {
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.Children.count(newElement) > 1) return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.Children.only(null);
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.isValidElement(newElement) ? newElement.props.children : null;
|
||
} else {
|
||
return child;
|
||
}
|
||
});
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2d$jsx$2d$runtime$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["jsx"])(SlotClone, {
|
||
...slotProps,
|
||
ref: forwardedRef,
|
||
children: __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.isValidElement(newElement) ? __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.cloneElement(newElement, void 0, newChildren) : null
|
||
});
|
||
}
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2d$jsx$2d$runtime$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["jsx"])(SlotClone, {
|
||
...slotProps,
|
||
ref: forwardedRef,
|
||
children
|
||
});
|
||
});
|
||
Slot2.displayName = `${ownerName}.Slot`;
|
||
return Slot2;
|
||
}
|
||
var Slot = /* @__PURE__ */ createSlot("Slot");
|
||
// @__NO_SIDE_EFFECTS__
|
||
function createSlotClone(ownerName) {
|
||
const SlotClone = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.forwardRef((props, forwardedRef)=>{
|
||
let { children, ...slotProps } = props;
|
||
if (isLazyComponent(children) && typeof use === "function") {
|
||
children = use(children._payload);
|
||
}
|
||
if (__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.isValidElement(children)) {
|
||
const childrenRef = getElementRef(children);
|
||
const props2 = mergeProps(slotProps, children.props);
|
||
if (children.type !== __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.Fragment) {
|
||
props2.ref = forwardedRef ? (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f40$radix$2d$ui$2f$react$2d$compose$2d$refs$2f$dist$2f$index$2e$mjs__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["composeRefs"])(forwardedRef, childrenRef) : childrenRef;
|
||
}
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.cloneElement(children, props2);
|
||
}
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.Children.count(children) > 1 ? __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.Children.only(null) : null;
|
||
});
|
||
SlotClone.displayName = `${ownerName}.SlotClone`;
|
||
return SlotClone;
|
||
}
|
||
var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
|
||
// @__NO_SIDE_EFFECTS__
|
||
function createSlottable(ownerName) {
|
||
const Slottable2 = ({ children })=>{
|
||
return /* @__PURE__ */ (0, __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2d$jsx$2d$runtime$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["jsx"])(__TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2d$jsx$2d$runtime$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["Fragment"], {
|
||
children
|
||
});
|
||
};
|
||
Slottable2.displayName = `${ownerName}.Slottable`;
|
||
Slottable2.__radixId = SLOTTABLE_IDENTIFIER;
|
||
return Slottable2;
|
||
}
|
||
var Slottable = /* @__PURE__ */ createSlottable("Slottable");
|
||
function isSlottable(child) {
|
||
return __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$next$2f$dist$2f$server$2f$route$2d$modules$2f$app$2d$page$2f$vendored$2f$ssr$2f$react$2e$js__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
|
||
}
|
||
function mergeProps(slotProps, childProps) {
|
||
const overrideProps = {
|
||
...childProps
|
||
};
|
||
for(const propName in childProps){
|
||
const slotPropValue = slotProps[propName];
|
||
const childPropValue = childProps[propName];
|
||
const isHandler = /^on[A-Z]/.test(propName);
|
||
if (isHandler) {
|
||
if (slotPropValue && childPropValue) {
|
||
overrideProps[propName] = (...args)=>{
|
||
const result = childPropValue(...args);
|
||
slotPropValue(...args);
|
||
return result;
|
||
};
|
||
} else if (slotPropValue) {
|
||
overrideProps[propName] = slotPropValue;
|
||
}
|
||
} else if (propName === "style") {
|
||
overrideProps[propName] = {
|
||
...slotPropValue,
|
||
...childPropValue
|
||
};
|
||
} else if (propName === "className") {
|
||
overrideProps[propName] = [
|
||
slotPropValue,
|
||
childPropValue
|
||
].filter(Boolean).join(" ");
|
||
}
|
||
}
|
||
return {
|
||
...slotProps,
|
||
...overrideProps
|
||
};
|
||
}
|
||
function getElementRef(element) {
|
||
let getter = Object.getOwnPropertyDescriptor(element.props, "ref")?.get;
|
||
let mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
||
if (mayWarn) {
|
||
return element.ref;
|
||
}
|
||
getter = Object.getOwnPropertyDescriptor(element, "ref")?.get;
|
||
mayWarn = getter && "isReactWarning" in getter && getter.isReactWarning;
|
||
if (mayWarn) {
|
||
return element.props.ref;
|
||
}
|
||
return element.props.ref || element.ref;
|
||
}
|
||
;
|
||
//# sourceMappingURL=index.mjs.map
|
||
}),
|
||
"[project]/coding/projects/LangBot/web/node_modules/class-variance-authority/dist/index.mjs [app-ssr] (ecmascript)", ((__turbopack_context__) => {
|
||
"use strict";
|
||
|
||
__turbopack_context__.s([
|
||
"cva",
|
||
()=>cva,
|
||
"cx",
|
||
()=>cx
|
||
]);
|
||
/**
|
||
* Copyright 2022 Joe Bell. All rights reserved.
|
||
*
|
||
* This file is licensed to you under the Apache License, Version 2.0
|
||
* (the "License"); you may not use this file except in compliance with the
|
||
* License. You may obtain a copy of the License at
|
||
*
|
||
* http://www.apache.org/licenses/LICENSE-2.0
|
||
*
|
||
* Unless required by applicable law or agreed to in writing, software
|
||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||
* WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or implied. See the
|
||
* License for the specific language governing permissions and limitations under
|
||
* the License.
|
||
*/ var __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$clsx$2f$dist$2f$clsx$2e$mjs__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__ = __turbopack_context__.i("[project]/coding/projects/LangBot/web/node_modules/clsx/dist/clsx.mjs [app-ssr] (ecmascript)");
|
||
;
|
||
const falsyToString = (value)=>typeof value === "boolean" ? `${value}` : value === 0 ? "0" : value;
|
||
const cx = __TURBOPACK__imported__module__$5b$project$5d2f$coding$2f$projects$2f$LangBot$2f$web$2f$node_modules$2f$clsx$2f$dist$2f$clsx$2e$mjs__$5b$app$2d$ssr$5d$__$28$ecmascript$29$__["clsx"];
|
||
const cva = (base, config)=>(props)=>{
|
||
var _config_compoundVariants;
|
||
if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
||
const { variants, defaultVariants } = config;
|
||
const getVariantClassNames = Object.keys(variants).map((variant)=>{
|
||
const variantProp = props === null || props === void 0 ? void 0 : props[variant];
|
||
const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
|
||
if (variantProp === null) return null;
|
||
const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
|
||
return variants[variant][variantKey];
|
||
});
|
||
const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
|
||
let [key, value] = param;
|
||
if (value === undefined) {
|
||
return acc;
|
||
}
|
||
acc[key] = value;
|
||
return acc;
|
||
}, {});
|
||
const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (_config_compoundVariants = config.compoundVariants) === null || _config_compoundVariants === void 0 ? void 0 : _config_compoundVariants.reduce((acc, param)=>{
|
||
let { class: cvClass, className: cvClassName, ...compoundVariantOptions } = param;
|
||
return Object.entries(compoundVariantOptions).every((param)=>{
|
||
let [key, value] = param;
|
||
return Array.isArray(value) ? value.includes({
|
||
...defaultVariants,
|
||
...propsWithoutUndefined
|
||
}[key]) : ({
|
||
...defaultVariants,
|
||
...propsWithoutUndefined
|
||
})[key] === value;
|
||
}) ? [
|
||
...acc,
|
||
cvClass,
|
||
cvClassName
|
||
] : acc;
|
||
}, []);
|
||
return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
|
||
};
|
||
}),
|
||
];
|
||
|
||
//# sourceMappingURL=a2e30_451bb72a._.js.map
|