globalThis._importMeta_=globalThis._importMeta_||{url:"file:///_entry.js",env:process.env};import 'node-fetch-native/polyfill';
import { Server as Server$1 } from 'node:http';
import { Server } from 'node:https';
import destr from 'destr';
import { defineEventHandler, handleCacheHeaders, createEvent, eventHandler, setHeaders, sendRedirect, proxyRequest, getRequestHeader, setResponseStatus, setResponseHeader, getRequestHeaders, createError, createApp, createRouter as createRouter$1, toNodeListener, fetchWithEvent, lazyEventHandler } from 'h3';
import { createFetch as createFetch$1, Headers } from 'ofetch';
import { createCall, createFetch } from 'unenv/runtime/fetch/index';
import { createHooks } from 'hookable';
import { snakeCase } from 'scule';
import { klona } from 'klona';
import defu, { defuFn } from 'defu';
import { hash } from 'ohash';
import { parseURL, withoutBase, joinURL, getQuery, withQuery, withLeadingSlash, withoutTrailingSlash } from 'ufo';
import { createStorage, prefixStorage } from 'unstorage';
import { toRouteMatcher, createRouter } from 'radix3';
import { promises } from 'node:fs';
import { fileURLToPath } from 'node:url';
import { dirname, resolve } from 'pathe';
import auth from 'basic-auth';
import gracefulShutdown from 'http-graceful-shutdown';

const inlineAppConfig = {};



const appConfig = defuFn(inlineAppConfig);

const _inlineRuntimeConfig = {
  "app": {
    "baseURL": "/",
    "buildAssetsDir": "/_nuxt/",
    "cdnURL": ""
  },
  "nitro": {
    "envPrefix": "NUXT_",
    "routeRules": {
      "/__nuxt_error": {
        "cache": false
      },
      "/_nuxt/**": {
        "headers": {
          "cache-control": "public, max-age=31536000, immutable"
        }
      }
    }
  },
  "public": {}
};
const ENV_PREFIX = "NITRO_";
const ENV_PREFIX_ALT = _inlineRuntimeConfig.nitro.envPrefix ?? process.env.NITRO_ENV_PREFIX ?? "_";
const _sharedRuntimeConfig = _deepFreeze(
  _applyEnv(klona(_inlineRuntimeConfig))
);
function useRuntimeConfig(event) {
  if (!event) {
    return _sharedRuntimeConfig;
  }
  if (event.context.nitro.runtimeConfig) {
    return event.context.nitro.runtimeConfig;
  }
  const runtimeConfig = klona(_inlineRuntimeConfig);
  _applyEnv(runtimeConfig);
  event.context.nitro.runtimeConfig = runtimeConfig;
  return runtimeConfig;
}
_deepFreeze(klona(appConfig));
function _getEnv(key) {
  const envKey = snakeCase(key).toUpperCase();
  return destr(
    process.env[ENV_PREFIX + envKey] ?? process.env[ENV_PREFIX_ALT + envKey]
  );
}
function _isObject(input) {
  return typeof input === "object" && !Array.isArray(input);
}
function _applyEnv(obj, parentKey = "") {
  for (const key in obj) {
    const subKey = parentKey ? `${parentKey}_${key}` : key;
    const envValue = _getEnv(subKey);
    if (_isObject(obj[key])) {
      if (_isObject(envValue)) {
        obj[key] = { ...obj[key], ...envValue };
      }
      _applyEnv(obj[key], subKey);
    } else {
      obj[key] = envValue ?? obj[key];
    }
  }
  return obj;
}
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;
  }
});

const _assets = {

};

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 : {})
  }
};

const storage = createStorage({});

storage.mount('/assets', assets$1);

function useStorage(base = "") {
  return base ? prefixStorage(storage, base) : storage;
}

