Files
appco_dist/.output/server/chunks/nitro/nitro.mjs
T
2026-02-01 21:53:26 +03:30

10131 lines
327 KiB
JavaScript

import process from 'node:process';globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import http, { Server as Server$1 } from 'node:http';
import https, { Server } from 'node:https';
import { EventEmitter } from 'node:events';
import { Buffer as Buffer$1 } from 'node:buffer';
import { promises, existsSync } from 'node:fs';
import { resolve as resolve$2, dirname as dirname$1, join } from 'node:path';
import { createHash } from 'node:crypto';
import { toValue } from 'vue';
import { fileURLToPath } from 'node:url';
import { createConsola } from 'consola';
import { XMLParser } from 'fast-xml-parser';
import { ipxFSStorage, ipxHttpStorage, createIPX, createIPXH3Handler } from 'ipx';
const suspectProtoRx = /"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/;
const suspectConstructorRx = /"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;
const JsonSigRx = /^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;
function jsonParseTransform(key, value) {
if (key === "__proto__" || key === "constructor" && value && typeof value === "object" && "prototype" in value) {
warnKeyDropped(key);
return;
}
return value;
}
function warnKeyDropped(key) {
console.warn(`[destr] Dropping "${key}" key to prevent prototype pollution.`);
}
function destr(value, options = {}) {
if (typeof value !== "string") {
return value;
}
if (value[0] === '"' && value[value.length - 1] === '"' && value.indexOf("\\") === -1) {
return value.slice(1, -1);
}
const _value = value.trim();
if (_value.length <= 9) {
switch (_value.toLowerCase()) {
case "true": {
return true;
}
case "false": {
return false;
}
case "undefined": {
return void 0;
}
case "null": {
return null;
}
case "nan": {
return Number.NaN;
}
case "infinity": {
return Number.POSITIVE_INFINITY;
}
case "-infinity": {
return Number.NEGATIVE_INFINITY;
}
}
}
if (!JsonSigRx.test(value)) {
if (options.strict) {
throw new SyntaxError("[destr] Invalid JSON");
}
return value;
}
try {
if (suspectProtoRx.test(value) || suspectConstructorRx.test(value)) {
if (options.strict) {
throw new Error("[destr] Possible prototype pollution");
}
return JSON.parse(value, jsonParseTransform);
}
return JSON.parse(value);
} catch (error) {
if (options.strict) {
throw error;
}
return value;
}
}
const HASH_RE = /#/g;
const AMPERSAND_RE = /&/g;
const SLASH_RE = /\//g;
const EQUAL_RE = /=/g;
const IM_RE = /\?/g;
const PLUS_RE = /\+/g;
const ENC_CARET_RE = /%5e/gi;
const ENC_BACKTICK_RE = /%60/gi;
const ENC_PIPE_RE = /%7c/gi;
const ENC_SPACE_RE = /%20/gi;
const ENC_SLASH_RE = /%2f/gi;
const ENC_ENC_SLASH_RE = /%252f/gi;
function encode(text) {
return encodeURI("" + text).replace(ENC_PIPE_RE, "|");
}
function encodeQueryValue(input) {
return encode(typeof input === "string" ? input : JSON.stringify(input)).replace(PLUS_RE, "%2B").replace(ENC_SPACE_RE, "+").replace(HASH_RE, "%23").replace(AMPERSAND_RE, "%26").replace(ENC_BACKTICK_RE, "`").replace(ENC_CARET_RE, "^").replace(SLASH_RE, "%2F");
}
function encodeQueryKey(text) {
return encodeQueryValue(text).replace(EQUAL_RE, "%3D");
}
function encodePath(text) {
return encode(text).replace(HASH_RE, "%23").replace(IM_RE, "%3F").replace(ENC_ENC_SLASH_RE, "%2F").replace(AMPERSAND_RE, "%26").replace(PLUS_RE, "%2B");
}
function decode(text = "") {
try {
return decodeURIComponent("" + text);
} catch {
return "" + text;
}
}
function decodePath(text) {
return decode(text.replace(ENC_SLASH_RE, "%252F"));
}
function decodeQueryKey(text) {
return decode(text.replace(PLUS_RE, " "));
}
function decodeQueryValue(text) {
return decode(text.replace(PLUS_RE, " "));
}
function parseQuery(parametersString = "") {
const object = /* @__PURE__ */ Object.create(null);
if (parametersString[0] === "?") {
parametersString = parametersString.slice(1);
}
for (const parameter of parametersString.split("&")) {
const s = parameter.match(/([^=]+)=?(.*)/) || [];
if (s.length < 2) {
continue;
}
const key = decodeQueryKey(s[1]);
if (key === "__proto__" || key === "constructor") {
continue;
}
const value = decodeQueryValue(s[2] || "");
if (object[key] === void 0) {
object[key] = value;
} else if (Array.isArray(object[key])) {
object[key].push(value);
} else {
object[key] = [object[key], value];
}
}
return object;
}
function encodeQueryItem(key, value) {
if (typeof value === "number" || typeof value === "boolean") {
value = String(value);
}
if (!value) {
return encodeQueryKey(key);
}
if (Array.isArray(value)) {
return value.map(
(_value) => `${encodeQueryKey(key)}=${encodeQueryValue(_value)}`
).join("&");
}
return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
}
function stringifyQuery(query) {
return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
}
const PROTOCOL_STRICT_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/;
const PROTOCOL_REGEX = /^[\s\w\0+.-]{2,}:([/\\]{2})?/;
const PROTOCOL_RELATIVE_REGEX = /^([/\\]\s*){2,}[^/\\]/;
const PROTOCOL_SCRIPT_RE = /^[\s\0]*(blob|data|javascript|vbscript):$/i;
const TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
const JOIN_LEADING_SLASH_RE = /^\.?\//;
function hasProtocol(inputString, opts = {}) {
if (typeof opts === "boolean") {
opts = { acceptRelative: opts };
}
if (opts.strict) {
return PROTOCOL_STRICT_REGEX.test(inputString);
}
return PROTOCOL_REGEX.test(inputString) || (opts.acceptRelative ? PROTOCOL_RELATIVE_REGEX.test(inputString) : false);
}
function isScriptProtocol(protocol) {
return !!protocol && PROTOCOL_SCRIPT_RE.test(protocol);
}
function hasTrailingSlash(input = "", respectQueryAndFragment) {
if (!respectQueryAndFragment) {
return input.endsWith("/");
}
return TRAILING_SLASH_RE.test(input);
}
function withoutTrailingSlash(input = "", respectQueryAndFragment) {
if (!respectQueryAndFragment) {
return (hasTrailingSlash(input) ? input.slice(0, -1) : input) || "/";
}
if (!hasTrailingSlash(input, true)) {
return input || "/";
}
let path = input;
let fragment = "";
const fragmentIndex = input.indexOf("#");
if (fragmentIndex !== -1) {
path = input.slice(0, fragmentIndex);
fragment = input.slice(fragmentIndex);
}
const [s0, ...s] = path.split("?");
const cleanPath = s0.endsWith("/") ? s0.slice(0, -1) : s0;
return (cleanPath || "/") + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
}
function withTrailingSlash(input = "", respectQueryAndFragment) {
if (!respectQueryAndFragment) {
return input.endsWith("/") ? input : input + "/";
}
if (hasTrailingSlash(input, true)) {
return input || "/";
}
let path = input;
let fragment = "";
const fragmentIndex = input.indexOf("#");
if (fragmentIndex !== -1) {
path = input.slice(0, fragmentIndex);
fragment = input.slice(fragmentIndex);
if (!path) {
return fragment;
}
}
const [s0, ...s] = path.split("?");
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
}
function hasLeadingSlash(input = "") {
return input.startsWith("/");
}
function withLeadingSlash(input = "") {
return hasLeadingSlash(input) ? input : "/" + input;
}
function withBase(input, base) {
if (isEmptyURL(base) || hasProtocol(input)) {
return input;
}
const _base = withoutTrailingSlash(base);
if (input.startsWith(_base)) {
const nextChar = input[_base.length];
if (!nextChar || nextChar === "/" || nextChar === "?") {
return input;
}
}
return joinURL(_base, input);
}
function withoutBase(input, base) {
if (isEmptyURL(base)) {
return input;
}
const _base = withoutTrailingSlash(base);
if (!input.startsWith(_base)) {
return input;
}
const nextChar = input[_base.length];
if (nextChar && nextChar !== "/" && nextChar !== "?") {
return input;
}
const trimmed = input.slice(_base.length);
return trimmed[0] === "/" ? trimmed : "/" + trimmed;
}
function withQuery(input, query) {
const parsed = parseURL(input);
const mergedQuery = { ...parseQuery(parsed.search), ...query };
parsed.search = stringifyQuery(mergedQuery);
return stringifyParsedURL(parsed);
}
function getQuery$1(input) {
return parseQuery(parseURL(input).search);
}
function isEmptyURL(url) {
return !url || url === "/";
}
function isNonEmptyURL(url) {
return url && url !== "/";
}
function joinURL(base, ...input) {
let url = base || "";
for (const segment of input.filter((url2) => isNonEmptyURL(url2))) {
if (url) {
const _segment = segment.replace(JOIN_LEADING_SLASH_RE, "");
url = withTrailingSlash(url) + _segment;
} else {
url = segment;
}
}
return url;
}
function joinRelativeURL(..._input) {
const JOIN_SEGMENT_SPLIT_RE = /\/(?!\/)/;
const input = _input.filter(Boolean);
const segments = [];
let segmentsDepth = 0;
for (const i of input) {
if (!i || i === "/") {
continue;
}
for (const [sindex, s] of i.split(JOIN_SEGMENT_SPLIT_RE).entries()) {
if (!s || s === ".") {
continue;
}
if (s === "..") {
if (segments.length === 1 && hasProtocol(segments[0])) {
continue;
}
segments.pop();
segmentsDepth--;
continue;
}
if (sindex === 1 && segments[segments.length - 1]?.endsWith(":/")) {
segments[segments.length - 1] += "/" + s;
continue;
}
segments.push(s);
segmentsDepth++;
}
}
let url = segments.join("/");
if (segmentsDepth >= 0) {
if (input[0]?.startsWith("/") && !url.startsWith("/")) {
url = "/" + url;
} else if (input[0]?.startsWith("./") && !url.startsWith("./")) {
url = "./" + url;
}
} else {
url = "../".repeat(-1 * segmentsDepth) + url;
}
if (input[input.length - 1]?.endsWith("/") && !url.endsWith("/")) {
url += "/";
}
return url;
}
function withHttps(input) {
return withProtocol(input, "https://");
}
function withProtocol(input, protocol) {
let match = input.match(PROTOCOL_REGEX);
if (!match) {
match = input.match(/^\/{2,}/);
}
if (!match) {
return protocol + input;
}
return protocol + input.slice(match[0].length);
}
const protocolRelative = Symbol.for("ufo:protocolRelative");
function parseURL(input = "", defaultProto) {
const _specialProtoMatch = input.match(
/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i
);
if (_specialProtoMatch) {
const [, _proto, _pathname = ""] = _specialProtoMatch;
return {
protocol: _proto.toLowerCase(),
pathname: _pathname,
href: _proto + _pathname,
auth: "",
host: "",
search: "",
hash: ""
};
}
if (!hasProtocol(input, { acceptRelative: true })) {
return defaultProto ? parseURL(defaultProto + input) : parsePath(input);
}
const [, protocol = "", auth, hostAndPath = ""] = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [];
let [, host = "", path = ""] = hostAndPath.match(/([^#/?]*)(.*)?/) || [];
if (protocol === "file:") {
path = path.replace(/\/(?=[A-Za-z]:)/, "");
}
const { pathname, search, hash } = parsePath(path);
return {
protocol: protocol.toLowerCase(),
auth: auth ? auth.slice(0, Math.max(0, auth.length - 1)) : "",
host,
pathname,
search,
hash,
[protocolRelative]: !protocol
};
}
function parsePath(input = "") {
const [pathname = "", search = "", hash = ""] = (input.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1);
return {
pathname,
search,
hash
};
}
function stringifyParsedURL(parsed) {
const pathname = parsed.pathname || "";
const search = parsed.search ? (parsed.search.startsWith("?") ? "" : "?") + parsed.search : "";
const hash = parsed.hash || "";
const auth = parsed.auth ? parsed.auth + "@" : "";
const host = parsed.host || "";
const proto = parsed.protocol || parsed[protocolRelative] ? (parsed.protocol || "") + "//" : "";
return proto + auth + host + pathname + search + hash;
}
const NODE_TYPES = {
NORMAL: 0,
WILDCARD: 1,
PLACEHOLDER: 2
};
function createRouter$1(options = {}) {
const ctx = {
options,
rootNode: createRadixNode(),
staticRoutesMap: {}
};
const normalizeTrailingSlash = (p) => options.strictTrailingSlash ? p : p.replace(/\/$/, "") || "/";
if (options.routes) {
for (const path in options.routes) {
insert(ctx, normalizeTrailingSlash(path), options.routes[path]);
}
}
return {
ctx,
lookup: (path) => lookup(ctx, normalizeTrailingSlash(path)),
insert: (path, data) => insert(ctx, normalizeTrailingSlash(path), data),
remove: (path) => remove(ctx, normalizeTrailingSlash(path))
};
}
function lookup(ctx, path) {
const staticPathNode = ctx.staticRoutesMap[path];
if (staticPathNode) {
return staticPathNode.data;
}
const sections = path.split("/");
const params = {};
let paramsFound = false;
let wildcardNode = null;
let node = ctx.rootNode;
let wildCardParam = null;
for (let i = 0; i < sections.length; i++) {
const section = sections[i];
if (node.wildcardChildNode !== null) {
wildcardNode = node.wildcardChildNode;
wildCardParam = sections.slice(i).join("/");
}
const nextNode = node.children.get(section);
if (nextNode === void 0) {
if (node && node.placeholderChildren.length > 1) {
const remaining = sections.length - i;
node = node.placeholderChildren.find((c) => c.maxDepth === remaining) || null;
} else {
node = node.placeholderChildren[0] || null;
}
if (!node) {
break;
}
if (node.paramName) {
params[node.paramName] = section;
}
paramsFound = true;
} else {
node = nextNode;
}
}
if ((node === null || node.data === null) && wildcardNode !== null) {
node = wildcardNode;
params[node.paramName || "_"] = wildCardParam;
paramsFound = true;
}
if (!node) {
return null;
}
if (paramsFound) {
return {
...node.data,
params: paramsFound ? params : void 0
};
}
return node.data;
}
function insert(ctx, path, data) {
let isStaticRoute = true;
const sections = path.split("/");
let node = ctx.rootNode;
let _unnamedPlaceholderCtr = 0;
const matchedNodes = [node];
for (const section of sections) {
let childNode;
if (childNode = node.children.get(section)) {
node = childNode;
} else {
const type = getNodeType(section);
childNode = createRadixNode({ type, parent: node });
node.children.set(section, childNode);
if (type === NODE_TYPES.PLACEHOLDER) {
childNode.paramName = section === "*" ? `_${_unnamedPlaceholderCtr++}` : section.slice(1);
node.placeholderChildren.push(childNode);
isStaticRoute = false;
} else if (type === NODE_TYPES.WILDCARD) {
node.wildcardChildNode = childNode;
childNode.paramName = section.slice(
3
/* "**:" */
) || "_";
isStaticRoute = false;
}
matchedNodes.push(childNode);
node = childNode;
}
}
for (const [depth, node2] of matchedNodes.entries()) {
node2.maxDepth = Math.max(matchedNodes.length - depth, node2.maxDepth || 0);
}
node.data = data;
if (isStaticRoute === true) {
ctx.staticRoutesMap[path] = node;
}
return node;
}
function remove(ctx, path) {
let success = false;
const sections = path.split("/");
let node = ctx.rootNode;
for (const section of sections) {
node = node.children.get(section);
if (!node) {
return success;
}
}
if (node.data) {
const lastSection = sections.at(-1) || "";
node.data = null;
if (Object.keys(node.children).length === 0 && node.parent) {
node.parent.children.delete(lastSection);
node.parent.wildcardChildNode = null;
node.parent.placeholderChildren = [];
}
success = true;
}
return success;
}
function createRadixNode(options = {}) {
return {
type: options.type || NODE_TYPES.NORMAL,
maxDepth: 0,
parent: options.parent || null,
children: /* @__PURE__ */ new Map(),
data: options.data || null,
paramName: options.paramName || null,
wildcardChildNode: null,
placeholderChildren: []
};
}
function getNodeType(str) {
if (str.startsWith("**")) {
return NODE_TYPES.WILDCARD;
}
if (str[0] === ":" || str === "*") {
return NODE_TYPES.PLACEHOLDER;
}
return NODE_TYPES.NORMAL;
}
function toRouteMatcher(router) {
const table = _routerNodeToTable("", router.ctx.rootNode);
return _createMatcher(table, router.ctx.options.strictTrailingSlash);
}
function _createMatcher(table, strictTrailingSlash) {
return {
ctx: { table },
matchAll: (path) => _matchRoutes(path, table, strictTrailingSlash)
};
}
function _createRouteTable() {
return {
static: /* @__PURE__ */ new Map(),
wildcard: /* @__PURE__ */ new Map(),
dynamic: /* @__PURE__ */ new Map()
};
}
function _matchRoutes(path, table, strictTrailingSlash) {
if (strictTrailingSlash !== true && path.endsWith("/")) {
path = path.slice(0, -1) || "/";
}
const matches = [];
for (const [key, value] of _sortRoutesMap(table.wildcard)) {
if (path === key || path.startsWith(key + "/")) {
matches.push(value);
}
}
for (const [key, value] of _sortRoutesMap(table.dynamic)) {
if (path.startsWith(key + "/")) {
const subPath = "/" + path.slice(key.length).split("/").splice(2).join("/");
matches.push(..._matchRoutes(subPath, value));
}
}
const staticMatch = table.static.get(path);
if (staticMatch) {
matches.push(staticMatch);
}
return matches.filter(Boolean);
}
function _sortRoutesMap(m) {
return [...m.entries()].sort((a, b) => a[0].length - b[0].length);
}
function _routerNodeToTable(initialPath, initialNode) {
const table = _createRouteTable();
function _addNode(path, node) {
if (path) {
if (node.type === NODE_TYPES.NORMAL && !(path.includes("*") || path.includes(":"))) {
if (node.data) {
table.static.set(path, node.data);
}
} else if (node.type === NODE_TYPES.WILDCARD) {
table.wildcard.set(path.replace("/**", ""), node.data);
} else if (node.type === NODE_TYPES.PLACEHOLDER) {
const subTable = _routerNodeToTable("", node);
if (node.data) {
subTable.static.set("/", node.data);
}
table.dynamic.set(path.replace(/\/\*|\/:\w+/, ""), subTable);
return;
}
}
for (const [childPath, child] of node.children.entries()) {
_addNode(`${path}/${childPath}`.replace("//", "/"), child);
}
}
_addNode(initialPath, initialNode);
return table;
}
function isPlainObject(value) {
if (value === null || typeof value !== "object") {
return false;
}
const prototype = Object.getPrototypeOf(value);
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
return false;
}
if (Symbol.iterator in value) {
return false;
}
if (Symbol.toStringTag in value) {
return Object.prototype.toString.call(value) === "[object Module]";
}
return true;
}
function _defu(baseObject, defaults, namespace = ".", merger) {
if (!isPlainObject(defaults)) {
return _defu(baseObject, {}, namespace, merger);
}
const object = Object.assign({}, defaults);
for (const key in baseObject) {
if (key === "__proto__" || key === "constructor") {
continue;
}
const value = baseObject[key];
if (value === null || value === void 0) {
continue;
}
if (merger && merger(object, key, value, namespace)) {
continue;
}
if (Array.isArray(value) && Array.isArray(object[key])) {
object[key] = [...value, ...object[key]];
} else if (isPlainObject(value) && isPlainObject(object[key])) {
object[key] = _defu(
value,
object[key],
(namespace ? `${namespace}.` : "") + key.toString(),
merger
);
} else {
object[key] = value;
}
}
return object;
}
function createDefu(merger) {
return (...arguments_) => (
// eslint-disable-next-line unicorn/no-array-reduce
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
);
}
const defu = createDefu();
const defuFn = createDefu((object, key, currentValue) => {
if (object[key] !== void 0 && typeof currentValue === "function") {
object[key] = currentValue(object[key]);
return true;
}
});
function o$1(n){throw new Error(`${n} is not implemented yet!`)}let i$2 = class i extends EventEmitter{__unenv__={};readableEncoding=null;readableEnded=true;readableFlowing=false;readableHighWaterMark=0;readableLength=0;readableObjectMode=false;readableAborted=false;readableDidRead=false;closed=false;errored=null;readable=false;destroyed=false;static from(e,t){return new i(t)}constructor(e){super();}_read(e){}read(e){}setEncoding(e){return this}pause(){return this}resume(){return this}isPaused(){return true}unpipe(e){return this}unshift(e,t){}wrap(e){return this}push(e,t){return false}_destroy(e,t){this.removeAllListeners();}destroy(e){return this.destroyed=true,this._destroy(e),this}pipe(e,t){return {}}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return this.destroy(),Promise.resolve()}async*[Symbol.asyncIterator](){throw o$1("Readable.asyncIterator")}iterator(e){throw o$1("Readable.iterator")}map(e,t){throw o$1("Readable.map")}filter(e,t){throw o$1("Readable.filter")}forEach(e,t){throw o$1("Readable.forEach")}reduce(e,t,r){throw o$1("Readable.reduce")}find(e,t){throw o$1("Readable.find")}findIndex(e,t){throw o$1("Readable.findIndex")}some(e,t){throw o$1("Readable.some")}toArray(e){throw o$1("Readable.toArray")}every(e,t){throw o$1("Readable.every")}flatMap(e,t){throw o$1("Readable.flatMap")}drop(e,t){throw o$1("Readable.drop")}take(e,t){throw o$1("Readable.take")}asIndexedPairs(e){throw o$1("Readable.asIndexedPairs")}};let l$2 = class l extends EventEmitter{__unenv__={};writable=true;writableEnded=false;writableFinished=false;writableHighWaterMark=0;writableLength=0;writableObjectMode=false;writableCorked=0;closed=false;errored=null;writableNeedDrain=false;writableAborted=false;destroyed=false;_data;_encoding="utf8";constructor(e){super();}pipe(e,t){return {}}_write(e,t,r){if(this.writableEnded){r&&r();return}if(this._data===void 0)this._data=e;else {const s=typeof this._data=="string"?Buffer$1.from(this._data,this._encoding||t||"utf8"):this._data,a=typeof e=="string"?Buffer$1.from(e,t||this._encoding||"utf8"):e;this._data=Buffer$1.concat([s,a]);}this._encoding=t,r&&r();}_writev(e,t){}_destroy(e,t){}_final(e){}write(e,t,r){const s=typeof t=="string"?this._encoding:"utf8",a=typeof t=="function"?t:typeof r=="function"?r:void 0;return this._write(e,s,a),true}setDefaultEncoding(e){return this}end(e,t,r){const s=typeof e=="function"?e:typeof t=="function"?t:typeof r=="function"?r:void 0;if(this.writableEnded)return s&&s(),this;const a=e===s?void 0:e;if(a){const u=t===s?void 0:t;this.write(a,u,s);}return this.writableEnded=true,this.writableFinished=true,this.emit("close"),this.emit("finish"),this}cork(){}uncork(){}destroy(e){return this.destroyed=true,delete this._data,this.removeAllListeners(),this}compose(e,t){throw new Error("Method not implemented.")}[Symbol.asyncDispose](){return Promise.resolve()}};const c$1=class c{allowHalfOpen=true;_destroy;constructor(e=new i$2,t=new l$2){Object.assign(this,e),Object.assign(this,t),this._destroy=m(e._destroy,t._destroy);}};function _$1(){return Object.assign(c$1.prototype,i$2.prototype),Object.assign(c$1.prototype,l$2.prototype),c$1}function m(...n){return function(...e){for(const t of n)t(...e);}}const g=_$1();let A$1 = class A extends g{__unenv__={};bufferSize=0;bytesRead=0;bytesWritten=0;connecting=false;destroyed=false;pending=false;localAddress="";localPort=0;remoteAddress="";remoteFamily="";remotePort=0;autoSelectFamilyAttemptedAddresses=[];readyState="readOnly";constructor(e){super();}write(e,t,r){return false}connect(e,t,r){return this}end(e,t,r){return this}setEncoding(e){return this}pause(){return this}resume(){return this}setTimeout(e,t){return this}setNoDelay(e){return this}setKeepAlive(e,t){return this}address(){return {}}unref(){return this}ref(){return this}destroySoon(){this.destroy();}resetAndDestroy(){const e=new Error("ERR_SOCKET_CLOSED");return e.code="ERR_SOCKET_CLOSED",this.destroy(e),this}};class y extends i$2{aborted=false;httpVersion="1.1";httpVersionMajor=1;httpVersionMinor=1;complete=true;connection;socket;headers={};trailers={};method="GET";url="/";statusCode=200;statusMessage="";closed=false;errored=null;readable=false;constructor(e){super(),this.socket=this.connection=e||new A$1;}get rawHeaders(){const e=this.headers,t=[];for(const r in e)if(Array.isArray(e[r]))for(const s of e[r])t.push(r,s);else t.push(r,e[r]);return t}get rawTrailers(){return []}setTimeout(e,t){return this}get headersDistinct(){return p(this.headers)}get trailersDistinct(){return p(this.trailers)}}function p(n){const e={};for(const[t,r]of Object.entries(n))t&&(e[t]=(Array.isArray(r)?r:[r]).filter(Boolean));return e}class w extends l$2{statusCode=200;statusMessage="";upgrading=false;chunkedEncoding=false;shouldKeepAlive=false;useChunkedEncodingByDefault=false;sendDate=false;finished=false;headersSent=false;strictContentLength=false;connection=null;socket=null;req;_headers={};constructor(e){super(),this.req=e;}assignSocket(e){e._httpMessage=this,this.socket=e,this.connection=e,this.emit("socket",e),this._flush();}_flush(){this.flushHeaders();}detachSocket(e){}writeContinue(e){}writeHead(e,t,r){e&&(this.statusCode=e),typeof t=="string"&&(this.statusMessage=t,t=void 0);const s=r||t;if(s&&!Array.isArray(s))for(const a in s)this.setHeader(a,s[a]);return this.headersSent=true,this}writeProcessing(){}setTimeout(e,t){return this}appendHeader(e,t){e=e.toLowerCase();const r=this._headers[e],s=[...Array.isArray(r)?r:[r],...Array.isArray(t)?t:[t]].filter(Boolean);return this._headers[e]=s.length>1?s:s[0],this}setHeader(e,t){return this._headers[e.toLowerCase()]=t,this}setHeaders(e){for(const[t,r]of Object.entries(e))this.setHeader(t,r);return this}getHeader(e){return this._headers[e.toLowerCase()]}getHeaders(){return this._headers}getHeaderNames(){return Object.keys(this._headers)}hasHeader(e){return e.toLowerCase()in this._headers}removeHeader(e){delete this._headers[e.toLowerCase()];}addTrailers(e){}flushHeaders(){}writeEarlyHints(e,t){typeof t=="function"&&t();}}const E=(()=>{const n=function(){};return n.prototype=Object.create(null),n})();function R$1(n={}){const e=new E,t=Array.isArray(n)||H(n)?n:Object.entries(n);for(const[r,s]of t)if(s){if(e[r]===void 0){e[r]=s;continue}e[r]=[...Array.isArray(e[r])?e[r]:[e[r]],...Array.isArray(s)?s:[s]];}return e}function H(n){return typeof n?.entries=="function"}function v(n={}){if(n instanceof Headers)return n;const e=new Headers;for(const[t,r]of Object.entries(n))if(r!==void 0){if(Array.isArray(r)){for(const s of r)e.append(t,String(s));continue}e.set(t,String(r));}return e}const S$1=new Set([101,204,205,304]);async function b$1(n,e){const t=new y,r=new w(t);t.url=e.url?.toString()||"/";let s;if(!t.url.startsWith("/")){const d=new URL(t.url);s=d.host,t.url=d.pathname+d.search+d.hash;}t.method=e.method||"GET",t.headers=R$1(e.headers||{}),t.headers.host||(t.headers.host=e.host||s||"localhost"),t.connection.encrypted=t.connection.encrypted||e.protocol==="https",t.body=e.body||null,t.__unenv__=e.context,await n(t,r);let a=r._data;(S$1.has(r.statusCode)||t.method.toUpperCase()==="HEAD")&&(a=null,delete r._headers["content-length"]);const u={status:r.statusCode,statusText:r.statusMessage,headers:r._headers,body:a};return t.destroy(),r.destroy(),u}async function C$1(n,e,t={}){try{const r=await b$1(n,{url:e,...t});return new Response(r.body,{status:r.status,statusText:r.statusText,headers:v(r.headers)})}catch(r){return new Response(r.toString(),{status:Number.parseInt(r.statusCode||r.code)||500,statusText:r.statusText})}}
function useBase(base, handler) {
base = withoutTrailingSlash(base);
if (!base || base === "/") {
return handler;
}
return eventHandler(async (event) => {
event.node.req.originalUrl = event.node.req.originalUrl || event.node.req.url || "/";
const _path = event._path || event.node.req.url || "/";
event._path = withoutBase(event.path || "/", base);
event.node.req.url = event._path;
try {
return await handler(event);
} finally {
event._path = event.node.req.url = _path;
}
});
}
function hasProp(obj, prop) {
try {
return prop in obj;
} catch {
return false;
}
}
class H3Error extends Error {
static __h3_error__ = true;
statusCode = 500;
fatal = false;
unhandled = false;
statusMessage;
data;
cause;
constructor(message, opts = {}) {
super(message, opts);
if (opts.cause && !this.cause) {
this.cause = opts.cause;
}
}
toJSON() {
const obj = {
message: this.message,
statusCode: sanitizeStatusCode(this.statusCode, 500)
};
if (this.statusMessage) {
obj.statusMessage = sanitizeStatusMessage(this.statusMessage);
}
if (this.data !== void 0) {
obj.data = this.data;
}
return obj;
}
}
function createError$1(input) {
if (typeof input === "string") {
return new H3Error(input);
}
if (isError(input)) {
return input;
}
const err = new H3Error(input.message ?? input.statusMessage ?? "", {
cause: input.cause || input
});
if (hasProp(input, "stack")) {
try {
Object.defineProperty(err, "stack", {
get() {
return input.stack;
}
});
} catch {
try {
err.stack = input.stack;
} catch {
}
}
}
if (input.data) {
err.data = input.data;
}
if (input.statusCode) {
err.statusCode = sanitizeStatusCode(input.statusCode, err.statusCode);
} else if (input.status) {
err.statusCode = sanitizeStatusCode(input.status, err.statusCode);
}
if (input.statusMessage) {
err.statusMessage = input.statusMessage;
} else if (input.statusText) {
err.statusMessage = input.statusText;
}
if (err.statusMessage) {
const originalMessage = err.statusMessage;
const sanitizedMessage = sanitizeStatusMessage(err.statusMessage);
if (sanitizedMessage !== originalMessage) {
console.warn(
"[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default."
);
}
}
if (input.fatal !== void 0) {
err.fatal = input.fatal;
}
if (input.unhandled !== void 0) {
err.unhandled = input.unhandled;
}
return err;
}
function sendError(event, error, debug) {
if (event.handled) {
return;
}
const h3Error = isError(error) ? error : createError$1(error);
const responseBody = {
statusCode: h3Error.statusCode,
statusMessage: h3Error.statusMessage,
stack: [],
data: h3Error.data
};
if (debug) {
responseBody.stack = (h3Error.stack || "").split("\n").map((l) => l.trim());
}
if (event.handled) {
return;
}
const _code = Number.parseInt(h3Error.statusCode);
setResponseStatus(event, _code, h3Error.statusMessage);
event.node.res.setHeader("content-type", MIMES.json);
event.node.res.end(JSON.stringify(responseBody, void 0, 2));
}
function isError(input) {
return input?.constructor?.__h3_error__ === true;
}
function getQuery(event) {
return getQuery$1(event.path || "");
}
function isMethod(event, expected, allowHead) {
if (typeof expected === "string") {
if (event.method === expected) {
return true;
}
} else if (expected.includes(event.method)) {
return true;
}
return false;
}
function assertMethod(event, expected, allowHead) {
if (!isMethod(event, expected)) {
throw createError$1({
statusCode: 405,
statusMessage: "HTTP method is not allowed."
});
}
}
function getRequestHeaders(event) {
const _headers = {};
for (const key in event.node.req.headers) {
const val = event.node.req.headers[key];
_headers[key] = Array.isArray(val) ? val.filter(Boolean).join(", ") : val;
}
return _headers;
}
function getRequestHeader(event, name) {
const headers = getRequestHeaders(event);
const value = headers[name.toLowerCase()];
return value;
}
const getHeader = getRequestHeader;
function getRequestHost(event, opts = {}) {
if (opts.xForwardedHost) {
const _header = event.node.req.headers["x-forwarded-host"];
const xForwardedHost = (_header || "").split(",").shift()?.trim();
if (xForwardedHost) {
return xForwardedHost;
}
}
return event.node.req.headers.host || "localhost";
}
function getRequestProtocol(event, opts = {}) {
if (opts.xForwardedProto !== false && event.node.req.headers["x-forwarded-proto"] === "https") {
return "https";
}
return event.node.req.connection?.encrypted ? "https" : "http";
}
function getRequestURL(event, opts = {}) {
const host = getRequestHost(event, opts);
const protocol = getRequestProtocol(event, opts);
const path = (event.node.req.originalUrl || event.path).replace(
/^[/\\]+/g,
"/"
);
return new URL(path, `${protocol}://${host}`);
}
const RawBodySymbol = Symbol.for("h3RawBody");
const PayloadMethods$1 = ["PATCH", "POST", "PUT", "DELETE"];
function readRawBody(event, encoding = "utf8") {
assertMethod(event, PayloadMethods$1);
const _rawBody = event._requestBody || event.web?.request?.body || event.node.req[RawBodySymbol] || event.node.req.rawBody || event.node.req.body;
if (_rawBody) {
const promise2 = Promise.resolve(_rawBody).then((_resolved) => {
if (Buffer.isBuffer(_resolved)) {
return _resolved;
}
if (typeof _resolved.pipeTo === "function") {
return new Promise((resolve, reject) => {
const chunks = [];
_resolved.pipeTo(
new WritableStream({
write(chunk) {
chunks.push(chunk);
},
close() {
resolve(Buffer.concat(chunks));
},
abort(reason) {
reject(reason);
}
})
).catch(reject);
});
} else if (typeof _resolved.pipe === "function") {
return new Promise((resolve, reject) => {
const chunks = [];
_resolved.on("data", (chunk) => {
chunks.push(chunk);
}).on("end", () => {
resolve(Buffer.concat(chunks));
}).on("error", reject);
});
}
if (_resolved.constructor === Object) {
return Buffer.from(JSON.stringify(_resolved));
}
if (_resolved instanceof URLSearchParams) {
return Buffer.from(_resolved.toString());
}
if (_resolved instanceof FormData) {
return new Response(_resolved).bytes().then((uint8arr) => Buffer.from(uint8arr));
}
return Buffer.from(_resolved);
});
return encoding ? promise2.then((buff) => buff.toString(encoding)) : promise2;
}
if (!Number.parseInt(event.node.req.headers["content-length"] || "") && !/\bchunked\b/i.test(
String(event.node.req.headers["transfer-encoding"] ?? "")
)) {
return Promise.resolve(void 0);
}
const promise = event.node.req[RawBodySymbol] = new Promise(
(resolve, reject) => {
const bodyData = [];
event.node.req.on("error", (err) => {
reject(err);
}).on("data", (chunk) => {
bodyData.push(chunk);
}).on("end", () => {
resolve(Buffer.concat(bodyData));
});
}
);
const result = encoding ? promise.then((buff) => buff.toString(encoding)) : promise;
return result;
}
function getRequestWebStream(event) {
if (!PayloadMethods$1.includes(event.method)) {
return;
}
const bodyStream = event.web?.request?.body || event._requestBody;
if (bodyStream) {
return bodyStream;
}
const _hasRawBody = RawBodySymbol in event.node.req || "rawBody" in event.node.req || "body" in event.node.req || "__unenv__" in event.node.req;
if (_hasRawBody) {
return new ReadableStream({
async start(controller) {
const _rawBody = await readRawBody(event, false);
if (_rawBody) {
controller.enqueue(_rawBody);
}
controller.close();
}
});
}
return new ReadableStream({
start: (controller) => {
event.node.req.on("data", (chunk) => {
controller.enqueue(chunk);
});
event.node.req.on("end", () => {
controller.close();
});
event.node.req.on("error", (err) => {
controller.error(err);
});
}
});
}
function handleCacheHeaders(event, opts) {
const cacheControls = ["public", ...opts.cacheControls || []];
let cacheMatched = false;
if (opts.maxAge !== void 0) {
cacheControls.push(`max-age=${+opts.maxAge}`, `s-maxage=${+opts.maxAge}`);
}
if (opts.modifiedTime) {
const modifiedTime = new Date(opts.modifiedTime);
const ifModifiedSince = event.node.req.headers["if-modified-since"];
event.node.res.setHeader("last-modified", modifiedTime.toUTCString());
if (ifModifiedSince && new Date(ifModifiedSince) >= modifiedTime) {
cacheMatched = true;
}
}
if (opts.etag) {
event.node.res.setHeader("etag", opts.etag);
const ifNonMatch = event.node.req.headers["if-none-match"];
if (ifNonMatch === opts.etag) {
cacheMatched = true;
}
}
event.node.res.setHeader("cache-control", cacheControls.join(", "));
if (cacheMatched) {
event.node.res.statusCode = 304;
if (!event.handled) {
event.node.res.end();
}
return true;
}
return false;
}
const MIMES = {
html: "text/html",
json: "application/json"
};
const DISALLOWED_STATUS_CHARS = /[^\u0009\u0020-\u007E]/g;
function sanitizeStatusMessage(statusMessage = "") {
return statusMessage.replace(DISALLOWED_STATUS_CHARS, "");
}
function sanitizeStatusCode(statusCode, defaultStatusCode = 200) {
if (!statusCode) {
return defaultStatusCode;
}
if (typeof statusCode === "string") {
statusCode = Number.parseInt(statusCode, 10);
}
if (statusCode < 100 || statusCode > 999) {
return defaultStatusCode;
}
return statusCode;
}
function splitCookiesString(cookiesString) {
if (Array.isArray(cookiesString)) {
return cookiesString.flatMap((c) => splitCookiesString(c));
}
if (typeof cookiesString !== "string") {
return [];
}
const cookiesStrings = [];
let pos = 0;
let start;
let ch;
let lastComma;
let nextStart;
let cookiesSeparatorFound;
const skipWhitespace = () => {
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
pos += 1;
}
return pos < cookiesString.length;
};
const notSpecialChar = () => {
ch = cookiesString.charAt(pos);
return ch !== "=" && ch !== ";" && ch !== ",";
};
while (pos < cookiesString.length) {
start = pos;
cookiesSeparatorFound = false;
while (skipWhitespace()) {
ch = cookiesString.charAt(pos);
if (ch === ",") {
lastComma = pos;
pos += 1;
skipWhitespace();
nextStart = pos;
while (pos < cookiesString.length && notSpecialChar()) {
pos += 1;
}
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
cookiesSeparatorFound = true;
pos = nextStart;
cookiesStrings.push(cookiesString.slice(start, lastComma));
start = pos;
} else {
pos = lastComma + 1;
}
} else {
pos += 1;
}
}
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
cookiesStrings.push(cookiesString.slice(start));
}
}
return cookiesStrings;
}
const defer = typeof setImmediate === "undefined" ? (fn) => fn() : setImmediate;
function send(event, data, type) {
if (type) {
defaultContentType(event, type);
}
return new Promise((resolve) => {
defer(() => {
if (!event.handled) {
event.node.res.end(data);
}
resolve();
});
});
}
function sendNoContent(event, code) {
if (event.handled) {
return;
}
if (!code && event.node.res.statusCode !== 200) {
code = event.node.res.statusCode;
}
const _code = sanitizeStatusCode(code, 204);
if (_code === 204) {
event.node.res.removeHeader("content-length");
}
event.node.res.writeHead(_code);
event.node.res.end();
}
function setResponseStatus(event, code, text) {
if (code) {
event.node.res.statusCode = sanitizeStatusCode(
code,
event.node.res.statusCode
);
}
if (text) {
event.node.res.statusMessage = sanitizeStatusMessage(text);
}
}
function getResponseStatus(event) {
return event.node.res.statusCode;
}
function getResponseStatusText(event) {
return event.node.res.statusMessage;
}
function defaultContentType(event, type) {
if (type && event.node.res.statusCode !== 304 && !event.node.res.getHeader("content-type")) {
event.node.res.setHeader("content-type", type);
}
}
function sendRedirect(event, location, code = 302) {
event.node.res.statusCode = sanitizeStatusCode(
code,
event.node.res.statusCode
);
event.node.res.setHeader("location", location);
const encodedLoc = location.replace(/"/g, "%22");
const html = `<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=${encodedLoc}"></head></html>`;
return send(event, html, MIMES.html);
}
function getResponseHeader(event, name) {
return event.node.res.getHeader(name);
}
function setResponseHeaders(event, headers) {
for (const [name, value] of Object.entries(headers)) {
event.node.res.setHeader(
name,
value
);
}
}
const setHeaders = setResponseHeaders;
function setResponseHeader(event, name, value) {
event.node.res.setHeader(name, value);
}
const setHeader = setResponseHeader;
function appendResponseHeader(event, name, value) {
let current = event.node.res.getHeader(name);
if (!current) {
event.node.res.setHeader(name, value);
return;
}
if (!Array.isArray(current)) {
current = [current.toString()];
}
event.node.res.setHeader(name, [...current, value]);
}
function removeResponseHeader(event, name) {
return event.node.res.removeHeader(name);
}
function isStream(data) {
if (!data || typeof data !== "object") {
return false;
}
if (typeof data.pipe === "function") {
if (typeof data._read === "function") {
return true;
}
if (typeof data.abort === "function") {
return true;
}
}
if (typeof data.pipeTo === "function") {
return true;
}
return false;
}
function isWebResponse(data) {
return typeof Response !== "undefined" && data instanceof Response;
}
function sendStream(event, stream) {
if (!stream || typeof stream !== "object") {
throw new Error("[h3] Invalid stream provided.");
}
event.node.res._data = stream;
if (!event.node.res.socket) {
event._handled = true;
return Promise.resolve();
}
if (hasProp(stream, "pipeTo") && typeof stream.pipeTo === "function") {
return stream.pipeTo(
new WritableStream({
write(chunk) {
event.node.res.write(chunk);
}
})
).then(() => {
event.node.res.end();
});
}
if (hasProp(stream, "pipe") && typeof stream.pipe === "function") {
return new Promise((resolve, reject) => {
stream.pipe(event.node.res);
if (stream.on) {
stream.on("end", () => {
event.node.res.end();
resolve();
});
stream.on("error", (error) => {
reject(error);
});
}
event.node.res.on("close", () => {
if (stream.abort) {
stream.abort();
}
});
});
}
throw new Error("[h3] Invalid or incompatible stream provided.");
}
function sendWebResponse(event, response) {
for (const [key, value] of response.headers) {
if (key === "set-cookie") {
event.node.res.appendHeader(key, splitCookiesString(value));
} else {
event.node.res.setHeader(key, value);
}
}
if (response.status) {
event.node.res.statusCode = sanitizeStatusCode(
response.status,
event.node.res.statusCode
);
}
if (response.statusText) {
event.node.res.statusMessage = sanitizeStatusMessage(response.statusText);
}
if (response.redirected) {
event.node.res.setHeader("location", response.url);
}
if (!response.body) {
event.node.res.end();
return;
}
return sendStream(event, response.body);
}
const PayloadMethods = /* @__PURE__ */ new Set(["PATCH", "POST", "PUT", "DELETE"]);
const ignoredHeaders = /* @__PURE__ */ new Set([
"transfer-encoding",
"accept-encoding",
"connection",
"keep-alive",
"upgrade",
"expect",
"host",
"accept"
]);
async function proxyRequest(event, target, opts = {}) {
let body;
let duplex;
if (PayloadMethods.has(event.method)) {
if (opts.streamRequest) {
body = getRequestWebStream(event);
duplex = "half";
} else {
body = await readRawBody(event, false).catch(() => void 0);
}
}
const method = opts.fetchOptions?.method || event.method;
const fetchHeaders = mergeHeaders$1(
getProxyRequestHeaders(event, { host: target.startsWith("/") }),
opts.fetchOptions?.headers,
opts.headers
);
return sendProxy(event, target, {
...opts,
fetchOptions: {
method,
body,
duplex,
...opts.fetchOptions,
headers: fetchHeaders
}
});
}
async function sendProxy(event, target, opts = {}) {
let response;
try {
response = await _getFetch(opts.fetch)(target, {
headers: opts.headers,
ignoreResponseError: true,
// make $ofetch.raw transparent
...opts.fetchOptions
});
} catch (error) {
throw createError$1({
status: 502,
statusMessage: "Bad Gateway",
cause: error
});
}
event.node.res.statusCode = sanitizeStatusCode(
response.status,
event.node.res.statusCode
);
event.node.res.statusMessage = sanitizeStatusMessage(response.statusText);
const cookies = [];
for (const [key, value] of response.headers.entries()) {
if (key === "content-encoding") {
continue;
}
if (key === "content-length") {
continue;
}
if (key === "set-cookie") {
cookies.push(...splitCookiesString(value));
continue;
}
event.node.res.setHeader(key, value);
}
if (cookies.length > 0) {
event.node.res.setHeader(
"set-cookie",
cookies.map((cookie) => {
if (opts.cookieDomainRewrite) {
cookie = rewriteCookieProperty(
cookie,
opts.cookieDomainRewrite,
"domain"
);
}
if (opts.cookiePathRewrite) {
cookie = rewriteCookieProperty(
cookie,
opts.cookiePathRewrite,
"path"
);
}
return cookie;
})
);
}
if (opts.onResponse) {
await opts.onResponse(event, response);
}
if (response._data !== void 0) {
return response._data;
}
if (event.handled) {
return;
}
if (opts.sendStream === false) {
const data = new Uint8Array(await response.arrayBuffer());
return event.node.res.end(data);
}
if (response.body) {
for await (const chunk of response.body) {
event.node.res.write(chunk);
}
}
return event.node.res.end();
}
function getProxyRequestHeaders(event, opts) {
const headers = /* @__PURE__ */ Object.create(null);
const reqHeaders = getRequestHeaders(event);
for (const name in reqHeaders) {
if (!ignoredHeaders.has(name) || name === "host" && opts?.host) {
headers[name] = reqHeaders[name];
}
}
return headers;
}
function fetchWithEvent(event, req, init, options) {
return _getFetch(options?.fetch)(req, {
...init,
context: init?.context || event.context,
headers: {
...getProxyRequestHeaders(event, {
host: typeof req === "string" && req.startsWith("/")
}),
...init?.headers
}
});
}
function _getFetch(_fetch) {
if (_fetch) {
return _fetch;
}
if (globalThis.fetch) {
return globalThis.fetch;
}
throw new Error(
"fetch is not available. Try importing `node-fetch-native/polyfill` for Node.js."
);
}
function rewriteCookieProperty(header, map, property) {
const _map = typeof map === "string" ? { "*": map } : map;
return header.replace(
new RegExp(`(;\\s*${property}=)([^;]+)`, "gi"),
(match, prefix, previousValue) => {
let newValue;
if (previousValue in _map) {
newValue = _map[previousValue];
} else if ("*" in _map) {
newValue = _map["*"];
} else {
return match;
}
return newValue ? prefix + newValue : "";
}
);
}
function mergeHeaders$1(defaults, ...inputs) {
const _inputs = inputs.filter(Boolean);
if (_inputs.length === 0) {
return defaults;
}
const merged = new Headers(defaults);
for (const input of _inputs) {
const entries = Array.isArray(input) ? input : typeof input.entries === "function" ? input.entries() : Object.entries(input);
for (const [key, value] of entries) {
if (value !== void 0) {
merged.set(key, value);
}
}
}
return merged;
}
class H3Event {
"__is_event__" = true;
// Context
node;
// Node
web;
// Web
context = {};
// Shared
// Request
_method;
_path;
_headers;
_requestBody;
// Response
_handled = false;
// Hooks
_onBeforeResponseCalled;
_onAfterResponseCalled;
constructor(req, res) {
this.node = { req, res };
}
// --- Request ---
get method() {
if (!this._method) {
this._method = (this.node.req.method || "GET").toUpperCase();
}
return this._method;
}
get path() {
return this._path || this.node.req.url || "/";
}
get headers() {
if (!this._headers) {
this._headers = _normalizeNodeHeaders(this.node.req.headers);
}
return this._headers;
}
// --- Respoonse ---
get handled() {
return this._handled || this.node.res.writableEnded || this.node.res.headersSent;
}
respondWith(response) {
return Promise.resolve(response).then(
(_response) => sendWebResponse(this, _response)
);
}
// --- Utils ---
toString() {
return `[${this.method}] ${this.path}`;
}
toJSON() {
return this.toString();
}
// --- Deprecated ---
/** @deprecated Please use `event.node.req` instead. */
get req() {
return this.node.req;
}
/** @deprecated Please use `event.node.res` instead. */
get res() {
return this.node.res;
}
}
function isEvent(input) {
return hasProp(input, "__is_event__");
}
function createEvent(req, res) {
return new H3Event(req, res);
}
function _normalizeNodeHeaders(nodeHeaders) {
const headers = new Headers();
for (const [name, value] of Object.entries(nodeHeaders)) {
if (Array.isArray(value)) {
for (const item of value) {
headers.append(name, item);
}
} else if (value) {
headers.set(name, value);
}
}
return headers;
}
function defineEventHandler(handler) {
if (typeof handler === "function") {
handler.__is_handler__ = true;
return handler;
}
const _hooks = {
onRequest: _normalizeArray(handler.onRequest),
onBeforeResponse: _normalizeArray(handler.onBeforeResponse)
};
const _handler = (event) => {
return _callHandler(event, handler.handler, _hooks);
};
_handler.__is_handler__ = true;
_handler.__resolve__ = handler.handler.__resolve__;
_handler.__websocket__ = handler.websocket;
return _handler;
}
function _normalizeArray(input) {
return input ? Array.isArray(input) ? input : [input] : void 0;
}
async function _callHandler(event, handler, hooks) {
if (hooks.onRequest) {
for (const hook of hooks.onRequest) {
await hook(event);
if (event.handled) {
return;
}
}
}
const body = await handler(event);
const response = { body };
if (hooks.onBeforeResponse) {
for (const hook of hooks.onBeforeResponse) {
await hook(event, response);
}
}
return response.body;
}
const eventHandler = defineEventHandler;
function isEventHandler(input) {
return hasProp(input, "__is_handler__");
}
function toEventHandler(input, _, _route) {
if (!isEventHandler(input)) {
console.warn(
"[h3] Implicit event handler conversion is deprecated. Use `eventHandler()` or `fromNodeMiddleware()` to define event handlers.",
_route && _route !== "/" ? `
Route: ${_route}` : "",
`
Handler: ${input}`
);
}
return input;
}
function defineLazyEventHandler(factory) {
let _promise;
let _resolved;
const resolveHandler = () => {
if (_resolved) {
return Promise.resolve(_resolved);
}
if (!_promise) {
_promise = Promise.resolve(factory()).then((r) => {
const handler2 = r.default || r;
if (typeof handler2 !== "function") {
throw new TypeError(
"Invalid lazy handler result. It should be a function:",
handler2
);
}
_resolved = { handler: toEventHandler(r.default || r) };
return _resolved;
});
}
return _promise;
};
const handler = eventHandler((event) => {
if (_resolved) {
return _resolved.handler(event);
}
return resolveHandler().then((r) => r.handler(event));
});
handler.__resolve__ = resolveHandler;
return handler;
}
const lazyEventHandler = defineLazyEventHandler;
function createApp(options = {}) {
const stack = [];
const handler = createAppEventHandler(stack, options);
const resolve = createResolver(stack);
handler.__resolve__ = resolve;
const getWebsocket = cachedFn(() => websocketOptions(resolve, options));
const app = {
// @ts-expect-error
use: (arg1, arg2, arg3) => use(app, arg1, arg2, arg3),
resolve,
handler,
stack,
options,
get websocket() {
return getWebsocket();
}
};
return app;
}
function use(app, arg1, arg2, arg3) {
if (Array.isArray(arg1)) {
for (const i of arg1) {
use(app, i, arg2, arg3);
}
} else if (Array.isArray(arg2)) {
for (const i of arg2) {
use(app, arg1, i, arg3);
}
} else if (typeof arg1 === "string") {
app.stack.push(
normalizeLayer({ ...arg3, route: arg1, handler: arg2 })
);
} else if (typeof arg1 === "function") {
app.stack.push(normalizeLayer({ ...arg2, handler: arg1 }));
} else {
app.stack.push(normalizeLayer({ ...arg1 }));
}
return app;
}
function createAppEventHandler(stack, options) {
const spacing = options.debug ? 2 : void 0;
return eventHandler(async (event) => {
event.node.req.originalUrl = event.node.req.originalUrl || event.node.req.url || "/";
const _reqPath = event._path || event.node.req.url || "/";
let _layerPath;
if (options.onRequest) {
await options.onRequest(event);
}
for (const layer of stack) {
if (layer.route.length > 1) {
if (!_reqPath.startsWith(layer.route)) {
continue;
}
_layerPath = _reqPath.slice(layer.route.length) || "/";
} else {
_layerPath = _reqPath;
}
if (layer.match && !layer.match(_layerPath, event)) {
continue;
}
event._path = _layerPath;
event.node.req.url = _layerPath;
const val = await layer.handler(event);
const _body = val === void 0 ? void 0 : await val;
if (_body !== void 0) {
const _response = { body: _body };
if (options.onBeforeResponse) {
event._onBeforeResponseCalled = true;
await options.onBeforeResponse(event, _response);
}
await handleHandlerResponse(event, _response.body, spacing);
if (options.onAfterResponse) {
event._onAfterResponseCalled = true;
await options.onAfterResponse(event, _response);
}
return;
}
if (event.handled) {
if (options.onAfterResponse) {
event._onAfterResponseCalled = true;
await options.onAfterResponse(event, void 0);
}
return;
}
}
if (!event.handled) {
throw createError$1({
statusCode: 404,
statusMessage: `Cannot find any path matching ${event.path || "/"}.`
});
}
if (options.onAfterResponse) {
event._onAfterResponseCalled = true;
await options.onAfterResponse(event, void 0);
}
});
}
function createResolver(stack) {
return async (path) => {
let _layerPath;
for (const layer of stack) {
if (layer.route === "/" && !layer.handler.__resolve__) {
continue;
}
if (!path.startsWith(layer.route)) {
continue;
}
_layerPath = path.slice(layer.route.length) || "/";
if (layer.match && !layer.match(_layerPath, void 0)) {
continue;
}
let res = { route: layer.route, handler: layer.handler };
if (res.handler.__resolve__) {
const _res = await res.handler.__resolve__(_layerPath);
if (!_res) {
continue;
}
res = {
...res,
..._res,
route: joinURL(res.route || "/", _res.route || "/")
};
}
return res;
}
};
}
function normalizeLayer(input) {
let handler = input.handler;
if (handler.handler) {
handler = handler.handler;
}
if (input.lazy) {
handler = lazyEventHandler(handler);
} else if (!isEventHandler(handler)) {
handler = toEventHandler(handler, void 0, input.route);
}
return {
route: withoutTrailingSlash(input.route),
match: input.match,
handler
};
}
function handleHandlerResponse(event, val, jsonSpace) {
if (val === null) {
return sendNoContent(event);
}
if (val) {
if (isWebResponse(val)) {
return sendWebResponse(event, val);
}
if (isStream(val)) {
return sendStream(event, val);
}
if (val.buffer) {
return send(event, val);
}
if (val.arrayBuffer && typeof val.arrayBuffer === "function") {
return val.arrayBuffer().then((arrayBuffer) => {
return send(event, Buffer.from(arrayBuffer), val.type);
});
}
if (val instanceof Error) {
throw createError$1(val);
}
if (typeof val.end === "function") {
return true;
}
}
const valType = typeof val;
if (valType === "string") {
return send(event, val, MIMES.html);
}
if (valType === "object" || valType === "boolean" || valType === "number") {
return send(event, JSON.stringify(val, void 0, jsonSpace), MIMES.json);
}
if (valType === "bigint") {
return send(event, val.toString(), MIMES.json);
}
throw createError$1({
statusCode: 500,
statusMessage: `[h3] Cannot send ${valType} as response.`
});
}
function cachedFn(fn) {
let cache;
return () => {
if (!cache) {
cache = fn();
}
return cache;
};
}
function websocketOptions(evResolver, appOptions) {
return {
...appOptions.websocket,
async resolve(info) {
const url = info.request?.url || info.url || "/";
const { pathname } = typeof url === "string" ? parseURL(url) : url;
const resolved = await evResolver(pathname);
return resolved?.handler?.__websocket__ || {};
}
};
}
const RouterMethods = [
"connect",
"delete",
"get",
"head",
"options",
"post",
"put",
"trace",
"patch"
];
function createRouter(opts = {}) {
const _router = createRouter$1({});
const routes = {};
let _matcher;
const router = {};
const addRoute = (path, handler, method) => {
let route = routes[path];
if (!route) {
routes[path] = route = { path, handlers: {} };
_router.insert(path, route);
}
if (Array.isArray(method)) {
for (const m of method) {
addRoute(path, handler, m);
}
} else {
route.handlers[method] = toEventHandler(handler, void 0, path);
}
return router;
};
router.use = router.add = (path, handler, method) => addRoute(path, handler, method || "all");
for (const method of RouterMethods) {
router[method] = (path, handle) => router.add(path, handle, method);
}
const matchHandler = (path = "/", method = "get") => {
const qIndex = path.indexOf("?");
if (qIndex !== -1) {
path = path.slice(0, Math.max(0, qIndex));
}
const matched = _router.lookup(path);
if (!matched || !matched.handlers) {
return {
error: createError$1({
statusCode: 404,
name: "Not Found",
statusMessage: `Cannot find any route matching ${path || "/"}.`
})
};
}
let handler = matched.handlers[method] || matched.handlers.all;
if (!handler) {
if (!_matcher) {
_matcher = toRouteMatcher(_router);
}
const _matches = _matcher.matchAll(path).reverse();
for (const _match of _matches) {
if (_match.handlers[method]) {
handler = _match.handlers[method];
matched.handlers[method] = matched.handlers[method] || handler;
break;
}
if (_match.handlers.all) {
handler = _match.handlers.all;
matched.handlers.all = matched.handlers.all || handler;
break;
}
}
}
if (!handler) {
return {
error: createError$1({
statusCode: 405,
name: "Method Not Allowed",
statusMessage: `Method ${method} is not allowed on this route.`
})
};
}
return { matched, handler };
};
const isPreemptive = opts.preemptive || opts.preemtive;
router.handler = eventHandler((event) => {
const match = matchHandler(
event.path,
event.method.toLowerCase()
);
if ("error" in match) {
if (isPreemptive) {
throw match.error;
} else {
return;
}
}
event.context.matchedRoute = match.matched;
const params = match.matched.params || {};
event.context.params = params;
return Promise.resolve(match.handler(event)).then((res) => {
if (res === void 0 && isPreemptive) {
return null;
}
return res;
});
});
router.handler.__resolve__ = async (path) => {
path = withLeadingSlash(path);
const match = matchHandler(path);
if ("error" in match) {
return;
}
let res = {
route: match.matched.path,
handler: match.handler
};
if (match.handler.__resolve__) {
const _res = await match.handler.__resolve__(path);
if (!_res) {
return;
}
res = { ...res, ..._res };
}
return res;
};
return router;
}
function toNodeListener(app) {
const toNodeHandle = async function(req, res) {
const event = createEvent(req, res);
try {
await app.handler(event);
} catch (_error) {
const error = createError$1(_error);
if (!isError(_error)) {
error.unhandled = true;
}
setResponseStatus(event, error.statusCode, error.statusMessage);
if (app.options.onError) {
await app.options.onError(error, event);
}
if (event.handled) {
return;
}
if (error.unhandled || error.fatal) {
console.error("[h3]", error.fatal ? "[fatal]" : "[unhandled]", error);
}
if (app.options.onBeforeResponse && !event._onBeforeResponseCalled) {
await app.options.onBeforeResponse(event, { body: error });
}
await sendError(event, error, !!app.options.debug);
if (app.options.onAfterResponse && !event._onAfterResponseCalled) {
await app.options.onAfterResponse(event, { body: error });
}
}
};
return toNodeHandle;
}
function flatHooks(configHooks, hooks = {}, parentName) {
for (const key in configHooks) {
const subHook = configHooks[key];
const name = parentName ? `${parentName}:${key}` : key;
if (typeof subHook === "object" && subHook !== null) {
flatHooks(subHook, hooks, name);
} else if (typeof subHook === "function") {
hooks[name] = subHook;
}
}
return hooks;
}
const defaultTask = { run: (function_) => function_() };
const _createTask = () => defaultTask;
const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
function serialTaskCaller(hooks, args) {
const name = args.shift();
const task = createTask(name);
return hooks.reduce(
(promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
Promise.resolve()
);
}
function parallelTaskCaller(hooks, args) {
const name = args.shift();
const task = createTask(name);
return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
}
function callEachWith(callbacks, arg0) {
for (const callback of [...callbacks]) {
callback(arg0);
}
}
class Hookable {
constructor() {
this._hooks = {};
this._before = void 0;
this._after = void 0;
this._deprecatedMessages = void 0;
this._deprecatedHooks = {};
this.hook = this.hook.bind(this);
this.callHook = this.callHook.bind(this);
this.callHookWith = this.callHookWith.bind(this);
}
hook(name, function_, options = {}) {
if (!name || typeof function_ !== "function") {
return () => {
};
}
const originalName = name;
let dep;
while (this._deprecatedHooks[name]) {
dep = this._deprecatedHooks[name];
name = dep.to;
}
if (dep && !options.allowDeprecated) {
let message = dep.message;
if (!message) {
message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
}
if (!this._deprecatedMessages) {
this._deprecatedMessages = /* @__PURE__ */ new Set();
}
if (!this._deprecatedMessages.has(message)) {
console.warn(message);
this._deprecatedMessages.add(message);
}
}
if (!function_.name) {
try {
Object.defineProperty(function_, "name", {
get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
configurable: true
});
} catch {
}
}
this._hooks[name] = this._hooks[name] || [];
this._hooks[name].push(function_);
return () => {
if (function_) {
this.removeHook(name, function_);
function_ = void 0;
}
};
}
hookOnce(name, function_) {
let _unreg;
let _function = (...arguments_) => {
if (typeof _unreg === "function") {
_unreg();
}
_unreg = void 0;
_function = void 0;
return function_(...arguments_);
};
_unreg = this.hook(name, _function);
return _unreg;
}
removeHook(name, function_) {
if (this._hooks[name]) {
const index = this._hooks[name].indexOf(function_);
if (index !== -1) {
this._hooks[name].splice(index, 1);
}
if (this._hooks[name].length === 0) {
delete this._hooks[name];
}
}
}
deprecateHook(name, deprecated) {
this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
const _hooks = this._hooks[name] || [];
delete this._hooks[name];
for (const hook of _hooks) {
this.hook(name, hook);
}
}
deprecateHooks(deprecatedHooks) {
Object.assign(this._deprecatedHooks, deprecatedHooks);
for (const name in deprecatedHooks) {
this.deprecateHook(name, deprecatedHooks[name]);
}
}
addHooks(configHooks) {
const hooks = flatHooks(configHooks);
const removeFns = Object.keys(hooks).map(
(key) => this.hook(key, hooks[key])
);
return () => {
for (const unreg of removeFns.splice(0, removeFns.length)) {
unreg();
}
};
}
removeHooks(configHooks) {
const hooks = flatHooks(configHooks);
for (const key in hooks) {
this.removeHook(key, hooks[key]);
}
}
removeAllHooks() {
for (const key in this._hooks) {
delete this._hooks[key];
}
}
callHook(name, ...arguments_) {
arguments_.unshift(name);
return this.callHookWith(serialTaskCaller, name, ...arguments_);
}
callHookParallel(name, ...arguments_) {
arguments_.unshift(name);
return this.callHookWith(parallelTaskCaller, name, ...arguments_);
}
callHookWith(caller, name, ...arguments_) {
const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
if (this._before) {
callEachWith(this._before, event);
}
const result = caller(
name in this._hooks ? [...this._hooks[name]] : [],
arguments_
);
if (result instanceof Promise) {
return result.finally(() => {
if (this._after && event) {
callEachWith(this._after, event);
}
});
}
if (this._after && event) {
callEachWith(this._after, event);
}
return result;
}
beforeEach(function_) {
this._before = this._before || [];
this._before.push(function_);
return () => {
if (this._before !== void 0) {
const index = this._before.indexOf(function_);
if (index !== -1) {
this._before.splice(index, 1);
}
}
};
}
afterEach(function_) {
this._after = this._after || [];
this._after.push(function_);
return () => {
if (this._after !== void 0) {
const index = this._after.indexOf(function_);
if (index !== -1) {
this._after.splice(index, 1);
}
}
};
}
}
function createHooks() {
return new Hookable();
}
const s$1=globalThis.Headers,i$1=globalThis.AbortController,l$1=globalThis.fetch||(()=>{throw new Error("[node-fetch-native] Failed to fetch: `globalThis.fetch` is not available!")});
class FetchError extends Error {
constructor(message, opts) {
super(message, opts);
this.name = "FetchError";
if (opts?.cause && !this.cause) {
this.cause = opts.cause;
}
}
}
function createFetchError(ctx) {
const errorMessage = ctx.error?.message || ctx.error?.toString() || "";
const method = ctx.request?.method || ctx.options?.method || "GET";
const url = ctx.request?.url || String(ctx.request) || "/";
const requestStr = `[${method}] ${JSON.stringify(url)}`;
const statusStr = ctx.response ? `${ctx.response.status} ${ctx.response.statusText}` : "<no response>";
const message = `${requestStr}: ${statusStr}${errorMessage ? ` ${errorMessage}` : ""}`;
const fetchError = new FetchError(
message,
ctx.error ? { cause: ctx.error } : void 0
);
for (const key of ["request", "options", "response"]) {
Object.defineProperty(fetchError, key, {
get() {
return ctx[key];
}
});
}
for (const [key, refKey] of [
["data", "_data"],
["status", "status"],
["statusCode", "status"],
["statusText", "statusText"],
["statusMessage", "statusText"]
]) {
Object.defineProperty(fetchError, key, {
get() {
return ctx.response && ctx.response[refKey];
}
});
}
return fetchError;
}
const payloadMethods = new Set(
Object.freeze(["PATCH", "POST", "PUT", "DELETE"])
);
function isPayloadMethod(method = "GET") {
return payloadMethods.has(method.toUpperCase());
}
function isJSONSerializable(value) {
if (value === void 0) {
return false;
}
const t = typeof value;
if (t === "string" || t === "number" || t === "boolean" || t === null) {
return true;
}
if (t !== "object") {
return false;
}
if (Array.isArray(value)) {
return true;
}
if (value.buffer) {
return false;
}
if (value instanceof FormData || value instanceof URLSearchParams) {
return false;
}
return value.constructor && value.constructor.name === "Object" || typeof value.toJSON === "function";
}
const textTypes = /* @__PURE__ */ new Set([
"image/svg",
"application/xml",
"application/xhtml",
"application/html"
]);
const JSON_RE = /^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;
function detectResponseType(_contentType = "") {
if (!_contentType) {
return "json";
}
const contentType = _contentType.split(";").shift() || "";
if (JSON_RE.test(contentType)) {
return "json";
}
if (contentType === "text/event-stream") {
return "stream";
}
if (textTypes.has(contentType) || contentType.startsWith("text/")) {
return "text";
}
return "blob";
}
function resolveFetchOptions(request, input, defaults, Headers) {
const headers = mergeHeaders(
input?.headers ?? request?.headers,
defaults?.headers,
Headers
);
let query;
if (defaults?.query || defaults?.params || input?.params || input?.query) {
query = {
...defaults?.params,
...defaults?.query,
...input?.params,
...input?.query
};
}
return {
...defaults,
...input,
query,
params: query,
headers
};
}
function mergeHeaders(input, defaults, Headers) {
if (!defaults) {
return new Headers(input);
}
const headers = new Headers(defaults);
if (input) {
for (const [key, value] of Symbol.iterator in input || Array.isArray(input) ? input : new Headers(input)) {
headers.set(key, value);
}
}
return headers;
}
async function callHooks(context, hooks) {
if (hooks) {
if (Array.isArray(hooks)) {
for (const hook of hooks) {
await hook(context);
}
} else {
await hooks(context);
}
}
}
const retryStatusCodes = /* @__PURE__ */ new Set([
408,
// Request Timeout
409,
// Conflict
425,
// Too Early (Experimental)
429,
// Too Many Requests
500,
// Internal Server Error
502,
// Bad Gateway
503,
// Service Unavailable
504
// Gateway Timeout
]);
const nullBodyResponses = /* @__PURE__ */ new Set([101, 204, 205, 304]);
function createFetch(globalOptions = {}) {
const {
fetch = globalThis.fetch,
Headers = globalThis.Headers,
AbortController = globalThis.AbortController
} = globalOptions;
async function onError(context) {
const isAbort = context.error && context.error.name === "AbortError" && !context.options.timeout || false;
if (context.options.retry !== false && !isAbort) {
let retries;
if (typeof context.options.retry === "number") {
retries = context.options.retry;
} else {
retries = isPayloadMethod(context.options.method) ? 0 : 1;
}
const responseCode = context.response && context.response.status || 500;
if (retries > 0 && (Array.isArray(context.options.retryStatusCodes) ? context.options.retryStatusCodes.includes(responseCode) : retryStatusCodes.has(responseCode))) {
const retryDelay = typeof context.options.retryDelay === "function" ? context.options.retryDelay(context) : context.options.retryDelay || 0;
if (retryDelay > 0) {
await new Promise((resolve) => setTimeout(resolve, retryDelay));
}
return $fetchRaw(context.request, {
...context.options,
retry: retries - 1
});
}
}
const error = createFetchError(context);
if (Error.captureStackTrace) {
Error.captureStackTrace(error, $fetchRaw);
}
throw error;
}
const $fetchRaw = async function $fetchRaw2(_request, _options = {}) {
const context = {
request: _request,
options: resolveFetchOptions(
_request,
_options,
globalOptions.defaults,
Headers
),
response: void 0,
error: void 0
};
if (context.options.method) {
context.options.method = context.options.method.toUpperCase();
}
if (context.options.onRequest) {
await callHooks(context, context.options.onRequest);
if (!(context.options.headers instanceof Headers)) {
context.options.headers = new Headers(
context.options.headers || {}
/* compat */
);
}
}
if (typeof context.request === "string") {
if (context.options.baseURL) {
context.request = withBase(context.request, context.options.baseURL);
}
if (context.options.query) {
context.request = withQuery(context.request, context.options.query);
delete context.options.query;
}
if ("query" in context.options) {
delete context.options.query;
}
if ("params" in context.options) {
delete context.options.params;
}
}
if (context.options.body && isPayloadMethod(context.options.method)) {
if (isJSONSerializable(context.options.body)) {
const contentType = context.options.headers.get("content-type");
if (typeof context.options.body !== "string") {
context.options.body = contentType === "application/x-www-form-urlencoded" ? new URLSearchParams(
context.options.body
).toString() : JSON.stringify(context.options.body);
}
if (!contentType) {
context.options.headers.set("content-type", "application/json");
}
if (!context.options.headers.has("accept")) {
context.options.headers.set("accept", "application/json");
}
} else if (
// ReadableStream Body
"pipeTo" in context.options.body && typeof context.options.body.pipeTo === "function" || // Node.js Stream Body
typeof context.options.body.pipe === "function"
) {
if (!("duplex" in context.options)) {
context.options.duplex = "half";
}
}
}
let abortTimeout;
if (!context.options.signal && context.options.timeout) {
const controller = new AbortController();
abortTimeout = setTimeout(() => {
const error = new Error(
"[TimeoutError]: The operation was aborted due to timeout"
);
error.name = "TimeoutError";
error.code = 23;
controller.abort(error);
}, context.options.timeout);
context.options.signal = controller.signal;
}
try {
context.response = await fetch(
context.request,
context.options
);
} catch (error) {
context.error = error;
if (context.options.onRequestError) {
await callHooks(
context,
context.options.onRequestError
);
}
return await onError(context);
} finally {
if (abortTimeout) {
clearTimeout(abortTimeout);
}
}
const hasBody = (context.response.body || // https://github.com/unjs/ofetch/issues/324
// https://github.com/unjs/ofetch/issues/294
// https://github.com/JakeChampion/fetch/issues/1454
context.response._bodyInit) && !nullBodyResponses.has(context.response.status) && context.options.method !== "HEAD";
if (hasBody) {
const responseType = (context.options.parseResponse ? "json" : context.options.responseType) || detectResponseType(context.response.headers.get("content-type") || "");
switch (responseType) {
case "json": {
const data = await context.response.text();
const parseFunction = context.options.parseResponse || destr;
context.response._data = parseFunction(data);
break;
}
case "stream": {
context.response._data = context.response.body || context.response._bodyInit;
break;
}
default: {
context.response._data = await context.response[responseType]();
}
}
}
if (context.options.onResponse) {
await callHooks(
context,
context.options.onResponse
);
}
if (!context.options.ignoreResponseError && context.response.status >= 400 && context.response.status < 600) {
if (context.options.onResponseError) {
await callHooks(
context,
context.options.onResponseError
);
}
return await onError(context);
}
return context.response;
};
const $fetch = async function $fetch2(request, options) {
const r = await $fetchRaw(request, options);
return r._data;
};
$fetch.raw = $fetchRaw;
$fetch.native = (...args) => fetch(...args);
$fetch.create = (defaultOptions = {}, customGlobalOptions = {}) => createFetch({
...globalOptions,
...customGlobalOptions,
defaults: {
...globalOptions.defaults,
...customGlobalOptions.defaults,
...defaultOptions
}
});
return $fetch;
}
function createNodeFetch() {
const useKeepAlive = JSON.parse(process.env.FETCH_KEEP_ALIVE || "false");
if (!useKeepAlive) {
return l$1;
}
const agentOptions = { keepAlive: true };
const httpAgent = new http.Agent(agentOptions);
const httpsAgent = new https.Agent(agentOptions);
const nodeFetchOptions = {
agent(parsedURL) {
return parsedURL.protocol === "http:" ? httpAgent : httpsAgent;
}
};
return function nodeFetchWithKeepAlive(input, init) {
return l$1(input, { ...nodeFetchOptions, ...init });
};
}
const fetch = globalThis.fetch ? (...args) => globalThis.fetch(...args) : createNodeFetch();
const Headers$1 = globalThis.Headers || s$1;
const AbortController$1 = globalThis.AbortController || i$1;
const ofetch = createFetch({ fetch, Headers: Headers$1, AbortController: AbortController$1 });
const $fetch$1 = ofetch;
function wrapToPromise(value) {
if (!value || typeof value.then !== "function") {
return Promise.resolve(value);
}
return value;
}
function asyncCall(function_, ...arguments_) {
try {
return wrapToPromise(function_(...arguments_));
} catch (error) {
return Promise.reject(error);
}
}
function isPrimitive$1(value) {
const type = typeof value;
return value === null || type !== "object" && type !== "function";
}
function isPureObject(value) {
const proto = Object.getPrototypeOf(value);
return !proto || proto.isPrototypeOf(Object);
}
function stringify(value) {
if (isPrimitive$1(value)) {
return String(value);
}
if (isPureObject(value) || Array.isArray(value)) {
return JSON.stringify(value);
}
if (typeof value.toJSON === "function") {
return stringify(value.toJSON());
}
throw new Error("[unstorage] Cannot stringify value!");
}
const BASE64_PREFIX = "base64:";
function serializeRaw(value) {
if (typeof value === "string") {
return value;
}
return BASE64_PREFIX + base64Encode(value);
}
function deserializeRaw(value) {
if (typeof value !== "string") {
return value;
}
if (!value.startsWith(BASE64_PREFIX)) {
return value;
}
return base64Decode(value.slice(BASE64_PREFIX.length));
}
function base64Decode(input) {
if (globalThis.Buffer) {
return Buffer.from(input, "base64");
}
return Uint8Array.from(
globalThis.atob(input),
(c) => c.codePointAt(0)
);
}
function base64Encode(input) {
if (globalThis.Buffer) {
return Buffer.from(input).toString("base64");
}
return globalThis.btoa(String.fromCodePoint(...input));
}
const storageKeyProperties = [
"has",
"hasItem",
"get",
"getItem",
"getItemRaw",
"set",
"setItem",
"setItemRaw",
"del",
"remove",
"removeItem",
"getMeta",
"setMeta",
"removeMeta",
"getKeys",
"clear",
"mount",
"unmount"
];
function prefixStorage(storage, base) {
base = normalizeBaseKey(base);
if (!base) {
return storage;
}
const nsStorage = { ...storage };
for (const property of storageKeyProperties) {
nsStorage[property] = (key = "", ...args) => (
// @ts-ignore
storage[property](base + key, ...args)
);
}
nsStorage.getKeys = (key = "", ...arguments_) => storage.getKeys(base + key, ...arguments_).then((keys) => keys.map((key2) => key2.slice(base.length)));
nsStorage.keys = nsStorage.getKeys;
nsStorage.getItems = async (items, commonOptions) => {
const prefixedItems = items.map(
(item) => typeof item === "string" ? base + item : { ...item, key: base + item.key }
);
const results = await storage.getItems(prefixedItems, commonOptions);
return results.map((entry) => ({
key: entry.key.slice(base.length),
value: entry.value
}));
};
nsStorage.setItems = async (items, commonOptions) => {
const prefixedItems = items.map((item) => ({
key: base + item.key,
value: item.value,
options: item.options
}));
return storage.setItems(prefixedItems, commonOptions);
};
return nsStorage;
}
function normalizeKey$1(key) {
if (!key) {
return "";
}
return key.split("?")[0]?.replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "") || "";
}
function joinKeys(...keys) {
return normalizeKey$1(keys.join(":"));
}
function normalizeBaseKey(base) {
base = normalizeKey$1(base);
return base ? base + ":" : "";
}
function filterKeyByDepth(key, depth) {
if (depth === void 0) {
return true;
}
let substrCount = 0;
let index = key.indexOf(":");
while (index > -1) {
substrCount++;
index = key.indexOf(":", index + 1);
}
return substrCount <= depth;
}
function filterKeyByBase(key, base) {
if (base) {
return key.startsWith(base) && key[key.length - 1] !== "$";
}
return key[key.length - 1] !== "$";
}
function defineDriver$1(factory) {
return factory;
}
const DRIVER_NAME$1 = "memory";
const memory = defineDriver$1(() => {
const data = /* @__PURE__ */ new Map();
return {
name: DRIVER_NAME$1,
getInstance: () => data,
hasItem(key) {
return data.has(key);
},
getItem(key) {
return data.get(key) ?? null;
},
getItemRaw(key) {
return data.get(key) ?? null;
},
setItem(key, value) {
data.set(key, value);
},
setItemRaw(key, value) {
data.set(key, value);
},
removeItem(key) {
data.delete(key);
},
getKeys() {
return [...data.keys()];
},
clear() {
data.clear();
},
dispose() {
data.clear();
}
};
});
function createStorage(options = {}) {
const context = {
mounts: { "": options.driver || memory() },
mountpoints: [""],
watching: false,
watchListeners: [],
unwatch: {}
};
const getMount = (key) => {
for (const base of context.mountpoints) {
if (key.startsWith(base)) {
return {
base,
relativeKey: key.slice(base.length),
driver: context.mounts[base]
};
}
}
return {
base: "",
relativeKey: key,
driver: context.mounts[""]
};
};
const getMounts = (base, includeParent) => {
return context.mountpoints.filter(
(mountpoint) => mountpoint.startsWith(base) || includeParent && base.startsWith(mountpoint)
).map((mountpoint) => ({
relativeBase: base.length > mountpoint.length ? base.slice(mountpoint.length) : void 0,
mountpoint,
driver: context.mounts[mountpoint]
}));
};
const onChange = (event, key) => {
if (!context.watching) {
return;
}
key = normalizeKey$1(key);
for (const listener of context.watchListeners) {
listener(event, key);
}
};
const startWatch = async () => {
if (context.watching) {
return;
}
context.watching = true;
for (const mountpoint in context.mounts) {
context.unwatch[mountpoint] = await watch(
context.mounts[mountpoint],
onChange,
mountpoint
);
}
};
const stopWatch = async () => {
if (!context.watching) {
return;
}
for (const mountpoint in context.unwatch) {
await context.unwatch[mountpoint]();
}
context.unwatch = {};
context.watching = false;
};
const runBatch = (items, commonOptions, cb) => {
const batches = /* @__PURE__ */ new Map();
const getBatch = (mount) => {
let batch = batches.get(mount.base);
if (!batch) {
batch = {
driver: mount.driver,
base: mount.base,
items: []
};
batches.set(mount.base, batch);
}
return batch;
};
for (const item of items) {
const isStringItem = typeof item === "string";
const key = normalizeKey$1(isStringItem ? item : item.key);
const value = isStringItem ? void 0 : item.value;
const options2 = isStringItem || !item.options ? commonOptions : { ...commonOptions, ...item.options };
const mount = getMount(key);
getBatch(mount).items.push({
key,
value,
relativeKey: mount.relativeKey,
options: options2
});
}
return Promise.all([...batches.values()].map((batch) => cb(batch))).then(
(r) => r.flat()
);
};
const storage = {
// Item
hasItem(key, opts = {}) {
key = normalizeKey$1(key);
const { relativeKey, driver } = getMount(key);
return asyncCall(driver.hasItem, relativeKey, opts);
},
getItem(key, opts = {}) {
key = normalizeKey$1(key);
const { relativeKey, driver } = getMount(key);
return asyncCall(driver.getItem, relativeKey, opts).then(
(value) => destr(value)
);
},
getItems(items, commonOptions = {}) {
return runBatch(items, commonOptions, (batch) => {
if (batch.driver.getItems) {
return asyncCall(
batch.driver.getItems,
batch.items.map((item) => ({
key: item.relativeKey,
options: item.options
})),
commonOptions
).then(
(r) => r.map((item) => ({
key: joinKeys(batch.base, item.key),
value: destr(item.value)
}))
);
}
return Promise.all(
batch.items.map((item) => {
return asyncCall(
batch.driver.getItem,
item.relativeKey,
item.options
).then((value) => ({
key: item.key,
value: destr(value)
}));
})
);
});
},
getItemRaw(key, opts = {}) {
key = normalizeKey$1(key);
const { relativeKey, driver } = getMount(key);
if (driver.getItemRaw) {
return asyncCall(driver.getItemRaw, relativeKey, opts);
}
return asyncCall(driver.getItem, relativeKey, opts).then(
(value) => deserializeRaw(value)
);
},
async setItem(key, value, opts = {}) {
if (value === void 0) {
return storage.removeItem(key);
}
key = normalizeKey$1(key);
const { relativeKey, driver } = getMount(key);
if (!driver.setItem) {
return;
}
await asyncCall(driver.setItem, relativeKey, stringify(value), opts);
if (!driver.watch) {
onChange("update", key);
}
},
async setItems(items, commonOptions) {
await runBatch(items, commonOptions, async (batch) => {
if (batch.driver.setItems) {
return asyncCall(
batch.driver.setItems,
batch.items.map((item) => ({
key: item.relativeKey,
value: stringify(item.value),
options: item.options
})),
commonOptions
);
}
if (!batch.driver.setItem) {
return;
}
await Promise.all(
batch.items.map((item) => {
return asyncCall(
batch.driver.setItem,
item.relativeKey,
stringify(item.value),
item.options
);
})
);
});
},
async setItemRaw(key, value, opts = {}) {
if (value === void 0) {
return storage.removeItem(key, opts);
}
key = normalizeKey$1(key);
const { relativeKey, driver } = getMount(key);
if (driver.setItemRaw) {
await asyncCall(driver.setItemRaw, relativeKey, value, opts);
} else if (driver.setItem) {
await asyncCall(driver.setItem, relativeKey, serializeRaw(value), opts);
} else {
return;
}
if (!driver.watch) {
onChange("update", key);
}
},
async removeItem(key, opts = {}) {
if (typeof opts === "boolean") {
opts = { removeMeta: opts };
}
key = normalizeKey$1(key);
const { relativeKey, driver } = getMount(key);
if (!driver.removeItem) {
return;
}
await asyncCall(driver.removeItem, relativeKey, opts);
if (opts.removeMeta || opts.removeMata) {
await asyncCall(driver.removeItem, relativeKey + "$", opts);
}
if (!driver.watch) {
onChange("remove", key);
}
},
// Meta
async getMeta(key, opts = {}) {
if (typeof opts === "boolean") {
opts = { nativeOnly: opts };
}
key = normalizeKey$1(key);
const { relativeKey, driver } = getMount(key);
const meta = /* @__PURE__ */ Object.create(null);
if (driver.getMeta) {
Object.assign(meta, await asyncCall(driver.getMeta, relativeKey, opts));
}
if (!opts.nativeOnly) {
const value = await asyncCall(
driver.getItem,
relativeKey + "$",
opts
).then((value_) => destr(value_));
if (value && typeof value === "object") {
if (typeof value.atime === "string") {
value.atime = new Date(value.atime);
}
if (typeof value.mtime === "string") {
value.mtime = new Date(value.mtime);
}
Object.assign(meta, value);
}
}
return meta;
},
setMeta(key, value, opts = {}) {
return this.setItem(key + "$", value, opts);
},
removeMeta(key, opts = {}) {
return this.removeItem(key + "$", opts);
},
// Keys
async getKeys(base, opts = {}) {
base = normalizeBaseKey(base);
const mounts = getMounts(base, true);
let maskedMounts = [];
const allKeys = [];
let allMountsSupportMaxDepth = true;
for (const mount of mounts) {
if (!mount.driver.flags?.maxDepth) {
allMountsSupportMaxDepth = false;
}
const rawKeys = await asyncCall(
mount.driver.getKeys,
mount.relativeBase,
opts
);
for (const key of rawKeys) {
const fullKey = mount.mountpoint + normalizeKey$1(key);
if (!maskedMounts.some((p) => fullKey.startsWith(p))) {
allKeys.push(fullKey);
}
}
maskedMounts = [
mount.mountpoint,
...maskedMounts.filter((p) => !p.startsWith(mount.mountpoint))
];
}
const shouldFilterByDepth = opts.maxDepth !== void 0 && !allMountsSupportMaxDepth;
return allKeys.filter(
(key) => (!shouldFilterByDepth || filterKeyByDepth(key, opts.maxDepth)) && filterKeyByBase(key, base)
);
},
// Utils
async clear(base, opts = {}) {
base = normalizeBaseKey(base);
await Promise.all(
getMounts(base, false).map(async (m) => {
if (m.driver.clear) {
return asyncCall(m.driver.clear, m.relativeBase, opts);
}
if (m.driver.removeItem) {
const keys = await m.driver.getKeys(m.relativeBase || "", opts);
return Promise.all(
keys.map((key) => m.driver.removeItem(key, opts))
);
}
})
);
},
async dispose() {
await Promise.all(
Object.values(context.mounts).map((driver) => dispose(driver))
);
},
async watch(callback) {
await startWatch();
context.watchListeners.push(callback);
return async () => {
context.watchListeners = context.watchListeners.filter(
(listener) => listener !== callback
);
if (context.watchListeners.length === 0) {
await stopWatch();
}
};
},
async unwatch() {
context.watchListeners = [];
await stopWatch();
},
// Mount
mount(base, driver) {
base = normalizeBaseKey(base);
if (base && context.mounts[base]) {
throw new Error(`already mounted at ${base}`);
}
if (base) {
context.mountpoints.push(base);
context.mountpoints.sort((a, b) => b.length - a.length);
}
context.mounts[base] = driver;
if (context.watching) {
Promise.resolve(watch(driver, onChange, base)).then((unwatcher) => {
context.unwatch[base] = unwatcher;
}).catch(console.error);
}
return storage;
},
async unmount(base, _dispose = true) {
base = normalizeBaseKey(base);
if (!base || !context.mounts[base]) {
return;
}
if (context.watching && base in context.unwatch) {
context.unwatch[base]?.();
delete context.unwatch[base];
}
if (_dispose) {
await dispose(context.mounts[base]);
}
context.mountpoints = context.mountpoints.filter((key) => key !== base);
delete context.mounts[base];
},
getMount(key = "") {
key = normalizeKey$1(key) + ":";
const m = getMount(key);
return {
driver: m.driver,
base: m.base
};
},
getMounts(base = "", opts = {}) {
base = normalizeKey$1(base);
const mounts = getMounts(base, opts.parents);
return mounts.map((m) => ({
driver: m.driver,
base: m.mountpoint
}));
},
// Aliases
keys: (base, opts = {}) => storage.getKeys(base, opts),
get: (key, opts = {}) => storage.getItem(key, opts),
set: (key, value, opts = {}) => storage.setItem(key, value, opts),
has: (key, opts = {}) => storage.hasItem(key, opts),
del: (key, opts = {}) => storage.removeItem(key, opts),
remove: (key, opts = {}) => storage.removeItem(key, opts)
};
return storage;
}
function watch(driver, onChange, base) {
return driver.watch ? driver.watch((event, key) => onChange(event, base + key)) : () => {
};
}
async function dispose(driver) {
if (typeof driver.dispose === "function") {
await asyncCall(driver.dispose);
}
}
const _assets = {
};
const normalizeKey = function normalizeKey(key) {
if (!key) {
return "";
}
return key.split("?")[0]?.replace(/[/\\]/g, ":").replace(/:+/g, ":").replace(/^:|:$/g, "") || "";
};
const assets$1 = {
getKeys() {
return Promise.resolve(Object.keys(_assets))
},
hasItem (id) {
id = normalizeKey(id);
return Promise.resolve(id in _assets)
},
getItem (id) {
id = normalizeKey(id);
return Promise.resolve(_assets[id] ? _assets[id].import() : null)
},
getMeta (id) {
id = normalizeKey(id);
return Promise.resolve(_assets[id] ? _assets[id].meta : {})
}
};
function defineDriver(factory) {
return factory;
}
function createError(driver, message, opts) {
const err = new Error(`[unstorage] [${driver}] ${message}`, opts);
if (Error.captureStackTrace) {
Error.captureStackTrace(err, createError);
}
return err;
}
function createRequiredError(driver, name) {
if (Array.isArray(name)) {
return createError(
driver,
`Missing some of the required options ${name.map((n) => "`" + n + "`").join(", ")}`
);
}
return createError(driver, `Missing required option \`${name}\`.`);
}
function ignoreNotfound(err) {
return err.code === "ENOENT" || err.code === "EISDIR" ? null : err;
}
function ignoreExists(err) {
return err.code === "EEXIST" ? null : err;
}
async function writeFile(path, data, encoding) {
await ensuredir(dirname$1(path));
return promises.writeFile(path, data, encoding);
}
function readFile(path, encoding) {
return promises.readFile(path, encoding).catch(ignoreNotfound);
}
function unlink(path) {
return promises.unlink(path).catch(ignoreNotfound);
}
function readdir(dir) {
return promises.readdir(dir, { withFileTypes: true }).catch(ignoreNotfound).then((r) => r || []);
}
async function ensuredir(dir) {
if (existsSync(dir)) {
return;
}
await ensuredir(dirname$1(dir)).catch(ignoreExists);
await promises.mkdir(dir).catch(ignoreExists);
}
async function readdirRecursive(dir, ignore, maxDepth) {
if (ignore && ignore(dir)) {
return [];
}
const entries = await readdir(dir);
const files = [];
await Promise.all(
entries.map(async (entry) => {
const entryPath = resolve$2(dir, entry.name);
if (entry.isDirectory()) {
if (maxDepth === void 0 || maxDepth > 0) {
const dirFiles = await readdirRecursive(
entryPath,
ignore,
maxDepth === void 0 ? void 0 : maxDepth - 1
);
files.push(...dirFiles.map((f) => entry.name + "/" + f));
}
} else {
if (!(ignore && ignore(entry.name))) {
files.push(entry.name);
}
}
})
);
return files;
}
async function rmRecursive(dir) {
const entries = await readdir(dir);
await Promise.all(
entries.map((entry) => {
const entryPath = resolve$2(dir, entry.name);
if (entry.isDirectory()) {
return rmRecursive(entryPath).then(() => promises.rmdir(entryPath));
} else {
return promises.unlink(entryPath);
}
})
);
}
const PATH_TRAVERSE_RE = /\.\.:|\.\.$/;
const DRIVER_NAME = "fs-lite";
const unstorage_47drivers_47fs_45lite = defineDriver((opts = {}) => {
if (!opts.base) {
throw createRequiredError(DRIVER_NAME, "base");
}
opts.base = resolve$2(opts.base);
const r = (key) => {
if (PATH_TRAVERSE_RE.test(key)) {
throw createError(
DRIVER_NAME,
`Invalid key: ${JSON.stringify(key)}. It should not contain .. segments`
);
}
const resolved = join(opts.base, key.replace(/:/g, "/"));
return resolved;
};
return {
name: DRIVER_NAME,
options: opts,
flags: {
maxDepth: true
},
hasItem(key) {
return existsSync(r(key));
},
getItem(key) {
return readFile(r(key), "utf8");
},
getItemRaw(key) {
return readFile(r(key));
},
async getMeta(key) {
const { atime, mtime, size, birthtime, ctime } = await promises.stat(r(key)).catch(() => ({}));
return { atime, mtime, size, birthtime, ctime };
},
setItem(key, value) {
if (opts.readOnly) {
return;
}
return writeFile(r(key), value, "utf8");
},
setItemRaw(key, value) {
if (opts.readOnly) {
return;
}
return writeFile(r(key), value);
},
removeItem(key) {
if (opts.readOnly) {
return;
}
return unlink(r(key));
},
getKeys(_base, topts) {
return readdirRecursive(r("."), opts.ignore, topts?.maxDepth);
},
async clear() {
if (opts.readOnly || opts.noClear) {
return;
}
await rmRecursive(r("."));
}
};
});
const storage = createStorage({});
storage.mount('/assets', assets$1);
storage.mount('data', unstorage_47drivers_47fs_45lite({"driver":"fsLite","base":"./.data/kv"}));
function useStorage(base = "") {
return base ? prefixStorage(storage, base) : storage;
}
const e=globalThis.process?.getBuiltinModule?.("crypto")?.hash,r$1="sha256",s="base64url";function digest(t){if(e)return e(r$1,t,s);const o=createHash(r$1).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}
const Hasher = /* @__PURE__ */ (() => {
class Hasher2 {
buff = "";
#context = /* @__PURE__ */ new Map();
write(str) {
this.buff += str;
}
dispatch(value) {
const type = value === null ? "null" : typeof value;
return this[type](value);
}
object(object) {
if (object && typeof object.toJSON === "function") {
return this.object(object.toJSON());
}
const objString = Object.prototype.toString.call(object);
let objType = "";
const objectLength = objString.length;
objType = objectLength < 10 ? "unknown:[" + objString + "]" : objString.slice(8, objectLength - 1);
objType = objType.toLowerCase();
let objectNumber = null;
if ((objectNumber = this.#context.get(object)) === void 0) {
this.#context.set(object, this.#context.size);
} else {
return this.dispatch("[CIRCULAR:" + objectNumber + "]");
}
if (typeof Buffer !== "undefined" && Buffer.isBuffer && Buffer.isBuffer(object)) {
this.write("buffer:");
return this.write(object.toString("utf8"));
}
if (objType !== "object" && objType !== "function" && objType !== "asyncfunction") {
if (this[objType]) {
this[objType](object);
} else {
this.unknown(object, objType);
}
} else {
const keys = Object.keys(object).sort();
const extraKeys = [];
this.write("object:" + (keys.length + extraKeys.length) + ":");
const dispatchForKey = (key) => {
this.dispatch(key);
this.write(":");
this.dispatch(object[key]);
this.write(",");
};
for (const key of keys) {
dispatchForKey(key);
}
for (const key of extraKeys) {
dispatchForKey(key);
}
}
}
array(arr, unordered) {
unordered = unordered === void 0 ? false : unordered;
this.write("array:" + arr.length + ":");
if (!unordered || arr.length <= 1) {
for (const entry of arr) {
this.dispatch(entry);
}
return;
}
const contextAdditions = /* @__PURE__ */ new Map();
const entries = arr.map((entry) => {
const hasher = new Hasher2();
hasher.dispatch(entry);
for (const [key, value] of hasher.#context) {
contextAdditions.set(key, value);
}
return hasher.toString();
});
this.#context = contextAdditions;
entries.sort();
return this.array(entries, false);
}
date(date) {
return this.write("date:" + date.toJSON());
}
symbol(sym) {
return this.write("symbol:" + sym.toString());
}
unknown(value, type) {
this.write(type);
if (!value) {
return;
}
this.write(":");
if (value && typeof value.entries === "function") {
return this.array(
[...value.entries()],
true
/* ordered */
);
}
}
error(err) {
return this.write("error:" + err.toString());
}
boolean(bool) {
return this.write("bool:" + bool);
}
string(string) {
this.write("string:" + string.length + ":");
this.write(string);
}
function(fn) {
this.write("fn:");
if (isNativeFunction(fn)) {
this.dispatch("[native]");
} else {
this.dispatch(fn.toString());
}
}
number(number) {
return this.write("number:" + number);
}
null() {
return this.write("Null");
}
undefined() {
return this.write("Undefined");
}
regexp(regex) {
return this.write("regex:" + regex.toString());
}
arraybuffer(arr) {
this.write("arraybuffer:");
return this.dispatch(new Uint8Array(arr));
}
url(url) {
return this.write("url:" + url.toString());
}
map(map) {
this.write("map:");
const arr = [...map];
return this.array(arr, false);
}
set(set) {
this.write("set:");
const arr = [...set];
return this.array(arr, false);
}
bigint(number) {
return this.write("bigint:" + number.toString());
}
}
for (const type of [
"uint8array",
"uint8clampedarray",
"unt8array",
"uint16array",
"unt16array",
"uint32array",
"unt32array",
"float32array",
"float64array"
]) {
Hasher2.prototype[type] = function(arr) {
this.write(type + ":");
return this.array([...arr], false);
};
}
function isNativeFunction(f) {
if (typeof f !== "function") {
return false;
}
return Function.prototype.toString.call(f).slice(
-15
/* "[native code] }".length */
) === "[native code] }";
}
return Hasher2;
})();
function serialize(object) {
const hasher = new Hasher();
hasher.dispatch(object);
return hasher.buff;
}
function hash(value) {
return digest(typeof value === "string" ? value : serialize(value)).replace(/[-_]/g, "").slice(0, 10);
}
function defaultCacheOptions() {
return {
name: "_",
base: "/cache",
swr: true,
maxAge: 1
};
}
function defineCachedFunction(fn, opts = {}) {
opts = { ...defaultCacheOptions(), ...opts };
const pending = {};
const group = opts.group || "nitro/functions";
const name = opts.name || fn.name || "_";
const integrity = opts.integrity || hash([fn, opts]);
const validate = opts.validate || ((entry) => entry.value !== void 0);
async function get(key, resolver, shouldInvalidateCache, event) {
const cacheKey = [opts.base, group, name, key + ".json"].filter(Boolean).join(":").replace(/:\/$/, ":index");
let entry = await useStorage().getItem(cacheKey).catch((error) => {
console.error(`[cache] Cache read error.`, error);
useNitroApp().captureError(error, { event, tags: ["cache"] });
}) || {};
if (typeof entry !== "object") {
entry = {};
const error = new Error("Malformed data read from cache.");
console.error("[cache]", error);
useNitroApp().captureError(error, { event, tags: ["cache"] });
}
const ttl = (opts.maxAge ?? 0) * 1e3;
if (ttl) {
entry.expires = Date.now() + ttl;
}
const expired = shouldInvalidateCache || entry.integrity !== integrity || ttl && Date.now() - (entry.mtime || 0) > ttl || validate(entry) === false;
const _resolve = async () => {
const isPending = pending[key];
if (!isPending) {
if (entry.value !== void 0 && (opts.staleMaxAge || 0) >= 0 && opts.swr === false) {
entry.value = void 0;
entry.integrity = void 0;
entry.mtime = void 0;
entry.expires = void 0;
}
pending[key] = Promise.resolve(resolver());
}
try {
entry.value = await pending[key];
} catch (error) {
if (!isPending) {
delete pending[key];
}
throw error;
}
if (!isPending) {
entry.mtime = Date.now();
entry.integrity = integrity;
delete pending[key];
if (validate(entry) !== false) {
let setOpts;
if (opts.maxAge && !opts.swr) {
setOpts = { ttl: opts.maxAge };
}
const promise = useStorage().setItem(cacheKey, entry, setOpts).catch((error) => {
console.error(`[cache] Cache write error.`, error);
useNitroApp().captureError(error, { event, tags: ["cache"] });
});
if (event?.waitUntil) {
event.waitUntil(promise);
}
}
}
};
const _resolvePromise = expired ? _resolve() : Promise.resolve();
if (entry.value === void 0) {
await _resolvePromise;
} else if (expired && event && event.waitUntil) {
event.waitUntil(_resolvePromise);
}
if (opts.swr && validate(entry) !== false) {
_resolvePromise.catch((error) => {
console.error(`[cache] SWR handler error.`, error);
useNitroApp().captureError(error, { event, tags: ["cache"] });
});
return entry;
}
return _resolvePromise.then(() => entry);
}
return async (...args) => {
const shouldBypassCache = await opts.shouldBypassCache?.(...args);
if (shouldBypassCache) {
return fn(...args);
}
const key = await (opts.getKey || getKey)(...args);
const shouldInvalidateCache = await opts.shouldInvalidateCache?.(...args);
const entry = await get(
key,
() => fn(...args),
shouldInvalidateCache,
args[0] && isEvent(args[0]) ? args[0] : void 0
);
let value = entry.value;
if (opts.transform) {
value = await opts.transform(entry, ...args) || value;
}
return value;
};
}
function cachedFunction(fn, opts = {}) {
return defineCachedFunction(fn, opts);
}
function getKey(...args) {
return args.length > 0 ? hash(args) : "";
}
function escapeKey(key) {
return String(key).replace(/\W/g, "");
}
function defineCachedEventHandler(handler, opts = defaultCacheOptions()) {
const variableHeaderNames = (opts.varies || []).filter(Boolean).map((h) => h.toLowerCase()).sort();
const _opts = {
...opts,
getKey: async (event) => {
const customKey = await opts.getKey?.(event);
if (customKey) {
return escapeKey(customKey);
}
const _path = event.node.req.originalUrl || event.node.req.url || event.path;
let _pathname;
try {
_pathname = escapeKey(decodeURI(parseURL(_path).pathname)).slice(0, 16) || "index";
} catch {
_pathname = "-";
}
const _hashedPath = `${_pathname}.${hash(_path)}`;
const _headers = variableHeaderNames.map((header) => [header, event.node.req.headers[header]]).map(([name, value]) => `${escapeKey(name)}.${hash(value)}`);
return [_hashedPath, ..._headers].join(":");
},
validate: (entry) => {
if (!entry.value) {
return false;
}
if (entry.value.code >= 400) {
return false;
}
if (entry.value.body === void 0) {
return false;
}
if (entry.value.headers.etag === "undefined" || entry.value.headers["last-modified"] === "undefined") {
return false;
}
return true;
},
group: opts.group || "nitro/handlers",
integrity: opts.integrity || hash([handler, opts])
};
const _cachedHandler = cachedFunction(
async (incomingEvent) => {
const variableHeaders = {};
for (const header of variableHeaderNames) {
const value = incomingEvent.node.req.headers[header];
if (value !== void 0) {
variableHeaders[header] = value;
}
}
const reqProxy = cloneWithProxy(incomingEvent.node.req, {
headers: variableHeaders
});
const resHeaders = {};
let _resSendBody;
const resProxy = cloneWithProxy(incomingEvent.node.res, {
statusCode: 200,
writableEnded: false,
writableFinished: false,
headersSent: false,
closed: false,
getHeader(name) {
return resHeaders[name];
},
setHeader(name, value) {
resHeaders[name] = value;
return this;
},
getHeaderNames() {
return Object.keys(resHeaders);
},
hasHeader(name) {
return name in resHeaders;
},
removeHeader(name) {
delete resHeaders[name];
},
getHeaders() {
return resHeaders;
},
end(chunk, arg2, arg3) {
if (typeof chunk === "string") {
_resSendBody = chunk;
}
if (typeof arg2 === "function") {
arg2();
}
if (typeof arg3 === "function") {
arg3();
}
return this;
},
write(chunk, arg2, arg3) {
if (typeof chunk === "string") {
_resSendBody = chunk;
}
if (typeof arg2 === "function") {
arg2(void 0);
}
if (typeof arg3 === "function") {
arg3();
}
return true;
},
writeHead(statusCode, headers2) {
this.statusCode = statusCode;
if (headers2) {
if (Array.isArray(headers2) || typeof headers2 === "string") {
throw new TypeError("Raw headers is not supported.");
}
for (const header in headers2) {
const value = headers2[header];
if (value !== void 0) {
this.setHeader(
header,
value
);
}
}
}
return this;
}
});
const event = createEvent(reqProxy, resProxy);
event.fetch = (url, fetchOptions) => fetchWithEvent(event, url, fetchOptions, {
fetch: useNitroApp().localFetch
});
event.$fetch = (url, fetchOptions) => fetchWithEvent(event, url, fetchOptions, {
fetch: globalThis.$fetch
});
event.waitUntil = incomingEvent.waitUntil;
event.context = incomingEvent.context;
event.context.cache = {
options: _opts
};
const body = await handler(event) || _resSendBody;
const headers = event.node.res.getHeaders();
headers.etag = String(
headers.Etag || headers.etag || `W/"${hash(body)}"`
);
headers["last-modified"] = String(
headers["Last-Modified"] || headers["last-modified"] || (/* @__PURE__ */ new Date()).toUTCString()
);
const cacheControl = [];
if (opts.swr) {
if (opts.maxAge) {
cacheControl.push(`s-maxage=${opts.maxAge}`);
}
if (opts.staleMaxAge) {
cacheControl.push(`stale-while-revalidate=${opts.staleMaxAge}`);
} else {
cacheControl.push("stale-while-revalidate");
}
} else if (opts.maxAge) {
cacheControl.push(`max-age=${opts.maxAge}`);
}
if (cacheControl.length > 0) {
headers["cache-control"] = cacheControl.join(", ");
}
const cacheEntry = {
code: event.node.res.statusCode,
headers,
body
};
return cacheEntry;
},
_opts
);
return defineEventHandler(async (event) => {
if (opts.headersOnly) {
if (handleCacheHeaders(event, { maxAge: opts.maxAge })) {
return;
}
return handler(event);
}
const response = await _cachedHandler(
event
);
if (event.node.res.headersSent || event.node.res.writableEnded) {
return response.body;
}
if (handleCacheHeaders(event, {
modifiedTime: new Date(response.headers["last-modified"]),
etag: response.headers.etag,
maxAge: opts.maxAge
})) {
return;
}
event.node.res.statusCode = response.code;
for (const name in response.headers) {
const value = response.headers[name];
if (name === "set-cookie") {
event.node.res.appendHeader(
name,
splitCookiesString(value)
);
} else {
if (value !== void 0) {
event.node.res.setHeader(name, value);
}
}
}
return response.body;
});
}
function cloneWithProxy(obj, overrides) {
return new Proxy(obj, {
get(target, property, receiver) {
if (property in overrides) {
return overrides[property];
}
return Reflect.get(target, property, receiver);
},
set(target, property, value, receiver) {
if (property in overrides) {
overrides[property] = value;
return true;
}
return Reflect.set(target, property, value, receiver);
}
});
}
const cachedEventHandler = defineCachedEventHandler;
function klona(x) {
if (typeof x !== 'object') return x;
var k, tmp, str=Object.prototype.toString.call(x);
if (str === '[object Object]') {
if (x.constructor !== Object && typeof x.constructor === 'function') {
tmp = new x.constructor();
for (k in x) {
if (x.hasOwnProperty(k) && tmp[k] !== x[k]) {
tmp[k] = klona(x[k]);
}
}
} else {
tmp = {}; // null
for (k in x) {
if (k === '__proto__') {
Object.defineProperty(tmp, k, {
value: klona(x[k]),
configurable: true,
enumerable: true,
writable: true,
});
} else {
tmp[k] = klona(x[k]);
}
}
}
return tmp;
}
if (str === '[object Array]') {
k = x.length;
for (tmp=Array(k); k--;) {
tmp[k] = klona(x[k]);
}
return tmp;
}
if (str === '[object Set]') {
tmp = new Set;
x.forEach(function (val) {
tmp.add(klona(val));
});
return tmp;
}
if (str === '[object Map]') {
tmp = new Map;
x.forEach(function (val, key) {
tmp.set(klona(key), klona(val));
});
return tmp;
}
if (str === '[object Date]') {
return new Date(+x);
}
if (str === '[object RegExp]') {
tmp = new RegExp(x.source, x.flags);
tmp.lastIndex = x.lastIndex;
return tmp;
}
if (str === '[object DataView]') {
return new x.constructor( klona(x.buffer) );
}
if (str === '[object ArrayBuffer]') {
return x.slice(0);
}
// ArrayBuffer.isView(x)
// ~> `new` bcuz `Buffer.slice` => ref
if (str.slice(-6) === 'Array]') {
return new x.constructor(x);
}
return x;
}
const inlineAppConfig = {
"nuxt": {}
};
const appConfig = defuFn(inlineAppConfig);
const NUMBER_CHAR_RE = /\d/;
const STR_SPLITTERS = ["-", "_", "/", "."];
function isUppercase(char = "") {
if (NUMBER_CHAR_RE.test(char)) {
return void 0;
}
return char !== char.toLowerCase();
}
function splitByCase(str, separators) {
const splitters = STR_SPLITTERS;
const parts = [];
if (!str || typeof str !== "string") {
return parts;
}
let buff = "";
let previousUpper;
let previousSplitter;
for (const char of str) {
const isSplitter = splitters.includes(char);
if (isSplitter === true) {
parts.push(buff);
buff = "";
previousUpper = void 0;
continue;
}
const isUpper = isUppercase(char);
if (previousSplitter === false) {
if (previousUpper === false && isUpper === true) {
parts.push(buff);
buff = char;
previousUpper = isUpper;
continue;
}
if (previousUpper === true && isUpper === false && buff.length > 1) {
const lastChar = buff.at(-1);
parts.push(buff.slice(0, Math.max(0, buff.length - 1)));
buff = lastChar + char;
previousUpper = isUpper;
continue;
}
}
buff += char;
previousUpper = isUpper;
previousSplitter = isSplitter;
}
parts.push(buff);
return parts;
}
function kebabCase(str, joiner) {
return str ? (Array.isArray(str) ? str : splitByCase(str)).map((p) => p.toLowerCase()).join(joiner) : "";
}
function snakeCase(str) {
return kebabCase(str || "", "_");
}
function getEnv(key, opts) {
const envKey = snakeCase(key).toUpperCase();
return destr(
process.env[opts.prefix + envKey] ?? process.env[opts.altPrefix + envKey]
);
}
function _isObject(input) {
return typeof input === "object" && !Array.isArray(input);
}
function applyEnv(obj, opts, parentKey = "") {
for (const key in obj) {
const subKey = parentKey ? `${parentKey}_${key}` : key;
const envValue = getEnv(subKey, opts);
if (_isObject(obj[key])) {
if (_isObject(envValue)) {
obj[key] = { ...obj[key], ...envValue };
applyEnv(obj[key], opts, subKey);
} else if (envValue === void 0) {
applyEnv(obj[key], opts, subKey);
} else {
obj[key] = envValue ?? obj[key];
}
} else {
obj[key] = envValue ?? obj[key];
}
if (opts.envExpansion && typeof obj[key] === "string") {
obj[key] = _expandFromEnv(obj[key]);
}
}
return obj;
}
const envExpandRx = /\{\{([^{}]*)\}\}/g;
function _expandFromEnv(value) {
return value.replace(envExpandRx, (match, key) => {
return process.env[key] || match;
});
}
const _inlineRuntimeConfig = {
"app": {
"baseURL": "/",
"buildId": "c3f1d58c-3979-4cd4-ae67-1263f2d6c2f0",
"buildAssetsDir": "/_nuxt/",
"cdnURL": ""
},
"nitro": {
"envPrefix": "NUXT_",
"routeRules": {
"/__nuxt_error": {
"cache": false
},
"/add/**": {
"ssr": false,
"robots": false
},
"/auth/**": {
"ssr": false,
"robots": false
},
"/fav/**": {
"ssr": false,
"robots": false
},
"/message/**": {
"ssr": false,
"robots": false
},
"/cart/**": {
"ssr": false,
"robots": false
},
"/edit/**": {
"ssr": false,
"robots": false
},
"/user/edit/**": {
"ssr": false,
"robots": false
},
"/user/order/**": {
"ssr": false,
"robots": false
},
"/user/statistics_list/**": {
"ssr": false,
"robots": false
},
"/user/add/**": {
"ssr": false,
"robots": false
},
"/user/address": {
"ssr": false,
"robots": false
},
"/user/attributes": {
"ssr": false,
"robots": false
},
"/user/brands": {
"ssr": false,
"robots": false
},
"/user/categories": {
"ssr": false,
"robots": false
},
"/user/managers": {
"ssr": false,
"robots": false
},
"/user/profile": {
"ssr": false,
"robots": false
},
"/user/setting": {
"ssr": false,
"robots": false
},
"/user/store_request": {
"ssr": false,
"robots": false
},
"/__sitemap__/style.xsl": {
"headers": {
"Content-Type": "application/xslt+xml"
}
},
"/sitemap.xml": {},
"/_nuxt/builds/meta/**": {
"headers": {
"cache-control": "public, max-age=31536000, immutable"
}
},
"/_nuxt/builds/**": {
"headers": {
"cache-control": "public, max-age=1, immutable"
}
},
"/_nuxt/**": {
"headers": {
"cache-control": "public, max-age=31536000, immutable"
}
}
}
},
"public": {
"subscriptionUrl": "https://node.newinsta.ir/config/get-subscription"
},
"sitemap": {
"isI18nMapped": false,
"sitemapName": "sitemap.xml",
"isMultiSitemap": false,
"excludeAppSources": [],
"cacheMaxAgeSeconds": 600,
"autoLastmod": true,
"defaultSitemapsChunkSize": 1000,
"minify": false,
"sortEntries": true,
"debug": false,
"discoverImages": true,
"discoverVideos": true,
"sitemapsPathPrefix": "/__sitemap__/",
"isNuxtContentDocumentDriven": false,
"xsl": "/__sitemap__/style.xsl",
"xslTips": true,
"xslColumns": [
{
"label": "URL",
"width": "50%"
},
{
"label": "Images",
"width": "25%",
"select": "count(image:image)"
},
{
"label": "Last Updated",
"width": "25%",
"select": "concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)),concat(' ', substring(sitemap:lastmod,20,6)))"
}
],
"credits": true,
"version": "7.6.0",
"sitemaps": {
"sitemap.xml": {
"sitemapName": "sitemap.xml",
"route": "sitemap.xml",
"defaults": {
"changefreq": "daily",
"priority": 0.8,
"lastmod": "2026-02-01T18:19:31Z"
},
"include": [],
"exclude": [
"/highlight/**",
"/cart/**",
"/fav/**",
"/message/**",
"/auth/**",
"/add/**",
"/edit/**",
"/user/**",
"/_**",
"/_nuxt/**"
],
"includeAppSources": true
}
}
},
"nuxt-site-config": {
"stack": [
{
"_context": "system",
"_priority": -15,
"name": "montify",
"env": "production"
},
{
"_context": "package.json",
"_priority": -10,
"name": "nuxt-app"
}
],
"version": "3.2.19",
"debug": false,
"multiTenancy": []
},
"ipx": {
"baseURL": "/_ipx",
"alias": {},
"fs": {
"dir": "../public"
},
"http": {
"domains": []
}
}
};
const envOptions = {
prefix: "NITRO_",
altPrefix: _inlineRuntimeConfig.nitro.envPrefix ?? process.env.NITRO_ENV_PREFIX ?? "_",
envExpansion: _inlineRuntimeConfig.nitro.envExpansion ?? process.env.NITRO_ENV_EXPANSION ?? false
};
const _sharedRuntimeConfig = _deepFreeze(
applyEnv(klona(_inlineRuntimeConfig), envOptions)
);
function useRuntimeConfig(event) {
if (!event) {
return _sharedRuntimeConfig;
}
if (event.context.nitro.runtimeConfig) {
return event.context.nitro.runtimeConfig;
}
const runtimeConfig = klona(_inlineRuntimeConfig);
applyEnv(runtimeConfig, envOptions);
event.context.nitro.runtimeConfig = runtimeConfig;
return runtimeConfig;
}
_deepFreeze(klona(appConfig));
function _deepFreeze(object) {
const propNames = Object.getOwnPropertyNames(object);
for (const name of propNames) {
const value = object[name];
if (value && typeof value === "object") {
_deepFreeze(value);
}
}
return Object.freeze(object);
}
new Proxy(/* @__PURE__ */ Object.create(null), {
get: (_, prop) => {
console.warn(
"Please use `useRuntimeConfig()` instead of accessing config directly."
);
const runtimeConfig = useRuntimeConfig();
if (prop in runtimeConfig) {
return runtimeConfig[prop];
}
return void 0;
}
});
function createContext(opts = {}) {
let currentInstance;
let isSingleton = false;
const checkConflict = (instance) => {
if (currentInstance && currentInstance !== instance) {
throw new Error("Context conflict");
}
};
let als;
if (opts.asyncContext) {
const _AsyncLocalStorage = opts.AsyncLocalStorage || globalThis.AsyncLocalStorage;
if (_AsyncLocalStorage) {
als = new _AsyncLocalStorage();
} else {
console.warn("[unctx] `AsyncLocalStorage` is not provided.");
}
}
const _getCurrentInstance = () => {
if (als) {
const instance = als.getStore();
if (instance !== void 0) {
return instance;
}
}
return currentInstance;
};
return {
use: () => {
const _instance = _getCurrentInstance();
if (_instance === void 0) {
throw new Error("Context is not available");
}
return _instance;
},
tryUse: () => {
return _getCurrentInstance();
},
set: (instance, replace) => {
if (!replace) {
checkConflict(instance);
}
currentInstance = instance;
isSingleton = true;
},
unset: () => {
currentInstance = void 0;
isSingleton = false;
},
call: (instance, callback) => {
checkConflict(instance);
currentInstance = instance;
try {
return als ? als.run(instance, callback) : callback();
} finally {
if (!isSingleton) {
currentInstance = void 0;
}
}
},
async callAsync(instance, callback) {
currentInstance = instance;
const onRestore = () => {
currentInstance = instance;
};
const onLeave = () => currentInstance === instance ? onRestore : void 0;
asyncHandlers.add(onLeave);
try {
const r = als ? als.run(instance, callback) : callback();
if (!isSingleton) {
currentInstance = void 0;
}
return await r;
} finally {
asyncHandlers.delete(onLeave);
}
}
};
}
function createNamespace(defaultOpts = {}) {
const contexts = {};
return {
get(key, opts = {}) {
if (!contexts[key]) {
contexts[key] = createContext({ ...defaultOpts, ...opts });
}
return contexts[key];
}
};
}
const _globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof global !== "undefined" ? global : {};
const globalKey = "__unctx__";
const defaultNamespace = _globalThis[globalKey] || (_globalThis[globalKey] = createNamespace());
const getContext = (key, opts = {}) => defaultNamespace.get(key, opts);
const asyncHandlersKey = "__unctx_async_handlers__";
const asyncHandlers = _globalThis[asyncHandlersKey] || (_globalThis[asyncHandlersKey] = /* @__PURE__ */ new Set());
function executeAsync(function_) {
const restores = [];
for (const leaveHandler of asyncHandlers) {
const restore2 = leaveHandler();
if (restore2) {
restores.push(restore2);
}
}
const restore = () => {
for (const restore2 of restores) {
restore2();
}
};
let awaitable = function_();
if (awaitable && typeof awaitable === "object" && "catch" in awaitable) {
awaitable = awaitable.catch((error) => {
restore();
throw error;
});
}
return [awaitable, restore];
}
getContext("nitro-app", {
asyncContext: false,
AsyncLocalStorage: void 0
});
const config = useRuntimeConfig();
const _routeRulesMatcher = toRouteMatcher(
createRouter$1({ routes: config.nitro.routeRules })
);
function createRouteRulesHandler(ctx) {
return eventHandler((event) => {
const routeRules = getRouteRules(event);
if (routeRules.headers) {
setHeaders(event, routeRules.headers);
}
if (routeRules.redirect) {
let target = routeRules.redirect.to;
if (target.endsWith("/**")) {
let targetPath = event.path;
const strpBase = routeRules.redirect._redirectStripBase;
if (strpBase) {
targetPath = withoutBase(targetPath, strpBase);
}
target = joinURL(target.slice(0, -3), targetPath);
} else if (event.path.includes("?")) {
const query = getQuery$1(event.path);
target = withQuery(target, query);
}
return sendRedirect(event, target, routeRules.redirect.statusCode);
}
if (routeRules.proxy) {
let target = routeRules.proxy.to;
if (target.endsWith("/**")) {
let targetPath = event.path;
const strpBase = routeRules.proxy._proxyStripBase;
if (strpBase) {
targetPath = withoutBase(targetPath, strpBase);
}
target = joinURL(target.slice(0, -3), targetPath);
} else if (event.path.includes("?")) {
const query = getQuery$1(event.path);
target = withQuery(target, query);
}
return proxyRequest(event, target, {
fetch: ctx.localFetch,
...routeRules.proxy
});
}
});
}
function getRouteRules(event) {
event.context._nitro = event.context._nitro || {};
if (!event.context._nitro.routeRules) {
event.context._nitro.routeRules = getRouteRulesForPath(
withoutBase(event.path.split("?")[0], useRuntimeConfig().app.baseURL)
);
}
return event.context._nitro.routeRules;
}
function getRouteRulesForPath(path) {
return defu({}, ..._routeRulesMatcher.matchAll(path).reverse());
}
function _captureError(error, type) {
console.error(`[${type}]`, error);
useNitroApp().captureError(error, { tags: [type] });
}
function trapUnhandledNodeErrors() {
process.on(
"unhandledRejection",
(error) => _captureError(error, "unhandledRejection")
);
process.on(
"uncaughtException",
(error) => _captureError(error, "uncaughtException")
);
}
function joinHeaders(value) {
return Array.isArray(value) ? value.join(", ") : String(value);
}
function normalizeFetchResponse(response) {
if (!response.headers.has("set-cookie")) {
return response;
}
return new Response(response.body, {
status: response.status,
statusText: response.statusText,
headers: normalizeCookieHeaders(response.headers)
});
}
function normalizeCookieHeader(header = "") {
return splitCookiesString(joinHeaders(header));
}
function normalizeCookieHeaders(headers) {
const outgoingHeaders = new Headers();
for (const [name, header] of headers) {
if (name === "set-cookie") {
for (const cookie of normalizeCookieHeader(header)) {
outgoingHeaders.append("set-cookie", cookie);
}
} else {
outgoingHeaders.set(name, joinHeaders(header));
}
}
return outgoingHeaders;
}
/**
* Nitro internal functions extracted from https://github.com/nitrojs/nitro/blob/v2/src/runtime/internal/utils.ts
*/
function isJsonRequest(event) {
// If the client specifically requests HTML, then avoid classifying as JSON.
if (hasReqHeader(event, "accept", "text/html")) {
return false;
}
return hasReqHeader(event, "accept", "application/json") || hasReqHeader(event, "user-agent", "curl/") || hasReqHeader(event, "user-agent", "httpie/") || hasReqHeader(event, "sec-fetch-mode", "cors") || event.path.startsWith("/api/") || event.path.endsWith(".json");
}
function hasReqHeader(event, name, includes) {
const value = getRequestHeader(event, name);
return value && typeof value === "string" && value.toLowerCase().includes(includes);
}
const errorHandler$0 = (async function errorhandler(error, event, { defaultHandler }) {
if (event.handled || isJsonRequest(event)) {
// let Nitro handle JSON errors
return;
}
// invoke default Nitro error handler (which will log appropriately if required)
const defaultRes = await defaultHandler(error, event, { json: true });
// let Nitro handle redirect if appropriate
const status = error.status || error.statusCode || 500;
if (status === 404 && defaultRes.status === 302) {
setResponseHeaders(event, defaultRes.headers);
setResponseStatus(event, defaultRes.status, defaultRes.statusText);
return send(event, JSON.stringify(defaultRes.body, null, 2));
}
const errorObject = defaultRes.body;
// remove proto/hostname/port from URL
const url = new URL(errorObject.url);
errorObject.url = withoutBase(url.pathname, useRuntimeConfig(event).app.baseURL) + url.search + url.hash;
// add default server message
errorObject.message ||= "Server Error";
// we will be rendering this error internally so we can pass along the error.data safely
errorObject.data ||= error.data;
errorObject.statusText ||= error.statusText || error.statusMessage;
delete defaultRes.headers["content-type"];
delete defaultRes.headers["content-security-policy"];
setResponseHeaders(event, defaultRes.headers);
// Access request headers
const reqHeaders = getRequestHeaders(event);
// Detect to avoid recursion in SSR rendering of errors
const isRenderingError = event.path.startsWith("/__nuxt_error") || !!reqHeaders["x-nuxt-error"];
// HTML response (via SSR)
const res = isRenderingError ? null : await useNitroApp().localFetch(withQuery(joinURL(useRuntimeConfig(event).app.baseURL, "/__nuxt_error"), errorObject), {
headers: {
...reqHeaders,
"x-nuxt-error": "true"
},
redirect: "manual"
}).catch(() => null);
if (event.handled) {
return;
}
// Fallback to static rendered error page
if (!res) {
const { template } = await import('../_/error-500.mjs');
setResponseHeader(event, "Content-Type", "text/html;charset=UTF-8");
return send(event, template(errorObject));
}
const html = await res.text();
for (const [header, value] of res.headers.entries()) {
if (header === "set-cookie") {
appendResponseHeader(event, header, value);
continue;
}
setResponseHeader(event, header, value);
}
setResponseStatus(event, res.status && res.status !== 200 ? res.status : defaultRes.status, res.statusText || defaultRes.statusText);
return send(event, html);
});
function defineNitroErrorHandler(handler) {
return handler;
}
const errorHandler$1 = defineNitroErrorHandler(
function defaultNitroErrorHandler(error, event) {
const res = defaultHandler(error, event);
setResponseHeaders(event, res.headers);
setResponseStatus(event, res.status, res.statusText);
return send(event, JSON.stringify(res.body, null, 2));
}
);
function defaultHandler(error, event, opts) {
const isSensitive = error.unhandled || error.fatal;
const statusCode = error.statusCode || 500;
const statusMessage = error.statusMessage || "Server Error";
const url = getRequestURL(event, { xForwardedHost: true, xForwardedProto: true });
if (statusCode === 404) {
const baseURL = "/";
if (/^\/[^/]/.test(baseURL) && !url.pathname.startsWith(baseURL)) {
const redirectTo = `${baseURL}${url.pathname.slice(1)}${url.search}`;
return {
status: 302,
statusText: "Found",
headers: { location: redirectTo },
body: `Redirecting...`
};
}
}
if (isSensitive && !opts?.silent) {
const tags = [error.unhandled && "[unhandled]", error.fatal && "[fatal]"].filter(Boolean).join(" ");
console.error(`[request error] ${tags} [${event.method}] ${url}
`, error);
}
const headers = {
"content-type": "application/json",
// Prevent browser from guessing the MIME types of resources.
"x-content-type-options": "nosniff",
// Prevent error page from being embedded in an iframe
"x-frame-options": "DENY",
// Prevent browsers from sending the Referer header
"referrer-policy": "no-referrer",
// Disable the execution of any js
"content-security-policy": "script-src 'none'; frame-ancestors 'none';"
};
setResponseStatus(event, statusCode, statusMessage);
if (statusCode === 404 || !getResponseHeader(event, "cache-control")) {
headers["cache-control"] = "no-cache";
}
const body = {
error: true,
url: url.href,
statusCode,
statusMessage,
message: isSensitive ? "Server Error" : error.message,
data: isSensitive ? void 0 : error.data
};
return {
status: statusCode,
statusText: statusMessage,
headers,
body
};
}
const errorHandlers = [errorHandler$0, errorHandler$1];
async function errorHandler(error, event) {
for (const handler of errorHandlers) {
try {
await handler(error, event, { defaultHandler });
if (event.handled) {
return; // Response handled
}
} catch(error) {
// Handler itself thrown, log and continue
console.error(error);
}
}
// H3 will handle fallback
}
const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$";
const unsafeChars = /[<>\b\f\n\r\t\0\u2028\u2029]/g;
const reserved = /^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;
const escaped = {
"<": "\\u003C",
">": "\\u003E",
"/": "\\u002F",
"\\": "\\\\",
"\b": "\\b",
"\f": "\\f",
"\n": "\\n",
"\r": "\\r",
" ": "\\t",
"\0": "\\0",
"\u2028": "\\u2028",
"\u2029": "\\u2029"
};
const objectProtoOwnPropertyNames = Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
function devalue(value) {
const counts = /* @__PURE__ */ new Map();
let logNum = 0;
function log(message) {
if (logNum < 100) {
console.warn(message);
logNum += 1;
}
}
function walk(thing) {
if (typeof thing === "function") {
log(`Cannot stringify a function ${thing.name}`);
return;
}
if (counts.has(thing)) {
counts.set(thing, counts.get(thing) + 1);
return;
}
counts.set(thing, 1);
if (!isPrimitive(thing)) {
const type = getType(thing);
switch (type) {
case "Number":
case "String":
case "Boolean":
case "Date":
case "RegExp":
return;
case "Array":
thing.forEach(walk);
break;
case "Set":
case "Map":
Array.from(thing).forEach(walk);
break;
default:
const proto = Object.getPrototypeOf(thing);
if (proto !== Object.prototype && proto !== null && Object.getOwnPropertyNames(proto).sort().join("\0") !== objectProtoOwnPropertyNames) {
if (typeof thing.toJSON !== "function") {
log(`Cannot stringify arbitrary non-POJOs ${thing.constructor.name}`);
}
} else if (Object.getOwnPropertySymbols(thing).length > 0) {
log(`Cannot stringify POJOs with symbolic keys ${Object.getOwnPropertySymbols(thing).map((symbol) => symbol.toString())}`);
} else {
Object.keys(thing).forEach((key) => walk(thing[key]));
}
}
}
}
walk(value);
const names = /* @__PURE__ */ new Map();
Array.from(counts).filter((entry) => entry[1] > 1).sort((a, b) => b[1] - a[1]).forEach((entry, i) => {
names.set(entry[0], getName(i));
});
function stringify(thing) {
if (names.has(thing)) {
return names.get(thing);
}
if (isPrimitive(thing)) {
return stringifyPrimitive(thing);
}
const type = getType(thing);
switch (type) {
case "Number":
case "String":
case "Boolean":
return `Object(${stringify(thing.valueOf())})`;
case "RegExp":
return thing.toString();
case "Date":
return `new Date(${thing.getTime()})`;
case "Array":
const members = thing.map((v, i) => i in thing ? stringify(v) : "");
const tail = thing.length === 0 || thing.length - 1 in thing ? "" : ",";
return `[${members.join(",")}${tail}]`;
case "Set":
case "Map":
return `new ${type}([${Array.from(thing).map(stringify).join(",")}])`;
default:
if (thing.toJSON) {
let json = thing.toJSON();
if (getType(json) === "String") {
try {
json = JSON.parse(json);
} catch (e) {
}
}
return stringify(json);
}
if (Object.getPrototypeOf(thing) === null) {
if (Object.keys(thing).length === 0) {
return "Object.create(null)";
}
return `Object.create(null,{${Object.keys(thing).map((key) => `${safeKey(key)}:{writable:true,enumerable:true,value:${stringify(thing[key])}}`).join(",")}})`;
}
return `{${Object.keys(thing).map((key) => `${safeKey(key)}:${stringify(thing[key])}`).join(",")}}`;
}
}
const str = stringify(value);
if (names.size) {
const params = [];
const statements = [];
const values = [];
names.forEach((name, thing) => {
params.push(name);
if (isPrimitive(thing)) {
values.push(stringifyPrimitive(thing));
return;
}
const type = getType(thing);
switch (type) {
case "Number":
case "String":
case "Boolean":
values.push(`Object(${stringify(thing.valueOf())})`);
break;
case "RegExp":
values.push(thing.toString());
break;
case "Date":
values.push(`new Date(${thing.getTime()})`);
break;
case "Array":
values.push(`Array(${thing.length})`);
thing.forEach((v, i) => {
statements.push(`${name}[${i}]=${stringify(v)}`);
});
break;
case "Set":
values.push("new Set");
statements.push(`${name}.${Array.from(thing).map((v) => `add(${stringify(v)})`).join(".")}`);
break;
case "Map":
values.push("new Map");
statements.push(`${name}.${Array.from(thing).map(([k, v]) => `set(${stringify(k)}, ${stringify(v)})`).join(".")}`);
break;
default:
values.push(Object.getPrototypeOf(thing) === null ? "Object.create(null)" : "{}");
Object.keys(thing).forEach((key) => {
statements.push(`${name}${safeProp(key)}=${stringify(thing[key])}`);
});
}
});
statements.push(`return ${str}`);
return `(function(${params.join(",")}){${statements.join(";")}}(${values.join(",")}))`;
} else {
return str;
}
}
function getName(num) {
let name = "";
do {
name = chars[num % chars.length] + name;
num = ~~(num / chars.length) - 1;
} while (num >= 0);
return reserved.test(name) ? `${name}0` : name;
}
function isPrimitive(thing) {
return Object(thing) !== thing;
}
function stringifyPrimitive(thing) {
if (typeof thing === "string") {
return stringifyString(thing);
}
if (thing === void 0) {
return "void 0";
}
if (thing === 0 && 1 / thing < 0) {
return "-0";
}
const str = String(thing);
if (typeof thing === "number") {
return str.replace(/^(-)?0\./, "$1.");
}
return str;
}
function getType(thing) {
return Object.prototype.toString.call(thing).slice(8, -1);
}
function escapeUnsafeChar(c) {
return escaped[c] || c;
}
function escapeUnsafeChars(str) {
return str.replace(unsafeChars, escapeUnsafeChar);
}
function safeKey(key) {
return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? key : escapeUnsafeChars(JSON.stringify(key));
}
function safeProp(key) {
return /^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(key) ? `.${key}` : `[${escapeUnsafeChars(JSON.stringify(key))}]`;
}
function stringifyString(str) {
let result = '"';
for (let i = 0; i < str.length; i += 1) {
const char = str.charAt(i);
const code = char.charCodeAt(0);
if (char === '"') {
result += '\\"';
} else if (char in escaped) {
result += escaped[char];
} else if (code >= 55296 && code <= 57343) {
const next = str.charCodeAt(i + 1);
if (code <= 56319 && (next >= 56320 && next <= 57343)) {
result += char + str[++i];
} else {
result += `\\u${code.toString(16).toUpperCase()}`;
}
} else {
result += char;
}
}
result += '"';
return result;
}
function normalizeSiteConfig(config) {
if (typeof config.indexable !== "undefined")
config.indexable = String(config.indexable) !== "false";
if (typeof config.trailingSlash !== "undefined" && !config.trailingSlash)
config.trailingSlash = String(config.trailingSlash) !== "false";
if (config.url && !hasProtocol(String(config.url), { acceptRelative: true, strict: false }))
config.url = withHttps(String(config.url));
const keys = Object.keys(config).sort((a, b) => a.localeCompare(b));
const newConfig = {};
for (const k of keys)
newConfig[k] = config[k];
return newConfig;
}
function createSiteConfigStack(options) {
const debug = options?.debug || false;
const stack = [];
function push(input) {
if (!input || typeof input !== "object" || Object.keys(input).length === 0) {
return () => {
};
}
if (!input._context && debug) {
let lastFunctionName = new Error("tmp").stack?.split("\n")[2]?.split(" ")[5];
if (lastFunctionName?.includes("/"))
lastFunctionName = "anonymous";
input._context = lastFunctionName;
}
const entry = {};
for (const k in input) {
const val = input[k];
if (typeof val !== "undefined" && val !== "")
entry[k] = val;
}
if (Object.keys(entry).filter((k) => !k.startsWith("_")).length === 0) {
return () => {
};
}
stack.push(entry);
return () => {
const idx = stack.indexOf(entry);
if (idx !== -1)
stack.splice(idx, 1);
};
}
function get(options2) {
const siteConfig = {};
if (options2?.debug)
siteConfig._context = {};
siteConfig._priority = {};
for (const o in stack.sort((a, b) => (a._priority || 0) - (b._priority || 0))) {
for (const k in stack[o]) {
const key = k;
const val = options2?.resolveRefs ? toValue(stack[o][k]) : stack[o][k];
if (!k.startsWith("_") && typeof val !== "undefined" && val !== "") {
siteConfig[k] = val;
if (typeof stack[o]._priority !== "undefined" && stack[o]._priority !== -1) {
siteConfig._priority[key] = stack[o]._priority;
}
if (options2?.debug)
siteConfig._context[key] = stack[o]._context?.[key] || stack[o]._context || "anonymous";
}
}
}
return options2?.skipNormalize ? siteConfig : normalizeSiteConfig(siteConfig);
}
return {
stack,
push,
get
};
}
function envSiteConfig(env = {}) {
return Object.fromEntries(Object.entries(env).filter(([k]) => k.startsWith("NUXT_SITE_") || k.startsWith("NUXT_PUBLIC_SITE_")).map(([k, v]) => [
k.replace(/^NUXT_(PUBLIC_)?SITE_/, "").split("_").map((s, i) => i === 0 ? s.toLowerCase() : s[0]?.toUpperCase() + s.slice(1).toLowerCase()).join(""),
v
]));
}
function getSiteConfig(e, _options) {
e.context.siteConfig = e.context.siteConfig || createSiteConfigStack();
const options = defu(_options, useRuntimeConfig(e)["nuxt-site-config"], { debug: false });
return e.context.siteConfig.get(options);
}
const _mQjbE97genUSk1iu_vB40Q75EXhZuZD4PlBMpijuyY = defineNitroPlugin(async (nitroApp) => {
nitroApp.hooks.hook("render:html", async (ctx, { event }) => {
const routeOptions = getRouteRules(event);
const isIsland = process.env.NUXT_COMPONENT_ISLANDS && event.path.startsWith("/__nuxt_island");
event.path;
const noSSR = !!process.env.NUXT_NO_SSR || event.context.nuxt?.noSSR || routeOptions.ssr === false && !isIsland || (false);
if (noSSR) {
const siteConfig = Object.fromEntries(
Object.entries(getSiteConfig(event)).map(([k, v]) => [k, toValue(v)])
);
ctx.body.push(`<script>window.__NUXT_SITE_CONFIG__=${devalue(siteConfig)}<\/script>`);
}
});
});
const plugins = [
_mQjbE97genUSk1iu_vB40Q75EXhZuZD4PlBMpijuyY
];
const assets = {
"/robots.txt": {
"type": "text/plain; charset=utf-8",
"etag": "\"1a-a1cIDLljyn/zLf+iveG+HSGws5Y\"",
"mtime": "2026-02-01T18:20:00.763Z",
"size": 26,
"path": "../public/robots.txt"
},
"/sw_notif_pwa.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"8e0e-ICXz5rSqHKvZmpdVMNFy55xf0NE\"",
"mtime": "2026-02-01T18:20:01.358Z",
"size": 36366,
"path": "../public/sw_notif_pwa.js"
},
"/instagram/logo.png": {
"type": "image/png",
"etag": "\"d86-rDgK6WCKlNptdiXC472VUc6Nr6k\"",
"mtime": "2026-02-01T18:20:00.759Z",
"size": 3462,
"path": "../public/instagram/logo.png"
},
"/instagram/logo.svg": {
"type": "image/svg+xml",
"etag": "\"2cf9-PuLu5PDLXC26wxx+yNWNzmsdQ9Y\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 11513,
"path": "../public/instagram/logo.svg"
},
"/instagram/logo_white.png": {
"type": "image/png",
"etag": "\"d83-tCVLKii+kgQKBK+NGuNHXmGNafE\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 3459,
"path": "../public/instagram/logo_white.png"
},
"/_nuxt/-3vPFNLw.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"499-efLbCU7+TUPxLPnR56QU7SbZwIc\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 1177,
"path": "../public/_nuxt/-3vPFNLw.js"
},
"/instagram/logo_white.svg": {
"type": "image/svg+xml",
"etag": "\"2cf7-OKxCTlYoku2oie6twuYK5BEzcrg\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 11511,
"path": "../public/instagram/logo_white.svg"
},
"/_nuxt/01_auARU.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"7a2-A2V+Gq57tsgn3m+zw1mATYXJDOA\"",
"mtime": "2026-02-01T18:20:00.711Z",
"size": 1954,
"path": "../public/_nuxt/01_auARU.js"
},
"/_nuxt/0sQGsR-B.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"882-GbwgYFGo9nb9GHYH0eTV8cAGAhk\"",
"mtime": "2026-02-01T18:20:00.711Z",
"size": 2178,
"path": "../public/_nuxt/0sQGsR-B.js"
},
"/_nuxt/1med13IE.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1d5-zbOP1wls7pT5sNE7CMwTmhOTZxU\"",
"mtime": "2026-02-01T18:20:00.711Z",
"size": 469,
"path": "../public/_nuxt/1med13IE.js"
},
"/_nuxt/3o6YqOc2.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"6cb-OJPKXiR4DPf2/NsNiP50NrJQHss\"",
"mtime": "2026-02-01T18:20:00.711Z",
"size": 1739,
"path": "../public/_nuxt/3o6YqOc2.js"
},
"/_nuxt/1PclIw6T.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"18d9-1qVegl5RealekaCuDTBD8nimENA\"",
"mtime": "2026-02-01T18:20:00.711Z",
"size": 6361,
"path": "../public/_nuxt/1PclIw6T.js"
},
"/_nuxt/5We1qMBw.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"af2-votOQUlF3t3exirz8pdUqZ6YkE0\"",
"mtime": "2026-02-01T18:20:00.711Z",
"size": 2802,
"path": "../public/_nuxt/5We1qMBw.js"
},
"/_nuxt/7TUp2nqe.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"846-O0Zia0Wup26nog0DBHEmIZ+9nXk\"",
"mtime": "2026-02-01T18:20:00.711Z",
"size": 2118,
"path": "../public/_nuxt/7TUp2nqe.js"
},
"/_nuxt/7t5j4bQX.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2a7aa-PmfrQRmcvF1guAJtuNkiaLFOWwE\"",
"mtime": "2026-02-01T18:20:00.712Z",
"size": 173994,
"path": "../public/_nuxt/7t5j4bQX.js"
},
"/_nuxt/8zaGD7Kq.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3be8-fctd1XcF+lG5Mh+cchcExrkIYvo\"",
"mtime": "2026-02-01T18:20:00.712Z",
"size": 15336,
"path": "../public/_nuxt/8zaGD7Kq.js"
},
"/_nuxt/Ae_4WTYP.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"700-S83+9n+BNCwdRQ2TJANn+y4PPlM\"",
"mtime": "2026-02-01T18:20:00.712Z",
"size": 1792,
"path": "../public/_nuxt/Ae_4WTYP.js"
},
"/_nuxt/B-hklO6y.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1d34-nHq52lPCDAH/YUnz4ZFpHnTH/zY\"",
"mtime": "2026-02-01T18:20:00.712Z",
"size": 7476,
"path": "../public/_nuxt/B-hklO6y.js"
},
"/_nuxt/B0RpQ20O.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"37e5-40AvvmhDOCJau8vZyyvrwDn/E2Y\"",
"mtime": "2026-02-01T18:20:00.712Z",
"size": 14309,
"path": "../public/_nuxt/B0RpQ20O.js"
},
"/_nuxt/B2hVD8nq.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2db-P8Nc6MLPjS2XXq5UTbgROwxpfcg\"",
"mtime": "2026-02-01T18:20:00.712Z",
"size": 731,
"path": "../public/_nuxt/B2hVD8nq.js"
},
"/_nuxt/B6YAPRst.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2aeb-KpHScPvhAMk7glYyBgYowDYkCaE\"",
"mtime": "2026-02-01T18:20:00.712Z",
"size": 10987,
"path": "../public/_nuxt/B6YAPRst.js"
},
"/_nuxt/B6irGWYT.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1c29-CfSRHcVsBq4PHXN+F+/Kget+IYY\"",
"mtime": "2026-02-01T18:20:00.712Z",
"size": 7209,
"path": "../public/_nuxt/B6irGWYT.js"
},
"/_nuxt/B7kAjnZP.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"643-q+4iVIn4UqujAbVdMsfPvdIwtOo\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 1603,
"path": "../public/_nuxt/B7kAjnZP.js"
},
"/_nuxt/B8BNQJT3.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"415-cQNJiqhIvWUVms7TkTYAFm0B7pg\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 1045,
"path": "../public/_nuxt/B8BNQJT3.js"
},
"/_nuxt/B8_nwabi.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"29d-KWexmgE+TtRyVn4yU9AdOevFYjg\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 669,
"path": "../public/_nuxt/B8_nwabi.js"
},
"/_nuxt/B8kWovXe.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"40-/RuDECHYEBqcCdePhUynY7xMnXA\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 64,
"path": "../public/_nuxt/B8kWovXe.js"
},
"/_nuxt/B9ToE0bR.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"27a-64GqymQ5jKA5CDDOHUPbQeleCGA\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 634,
"path": "../public/_nuxt/B9ToE0bR.js"
},
"/_nuxt/B9wF6kv9.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"512-48+pZKrW32HjjQPNKbC/4Eafcmk\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 1298,
"path": "../public/_nuxt/B9wF6kv9.js"
},
"/_nuxt/BBQb2YCE.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2606-LFe8cc8iZAZWaQ0ZmUVrqUcxs7I\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 9734,
"path": "../public/_nuxt/BBQb2YCE.js"
},
"/_nuxt/BDDD11fq.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1fb-XqwfTb3kdPYHpauU7sfL37mJMRg\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 507,
"path": "../public/_nuxt/BDDD11fq.js"
},
"/_nuxt/BE4kx24x.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"15d0-JUrI7H5V6JCPsm2ltdxS3ESRSGQ\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 5584,
"path": "../public/_nuxt/BE4kx24x.js"
},
"/_nuxt/BFKVSULU.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"50-kpJ8KvsfT5R31aLLeNr7l/VrzQg\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 80,
"path": "../public/_nuxt/BFKVSULU.js"
},
"/_nuxt/BGseQsag.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"b8-vIN7NgCtnG+CFUzNa+VtNlNmcsk\"",
"mtime": "2026-02-01T18:20:00.713Z",
"size": 184,
"path": "../public/_nuxt/BGseQsag.js"
},
"/_nuxt/BIl4cyR9.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1681-8OY0+UaG+gUiKJSGiH59s2B32fM\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 5761,
"path": "../public/_nuxt/BIl4cyR9.js"
},
"/_nuxt/BJzTzxFG.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1710-Gmg1Gk9mdYBCokshPY9GxStb6JY\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 5904,
"path": "../public/_nuxt/BJzTzxFG.js"
},
"/_nuxt/BLUOSRuI.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"753-pLzO/cyhMml3SAmvMbFYKOVu2uw\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 1875,
"path": "../public/_nuxt/BLUOSRuI.js"
},
"/_nuxt/BMb5MMpc.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"4c7-t+c8v2fBwOpRKAe9Ok4FZHbVghs\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 1223,
"path": "../public/_nuxt/BMb5MMpc.js"
},
"/_nuxt/BOEpp_it.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"fd2-dixrWNuf1q7a+G+cgj9sTGkUTsk\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 4050,
"path": "../public/_nuxt/BOEpp_it.js"
},
"/_nuxt/BOU51ti_.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"67e-J4tuyC6hRdGuNu31zM0s13QsI44\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 1662,
"path": "../public/_nuxt/BOU51ti_.js"
},
"/_nuxt/BPHLUlMn.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"269-GesM136j3N0B+8GL4SXnHezCkbQ\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 617,
"path": "../public/_nuxt/BPHLUlMn.js"
},
"/_nuxt/BQHc_fkH.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1991-j1upnxquTnjv10K907Mq1VNyepE\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 6545,
"path": "../public/_nuxt/BQHc_fkH.js"
},
"/_nuxt/BQLydWEZ.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"8e6-wQ0ZiWSrjywacA8mP2NQc/IxSto\"",
"mtime": "2026-02-01T18:20:00.714Z",
"size": 2278,
"path": "../public/_nuxt/BQLydWEZ.js"
},
"/_nuxt/BQNfWzTf.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"49f-4a67luHxQSOJoRKOh5eZjh6EGqA\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 1183,
"path": "../public/_nuxt/BQNfWzTf.js"
},
"/_nuxt/BUllv8ai.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2be-t+gtsZ2M7uApECaKwMNftROeOK0\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 702,
"path": "../public/_nuxt/BUllv8ai.js"
},
"/_nuxt/BUpRfqYU.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"686-2nw8YWyjvFH3Dj3/08G4Vy032aA\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 1670,
"path": "../public/_nuxt/BUpRfqYU.js"
},
"/_nuxt/BW6XFBV8.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2377-4DwWJmR+HNIQKE1u5tTsjmnq4Nc\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 9079,
"path": "../public/_nuxt/BW6XFBV8.js"
},
"/_nuxt/BWk0HqXj.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1bd6-WosEs/qOQOD6vPNVixsTTNm/iSw\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 7126,
"path": "../public/_nuxt/BWk0HqXj.js"
},
"/_nuxt/BYO2u26t.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"4e2-Pdm06PIJ+1ogAWayMRVwB3h8XUY\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 1250,
"path": "../public/_nuxt/BYO2u26t.js"
},
"/_nuxt/B_9iyI8G.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"162-4ibzG+HOQcJ92ZZUNCcFKEw4pYQ\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 354,
"path": "../public/_nuxt/B_9iyI8G.js"
},
"/_nuxt/BakWA8YC.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"28f-cVd0rkYhXDCQ6LbrwSY+8XeZeWs\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 655,
"path": "../public/_nuxt/BakWA8YC.js"
},
"/_nuxt/BasicButton.F4HvHSRr.css": {
"type": "text/css; charset=utf-8",
"etag": "\"af-D+Bf4qVZ0XSLk7U07RWYvn1tkBs\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 175,
"path": "../public/_nuxt/BasicButton.F4HvHSRr.css"
},
"/_nuxt/BasicIconOld.DktbhR_V.css": {
"type": "text/css; charset=utf-8",
"etag": "\"3d-QxRGm8Uny5tH7YgTQNcIq8Yo9xs\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 61,
"path": "../public/_nuxt/BasicIconOld.DktbhR_V.css"
},
"/_nuxt/BasicInput.BS7pxlLz.css": {
"type": "text/css; charset=utf-8",
"etag": "\"12e-Ipt3m8bNH8USMdeY8fh9AdBGhqc\"",
"mtime": "2026-02-01T18:20:00.715Z",
"size": 302,
"path": "../public/_nuxt/BasicInput.BS7pxlLz.css"
},
"/_nuxt/BasicTextArea.tn0RQdqM.css": {
"type": "text/css; charset=utf-8",
"etag": "\"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk\"",
"mtime": "2026-02-01T18:19:52.911Z",
"size": 0,
"path": "../public/_nuxt/BasicTextArea.tn0RQdqM.css"
},
"/_nuxt/BdzjWEBr.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"497-gH1oi+3lknaxqe3/i7GND46QSIk\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 1175,
"path": "../public/_nuxt/BdzjWEBr.js"
},
"/_nuxt/BeJulhUo.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"719-Puj8W6xH693LUj2S5G23Oknisvo\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 1817,
"path": "../public/_nuxt/BeJulhUo.js"
},
"/_nuxt/BgR2E6gQ.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"253-PLNyY/DKYNXdR8RWoouDXiJBLW8\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 595,
"path": "../public/_nuxt/BgR2E6gQ.js"
},
"/_nuxt/BkdTOo3t.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"164-DBb4BxECR+kxsDzTo1P76hS3Myg\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 356,
"path": "../public/_nuxt/BkdTOo3t.js"
},
"/_nuxt/BkAwj_ZF.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1726-89lV/TEJZUuAwd/NGSPkXQ93BSY\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 5926,
"path": "../public/_nuxt/BkAwj_ZF.js"
},
"/_nuxt/BmYTfB0m.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"68a-Za6UHR3OnFHuQTAip9RSt00vqmg\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 1674,
"path": "../public/_nuxt/BmYTfB0m.js"
},
"/_nuxt/Bme6jswu.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"13f9-ZdJ7CiugLyXzWkD4s7aacYR45rg\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 5113,
"path": "../public/_nuxt/Bme6jswu.js"
},
"/_nuxt/BoJ0uf43.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d68-XOhnMci/tUNnLB42KPenPPHCzfI\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 3432,
"path": "../public/_nuxt/BoJ0uf43.js"
},
"/_nuxt/Bq2n21A0.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"624c-p0wgJgU+VUsFPLdf9NOlJ/aTrHs\"",
"mtime": "2026-02-01T18:20:00.717Z",
"size": 25164,
"path": "../public/_nuxt/Bq2n21A0.js"
},
"/_nuxt/BopIhRlJ.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2de-M1PEHEY1z/oYMDTvomFYvY52KI8\"",
"mtime": "2026-02-01T18:20:00.716Z",
"size": 734,
"path": "../public/_nuxt/BopIhRlJ.js"
},
"/_nuxt/Bu1TSr4Z.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3d3-jrF/GujRtlkShC3mkr83XhiLHuk\"",
"mtime": "2026-02-01T18:20:00.717Z",
"size": 979,
"path": "../public/_nuxt/Bu1TSr4Z.js"
},
"/_nuxt/Btp-CpgR.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"44b0-3y8+Yj+6TH/kBW3ZQ5N4Wyt9Ywo\"",
"mtime": "2026-02-01T18:20:00.717Z",
"size": 17584,
"path": "../public/_nuxt/Btp-CpgR.js"
},
"/_nuxt/BuARQi0-.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"b726-NVdkpotMpHrfNvs3c/DkVogloFg\"",
"mtime": "2026-02-01T18:20:00.717Z",
"size": 46886,
"path": "../public/_nuxt/BuARQi0-.js"
},
"/_nuxt/Bvb2KE_X.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"694-nNnNU5iFqFiSLvbxytnWoyg80q8\"",
"mtime": "2026-02-01T18:20:00.717Z",
"size": 1684,
"path": "../public/_nuxt/Bvb2KE_X.js"
},
"/_nuxt/BuxAtXFr.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"19bf-AJTm0xDCzPR5VYxyRU2LpgOvkaQ\"",
"mtime": "2026-02-01T18:20:00.717Z",
"size": 6591,
"path": "../public/_nuxt/BuxAtXFr.js"
},
"/_nuxt/BwMeOX52.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"192-+XtM3DvD3/jZ46xtOrBjiPjueCo\"",
"mtime": "2026-02-01T18:20:00.717Z",
"size": 402,
"path": "../public/_nuxt/BwMeOX52.js"
},
"/_nuxt/BwUSRes4.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"a6-iod54C73C1yEdMTvEIXBgrY+0WU\"",
"mtime": "2026-02-01T18:20:00.717Z",
"size": 166,
"path": "../public/_nuxt/BwUSRes4.js"
},
"/_nuxt/BwXZnHx-.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"f2-DKqtzlnlcxkU+E0MQjFdBq40N+A\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 242,
"path": "../public/_nuxt/BwXZnHx-.js"
},
"/_nuxt/By5DSMhK.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2e8-0fXNauWjsPG+W7Yn3Y5q0UCoff0\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 744,
"path": "../public/_nuxt/By5DSMhK.js"
},
"/_nuxt/Bwh5mp2j.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"94bf-gk03sdfoFDkruf9Dxufz2XVd+wo\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 38079,
"path": "../public/_nuxt/Bwh5mp2j.js"
},
"/_nuxt/Byhp8Jh0.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"114-oLEZtbGliegVJAn1HVRLMiByOBw\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 276,
"path": "../public/_nuxt/Byhp8Jh0.js"
},
"/_nuxt/BzRPrbi9.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"399-KQRK2l2v+RQnhVK3efsvLyxCjII\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 921,
"path": "../public/_nuxt/BzRPrbi9.js"
},
"/_nuxt/BzSahvFr.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2ed-iME2eDeAQmYQAJ0gdlempIgFnYs\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 749,
"path": "../public/_nuxt/BzSahvFr.js"
},
"/_nuxt/C1GbzRtN.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d5e-BZBuv365X8be5sD68bd1jV7xypQ\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 3422,
"path": "../public/_nuxt/C1GbzRtN.js"
},
"/_nuxt/C2mWIuFr.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"8a96-JY78SHXsparnnP3hrkd4epWfpDQ\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 35478,
"path": "../public/_nuxt/C2mWIuFr.js"
},
"/_nuxt/C34FAMhQ.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"730-MYCHnZJaihGNLy3yK1+MRvvpwlM\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 1840,
"path": "../public/_nuxt/C34FAMhQ.js"
},
"/_nuxt/C4IJggRf.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"7f6-y5k3BTv0vScujwRNrD8SqCjOgjM\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 2038,
"path": "../public/_nuxt/C4IJggRf.js"
},
"/_nuxt/C4YPIWjO.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1edb-qOZ3UQznjujvSaNDkFKH90Z3Fk4\"",
"mtime": "2026-02-01T18:20:00.718Z",
"size": 7899,
"path": "../public/_nuxt/C4YPIWjO.js"
},
"/_nuxt/C6CyHoiY.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"127c-8UEcqV5LJDLG5+twqzO+K80IYYM\"",
"mtime": "2026-02-01T18:20:00.719Z",
"size": 4732,
"path": "../public/_nuxt/C6CyHoiY.js"
},
"/_nuxt/C79IA_7s.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"4df-Y139UvbaPrNHj3AvrJOdXL4xBBg\"",
"mtime": "2026-02-01T18:20:00.719Z",
"size": 1247,
"path": "../public/_nuxt/C79IA_7s.js"
},
"/_nuxt/C7YC1VRI.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"c30-sdrxyfSFG8AVBLFewOQb132yoV8\"",
"mtime": "2026-02-01T18:20:00.719Z",
"size": 3120,
"path": "../public/_nuxt/C7YC1VRI.js"
},
"/_nuxt/C7u8ARcS.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"25a9-GLvSk92QAqkbYKSl5fnFm7BPouc\"",
"mtime": "2026-02-01T18:20:00.719Z",
"size": 9641,
"path": "../public/_nuxt/C7u8ARcS.js"
},
"/_nuxt/CDQxiK-V.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3c1-OTl0CuKGppY0ypMNE12+LfwR9c4\"",
"mtime": "2026-02-01T18:20:00.719Z",
"size": 961,
"path": "../public/_nuxt/CDQxiK-V.js"
},
"/_nuxt/CE1G-McA.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2f3-ZzFXd6i6fqKCtUh5P1kdubTrulk\"",
"mtime": "2026-02-01T18:20:00.719Z",
"size": 755,
"path": "../public/_nuxt/CE1G-McA.js"
},
"/_nuxt/CEVsq4jO.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"a9-YAmNsGcqsnYJpY7fHJQ7vJ8k1G4\"",
"mtime": "2026-02-01T18:20:00.719Z",
"size": 169,
"path": "../public/_nuxt/CEVsq4jO.js"
},
"/_nuxt/CHchsQee.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"66-DuSXTGzaUkaEbFBPoQNNEiONSQc\"",
"mtime": "2026-02-01T18:20:00.720Z",
"size": 102,
"path": "../public/_nuxt/CHchsQee.js"
},
"/_nuxt/CGx07bmV.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"22d8-p2w5q5Ll4L1lNOM0cijTT/Klag4\"",
"mtime": "2026-02-01T18:20:00.719Z",
"size": 8920,
"path": "../public/_nuxt/CGx07bmV.js"
},
"/_nuxt/CJ_Iy2ET.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"10b-uaJ39qBaBES8OEC1jDgPXLRm/HE\"",
"mtime": "2026-02-01T18:20:00.720Z",
"size": 267,
"path": "../public/_nuxt/CJ_Iy2ET.js"
},
"/_nuxt/CM92j2qg.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"536-fQAz2fmqmsV5rFhLQ45zH+aXhRE\"",
"mtime": "2026-02-01T18:20:00.720Z",
"size": 1334,
"path": "../public/_nuxt/CM92j2qg.js"
},
"/_nuxt/CPs-NHNf.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"4fe-rClcSFdnRw0dQu9sfw1t3TGy93Y\"",
"mtime": "2026-02-01T18:20:00.720Z",
"size": 1278,
"path": "../public/_nuxt/CPs-NHNf.js"
},
"/_nuxt/CKskNGnl.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"a1d3-BGeVEvhwF/W+Q1Se/1mxwVV0xqE\"",
"mtime": "2026-02-01T18:20:00.720Z",
"size": 41427,
"path": "../public/_nuxt/CKskNGnl.js"
},
"/_nuxt/CR753W-O.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"24f-MjrZVt2CugSs4E/VhXm+T2Aak80\"",
"mtime": "2026-02-01T18:20:00.720Z",
"size": 591,
"path": "../public/_nuxt/CR753W-O.js"
},
"/_nuxt/CSoPQIfi.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"275-fIkpqIgTKbdf4/nbKRsJimKbyH8\"",
"mtime": "2026-02-01T18:20:00.720Z",
"size": 629,
"path": "../public/_nuxt/CSoPQIfi.js"
},
"/_nuxt/CT2Jun5i.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"291-1NbngXcVyn8c3wcIuFWigD22XQU\"",
"mtime": "2026-02-01T18:20:00.721Z",
"size": 657,
"path": "../public/_nuxt/CT2Jun5i.js"
},
"/_nuxt/CTKn_q2d.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"15b94-1uZ+1oO2S5smhWLCxRITs/DrTAQ\"",
"mtime": "2026-02-01T18:20:00.721Z",
"size": 88980,
"path": "../public/_nuxt/CTKn_q2d.js"
},
"/_nuxt/CQd_9SsC.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3eec8-6Eq7s+H44t5A9n06Kl7ucw4wGRc\"",
"mtime": "2026-02-01T18:20:00.721Z",
"size": 257736,
"path": "../public/_nuxt/CQd_9SsC.js"
},
"/_nuxt/CVI5pXCr.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"182-sTre8Y1/vBiay1HWFeNP/cSyCUw\"",
"mtime": "2026-02-01T18:20:00.721Z",
"size": 386,
"path": "../public/_nuxt/CVI5pXCr.js"
},
"/_nuxt/CWiRiNxu.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"536-V7pnI+3Sjyp2KHOaT66e/HkLQoI\"",
"mtime": "2026-02-01T18:20:00.721Z",
"size": 1334,
"path": "../public/_nuxt/CWiRiNxu.js"
},
"/_nuxt/CYcXPVnD.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"8576-kTDttlE6sTgLo7/reAsUuTBGtOE\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 34166,
"path": "../public/_nuxt/CYcXPVnD.js"
},
"/_nuxt/C_nZn2_k.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5f4-DOyMXjJ9Vv2J9RZA/+SQRhzvJEM\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 1524,
"path": "../public/_nuxt/C_nZn2_k.js"
},
"/_nuxt/CbE8wWOc.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"56d-ZoCYcqSBX3Xu5qkiOivr5J/zJ/o\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 1389,
"path": "../public/_nuxt/CbE8wWOc.js"
},
"/_nuxt/CccLFIOq.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3a5e-d7i1UA0swiUWWyUWgMkx4tGnBvs\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 14942,
"path": "../public/_nuxt/CccLFIOq.js"
},
"/_nuxt/CctEUKIS.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1381-MNa4mb5YW6XeVfdWDW+gMiX9Xx4\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 4993,
"path": "../public/_nuxt/CctEUKIS.js"
},
"/_nuxt/CdpDT1_s.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"668-bhj77LAy2mnPTpv8Obgc+vwQ0Dc\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 1640,
"path": "../public/_nuxt/CdpDT1_s.js"
},
"/_nuxt/Cf09OEMK.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"4c8-Nqz167s+i7KJV2bzMAXtU7ddZeQ\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 1224,
"path": "../public/_nuxt/Cf09OEMK.js"
},
"/_nuxt/CfQT9Pjy.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"8a9-0pzvda6WGF/b4Ub66dwYHY6Pcl8\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 2217,
"path": "../public/_nuxt/CfQT9Pjy.js"
},
"/_nuxt/Cfn77cg9.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"70c-J2aaLHiEnAljMscsBEaQyYhiE1I\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 1804,
"path": "../public/_nuxt/Cfn77cg9.js"
},
"/_nuxt/Cg4PvGMM.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2d5-Nd/gICcruI21wL3ymZTBAkrQFlI\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 725,
"path": "../public/_nuxt/Cg4PvGMM.js"
},
"/_nuxt/Cgrawfgk.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1923-B6P7cjKFsGG/nOZYpOLy/AqRDSk\"",
"mtime": "2026-02-01T18:20:00.722Z",
"size": 6435,
"path": "../public/_nuxt/Cgrawfgk.js"
},
"/_nuxt/ChangeLanguage.SqR8ZyGJ.css": {
"type": "text/css; charset=utf-8",
"etag": "\"db-/soqtO9yrVhF4eX7wR2xWjjiWKw\"",
"mtime": "2026-02-01T18:20:00.723Z",
"size": 219,
"path": "../public/_nuxt/ChangeLanguage.SqR8ZyGJ.css"
},
"/_nuxt/CiBFxzGs.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"fc9-HL4jnG2QLvEqakczYfkV+X5k23g\"",
"mtime": "2026-02-01T18:20:00.723Z",
"size": 4041,
"path": "../public/_nuxt/CiBFxzGs.js"
},
"/_nuxt/CiRz__JV.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"99-qhKw3m9GqXGEbY3A3QFV5fvgJXw\"",
"mtime": "2026-02-01T18:20:00.723Z",
"size": 153,
"path": "../public/_nuxt/CiRz__JV.js"
},
"/_nuxt/Cj99RmFE.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"66-DFgMGaybi/ROxJ7GnJsRDtFyUFk\"",
"mtime": "2026-02-01T18:20:00.723Z",
"size": 102,
"path": "../public/_nuxt/Cj99RmFE.js"
},
"/_nuxt/CjA4i-tX.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"584-Gd3qvnpDjOHKKcPz7eo1+iGH5Dg\"",
"mtime": "2026-02-01T18:20:00.723Z",
"size": 1412,
"path": "../public/_nuxt/CjA4i-tX.js"
},
"/_nuxt/Ck7xxMC2.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"538-F8rqPhN1+wx6IMqizZYhMTUnTZo\"",
"mtime": "2026-02-01T18:20:00.723Z",
"size": 1336,
"path": "../public/_nuxt/Ck7xxMC2.js"
},
"/_nuxt/CmSk0O2d.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"321-bksveQcryRYq2aMvRt28hY2dqbA\"",
"mtime": "2026-02-01T18:20:00.723Z",
"size": 801,
"path": "../public/_nuxt/CmSk0O2d.js"
},
"/_nuxt/Co6fEKNi.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"557-pGrpzqtTutLA4BNzD2KDORcvU3E\"",
"mtime": "2026-02-01T18:20:00.723Z",
"size": 1367,
"path": "../public/_nuxt/Co6fEKNi.js"
},
"/_nuxt/CqL7MJb4.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"43b-edyejey747/STndhIUNiPL5CVZ8\"",
"mtime": "2026-02-01T18:20:00.724Z",
"size": 1083,
"path": "../public/_nuxt/CqL7MJb4.js"
},
"/_nuxt/Cq497dur.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1389e-+Uf1OiRF3G3zjDUXch1++4XdFVg\"",
"mtime": "2026-02-01T18:20:00.724Z",
"size": 80030,
"path": "../public/_nuxt/Cq497dur.js"
},
"/_nuxt/CscEAC8U.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"323-TaBVHHrjh0oI0mCOlGjxICtgdjQ\"",
"mtime": "2026-02-01T18:20:00.724Z",
"size": 803,
"path": "../public/_nuxt/CscEAC8U.js"
},
"/_nuxt/CqMGdh3i.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"ada0c-x1W3OPJvSPy2D9PZJySBJcwtzHU\"",
"mtime": "2026-02-01T18:20:00.727Z",
"size": 711180,
"path": "../public/_nuxt/CqMGdh3i.js"
},
"/_nuxt/CseG1518.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"761-N32Zs2R+al/K7FLk9WyF7sVDesA\"",
"mtime": "2026-02-01T18:20:00.724Z",
"size": 1889,
"path": "../public/_nuxt/CseG1518.js"
},
"/_nuxt/CvzxW4k7.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"18e-bEWnxuYhZESqKyr4amza0FwjGiA\"",
"mtime": "2026-02-01T18:20:00.724Z",
"size": 398,
"path": "../public/_nuxt/CvzxW4k7.js"
},
"/_nuxt/CwPuFVPM.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"84d3-Y3Sg4C9rog7HF/IQLG1GdFzyDrI\"",
"mtime": "2026-02-01T18:20:00.724Z",
"size": 34003,
"path": "../public/_nuxt/CwPuFVPM.js"
},
"/_nuxt/Czkt-H4M.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"224-kzvwdv+n2xFKfKSoSE73IjL1OA0\"",
"mtime": "2026-02-01T18:20:00.725Z",
"size": 548,
"path": "../public/_nuxt/Czkt-H4M.js"
},
"/_nuxt/D-bUn136.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"826-HELXContTX53kotsbXRauFQdpOA\"",
"mtime": "2026-02-01T18:20:00.726Z",
"size": 2086,
"path": "../public/_nuxt/D-bUn136.js"
},
"/_nuxt/D49GBPmW.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3c95-voQ3AsjPQp5H0F49FRzsIRbjIkE\"",
"mtime": "2026-02-01T18:20:00.725Z",
"size": 15509,
"path": "../public/_nuxt/D49GBPmW.js"
},
"/_nuxt/D50Dwl_A.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"a357-Vp3yTBVaXbNmHVVNxKfFeUEu5+w\"",
"mtime": "2026-02-01T18:20:00.726Z",
"size": 41815,
"path": "../public/_nuxt/D50Dwl_A.js"
},
"/_nuxt/D6qJbdzf.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1e33-tyd13UYn5QbogttolxBC4esTnL8\"",
"mtime": "2026-02-01T18:20:00.727Z",
"size": 7731,
"path": "../public/_nuxt/D6qJbdzf.js"
},
"/_nuxt/D71_8iAW.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"10a0-7Ii9gb41zQDj3BeKrivW5fyb/VM\"",
"mtime": "2026-02-01T18:20:00.728Z",
"size": 4256,
"path": "../public/_nuxt/D71_8iAW.js"
},
"/_nuxt/DAhN-qpf.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"29d-KWexmgE+TtRyVn4yU9AdOevFYjg\"",
"mtime": "2026-02-01T18:20:00.729Z",
"size": 669,
"path": "../public/_nuxt/DAhN-qpf.js"
},
"/_nuxt/DAvy-kcj.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1826-4nV8vk1y8xKXZbq7KORU2wAFIM0\"",
"mtime": "2026-02-01T18:20:00.728Z",
"size": 6182,
"path": "../public/_nuxt/DAvy-kcj.js"
},
"/_nuxt/DAm35wCk.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"c27d-6L8tnj6Mhc5RtnrLTBPaQ/vGMZg\"",
"mtime": "2026-02-01T18:20:00.728Z",
"size": 49789,
"path": "../public/_nuxt/DAm35wCk.js"
},
"/_nuxt/DB_tx3mi.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"69-296dK9oRgpikFC+nylyLR4Xi8mo\"",
"mtime": "2026-02-01T18:20:00.729Z",
"size": 105,
"path": "../public/_nuxt/DB_tx3mi.js"
},
"/_nuxt/DDGZ6s1v.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"22d-2P7Ahry9aTGnCxOwzhsz2emIooQ\"",
"mtime": "2026-02-01T18:20:00.729Z",
"size": 557,
"path": "../public/_nuxt/DDGZ6s1v.js"
},
"/_nuxt/DBJjpm-m.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2ab6-xxQ4khlInK5QzBTJs0DfZGkqrT8\"",
"mtime": "2026-02-01T18:20:00.729Z",
"size": 10934,
"path": "../public/_nuxt/DBJjpm-m.js"
},
"/_nuxt/DDpy-nxA.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"26a-eyghaDhFwt/v77+iUy+c6UX379o\"",
"mtime": "2026-02-01T18:20:00.729Z",
"size": 618,
"path": "../public/_nuxt/DDpy-nxA.js"
},
"/_nuxt/DFqTtjB6.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1d9-Mw9HeejEJbNDyuF9DUGyop+I5TQ\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 473,
"path": "../public/_nuxt/DFqTtjB6.js"
},
"/_nuxt/D63dcV7l.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"51a8a-8uxugJqJNKd3q8oMh5h6r0BE8PM\"",
"mtime": "2026-02-01T18:20:00.729Z",
"size": 334474,
"path": "../public/_nuxt/D63dcV7l.js"
},
"/_nuxt/DHJyh7uc.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"176e-VJ1P/vdsmk0/rsHnSH+rjReaB4U\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 5998,
"path": "../public/_nuxt/DHJyh7uc.js"
},
"/_nuxt/DLaLWwro.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"cf7-gF9jr8oZI0egHHYZvkk5H/mQ6lQ\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 3319,
"path": "../public/_nuxt/DLaLWwro.js"
},
"/_nuxt/DMmzgEFm.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"682a-AVdJ2jdrgMxbP7qGjLImTiqypGU\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 26666,
"path": "../public/_nuxt/DMmzgEFm.js"
},
"/_nuxt/DNX20LV1.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"111-B6v7frO4GfjRiOkIrnrYWTpDJQA\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 273,
"path": "../public/_nuxt/DNX20LV1.js"
},
"/_nuxt/DNyUaj5D.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"63-ruS2GzOZBCVnNIxeq4QHYgzvICQ\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 99,
"path": "../public/_nuxt/DNyUaj5D.js"
},
"/_nuxt/Cz0ze3dq.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"c631a-Fs88kpr9020XK5JT81/GK8dpSik\"",
"mtime": "2026-02-01T18:20:00.729Z",
"size": 811802,
"path": "../public/_nuxt/Cz0ze3dq.js"
},
"/_nuxt/DPBAe1pF.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1a5-K1MDi1mQ8zI1aLY8Olxf7NTxHOo\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 421,
"path": "../public/_nuxt/DPBAe1pF.js"
},
"/_nuxt/DPa5KYdM.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"f90-c0NWcT0iVEvcvf8dCj4zR46rn+Y\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 3984,
"path": "../public/_nuxt/DPa5KYdM.js"
},
"/_nuxt/DTMKzxgu.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"dc0-MR1uvc9QTbh2InOFxeF88lqlafg\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 3520,
"path": "../public/_nuxt/DTMKzxgu.js"
},
"/_nuxt/DTSJZQQu.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2c8e-bTmmWL8vfCSBbxuhfYw+8bVYSLU\"",
"mtime": "2026-02-01T18:20:00.730Z",
"size": 11406,
"path": "../public/_nuxt/DTSJZQQu.js"
},
"/_nuxt/DTSeBhIu.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"53e-I4oXsBGeEQrSCj1gvYJiWxXMWas\"",
"mtime": "2026-02-01T18:20:00.731Z",
"size": 1342,
"path": "../public/_nuxt/DTSeBhIu.js"
},
"/_nuxt/DW_bFPRe.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"c2-0iKBEFwOAKPUcd9npqVSGUyoiaQ\"",
"mtime": "2026-02-01T18:20:00.731Z",
"size": 194,
"path": "../public/_nuxt/DW_bFPRe.js"
},
"/_nuxt/DZhRMey9.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"142-2O+IRSvUblZGdtfsZtGhpIUNwwg\"",
"mtime": "2026-02-01T18:20:00.731Z",
"size": 322,
"path": "../public/_nuxt/DZhRMey9.js"
},
"/_nuxt/DZkwk9zE.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3b73-0WEhgFMPBTGGe76daCJW/+/PRsA\"",
"mtime": "2026-02-01T18:20:00.731Z",
"size": 15219,
"path": "../public/_nuxt/DZkwk9zE.js"
},
"/_nuxt/DZx9IK1L.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"8dcf-1OZbz2ZITngi+KyRs+a4UnOjn7k\"",
"mtime": "2026-02-01T18:20:00.731Z",
"size": 36303,
"path": "../public/_nuxt/DZx9IK1L.js"
},
"/_nuxt/DaQ603WX.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"29b-KHDZ7K1ffbHQ6xIDsiWihRptJzY\"",
"mtime": "2026-02-01T18:20:00.731Z",
"size": 667,
"path": "../public/_nuxt/DaQ603WX.js"
},
"/_nuxt/Dc3VSVc9.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"741-YMo9w3m/x6OzkB0JwuK5Sa+oipY\"",
"mtime": "2026-02-01T18:20:00.731Z",
"size": 1857,
"path": "../public/_nuxt/Dc3VSVc9.js"
},
"/_nuxt/Dcwat7P_.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2348-iPBOhSpei+Qao5OIgFiQ9gU6IEU\"",
"mtime": "2026-02-01T18:20:00.731Z",
"size": 9032,
"path": "../public/_nuxt/Dcwat7P_.js"
},
"/_nuxt/DdIH2Hs4.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"419-vegUI2ZhY1rAVPu5L9AmpETc7Cg\"",
"mtime": "2026-02-01T18:20:00.732Z",
"size": 1049,
"path": "../public/_nuxt/DdIH2Hs4.js"
},
"/_nuxt/DeDwh7lW.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"12a-+FqjlvmHMYbZnN0lGkE+TLQlIdg\"",
"mtime": "2026-02-01T18:20:00.732Z",
"size": 298,
"path": "../public/_nuxt/DeDwh7lW.js"
},
"/_nuxt/DfWSBlt2.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"278c-boiM1KfAviKVdf04beDo0Fx3gdI\"",
"mtime": "2026-02-01T18:20:00.732Z",
"size": 10124,
"path": "../public/_nuxt/DfWSBlt2.js"
},
"/_nuxt/DgIR2C0w.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"6b-CkGCVwJt5PlEvTpT9MUOrhok6HA\"",
"mtime": "2026-02-01T18:20:00.732Z",
"size": 107,
"path": "../public/_nuxt/DgIR2C0w.js"
},
"/_nuxt/DhkYPUkr.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"13d6a-GLl36McNLwT/I0b2gIaICDHGzh8\"",
"mtime": "2026-02-01T18:20:00.732Z",
"size": 81258,
"path": "../public/_nuxt/DhkYPUkr.js"
},
"/_nuxt/DhpIxLUX.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"11e-FZ/pKfVvqjJJ0PyQF302Q/UEVY4\"",
"mtime": "2026-02-01T18:20:00.732Z",
"size": 286,
"path": "../public/_nuxt/DhpIxLUX.js"
},
"/_nuxt/DjOFqycQ.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"901-gOmFKs22AoZ1oUTZdCZfpTbLDzo\"",
"mtime": "2026-02-01T18:20:00.732Z",
"size": 2305,
"path": "../public/_nuxt/DjOFqycQ.js"
},
"/_nuxt/DjPgbN4R.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"10b00-n4n5QdyYsrKcLQNxrBlxLjxBTf4\"",
"mtime": "2026-02-01T18:20:00.732Z",
"size": 68352,
"path": "../public/_nuxt/DjPgbN4R.js"
},
"/_nuxt/DjZ4zy4Q.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"20ac-2ElRCS9R9vHWeiTpskQvP+9YCNk\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 8364,
"path": "../public/_nuxt/DjZ4zy4Q.js"
},
"/_nuxt/DjvBa-1E.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3e-pUclDn9an7oRNGoPIMWjc1WHxMY\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 62,
"path": "../public/_nuxt/DjvBa-1E.js"
},
"/_nuxt/Dk3GGXWm.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5af-7FLaf5ikrTnfKjqhOg/mUfh8dM0\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 1455,
"path": "../public/_nuxt/Dk3GGXWm.js"
},
"/_nuxt/DkKOCi34.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"ef9-aKYkiVYCNSDwr275MbKpSuwcT60\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 3833,
"path": "../public/_nuxt/DkKOCi34.js"
},
"/_nuxt/Dl40SX0Q.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3c28-2u4CEu5W6et7Db5TRtxj9X2AXZM\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 15400,
"path": "../public/_nuxt/Dl40SX0Q.js"
},
"/_nuxt/DlAUqK2U.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5b-eFCz/UrraTh721pgAl0VxBNR1es\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 91,
"path": "../public/_nuxt/DlAUqK2U.js"
},
"/_nuxt/Dqz_u0Ik.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"10cc-SjkR4cLzAeHzy+GgXcmdayIi80o\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 4300,
"path": "../public/_nuxt/Dqz_u0Ik.js"
},
"/_nuxt/DrHaYhD4.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"9c-iWUbD/vpgNmopjCzHE9jbcsfBHI\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 156,
"path": "../public/_nuxt/DrHaYhD4.js"
},
"/_nuxt/Dsse3M_6.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"ecc-mjdKtZc/PsU054dCNYqBqFnjqjU\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 3788,
"path": "../public/_nuxt/Dsse3M_6.js"
},
"/_nuxt/DtM3W8XB.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"808-ByU/Id06SBM1J2X5tIWVgm5nDFg\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 2056,
"path": "../public/_nuxt/DtM3W8XB.js"
},
"/_nuxt/Dt_JUmG4.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"475-KAq3dlq9v1InL4yARPaF01m9ruk\"",
"mtime": "2026-02-01T18:20:00.733Z",
"size": 1141,
"path": "../public/_nuxt/Dt_JUmG4.js"
},
"/_nuxt/DusYBPLY.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"45f-kFFKFDmi2YEgEMrU6pB0zKJ/9HA\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 1119,
"path": "../public/_nuxt/DusYBPLY.js"
},
"/_nuxt/DxbAgBj2.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1f8-SE/q1sixTOJegsA6nn7GGC3UBxw\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 504,
"path": "../public/_nuxt/DxbAgBj2.js"
},
"/_nuxt/Dxed3wg3.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"9b3f-GqZ3rwXgVzZHGrZZZPZUaMPDfUA\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 39743,
"path": "../public/_nuxt/Dxed3wg3.js"
},
"/_nuxt/FhE5Sp8w.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"182-sTre8Y1/vBiay1HWFeNP/cSyCUw\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 386,
"path": "../public/_nuxt/FhE5Sp8w.js"
},
"/_nuxt/FullScreenStories.vHiwkct6.css": {
"type": "text/css; charset=utf-8",
"etag": "\"1dc-huoNPn00loXCF5z66U8JFgeFYRA\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 476,
"path": "../public/_nuxt/FullScreenStories.vHiwkct6.css"
},
"/_nuxt/GsKQ0she.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"16d-MZ0MahoxXimkhdqf2AsBN3uKFIM\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 365,
"path": "../public/_nuxt/GsKQ0she.js"
},
"/_nuxt/HKdg-cnI.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"895-3LQyuIDKq00EbbPJq5EYUDrm2G0\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 2197,
"path": "../public/_nuxt/HKdg-cnI.js"
},
"/_nuxt/Highlights.LsmMR9Cv.css": {
"type": "text/css; charset=utf-8",
"etag": "\"835-mpWHtvP0KFqCCNUoDfXV/angdU4\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 2101,
"path": "../public/_nuxt/Highlights.LsmMR9Cv.css"
},
"/_nuxt/IRANSansWeb_FaNum.BLA2CtIC.woff2": {
"type": "font/woff2",
"etag": "\"6d28-AufINCNdNZVNkWiYA6/Wp9W2wE4\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 27944,
"path": "../public/_nuxt/IRANSansWeb_FaNum.BLA2CtIC.woff2"
},
"/_nuxt/IRANSansWeb_FaNum_Black.BFAfOkt4.woff2": {
"type": "font/woff2",
"etag": "\"64b0-HsX/CIG11T5k32Pl6NhLJvroFIQ\"",
"mtime": "2026-02-01T18:20:00.734Z",
"size": 25776,
"path": "../public/_nuxt/IRANSansWeb_FaNum_Black.BFAfOkt4.woff2"
},
"/_nuxt/IRANSansWeb_FaNum_Bold.C8urhp07.woff2": {
"type": "font/woff2",
"etag": "\"6ab4-G8S3CXdFmh+Mk2th3Gy2+bcAPQQ\"",
"mtime": "2026-02-01T18:20:00.735Z",
"size": 27316,
"path": "../public/_nuxt/IRANSansWeb_FaNum_Bold.C8urhp07.woff2"
},
"/_nuxt/IRANSansWeb_FaNum_Light.B637MNLG.woff2": {
"type": "font/woff2",
"etag": "\"6ef0-0ZuVZfSKf1HbzDmvdDZdESRzFOs\"",
"mtime": "2026-02-01T18:20:00.735Z",
"size": 28400,
"path": "../public/_nuxt/IRANSansWeb_FaNum_Light.B637MNLG.woff2"
},
"/_nuxt/IRANSansWeb_FaNum_Medium.C2CKjrKB.woff2": {
"type": "font/woff2",
"etag": "\"64b8-6V1kQDm0NUXner/ubiM2u7MPIyY\"",
"mtime": "2026-02-01T18:20:00.735Z",
"size": 25784,
"path": "../public/_nuxt/IRANSansWeb_FaNum_Medium.C2CKjrKB.woff2"
},
"/_nuxt/IndexImageUploader.DpcjnqB-.css": {
"type": "text/css; charset=utf-8",
"etag": "\"403-ew658FHfNjEVkBiQn54guD1lUY8\"",
"mtime": "2026-02-01T18:20:00.735Z",
"size": 1027,
"path": "../public/_nuxt/IndexImageUploader.DpcjnqB-.css"
},
"/_nuxt/InstaInput.CKJcpevC.css": {
"type": "text/css; charset=utf-8",
"etag": "\"2c9-ejPNKqQSUBeHslcjZGmzzhN5AL8\"",
"mtime": "2026-02-01T18:20:00.735Z",
"size": 713,
"path": "../public/_nuxt/InstaInput.CKJcpevC.css"
},
"/_nuxt/IRANSansWeb_FaNum_UltraLight.hW-WDKY9.woff2": {
"type": "font/woff2",
"etag": "\"6e30-P6kpI7ovgRddffWzkv2xSmEYEnw\"",
"mtime": "2026-02-01T18:20:00.735Z",
"size": 28208,
"path": "../public/_nuxt/IRANSansWeb_FaNum_UltraLight.hW-WDKY9.woff2"
},
"/_nuxt/InstagramSans-Regular.lx8vagd-.woff2": {
"type": "font/woff2",
"etag": "\"6624-dfDOBaMvn8M5btrBG7KeVQ/PsSM\"",
"mtime": "2026-02-01T18:20:00.735Z",
"size": 26148,
"path": "../public/_nuxt/InstagramSans-Regular.lx8vagd-.woff2"
},
"/_nuxt/J_SE_Pot.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"20df-9I+Le0DkT0K/+5EmCDMqAzk7sQA\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 8415,
"path": "../public/_nuxt/J_SE_Pot.js"
},
"/_nuxt/Jy21wGDl.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5be-PU4EDZpli0+zfWxtmFFAoZp4KKI\"",
"mtime": "2026-02-01T18:20:00.735Z",
"size": 1470,
"path": "../public/_nuxt/Jy21wGDl.js"
},
"/_nuxt/M6PXZ8u8.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"564-AXO4IqRcZGxfQbJGdC+L5+n472g\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 1380,
"path": "../public/_nuxt/M6PXZ8u8.js"
},
"/_nuxt/NZsX9aM_.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"a37-f9ifz614+KXu/rg3fvCXlCiqGzE\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 2615,
"path": "../public/_nuxt/NZsX9aM_.js"
},
"/_nuxt/OrderDetail.DmLQfC-y.css": {
"type": "text/css; charset=utf-8",
"etag": "\"da-U8MIeVPd1Z/ya8vzw0BPBLBi5lE\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 218,
"path": "../public/_nuxt/OrderDetail.DmLQfC-y.css"
},
"/_nuxt/PibADJKd.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"764-vfEf0xgGWWIUwzg1SlXu0uj7E0A\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 1892,
"path": "../public/_nuxt/PibADJKd.js"
},
"/_nuxt/PostCardSkeleton.DUP1THnB.css": {
"type": "text/css; charset=utf-8",
"etag": "\"118-xbaVvqFJTyCt4PBCKTzbBvfWXY4\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 280,
"path": "../public/_nuxt/PostCardSkeleton.DUP1THnB.css"
},
"/_nuxt/ProductSearchList.CBryqxih.css": {
"type": "text/css; charset=utf-8",
"etag": "\"1d5-r4s0eYcz6HRAyZjcgHsXDVNy0io\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 469,
"path": "../public/_nuxt/ProductSearchList.CBryqxih.css"
},
"/_nuxt/ProfilePictureEditor.Bt0HlTI-.css": {
"type": "text/css; charset=utf-8",
"etag": "\"1ea-C8v0tA2nLtBEo1irhyrG7YVc8TY\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 490,
"path": "../public/_nuxt/ProfilePictureEditor.Bt0HlTI-.css"
},
"/_nuxt/QVWSnFgG.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2299-6G3lasZa92cvIoPHobgtnqnw8e8\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 8857,
"path": "../public/_nuxt/QVWSnFgG.js"
},
"/_nuxt/QaRcfXiG.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2904-b0oifOEqFlBQREsP4vakurHrA48\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 10500,
"path": "../public/_nuxt/QaRcfXiG.js"
},
"/_nuxt/Qo3oHkEo.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"b08-27KBGKUAGRvtM0MLdP5X0hjdJPo\"",
"mtime": "2026-02-01T18:20:00.736Z",
"size": 2824,
"path": "../public/_nuxt/Qo3oHkEo.js"
},
"/_nuxt/QyIUJRdz.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"6968-OqE1e/IcXxeX7lKKAGGh70hdFfs\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 26984,
"path": "../public/_nuxt/QyIUJRdz.js"
},
"/_nuxt/RjBF6GJC.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2fe-AoM0ittb0SZrLW6BAa7ogv012AQ\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 766,
"path": "../public/_nuxt/RjBF6GJC.js"
},
"/_nuxt/StepNumber.DZuSkTLD.css": {
"type": "text/css; charset=utf-8",
"etag": "\"37-nJ8da78bmS2Xvwa5IB9uwrgEQAw\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 55,
"path": "../public/_nuxt/StepNumber.DZuSkTLD.css"
},
"/_nuxt/TR_VMgQV.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"a5f-K6Z3i1eZsS/6OIfpPJfva6NV83k\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 2655,
"path": "../public/_nuxt/TR_VMgQV.js"
},
"/_nuxt/TPJwKAsh.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"48ca-3thhh+UuVyS9sVuQxaGRvZE/0zY\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 18634,
"path": "../public/_nuxt/TPJwKAsh.js"
},
"/_nuxt/TS67Dh9D.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"47a-kV87J08OS27uZbPYh2+S6LyuW7c\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 1146,
"path": "../public/_nuxt/TS67Dh9D.js"
},
"/_nuxt/U1b2gnpv.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3bc-f4xPvWT3xzJRSFSa10RFhSJgJ4o\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 956,
"path": "../public/_nuxt/U1b2gnpv.js"
},
"/_nuxt/UNgMgOvH.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"855-FOL6QHe8CgZSLo5xm6SEDfJj32s\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 2133,
"path": "../public/_nuxt/UNgMgOvH.js"
},
"/_nuxt/UZViNtu6.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"814-SfD7pondMjw6pnHQrDExAwcTKEk\"",
"mtime": "2026-02-01T18:20:00.737Z",
"size": 2068,
"path": "../public/_nuxt/UZViNtu6.js"
},
"/_nuxt/UqQNGnEi.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"a6-iod54C73C1yEdMTvEIXBgrY+0WU\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 166,
"path": "../public/_nuxt/UqQNGnEi.js"
},
"/_nuxt/UserProfilePic.CvlRpmYy.css": {
"type": "text/css; charset=utf-8",
"etag": "\"23d-IHH/HFl/tT50/7UpMiOp0y3Tc0k\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 573,
"path": "../public/_nuxt/UserProfilePic.CvlRpmYy.css"
},
"/_nuxt/VjQZb-bn.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"252-3QCi8Simd1TMDiGndydnzVEYeDw\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 594,
"path": "../public/_nuxt/VjQZb-bn.js"
},
"/_nuxt/WDsVA47l.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d96-4yzh4dZ+2wIWaLtWLBWtewz/Y9g\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 3478,
"path": "../public/_nuxt/WDsVA47l.js"
},
"/_nuxt/WbDqYTxE.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2eb-X+jgnaejDWU+nY3ELtK0kFUFfXE\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 747,
"path": "../public/_nuxt/WbDqYTxE.js"
},
"/_nuxt/YUaVt_Ra.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1764-yx353Zj5kLjCSuCvUdnyO7mJq+0\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 5988,
"path": "../public/_nuxt/YUaVt_Ra.js"
},
"/_nuxt/Ze6BhNjy.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5d7-pxx8aRci+TTTkD3eQk/2i/0XsdA\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 1495,
"path": "../public/_nuxt/Ze6BhNjy.js"
},
"/_nuxt/ZxkccWh1.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"5db-6hZwh7zjX3LxJwyJll4fNYKroaA\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 1499,
"path": "../public/_nuxt/ZxkccWh1.js"
},
"/_nuxt/_id_.BhPp45mc.css": {
"type": "text/css; charset=utf-8",
"etag": "\"575-+Dk8naAyunbf7iS8G7t6VvO9LR0\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 1397,
"path": "../public/_nuxt/_id_.BhPp45mc.css"
},
"/_nuxt/_id_.Bri8pDyb.css": {
"type": "text/css; charset=utf-8",
"etag": "\"21f4-xClHcgxX1L/bUtaqRwy2FMQnoZY\"",
"mtime": "2026-02-01T18:20:00.738Z",
"size": 8692,
"path": "../public/_nuxt/_id_.Bri8pDyb.css"
},
"/_nuxt/_id_.DZwRw4ht.css": {
"type": "text/css; charset=utf-8",
"etag": "\"49-GsWJ0jWsD/Xzq43Ni998bhtnuMc\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 73,
"path": "../public/_nuxt/_id_.DZwRw4ht.css"
},
"/_nuxt/add_address.CLIjEQ3m.svg": {
"type": "image/svg+xml",
"etag": "\"2065-TVdj+08mJDsEeCQ49Y5y2mTQsRI\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 8293,
"path": "../public/_nuxt/add_address.CLIjEQ3m.svg"
},
"/_nuxt/ahfKITsJ.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"8a83-2vBlMJCzmFDjGE7+dGJtNWHqMW0\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 35459,
"path": "../public/_nuxt/ahfKITsJ.js"
},
"/_nuxt/aqPrlV9C.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"111f-CEFVtW29OVaLTZqrqcg5mWjadTo\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 4383,
"path": "../public/_nuxt/aqPrlV9C.js"
},
"/_nuxt/b1NcV7cH.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"54b7-Ngj1cZDDeN0QIg/1QDTZQxQPtcY\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 21687,
"path": "../public/_nuxt/b1NcV7cH.js"
},
"/_nuxt/cVxvsw-g.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"321d-bwt6RSqBR3qbQpiU+0qIxYPcbVE\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 12829,
"path": "../public/_nuxt/cVxvsw-g.js"
},
"/_nuxt/dOhigEsU.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"250-D2e4FHJCxOl1DdhKNX/21xfpuXs\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 592,
"path": "../public/_nuxt/dOhigEsU.js"
},
"/_nuxt/default.CI-HhjVj.css": {
"type": "text/css; charset=utf-8",
"etag": "\"8a-G3gH3jQ/e9nR9/oGfkQCS2nlyUA\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 138,
"path": "../public/_nuxt/default.CI-HhjVj.css"
},
"/_nuxt/delivery-box-light.Cz31HXNr.svg": {
"type": "image/svg+xml",
"etag": "\"676e-3Tw1qfPK/WIVExF3llg/zigQuxk\"",
"mtime": "2026-02-01T18:20:00.739Z",
"size": 26478,
"path": "../public/_nuxt/delivery-box-light.Cz31HXNr.svg"
},
"/_nuxt/delivery-box.DZAXZSja.svg": {
"type": "image/svg+xml",
"etag": "\"51fe-9IJQ/qOXlPUqwsjKQoJjxa0zfSg\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 20990,
"path": "../public/_nuxt/delivery-box.DZAXZSja.svg"
},
"/_nuxt/detail_message.3FMAeztm.css": {
"type": "text/css; charset=utf-8",
"etag": "\"96d-keUAZf+0YtPzsABDw+xhSXOVZYg\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 2413,
"path": "../public/_nuxt/detail_message.3FMAeztm.css"
},
"/_nuxt/empty_cart.BKAjJ1Mc.svg": {
"type": "image/svg+xml",
"etag": "\"3e0b-CktqEVC9ZroTtLTMTnVXgYkoRTk\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 15883,
"path": "../public/_nuxt/empty_cart.BKAjJ1Mc.svg"
},
"/_nuxt/empty_order.g7yXtwjI.svg": {
"type": "image/svg+xml",
"etag": "\"2574-0+6dEvB63OskqwRjndg7bt/S4gY\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 9588,
"path": "../public/_nuxt/empty_order.g7yXtwjI.svg"
},
"/_nuxt/empty_user.DjvjY29X.png": {
"type": "image/png",
"etag": "\"4d9c-hpW+u7lVdESYj2N+T9ep3yfsTFI\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 19868,
"path": "../public/_nuxt/empty_user.DjvjY29X.png"
},
"/_nuxt/entry.nS7HXGDB.css": {
"type": "text/css; charset=utf-8",
"etag": "\"d83a-uciuXFyQqnSkbGjKEMmVPh7S3Cc\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 55354,
"path": "../public/_nuxt/entry.nS7HXGDB.css"
},
"/_nuxt/error-404._yXoGkXB.css": {
"type": "text/css; charset=utf-8",
"etag": "\"97e-UvhxUpGzrIO+HDYB4qU9Txgu35A\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 2430,
"path": "../public/_nuxt/error-404._yXoGkXB.css"
},
"/_nuxt/error-500.BENb_mjk.css": {
"type": "text/css; charset=utf-8",
"etag": "\"773-BFLUend+w1t3SP3QDB+Z0A0V5pI\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 1907,
"path": "../public/_nuxt/error-500.BENb_mjk.css"
},
"/_nuxt/fkkGvHOC.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"3742-iUSVnMwImdEzLg/M+qk/ER0JaIQ\"",
"mtime": "2026-02-01T18:20:00.740Z",
"size": 14146,
"path": "../public/_nuxt/fkkGvHOC.js"
},
"/_nuxt/gray.CKu3bSoY.jpg": {
"type": "image/jpeg",
"etag": "\"fcb0-EQD5R6cQi3Ex/MO/IOwpFRl5dHo\"",
"mtime": "2026-02-01T18:20:00.741Z",
"size": 64688,
"path": "../public/_nuxt/gray.CKu3bSoY.jpg"
},
"/_nuxt/hRWhkcZm.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1a05-2KPX6TSLpuv67pny8gMmz1KWkI0\"",
"mtime": "2026-02-01T18:20:00.741Z",
"size": 6661,
"path": "../public/_nuxt/hRWhkcZm.js"
},
"/_nuxt/iQOeP5ON.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"6d5-NmUsSeJtr2Eru3JlTc5ogHix5h8\"",
"mtime": "2026-02-01T18:20:00.741Z",
"size": 1749,
"path": "../public/_nuxt/iQOeP5ON.js"
},
"/_nuxt/h3vOCeO2.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"f361d-IjI2MdBGgn3vaJzPTT5r5U+tQG4\"",
"mtime": "2026-02-01T18:20:00.744Z",
"size": 996893,
"path": "../public/_nuxt/h3vOCeO2.js"
},
"/_nuxt/iThYsS9r.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d67f-0TXK9Kd1jXsx27O/8zhujYW87wY\"",
"mtime": "2026-02-01T18:20:00.741Z",
"size": 54911,
"path": "../public/_nuxt/iThYsS9r.js"
},
"/_nuxt/index.3vTMV84N.css": {
"type": "text/css; charset=utf-8",
"etag": "\"a4-XKdrjG2mCp2qzrnNclkIKCYjwNw\"",
"mtime": "2026-02-01T18:20:00.741Z",
"size": 164,
"path": "../public/_nuxt/index.3vTMV84N.css"
},
"/_nuxt/index.BQJEi6hc.css": {
"type": "text/css; charset=utf-8",
"etag": "\"527-b34vgGJ9csqIkxmQXdTLI+z5h14\"",
"mtime": "2026-02-01T18:20:00.741Z",
"size": 1319,
"path": "../public/_nuxt/index.BQJEi6hc.css"
},
"/_nuxt/index.BYVlaXPg.css": {
"type": "text/css; charset=utf-8",
"etag": "\"d73-AYJudlo71gOuedeBJt97ovXIvks\"",
"mtime": "2026-02-01T18:20:00.742Z",
"size": 3443,
"path": "../public/_nuxt/index.BYVlaXPg.css"
},
"/_nuxt/index.Bf6H-IES.css": {
"type": "text/css; charset=utf-8",
"etag": "\"cb-hc+zRbUuPyqV4iMHMn3Isk7m6ew\"",
"mtime": "2026-02-01T18:20:00.742Z",
"size": 203,
"path": "../public/_nuxt/index.Bf6H-IES.css"
},
"/_nuxt/index.BftfFzRd.css": {
"type": "text/css; charset=utf-8",
"etag": "\"d0ea-QCOHhhIlw0r4yg5vP/zb0a1sygU\"",
"mtime": "2026-02-01T18:20:00.742Z",
"size": 53482,
"path": "../public/_nuxt/index.BftfFzRd.css"
},
"/_nuxt/index.Bhk60kEQ.css": {
"type": "text/css; charset=utf-8",
"etag": "\"23a-MjnTKrmZk0M5HpVkKaM6uj/c0h4\"",
"mtime": "2026-02-01T18:20:00.742Z",
"size": 570,
"path": "../public/_nuxt/index.Bhk60kEQ.css"
},
"/_nuxt/index.Bmikpipo.css": {
"type": "text/css; charset=utf-8",
"etag": "\"2a5-ya0JFtZ380bJzamVNGGZz1kgtmo\"",
"mtime": "2026-02-01T18:20:00.742Z",
"size": 677,
"path": "../public/_nuxt/index.Bmikpipo.css"
},
"/_nuxt/index.C4gGGvAh.css": {
"type": "text/css; charset=utf-8",
"etag": "\"1e46-py/5Lz157qiP3Ji4YEGBactrUXQ\"",
"mtime": "2026-02-01T18:20:00.743Z",
"size": 7750,
"path": "../public/_nuxt/index.C4gGGvAh.css"
},
"/_nuxt/index.C6u2Qac4.css": {
"type": "text/css; charset=utf-8",
"etag": "\"726-/NMN92tndeXiLD79QgQT3cByp28\"",
"mtime": "2026-02-01T18:20:00.743Z",
"size": 1830,
"path": "../public/_nuxt/index.C6u2Qac4.css"
},
"/_nuxt/index.C7yq570K.css": {
"type": "text/css; charset=utf-8",
"etag": "\"1af-UScl+PImfMWLKfofBWLMnG1UWSQ\"",
"mtime": "2026-02-01T18:20:00.743Z",
"size": 431,
"path": "../public/_nuxt/index.C7yq570K.css"
},
"/_nuxt/index.CIr5VxXz.css": {
"type": "text/css; charset=utf-8",
"etag": "\"446-nwtTUuTIE1hqF9olT1/qqglO8h8\"",
"mtime": "2026-02-01T18:20:00.743Z",
"size": 1094,
"path": "../public/_nuxt/index.CIr5VxXz.css"
},
"/_nuxt/index.CKnq7F2I.css": {
"type": "text/css; charset=utf-8",
"etag": "\"41a-JIbWSZRhCQfDcvuVYJHyOcVvR1A\"",
"mtime": "2026-02-01T18:20:00.743Z",
"size": 1050,
"path": "../public/_nuxt/index.CKnq7F2I.css"
},
"/_nuxt/index.CNHi-7Ke.css": {
"type": "text/css; charset=utf-8",
"etag": "\"1c6-SJGEax1Jeeb5utTFp8zlYgTipcU\"",
"mtime": "2026-02-01T18:20:00.744Z",
"size": 454,
"path": "../public/_nuxt/index.CNHi-7Ke.css"
},
"/_nuxt/index.CW9Q0sCE.css": {
"type": "text/css; charset=utf-8",
"etag": "\"215-yVQe2cDI8jVVvpEA7fMqXje0xUY\"",
"mtime": "2026-02-01T18:20:00.744Z",
"size": 533,
"path": "../public/_nuxt/index.CW9Q0sCE.css"
},
"/_nuxt/index.Cc-rnC0q.css": {
"type": "text/css; charset=utf-8",
"etag": "\"92-wFGA9+fsnp31w792jq+jXgfRKaA\"",
"mtime": "2026-02-01T18:20:00.744Z",
"size": 146,
"path": "../public/_nuxt/index.Cc-rnC0q.css"
},
"/_nuxt/index.CitrVgdW.css": {
"type": "text/css; charset=utf-8",
"etag": "\"404-xjqkmZV3hwaPNlWv0CTUSUTHWVw\"",
"mtime": "2026-02-01T18:20:00.744Z",
"size": 1028,
"path": "../public/_nuxt/index.CitrVgdW.css"
},
"/_nuxt/index.CokH8qEU.css": {
"type": "text/css; charset=utf-8",
"etag": "\"de-ej7ZhRNjm8PEFOyjGPe7kkgVFnA\"",
"mtime": "2026-02-01T18:20:00.744Z",
"size": 222,
"path": "../public/_nuxt/index.CokH8qEU.css"
},
"/_nuxt/index.D7fFHUgh.css": {
"type": "text/css; charset=utf-8",
"etag": "\"33c-ktIu6lcfz0fqY6eaCfxt1kjqGRI\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 828,
"path": "../public/_nuxt/index.D7fFHUgh.css"
},
"/_nuxt/index.DAwdkd-s.css": {
"type": "text/css; charset=utf-8",
"etag": "\"123-m5LdvZB6bq8PDe2MI4plItqYznY\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 291,
"path": "../public/_nuxt/index.DAwdkd-s.css"
},
"/_nuxt/index.DM60V-SF.css": {
"type": "text/css; charset=utf-8",
"etag": "\"708-8OprntPoTJK9xLqW31433dsUHdE\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 1800,
"path": "../public/_nuxt/index.DM60V-SF.css"
},
"/_nuxt/index.DQQ6m8Ab.css": {
"type": "text/css; charset=utf-8",
"etag": "\"ce-3PTPua5egVEFh1F2iLGaTfShWqU\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 206,
"path": "../public/_nuxt/index.DQQ6m8Ab.css"
},
"/_nuxt/index.DUwLxYAC.css": {
"type": "text/css; charset=utf-8",
"etag": "\"54-ji1TUlO1AHWrE9aqMgYj5gkZIEo\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 84,
"path": "../public/_nuxt/index.DUwLxYAC.css"
},
"/_nuxt/index.Dk4BHL2q.css": {
"type": "text/css; charset=utf-8",
"etag": "\"28e-byk0bmJKkbWCHHHtyqLEWyNgg9M\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 654,
"path": "../public/_nuxt/index.Dk4BHL2q.css"
},
"/_nuxt/index.Jbtftdv_.css": {
"type": "text/css; charset=utf-8",
"etag": "\"5e-s24QML0UUPYKdyiO8luahvSfzd4\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 94,
"path": "../public/_nuxt/index.Jbtftdv_.css"
},
"/_nuxt/index.UdfyQ5iD.css": {
"type": "text/css; charset=utf-8",
"etag": "\"1ee-J2xVkXSiOpr+pIwMEdq7Ba254RQ\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 494,
"path": "../public/_nuxt/index.UdfyQ5iD.css"
},
"/_nuxt/index.aL-dNlg2.css": {
"type": "text/css; charset=utf-8",
"etag": "\"21e-jrShrpy6niE6ssN1287QO5t3Fyk\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 542,
"path": "../public/_nuxt/index.aL-dNlg2.css"
},
"/_nuxt/index.pM9wTB4a.css": {
"type": "text/css; charset=utf-8",
"etag": "\"298-Ik0pVmZrfEYslk8Uhk36qiUg97E\"",
"mtime": "2026-02-01T18:20:00.745Z",
"size": 664,
"path": "../public/_nuxt/index.pM9wTB4a.css"
},
"/_nuxt/j5soqDGf.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"2039-OYpnKlkAVVnmLRPaXNuGmGw+nb4\"",
"mtime": "2026-02-01T18:20:00.746Z",
"size": 8249,
"path": "../public/_nuxt/j5soqDGf.js"
},
"/_nuxt/k0R1zBny.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"59d-dHFhZrS9Y869E5VNTmvo2+3ntOs\"",
"mtime": "2026-02-01T18:20:00.746Z",
"size": 1437,
"path": "../public/_nuxt/k0R1zBny.js"
},
"/_nuxt/ku_oJb-B.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d1e-8XVb8mtp7cuJN9I+W9YGetp6tPU\"",
"mtime": "2026-02-01T18:20:00.746Z",
"size": 3358,
"path": "../public/_nuxt/ku_oJb-B.js"
},
"/_nuxt/kwmA8fCG.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"51b-EnLTRwZRNULtXsVRsFwog6zeRg0\"",
"mtime": "2026-02-01T18:20:00.746Z",
"size": 1307,
"path": "../public/_nuxt/kwmA8fCG.js"
},
"/_nuxt/logo_company.SCj7r8dk.svg": {
"type": "image/svg+xml",
"etag": "\"15e4d-B9BOSKoOo+oh1z7xQROtge4/uCU\"",
"mtime": "2026-02-01T18:20:00.746Z",
"size": 89677,
"path": "../public/_nuxt/logo_company.SCj7r8dk.svg"
},
"/_nuxt/logo_preview.B3D6jfxw.png": {
"type": "image/png",
"etag": "\"d273-+/mQg6af8+4RSupBxM9LyZh/WPU\"",
"mtime": "2026-02-01T18:20:00.746Z",
"size": 53875,
"path": "../public/_nuxt/logo_preview.B3D6jfxw.png"
},
"/_nuxt/moreOptionProduct.Cv4yblbJ.css": {
"type": "text/css; charset=utf-8",
"etag": "\"291-YegEv2SVtbgrIMraKeZ1tkFdoUg\"",
"mtime": "2026-02-01T18:20:00.746Z",
"size": 657,
"path": "../public/_nuxt/moreOptionProduct.Cv4yblbJ.css"
},
"/_nuxt/not_found.CbOIXISv.svg": {
"type": "image/svg+xml",
"etag": "\"2ea4-KBnbqFZ1Yh8eIX22tmgUkbUdnCc\"",
"mtime": "2026-02-01T18:20:00.746Z",
"size": 11940,
"path": "../public/_nuxt/not_found.CbOIXISv.svg"
},
"/_nuxt/numbro.DPJQrSl7.css": {
"type": "text/css; charset=utf-8",
"etag": "\"12c-kXRFKaTkkv9jvIVxKdlNiKRNIK0\"",
"mtime": "2026-02-01T18:20:00.747Z",
"size": 300,
"path": "../public/_nuxt/numbro.DPJQrSl7.css"
},
"/_nuxt/oVCzkWoK.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"1ca5-Sho2LQot4FSzBOHte914M2asekU\"",
"mtime": "2026-02-01T18:20:00.747Z",
"size": 7333,
"path": "../public/_nuxt/oVCzkWoK.js"
},
"/_nuxt/o___hXeN.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"32a7-ocHl+1oEyWGZQFReAEmz/d+LZgg\"",
"mtime": "2026-02-01T18:20:00.747Z",
"size": 12967,
"path": "../public/_nuxt/o___hXeN.js"
},
"/_nuxt/pagination.DioOUj-L.css": {
"type": "text/css; charset=utf-8",
"etag": "\"1416-vgwseOLWAUNXTya00+gCh95xqjs\"",
"mtime": "2026-02-01T18:20:00.747Z",
"size": 5142,
"path": "../public/_nuxt/pagination.DioOUj-L.css"
},
"/_nuxt/post_loading.BgRjgbp7.gif": {
"type": "image/gif",
"etag": "\"3689-FvATV1lF6ffDybki9di2V3gm2VI\"",
"mtime": "2026-02-01T18:20:00.747Z",
"size": 13961,
"path": "../public/_nuxt/post_loading.BgRjgbp7.gif"
},
"/_nuxt/rW1UJcio.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"d9-VkcbpPdQALfN6SJNE8rYir58PkQ\"",
"mtime": "2026-02-01T18:20:00.747Z",
"size": 217,
"path": "../public/_nuxt/rW1UJcio.js"
},
"/_nuxt/qEmiV_VS.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"845-XNwzQvft9hhvDaDLgixGpNmmCnk\"",
"mtime": "2026-02-01T18:20:00.747Z",
"size": 2117,
"path": "../public/_nuxt/qEmiV_VS.js"
},
"/_nuxt/style.Dw47-jjr.css": {
"type": "text/css; charset=utf-8",
"etag": "\"10b7-5ze7F4JM7TtCZ9PTzrCB64ahZ8I\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 4279,
"path": "../public/_nuxt/style.Dw47-jjr.css"
},
"/_nuxt/swiper.BiEk7v8n.css": {
"type": "text/css; charset=utf-8",
"etag": "\"18f5-UrRqgs0lfK+yXFuK4S818a9l/W0\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 6389,
"path": "../public/_nuxt/swiper.BiEk7v8n.css"
},
"/_nuxt/story_loading.Cuvmkir-.gif": {
"type": "image/gif",
"etag": "\"1227-fzHMJ6bvwEf28PBBUI2L0HPEm6A\"",
"mtime": "2026-02-01T18:20:00.747Z",
"size": 4647,
"path": "../public/_nuxt/story_loading.Cuvmkir-.gif"
},
"/_nuxt/t7yrqs37.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"88bf-zA0/djGjBVk4XxZRC3+Upx6rWOg\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 35007,
"path": "../public/_nuxt/t7yrqs37.js"
},
"/_nuxt/vbWGrGDi.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"36dc-+dId/PAUVTrytlBAaS1xnSMc4Z0\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 14044,
"path": "../public/_nuxt/vbWGrGDi.js"
},
"/_nuxt/wTmOvwUe.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"251-KGigf86P9iO0ROpMJd6/F1ekT/Q\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 593,
"path": "../public/_nuxt/wTmOvwUe.js"
},
"/_nuxt/wkyco40G.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"7fc-3Pn5pTIZLaEcRBAmSbCSZ1VttYA\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 2044,
"path": "../public/_nuxt/wkyco40G.js"
},
"/_nuxt/xlrT0p-V.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"9bb-cj7oxYl+arPAXLTBWLg5LHoIViM\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 2491,
"path": "../public/_nuxt/xlrT0p-V.js"
},
"/_nuxt/zXc5OqDM.js": {
"type": "text/javascript; charset=utf-8",
"etag": "\"781-MS1a5pGwcZywNNGUzNNJQ9ptut4\"",
"mtime": "2026-02-01T18:20:00.748Z",
"size": 1921,
"path": "../public/_nuxt/zXc5OqDM.js"
},
"/bottomNavigationIcons/add.svg": {
"type": "image/svg+xml",
"etag": "\"192-gb78fBM43KAdG6jBoB0jRJXK48I\"",
"mtime": "2026-02-01T18:20:00.759Z",
"size": 402,
"path": "../public/bottomNavigationIcons/add.svg"
},
"/bottomNavigationIcons/add_light.svg": {
"type": "image/svg+xml",
"etag": "\"19e-vrt2fIyFLNE/yO3ryW/5y0KA6uI\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 414,
"path": "../public/bottomNavigationIcons/add_light.svg"
},
"/bottomNavigationIcons/cart.svg": {
"type": "image/svg+xml",
"etag": "\"3a5-4J6HiKX6OrLgYpSfvKmEXMolmbg\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 933,
"path": "../public/bottomNavigationIcons/cart.svg"
},
"/bottomNavigationIcons/cart_light.svg": {
"type": "image/svg+xml",
"etag": "\"3a5-aJ5KFXJpTJEq/ci+738AR9cOHfM\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 933,
"path": "../public/bottomNavigationIcons/cart_light.svg"
},
"/bottomNavigationIcons/cart_selected.svg": {
"type": "image/svg+xml",
"etag": "\"293-m9QFlw7t4C56joIU8fO/FrEzQVo\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 659,
"path": "../public/bottomNavigationIcons/cart_selected.svg"
},
"/bottomNavigationIcons/cart_selected_light.svg": {
"type": "image/svg+xml",
"etag": "\"293-ZGV/YRV29jKsU2xpVmsPiWl8i5Y\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 659,
"path": "../public/bottomNavigationIcons/cart_selected_light.svg"
},
"/bottomNavigationIcons/home.svg": {
"type": "image/svg+xml",
"etag": "\"146-TdNW7jz0NSfMGiVO97xdCfZLSQU\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 326,
"path": "../public/bottomNavigationIcons/home.svg"
},
"/bottomNavigationIcons/home_light.svg": {
"type": "image/svg+xml",
"etag": "\"14a-ALQQs7/joBubM24/uEyigWOa6kk\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 330,
"path": "../public/bottomNavigationIcons/home_light.svg"
},
"/bottomNavigationIcons/home_selected.svg": {
"type": "image/svg+xml",
"etag": "\"291-+v3sj+2bAmtahJMROZb16U3piNY\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 657,
"path": "../public/bottomNavigationIcons/home_selected.svg"
},
"/bottomNavigationIcons/home_selected_light.svg": {
"type": "image/svg+xml",
"etag": "\"28f-KNNNp1QPCv0AXpihuw3x52KqTOo\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 655,
"path": "../public/bottomNavigationIcons/home_selected_light.svg"
},
"/bottomNavigationIcons/like.svg": {
"type": "image/svg+xml",
"etag": "\"26c-dUth02r3HjnuWf8Uudps07eznjU\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 620,
"path": "../public/bottomNavigationIcons/like.svg"
},
"/bottomNavigationIcons/like_light.svg": {
"type": "image/svg+xml",
"etag": "\"26c-dIRTmxHiLecKyVSFMT4N2nJH1ec\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 620,
"path": "../public/bottomNavigationIcons/like_light.svg"
},
"/bottomNavigationIcons/like_selected.svg": {
"type": "image/svg+xml",
"etag": "\"25d-jIBQ9ABXShEzKPHv960l65xwSsM\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 605,
"path": "../public/bottomNavigationIcons/like_selected.svg"
},
"/bottomNavigationIcons/like_selected_light.svg": {
"type": "image/svg+xml",
"etag": "\"25b-f81AKDL5p28ZJMPmKsgEH9Etc4o\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 603,
"path": "../public/bottomNavigationIcons/like_selected_light.svg"
},
"/bottomNavigationIcons/search.svg": {
"type": "image/svg+xml",
"etag": "\"1cb-FvaNKx5vQ8RKkPmSAIw9t4x6vyQ\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 459,
"path": "../public/bottomNavigationIcons/search.svg"
},
"/bottomNavigationIcons/search_light.svg": {
"type": "image/svg+xml",
"etag": "\"1d3-v8qVPlDprfC3mEwcAli8c8y1nqk\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 467,
"path": "../public/bottomNavigationIcons/search_light.svg"
},
"/bottomNavigationIcons/search_selected.svg": {
"type": "image/svg+xml",
"etag": "\"2aa-UDh7o7KxPw0+62QGVPGL+2nz+oY\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 682,
"path": "../public/bottomNavigationIcons/search_selected.svg"
},
"/bottomNavigationIcons/search_selected_light.svg": {
"type": "image/svg+xml",
"etag": "\"2a8-8GmSl9uiWgt38WqDeFdBTyzDBTw\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 680,
"path": "../public/bottomNavigationIcons/search_selected_light.svg"
},
"/bottomNavigationIcons/user.svg": {
"type": "image/svg+xml",
"etag": "\"26d-YwZsQLiUbnAnxS4WxgAsbWeGj1A\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 621,
"path": "../public/bottomNavigationIcons/user.svg"
},
"/bottomNavigationIcons/user_light.svg": {
"type": "image/svg+xml",
"etag": "\"264-Z4BHhZgnx1deFk+IwPcNpcghJdo\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 612,
"path": "../public/bottomNavigationIcons/user_light.svg"
},
"/bottomNavigationIcons/user_selected.svg": {
"type": "image/svg+xml",
"etag": "\"398-9proSkjDV2y72rTH3jIZddZJEzk\"",
"mtime": "2026-02-01T18:20:00.761Z",
"size": 920,
"path": "../public/bottomNavigationIcons/user_selected.svg"
},
"/bottomNavigationIcons/user_selected_light.svg": {
"type": "image/svg+xml",
"etag": "\"3b2-FR/5tDtw/0aEGeqoBxFTM5h4GAA\"",
"mtime": "2026-02-01T18:20:00.762Z",
"size": 946,
"path": "../public/bottomNavigationIcons/user_selected_light.svg"
},
"/preview/empty_user.png": {
"type": "image/png",
"etag": "\"4d9c-hpW+u7lVdESYj2N+T9ep3yfsTFI\"",
"mtime": "2026-02-01T18:20:00.760Z",
"size": 19868,
"path": "../public/preview/empty_user.png"
},
"/preview/empty_user1.png": {
"type": "image/png",
"etag": "\"586-bRFpropXm9e5YUmjmDHWgmkq7BE\"",
"mtime": "2026-02-01T18:20:00.762Z",
"size": 1414,
"path": "../public/preview/empty_user1.png"
},
"/preview/logo_preview.png": {
"type": "image/png",
"etag": "\"d273-+/mQg6af8+4RSupBxM9LyZh/WPU\"",
"mtime": "2026-02-01T18:20:00.762Z",
"size": 53875,
"path": "../public/preview/logo_preview.png"
},
"/preview/post_loading.gif": {
"type": "image/gif",
"etag": "\"3689-FvATV1lF6ffDybki9di2V3gm2VI\"",
"mtime": "2026-02-01T18:20:00.762Z",
"size": 13961,
"path": "../public/preview/post_loading.gif"
},
"/_nuxt/builds/latest.json": {
"type": "application/json",
"etag": "\"47-bz6sbmjFMrlYsqBZZlGA6jWHeds\"",
"mtime": "2026-02-01T18:20:00.655Z",
"size": 71,
"path": "../public/_nuxt/builds/latest.json"
},
"/preview/story_loading.gif": {
"type": "image/gif",
"etag": "\"1227-fzHMJ6bvwEf28PBBUI2L0HPEm6A\"",
"mtime": "2026-02-01T18:20:00.762Z",
"size": 4647,
"path": "../public/preview/story_loading.gif"
},
"/_nuxt/builds/meta/c3f1d58c-3979-4cd4-ae67-1263f2d6c2f0.json": {
"type": "application/json",
"etag": "\"58-3o2KSu9ZXipkoKVmT989sciGW/E\"",
"mtime": "2026-02-01T18:20:00.651Z",
"size": 88,
"path": "../public/_nuxt/builds/meta/c3f1d58c-3979-4cd4-ae67-1263f2d6c2f0.json"
}
};
const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
function normalizeWindowsPath(input = "") {
if (!input) {
return input;
}
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
}
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
function cwd() {
if (typeof process !== "undefined" && typeof process.cwd === "function") {
return process.cwd().replace(/\\/g, "/");
}
return "/";
}
const resolve$1 = function(...arguments_) {
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
let resolvedPath = "";
let resolvedAbsolute = false;
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
const path = index >= 0 ? arguments_[index] : cwd();
if (!path || path.length === 0) {
continue;
}
resolvedPath = `${path}/${resolvedPath}`;
resolvedAbsolute = isAbsolute(path);
}
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
return `/${resolvedPath}`;
}
return resolvedPath.length > 0 ? resolvedPath : ".";
};
function normalizeString(path, allowAboveRoot) {
let res = "";
let lastSegmentLength = 0;
let lastSlash = -1;
let dots = 0;
let char = null;
for (let index = 0; index <= path.length; ++index) {
if (index < path.length) {
char = path[index];
} else if (char === "/") {
break;
} else {
char = "/";
}
if (char === "/") {
if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
if (res.length > 2) {
const lastSlashIndex = res.lastIndexOf("/");
if (lastSlashIndex === -1) {
res = "";
lastSegmentLength = 0;
} else {
res = res.slice(0, lastSlashIndex);
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
}
lastSlash = index;
dots = 0;
continue;
} else if (res.length > 0) {
res = "";
lastSegmentLength = 0;
lastSlash = index;
dots = 0;
continue;
}
}
if (allowAboveRoot) {
res += res.length > 0 ? "/.." : "..";
lastSegmentLength = 2;
}
} else {
if (res.length > 0) {
res += `/${path.slice(lastSlash + 1, index)}`;
} else {
res = path.slice(lastSlash + 1, index);
}
lastSegmentLength = index - lastSlash - 1;
}
lastSlash = index;
dots = 0;
} else if (char === "." && dots !== -1) {
++dots;
} else {
dots = -1;
}
}
return res;
}
const isAbsolute = function(p) {
return _IS_ABSOLUTE_RE.test(p);
};
const dirname = function(p) {
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
segments[0] += "/";
}
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
};
function readAsset (id) {
const serverDir = dirname(fileURLToPath(globalThis._importMeta_.url));
return promises.readFile(resolve$1(serverDir, assets[id].path))
}
const publicAssetBases = {"/_nuxt/builds/meta/":{"maxAge":31536000},"/_nuxt/builds/":{"maxAge":1},"/_nuxt/":{"maxAge":31536000}};
function isPublicAssetURL(id = '') {
if (assets[id]) {
return true
}
for (const base in publicAssetBases) {
if (id.startsWith(base)) { return true }
}
return false
}
function getAsset (id) {
return assets[id]
}
const METHODS = /* @__PURE__ */ new Set(["HEAD", "GET"]);
const EncodingMap = { gzip: ".gz", br: ".br" };
const _ZmxIja = eventHandler((event) => {
if (event.method && !METHODS.has(event.method)) {
return;
}
let id = decodePath(
withLeadingSlash(withoutTrailingSlash(parseURL(event.path).pathname))
);
let asset;
const encodingHeader = String(
getRequestHeader(event, "accept-encoding") || ""
);
const encodings = [
...encodingHeader.split(",").map((e) => EncodingMap[e.trim()]).filter(Boolean).sort(),
""
];
for (const encoding of encodings) {
for (const _id of [id + encoding, joinURL(id, "index.html" + encoding)]) {
const _asset = getAsset(_id);
if (_asset) {
asset = _asset;
id = _id;
break;
}
}
}
if (!asset) {
if (isPublicAssetURL(id)) {
removeResponseHeader(event, "Cache-Control");
throw createError$1({ statusCode: 404 });
}
return;
}
if (asset.encoding !== void 0) {
appendResponseHeader(event, "Vary", "Accept-Encoding");
}
const ifNotMatch = getRequestHeader(event, "if-none-match") === asset.etag;
if (ifNotMatch) {
setResponseStatus(event, 304, "Not Modified");
return "";
}
const ifModifiedSinceH = getRequestHeader(event, "if-modified-since");
const mtimeDate = new Date(asset.mtime);
if (ifModifiedSinceH && asset.mtime && new Date(ifModifiedSinceH) >= mtimeDate) {
setResponseStatus(event, 304, "Not Modified");
return "";
}
if (asset.type && !getResponseHeader(event, "Content-Type")) {
setResponseHeader(event, "Content-Type", asset.type);
}
if (asset.etag && !getResponseHeader(event, "ETag")) {
setResponseHeader(event, "ETag", asset.etag);
}
if (asset.mtime && !getResponseHeader(event, "Last-Modified")) {
setResponseHeader(event, "Last-Modified", mtimeDate.toUTCString());
}
if (asset.encoding && !getResponseHeader(event, "Content-Encoding")) {
setResponseHeader(event, "Content-Encoding", asset.encoding);
}
if (asset.size > 0 && !getResponseHeader(event, "Content-Length")) {
setResponseHeader(event, "Content-Length", asset.size);
}
return readAsset(id);
});
const _2iH1rY = defineEventHandler((event) => {
const ua = getHeader(event, "user-agent") || "";
const bots = ["googlebot", "bingbot", "yandex", "duckduckbot", "baiduspider", "facebot", "slurp"];
const isBot = bots.some((bot) => ua.toLowerCase().includes(bot));
event.context.isBot = isBot;
});
const _SxA8c9 = defineEventHandler(() => {});
const r=Object.create(null),i=e=>globalThis.process?.env||globalThis._importMeta_.env||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?r:globalThis),o=new Proxy(r,{get(e,s){return i()[s]??r[s]},has(e,s){const E=i();return s in E||s in r},set(e,s,E){const B=i(true);return B[s]=E,true},deleteProperty(e,s){if(!s)return false;const E=i(true);return delete E[s],true},ownKeys(){const e=i(true);return Object.keys(e)}}),t=typeof process<"u"&&process.env&&"production"||"",f=[["APPVEYOR"],["AWS_AMPLIFY","AWS_APP_ID",{ci:true}],["AZURE_PIPELINES","SYSTEM_TEAMFOUNDATIONCOLLECTIONURI"],["AZURE_STATIC","INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN"],["APPCIRCLE","AC_APPCIRCLE"],["BAMBOO","bamboo_planKey"],["BITBUCKET","BITBUCKET_COMMIT"],["BITRISE","BITRISE_IO"],["BUDDY","BUDDY_WORKSPACE_ID"],["BUILDKITE"],["CIRCLE","CIRCLECI"],["CIRRUS","CIRRUS_CI"],["CLOUDFLARE_PAGES","CF_PAGES",{ci:true}],["CLOUDFLARE_WORKERS","WORKERS_CI",{ci:true}],["CODEBUILD","CODEBUILD_BUILD_ARN"],["CODEFRESH","CF_BUILD_ID"],["DRONE"],["DRONE","DRONE_BUILD_EVENT"],["DSARI"],["GITHUB_ACTIONS"],["GITLAB","GITLAB_CI"],["GITLAB","CI_MERGE_REQUEST_ID"],["GOCD","GO_PIPELINE_LABEL"],["LAYERCI"],["HUDSON","HUDSON_URL"],["JENKINS","JENKINS_URL"],["MAGNUM"],["NETLIFY"],["NETLIFY","NETLIFY_LOCAL",{ci:false}],["NEVERCODE"],["RENDER"],["SAIL","SAILCI"],["SEMAPHORE"],["SCREWDRIVER"],["SHIPPABLE"],["SOLANO","TDDIUM"],["STRIDER"],["TEAMCITY","TEAMCITY_VERSION"],["TRAVIS"],["VERCEL","NOW_BUILDER"],["VERCEL","VERCEL",{ci:false}],["VERCEL","VERCEL_ENV",{ci:false}],["APPCENTER","APPCENTER_BUILD_ID"],["CODESANDBOX","CODESANDBOX_SSE",{ci:false}],["CODESANDBOX","CODESANDBOX_HOST",{ci:false}],["STACKBLITZ"],["STORMKIT"],["CLEAVR"],["ZEABUR"],["CODESPHERE","CODESPHERE_APP_ID",{ci:true}],["RAILWAY","RAILWAY_PROJECT_ID"],["RAILWAY","RAILWAY_SERVICE_ID"],["DENO-DEPLOY","DENO_DEPLOYMENT_ID"],["FIREBASE_APP_HOSTING","FIREBASE_APP_HOSTING",{ci:true}]];function b(){if(globalThis.process?.env)for(const e of f){const s=e[1]||e[0];if(globalThis.process?.env[s])return {name:e[0].toLowerCase(),...e[2]}}return globalThis.process?.env?.SHELL==="/bin/jsh"&&globalThis.process?.versions?.webcontainer?{name:"stackblitz",ci:false}:{name:"",ci:false}}const l=b();l.name;function n(e){return e?e!=="false":false}const I=globalThis.process?.platform||"",T=n(o.CI)||l.ci!==false,R=n(globalThis.process?.stdout&&globalThis.process?.stdout.isTTY);n(o.DEBUG);const a=t==="test"||n(o.TEST),h=t==="dev"||t==="development";n(o.MINIMAL)||T||a||!R;const A=/^win/i.test(I);!n(o.NO_COLOR)&&(n(o.FORCE_COLOR)||(R||A)&&o.TERM!=="dumb"||T);const C=(globalThis.process?.versions?.node||"").replace(/^v/,"")||null;Number(C?.split(".")[0])||null;const W=globalThis.process||Object.create(null),_={versions:{}};new Proxy(W,{get(e,s){if(s==="env")return o;if(s in e)return e[s];if(s in _)return _[s]}});const O=globalThis.process?.release?.name==="node",c=!!globalThis.Bun||!!globalThis.process?.versions?.bun,D=!!globalThis.Deno,L=!!globalThis.fastly,S=!!globalThis.Netlify,u=!!globalThis.EdgeRuntime,N=globalThis.navigator?.userAgent==="Cloudflare-Workers",F=[[S,"netlify"],[u,"edge-light"],[N,"workerd"],[L,"fastly"],[D,"deno"],[c,"bun"],[O,"node"]];function G(){const e=F.find(s=>s[0]);if(e)return {name:e[1]}}const P=G();P?.name||"";
function getNitroOrigin$1(ctx = {}) {
const isDev = ctx.isDev ?? h;
const isPrerender = ctx.isPrerender ?? !!o.prerender;
let host = "";
let port = "";
let protocol = o.NITRO_SSL_CERT && o.NITRO_SSL_KEY ? "https" : "http";
if (isDev || isPrerender) {
const devEnv = o.__NUXT_DEV__ || o.NUXT_VITE_NODE_OPTIONS;
if (devEnv) {
const parsed = JSON.parse(devEnv);
const origin = parsed.proxy?.url || parsed.baseURL?.replace("/__nuxt_vite_node__", "");
host = origin.replace(/^https?:\/\//, "").replace(/\/$/, "");
protocol = origin.startsWith("https") ? "https" : "http";
}
}
const hostIsLocalhost = !host || host.startsWith("localhost") || host.startsWith("127.");
if (isDev && hostIsLocalhost && ctx.requestHost) {
const reqHost = ctx.requestHost.split(":")[0] || "";
if (reqHost && !reqHost.startsWith("localhost") && !reqHost.startsWith("127.")) {
host = ctx.requestHost;
protocol = ctx.requestProtocol || protocol;
}
}
if (!host && ctx.requestHost) {
host = ctx.requestHost;
protocol = ctx.requestProtocol || protocol;
}
if (!host) {
host = o.NITRO_HOST || o.HOST || "";
if (isDev)
port = o.NITRO_PORT || o.PORT || "3000";
}
if (host.includes(":")) {
const i = host.lastIndexOf(":");
port = host.slice(i + 1);
host = host.slice(0, i);
}
host = o.NUXT_SITE_HOST_OVERRIDE || host;
port = o.NUXT_SITE_PORT_OVERRIDE || port;
if (host.startsWith("http://") || host.startsWith("https://")) {
protocol = host.startsWith("https://") ? "https" : "http";
host = host.replace(/^https?:\/\//, "");
} else if (!host.includes("localhost") && !host.startsWith("127.")) {
protocol = "https";
}
return `${protocol}://${host}${port ? `:${port}` : ""}/`;
}
function getNitroOrigin(e) {
return getNitroOrigin$1({
isDev: false,
isPrerender: false,
requestHost: e ? getRequestHost(e, { xForwardedHost: true }) : void 0,
requestProtocol: e ? getRequestProtocol(e, { xForwardedProto: true }) : void 0
});
}
const _0pBAf1 = eventHandler(async (e) => {
if (e.context._initedSiteConfig)
return;
const runtimeConfig = useRuntimeConfig(e);
const config = runtimeConfig["nuxt-site-config"];
const nitroApp = useNitroApp();
const siteConfig = e.context.siteConfig || createSiteConfigStack({
debug: config.debug
});
const nitroOrigin = getNitroOrigin(e);
e.context.siteConfigNitroOrigin = nitroOrigin;
{
siteConfig.push({
_context: "nitro:init",
_priority: -4,
url: nitroOrigin
});
}
siteConfig.push({
_context: "runtimeEnv",
_priority: 0,
...runtimeConfig.site || {},
...runtimeConfig.public.site || {},
...envSiteConfig(globalThis._importMeta_.env || {})
// just in-case, shouldn't be needed
});
const buildStack = config.stack || [];
buildStack.forEach((c) => siteConfig.push(c));
if (e.context._nitro.routeRules.site) {
siteConfig.push({
_context: "route-rules",
...e.context._nitro.routeRules.site
});
}
if (config.multiTenancy) {
const host = parseURL(nitroOrigin).host;
const tenant = config.multiTenancy?.find((t) => t.hosts.includes(host));
if (tenant) {
siteConfig.push({
_context: `multi-tenancy:${host}`,
_priority: 0,
...tenant.config
});
}
}
const ctx = { siteConfig, event: e };
await nitroApp.hooks.callHook("site-config:init", ctx);
e.context.siteConfig = ctx.siteConfig;
e.context._initedSiteConfig = true;
});
const logger = createConsola({
defaults: {
tag: "@nuxt/sitemap"
}
});
const merger = createDefu((obj, key, value) => {
if (Array.isArray(obj[key]) && Array.isArray(value))
obj[key] = Array.from(/* @__PURE__ */ new Set([...obj[key], ...value]));
return obj[key];
});
function mergeOnKey(arr, key) {
const seen = /* @__PURE__ */ new Map();
let resultLength = 0;
const result = Array.from({ length: arr.length });
for (const item of arr) {
const k = item[key];
if (seen.has(k)) {
const existingIndex = seen.get(k);
result[existingIndex] = merger(item, result[existingIndex]);
} else {
seen.set(k, resultLength);
result[resultLength++] = item;
}
}
result.length = resultLength;
return result;
}
function splitForLocales(path, locales) {
const prefix = withLeadingSlash(path).split("/")[1];
if (prefix && locales.includes(prefix))
return [prefix, path.replace(`/${prefix}`, "")];
return [null, path];
}
const StringifiedRegExpPattern = /\/(.*?)\/([gimsuy]*)$/;
function normalizeRuntimeFilters(input) {
return (input || []).map((rule) => {
if (rule instanceof RegExp || typeof rule === "string")
return rule;
const match = rule.regex.match(StringifiedRegExpPattern);
if (match)
return new RegExp(match[1], match[2]);
return false;
}).filter(Boolean);
}
function createPathFilter(options = {}) {
const urlFilter = createFilter(options);
return (loc) => {
let path = loc;
try {
path = parseURL(loc).pathname;
} catch {
return false;
}
return urlFilter(path);
};
}
function findPageMapping(pathWithoutPrefix, pages) {
const stripped = pathWithoutPrefix[0] === "/" ? pathWithoutPrefix.slice(1) : pathWithoutPrefix;
const pageKey = stripped.endsWith("/index") ? stripped.slice(0, -6) || "index" : stripped || "index";
if (pages[pageKey])
return { mappings: pages[pageKey], paramSegments: [] };
const sortedKeys = Object.keys(pages).sort((a, b) => b.length - a.length);
for (const key of sortedKeys) {
if (pageKey.startsWith(key + "/")) {
const paramPath = pageKey.slice(key.length + 1);
return { mappings: pages[key], paramSegments: paramPath.split("/") };
}
}
return null;
}
function applyDynamicParams(customPath, paramSegments) {
if (!paramSegments.length)
return customPath;
let i = 0;
return customPath.replace(/\[[^\]]+\]/g, () => paramSegments[i++] || "");
}
function createFilter(options = {}) {
const include = options.include || [];
const exclude = options.exclude || [];
if (include.length === 0 && exclude.length === 0)
return () => true;
const excludeRegex = exclude.filter((r) => r instanceof RegExp);
const includeRegex = include.filter((r) => r instanceof RegExp);
const excludeStrings = exclude.filter((r) => typeof r === "string");
const includeStrings = include.filter((r) => typeof r === "string");
const excludeMatcher = excludeStrings.length > 0 ? toRouteMatcher(createRouter$1({
routes: Object.fromEntries(excludeStrings.map((r) => [r, true])),
strictTrailingSlash: false
})) : null;
const includeMatcher = includeStrings.length > 0 ? toRouteMatcher(createRouter$1({
routes: Object.fromEntries(includeStrings.map((r) => [r, true])),
strictTrailingSlash: false
})) : null;
const excludeExact = new Set(excludeStrings);
const includeExact = new Set(includeStrings);
return function(path) {
if (excludeRegex.some((r) => r.test(path)))
return false;
if (excludeExact.has(path))
return false;
if (excludeMatcher && excludeMatcher.matchAll(path).length > 0)
return false;
if (includeRegex.some((r) => r.test(path)))
return true;
if (includeExact.has(path))
return true;
if (includeMatcher && includeMatcher.matchAll(path).length > 0)
return true;
return include.length === 0;
};
}
function xmlEscape(str) {
return String(str).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
}
function useSitemapRuntimeConfig(e) {
const clone = JSON.parse(JSON.stringify(useRuntimeConfig(e).sitemap));
for (const k in clone.sitemaps) {
const sitemap = clone.sitemaps[k];
sitemap.include = normalizeRuntimeFilters(sitemap.include);
sitemap.exclude = normalizeRuntimeFilters(sitemap.exclude);
clone.sitemaps[k] = sitemap;
}
return Object.freeze(clone);
}
function useSiteConfig(e, _options) {
return getSiteConfig(e, _options);
}
function resolveSitePath(pathOrUrl, options) {
let path = pathOrUrl;
if (hasProtocol(pathOrUrl, { strict: false, acceptRelative: true })) {
const parsed = parseURL(pathOrUrl);
path = parsed.pathname;
}
const base = withLeadingSlash(options.base || "/");
if (base !== "/" && path.startsWith(base)) {
path = path.slice(base.length);
}
let origin = withoutTrailingSlash(options.absolute ? options.siteUrl : "");
if (base !== "/" && origin.endsWith(base)) {
origin = origin.slice(0, origin.indexOf(base));
}
const baseWithOrigin = options.withBase ? withBase(base, origin || "/") : origin;
const resolvedUrl = withBase(path, baseWithOrigin);
return path === "/" && !options.withBase ? withTrailingSlash(resolvedUrl) : fixSlashes(options.trailingSlash, resolvedUrl);
}
const fileExtensions = [
// Images
"jpg",
"jpeg",
"png",
"gif",
"bmp",
"webp",
"svg",
"ico",
// Documents
"pdf",
"doc",
"docx",
"xls",
"xlsx",
"ppt",
"pptx",
"txt",
"md",
"markdown",
// Archives
"zip",
"rar",
"7z",
"tar",
"gz",
// Audio
"mp3",
"wav",
"flac",
"ogg",
"opus",
"m4a",
"aac",
"midi",
"mid",
// Video
"mp4",
"avi",
"mkv",
"mov",
"wmv",
"flv",
"webm",
// Web
"html",
"css",
"js",
"json",
"xml",
"tsx",
"jsx",
"ts",
"vue",
"svelte",
"xsl",
"rss",
"atom",
// Programming
"php",
"py",
"rb",
"java",
"c",
"cpp",
"h",
"go",
// Data formats
"csv",
"tsv",
"sql",
"yaml",
"yml",
// Fonts
"woff",
"woff2",
"ttf",
"otf",
"eot",
// Executables/Binaries
"exe",
"msi",
"apk",
"ipa",
"dmg",
"iso",
"bin",
// Scripts/Config
"bat",
"cmd",
"sh",
"env",
"htaccess",
"conf",
"toml",
"ini",
// Package formats
"deb",
"rpm",
"jar",
"war",
// E-books
"epub",
"mobi",
// Common temporary/backup files
"log",
"tmp",
"bak",
"old",
"sav"
];
function isPathFile(path) {
const lastSegment = path.split("/").pop();
const ext = (lastSegment || path).match(/\.[0-9a-z]+$/i)?.[0];
return ext && fileExtensions.includes(ext.replace(".", ""));
}
function fixSlashes(trailingSlash, pathOrUrl) {
const $url = parseURL(pathOrUrl);
if (isPathFile($url.pathname))
return pathOrUrl;
const fixedPath = trailingSlash ? withTrailingSlash($url.pathname) : withoutTrailingSlash($url.pathname);
return `${$url.protocol ? `${$url.protocol}//` : ""}${$url.host || ""}${fixedPath}${$url.search || ""}${$url.hash || ""}`;
}
function createSitePathResolver(e, options = {}) {
const siteConfig = getSiteConfig(e);
const nitroOrigin = getNitroOrigin(e);
const nuxtBase = useRuntimeConfig(e).app.baseURL || "/";
return (path) => {
return resolveSitePath(path, {
...options,
siteUrl: options.canonical !== false || false ? siteConfig.url : nitroOrigin,
trailingSlash: siteConfig.trailingSlash,
base: nuxtBase
});
};
}
const _wZAoUF = defineEventHandler(async (e) => {
const fixPath = createSitePathResolver(e, { absolute: false, withBase: true });
const { sitemapName: fallbackSitemapName, cacheMaxAgeSeconds, version, xslColumns, xslTips } = useSitemapRuntimeConfig();
setHeader(e, "Content-Type", "application/xslt+xml");
if (cacheMaxAgeSeconds)
setHeader(e, "Cache-Control", `public, max-age=${cacheMaxAgeSeconds}, must-revalidate`);
else
setHeader(e, "Cache-Control", `no-cache, no-store`);
const { name: siteName, url: siteUrl } = useSiteConfig(e);
const referrer = getHeader(e, "Referer") || "/";
const referrerPath = parseURL(referrer).pathname;
const isNotIndexButHasIndex = referrerPath !== "/sitemap.xml" && referrerPath !== "/sitemap_index.xml" && referrerPath.endsWith(".xml");
const sitemapName = parseURL(referrer).pathname.split("/").pop()?.split("-sitemap")[0] || fallbackSitemapName;
const title = `${siteName}${sitemapName !== "sitemap.xml" ? ` - ${sitemapName === "sitemap_index.xml" ? "index" : sitemapName}` : ""}`.replace(/&/g, "&amp;");
getQuery$1(referrer).canonical;
const debugUrl = xmlEscape(withQuery("/__sitemap__/debug.json", { sitemap: sitemapName }));
xmlEscape(referrerPath);
xmlEscape(withQuery(referrerPath, { canonical: "" }));
const fetchErrors = [];
const xslQuery = getQuery(e);
if (xslQuery.error_messages) {
const errorMessages = xslQuery.error_messages;
const errorUrls = xslQuery.error_urls;
if (errorMessages) {
const messages = Array.isArray(errorMessages) ? errorMessages : [errorMessages];
const urls = Array.isArray(errorUrls) ? errorUrls : errorUrls ? [errorUrls] : [];
messages.forEach((msg, i) => {
const errorParts = [xmlEscape(msg)];
if (urls[i])
errorParts.push(xmlEscape(urls[i]));
fetchErrors.push(`<span class="error-item">${errorParts.join(" \u2014 ")}</span>`);
});
}
}
const hasRuntimeErrors = fetchErrors.length > 0;
let columns = [...xslColumns];
if (!columns.length) {
columns = [
{ label: "URL", width: "50%" },
{ label: "Images", width: "25%", select: "count(image:image)" },
{ label: "Last Updated", width: "25%", select: "concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)),concat(' ', substring(sitemap:lastmod,20,6)))" }
];
}
return `<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XML Sitemap</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
:root {
--accent: #00dc82;
--accent-hover: #00b86b;
--bg: #0a0a0a;
--bg-elevated: #141414;
--bg-subtle: #1a1a1a;
--border: #262626;
--border-subtle: #1f1f1f;
--text: #e5e5e5;
--text-muted: #737373;
--text-faint: #525252;
--error: #ef4444;
--error-bg: rgba(239,68,68,0.1);
--warning: #f59e0b;
}
* { box-sizing: border-box; }
body {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-size: 13px;
color: var(--text);
background: var(--bg);
margin: 0;
padding: 0;
line-height: 1.6;
-webkit-font-smoothing: antialiased;
}
a { color: inherit; transition: color 0.15s; }
a:hover { color: var(--accent); }
/* Debug bar (dev only) */
.debug-bar {
position: fixed;
bottom: 0.75rem;
left: 50%;
transform: translateX(-50%);
width: 80%;
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: 10px;
padding: 0 1rem;
height: 2.5rem;
display: flex;
align-items: center;
gap: 0.75rem;
z-index: 100;
font-size: 11px;
}
.debug-bar-brand {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--text-muted);
text-decoration: none;
}
.debug-bar-brand:hover { color: var(--text); }
.debug-bar-brand svg { flex-shrink: 0; }
.debug-bar-hint {
color: var(--text-faint);
margin-right: auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.debug-bar-hint code {
background: var(--bg-subtle);
padding: 0.1rem 0.3rem;
border-radius: 3px;
font-size: 10px;
}
.mode-badge {
font-size: 9px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.04em;
padding: 0.2rem 0.4rem;
border-radius: 3px;
}
.mode-dev { background: rgba(245,158,11,0.15); color: var(--warning); }
.mode-prod { background: rgba(0,220,130,0.12); color: var(--accent); }
.mode-toggle {
display: inline-flex;
border-radius: 4px;
overflow: hidden;
background: var(--bg-subtle);
padding: 2px;
gap: 1px;
}
.mode-toggle a {
padding: 0.2rem 0.4rem;
font-size: 9px;
font-weight: 500;
text-decoration: none;
color: var(--text-muted);
border-radius: 2px;
transition: all 0.15s;
}
.mode-toggle a:hover { color: var(--text); }
.mode-toggle a.active {
background: var(--accent);
color: #0a0a0a;
}
.btn {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.25rem 0.5rem;
border-radius: 4px;
text-decoration: none;
font-size: 10px;
font-weight: 500;
transition: all 0.15s;
}
.btn-primary {
background: var(--accent);
color: #0a0a0a;
}
.btn-primary:hover { background: var(--accent-hover); color: #0a0a0a; }
.btn svg { width: 12px; height: 12px; }
/* Error banner */
.error-banner {
background: var(--error-bg);
border-bottom: 1px solid rgba(239,68,68,0.2);
padding: 0.75rem 1.5rem;
color: #fca5a5;
font-size: 12px;
}
.error-banner strong { color: var(--error); }
.error-item { display: block; margin-top: 0.375rem; color: #fca5a5; }
.error-debug-link {
display: inline-flex;
align-items: center;
gap: 0.25rem;
margin-top: 0.625rem;
padding: 0.25rem 0.5rem;
background: var(--error);
color: #fff;
border-radius: 4px;
font-size: 11px;
font-weight: 500;
text-decoration: none;
transition: background 0.15s;
}
.error-debug-link:hover { background: #dc2626; color: #fff; }
/* Main content */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 1.5rem;
}
.header {
margin-bottom: 1.25rem;
}
.header h1 {
font-size: 1rem;
font-weight: 600;
margin: 0 0 0.25rem 0;
color: var(--text);
}
.header-meta {
color: var(--text-muted);
font-size: 12px;
}
.header-meta a {
color: var(--text-muted);
text-decoration: underline;
text-decoration-color: var(--border);
text-underline-offset: 2px;
}
.header-meta a:hover { color: var(--accent); text-decoration-color: var(--accent); }
/* Table */
.table-wrap {
border: 1px solid var(--border);
border-radius: 8px;
overflow: hidden;
background: var(--bg-elevated);
}
table {
width: 100%;
border-collapse: collapse;
}
th {
text-align: left;
padding: 0.625rem 1rem;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
background: var(--bg-subtle);
border-bottom: 1px solid var(--border);
}
td {
padding: 0.5rem 1rem;
border-bottom: 1px solid var(--border-subtle);
font-size: 12px;
color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }
td a {
text-decoration: none;
word-break: break-all;
color: var(--text);
}
td a:hover { color: var(--accent); }
.inline-warning {
font-size: 11px;
color: var(--warning);
margin-top: 0.25rem;
line-height: 1.4;
}
.inline-warning::before {
content: "\u26A0 ";
}
.count {
display: inline-block;
min-width: 1.25rem;
padding: 0.125rem 0.375rem;
background: var(--bg-subtle);
border-radius: 4px;
text-align: center;
font-size: 11px;
color: var(--text-muted);
font-variant-numeric: tabular-nums;
}
.count:empty::before { content: "0"; }
/* Light mode */
@media (prefers-color-scheme: light) {
:root {
--accent: #00a963;
--accent-hover: #008f54;
--bg: #ffffff;
--bg-elevated: #f5f5f5;
--bg-subtle: #ebebeb;
--border: #d4d4d4;
--border-subtle: #e5e5e5;
--text: #171717;
--text-muted: #525252;
--text-faint: #737373;
--error: #dc2626;
--error-bg: rgba(220,38,38,0.08);
--warning: #b45309;
}
tr:hover td { background: rgba(0,0,0,0.02); }
.btn-primary { color: #fff; }
.btn-primary:hover { color: #fff; }
.mode-toggle a.active { color: #fff; }
.error-banner { color: #991b1b; }
.error-item { color: #b91c1c; }
.error-debug-link { color: #fff; }
.error-debug-link:hover { color: #fff; }
}
.debug-bar-version {
color: var(--text-faint);
font-size: 10px;
}
/* Responsive */
@media (max-width: 640px) {
.debug-bar { padding: 0 0.75rem; gap: 0.5rem; width: 95%; }
.debug-bar-brand span { display: none; }
.debug-bar-hint { display: none; }
.debug-bar-version { display: none; }
.mode-badge { display: none; }
.container { padding: 1rem; }
th, td { padding: 0.5rem 0.75rem; }
}
${""}
</style>
</head>
<body>
${hasRuntimeErrors ? `<div class="error-banner">
<strong>Sitemap Generation Errors</strong>
${fetchErrors.join("")}
<a href="${debugUrl}" target="_blank" class="error-debug-link">View Debug Info \u2192</a>
</div>` : ""}
<div class="container">
<div class="header">
<h1>${xmlEscape(title)}</h1>
<div class="header-meta">
${isNotIndexButHasIndex ? `Part of <a href="${xmlEscape(fixPath("/sitemap_index.xml"))}">${xmlEscape(fixPath("/sitemap_index.xml"))}</a> \xB7 ` : ""}
<xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &gt; 0">
<xsl:value-of select="count(sitemap:sitemapindex/sitemap:sitemap)"/> sitemaps
</xsl:if>
<xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &lt; 1">
<xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> URLs
</xsl:if>
</div>
</div>
<xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &gt; 0">
<div class="table-wrap">
<table>
<thead>
<tr>
<th style="width:70%">Sitemap</th>
<th style="width:30%">Last Modified</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
<xsl:variable name="sitemapURL">
<xsl:value-of select="sitemap:loc"/>
</xsl:variable>
<tr>
<td>
<a href="{$sitemapURL}">
<xsl:value-of select="sitemap:loc"/>
</a>
</td>
<td>
<xsl:value-of
select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)),concat(' ', substring(sitemap:lastmod,20,6)))"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:if>
<xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &lt; 1">
<div class="table-wrap">
<table>
<thead>
<tr>
${columns.map((c) => `<th style="width:${c.width}">${c.label}</th>`).join("\n")}
</tr>
</thead>
<tbody>
<xsl:for-each select="sitemap:urlset/sitemap:url">
<tr>
<td>
<xsl:variable name="itemURL">
<xsl:value-of select="sitemap:loc"/>
</xsl:variable>
<a href="{$itemURL}">
<xsl:value-of select="sitemap:loc"/>
</a>
${""}
</td>
${columns.filter((c) => c.label !== "URL").map((c) => `<td><span class="count"><xsl:value-of select="${c.select}"/></span></td>`).join("\n")}
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</xsl:if>
</div>
${""}
</body>
</html>
</xsl:template>
</xsl:stylesheet>
`;
});
function withoutQuery(path) {
return path.split("?")[0];
}
function createNitroRouteRuleMatcher() {
const { nitro, app } = useRuntimeConfig();
const _routeRulesMatcher = toRouteMatcher(
createRouter$1({
routes: Object.fromEntries(
Object.entries(nitro?.routeRules || {}).map(([path, rules]) => [path === "/" ? path : withoutTrailingSlash(path), rules])
)
})
);
return (pathOrUrl) => {
const path = pathOrUrl[0] === "/" ? pathOrUrl : parseURL(pathOrUrl, app.baseURL).pathname;
const pathWithoutQuery = withoutQuery(path);
return defu({}, ..._routeRulesMatcher.matchAll(
// radix3 does not support trailing slashes
withoutBase(pathWithoutQuery === "/" ? pathWithoutQuery : withoutTrailingSlash(pathWithoutQuery), app.baseURL)
).reverse());
};
}
function resolve(s, resolvers) {
if (typeof s === "undefined")
return void 0;
const str = typeof s === "string" ? s : s.toString();
if (!resolvers)
return str;
if (hasProtocol(str, { acceptRelative: true, strict: false }))
return resolvers.fixSlashes(str);
return resolvers.canonicalUrlResolver(str);
}
function removeTrailingSlash(s) {
return s.replace(/\/(\?|#|$)/, "$1");
}
function preNormalizeEntry(_e, resolvers) {
const input = typeof _e === "string" ? { loc: _e } : { ..._e };
if (input.url && !input.loc) {
input.loc = input.url;
}
delete input.url;
if (typeof input.loc !== "string") {
input.loc = "";
}
const skipEncoding = input._encoded === true;
const e = input;
e.loc = removeTrailingSlash(e.loc);
e._abs = hasProtocol(e.loc, { acceptRelative: false, strict: false });
try {
e._path = e._abs ? parseURL(e.loc) : parsePath(e.loc);
} catch {
e._path = null;
}
if (e._path) {
const search = e._path.search;
const qs = search && search.length > 1 ? stringifyQuery(parseQuery(search)) : "";
const pathname = skipEncoding ? e._path.pathname : encodePath(e._path.pathname);
e._relativeLoc = `${pathname}${qs.length ? `?${qs}` : ""}`;
if (e._path.host) {
e.loc = stringifyParsedURL(e._path);
} else {
e.loc = e._relativeLoc;
}
} else if (!skipEncoding && !isEncoded(e.loc)) {
e.loc = encodeURI(e.loc);
}
if (e.loc === "")
e.loc = `/`;
e.loc = resolve(e.loc, resolvers);
e._key = `${e._sitemap || ""}${withoutTrailingSlash(e.loc)}`;
return e;
}
function isEncoded(url) {
try {
return url !== decodeURIComponent(url);
} catch {
return false;
}
}
function normaliseEntry(_e, defaults, resolvers) {
const e = defu(_e, defaults);
if (e.lastmod) {
const date = normaliseDate(e.lastmod);
if (date)
e.lastmod = date;
else
delete e.lastmod;
}
if (!e.lastmod)
delete e.lastmod;
e.loc = resolve(e.loc, resolvers);
if (e.alternatives) {
const alternatives = e.alternatives.map((a) => ({ ...a }));
for (const alt of alternatives) {
if (typeof alt.href === "string") {
alt.href = resolve(alt.href, resolvers);
} else if (typeof alt.href === "object" && alt.href) {
alt.href = resolve(alt.href.href, resolvers);
}
}
e.alternatives = mergeOnKey(alternatives, "hreflang");
}
if (e.images) {
const images = e.images.map((i) => ({ ...i }));
for (const img of images) {
img.loc = resolve(img.loc, resolvers);
}
e.images = mergeOnKey(images, "loc");
}
if (e.videos) {
const videos = e.videos.map((v) => ({ ...v }));
for (const video of videos) {
if (video.content_loc) {
video.content_loc = resolve(video.content_loc, resolvers);
}
}
e.videos = mergeOnKey(videos, "content_loc");
}
return e;
}
const IS_VALID_W3C_DATE = [
/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,
/^\d{4}-[01]\d-[0-3]\d$/,
/^\d{4}-[01]\d$/,
/^\d{4}$/
];
function isValidW3CDate(d) {
return IS_VALID_W3C_DATE.some((r) => r.test(d));
}
function normaliseDate(d) {
if (typeof d === "string") {
const tIdx = d.indexOf("T");
if (tIdx !== -1) {
const t = d.slice(tIdx + 1);
if (!t.includes("+") && !t.includes("-") && !t.includes("Z")) {
d += "Z";
}
}
if (!isValidW3CDate(d))
return false;
d = new Date(d);
d.setMilliseconds(0);
if (Number.isNaN(d.getTime()))
return false;
}
const z = (n) => `0${n}`.slice(-2);
const date = `${d.getUTCFullYear()}-${z(d.getUTCMonth() + 1)}-${z(d.getUTCDate())}`;
if (d.getUTCHours() > 0 || d.getUTCMinutes() > 0 || d.getUTCSeconds() > 0) {
return `${date}T${z(d.getUTCHours())}:${z(d.getUTCMinutes())}:${z(d.getUTCSeconds())}Z`;
}
return date;
}
function isValidString(value) {
return typeof value === "string" && value.trim().length > 0;
}
function parseNumber(value) {
if (typeof value === "number") return value;
if (typeof value === "string" && value.trim()) {
const num = Number.parseFloat(value.trim());
return Number.isNaN(num) ? void 0 : num;
}
return void 0;
}
function parseInteger(value) {
if (typeof value === "number") return Math.floor(value);
if (typeof value === "string" && value.trim()) {
const num = Number.parseInt(value.trim(), 10);
return Number.isNaN(num) ? void 0 : num;
}
return void 0;
}
function extractUrlFromParsedElement(urlElement, warnings) {
if (!isValidString(urlElement.loc)) {
warnings.push({
type: "validation",
message: "URL entry missing required loc element",
context: { url: String(urlElement.loc || "undefined") }
});
return null;
}
const urlObj = { loc: urlElement.loc };
if (isValidString(urlElement.lastmod)) {
urlObj.lastmod = urlElement.lastmod;
}
if (isValidString(urlElement.changefreq)) {
const validFreqs = ["always", "hourly", "daily", "weekly", "monthly", "yearly", "never"];
if (validFreqs.includes(urlElement.changefreq)) {
urlObj.changefreq = urlElement.changefreq;
} else {
warnings.push({
type: "validation",
message: "Invalid changefreq value",
context: { url: urlElement.loc, field: "changefreq", value: urlElement.changefreq }
});
}
}
const priority = parseNumber(urlElement.priority);
if (priority !== void 0 && !Number.isNaN(priority)) {
if (priority < 0 || priority > 1) {
warnings.push({
type: "validation",
message: "Priority value should be between 0.0 and 1.0, clamping to valid range",
context: { url: urlElement.loc, field: "priority", value: priority }
});
}
urlObj.priority = Math.max(0, Math.min(1, priority));
} else if (urlElement.priority !== void 0) {
warnings.push({
type: "validation",
message: "Invalid priority value",
context: { url: urlElement.loc, field: "priority", value: urlElement.priority }
});
}
if (urlElement.image) {
const images = Array.isArray(urlElement.image) ? urlElement.image : [urlElement.image];
const validImages = images.map((img) => {
if (isValidString(img.loc)) {
return { loc: img.loc };
} else {
warnings.push({
type: "validation",
message: "Image missing required loc element",
context: { url: urlElement.loc, field: "image.loc" }
});
return null;
}
}).filter((img) => img !== null);
if (validImages.length > 0) {
urlObj.images = validImages;
}
}
if (urlElement.video) {
const videos = Array.isArray(urlElement.video) ? urlElement.video : [urlElement.video];
const validVideos = videos.map((video) => {
const missingFields = [];
if (!isValidString(video.title)) missingFields.push("title");
if (!isValidString(video.thumbnail_loc)) missingFields.push("thumbnail_loc");
if (!isValidString(video.description)) missingFields.push("description");
if (!isValidString(video.content_loc)) missingFields.push("content_loc");
if (missingFields.length > 0) {
warnings.push({
type: "validation",
message: `Video missing required fields: ${missingFields.join(", ")}`,
context: { url: urlElement.loc, field: "video" }
});
return null;
}
const videoObj = {
title: video.title,
thumbnail_loc: video.thumbnail_loc,
description: video.description,
content_loc: video.content_loc
};
if (isValidString(video.player_loc)) {
videoObj.player_loc = video.player_loc;
}
const duration = parseInteger(video.duration);
if (duration !== void 0) {
videoObj.duration = duration;
} else if (video.duration !== void 0) {
warnings.push({
type: "validation",
message: "Invalid video duration value",
context: { url: urlElement.loc, field: "video.duration", value: video.duration }
});
}
if (isValidString(video.expiration_date)) {
videoObj.expiration_date = video.expiration_date;
}
const rating = parseNumber(video.rating);
if (rating !== void 0) {
if (rating < 0 || rating > 5) {
warnings.push({
type: "validation",
message: "Video rating should be between 0.0 and 5.0",
context: { url: urlElement.loc, field: "video.rating", value: rating }
});
}
videoObj.rating = rating;
} else if (video.rating !== void 0) {
warnings.push({
type: "validation",
message: "Invalid video rating value",
context: { url: urlElement.loc, field: "video.rating", value: video.rating }
});
}
const viewCount = parseInteger(video.view_count);
if (viewCount !== void 0) {
videoObj.view_count = viewCount;
} else if (video.view_count !== void 0) {
warnings.push({
type: "validation",
message: "Invalid video view_count value",
context: { url: urlElement.loc, field: "video.view_count", value: video.view_count }
});
}
if (isValidString(video.publication_date)) {
videoObj.publication_date = video.publication_date;
}
if (isValidString(video.family_friendly)) {
const validValues = ["yes", "no"];
if (validValues.includes(video.family_friendly)) {
videoObj.family_friendly = video.family_friendly;
} else {
warnings.push({
type: "validation",
message: 'Invalid video family_friendly value, should be "yes" or "no"',
context: { url: urlElement.loc, field: "video.family_friendly", value: video.family_friendly }
});
}
}
if (isValidString(video.requires_subscription)) {
const validValues = ["yes", "no"];
if (validValues.includes(video.requires_subscription)) {
videoObj.requires_subscription = video.requires_subscription;
} else {
warnings.push({
type: "validation",
message: 'Invalid video requires_subscription value, should be "yes" or "no"',
context: { url: urlElement.loc, field: "video.requires_subscription", value: video.requires_subscription }
});
}
}
if (isValidString(video.live)) {
const validValues = ["yes", "no"];
if (validValues.includes(video.live)) {
videoObj.live = video.live;
} else {
warnings.push({
type: "validation",
message: 'Invalid video live value, should be "yes" or "no"',
context: { url: urlElement.loc, field: "video.live", value: video.live }
});
}
}
if (video.restriction && typeof video.restriction === "object") {
const restriction = video.restriction;
if (isValidString(restriction.relationship) && isValidString(restriction["#text"])) {
const validRelationships = ["allow", "deny"];
if (validRelationships.includes(restriction.relationship)) {
videoObj.restriction = {
relationship: restriction.relationship,
restriction: restriction["#text"]
};
} else {
warnings.push({
type: "validation",
message: 'Invalid video restriction relationship, should be "allow" or "deny"',
context: { url: urlElement.loc, field: "video.restriction.relationship", value: restriction.relationship }
});
}
}
}
if (video.platform && typeof video.platform === "object") {
const platform = video.platform;
if (isValidString(platform.relationship) && isValidString(platform["#text"])) {
const validRelationships = ["allow", "deny"];
if (validRelationships.includes(platform.relationship)) {
videoObj.platform = {
relationship: platform.relationship,
platform: platform["#text"]
};
} else {
warnings.push({
type: "validation",
message: 'Invalid video platform relationship, should be "allow" or "deny"',
context: { url: urlElement.loc, field: "video.platform.relationship", value: platform.relationship }
});
}
}
}
if (video.price) {
const prices = Array.isArray(video.price) ? video.price : [video.price];
const validPrices = prices.map((price) => {
const priceValue = price["#text"];
if (priceValue == null || typeof priceValue !== "string" && typeof priceValue !== "number") {
warnings.push({
type: "validation",
message: "Video price missing value",
context: { url: urlElement.loc, field: "video.price" }
});
return null;
}
const validTypes = ["rent", "purchase", "package", "subscription"];
if (price.type && !validTypes.includes(price.type)) {
warnings.push({
type: "validation",
message: `Invalid video price type "${price.type}", should be one of: ${validTypes.join(", ")}`,
context: { url: urlElement.loc, field: "video.price.type", value: price.type }
});
}
return {
price: String(priceValue),
currency: price.currency,
type: price.type
};
}).filter((p) => p !== null);
if (validPrices.length > 0) {
videoObj.price = validPrices;
}
}
if (video.uploader && typeof video.uploader === "object") {
const uploader = video.uploader;
if (isValidString(uploader.info) && isValidString(uploader["#text"])) {
videoObj.uploader = {
uploader: uploader["#text"],
info: uploader.info
};
} else {
warnings.push({
type: "validation",
message: "Video uploader missing required info or name",
context: { url: urlElement.loc, field: "video.uploader" }
});
}
}
if (video.tag) {
const tags = Array.isArray(video.tag) ? video.tag : [video.tag];
const validTags = tags.filter(isValidString);
if (validTags.length > 0) {
videoObj.tag = validTags;
}
}
return videoObj;
}).filter((video) => video !== null);
if (validVideos.length > 0) {
urlObj.videos = validVideos;
}
}
if (urlElement.link) {
const links = Array.isArray(urlElement.link) ? urlElement.link : [urlElement.link];
const alternatives = links.map((link) => {
if (link.rel === "alternate" && isValidString(link.hreflang) && isValidString(link.href)) {
return {
hreflang: link.hreflang,
href: link.href
};
} else {
warnings.push({
type: "validation",
message: 'Alternative link missing required rel="alternate", hreflang, or href',
context: { url: urlElement.loc, field: "link" }
});
return null;
}
}).filter((alt) => alt !== null);
if (alternatives.length > 0) {
urlObj.alternatives = alternatives;
}
}
if (urlElement.news && typeof urlElement.news === "object") {
const news = urlElement.news;
if (isValidString(news.title) && isValidString(news.publication_date) && news.publication && isValidString(news.publication.name) && isValidString(news.publication.language)) {
urlObj.news = {
title: news.title,
publication_date: news.publication_date,
publication: {
name: news.publication.name,
language: news.publication.language
}
};
} else {
warnings.push({
type: "validation",
message: "News entry missing required fields (title, publication_date, publication.name, publication.language)",
context: { url: urlElement.loc, field: "news" }
});
}
}
return Object.fromEntries(
Object.entries(urlObj).filter(
([_, value]) => value != null && (!Array.isArray(value) || value.length > 0)
)
);
}
async function parseSitemapXml(xml) {
const warnings = [];
if (!xml) {
throw new Error("Empty XML input provided");
}
const { XMLParser } = await import('fast-xml-parser');
const parser = new XMLParser({
isArray: (tagName) => ["url", "image", "video", "link", "tag", "price"].includes(tagName),
removeNSPrefix: true,
parseAttributeValue: false,
ignoreAttributes: false,
attributeNamePrefix: "",
trimValues: true
});
try {
const parsed = parser.parse(xml);
if (!parsed?.urlset) {
throw new Error("XML does not contain a valid urlset element");
}
if (!parsed.urlset.url) {
throw new Error("Sitemap contains no URL entries");
}
const urls = Array.isArray(parsed.urlset.url) ? parsed.urlset.url : [parsed.urlset.url];
const validUrls = urls.map((url) => extractUrlFromParsedElement(url, warnings)).filter((url) => url !== null);
if (validUrls.length === 0 && urls.length > 0) {
warnings.push({
type: "validation",
message: "No valid URLs found in sitemap after validation"
});
}
return { urls: validUrls, warnings };
} catch (error) {
if (error instanceof Error && (error.message === "Empty XML input provided" || error.message === "XML does not contain a valid urlset element" || error.message === "Sitemap contains no URL entries")) {
throw error;
}
throw new Error(`Failed to parse XML: ${error instanceof Error ? error.message : String(error)}`);
}
}
new XMLParser({
isArray: (tagName) => tagName === "sitemap",
removeNSPrefix: true,
trimValues: true
});
function normalizeSourceInput(source) {
if (typeof source === "string") {
return { context: { name: "hook" }, fetch: source };
}
if (Array.isArray(source)) {
return { context: { name: "hook" }, fetch: source };
}
return source;
}
async function tryFetchWithFallback(url, options, event) {
const isExternalUrl = !url.startsWith("/");
if (isExternalUrl) {
const strategies = [
// Strategy 1: Use globalThis.$fetch (original approach)
() => globalThis.$fetch(url, options),
// Strategy 2: If event is available, try using event context even for external URLs
event ? () => event.$fetch(url, options) : null,
// Strategy 3: Use native fetch as last resort
() => $fetch(url, options)
].filter(Boolean);
let lastError = null;
for (const strategy of strategies) {
try {
return await strategy();
} catch (error) {
lastError = error;
continue;
}
}
throw lastError;
}
const fetchContainer = url.startsWith("/") && event ? event : globalThis;
return await fetchContainer.$fetch(url, options);
}
async function fetchDataSource(input, event) {
const context = typeof input.context === "string" ? { name: input.context } : input.context || { name: "fetch" };
const url = typeof input.fetch === "string" ? input.fetch : input.fetch[0];
const options = typeof input.fetch === "string" ? {} : input.fetch[1];
const start = Date.now();
const isExternalUrl = !url.startsWith("/");
const timeout = isExternalUrl ? 1e4 : options.timeout || 5e3;
const timeoutController = new AbortController();
const abortRequestTimeout = setTimeout(() => timeoutController.abort(), timeout);
try {
let isMaybeErrorResponse = false;
const isXmlRequest = parseURL(url).pathname.endsWith(".xml");
const mergedHeaders = defu(
options?.headers,
{
Accept: isXmlRequest ? "text/xml" : "application/json"
},
event && !isExternalUrl ? { host: getRequestHost(event, { xForwardedHost: true }) } : {}
);
const fetchOptions = {
...options,
responseType: isXmlRequest ? "text" : "json",
signal: timeoutController.signal,
headers: mergedHeaders,
// Use ofetch's built-in retry for external sources
...isExternalUrl && {
retry: 2,
retryDelay: 200
},
// @ts-expect-error untyped
onResponse({ response }) {
if (typeof response._data === "string" && response._data.startsWith("<!DOCTYPE html>"))
isMaybeErrorResponse = true;
}
};
const res = await tryFetchWithFallback(url, fetchOptions, event);
const timeTakenMs = Date.now() - start;
if (isMaybeErrorResponse) {
return {
...input,
context,
urls: [],
timeTakenMs,
error: "Received HTML response instead of JSON"
};
}
let urls = [];
if (typeof res === "object") {
urls = res.urls || res;
} else if (typeof res === "string" && parseURL(url).pathname.endsWith(".xml")) {
const result = await parseSitemapXml(res);
urls = result.urls;
}
return {
...input,
context,
timeTakenMs,
urls
};
} catch (_err) {
const error = _err;
if (isExternalUrl) {
const errorInfo = {
url,
timeout,
error: error.message,
statusCode: error.response?.status,
statusText: error.response?.statusText,
method: options?.method || "GET"
};
logger.error("Failed to fetch external source.", errorInfo);
} else {
logger.error("Failed to fetch source.", { url, error: error.message });
}
return {
...input,
context,
urls: [],
error: error.message,
_isFailure: true
// Mark as failure to prevent caching
};
} finally {
if (abortRequestTimeout) {
clearTimeout(abortRequestTimeout);
}
}
}
async function globalSitemapSources() {
const m = await import('../virtual/global-sources.mjs');
return [...m.sources];
}
async function childSitemapSources(definition) {
if (!definition?._hasSourceChunk)
return [];
const m = await import('../virtual/child-sources.mjs');
return [...m.sources[definition.sitemapName] || []];
}
async function resolveSitemapSources(sources, event) {
return (await Promise.all(
sources.map((source) => {
const normalized = normalizeSourceInput(source);
if ("urls" in normalized) {
return {
timeTakenMs: 0,
...normalized,
urls: normalized.urls
};
}
if (normalized.fetch)
return fetchDataSource(normalized, event);
return {
...normalized,
error: "Invalid source"
};
})
)).flat();
}
function sortInPlace(urls) {
urls.sort((a, b) => {
const aLoc = typeof a === "string" ? a : a.loc;
const bLoc = typeof b === "string" ? b : b.loc;
const aSegments = aLoc.split("/").length;
const bSegments = bLoc.split("/").length;
if (aSegments !== bSegments) {
return aSegments - bSegments;
}
return aLoc.localeCompare(bLoc, void 0, { numeric: true });
});
return urls;
}
function parseChunkInfo(sitemapName, sitemaps, defaultChunkSize) {
defaultChunkSize = defaultChunkSize || 1e3;
if (typeof sitemaps.chunks !== "undefined" && !Number.isNaN(Number(sitemapName))) {
return {
isChunked: true,
baseSitemapName: "sitemap",
chunkIndex: Number(sitemapName),
chunkSize: defaultChunkSize
};
}
if (sitemapName.includes("-")) {
const parts = sitemapName.split("-");
const lastPart = parts.pop();
if (!Number.isNaN(Number(lastPart))) {
const baseSitemapName = parts.join("-");
const baseSitemap = sitemaps[baseSitemapName];
if (baseSitemap && (baseSitemap.chunks || baseSitemap._isChunking)) {
const chunkSize = typeof baseSitemap.chunks === "number" ? baseSitemap.chunks : baseSitemap.chunkSize || defaultChunkSize;
return {
isChunked: true,
baseSitemapName,
chunkIndex: Number(lastPart),
chunkSize
};
}
}
}
return {
isChunked: false,
baseSitemapName: sitemapName,
chunkIndex: void 0,
chunkSize: defaultChunkSize
};
}
function sliceUrlsForChunk(urls, sitemapName, sitemaps, defaultChunkSize = 1e3) {
const chunkInfo = parseChunkInfo(sitemapName, sitemaps, defaultChunkSize);
if (chunkInfo.isChunked && chunkInfo.chunkIndex !== void 0) {
const startIndex = chunkInfo.chunkIndex * chunkInfo.chunkSize;
const endIndex = (chunkInfo.chunkIndex + 1) * chunkInfo.chunkSize;
return urls.slice(startIndex, endIndex);
}
return urls;
}
function escapeValueForXml(value) {
if (value === true || value === false)
return value ? "yes" : "no";
return xmlEscape(String(value));
}
const yesNo = (v) => v === "yes" || v === true ? "yes" : "no";
const URLSET_OPENING_TAG = '<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd http://www.google.com/schemas/sitemap-image/1.1 http://www.google.com/schemas/sitemap-image/1.1/sitemap-image.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
function buildUrlXml(url, NL, I1, I2, I3, I4) {
let xml = `${I1}<url>${NL}`;
if (url.loc) xml += `${I2}<loc>${xmlEscape(url.loc)}</loc>${NL}`;
if (url.lastmod) xml += `${I2}<lastmod>${url.lastmod}</lastmod>${NL}`;
if (url.changefreq) xml += `${I2}<changefreq>${url.changefreq}</changefreq>${NL}`;
if (url.priority !== void 0) {
const p = typeof url.priority === "number" ? url.priority : Number.parseFloat(url.priority);
xml += `${I2}<priority>${p.toFixed(1)}</priority>${NL}`;
}
if (url.alternatives) {
for (const alt of url.alternatives) {
let attrs = "";
for (const [k, v] of Object.entries(alt)) attrs += ` ${k}="${xmlEscape(String(v))}"`;
xml += `${I2}<xhtml:link rel="alternate"${attrs} />${NL}`;
}
}
if (url.images) {
for (const img of url.images) {
xml += `${I2}<image:image>${NL}${I3}<image:loc>${xmlEscape(img.loc)}</image:loc>${NL}`;
if (img.title) xml += `${I3}<image:title>${xmlEscape(img.title)}</image:title>${NL}`;
if (img.caption) xml += `${I3}<image:caption>${xmlEscape(img.caption)}</image:caption>${NL}`;
if (img.geo_location) xml += `${I3}<image:geo_location>${xmlEscape(img.geo_location)}</image:geo_location>${NL}`;
if (img.license) xml += `${I3}<image:license>${xmlEscape(img.license)}</image:license>${NL}`;
xml += `${I2}</image:image>${NL}`;
}
}
if (url.videos) {
for (const video of url.videos) {
xml += `${I2}<video:video>${NL}${I3}<video:title>${xmlEscape(video.title)}</video:title>${NL}`;
if (video.thumbnail_loc) xml += `${I3}<video:thumbnail_loc>${xmlEscape(video.thumbnail_loc)}</video:thumbnail_loc>${NL}`;
xml += `${I3}<video:description>${xmlEscape(video.description)}</video:description>${NL}`;
if (video.content_loc) xml += `${I3}<video:content_loc>${xmlEscape(video.content_loc)}</video:content_loc>${NL}`;
if (video.player_loc) xml += `${I3}<video:player_loc>${xmlEscape(video.player_loc)}</video:player_loc>${NL}`;
if (video.duration !== void 0) xml += `${I3}<video:duration>${video.duration}</video:duration>${NL}`;
if (video.expiration_date) xml += `${I3}<video:expiration_date>${video.expiration_date}</video:expiration_date>${NL}`;
if (video.rating !== void 0) xml += `${I3}<video:rating>${video.rating}</video:rating>${NL}`;
if (video.view_count !== void 0) xml += `${I3}<video:view_count>${video.view_count}</video:view_count>${NL}`;
if (video.publication_date) xml += `${I3}<video:publication_date>${video.publication_date}</video:publication_date>${NL}`;
if (video.family_friendly !== void 0) xml += `${I3}<video:family_friendly>${yesNo(video.family_friendly)}</video:family_friendly>${NL}`;
if (video.restriction) xml += `${I3}<video:restriction relationship="${video.restriction.relationship || "allow"}">${xmlEscape(video.restriction.restriction)}</video:restriction>${NL}`;
if (video.platform) xml += `${I3}<video:platform relationship="${video.platform.relationship || "allow"}">${xmlEscape(video.platform.platform)}</video:platform>${NL}`;
if (video.requires_subscription !== void 0) xml += `${I3}<video:requires_subscription>${yesNo(video.requires_subscription)}</video:requires_subscription>${NL}`;
if (video.price) {
for (const price of video.price) {
const c = price.currency ? ` currency="${price.currency}"` : "";
const t = price.type ? ` type="${price.type}"` : "";
xml += `${I3}<video:price${c}${t}>${xmlEscape(String(price.price ?? ""))}</video:price>${NL}`;
}
}
if (video.uploader) {
const info = video.uploader.info ? ` info="${xmlEscape(video.uploader.info)}"` : "";
xml += `${I3}<video:uploader${info}>${xmlEscape(video.uploader.uploader)}</video:uploader>${NL}`;
}
if (video.live !== void 0) xml += `${I3}<video:live>${yesNo(video.live)}</video:live>${NL}`;
if (video.tag) {
const tags = Array.isArray(video.tag) ? video.tag : [video.tag];
for (const t of tags) xml += `${I3}<video:tag>${xmlEscape(t)}</video:tag>${NL}`;
}
if (video.category) xml += `${I3}<video:category>${xmlEscape(video.category)}</video:category>${NL}`;
if (video.gallery_loc) xml += `${I3}<video:gallery_loc>${xmlEscape(video.gallery_loc)}</video:gallery_loc>${NL}`;
xml += `${I2}</video:video>${NL}`;
}
}
if (url.news) {
xml += `${I2}<news:news>${NL}${I3}<news:publication>${NL}`;
xml += `${I4}<news:name>${xmlEscape(url.news.publication.name)}</news:name>${NL}`;
xml += `${I4}<news:language>${xmlEscape(url.news.publication.language)}</news:language>${NL}`;
xml += `${I3}</news:publication>${NL}`;
if (url.news.title) xml += `${I3}<news:title>${xmlEscape(url.news.title)}</news:title>${NL}`;
if (url.news.publication_date) xml += `${I3}<news:publication_date>${url.news.publication_date}</news:publication_date>${NL}`;
xml += `${I2}</news:news>${NL}`;
}
xml += `${I1}</url>`;
return xml;
}
function urlsToXml(urls, resolvers, { version, xsl, credits, minify }, errorInfo) {
let xslHref = xsl ? resolvers.relativeBaseUrlResolver(xsl) : false;
if (xslHref && errorInfo?.messages.length) {
xslHref = withQuery(xslHref, {
errors: "true",
error_messages: errorInfo.messages,
error_urls: errorInfo.urls
});
}
const NL = minify ? "" : "\n";
const I1 = minify ? "" : " ";
const I2 = minify ? "" : " ";
const I3 = minify ? "" : " ";
const I4 = minify ? "" : " ";
let xml = xslHref ? `<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="${escapeValueForXml(xslHref)}"?>${NL}` : `<?xml version="1.0" encoding="UTF-8"?>${NL}`;
xml += URLSET_OPENING_TAG + NL;
for (const url of urls) {
xml += buildUrlXml(url, NL, I1, I2, I3, I4) + NL;
}
xml += "</urlset>";
if (credits) {
xml += `${NL}<!-- XML Sitemap generated by @nuxtjs/sitemap v${version} at ${(/* @__PURE__ */ new Date()).toISOString()} -->`;
}
return xml;
}
function resolveSitemapEntries(sitemap, urls, runtimeConfig, resolvers) {
const {
autoI18n,
isI18nMapped
} = runtimeConfig;
const filterPath = createPathFilter({
include: sitemap.include,
exclude: sitemap.exclude
});
const _urls = urls.map((_e) => {
const e = preNormalizeEntry(_e, resolvers);
if (!e.loc || !filterPath(e.loc))
return false;
return e;
}).filter(Boolean);
let validI18nUrlsForTransform = [];
const withoutPrefixPaths = {};
if (autoI18n && autoI18n.strategy !== "no_prefix") {
const localeCodes = autoI18n.locales.map((l) => l.code);
const localeByCode = new Map(autoI18n.locales.map((l) => [l.code, l]));
const isPrefixStrategy = autoI18n.strategy === "prefix";
const isPrefixExceptOrAndDefault = autoI18n.strategy === "prefix_and_default" || autoI18n.strategy === "prefix_except_default";
const xDefaultAndLocales = [{ code: "x-default", _hreflang: "x-default" }, ...autoI18n.locales];
const defaultLocale = autoI18n.defaultLocale;
const hasPages = !!autoI18n.pages;
const hasDifferentDomains = !!autoI18n.differentDomains;
validI18nUrlsForTransform = _urls.map((_e, i) => {
if (_e._abs)
return false;
const split = splitForLocales(_e._relativeLoc, localeCodes);
let localeCode = split[0];
const pathWithoutPrefix = split[1];
if (!localeCode)
localeCode = defaultLocale;
const e = _e;
e._pathWithoutPrefix = pathWithoutPrefix;
const locale = localeByCode.get(localeCode);
if (!locale)
return false;
e._locale = locale;
e._index = i;
e._key = `${e._sitemap || ""}${e._path?.pathname || "/"}${e._path?.search || ""}`;
withoutPrefixPaths[pathWithoutPrefix] = withoutPrefixPaths[pathWithoutPrefix] || [];
if (!withoutPrefixPaths[pathWithoutPrefix].some((e2) => e2._locale.code === locale.code))
withoutPrefixPaths[pathWithoutPrefix].push(e);
return e;
}).filter(Boolean);
for (const e of validI18nUrlsForTransform) {
if (!e._i18nTransform && !e.alternatives?.length) {
const alternatives = (withoutPrefixPaths[e._pathWithoutPrefix] || []).map((u) => {
const entries = [];
if (u._locale.code === defaultLocale) {
entries.push({
href: u.loc,
hreflang: "x-default"
});
}
entries.push({
href: u.loc,
hreflang: u._locale._hreflang || defaultLocale
});
return entries;
}).flat().filter(Boolean);
if (alternatives.length)
e.alternatives = alternatives;
} else if (e._i18nTransform) {
delete e._i18nTransform;
if (hasDifferentDomains) {
const defLocale = localeByCode.get(defaultLocale);
e.alternatives = [
{
...defLocale,
code: "x-default"
},
...autoI18n.locales.filter((l) => !!l.domain)
].map((locale) => {
return {
hreflang: locale._hreflang,
href: joinURL(withHttps(locale.domain), e._pathWithoutPrefix)
};
});
} else {
const pageMatch = hasPages ? findPageMapping(e._pathWithoutPrefix, autoI18n.pages) : null;
const pathSearch = e._path?.search || "";
const pathWithoutPrefix = e._pathWithoutPrefix;
for (const l of autoI18n.locales) {
let loc = pathWithoutPrefix;
if (pageMatch && pageMatch.mappings[l.code] !== void 0) {
const customPath = pageMatch.mappings[l.code];
if (customPath === false)
continue;
if (typeof customPath === "string") {
loc = customPath[0] === "/" ? customPath : `/${customPath}`;
loc = applyDynamicParams(loc, pageMatch.paramSegments);
if (isPrefixStrategy || isPrefixExceptOrAndDefault && l.code !== defaultLocale)
loc = joinURL(`/${l.code}`, loc);
}
} else if (!hasDifferentDomains && !(isPrefixExceptOrAndDefault && l.code === defaultLocale)) {
loc = joinURL(`/${l.code}`, pathWithoutPrefix);
}
const _sitemap = isI18nMapped ? l._sitemap : void 0;
const alternatives = [];
for (const locale of xDefaultAndLocales) {
const code = locale.code === "x-default" ? defaultLocale : locale.code;
const isDefault = locale.code === "x-default" || locale.code === defaultLocale;
let href = pathWithoutPrefix;
if (pageMatch && pageMatch.mappings[code] !== void 0) {
const customPath = pageMatch.mappings[code];
if (customPath === false)
continue;
if (typeof customPath === "string") {
href = customPath[0] === "/" ? customPath : `/${customPath}`;
href = applyDynamicParams(href, pageMatch.paramSegments);
if (isPrefixStrategy || isPrefixExceptOrAndDefault && !isDefault)
href = joinURL("/", code, href);
}
} else if (isPrefixStrategy) {
href = joinURL("/", code, pathWithoutPrefix);
} else if (isPrefixExceptOrAndDefault && !isDefault) {
href = joinURL("/", code, pathWithoutPrefix);
}
if (!filterPath(href))
continue;
alternatives.push({
hreflang: locale._hreflang,
href
});
}
const { _index: _, ...rest } = e;
const newEntry = preNormalizeEntry({
_sitemap,
...rest,
_key: `${_sitemap || ""}${loc || "/"}${pathSearch}`,
_locale: l,
loc,
alternatives
}, resolvers);
if (e._locale.code === newEntry._locale.code) {
_urls[e._index] = newEntry;
e._index = void 0;
} else {
_urls.push(newEntry);
}
}
}
}
if (isI18nMapped) {
e._sitemap = e._sitemap || e._locale._sitemap;
e._key = `${e._sitemap || ""}${e.loc || "/"}${e._path?.search || ""}`;
}
if (e._index)
_urls[e._index] = e;
}
}
return _urls;
}
async function buildSitemapUrls(sitemap, resolvers, runtimeConfig, nitro) {
const {
sitemaps,
// enhancing
autoI18n,
isI18nMapped,
isMultiSitemap,
// sorting
sortEntries,
// chunking
defaultSitemapsChunkSize
} = runtimeConfig;
const chunkSize = defaultSitemapsChunkSize || void 0;
const chunkInfo = parseChunkInfo(sitemap.sitemapName, sitemaps, chunkSize);
function maybeSort(urls2) {
return sortEntries ? sortInPlace(urls2) : urls2;
}
function maybeSlice(urls2) {
return sliceUrlsForChunk(urls2, sitemap.sitemapName, sitemaps, chunkSize);
}
if (autoI18n?.differentDomains) {
const domain = autoI18n.locales.find((e) => e.language === sitemap.sitemapName || e.code === sitemap.sitemapName)?.domain;
if (domain) {
const _tester = resolvers.canonicalUrlResolver;
resolvers.canonicalUrlResolver = (path) => resolveSitePath(path, {
absolute: true,
withBase: false,
siteUrl: withHttps(domain),
trailingSlash: _tester("/test/").endsWith("/"),
base: "/"
});
}
}
let effectiveSitemap = sitemap;
const baseSitemapName = chunkInfo.baseSitemapName;
if (chunkInfo.isChunked && baseSitemapName !== sitemap.sitemapName && sitemaps[baseSitemapName]) {
effectiveSitemap = sitemaps[baseSitemapName];
}
let sourcesInput = effectiveSitemap.includeAppSources ? [...await globalSitemapSources(), ...await childSitemapSources(effectiveSitemap)] : await childSitemapSources(effectiveSitemap);
if (nitro && resolvers.event) {
const ctx = {
event: resolvers.event,
sitemapName: baseSitemapName,
sources: sourcesInput
};
await nitro.hooks.callHook("sitemap:sources", ctx);
sourcesInput = ctx.sources;
}
const sources = await resolveSitemapSources(sourcesInput, resolvers.event);
const failedSources = sources.filter((source) => source.error && source._isFailure).map((source) => ({
url: typeof source.fetch === "string" ? source.fetch : source.fetch?.[0] || "unknown",
error: source.error || "Unknown error"
}));
const resolvedCtx = {
urls: sources.flatMap((s) => s.urls),
sitemapName: sitemap.sitemapName,
event: resolvers.event
};
await nitro?.hooks.callHook("sitemap:input", resolvedCtx);
const enhancedUrls = resolveSitemapEntries(sitemap, resolvedCtx.urls, { autoI18n, isI18nMapped }, resolvers);
if (isMultiSitemap) {
const sitemapNames = Object.keys(sitemaps).filter((k) => k !== "index");
const warnedSitemaps = nitro?._sitemapWarnedSitemaps || /* @__PURE__ */ new Set();
for (const e of enhancedUrls) {
if (typeof e._sitemap === "string" && !sitemapNames.includes(e._sitemap)) {
if (!warnedSitemaps.has(e._sitemap)) {
warnedSitemaps.add(e._sitemap);
logger.error(`Sitemap \`${e._sitemap}\` not found in sitemap config. Available sitemaps: ${sitemapNames.join(", ")}. Entry \`${e.loc}\` will be omitted.`);
}
}
}
if (nitro) {
nitro._sitemapWarnedSitemaps = warnedSitemaps;
}
}
const filteredUrls = enhancedUrls.filter((e) => {
if (e._sitemap === false)
return false;
if (isMultiSitemap && e._sitemap && sitemap.sitemapName) {
if (sitemap._isChunking)
return sitemap.sitemapName.startsWith(e._sitemap + "-");
return e._sitemap === sitemap.sitemapName;
}
return true;
});
const sortedUrls = maybeSort(filteredUrls);
const urls = maybeSlice(sortedUrls);
return { urls, failedSources };
}
function useNitroUrlResolvers(e) {
const canonicalQuery = getQuery(e).canonical;
const isShowingCanonical = typeof canonicalQuery !== "undefined" && canonicalQuery !== "false";
const siteConfig = getSiteConfig(e);
return {
event: e,
fixSlashes: (path) => fixSlashes(siteConfig.trailingSlash, path),
// we need these as they depend on the nitro event
canonicalUrlResolver: createSitePathResolver(e, {
canonical: isShowingCanonical || true,
absolute: true,
withBase: true
}),
relativeBaseUrlResolver: createSitePathResolver(e, { absolute: false, withBase: true })
};
}
async function buildSitemapXml(event, definition, resolvers, runtimeConfig) {
const { sitemapName } = definition;
const nitro = useNitroApp();
const { urls: sitemapUrls, failedSources } = await buildSitemapUrls(definition, resolvers, runtimeConfig, nitro);
const routeRuleMatcher = createNitroRouteRuleMatcher();
const { autoI18n } = runtimeConfig;
let validCount = 0;
for (let i = 0; i < sitemapUrls.length; i++) {
const u = sitemapUrls[i];
const path = u._path?.pathname || u.loc;
let routeRules = routeRuleMatcher(path);
if (autoI18n?.locales && autoI18n?.strategy !== "no_prefix") {
const match = splitForLocales(path, autoI18n.locales.map((l) => l.code));
const pathWithoutPrefix = match[1];
if (pathWithoutPrefix && pathWithoutPrefix !== path)
routeRules = defu(routeRules, routeRuleMatcher(pathWithoutPrefix));
}
if (routeRules.sitemap === false)
continue;
if (typeof routeRules.robots !== "undefined" && !routeRules.robots)
continue;
const hasRobotsDisabled = Object.entries(routeRules.headers || {}).some(([name, value]) => name.toLowerCase() === "x-robots-tag" && value.toLowerCase().includes("noindex"));
if (routeRules.redirect || hasRobotsDisabled)
continue;
sitemapUrls[validCount++] = routeRules.sitemap ? defu(u, routeRules.sitemap) : u;
}
sitemapUrls.length = validCount;
const locSize = sitemapUrls.length;
const resolvedCtx = {
urls: sitemapUrls,
sitemapName,
event
};
await nitro.hooks.callHook("sitemap:resolved", resolvedCtx);
if (resolvedCtx.urls.length !== locSize) {
resolvedCtx.urls = resolvedCtx.urls.map((e) => preNormalizeEntry(e, resolvers));
}
const maybeSort = (urls2) => runtimeConfig.sortEntries ? sortInPlace(urls2) : urls2;
const defaults = definition.defaults || {};
const normalizedPreDedupe = resolvedCtx.urls.map((e) => normaliseEntry(e, defaults, resolvers));
const urls = maybeSort(mergeOnKey(normalizedPreDedupe, "_key").map((e) => normaliseEntry(e, defaults, resolvers)));
if (definition._isChunking && definition.sitemapName.includes("-")) {
const parts = definition.sitemapName.split("-");
const lastPart = parts.pop();
if (!Number.isNaN(Number(lastPart))) {
const chunkIndex = Number(lastPart);
const baseSitemapName = parts.join("-");
if (urls.length === 0 && chunkIndex > 0) {
throw createError$1({
statusCode: 404,
message: `Sitemap chunk ${chunkIndex} for "${baseSitemapName}" does not exist.`
});
}
}
}
const errorInfo = failedSources.length > 0 ? {
messages: failedSources.map((f) => f.error),
urls: failedSources.map((f) => f.url)
} : void 0;
const sitemap = urlsToXml(urls, resolvers, runtimeConfig, errorInfo);
const ctx = { sitemap, sitemapName, event };
await nitro.hooks.callHook("sitemap:output", ctx);
return ctx.sitemap;
}
const buildSitemapXmlCached = defineCachedFunction(
buildSitemapXml,
{
name: "sitemap:xml",
group: "sitemap",
maxAge: 60 * 10,
// Default 10 minutes
base: "sitemap",
// Use the sitemap storage
getKey: (event, definition) => {
const host = getHeader(event, "host") || getHeader(event, "x-forwarded-host") || "";
const proto = getHeader(event, "x-forwarded-proto") || "https";
const sitemapName = definition.sitemapName || "default";
return `${sitemapName}-${proto}-${host}`;
},
swr: true
// Enable stale-while-revalidate
}
);
async function createSitemap(event, definition, runtimeConfig) {
const resolvers = useNitroUrlResolvers(event);
const shouldCache = typeof runtimeConfig.cacheMaxAgeSeconds === "number" && runtimeConfig.cacheMaxAgeSeconds > 0;
const xml = shouldCache ? await buildSitemapXmlCached(event, definition, resolvers, runtimeConfig) : await buildSitemapXml(event, definition, resolvers, runtimeConfig);
setHeader(event, "Content-Type", "text/xml; charset=UTF-8");
if (runtimeConfig.cacheMaxAgeSeconds) {
setHeader(event, "Cache-Control", `public, max-age=${runtimeConfig.cacheMaxAgeSeconds}, s-maxage=${runtimeConfig.cacheMaxAgeSeconds}, stale-while-revalidate=3600`);
const now = /* @__PURE__ */ new Date();
setHeader(event, "X-Sitemap-Generated", now.toISOString());
setHeader(event, "X-Sitemap-Cache-Duration", `${runtimeConfig.cacheMaxAgeSeconds}s`);
const expiryTime = new Date(now.getTime() + runtimeConfig.cacheMaxAgeSeconds * 1e3);
setHeader(event, "X-Sitemap-Cache-Expires", expiryTime.toISOString());
const remainingSeconds = Math.floor((expiryTime.getTime() - now.getTime()) / 1e3);
setHeader(event, "X-Sitemap-Cache-Remaining", `${remainingSeconds}s`);
} else {
setHeader(event, "Cache-Control", `no-cache, no-store`);
}
event.context._isSitemap = true;
return xml;
}
async function sitemapXmlEventHandler(e) {
const runtimeConfig = useSitemapRuntimeConfig();
const { sitemaps } = runtimeConfig;
if ("index" in sitemaps)
return sendRedirect(e, withBase("/sitemap_index.xml", useRuntimeConfig().app.baseURL), 301);
return createSitemap(e, Object.values(sitemaps)[0], runtimeConfig);
}
const _HI5Ohx = defineEventHandler(sitemapXmlEventHandler);
function defineNitroPlugin(def) {
return def;
}
function defineRenderHandler(render) {
const runtimeConfig = useRuntimeConfig();
return eventHandler(async (event) => {
const nitroApp = useNitroApp();
const ctx = { event, render, response: void 0 };
await nitroApp.hooks.callHook("render:before", ctx);
if (!ctx.response) {
if (event.path === `${runtimeConfig.app.baseURL}favicon.ico`) {
setResponseHeader(event, "Content-Type", "image/x-icon");
return send(
event,
"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
);
}
ctx.response = await ctx.render(event);
if (!ctx.response) {
const _currentStatus = getResponseStatus(event);
setResponseStatus(event, _currentStatus === 200 ? 500 : _currentStatus);
return send(
event,
"No response returned from render handler: " + event.path
);
}
}
await nitroApp.hooks.callHook("render:response", ctx.response, ctx);
if (ctx.response.headers) {
setResponseHeaders(event, ctx.response.headers);
}
if (ctx.response.statusCode || ctx.response.statusMessage) {
setResponseStatus(
event,
ctx.response.statusCode,
ctx.response.statusMessage
);
}
return ctx.response.body;
});
}
function baseURL() {
// TODO: support passing event to `useRuntimeConfig`
return useRuntimeConfig().app.baseURL;
}
function buildAssetsDir() {
// TODO: support passing event to `useRuntimeConfig`
return useRuntimeConfig().app.buildAssetsDir;
}
function buildAssetsURL(...path) {
return joinRelativeURL(publicAssetsURL(), buildAssetsDir(), ...path);
}
function publicAssetsURL(...path) {
// TODO: support passing event to `useRuntimeConfig`
const app = useRuntimeConfig().app;
const publicBase = app.cdnURL || app.baseURL;
return path.length ? joinRelativeURL(publicBase, ...path) : publicBase;
}
const defineSitemapEventHandler = defineEventHandler;
const getCachedConfig = cachedFunction(async (host) => {
try {
const config = useRuntimeConfig();
const apiUrl = config.public.subscriptionUrl;
if (!apiUrl) {
console.error("\u274C [Server] Subscription URL is missing in runtimeConfig");
return null;
}
const response = await $fetch(apiUrl, {
headers: {
"X-Domain": host,
"Content-Type": "application/json"
},
// تایم‌اوت بگذارید تا اگر API کند بود سرور گیر نکند
timeout: 3e3
});
if (!response) return null;
const cleanUrl = (url) => (url == null ? void 0 : url.endsWith("/")) ? url.slice(0, -1) : url || "";
return {
appNameEn: response.name_en || "Application",
appNameFa: response.name_fa || "\u0627\u067E\u0644\u06CC\u06A9\u06CC\u0634\u0646",
description: response.text_header || "",
storageLogo: cleanUrl(response.storage_logo),
storageUrl: cleanUrl(response.storage_url),
nodeUrl: cleanUrl(response.node_url),
appType: response.app_type || ""
};
} catch (error) {
console.error(`\u274C [Server] Error fetching config for host (${host}):`, error);
return null;
}
}, {
maxAge: 60 * 60,
// کش کردن به مدت ۱ ساعت
name: "domain-config",
getKey: (host) => host
// کلید کش بر اساس دامنه است
});
const _YlbjoI = lazyEventHandler(() => {
const opts = useRuntimeConfig().ipx || {};
const fsDir = opts?.fs?.dir ? (Array.isArray(opts.fs.dir) ? opts.fs.dir : [opts.fs.dir]).map((dir) => isAbsolute(dir) ? dir : fileURLToPath(new URL(dir, globalThis._importMeta_.url))) : void 0;
const fsStorage = opts.fs?.dir ? ipxFSStorage({ ...opts.fs, dir: fsDir }) : void 0;
const httpStorage = opts.http?.domains ? ipxHttpStorage({ ...opts.http }) : void 0;
if (!fsStorage && !httpStorage) {
throw new Error("IPX storage is not configured!");
}
const ipxOptions = {
...opts,
storage: fsStorage || httpStorage,
httpStorage
};
const ipx = createIPX(ipxOptions);
const ipxHandler = createIPXH3Handler(ipx);
return useBase(opts.baseURL, ipxHandler);
});
const _lazy_UQSY1N = () => import('../routes/api/__sitemap__/urls.mjs');
const _lazy_BmQo8_ = () => import('../routes/api/stories.mjs');
const _lazy_ZVw7Q0 = () => import('../routes/favicon.ico.mjs');
const _lazy_UrvOu6 = () => import('../routes/manifest.webmanifest.get.mjs');
const _lazy_gznKN5 = () => import('../routes/pwa-icon-192.png.mjs');
const _lazy_hPfxBe = () => import('../routes/pwa-icon-512.png.mjs');
const _lazy_6w68fW = () => import('../routes/renderer.mjs');
const handlers = [
{ route: '', handler: _ZmxIja, lazy: false, middleware: true, method: undefined },
{ route: '', handler: _2iH1rY, lazy: false, middleware: true, method: undefined },
{ route: '/api/__sitemap__/urls', handler: _lazy_UQSY1N, lazy: true, middleware: false, method: undefined },
{ route: '/api/stories', handler: _lazy_BmQo8_, lazy: true, middleware: false, method: undefined },
{ route: '/favicon.ico', handler: _lazy_ZVw7Q0, lazy: true, middleware: false, method: undefined },
{ route: '/manifest.webmanifest', handler: _lazy_UrvOu6, lazy: true, middleware: false, method: "get" },
{ route: '/pwa-icon-192.png', handler: _lazy_gznKN5, lazy: true, middleware: false, method: undefined },
{ route: '/pwa-icon-512.png', handler: _lazy_hPfxBe, lazy: true, middleware: false, method: undefined },
{ route: '/__nuxt_error', handler: _lazy_6w68fW, lazy: true, middleware: false, method: undefined },
{ route: '/__nuxt_island/**', handler: _SxA8c9, lazy: false, middleware: false, method: undefined },
{ route: '', handler: _0pBAf1, lazy: false, middleware: true, method: undefined },
{ route: '/__sitemap__/style.xsl', handler: _wZAoUF, lazy: false, middleware: false, method: undefined },
{ route: '/sitemap.xml', handler: _HI5Ohx, lazy: false, middleware: false, method: undefined },
{ route: '/_ipx/**', handler: _YlbjoI, lazy: false, middleware: false, method: undefined },
{ route: '/**', handler: _lazy_6w68fW, lazy: true, middleware: false, method: undefined }
];
function createNitroApp() {
const config = useRuntimeConfig();
const hooks = createHooks();
const captureError = (error, context = {}) => {
const promise = hooks.callHookParallel("error", error, context).catch((error_) => {
console.error("Error while capturing another error", error_);
});
if (context.event && isEvent(context.event)) {
const errors = context.event.context.nitro?.errors;
if (errors) {
errors.push({ error, context });
}
if (context.event.waitUntil) {
context.event.waitUntil(promise);
}
}
};
const h3App = createApp({
debug: destr(false),
onError: (error, event) => {
captureError(error, { event, tags: ["request"] });
return errorHandler(error, event);
},
onRequest: async (event) => {
event.context.nitro = event.context.nitro || { errors: [] };
const fetchContext = event.node.req?.__unenv__;
if (fetchContext?._platform) {
event.context = {
_platform: fetchContext?._platform,
// #3335
...fetchContext._platform,
...event.context
};
}
if (!event.context.waitUntil && fetchContext?.waitUntil) {
event.context.waitUntil = fetchContext.waitUntil;
}
event.fetch = (req, init) => fetchWithEvent(event, req, init, { fetch: localFetch });
event.$fetch = (req, init) => fetchWithEvent(event, req, init, {
fetch: $fetch
});
event.waitUntil = (promise) => {
if (!event.context.nitro._waitUntilPromises) {
event.context.nitro._waitUntilPromises = [];
}
event.context.nitro._waitUntilPromises.push(promise);
if (event.context.waitUntil) {
event.context.waitUntil(promise);
}
};
event.captureError = (error, context) => {
captureError(error, { event, ...context });
};
await nitroApp$1.hooks.callHook("request", event).catch((error) => {
captureError(error, { event, tags: ["request"] });
});
},
onBeforeResponse: async (event, response) => {
await nitroApp$1.hooks.callHook("beforeResponse", event, response).catch((error) => {
captureError(error, { event, tags: ["request", "response"] });
});
},
onAfterResponse: async (event, response) => {
await nitroApp$1.hooks.callHook("afterResponse", event, response).catch((error) => {
captureError(error, { event, tags: ["request", "response"] });
});
}
});
const router = createRouter({
preemptive: true
});
const nodeHandler = toNodeListener(h3App);
const localCall = (aRequest) => b$1(
nodeHandler,
aRequest
);
const localFetch = (input, init) => {
if (!input.toString().startsWith("/")) {
return globalThis.fetch(input, init);
}
return C$1(
nodeHandler,
input,
init
).then((response) => normalizeFetchResponse(response));
};
const $fetch = createFetch({
fetch: localFetch,
Headers: Headers$1,
defaults: { baseURL: config.app.baseURL }
});
globalThis.$fetch = $fetch;
h3App.use(createRouteRulesHandler({ localFetch }));
for (const h of handlers) {
let handler = h.lazy ? lazyEventHandler(h.handler) : h.handler;
if (h.middleware || !h.route) {
const middlewareBase = (config.app.baseURL + (h.route || "/")).replace(
/\/+/g,
"/"
);
h3App.use(middlewareBase, handler);
} else {
const routeRules = getRouteRulesForPath(
h.route.replace(/:\w+|\*\*/g, "_")
);
if (routeRules.cache) {
handler = cachedEventHandler(handler, {
group: "nitro/routes",
...routeRules.cache
});
}
router.use(h.route, handler, h.method);
}
}
h3App.use(config.app.baseURL, router.handler);
const app = {
hooks,
h3App,
router,
localCall,
localFetch,
captureError
};
return app;
}
function runNitroPlugins(nitroApp2) {
for (const plugin of plugins) {
try {
plugin(nitroApp2);
} catch (error) {
nitroApp2.captureError(error, { tags: ["plugin"] });
throw error;
}
}
}
const nitroApp$1 = createNitroApp();
function useNitroApp() {
return nitroApp$1;
}
runNitroPlugins(nitroApp$1);
const debug = (...args) => {
};
function GracefulShutdown(server, opts) {
opts = opts || {};
const options = Object.assign(
{
signals: "SIGINT SIGTERM",
timeout: 3e4,
development: false,
forceExit: true,
onShutdown: (signal) => Promise.resolve(signal),
preShutdown: (signal) => Promise.resolve(signal)
},
opts
);
let isShuttingDown = false;
const connections = {};
let connectionCounter = 0;
const secureConnections = {};
let secureConnectionCounter = 0;
let failed = false;
let finalRun = false;
function onceFactory() {
let called = false;
return (emitter, events, callback) => {
function call() {
if (!called) {
called = true;
return Reflect.apply(callback, this, arguments);
}
}
for (const e of events) {
emitter.on(e, call);
}
};
}
const signals = options.signals.split(" ").map((s) => s.trim()).filter((s) => s.length > 0);
const once = onceFactory();
once(process, signals, (signal) => {
debug("received shut down signal", signal);
shutdown(signal).then(() => {
if (options.forceExit) {
process.exit(failed ? 1 : 0);
}
}).catch((error) => {
debug("server shut down error occurred", error);
process.exit(1);
});
});
function isFunction(functionToCheck) {
const getType = Object.prototype.toString.call(functionToCheck);
return /^\[object\s([A-Za-z]+)?Function]$/.test(getType);
}
function destroy(socket, force = false) {
if (socket._isIdle && isShuttingDown || force) {
socket.destroy();
if (socket.server instanceof http.Server) {
delete connections[socket._connectionId];
} else {
delete secureConnections[socket._connectionId];
}
}
}
function destroyAllConnections(force = false) {
debug("Destroy Connections : " + (force ? "forced close" : "close"));
let counter = 0;
let secureCounter = 0;
for (const key of Object.keys(connections)) {
const socket = connections[key];
const serverResponse = socket._httpMessage;
if (serverResponse && !force) {
if (!serverResponse.headersSent) {
serverResponse.setHeader("connection", "close");
}
} else {
counter++;
destroy(socket);
}
}
debug("Connections destroyed : " + counter);
debug("Connection Counter : " + connectionCounter);
for (const key of Object.keys(secureConnections)) {
const socket = secureConnections[key];
const serverResponse = socket._httpMessage;
if (serverResponse && !force) {
if (!serverResponse.headersSent) {
serverResponse.setHeader("connection", "close");
}
} else {
secureCounter++;
destroy(socket);
}
}
debug("Secure Connections destroyed : " + secureCounter);
debug("Secure Connection Counter : " + secureConnectionCounter);
}
server.on("request", (req, res) => {
req.socket._isIdle = false;
if (isShuttingDown && !res.headersSent) {
res.setHeader("connection", "close");
}
res.on("finish", () => {
req.socket._isIdle = true;
destroy(req.socket);
});
});
server.on("connection", (socket) => {
if (isShuttingDown) {
socket.destroy();
} else {
const id = connectionCounter++;
socket._isIdle = true;
socket._connectionId = id;
connections[id] = socket;
socket.once("close", () => {
delete connections[socket._connectionId];
});
}
});
server.on("secureConnection", (socket) => {
if (isShuttingDown) {
socket.destroy();
} else {
const id = secureConnectionCounter++;
socket._isIdle = true;
socket._connectionId = id;
secureConnections[id] = socket;
socket.once("close", () => {
delete secureConnections[socket._connectionId];
});
}
});
process.on("close", () => {
debug("closed");
});
function shutdown(sig) {
function cleanupHttp() {
destroyAllConnections();
debug("Close http server");
return new Promise((resolve, reject) => {
server.close((err) => {
if (err) {
return reject(err);
}
return resolve(true);
});
});
}
debug("shutdown signal - " + sig);
if (options.development) {
debug("DEV-Mode - immediate forceful shutdown");
return process.exit(0);
}
function finalHandler() {
if (!finalRun) {
finalRun = true;
if (options.finally && isFunction(options.finally)) {
debug("executing finally()");
options.finally();
}
}
return Promise.resolve();
}
function waitForReadyToShutDown(totalNumInterval) {
debug(`waitForReadyToShutDown... ${totalNumInterval}`);
if (totalNumInterval === 0) {
debug(
`Could not close connections in time (${options.timeout}ms), will forcefully shut down`
);
return Promise.resolve(true);
}
const allConnectionsClosed = Object.keys(connections).length === 0 && Object.keys(secureConnections).length === 0;
if (allConnectionsClosed) {
debug("All connections closed. Continue to shutting down");
return Promise.resolve(false);
}
debug("Schedule the next waitForReadyToShutdown");
return new Promise((resolve) => {
setTimeout(() => {
resolve(waitForReadyToShutDown(totalNumInterval - 1));
}, 250);
});
}
if (isShuttingDown) {
return Promise.resolve();
}
debug("shutting down");
return options.preShutdown(sig).then(() => {
isShuttingDown = true;
cleanupHttp();
}).then(() => {
const pollIterations = options.timeout ? Math.round(options.timeout / 250) : 0;
return waitForReadyToShutDown(pollIterations);
}).then((force) => {
debug("Do onShutdown now");
if (force) {
destroyAllConnections(force);
}
return options.onShutdown(sig);
}).then(finalHandler).catch((error) => {
const errString = typeof error === "string" ? error : JSON.stringify(error);
debug(errString);
failed = true;
throw errString;
});
}
function shutdownManual() {
return shutdown("manual");
}
return shutdownManual;
}
function getGracefulShutdownConfig() {
return {
disabled: !!process.env.NITRO_SHUTDOWN_DISABLED,
signals: (process.env.NITRO_SHUTDOWN_SIGNALS || "SIGTERM SIGINT").split(" ").map((s) => s.trim()),
timeout: Number.parseInt(process.env.NITRO_SHUTDOWN_TIMEOUT || "", 10) || 3e4,
forceExit: !process.env.NITRO_SHUTDOWN_NO_FORCE_EXIT
};
}
function setupGracefulShutdown(listener, nitroApp) {
const shutdownConfig = getGracefulShutdownConfig();
if (shutdownConfig.disabled) {
return;
}
GracefulShutdown(listener, {
signals: shutdownConfig.signals.join(" "),
timeout: shutdownConfig.timeout,
forceExit: shutdownConfig.forceExit,
onShutdown: async () => {
await new Promise((resolve) => {
const timeout = setTimeout(() => {
console.warn("Graceful shutdown timeout, force exiting...");
resolve();
}, shutdownConfig.timeout);
nitroApp.hooks.callHook("close").catch((error) => {
console.error(error);
}).finally(() => {
clearTimeout(timeout);
resolve();
});
});
}
});
}
const cert = process.env.NITRO_SSL_CERT;
const key = process.env.NITRO_SSL_KEY;
const nitroApp = useNitroApp();
const server = cert && key ? new Server({ key, cert }, toNodeListener(nitroApp.h3App)) : new Server$1(toNodeListener(nitroApp.h3App));
const port = destr(process.env.NITRO_PORT || process.env.PORT) || 3e3;
const host = process.env.NITRO_HOST || process.env.HOST;
const path = process.env.NITRO_UNIX_SOCKET;
const listener = server.listen(path ? { path } : { port, host }, (err) => {
if (err) {
console.error(err);
process.exit(1);
}
const protocol = cert && key ? "https" : "http";
const addressInfo = listener.address();
if (typeof addressInfo === "string") {
console.log(`Listening on unix socket ${addressInfo}`);
return;
}
const baseURL = (useRuntimeConfig().app.baseURL || "").replace(/\/$/, "");
const url = `${protocol}://${addressInfo.family === "IPv6" ? `[${addressInfo.address}]` : addressInfo.address}:${addressInfo.port}${baseURL}`;
console.log(`Listening on ${url}`);
});
trapUnhandledNodeErrors();
setupGracefulShutdown(listener, nitroApp);
const nodeServer = {};
export { $fetch$1 as $, withQuery as A, sanitizeStatusCode as B, getContext as C, baseURL as D, createHooks as E, executeAsync as F, getRequestHeaders as G, nodeServer as H, getCachedConfig as a, getRequestHost as b, setResponseHeader as c, defineEventHandler as d, defu as e, withoutTrailingSlash as f, getRequestHeader as g, hasProtocol as h, defineSitemapEventHandler as i, joinURL as j, buildAssetsURL as k, getResponseStatusText as l, getResponseStatus as m, decodePath as n, defineRenderHandler as o, parseQuery as p, publicAssetsURL as q, getQuery as r, sendRedirect as s, createError$1 as t, useRuntimeConfig as u, destr as v, withTrailingSlash as w, getRouteRules as x, useNitroApp as y, isScriptProtocol as z };