const defaultCacheOptions = {
  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 = hash([opts.integrity, fn, opts]);
  const validate = opts.validate || (() => true);
  async function get(key, resolver, shouldInvalidateCache) {
    const cacheKey = [opts.base, group, name, key + ".json"].filter(Boolean).join(":").replace(/:\/$/, ":index");
    const entry = await useStorage().getItem(cacheKey) || {};
    const ttl = (opts.maxAge ?? 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);
    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)) {
          useStorage().setItem(cacheKey, entry).catch((error) => console.error("[nitro] [cache]", error));
        }
      }
    };
    const _resolvePromise = expired ? _resolve() : Promise.resolve();
    if (opts.swr && entry.value) {
      _resolvePromise.catch(console.error);
      return entry;
    }
    return _resolvePromise.then(() => entry);
  }
  return async (...args) => {
    const shouldBypassCache = opts.shouldBypassCache?.(...args);
    if (shouldBypassCache) {
      return fn(...args);
    }
    const key = await (opts.getKey || getKey)(...args);
    const shouldInvalidateCache = opts.shouldInvalidateCache?.(...args);
    const entry = await get(key, () => fn(...args), shouldInvalidateCache);
    let value = entry.value;
    if (opts.transform) {
      value = await opts.transform(entry, ...args) || value;
    }
    return value;
  };
}
const cachedFunction = defineCachedFunction;
function getKey(...args) {
  return args.length > 0 ? hash(args, {}) : "";
}
function escapeKey(key) {
  return key.replace(/[^\dA-Za-z]/g, "");
}
function defineCachedEventHandler(handler, opts = defaultCacheOptions) {
  const _opts = {
    ...opts,
    getKey: async (event) => {
      const key = await opts.getKey?.(event);
      if (key) {
        return escapeKey(key);
      }
      const url = event.node.req.originalUrl || event.node.req.url;
      const friendlyName = escapeKey(decodeURI(parseURL(url).pathname)).slice(
        0,
        16
      );
      const urlHash = hash(url);
      return `${friendlyName}.${urlHash}`;
    },
    validate: (entry) => {
      if (entry.value.code >= 400) {
        return false;
      }
      if (entry.value.body === void 0) {
        return false;
      }
      return true;
    },
    group: opts.group || "nitro/handlers",
    integrity: [opts.integrity, handler]
  };
  const _cachedHandler = cachedFunction(
    async (incomingEvent) => {
      const reqProxy = cloneWithProxy(incomingEvent.node.req, { headers: {} });
      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();
          }
          if (typeof arg3 === "function") {
            arg3();
          }
          return this;
        },
        writeHead(statusCode, headers2) {
          this.statusCode = statusCode;
          if (headers2) {
            for (const header in headers2) {
              this.setHeader(header, headers2[header]);
            }
          }
          return this;
        }
      });
      const event = createEvent(reqProxy, resProxy);
      event.context = incomingEvent.context;
      const body = await handler(event) || _resSendBody;
      const headers = event.node.res.getHeaders();
      headers.etag = headers.Etag || headers.etag || `W/"${hash(body)}"`;
      headers["last-modified"] = 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) {
      event.node.res.setHeader(name, response.headers[name]);
    }
    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;

const config = useRuntimeConfig();
const _routeRulesMatcher = toRouteMatcher(
  createRouter({ routes: config.nitro.routeRules })
);
function createRouteRulesHandler() {
  return eventHandler((event) => {
    const routeRules = getRouteRules(event);
    if (routeRules.headers) {
      setHeaders(event, routeRules.headers);
    }
    if (routeRules.redirect) {
      return sendRedirect(
        event,
        routeRules.redirect.to,
        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(event.path);
        target = withQuery(target, query);
      }
      return proxyRequest(event, target, {
        fetch: $fetch.raw,
        ...routeRules.proxy
      });
    }
  });
}
function getRouteRules(event) {
  event.context._nitro = event.context._nitro || {};
  if (!event.context._nitro.routeRules) {
    const path = new URL(event.node.req.url, "http://localhost").pathname;
    event.context._nitro.routeRules = getRouteRulesForPath(
      withoutBase(path, useRuntimeConfig().app.baseURL)
    );
  }
  return event.context._nitro.routeRules;
}
function getRouteRulesForPath(path) {
  return defu({}, ..._routeRulesMatcher.matchAll(path).reverse());
}

const plugins = [
  
];

function hasReqHeader(event, name, includes) {
  const value = getRequestHeader(event, name);
  return value && typeof value === "string" && value.toLowerCase().includes(includes);
}
function isJsonRequest(event) {
  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 normalizeError(error) {
  const cwd = typeof process.cwd === "function" ? process.cwd() : "/";
  const stack = (error.stack || "").split("\n").splice(1).filter((line) => line.includes("at ")).map((line) => {
    const text = line.replace(cwd + "/", "./").replace("webpack:/", "").replace("file://", "").trim();
    return {
      text,
      internal: line.includes("node_modules") && !line.includes(".cache") || line.includes("internal") || line.includes("new Promise")
    };
  });
  const statusCode = error.statusCode || 500;
  const statusMessage = error.statusMessage ?? (statusCode === 404 ? "Not Found" : "");
  const message = error.message || error.toString();
  return {
    stack,
    statusCode,
    statusMessage,
    message
  };
}
function trapUnhandledNodeErrors() {
  {
    process.on(
      "unhandledRejection",
      (err) => console.error("[nitro] [unhandledRejection] " + err)
    );
    process.on(
      "uncaughtException",
      (err) => console.error("[nitro]  [uncaughtException] " + err)
    );
  }
}

const errorHandler = (async function errorhandler(error, event) {
  const { stack, statusCode, statusMessage, message } = normalizeError(error);
  const errorObject = {
    url: event.node.req.url,
    statusCode,
    statusMessage,
    message,
    stack: "",
    data: error.data
  };
  setResponseStatus(event, errorObject.statusCode !== 200 && errorObject.statusCode || 500, errorObject.statusMessage);
  if (error.unhandled || error.fatal) {
    const tags = [
      "[nuxt]",
      "[request error]",
      error.unhandled && "[unhandled]",
      error.fatal && "[fatal]",
      Number(errorObject.statusCode) !== 200 && `[${errorObject.statusCode}]`
    ].filter(Boolean).join(" ");
    console.error(tags, errorObject.message + "\n" + stack.map((l) => "  " + l.text).join("  \n"));
  }
  if (isJsonRequest(event)) {
    setResponseHeader(event, "Content-Type", "application/json");
    event.node.res.end(JSON.stringify(errorObject));
    return;
  }
  const isErrorPage = event.node.req.url?.startsWith("/__nuxt_error");
  const res = !isErrorPage ? await useNitroApp().localFetch(withQuery(joinURL(useRuntimeConfig().app.baseURL, "/__nuxt_error"), errorObject), {
    headers: getRequestHeaders(event),
    redirect: "manual"
  }).catch(() => null) : null;
  if (!res) {
    const { template } = await import('../error-500.mjs');
    setResponseHeader(event, "Content-Type", "text/html;charset=UTF-8");
    event.node.res.end(template(errorObject));
    return;
  }
  for (const [header, value] of res.headers.entries()) {
    setResponseHeader(event, header, value);
  }
  setResponseStatus(event, res.status && res.status !== 200 ? res.status : void 0, res.statusText);
  event.node.res.end(await res.text());
});

const assets = {
  "/favicon.svg": {
    "type": "image/svg+xml",
    "etag": "\"1690-9tv5EI2+LxbgpEUi3MJwi0Rx+tg\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 5776,
    "path": "../public/favicon.svg"
  },
  "/_nuxt/Readex_Pro-400-1.0b966302.woff2": {
    "type": "font/woff2",
    "etag": "\"59a0-suZgRqf1CkDPYjhJu1x5VBmyq9g\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 22944,
    "path": "../public/_nuxt/Readex_Pro-400-1.0b966302.woff2"
  },
  "/_nuxt/Readex_Pro-400-2.6376211a.woff2": {
    "type": "font/woff2",
    "etag": "\"2b9c-tIMHNBNyag+5rBxMwwyGu84Db9o\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 11164,
    "path": "../public/_nuxt/Readex_Pro-400-2.6376211a.woff2"
  },
  "/_nuxt/Readex_Pro-400-3.232bcbee.woff2": {
    "type": "font/woff2",
    "etag": "\"6a48-k9BADE2RxmPLmH9AXI4VtHLhSxI\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 27208,
    "path": "../public/_nuxt/Readex_Pro-400-3.232bcbee.woff2"
  },
  "/_nuxt/Readex_Pro-400-4.a4805912.woff2": {
    "type": "font/woff2",
    "etag": "\"7b74-ISRRHrL7ruksIROALPnzMZNIFZY\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 31604,
    "path": "../public/_nuxt/Readex_Pro-400-4.a4805912.woff2"
  },
  "/_nuxt/arc.93cd9af7.js": {
    "type": "application/javascript",
    "etag": "\"d88-vtRSMP5CX4h7TGQD0RlDUMhMirg\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 3464,
    "path": "../public/_nuxt/arc.93cd9af7.js"
  },
  "/_nuxt/array.9f3ba611.js": {
    "type": "application/javascript",
    "etag": "\"56-WlehrlF2756B8NQr2AX0rcb6nMs\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 86,
    "path": "../public/_nuxt/array.9f3ba611.js"
  },
  "/_nuxt/c4Diagram-44c43e89.943e0226.js": {
    "type": "application/javascript",
    "etag": "\"112b8-BlEqA8F5Apmk4ZqpJYc1V8544yY\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 70328,
    "path": "../public/_nuxt/c4Diagram-44c43e89.943e0226.js"
  },
  "/_nuxt/classDiagram-634fc78b.a475b85d.js": {
    "type": "application/javascript",
    "etag": "\"f5d-i/3q4lt8VIR+X+XOs4tpYxqGcUs\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 3933,
    "path": "../public/_nuxt/classDiagram-634fc78b.a475b85d.js"
  },
  "/_nuxt/classDiagram-v2-72bddc41.27e107c1.js": {
    "type": "application/javascript",
    "etag": "\"11cf-NU9M7MEYipWBDhF3IKdgYrGWdj4\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 4559,
    "path": "../public/_nuxt/classDiagram-v2-72bddc41.27e107c1.js"
  },
  "/_nuxt/createText-1f5f8f92.665b5979.js": {
    "type": "application/javascript",
    "etag": "\"4f58-TfGRUm0MvnoH0LMO5ZM3TM86/Dg\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 20312,
    "path": "../public/_nuxt/createText-1f5f8f92.665b5979.js"
  },
  "/_nuxt/edges-2e77835f.f0364716.js": {
    "type": "application/javascript",
    "etag": "\"750e-o7qYWj1dC/wjeooE5HIo/9j7X/8\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 29966,
    "path": "../public/_nuxt/edges-2e77835f.f0364716.js"
  },
  "/_nuxt/entry.559227d3.js": {
    "type": "application/javascript",
    "etag": "\"b7451-zpNKu+MgJZ6azzvNVcXnCe+G/88\"",
    "mtime": "2023-07-02T08:10:39.080Z",
    "size": 750673,
    "path": "../public/_nuxt/entry.559227d3.js"
  },
  "/_nuxt/entry.df1a2c4d.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"c499-LgGuwj48hRkzYNZo11Amu+aoyTY\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 50329,
    "path": "../public/_nuxt/entry.df1a2c4d.css"
  },
  "/_nuxt/erDiagram-20cc9db4.cceb30e8.js": {
    "type": "application/javascript",
    "etag": "\"77a3-g0sqF2K9idBmIGBAr/tpjcbvf+8\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 30627,
    "path": "../public/_nuxt/erDiagram-20cc9db4.cceb30e8.js"
  },
  "/_nuxt/error-404.53b4dbba.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"e2e-hx4x8df/ui64GPYBu2PAD7LlSbI\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 3630,
    "path": "../public/_nuxt/error-404.53b4dbba.css"
  },
  "/_nuxt/error-404.cf15c855.js": {
    "type": "application/javascript",
    "etag": "\"1981-ZxhOXU00CstU9WnOFzZYhK4avVQ\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 6529,
    "path": "../public/_nuxt/error-404.cf15c855.js"
  },
  "/_nuxt/error-500.1c17b83c.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"79e-hyAM96kNirXZhmDGDBLYQVczQBs\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 1950,
    "path": "../public/_nuxt/error-500.1c17b83c.css"
  },
  "/_nuxt/error-500.f637613d.js": {
    "type": "application/javascript",
    "etag": "\"75d-Y+6qHQZYQrGyPY26ZGtvwfL+a0U\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 1885,
    "path": "../public/_nuxt/error-500.f637613d.js"
  },
  "/_nuxt/error-component.0d9c6ec6.js": {
    "type": "application/javascript",
    "etag": "\"45e-3TIkNOl4z/Z8R6vUMsGvM5z+8hc\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 1118,
    "path": "../public/_nuxt/error-component.0d9c6ec6.js"
  },
  "/_nuxt/flowDb-52e24d17.7e49e72b.js": {
    "type": "application/javascript",
    "etag": "\"d007-rn5hd/RFOaNKQYdNBx/5soBbn7M\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 53255,
    "path": "../public/_nuxt/flowDb-52e24d17.7e49e72b.js"
  },
  "/_nuxt/flowDiagram-46a15f6f.a9f8e533.js": {
    "type": "application/javascript",
    "etag": "\"54b7-HGJZCgFlBFzoRvA1iS3tM/PnGNY\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 21687,
    "path": "../public/_nuxt/flowDiagram-46a15f6f.a9f8e533.js"
  },
  "/_nuxt/flowDiagram-v2-8e52592d.38812c6e.js": {
    "type": "application/javascript",
    "etag": "\"2d2-Qu4fy3iLCNwhvPgfeec1uhzmqz0\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 722,
    "path": "../public/_nuxt/flowDiagram-v2-8e52592d.38812c6e.js"
  },
  "/_nuxt/flowchart-elk-definition-a44a74cb.72ebd751.js": {
    "type": "application/javascript",
    "etag": "\"14fdec-ukmaQJYyleEu0Z9IPuIWSGqw6wM\"",
    "mtime": "2023-07-02T08:10:39.076Z",
    "size": 1375724,
    "path": "../public/_nuxt/flowchart-elk-definition-a44a74cb.72ebd751.js"
  },
  "/_nuxt/ganttDiagram-04e74c0a.990d39c6.js": {
    "type": "application/javascript",
    "etag": "\"1101c-UMRJrrBFInJANVN7aGlRwWt2vlY\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 69660,
    "path": "../public/_nuxt/ganttDiagram-04e74c0a.990d39c6.js"
  },
  "/_nuxt/gitGraphDiagram-0a645df6.4cd02ece.js": {
    "type": "application/javascript",
    "etag": "\"8fb9-QhjN6zGTdnsJUKJajfXvcsVLKC4\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 36793,
    "path": "../public/_nuxt/gitGraphDiagram-0a645df6.4cd02ece.js"
  },
  "/_nuxt/index-5219d011.c58dbcd8.js": {
    "type": "application/javascript",
    "etag": "\"2cc9-PYFKJt4ndG8ceMxw8Jgxw8cFJJM\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 11465,
    "path": "../public/_nuxt/index-5219d011.c58dbcd8.js"
  },
  "/_nuxt/infoDiagram-69ec1a58.0399a2cb.js": {
    "type": "application/javascript",
    "etag": "\"22d0-c1d87gq20BnGXVrIcobcQu+luEk\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 8912,
    "path": "../public/_nuxt/infoDiagram-69ec1a58.0399a2cb.js"
  },
  "/_nuxt/init.77b53fdd.js": {
    "type": "application/javascript",
    "etag": "\"93-Ddd4j0nL7FejgC/2FVPkAQwObCg\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 147,
    "path": "../public/_nuxt/init.77b53fdd.js"
  },
  "/_nuxt/is_dark.203b2ab9.js": {
    "type": "application/javascript",
    "etag": "\"fc-bkDd53obWuglqhIv6qoiqjwI4DI\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 252,
    "path": "../public/_nuxt/is_dark.203b2ab9.js"
  },
  "/_nuxt/journeyDiagram-d38aa57d.c9c91ba7.js": {
    "type": "application/javascript",
    "etag": "\"5d6c-VqVtM6EiKIyxFb6xEUTleRZ96Z0\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 23916,
    "path": "../public/_nuxt/journeyDiagram-d38aa57d.c9c91ba7.js"
  },
  "/_nuxt/layout.4003ca45.js": {
    "type": "application/javascript",
    "etag": "\"ca92-TGg+A7CXbAHXCVy1k+XPd7Rl7lk\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 51858,
    "path": "../public/_nuxt/layout.4003ca45.js"
  },
  "/_nuxt/line.1d1dae16.js": {
    "type": "application/javascript",
    "etag": "\"3ac-u87uUovrvC9mPKILwgleLlbSQz0\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 940,
    "path": "../public/_nuxt/line.1d1dae16.js"
  },
  "/_nuxt/mindmap-definition-65b51176.d8ec3a5a.js": {
    "type": "application/javascript",
    "etag": "\"731b4-jsTzFkXFJIPtZO+PNyRYqt4hmNw\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 471476,
    "path": "../public/_nuxt/mindmap-definition-65b51176.d8ec3a5a.js"
  },
  "/_nuxt/path.53f90ab3.js": {
    "type": "application/javascript",
    "etag": "\"8ea-N2zNeuTlR93U5qccdLUpa2HWA6c\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 2282,
    "path": "../public/_nuxt/path.53f90ab3.js"
  },
  "/_nuxt/pieDiagram-db1a8a21.7c32be22.js": {
    "type": "application/javascript",
    "etag": "\"4697-Hus/lpR62Igqt1cOi3gTMVtAGn4\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 18071,
    "path": "../public/_nuxt/pieDiagram-db1a8a21.7c32be22.js"
  },
  "/_nuxt/requirementDiagram-b9649942.3c3686b4.js": {
    "type": "application/javascript",
    "etag": "\"65b6-h0SreRrRjDF+y+01vZl9gr/Th5w\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 26038,
    "path": "../public/_nuxt/requirementDiagram-b9649942.3c3686b4.js"
  },
  "/_nuxt/selectAll.9d733c6e.js": {
    "type": "application/javascript",
    "etag": "\"c2-OSQDpVaOk4ZBastrMGAIY57T6h4\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 194,
    "path": "../public/_nuxt/selectAll.9d733c6e.js"
  },
  "/_nuxt/sequenceDiagram-446df3e4.173718f1.js": {
    "type": "application/javascript",
    "etag": "\"13725-KgKinynEGU3dCnMdEl2hWQ2hB7U\"",
    "mtime": "2023-07-02T08:10:39.072Z",
    "size": 79653,
    "path": "../public/_nuxt/sequenceDiagram-446df3e4.173718f1.js"
  },
  "/_nuxt/stateDiagram-d53d2428.f7df1a39.js": {
    "type": "application/javascript",
    "etag": "\"27c6-Rsy42xss8YErXRm7WEL4Dc5zI0U\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 10182,
    "path": "../public/_nuxt/stateDiagram-d53d2428.f7df1a39.js"
  },
  "/_nuxt/stateDiagram-v2-9765461d.09883962.js": {
    "type": "application/javascript",
    "etag": "\"1331-Q5qF0kJOMBZCwWiIvwhDEt2J85s\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 4913,
    "path": "../public/_nuxt/stateDiagram-v2-9765461d.09883962.js"
  },
  "/_nuxt/styles-16907e1b.fd52a131.js": {
    "type": "application/javascript",
    "etag": "\"7ea9-TQRSUun4KklvZBmGw+q3qIFlJdc\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 32425,
    "path": "../public/_nuxt/styles-16907e1b.fd52a131.js"
  },
  "/_nuxt/styles-26373982.d035109c.js": {
    "type": "application/javascript",
    "etag": "\"263b-hE+7PzLYeGhoRu2o/2uvO57JSV4\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 9787,
    "path": "../public/_nuxt/styles-26373982.d035109c.js"
  },
  "/_nuxt/styles-47a825a5.8a0cb708.js": {
    "type": "application/javascript",
    "etag": "\"6da4-IqT2SsgASi3vlQIPBnTRcKgtL3M\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 28068,
    "path": "../public/_nuxt/styles-47a825a5.8a0cb708.js"
  },
  "/_nuxt/svgDraw-2526cba0.d0f6c32c.js": {
    "type": "application/javascript",
    "etag": "\"1960-aCMcvddbLwkTF/Yo4i8SEVgAUa0\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 6496,
    "path": "../public/_nuxt/svgDraw-2526cba0.d0f6c32c.js"
  },
  "/_nuxt/timeline-definition-de69aca6.6f062743.js": {
    "type": "application/javascript",
    "etag": "\"5e8b-AsMSr1Fqxa8o+sGqyVHwcCiIJJU\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 24203,
    "path": "../public/_nuxt/timeline-definition-de69aca6.6f062743.js"
  },
  "/css/nuxt-google-fonts.css": {
    "type": "text/css; charset=utf-8",
    "etag": "\"b88-2eR3j8X0b3NI75FaAQNzEC3t+bQ\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 2952,
    "path": "../public/css/nuxt-google-fonts.css"
  },
  "/fonts/Readex_Pro-400-1.woff2": {
    "type": "font/woff2",
    "etag": "\"59a0-suZgRqf1CkDPYjhJu1x5VBmyq9g\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 22944,
    "path": "../public/fonts/Readex_Pro-400-1.woff2"
  },
  "/fonts/Readex_Pro-400-2.woff2": {
    "type": "font/woff2",
    "etag": "\"2b9c-tIMHNBNyag+5rBxMwwyGu84Db9o\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 11164,
    "path": "../public/fonts/Readex_Pro-400-2.woff2"
  },
  "/fonts/Readex_Pro-400-3.woff2": {
    "type": "font/woff2",
    "etag": "\"6a48-k9BADE2RxmPLmH9AXI4VtHLhSxI\"",
    "mtime": "2023-07-02T08:10:39.068Z",
    "size": 27208,
    "path": "../public/fonts/Readex_Pro-400-3.woff2"
  },
  "/fonts/Readex_Pro-400-4.woff2": {
    "type": "font/woff2",
    "etag": "\"7b74-ISRRHrL7ruksIROALPnzMZNIFZY\"",
    "mtime": "2023-07-02T08:10:39.064Z",
    "size": 31604,
    "path": "../public/fonts/Readex_Pro-400-4.woff2"
  },
  "/fonts/Readex_Pro-500-5.woff2": {
    "type": "font/woff2",
    "etag": "\"59a0-suZgRqf1CkDPYjhJu1x5VBmyq9g\"",
    "mtime": "2023-07-02T08:10:39.064Z",
    "size": 22944,
    "path": "../public/fonts/Readex_Pro-500-5.woff2"
  },
  "/fonts/Readex_Pro-500-6.woff2": {
    "type": "font/woff2",
    "etag": "\"2b9c-tIMHNBNyag+5rBxMwwyGu84Db9o\"",
    "mtime": "2023-07-02T08:10:39.064Z",
    "size": 11164,
    "path": "../public/fonts/Readex_Pro-500-6.woff2"
  },
  "/fonts/Readex_Pro-500-7.woff2": {
    "type": "font/woff2",
    "etag": "\"6a48-k9BADE2RxmPLmH9AXI4VtHLhSxI\"",
    "mtime": "2023-07-02T08:10:39.064Z",
    "size": 27208,
    "path": "../public/fonts/Readex_Pro-500-7.woff2"
  },
  "/fonts/Readex_Pro-500-8.woff2": {
    "type": "font/woff2",
    "etag": "\"7b74-ISRRHrL7ruksIROALPnzMZNIFZY\"",
    "mtime": "2023-07-02T08:10:39.064Z",
    "size": 31604,
    "path": "../public/fonts/Readex_Pro-500-8.woff2"
  }
};

function readAsset (id) {
  const serverDir = dirname(fileURLToPath(globalThis._importMeta_.url));
  return promises.readFile(resolve(serverDir, assets[id].path))
}

const publicAssetBases = {"/_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 _f4b49z = eventHandler((event) => {
  if (event.node.req.method && !METHODS.has(event.node.req.method)) {
    return;
  }
  let id = decodeURIComponent(
    withLeadingSlash(
      withoutTrailingSlash(parseURL(event.node.req.url).pathname)
    )
  );
  let asset;
  const encodingHeader = String(
    event.node.req.headers["accept-encoding"] || ""
  );
  const encodings = [
    ...encodingHeader.split(",").map((e) => EncodingMap[e.trim()]).filter(Boolean).sort(),
    ""
  ];
  if (encodings.length > 1) {
    event.node.res.setHeader("Vary", "Accept-Encoding");
  }
  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)) {
      event.node.res.removeHeader("cache-control");
      throw createError({
        statusMessage: "Cannot find static asset " + id,
        statusCode: 404
      });
    }
    return;
  }
  const ifNotMatch = event.node.req.headers["if-none-match"] === asset.etag;
  if (ifNotMatch) {
    if (!event.handled) {
      event.node.res.statusCode = 304;
      event.node.res.end();
    }
    return;
  }
  const ifModifiedSinceH = event.node.req.headers["if-modified-since"];
  const mtimeDate = new Date(asset.mtime);
  if (ifModifiedSinceH && asset.mtime && new Date(ifModifiedSinceH) >= mtimeDate) {
    if (!event.handled) {
      event.node.res.statusCode = 304;
      event.node.res.end();
    }
    return;
  }
  if (asset.type && !event.node.res.getHeader("Content-Type")) {
    event.node.res.setHeader("Content-Type", asset.type);
  }
  if (asset.etag && !event.node.res.getHeader("ETag")) {
    event.node.res.setHeader("ETag", asset.etag);
  }
  if (asset.mtime && !event.node.res.getHeader("Last-Modified")) {
    event.node.res.setHeader("Last-Modified", mtimeDate.toUTCString());
  }
  if (asset.encoding && !event.node.res.getHeader("Content-Encoding")) {
    event.node.res.setHeader("Content-Encoding", asset.encoding);
  }
  if (asset.size > 0 && !event.node.res.getHeader("Content-Length")) {
    event.node.res.setHeader("Content-Length", asset.size);
  }
  return readAsset(id);
});

const _029MHB = defineEventHandler((event) => {
  const res = event.node.res, req = event.node.req;
  const user = auth.parse(req.headers.authorization || "");
  const hasAuthSet = !!process.env.ROOT_USER && !!process.env.ROOT_PASSWORD;
  if (hasAuthSet && (!user || user.name !== process.env.ROOT_USER || user.pass !== process.env.ROOT_PASSWORD)) {
    res.statusCode = 401;
    res.setHeader("WWW-Authenticate", 'Basic realm="Please enter username and password"');
    res.end("Access denied");
  }
});

const _lazy_LN751h = () => import('../data.mjs');
const _lazy_y5qoN6 = () => import('../ping.mjs');
const _lazy_foNkir = () => import('../table.mjs');
const _lazy_aW8EHu = () => import('../handlers/renderer.mjs');

const handlers = [
  { route: '', handler: _f4b49z, lazy: false, middleware: true, method: undefined },
  { route: '', handler: _029MHB, lazy: false, middleware: true, method: undefined },
  { route: '/api/data', handler: _lazy_LN751h, lazy: true, middleware: false, method: undefined },
  { route: '/api/ping', handler: _lazy_y5qoN6, lazy: true, middleware: false, method: undefined },
  { route: '/api/table', handler: _lazy_foNkir, lazy: true, middleware: false, method: undefined },
  { route: '/__nuxt_error', handler: _lazy_aW8EHu, lazy: true, middleware: false, method: undefined },
  { route: '/**', handler: _lazy_aW8EHu, lazy: true, middleware: false, method: undefined }
];

function createNitroApp() {
  const config = useRuntimeConfig();
  const hooks = createHooks();
  const h3App = createApp({
    debug: destr(false),
    onError: errorHandler
  });
  const router = createRouter$1();
  h3App.use(createRouteRulesHandler());
  const localCall = createCall(toNodeListener(h3App));
  const localFetch = createFetch(localCall, globalThis.fetch);
  const $fetch = createFetch$1({
    fetch: localFetch,
    Headers,
    defaults: { baseURL: config.app.baseURL }
  });
  globalThis.$fetch = $fetch;
  h3App.use(
    eventHandler((event) => {
      event.context.nitro = event.context.nitro || {};
      const envContext = event.node.req.__unenv__;
      if (envContext) {
        Object.assign(event.context, envContext);
      }
      event.fetch = (req, init) => fetchWithEvent(event, req, init, { fetch: localFetch });
      event.$fetch = (req, init) => fetchWithEvent(event, req, init, {
        fetch: $fetch
      });
    })
  );
  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
  };
  for (const plugin of plugins) {
    plugin(app);
  }
  return app;
}
const nitroApp = createNitroApp();
const useNitroApp = () => nitroApp;

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((err) => {
          console.error(err);
        }).finally(() => {
          clearTimeout(timeout);
          resolve();
        });
      });
    }
  });
}

const cert = process.env.NITRO_SSL_CERT;
const key = process.env.NITRO_SSL_KEY;
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 listener = server.listen(port, host, (err) => {
  if (err) {
    console.error(err);
    process.exit(1);
  }
  const protocol = cert && key ? "https" : "http";
  const addressInfo = listener.address();
  const baseURL = (useRuntimeConfig().app.baseURL || "").replace(/\/$/, "");
  const url = `${protocol}://${addressInfo.family === "IPv6" ? `[${addressInfo.address}]` : addressInfo.address}:${addressInfo.port}${baseURL}`;
  console.log(`Listening ${url}`);
});
trapUnhandledNodeErrors();
setupGracefulShutdown(listener, nitroApp);
const nodeServer = {};

export { useRuntimeConfig as a, getRouteRules as g, nodeServer as n, useNitroApp as u };
//# sourceMappingURL=node-server.mjs.map
