fucked up my commit history and removed node modules folder from tree

This commit is contained in:
2026-11-04 20:54:48 +00:00
parent 1ce397b734
commit ce15f758ea
5608 changed files with 259 additions and 1753772 deletions

4
.gitignore vendored
View File

@@ -10,3 +10,7 @@ devenv.local.yaml
.pre-commit-config.yaml .pre-commit-config.yaml
/.env /.env
/.session /.session
/.svelte-kit
/.svelte-kit/*
/node_modules
/node_modules/*

View File

@@ -1,4 +0,0 @@
export const immutable = __SVELTEKIT_MANIFEST_IMMUTABLE__;
export const assets = __SVELTEKIT_MANIFEST_ASSETS__;
export const prerendered = __SVELTEKIT_MANIFEST_PRERENDERED__;
export const routes = __SVELTEKIT_MANIFEST_ROUTES__;

View File

@@ -1,29 +0,0 @@
export { matchers } from './matchers.js';
export const nodes = [
() => import('./nodes/0'),
() => import('./nodes/1'),
() => import('./nodes/2')
];
export const server_loads = [];
export const dictionary = {
"/": [~2]
};
export const hooks = {
handleError: (({ kind, error }) => { if (kind === 'unknown') { console.error(error); } }),
reroute: (() => {}),
transport: {}
};
export const decoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.decode]));
export const encoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.encode]));
export const hash = false;
export const decode = (type, value) => decoders[type](value);
export const get_error_template = () => import('../shared/error-template.js').then(m => m.default);

View File

@@ -1 +0,0 @@
export const matchers = {};

View File

@@ -1 +0,0 @@
export { default as component } from "../../../../../src/routes/+layout.svelte";

View File

@@ -1 +0,0 @@
export { default as component } from "../../../../../node_modules/@sveltejs/kit/src/runtime/components/error.svelte";

View File

@@ -1 +0,0 @@
export { default as component } from "../../../../../src/routes/+page.svelte";

View File

@@ -1,34 +0,0 @@
import error from './shared/error-template.js';
export const options = {
app_template_contains_nonce: false,
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
csrf_trusted_origins: [],
service_worker_options: undefined,
templates: {
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<!-- Fonts -->\n\t\t<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\" />\n\t\t<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin />\n\t\t<link\n\t\t\thref=\"https://fonts.googleapis.com/css2?family=Squada+One&display=swap\"\n\t\t\trel=\"stylesheet\"\n\t\t/>\n\t\t<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\" />\n\t\t<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin />\n\t\t<link\n\t\t\thref=\"https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap\"\n\t\t\trel=\"stylesheet\"\n\t\t/>\n\n\t\t<!-- Not Fonts -->\n\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t<meta name=\"text-scale\" content=\"scale\" />\n\t\t" + head + "\n\t</head>\n\t<style>\n\t\t.fira-mono-regular {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 400;\n\t\t\tfont-style: normal;\n\t\t}\n\n\t\t.fira-mono-medium {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 500;\n\t\t\tfont-style: normal;\n\t\t}\n\n\t\t.fira-mono-bold {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 700;\n\t\t\tfont-style: normal;\n\t\t}\n\t</style>\n\t<body class=\"fira-mono-regular bg-ctp-mantle text-ctp-text\" data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
error
}
};
export async function get_hooks() {
let handle;
let handleFetch;
let handleError;
let init;
let reroute;
let transport;
return {
handle,
handleFetch,
handleError,
init,
reroute,
transport
};
}

View File

@@ -1 +0,0 @@
export default ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n";

View File

@@ -1,16 +0,0 @@
// empty during dev
export const immutable = [];
export const prerendered = [];
export const assets = [
{"path":"voidarc-hollow.svg"},
{"path":"adumh00man.png"},
{"path":"robots.txt"}
];
export const routes = [
{"id":"/","page":true,"endpoint":false},
{"id":"/artwork/[itemId]","page":false,"endpoint":true},
{"id":"/books/[bookId]","page":false,"endpoint":true},
{"id":"/posters/[itemId]","page":false,"endpoint":true}
];

View File

@@ -1,29 +0,0 @@
export { matchers } from './matchers.js';
export const nodes = [
() => import('./nodes/0'),
() => import('./nodes/1'),
() => import('./nodes/2')
];
export const server_loads = [];
export const dictionary = {
"/": [~2]
};
export const hooks = {
handleError: (({ kind, error }) => { if (kind === 'unknown') { console.error(error); } }),
reroute: (() => {}),
transport: {}
};
export const decoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.decode]));
export const encoders = Object.fromEntries(Object.entries(hooks.transport).map(([k, v]) => [k, v.encode]));
export const hash = false;
export const decode = (type, value) => decoders[type](value);
export const get_error_template = () => import('../shared/error-template.js').then(m => m.default);

View File

@@ -1 +0,0 @@
export const matchers = {};

View File

@@ -1 +0,0 @@
export { default as component } from "../../../../../src/routes/+layout.svelte";

View File

@@ -1 +0,0 @@
export { default as component } from "../../../../../node_modules/@sveltejs/kit/src/runtime/components/error.svelte";

View File

@@ -1 +0,0 @@
export { default as component } from "../../../../../src/routes/+page.svelte";

View File

@@ -1,43 +0,0 @@
import { variables } from "../../../../src/env.ts";
import { validate, handle_issues } from '@sveltejs/kit/internal/env';
const issues = {};
export { variables }
export const dynamic_private_env = {};
export const explicit_public_env = {};
export const rendered_env = {};
handle_issues(issues);
export function set_env(env) {
const issues = {};
const JELLYFIN_URL = validate(variables, env.JELLYFIN_URL, "JELLYFIN_URL", issues);
dynamic_private_env.JELLYFIN_URL = JELLYFIN_URL;
const JELLYFIN_API_KEY = validate(variables, env.JELLYFIN_API_KEY, "JELLYFIN_API_KEY", issues);
dynamic_private_env.JELLYFIN_API_KEY = JELLYFIN_API_KEY;
const JELLYFIN_PLAYLIST_ID = validate(variables, env.JELLYFIN_PLAYLIST_ID, "JELLYFIN_PLAYLIST_ID", issues);
dynamic_private_env.JELLYFIN_PLAYLIST_ID = JELLYFIN_PLAYLIST_ID;
const JELLYFIN_USER_ID = validate(variables, env.JELLYFIN_USER_ID, "JELLYFIN_USER_ID", issues);
dynamic_private_env.JELLYFIN_USER_ID = JELLYFIN_USER_ID;
const JELLYFIN_LIBRARY_ID = validate(variables, env.JELLYFIN_LIBRARY_ID, "JELLYFIN_LIBRARY_ID", issues);
dynamic_private_env.JELLYFIN_LIBRARY_ID = JELLYFIN_LIBRARY_ID;
const KOMGA_URL = validate(variables, env.KOMGA_URL, "KOMGA_URL", issues);
dynamic_private_env.KOMGA_URL = KOMGA_URL;
const KOMGA_API_KEY = validate(variables, env.KOMGA_API_KEY, "KOMGA_API_KEY", issues);
dynamic_private_env.KOMGA_API_KEY = KOMGA_API_KEY;
const KOMGA_LIBRARY_ID = validate(variables, env.KOMGA_LIBRARY_ID, "KOMGA_LIBRARY_ID", issues);
dynamic_private_env.KOMGA_LIBRARY_ID = KOMGA_LIBRARY_ID;
const BLOG_URL = validate(variables, env.BLOG_URL, "BLOG_URL", issues);
dynamic_private_env.BLOG_URL = BLOG_URL;
const GOOGLE_API_KEY = validate(variables, env.GOOGLE_API_KEY, "GOOGLE_API_KEY", issues);
dynamic_private_env.GOOGLE_API_KEY = GOOGLE_API_KEY;
const CHANNEL_ID = validate(variables, env.CHANNEL_ID, "CHANNEL_ID", issues);
dynamic_private_env.CHANNEL_ID = CHANNEL_ID;
handle_issues(issues);
}
set_env({JELLYFIN_URL:"https://watch.voidarc.co.uk/",JELLYFIN_API_KEY:"2727181a933049dcbc8d63cf0bcc15f3",JELLYFIN_PLAYLIST_ID:"e3088b1ab54766ad3668bc71a574a2f7",JELLYFIN_USER_ID:"5824596713e44e8c949f529e1a081393",JELLYFIN_LIBRARY_ID:"a656b907eb3a73532e40e44b968d0225",KOMGA_URL:"https://manga.voidarc.co.uk",KOMGA_API_KEY:"29f80f81450346199c40802b6d099002",KOMGA_LIBRARY_ID:"0N4TC3WZ89BFM",BLOG_URL:"https://blog.voidarc.co.uk/index.xml",GOOGLE_API_KEY:"AIzaSyDH4fByDbbC8jFkW52MF8aVU2inkaCBJf0",CHANNEL_ID:"UCGB525XyCxL7zfMKKI4aN1A"});

View File

@@ -1,13 +0,0 @@
import { dynamic_private_env as env } from '../config.js';
export const JELLYFIN_URL = env.JELLYFIN_URL;
export const JELLYFIN_API_KEY = env.JELLYFIN_API_KEY;
export const JELLYFIN_PLAYLIST_ID = env.JELLYFIN_PLAYLIST_ID;
export const JELLYFIN_USER_ID = env.JELLYFIN_USER_ID;
export const JELLYFIN_LIBRARY_ID = env.JELLYFIN_LIBRARY_ID;
export const KOMGA_URL = env.KOMGA_URL;
export const KOMGA_API_KEY = env.KOMGA_API_KEY;
export const KOMGA_LIBRARY_ID = env.KOMGA_LIBRARY_ID;
export const BLOG_URL = env.BLOG_URL;
export const GOOGLE_API_KEY = env.GOOGLE_API_KEY;
export const CHANNEL_ID = env.CHANNEL_ID;

View File

@@ -1,2 +0,0 @@
const { env } = globalThis.__sveltekit_dev;

View File

@@ -1,2 +0,0 @@
import { rendered_env as env } from '../config.js';

View File

@@ -1,7 +0,0 @@
globalThis.__sveltekit_dev = {
base: location.pathname.split('/').slice(0, -1).join('/'),
env: {
// empty
},
version: "1793799746966"
};

View File

@@ -1,34 +0,0 @@
import error from './shared/error-template.js';
export const options = {
app_template_contains_nonce: false,
csp: {"mode":"auto","directives":{"upgrade-insecure-requests":false,"block-all-mixed-content":false},"reportOnly":{"upgrade-insecure-requests":false,"block-all-mixed-content":false}},
csrf_trusted_origins: [],
service_worker_options: undefined,
templates: {
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<!-- Fonts -->\n\t\t<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\" />\n\t\t<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin />\n\t\t<link\n\t\t\thref=\"https://fonts.googleapis.com/css2?family=Squada+One&display=swap\"\n\t\t\trel=\"stylesheet\"\n\t\t/>\n\t\t<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\" />\n\t\t<link rel=\"preconnect\" href=\"https://fonts.gstatic.com\" crossorigin />\n\t\t<link\n\t\t\thref=\"https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap\"\n\t\t\trel=\"stylesheet\"\n\t\t/>\n\n\t\t<!-- Not Fonts -->\n\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t<meta name=\"text-scale\" content=\"scale\" />\n\t\t" + head + "\n\t</head>\n\t<style>\n\t\t.fira-mono-regular {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 400;\n\t\t\tfont-style: normal;\n\t\t}\n\n\t\t.fira-mono-medium {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 500;\n\t\t\tfont-style: normal;\n\t\t}\n\n\t\t.fira-mono-bold {\n\t\t\tfont-family: 'Fira Mono', monospace;\n\t\t\tfont-weight: 700;\n\t\t\tfont-style: normal;\n\t\t}\n\t</style>\n\t<body class=\"fira-mono-regular bg-ctp-mantle text-ctp-text\" data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
error
}
};
export async function get_hooks() {
let handle;
let handleFetch;
let handleError;
let init;
let reroute;
let transport;
return {
handle,
handleFetch,
handleError,
init,
reroute,
transport
};
}

View File

@@ -1 +0,0 @@
export default ({ status, message }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<title>" + message + "</title>\n\n\t\t<style>\n\t\t\tbody {\n\t\t\t\t--bg: white;\n\t\t\t\t--fg: #222;\n\t\t\t\t--divider: #ccc;\n\t\t\t\tbackground: var(--bg);\n\t\t\t\tcolor: var(--fg);\n\t\t\t\tfont-family:\n\t\t\t\t\tsystem-ui,\n\t\t\t\t\t-apple-system,\n\t\t\t\t\tBlinkMacSystemFont,\n\t\t\t\t\t'Segoe UI',\n\t\t\t\t\tRoboto,\n\t\t\t\t\tOxygen,\n\t\t\t\t\tUbuntu,\n\t\t\t\t\tCantarell,\n\t\t\t\t\t'Open Sans',\n\t\t\t\t\t'Helvetica Neue',\n\t\t\t\t\tsans-serif;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tjustify-content: center;\n\t\t\t\theight: 100vh;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t.error {\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t\tmax-width: 32rem;\n\t\t\t\tmargin: 0 1rem;\n\t\t\t}\n\n\t\t\t.status {\n\t\t\t\tfont-weight: 200;\n\t\t\t\tfont-size: 3rem;\n\t\t\t\tline-height: 1;\n\t\t\t\tposition: relative;\n\t\t\t\ttop: -0.05rem;\n\t\t\t}\n\n\t\t\t.message {\n\t\t\t\tborder-left: 1px solid var(--divider);\n\t\t\t\tpadding: 0 0 0 1rem;\n\t\t\t\tmargin: 0 0 0 1rem;\n\t\t\t\tmin-height: 2.5rem;\n\t\t\t\tdisplay: flex;\n\t\t\t\talign-items: center;\n\t\t\t}\n\n\t\t\t.message h1 {\n\t\t\t\tfont-weight: 400;\n\t\t\t\tfont-size: 1em;\n\t\t\t\tmargin: 0;\n\t\t\t}\n\n\t\t\t@media (prefers-color-scheme: dark) {\n\t\t\t\tbody {\n\t\t\t\t\t--bg: #222;\n\t\t\t\t\t--fg: #ddd;\n\t\t\t\t\t--divider: #666;\n\t\t\t\t}\n\t\t\t}\n\t\t</style>\n\t</head>\n\t<body>\n\t\t<div class=\"error\">\n\t\t\t<span class=\"status\">" + status + "</span>\n\t\t\t<div class=\"message\">\n\t\t\t\t<h1>" + message + "</h1>\n\t\t\t</div>\n\t\t</div>\n\t</body>\n</html>\n";

View File

@@ -1,14 +0,0 @@
{
"/": [
"src/routes/+page.server.ts"
],
"/artwork/[itemId]": [
"src/routes/artwork/[itemId]/+server.ts"
],
"/books/[bookId]": [
"src/routes/books/[bookId]/+server.ts"
],
"/posters/[itemId]": [
"src/routes/posters/[itemId]/+server.ts"
]
}

View File

@@ -1,32 +0,0 @@
import type * as Kit from '@sveltejs/kit';
import { MatcherParam } from '@sveltejs/kit/params';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
type RouteParams = { };
type RouteId = '/';
type MaybeWithVoid<T> = {} extends T ? T | void : T;
export type RequiredKeys<T> = { [K in keyof T]-?: {} extends { [P in K]: T[K] } ? never : K; }[keyof T];
type OutputDataShape<T> = MaybeWithVoid<Omit<App.PageData, RequiredKeys<T>> & Partial<Pick<App.PageData, keyof T & keyof App.PageData>> & Record<string, any>>
type EnsureDefined<T> = T extends null | undefined ? {} : T;
type OptionalUnion<U extends Record<string, any>, A extends keyof U = U extends U ? keyof U : never> = U extends unknown ? { [P in Exclude<A, keyof U>]?: never } & U : never;
/** @deprecated Use the `snapshot` helper from `$app/navigation` instead. */
export type Snapshot<T = any> = Kit.Snapshot<T>;
export type ErrorProps = { error: App.Error };
type PageServerParentData = EnsureDefined<LayoutServerData>;
type PageParentData = EnsureDefined<LayoutData>;
type LayoutRouteId = RouteId | "/" | null
type LayoutParams = RouteParams & { }
type LayoutParentData = EnsureDefined<{}>;
export type PageServerLoad<OutputData extends OutputDataShape<PageServerParentData> = OutputDataShape<PageServerParentData>> = Kit.ServerLoad<RouteParams, PageServerParentData, OutputData, RouteId>;
export type PageServerLoadEvent = Parameters<PageServerLoad>[0];
export type ActionData = unknown;
export type PageServerData = Expand<OptionalUnion<EnsureDefined<Kit.LoadProperties<Awaited<ReturnType<typeof import('./proxy+page.server.js').load>>>>>>;
export type PageData = Expand<Omit<PageParentData, keyof PageServerData> & EnsureDefined<PageServerData>>;
export type Action<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Action<RouteParams, OutputData, RouteId>
export type Actions<OutputData extends Record<string, any> | void = Record<string, any> | void> = Kit.Actions<RouteParams, OutputData, RouteId>
export type PageProps = { params: RouteParams; data: PageData; form: ActionData }
export type LayoutServerData = null;
export type LayoutData = Expand<LayoutParentData>;
export type LayoutProps = { params: LayoutParams; data: LayoutData; children: import("svelte").Snippet }
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;

View File

@@ -1,10 +0,0 @@
import type * as Kit from '@sveltejs/kit';
import { MatcherParam } from '@sveltejs/kit/params';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
type RouteParams = { itemId: string };
type RouteId = '/artwork/[itemId]';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;

View File

@@ -1,10 +0,0 @@
import type * as Kit from '@sveltejs/kit';
import { MatcherParam } from '@sveltejs/kit/params';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
type RouteParams = { bookId: string };
type RouteId = '/books/[bookId]';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;

View File

@@ -1,10 +0,0 @@
import type * as Kit from '@sveltejs/kit';
import { MatcherParam } from '@sveltejs/kit/params';
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
type RouteParams = { itemId: string };
type RouteId = '/posters/[itemId]';
export type EntryGenerator = () => Promise<Array<RouteParams>> | Array<RouteParams>;
export type RequestHandler = Kit.RequestHandler<RouteParams, RouteId>;
export type RequestEvent = Kit.RequestEvent<RouteParams, RouteId>;

View File

@@ -1,34 +0,0 @@
// @ts-nocheck
import type { PageServerLoad } from './$types';
import { getLatestPlaylistSong, getLatestWatchedSeries } from '#lib/server/jellyfin';
import { getLatestBook } from '#lib/server/komga';
import { fetchBlogArticles, getChannelInfo } from '#lib/server/content';
import {
JELLYFIN_PLAYLIST_ID,
JELLYFIN_LIBRARY_ID,
KOMGA_LIBRARY_ID,
BLOG_URL,
CHANNEL_ID
} from '$app/env/private';
export const load = () => {
const latestSong = getLatestPlaylistSong(globalThis.fetch, JELLYFIN_PLAYLIST_ID);
console.log(JELLYFIN_LIBRARY_ID);
const latestSeries = getLatestWatchedSeries(globalThis.fetch, JELLYFIN_LIBRARY_ID);
const latestBook = getLatestBook(globalThis.fetch, KOMGA_LIBRARY_ID);
const blogArticles = fetchBlogArticles(BLOG_URL);
const info = getChannelInfo(CHANNEL_ID);
latestSong.catch(() => {});
latestSeries.catch(() => {});
latestBook.catch(() => {});
return {
streamed: {
latestSong,
latestSeries,
latestBook
}
};
};
;null as any as PageServerLoad;

View File

@@ -6,7 +6,9 @@
"name": "voidarc-homepage", "name": "voidarc-homepage",
"dependencies": { "dependencies": {
"@catppuccin/tailwindcss": "^1.0.0", "@catppuccin/tailwindcss": "^1.0.0",
"@icons-pack/svelte-simple-icons": "^7.2.0",
"fast-xml-parser": "^5.12.0", "fast-xml-parser": "^5.12.0",
"he": "^2.0.0",
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^10.0.1", "@eslint/js": "^10.0.1",
@@ -66,6 +68,8 @@
"@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.3", "", {}, "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ=="], "@humanwhocodes/retry": ["@humanwhocodes/retry@0.4.3", "", {}, "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ=="],
"@icons-pack/svelte-simple-icons": ["@icons-pack/svelte-simple-icons@7.2.0", "", { "peerDependencies": { "@sveltejs/kit": "^2.5.0", "svelte": "^5.0.0" } }, "sha512-zH4YByltlMBipdijJ1ZN4YGmxn2LKLCt+wCDC1rF0+3yor95Df090lZ5wfsN/UN4JsLjr7e6nxp6MOsEfYv/cQ=="],
"@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="], "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
"@jridgewell/remapping": ["@jridgewell/remapping@2.3.5", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="], "@jridgewell/remapping": ["@jridgewell/remapping@2.3.5", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],
@@ -288,6 +292,8 @@
"hashery": ["hashery@1.5.1", "", { "dependencies": { "hookified": "^1.15.0" } }, "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ=="], "hashery": ["hashery@1.5.1", "", { "dependencies": { "hookified": "^1.15.0" } }, "sha512-iZyKG96/JwPz1N55vj2Ie2vXbhu440zfUfJvSwEqEbeLluk7NnapfGqa7LH0mOsnDxTF85Mx8/dyR6HfqcbmbQ=="],
"he": ["he@2.0.0", "", { "bin": { "he": "bin/he.mjs" } }, "sha512-0jE+JPv08nhXWmI1dULybzqNt34RbkH6Ul6V4cmDONpjYx1SfyObKF38FJLaJ1K7WWD93LWL9lewzk4E1Ria4A=="],
"hookified": ["hookified@1.15.1", "", {}, "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg=="], "hookified": ["hookified@1.15.1", "", {}, "sha512-MvG/clsADq1GPM2KGo2nyfaWVyn9naPiXrqIe4jYjXNZQt238kWyOGrsyc/DmRAQ+Re6yeo6yX/yoNCG5KAEVg=="],
"ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="], "ignore": ["ignore@5.3.2", "", {}, "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g=="],

31
node_modules/$app/tsconfig.json generated vendored
View File

@@ -1,31 +0,0 @@
{
"compilerOptions": {
"paths": {},
"rootDirs": [
"../..",
"../../.svelte-kit/types"
],
"types": [
"$app/types"
],
"lib": [
"ESNext",
"DOM",
"DOM.Iterable"
],
"verbatimModuleSyntax": true,
"isolatedModules": true,
"allowJs": true,
"checkJs": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"module": "esnext",
"target": "esnext",
"skipLibCheck": true,
"esModuleInterop": true,
"noEmit": true
}
}

View File

@@ -1,26 +0,0 @@
{
"compilerOptions": {
"paths": {},
"types": [
"$app/types"
],
"lib": [
"ESNext",
"WebWorker"
],
"verbatimModuleSyntax": true,
"isolatedModules": true,
"allowJs": true,
"checkJs": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"moduleDetection": "force",
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"module": "esnext",
"target": "esnext",
"skipLibCheck": true,
"esModuleInterop": true,
"noEmit": true
}
}

20
node_modules/$app/types/env.d.ts generated vendored
View File

@@ -1,20 +0,0 @@
// This file is generated from ../../../src/env.ts.
// See https://svelte.dev/docs/kit/environment-variables for more information
declare module '$app/env/private' {
export const JELLYFIN_URL: string;
export const JELLYFIN_API_KEY: string;
export const JELLYFIN_PLAYLIST_ID: string;
export const JELLYFIN_USER_ID: string;
export const JELLYFIN_LIBRARY_ID: string;
export const KOMGA_URL: string;
export const KOMGA_API_KEY: string;
export const KOMGA_LIBRARY_ID: string;
export const BLOG_URL: string;
export const GOOGLE_API_KEY: string;
export const CHANNEL_ID: string;
}
declare module '$app/env/public' {
// no public environment variables were defined
}

42
node_modules/$app/types/index.d.ts generated vendored
View File

@@ -1,42 +0,0 @@
// this file is generated — do not edit it
import '@sveltejs/kit';
import './env.js';
declare module "$app/types" {
export interface AppTypes {
PageRouteId(): "/";
EndpointRouteId(): "/artwork/[itemId]" | "/books/[bookId]" | "/posters/[itemId]";
RouteId(): "/" | "/artwork/[itemId]" | "/books/[bookId]" | "/posters/[itemId]";
RouteParams(): {
"/artwork/[itemId]": { itemId: string };
"/books/[bookId]": { bookId: string };
"/posters/[itemId]": { itemId: string }
};
LayoutParams(): {
"/": { itemId?: string | undefined; bookId?: string | undefined }
};
Path(): "" | `artwork/${string}` & {} | `books/${string}` & {} | `posters/${string}` & {};
ResolvedPathname(): `${"/" | `/${string}/`}${ReturnType<AppTypes['Path']>}`;
AssetPath(): "voidarc-hollow.svg" | "adumh00man.png" | "robots.txt";
}
}
declare module "svelte/elements" {
export interface HTMLAttributes<T> {
'data-sveltekit-preload-code'?:
| true
| false
| ''
| 'eager'
| 'viewport'
| 'hover'
| 'tap'
| undefined
| null;
'data-sveltekit-preload-data'?: true | false | '' | 'hover' | 'tap' | undefined | null;
'data-sveltekit-reload'?: true | false | '' | undefined | null;
'data-sveltekit-replacestate'?: true | false | '' | undefined | null;
'data-sveltekit-reset'?: true | false | '' | undefined | null;
}
}

1
node_modules/.bin/acorn generated vendored
View File

@@ -1 +0,0 @@
../acorn/bin/acorn

1
node_modules/.bin/cssesc generated vendored
View File

@@ -1 +0,0 @@
../cssesc/bin/cssesc

1
node_modules/.bin/eslint generated vendored
View File

@@ -1 +0,0 @@
../eslint/bin/eslint.js

View File

@@ -1 +0,0 @@
../eslint-config-prettier/bin/cli.js

1
node_modules/.bin/fxparser generated vendored
View File

@@ -1 +0,0 @@
../fast-xml-parser/src/cli/cli.js

1
node_modules/.bin/jiti generated vendored
View File

@@ -1 +0,0 @@
../jiti/lib/jiti-cli.mjs

View File

@@ -1 +0,0 @@
../mini-svg-data-uri/cli.js

1
node_modules/.bin/nanoid generated vendored
View File

@@ -1 +0,0 @@
../nanoid/bin/nanoid.cjs

1
node_modules/.bin/node-which generated vendored
View File

@@ -1 +0,0 @@
../which/bin/node-which

1
node_modules/.bin/prettier generated vendored
View File

@@ -1 +0,0 @@
../prettier/bin/prettier.cjs

1
node_modules/.bin/rolldown generated vendored
View File

@@ -1 +0,0 @@
../rolldown/bin/cli.mjs

1
node_modules/.bin/semver generated vendored
View File

@@ -1 +0,0 @@
../semver/bin/semver.js

1
node_modules/.bin/svelte-check generated vendored
View File

@@ -1 +0,0 @@
../svelte-check/bin/svelte-check

1
node_modules/.bin/svelte-kit generated vendored
View File

@@ -1 +0,0 @@
../@sveltejs/kit/svelte-kit.js

1
node_modules/.bin/tsc generated vendored
View File

@@ -1 +0,0 @@
../typescript/bin/tsc

1
node_modules/.bin/tsserver generated vendored
View File

@@ -1 +0,0 @@
../typescript/bin/tsserver

1
node_modules/.bin/vite generated vendored
View File

@@ -1 +0,0 @@
../vite/bin/vite.js

View File

@@ -1,32 +0,0 @@
declare namespace svelteNative.JSX {
// Every namespace eligible for use needs to implement the following two functions
function mapElementTag(
tag: string
): any;
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements>(
element: Key | undefined | null, attrs: Elements[Key]
): any;
function createElement<Elements extends IntrinsicElements, Key extends keyof Elements, T>(
element: Key | undefined | null, attrEnhancers: T, attrs: Elements[Key] & T
): any;
/* svelte specific */
interface ElementClass {
$$prop_def: any;
}
interface ElementAttributesProperty {
$$prop_def: any; // specify the property name to use
}
// Add empty IntrinsicAttributes to prevent fallback to the one in the JSX namespace
interface IntrinsicAttributes {
}
interface IntrinsicElements {
[name: string]: { [name: string]: any };
}
}

View File

@@ -1,290 +0,0 @@
// Whenever a ambient declaration changes, its number should be increased
// This way, we avoid the situation where multiple ambient versions of svelte2tsx
// are loaded and their declarations conflict each other
// See https://github.com/sveltejs/language-tools/issues/1059 for an example bug that stems from it
// If you change anything in this file, think about whether or not it should be backported to svelte-shims.d.ts
type AConstructorTypeOf<T, U extends any[] = any[]> = new (...args: U) => T;
/** @internal PRIVATE API, DO NOT USE */
type SvelteActionReturnType = {
update?: (args: any) => void,
destroy?: () => void
} | void
/** @internal PRIVATE API, DO NOT USE */
type SvelteTransitionConfig = {
delay?: number,
duration?: number,
easing?: (t: number) => number,
css?: (t: number, u: number) => string,
tick?: (t: number, u: number) => void
}
/** @internal PRIVATE API, DO NOT USE */
type SvelteTransitionReturnType = SvelteTransitionConfig | (() => SvelteTransitionConfig)
/** @internal PRIVATE API, DO NOT USE */
type SvelteAnimationReturnType = {
delay?: number,
duration?: number,
easing?: (t: number) => number,
css?: (t: number, u: number) => string,
tick?: (t: number, u: number) => void
}
/** @internal PRIVATE API, DO NOT USE */
type SvelteWithOptionalProps<Props, Keys extends keyof Props> = Omit<Props, Keys> & Partial<Pick<Props, Keys>>;
/** @internal PRIVATE API, DO NOT USE */
type SvelteAllProps = { [index: string]: any }
/** @internal PRIVATE API, DO NOT USE */
type SveltePropsAnyFallback<Props> = {[K in keyof Props]: Props[K] extends never ? never : Props[K] extends undefined ? any : Props[K]}
/** @internal PRIVATE API, DO NOT USE */
type SvelteSlotsAnyFallback<Slots> = {[K in keyof Slots]: {[S in keyof Slots[K]]: Slots[K][S] extends undefined ? any : Slots[K][S]}}
/** @internal PRIVATE API, DO NOT USE */
type SvelteRestProps = { [index: string]: any }
/** @internal PRIVATE API, DO NOT USE */
type SvelteSlots = { [index: string]: any }
/** @internal PRIVATE API, DO NOT USE */
type SvelteStore<T> = { subscribe: (run: (value: T) => any, invalidate?: any) => any }
// Forces TypeScript to look into the type which results in a better representation of it
// which helps for error messages and is necessary for d.ts file transformation so that
// no ambient type references are left in the output
/** @internal PRIVATE API, DO NOT USE */
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
/** @internal PRIVATE API, DO NOT USE */
type KeysMatching<Obj, V> = {[K in keyof Obj]-?: Obj[K] extends V ? K : never}[keyof Obj]
/** @internal PRIVATE API, DO NOT USE */
declare type __sveltets_2_CustomEvents<T> = {[K in KeysMatching<T, CustomEvent>]: T[K] extends CustomEvent ? T[K]['detail']: T[K]}
declare function __sveltets_2_ensureRightProps<Props>(props: Props): {};
declare function __sveltets_2_instanceOf<T = any>(type: AConstructorTypeOf<T>): T;
declare function __sveltets_2_allPropsType(): SvelteAllProps
declare function __sveltets_2_restPropsType(): SvelteRestProps
declare function __sveltets_2_slotsType<Slots, Key extends keyof Slots>(slots: Slots): Record<Key, boolean>;
// Overload of the following two functions is necessary.
// An empty array of optionalProps makes OptionalProps type any, which means we lose the prop typing.
// optionalProps need to be first or its type cannot be infered correctly.
declare function __sveltets_2_partial<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string>(
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
): {props: Expand<SveltePropsAnyFallback<Props>>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>>, exports?: Exports, bindings?: Bindings }
declare function __sveltets_2_partial<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string, OptionalProps extends keyof Props = any>(
optionalProps: OptionalProps[],
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
): {props: Expand<SvelteWithOptionalProps<SveltePropsAnyFallback<Props>, OptionalProps>>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>>, exports?: Exports, bindings?: Bindings }
declare function __sveltets_2_partial_with_any<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string>(
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
): {props: Expand<SveltePropsAnyFallback<Props> & SvelteAllProps>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>>, exports?: Exports, bindings?: Bindings }
declare function __sveltets_2_partial_with_any<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string, OptionalProps extends keyof Props = any>(
optionalProps: OptionalProps[],
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
): {props: Expand<SvelteWithOptionalProps<SveltePropsAnyFallback<Props>, OptionalProps> & SvelteAllProps>, events: Events, slots: Expand<SvelteSlotsAnyFallback<Slots>>, exports?: Exports, bindings?: Bindings }
declare function __sveltets_2_with_any<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string>(
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
): {props: Expand<Props & SvelteAllProps>, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
declare function __sveltets_2_with_any_event<Props = {}, Events = {}, Slots = {}, Exports = {}, Bindings = string>(
render: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }
): {props: Props, events: Events & {[evt: string]: CustomEvent<any>;}, slots: Slots, exports?: Exports, bindings?: Bindings }
declare function __sveltets_2_store_get<T = any>(store: SvelteStore<T>): T
declare function __sveltets_2_store_get<Store extends SvelteStore<any> | undefined | null>(store: Store): Store extends SvelteStore<infer T> ? T : Store;
declare function __sveltets_2_any(dummy: any): any;
declare function __sveltets_2_invalidate<T>(getValue: () => T): T
declare function __sveltets_2_mapWindowEvent<K extends keyof HTMLBodyElementEventMap>(
event: K
): HTMLBodyElementEventMap[K];
declare function __sveltets_2_mapBodyEvent<K extends keyof WindowEventMap>(
event: K
): WindowEventMap[K];
declare function __sveltets_2_mapElementEvent<K extends keyof HTMLElementEventMap>(
event: K
): HTMLElementEventMap[K];
declare function __sveltets_2_bubbleEventDef<Events, K extends keyof Events>(
events: Events, eventKey: K
): Events[K];
declare function __sveltets_2_bubbleEventDef(
events: any, eventKey: string
): any;
declare const __sveltets_2_customEvent: CustomEvent<any>;
declare function __sveltets_2_toEventTypings<Typings>(): {[Key in keyof Typings]: CustomEvent<Typings[Key]>};
declare function __sveltets_2_unionType<T1, T2>(t1: T1, t2: T2): T1 | T2;
declare function __sveltets_2_unionType<T1, T2, T3>(t1: T1, t2: T2, t3: T3): T1 | T2 | T3;
declare function __sveltets_2_unionType<T1, T2, T3, T4>(t1: T1, t2: T2, t3: T3, t4: T4): T1 | T2 | T3 | T4;
declare function __sveltets_2_unionType(...types: any[]): any;
declare function __sveltets_2_createSvelte2TsxComponent<Props extends {}, Events extends {}, Slots extends {}>(
render: {props: Props, events: Events, slots: Slots }
): typeof import("svelte").SvelteComponent<Props, Events, Slots>;
declare function __sveltets_2_unwrapArr<T>(arr: ArrayLike<T>): T
declare function __sveltets_2_unwrapPromiseLike<T>(promise: PromiseLike<T> | T): T
// v2
declare function __sveltets_2_createCreateSlot<Slots = Record<string, Record<string, any>>>(): <SlotName extends keyof Slots>(slotName: SlotName, attrs: Slots[SlotName]) => Record<string, any>;
declare function __sveltets_2_createComponentAny(props: Record<string, any>): import("svelte").SvelteComponent<any, any, any>;
declare function __sveltets_2_any(...dummy: any[]): any;
declare function __sveltets_2_empty(...dummy: any[]): {};
declare function __sveltets_2_union<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>(t1:T1,t2?:T2,t3?:T3,t4?:T4,t5?:T5,t6?:T6,t7?:T7,t8?:T8,t9?:T9,t10?:T10): T1 & T2 & T3 & T4 & T5 & T6 & T7 & T8 & T9 & T10;
declare function __sveltets_2_nonNullable<T>(type: T): NonNullable<T>;
declare function __sveltets_2_cssProp(prop: Record<string, any>): {};
// @ts-ignore Svelte v3/v4 don't have this
declare function __sveltets_2_ensureSnippet(val: ReturnType<import('svelte').Snippet> | undefined | null): any;
/** @internal PRIVATE API, DO NOT USE */
type __sveltets_2_SvelteAnimationReturnType = {
delay?: number,
duration?: number,
easing?: (t: number) => number,
css?: (t: number, u: number) => string,
tick?: (t: number, u: number) => void
}
declare var __sveltets_2_AnimationMove: { from: DOMRect, to: DOMRect }
declare function __sveltets_2_ensureAnimation(animationCall: __sveltets_2_SvelteAnimationReturnType): {};
/** @internal PRIVATE API, DO NOT USE */
type __sveltets_2_SvelteActionReturnType = {
update?: (args: any) => void,
destroy?: () => void,
$$_attributes?: Record<string, any>,
} | void
declare function __sveltets_2_ensureAction<T extends __sveltets_2_SvelteActionReturnType>(actionCall: T): T extends {$$_attributes?: any} ? T['$$_attributes'] : {};
/** @internal PRIVATE API, DO NOT USE */
type __sveltets_2_SvelteTransitionConfig = {
delay?: number,
duration?: number,
easing?: (t: number) => number,
css?: (t: number, u: number) => string,
tick?: (t: number, u: number) => void
}
/** @internal PRIVATE API, DO NOT USE */
type __sveltets_2_SvelteTransitionReturnType = __sveltets_2_SvelteTransitionConfig | (() => __sveltets_2_SvelteTransitionConfig)
declare function __sveltets_2_ensureTransition(transitionCall: __sveltets_2_SvelteTransitionReturnType): {};
// Includes undefined and null for all types as all usages also allow these
declare function __sveltets_2_ensureType<T>(type: AConstructorTypeOf<T>, el: T | undefined | null): {};
declare function __sveltets_2_ensureType<T1, T2>(type1: AConstructorTypeOf<T1>, type2: AConstructorTypeOf<T2>, el: T1 | T2 | undefined | null): {};
// The following is necessary because there are two clashing errors that can't be solved at the same time
// when using Svelte2TsxComponent, more precisely the event typings in
// __sveltets_2_ensureComponent<T extends new (..) => _SvelteComponent<any,||any||<-this,any>>(type: T): T;
// If we type it as "any", we have an error when using sth like {a: CustomEvent<any>}
// If we type it as "{}", we have an error when using sth like {[evt: string]: CustomEvent<any>}
// If we type it as "unknown", we get all kinds of follow up errors which we want to avoid
// Therefore introduce two more base classes just for this case.
/**
* Ambient type only used for intellisense, DO NOT USE IN YOUR PROJECT
*/
declare type ATypedSvelteComponent = {
/**
* @internal This is for type checking capabilities only
* and does not exist at runtime. Don't use this property.
*/
$$prop_def: any;
/**
* @internal This is for type checking capabilities only
* and does not exist at runtime. Don't use this property.
*/
$$events_def: any;
/**
* @internal This is for type checking capabilities only
* and does not exist at runtime. Don't use this property.
*/
$$slot_def: any;
$on(event: string, handler: any): () => void;
}
/**
* Ambient type only used for intellisense, DO NOT USE IN YOUR PROJECT.
*
* If you're looking for the type of a Svelte Component, use `SvelteComponent` and `ComponentType` instead:
*
* ```ts
* import type { ComponentType, SvelteComponent } from "svelte";
* let myComponentConstructor: ComponentType<SvelteComponent> = ..;
* ```
*/
declare type ConstructorOfATypedSvelteComponent = new (args: {target: any, props?: any}) => ATypedSvelteComponent
// Usage note: Cannot properly transform generic function components to class components due to TypeScript limitations
declare function __sveltets_2_ensureComponent<
T extends
| ConstructorOfATypedSvelteComponent
| (typeof import('svelte') extends { mount: any }
? // @ts-ignore svelte.Component doesn't exist in Svelte 4
import('svelte').Component<any, any, any>
: never)
| null
| undefined
>(
type: T
): NonNullable<
T extends ConstructorOfATypedSvelteComponent
? T
: typeof import('svelte') extends { mount: any }
? // @ts-ignore svelte.Component doesn't exist in Svelte 4
T extends import('svelte').Component<
infer Props extends Record<string, any>,
infer Exports extends Record<string, any>,
infer Bindings extends string
>
? new (
options: import('svelte').ComponentConstructorOptions<Props>
) => import('svelte').SvelteComponent<Props, Props['$$events'], Props['$$slots']> &
Exports & { $$bindings: Bindings }
: never
: never
>;
declare function __sveltets_2_ensureArray<T extends ArrayLike<unknown> | Iterable<unknown>>(
// Svelte 5 allows undefined or null here, Svelte 4 doesn't
array: T | (typeof import('svelte') extends { mount: any } ? (undefined | null) : never)
): T extends ArrayLike<infer U> ? U[] : T extends Iterable<infer U> ? Iterable<U> : any[];
type __sveltets_2_PropsWithChildren<Props, Slots> = Props &
(Slots extends { default: any }
// This is unfortunate because it means "accepts no props" turns into "accepts any prop"
// but the alternative is non-fixable type errors because of the way TypeScript index
// signatures work (they will always take precedence and make an impossible-to-satisfy children type).
? Props extends Record<string, never>
? any
: { children?: any }
: {});
declare function __sveltets_2_runes_constructor<Props extends {}>(render: {props: Props }): import("svelte").ComponentConstructorOptions<Props>;
declare function __sveltets_2_get_set_binding<T>(get: (() => T) | null | undefined, set: (t: T) => void): T;
declare function __sveltets_$$bindings<Bindings extends string[]>(...bindings: Bindings): Bindings[number];
declare function __sveltets_2_fn_component<
Props extends Record<string, any>, Exports extends Record<string, any>, Bindings extends string
// @ts-ignore Svelte 5 only
>(klass: {props: Props, exports?: Exports, bindings?: Bindings }): import('svelte').Component<Props, Exports, Bindings>;
interface __sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & { $$bindings?: Bindings } & Exports;
(internal: unknown, props: Props extends Record<string, never> ? {$$events?: Events, $$slots?: Slots} : Props & {$$events?: Events, $$slots?: Slots}): Exports & { $set?: any, $on?: any };
z_$$bindings?: Bindings;
}
declare function __sveltets_2_isomorphic_component<
Props extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>, Exports extends Record<string, any>, Bindings extends string
>(klass: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }): __sveltets_2_IsomorphicComponent<Props, Events, Slots, Exports, Bindings>;
declare function __sveltets_2_isomorphic_component_slots<
Props extends Record<string, any>, Events extends Record<string, any>, Slots extends Record<string, any>, Exports extends Record<string, any>, Bindings extends string
>(klass: {props: Props, events: Events, slots: Slots, exports?: Exports, bindings?: Bindings }): __sveltets_2_IsomorphicComponent<__sveltets_2_PropsWithChildren<Props, Slots>, Events, Slots, Exports, Bindings>;

View File

@@ -1 +0,0 @@
{"compilerOptions":{"css":"external","dev":true,"hmr":true,"runes":"({ filename }) => filename.split(/[/\\\\]/).includes(\"node_modules\") ? void 0 : !0"},"configFile":false,"extensions":[".svelte"],"preprocess":{"name":"sveltekit:warnings","script":"({ content, filename }) => {\n if (!filename)\n return;\n const basename = path.basename(filename);\n if (basename.startsWith(\"+page.\") || basename.startsWith(\"+layout.\")) {\n const match = content.match(options_regex);\n if (match && match.index !== void 0 && !should_ignore(content, match.index)) {\n const fixed = basename.replace(\".svelte\", \"(.server).js/ts\"), file = path.relative(process.cwd(), filename), key = `page_option_in_component:${file}:${match[1]}`;\n if (!warned.has(key)) {\n w.page_option_in_component({ file, option: match[1], fixed });\n warned.add(key);\n }\n }\n }\n }","markup":"({ content, filename }) => {\n if (!filename)\n return;\n if (path.basename(filename).startsWith(\"+layout.\") && !has_children(content, !0)) {\n const file = path.relative(process.cwd(), filename), key = `layout_children_missing:${file}`;\n if (!warned.has(key)) {\n w.layout_children_missing({ file });\n warned.add(key);\n }\n }\n }"}}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
export { n as BROWSER, n as DEV, t as NODE } from "./esm-env-D8Yi5ac9.js";

View File

@@ -1,174 +0,0 @@
{
"hash": "0ced44a7",
"configHash": "457bb450",
"lockfileHash": "639dee1d",
"browserHash": "2cd5c438",
"optimized": {
"@sveltejs/kit > devalue": {
"src": "../../devalue/index.js",
"file": "@sveltejs_kit_n_devalue.js",
"fileHash": "077eba68",
"needsInterop": false
},
"@sveltejs/kit > esm-env": {
"src": "../../esm-env/index.js",
"file": "@sveltejs_kit_n_esm-env.js",
"fileHash": "a4cf7607",
"needsInterop": false
},
"svelte": {
"src": "../../svelte/src/index-client.js",
"file": "svelte.js",
"fileHash": "421b260f",
"needsInterop": false
},
"svelte/animate": {
"src": "../../svelte/src/animate/index.js",
"file": "svelte_animate.js",
"fileHash": "d761958c",
"needsInterop": false
},
"svelte/attachments": {
"src": "../../svelte/src/attachments/index.js",
"file": "svelte_attachments.js",
"fileHash": "40dec634",
"needsInterop": false
},
"svelte/easing": {
"src": "../../svelte/src/easing/index.js",
"file": "svelte_easing.js",
"fileHash": "753941bf",
"needsInterop": false
},
"svelte/events": {
"src": "../../svelte/src/events/index.js",
"file": "svelte_events.js",
"fileHash": "874101d9",
"needsInterop": false
},
"svelte/internal": {
"src": "../../svelte/src/internal/index.js",
"file": "svelte_internal.js",
"fileHash": "66d8aa91",
"needsInterop": true
},
"svelte/internal/client": {
"src": "../../svelte/src/internal/client/index.js",
"file": "svelte_internal_client.js",
"fileHash": "9aa5233d",
"needsInterop": false
},
"svelte/internal/disclose-version": {
"src": "../../svelte/src/internal/disclose-version.js",
"file": "svelte_internal_disclose-version.js",
"fileHash": "9d777fc3",
"needsInterop": false
},
"svelte/internal/flags/async": {
"src": "../../svelte/src/internal/flags/async.js",
"file": "svelte_internal_flags_async.js",
"fileHash": "870fd5c6",
"needsInterop": false
},
"svelte/internal/flags/legacy": {
"src": "../../svelte/src/internal/flags/legacy.js",
"file": "svelte_internal_flags_legacy.js",
"fileHash": "dad1c00c",
"needsInterop": false
},
"svelte/internal/flags/tracing": {
"src": "../../svelte/src/internal/flags/tracing.js",
"file": "svelte_internal_flags_tracing.js",
"fileHash": "fbd2f1f5",
"needsInterop": false
},
"svelte/legacy": {
"src": "../../svelte/src/legacy/legacy-client.js",
"file": "svelte_legacy.js",
"fileHash": "dd491873",
"needsInterop": false
},
"svelte/motion": {
"src": "../../svelte/src/motion/index.js",
"file": "svelte_motion.js",
"fileHash": "2be2366e",
"needsInterop": false
},
"svelte > clsx": {
"src": "../../clsx/dist/clsx.mjs",
"file": "svelte_n_clsx.js",
"fileHash": "51f7865c",
"needsInterop": false
},
"svelte/reactivity": {
"src": "../../svelte/src/reactivity/index-client.js",
"file": "svelte_reactivity.js",
"fileHash": "6427ee44",
"needsInterop": false
},
"svelte/reactivity/window": {
"src": "../../svelte/src/reactivity/window/index.js",
"file": "svelte_reactivity_window.js",
"fileHash": "3006f4a4",
"needsInterop": false
},
"svelte/store": {
"src": "../../svelte/src/store/index-client.js",
"file": "svelte_store.js",
"fileHash": "92bd9482",
"needsInterop": false
},
"svelte/transition": {
"src": "../../svelte/src/transition/index.js",
"file": "svelte_transition.js",
"fileHash": "8f073a86",
"needsInterop": false
}
},
"chunks": {
"create-subscriber-C6AIq2F7": {
"file": "create-subscriber-C6AIq2F7.js",
"isDynamicEntry": false
},
"esm-env-D8Yi5ac9": {
"file": "esm-env-D8Yi5ac9.js",
"isDynamicEntry": false
},
"events-21uQP6Br": {
"file": "events-21uQP6Br.js",
"isDynamicEntry": false
},
"flags-qfBdqUK7": {
"file": "flags-qfBdqUK7.js",
"isDynamicEntry": false
},
"index-client-CF5gpQfx": {
"file": "index-client-CF5gpQfx.js",
"isDynamicEntry": false
},
"index-client-D0TavHuA": {
"file": "index-client-D0TavHuA.js",
"isDynamicEntry": false
},
"legacy-client-DZ46pveM": {
"file": "legacy-client-DZ46pveM.js",
"isDynamicEntry": false
},
"reactive-value-BNDpYQtD": {
"file": "reactive-value-BNDpYQtD.js",
"isDynamicEntry": false
},
"runtime-BOFXI46e": {
"file": "runtime-BOFXI46e.js",
"isDynamicEntry": false
},
"shared-CBkF5T1F": {
"file": "shared-CBkF5T1F.js",
"isDynamicEntry": false
},
"warnings-BCxPSjeg": {
"file": "warnings-BCxPSjeg.js",
"isDynamicEntry": false
}
}
}

View File

@@ -1,76 +0,0 @@
import { Gt as queue_micro_task, a as get, f as untrack, ft as source, j as render_effect, ln as tag, st as increment, w as effect_tracking } from "./runtime-BOFXI46e.js";
import "./esm-env-D8Yi5ac9.js";
// node_modules/svelte/src/reactivity/create-subscriber.js
/**
* Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.
* It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.
*
* If `subscribe` is called inside an effect (including indirectly, for example inside a getter),
* the `start` callback will be called with an `update` function. Whenever `update` is called, the effect re-runs.
*
* If `start` returns a cleanup function, it will be called when the effect is destroyed.
*
* If `subscribe` is called in multiple effects, `start` will only be called once as long as the effects
* are active, and the returned teardown function will only be called when all effects are destroyed.
*
* It's best understood with an example. Here's an implementation of [`MediaQuery`](https://svelte.dev/docs/svelte/svelte-reactivity#MediaQuery):
*
* ```js
* import { createSubscriber } from 'svelte/reactivity';
* import { on } from 'svelte/events';
*
* export class MediaQuery {
* #query;
* #subscribe;
*
* constructor(query) {
* this.#query = window.matchMedia(`(${query})`);
*
* this.#subscribe = createSubscriber((update) => {
* // when the `change` event occurs, re-run any effects that read `this.current`
* const off = on(this.#query, 'change', update);
*
* // stop listening when all the effects are destroyed
* return () => off();
* });
* }
*
* get current() {
* // This makes the getter reactive, if read in an effect
* this.#subscribe();
*
* // Return the current state of the query, whether or not we're in an effect
* return this.#query.matches;
* }
* }
* ```
* @param {(update: () => void) => (() => void) | void} start
* @since 5.7.0
*/
function createSubscriber(start) {
let subscribers = 0;
let version = source(0);
/** @type {(() => void) | void} */
let stop;
tag(version, "createSubscriber version");
return () => {
if (effect_tracking()) {
get(version);
render_effect(() => {
if (subscribers === 0) stop = untrack(() => start(() => increment(version)));
subscribers += 1;
return () => {
queue_micro_task(() => {
subscribers -= 1;
if (subscribers === 0) {
stop?.();
stop = void 0;
increment(version);
}
});
};
});
}
};
}
export { createSubscriber as t };

View File

@@ -1 +0,0 @@
{"version":3,"file":"create-subscriber-C6AIq2F7.js","names":[],"sources":["../../svelte/src/reactivity/create-subscriber.js"],"sourcesContent":["import { get, tick, untrack } from '../internal/client/runtime.js';\nimport { effect_tracking, render_effect } from '../internal/client/reactivity/effects.js';\nimport { source, increment } from '../internal/client/reactivity/sources.js';\nimport { tag } from '../internal/client/dev/tracing.js';\nimport { DEV } from 'esm-env';\nimport { queue_micro_task } from '../internal/client/dom/task.js';\n\n/**\n * Returns a `subscribe` function that integrates external event-based systems with Svelte's reactivity.\n * It's particularly useful for integrating with web APIs like `MediaQuery`, `IntersectionObserver`, or `WebSocket`.\n *\n * If `subscribe` is called inside an effect (including indirectly, for example inside a getter),\n * the `start` callback will be called with an `update` function. Whenever `update` is called, the effect re-runs.\n *\n * If `start` returns a cleanup function, it will be called when the effect is destroyed.\n *\n * If `subscribe` is called in multiple effects, `start` will only be called once as long as the effects\n * are active, and the returned teardown function will only be called when all effects are destroyed.\n *\n * It's best understood with an example. Here's an implementation of [`MediaQuery`](https://svelte.dev/docs/svelte/svelte-reactivity#MediaQuery):\n *\n * ```js\n * import { createSubscriber } from 'svelte/reactivity';\n * import { on } from 'svelte/events';\n *\n * export class MediaQuery {\n * \t#query;\n * \t#subscribe;\n *\n * \tconstructor(query) {\n * \t\tthis.#query = window.matchMedia(`(${query})`);\n *\n * \t\tthis.#subscribe = createSubscriber((update) => {\n * \t\t\t// when the `change` event occurs, re-run any effects that read `this.current`\n * \t\t\tconst off = on(this.#query, 'change', update);\n *\n * \t\t\t// stop listening when all the effects are destroyed\n * \t\t\treturn () => off();\n * \t\t});\n * \t}\n *\n * \tget current() {\n * \t\t// This makes the getter reactive, if read in an effect\n * \t\tthis.#subscribe();\n *\n * \t\t// Return the current state of the query, whether or not we're in an effect\n * \t\treturn this.#query.matches;\n * \t}\n * }\n * ```\n * @param {(update: () => void) => (() => void) | void} start\n * @since 5.7.0\n */\nexport function createSubscriber(start) {\n\tlet subscribers = 0;\n\tlet version = source(0);\n\t/** @type {(() => void) | void} */\n\tlet stop;\n\n\tif (DEV) {\n\t\ttag(version, 'createSubscriber version');\n\t}\n\n\treturn () => {\n\t\tif (effect_tracking()) {\n\t\t\tget(version);\n\n\t\t\trender_effect(() => {\n\t\t\t\tif (subscribers === 0) {\n\t\t\t\t\tstop = untrack(() => start(() => increment(version)));\n\t\t\t\t}\n\n\t\t\t\tsubscribers += 1;\n\n\t\t\t\treturn () => {\n\t\t\t\t\tqueue_micro_task(() => {\n\t\t\t\t\t\t// Only count down after a microtask, else we would reach 0 before our own render effect reruns,\n\t\t\t\t\t\t// but reach 1 again when the tick callback of the prior teardown runs. That would mean we\n\t\t\t\t\t\t// re-subcribe unnecessarily and create a memory leak because the old subscription is never cleaned up.\n\t\t\t\t\t\tsubscribers -= 1;\n\n\t\t\t\t\t\tif (subscribers === 0) {\n\t\t\t\t\t\t\tstop?.();\n\t\t\t\t\t\t\tstop = undefined;\n\t\t\t\t\t\t\t// Increment the version to ensure any dependent deriveds are marked dirty when the subscription is picked up again later.\n\t\t\t\t\t\t\t// If we didn't do this then the comparison of write versions would determine that the derived has a later version than\n\t\t\t\t\t\t\t// the subscriber, and it would not be re-run.\n\t\t\t\t\t\t\tincrement(version);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDA,SAAgB,iBAAiB,OAAO;CACvC,IAAI,cAAc;CAClB,IAAI,UAAU,OAAO,CAAC;;CAEtB,IAAI;CAGH,IAAI,SAAS,0BAA0B;CAGxC,aAAa;EACZ,IAAI,gBAAgB,GAAG;GACtB,IAAI,OAAO;GAEX,oBAAoB;IACnB,IAAI,gBAAgB,GACnB,OAAO,cAAc,YAAY,UAAU,OAAO,CAAC,CAAC;IAGrD,eAAe;IAEf,aAAa;KACZ,uBAAuB;MAItB,eAAe;MAEf,IAAI,gBAAgB,GAAG;OACtB,OAAO;OACP,OAAO,KAAA;OAIP,UAAU,OAAO;MAClB;KACD,CAAC;IACF;GACD,CAAC;EACF;CACD;AACD"}

View File

@@ -1,5 +0,0 @@
// node_modules/esm-env/true.js
var true_default = true;
// node_modules/esm-env/false.js
var false_default = false;
export { true_default as n, false_default as t };

View File

@@ -1 +0,0 @@
{"version":3,"file":"esm-env-D8Yi5ac9.js","names":[],"sources":["../../esm-env/true.js","../../esm-env/false.js"],"sourcesContent":["export default true;\n","export default false;\n"],"mappings":";AAAA,IAAA,eAAe;;ACAf,IAAA,gBAAe"}

View File

@@ -1,215 +0,0 @@
import { Bn as hydrating, Cr as define_property, Gt as queue_micro_task, Jn as FILENAME, N as teardown, c as set_active_effect, l as set_active_reaction, n as active_reaction, t as active_effect, zt as without_reactive_context } from "./runtime-BOFXI46e.js";
import { s as event_handler_invalid } from "./warnings-BCxPSjeg.js";
// node_modules/svelte/src/internal/client/dom/elements/events.js
/**
* Used on elements, as a map of event type -> event handler,
* and on events themselves to track which element handled an event
*/
var event_symbol = Symbol("events");
/** @type {Set<string>} */
var all_registered_events = /* @__PURE__ */ new Set();
/** @type {Set<(events: Array<string>) => void>} */
var root_event_handles = /* @__PURE__ */ new Set();
/**
* SSR adds onload and onerror attributes to catch those events before the hydration.
* This function detects those cases, removes the attributes and replays the events.
* @param {HTMLElement} dom
*/
function replay_events(dom) {
if (!hydrating) return;
dom.removeAttribute("onload");
dom.removeAttribute("onerror");
const event = dom.__e;
if (event !== void 0) {
dom.__e = void 0;
queueMicrotask(() => {
if (dom.isConnected) dom.dispatchEvent(event);
});
}
}
/**
* @param {string} event_name
* @param {EventTarget} dom
* @param {EventListener} [handler]
* @param {AddEventListenerOptions} [options]
*/
function create_event(event_name, dom, handler, options = {}) {
/**
* @this {EventTarget}
*/
function target_handler(event) {
if (!options.capture) handle_event_propagation.call(dom, event);
if (!event.cancelBubble) return without_reactive_context(() => {
return handler?.call(this, event);
});
}
if (event_name.startsWith("pointer") || event_name.startsWith("touch") || event_name === "wheel") {
target_handler.__removed = false;
queue_micro_task(() => {
if (!target_handler.__removed) dom.addEventListener(event_name, target_handler, options);
});
} else dom.addEventListener(event_name, target_handler, options);
return target_handler;
}
/**
* Attaches an event handler to an element and returns a function that removes the handler. Using this
* rather than `addEventListener` will preserve the correct order relative to handlers added declaratively
* (with attributes like `onclick`), which use event delegation for performance reasons
*
* @param {EventTarget} element
* @param {string} type
* @param {EventListener} handler
* @param {AddEventListenerOptions} [options]
*/
function on(element, type, handler, options = {}) {
var target_handler = create_event(type, element, handler, options);
return () => {
target_handler.__removed = true;
element.removeEventListener(type, target_handler, options);
};
}
/**
* @param {string} event_name
* @param {Element} dom
* @param {EventListener} [handler]
* @param {boolean} [capture]
* @param {boolean} [passive]
* @returns {void}
*/
function event(event_name, dom, handler, capture, passive) {
var options = {
capture,
passive
};
var target_handler = create_event(event_name, dom, handler, options);
if (dom === document.body || dom === window || dom === document || dom instanceof HTMLMediaElement) teardown(() => {
target_handler.__removed = true;
dom.removeEventListener(event_name, target_handler, options);
});
}
/**
* @param {string} event_name
* @param {Element} element
* @param {EventListener} [handler]
* @returns {void}
*/
function delegated(event_name, element, handler) {
(element[event_symbol] ??= {})[event_name] = handler;
}
/**
* @param {Array<string>} events
* @returns {void}
*/
function delegate(events) {
for (var i = 0; i < events.length; i++) all_registered_events.add(events[i]);
for (var fn of root_event_handles) fn(events);
}
var last_propagated_event = null;
var last_propagated_event_clear_scheduled = false;
/**
* @this {EventTarget}
* @param {Event} event
* @returns {void}
*/
function handle_event_propagation(event) {
var handler_element = this;
var owner_document = handler_element.ownerDocument;
var event_name = event.type;
var path = event.composedPath?.() || [];
var current_target = path[0] || event.target;
last_propagated_event = event;
if (!last_propagated_event_clear_scheduled) {
last_propagated_event_clear_scheduled = true;
setTimeout(() => {
last_propagated_event_clear_scheduled = false;
last_propagated_event = null;
});
}
var path_idx = 0;
var handled_at = last_propagated_event === event && event[event_symbol];
if (handled_at) {
var at_idx = path.indexOf(handled_at);
if (at_idx !== -1 && (handler_element === document || handler_element === window)) {
event[event_symbol] = handler_element;
return;
}
var handler_idx = path.indexOf(handler_element);
if (handler_idx === -1) return;
if (at_idx <= handler_idx) path_idx = at_idx;
}
current_target = path[path_idx] || event.target;
if (current_target === handler_element) return;
define_property(event, "currentTarget", {
configurable: true,
get() {
return current_target || owner_document;
}
});
var previous_reaction = active_reaction;
var previous_effect = active_effect;
set_active_reaction(null);
set_active_effect(null);
try {
/**
* @type {unknown}
*/
var throw_error;
/**
* @type {unknown[]}
*/
var other_errors = [];
while (current_target !== null) {
if (current_target === handler_element) break;
try {
var delegated = current_target[event_symbol]?.[event_name];
if (delegated != null && (!current_target.disabled || event.target === current_target)) delegated.call(current_target, event);
} catch (error) {
if (throw_error) other_errors.push(error);
else throw_error = error;
}
if (event.cancelBubble) break;
path_idx++;
current_target = path_idx < path.length ? path[path_idx] : null;
}
if (throw_error) {
for (let error of other_errors) queueMicrotask(() => {
throw error;
});
throw throw_error;
}
} finally {
event[event_symbol] = handler_element;
delete event.currentTarget;
set_active_reaction(previous_reaction);
set_active_effect(previous_effect);
}
}
/**
* In dev, warn if an event handler is not a function, as it means the
* user probably called the handler or forgot to add a `() =>`
* @param {() => (event: Event, ...args: any) => void} thunk
* @param {EventTarget} element
* @param {[Event, ...any]} args
* @param {any} component
* @param {[number, number]} [loc]
* @param {boolean} [remove_parens]
*/
function apply(thunk, element, args, component, loc, has_side_effects = false, remove_parens = false) {
let handler;
let error;
try {
handler = thunk();
} catch (e) {
error = e;
}
if (typeof handler !== "function" && (has_side_effects || handler != null || error)) {
const filename = component?.[FILENAME];
const location = loc ? ` at ${filename}:${loc[0]}:${loc[1]}` : ` in ${filename}`;
const phase = args[0]?.eventPhase < Event.BUBBLING_PHASE ? "capture" : "";
const description = `\`${args[0]?.type + phase}\` handler${location}`;
event_handler_invalid(description, remove_parens ? "remove the trailing `()`" : "add a leading `() =>`");
if (error) throw error;
}
handler?.apply(element, args);
}
export { delegated as a, on as c, delegate as i, replay_events as l, apply as n, event as o, create_event as r, handle_event_propagation as s, all_registered_events as t, root_event_handles as u };

File diff suppressed because one or more lines are too long

View File

@@ -1,17 +0,0 @@
// node_modules/svelte/src/internal/flags/index.js
/** True if experimental.async=true */
var async_mode_flag = false;
/** True if we're not certain that we only have Svelte 5 code in the compilation */
var legacy_mode_flag = false;
/** True if $inspect.trace is used */
var tracing_mode_flag = false;
function enable_async_mode_flag() {
async_mode_flag = true;
}
function enable_legacy_mode_flag() {
legacy_mode_flag = true;
}
function enable_tracing_mode_flag() {
tracing_mode_flag = true;
}
export { legacy_mode_flag as a, enable_tracing_mode_flag as i, enable_async_mode_flag as n, tracing_mode_flag as o, enable_legacy_mode_flag as r, async_mode_flag as t };

View File

@@ -1 +0,0 @@
{"version":3,"file":"flags-qfBdqUK7.js","names":[],"sources":["../../svelte/src/internal/flags/index.js"],"sourcesContent":["/** True if experimental.async=true */\nexport let async_mode_flag = false;\n/** True if we're not certain that we only have Svelte 5 code in the compilation */\nexport let legacy_mode_flag = false;\n/** True if $inspect.trace is used */\nexport let tracing_mode_flag = false;\n\nexport function enable_async_mode_flag() {\n\tasync_mode_flag = true;\n}\n\n/** ONLY USE THIS DURING TESTING */\nexport function disable_async_mode_flag() {\n\tasync_mode_flag = false;\n}\n\nexport function enable_legacy_mode_flag() {\n\tlegacy_mode_flag = true;\n}\n\nexport function enable_tracing_mode_flag() {\n\ttracing_mode_flag = true;\n}\n"],"mappings":";;AACA,IAAW,kBAAkB;;AAE7B,IAAW,mBAAmB;;AAE9B,IAAW,oBAAoB;AAE/B,SAAgB,yBAAyB;CACxC,kBAAkB;AACnB;AAOA,SAAgB,0BAA0B;CACzC,mBAAmB;AACpB;AAEA,SAAgB,2BAA2B;CAC1C,oBAAoB;AACrB"}

View File

@@ -1,828 +0,0 @@
import "./index-client-D0TavHuA.js";
import { Et as user_derived, a as get, cn as label, dt as set, ft as source, l as set_active_reaction, ln as tag, n as active_reaction, p as update_version, pt as state, st as increment } from "./runtime-BOFXI46e.js";
import "./esm-env-D8Yi5ac9.js";
import { c as on } from "./events-21uQP6Br.js";
import "./svelte_events.js";
import { t as ReactiveValue } from "./reactive-value-BNDpYQtD.js";
import "./create-subscriber-C6AIq2F7.js";
// node_modules/svelte/src/reactivity/date.js
/** @import { Derived } from '#client' */
var inited$1 = false;
/**
* A reactive version of the built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) object.
* Reading the date (whether with methods like `date.getTime()` or `date.toString()`, or via things like [`Intl.DateTimeFormat`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat))
* in an [effect](https://svelte.dev/docs/svelte/$effect) or [derived](https://svelte.dev/docs/svelte/$derived)
* will cause it to be re-evaluated when the value of the date changes.
*
* ```svelte
* <script>
* import { SvelteDate } from 'svelte/reactivity';
*
* const date = new SvelteDate();
*
* const formatter = new Intl.DateTimeFormat(undefined, {
* hour: 'numeric',
* minute: 'numeric',
* second: 'numeric'
* });
*
* $effect(() => {
* const interval = setInterval(() => {
* date.setTime(Date.now());
* }, 1000);
*
* return () => {
* clearInterval(interval);
* };
* });
* <\/script>
*
* <p>The time is {formatter.format(date)}</p>
* ```
*/
var SvelteDate = class SvelteDate extends Date {
#time = /* @__PURE__ */ state(super.getTime());
/** @type {Map<keyof Date, Derived<unknown>>} */
#deriveds = /* @__PURE__ */ new Map();
#reaction = active_reaction;
/** @param {any[]} params */
constructor(...params) {
super(...params);
tag(this.#time, "SvelteDate.#time");
if (!inited$1) this.#init();
}
#init() {
inited$1 = true;
var proto = SvelteDate.prototype;
var date_proto = Date.prototype;
var methods = Object.getOwnPropertyNames(date_proto);
for (const method of methods) {
if (method.startsWith("get") || method.startsWith("to") || method === "valueOf") proto[method] = function(...args) {
if (args.length > 0) {
get(this.#time);
return date_proto[method].apply(this, args);
}
var d = this.#deriveds.get(method);
if (d === void 0) {
const reaction = active_reaction;
set_active_reaction(this.#reaction);
d = /* @__PURE__ */ user_derived(() => {
get(this.#time);
return date_proto[method].apply(this, args);
});
tag(d, `SvelteDate.${method}()`);
this.#deriveds.set(method, d);
set_active_reaction(reaction);
}
return get(d);
};
if (method.startsWith("set")) proto[method] = function(...args) {
var result = date_proto[method].apply(this, args);
set(this.#time, date_proto.getTime.call(this));
return result;
};
}
}
};
// node_modules/svelte/src/reactivity/set.js
/** @import { Source } from '#client' */
var read_methods = [
"forEach",
"isDisjointFrom",
"isSubsetOf",
"isSupersetOf"
];
var set_like_methods = [
"difference",
"intersection",
"symmetricDifference",
"union"
];
var inited = false;
/**
* A reactive version of the built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) object.
* Reading contents of the set (by iterating, or by reading `set.size` or calling `set.has(...)` as in the [example](https://svelte.dev/playground/53438b51194b4882bcc18cddf9f96f15) below) in an [effect](https://svelte.dev/docs/svelte/$effect) or [derived](https://svelte.dev/docs/svelte/$derived)
* will cause it to be re-evaluated as necessary when the set is updated.
*
* Note that values in a reactive set are _not_ made [deeply reactive](https://svelte.dev/docs/svelte/$state#Deep-state).
*
* ```svelte
* <script>
* import { SvelteSet } from 'svelte/reactivity';
* let monkeys = new SvelteSet();
*
* function toggle(monkey) {
* if (monkeys.has(monkey)) {
* monkeys.delete(monkey);
* } else {
* monkeys.add(monkey);
* }
* }
* <\/script>
*
* {#each ['🙈', '🙉', '🙊'] as monkey}
* <button onclick={() => toggle(monkey)}>{monkey}</button>
* {/each}
*
* <button onclick={() => monkeys.clear()}>clear</button>
*
* {#if monkeys.has('🙈')}<p>see no evil</p>{/if}
* {#if monkeys.has('🙉')}<p>hear no evil</p>{/if}
* {#if monkeys.has('🙊')}<p>speak no evil</p>{/if}
* ```
*
* @template T
* @extends {Set<T>}
*/
var SvelteSet = class SvelteSet extends Set {
/** @type {Map<T, Source<boolean>>} */
#sources = /* @__PURE__ */ new Map();
#version = /* @__PURE__ */ state(0);
#size = /* @__PURE__ */ state(0);
#update_version = update_version || -1;
/**
* @param {Iterable<T> | null | undefined} [value]
*/
constructor(value) {
super();
value = new Set(value);
tag(this.#version, "SvelteSet version");
tag(this.#size, "SvelteSet.size");
if (value) {
for (var element of value) super.add(element);
this.#size.v = super.size;
}
if (!inited) this.#init();
}
/**
* If the source is being created inside the same reaction as the SvelteSet instance,
* we use `state` so that it will not be a dependency of the reaction. Otherwise we
* use `source` so it will be.
*
* @template T
* @param {T} value
* @returns {Source<T>}
*/
#source(value) {
return update_version === this.#update_version ? /* @__PURE__ */ state(value) : source(value);
}
#init() {
inited = true;
var proto = SvelteSet.prototype;
var set_proto = Set.prototype;
for (const method of read_methods) proto[method] = function(...v) {
get(this.#version);
return set_proto[method].apply(this, v);
};
for (const method of set_like_methods) proto[method] = function(...v) {
get(this.#version);
var set = set_proto[method].apply(this, v);
return new SvelteSet(set);
};
}
/** @param {T} value */
has(value) {
var has = super.has(value);
var sources = this.#sources;
var s = sources.get(value);
if (s === void 0) {
if (!has) {
get(this.#version);
return false;
}
s = this.#source(true);
tag(s, `SvelteSet has(${label(value)})`);
sources.set(value, s);
}
get(s);
return has;
}
/** @param {T} value */
add(value) {
if (!super.has(value)) {
super.add(value);
set(this.#size, super.size);
increment(this.#version);
}
return this;
}
/** @param {T} value */
delete(value) {
var deleted = super.delete(value);
var sources = this.#sources;
var s = sources.get(value);
if (s !== void 0) {
sources.delete(value);
set(s, false);
}
if (deleted) {
set(this.#size, super.size);
increment(this.#version);
}
return deleted;
}
clear() {
if (super.size === 0) return;
super.clear();
var sources = this.#sources;
for (var s of sources.values()) set(s, false);
sources.clear();
set(this.#size, 0);
increment(this.#version);
}
keys() {
return this.values();
}
values() {
get(this.#version);
return super.values();
}
entries() {
get(this.#version);
return super.entries();
}
[Symbol.iterator]() {
return this.keys();
}
get size() {
return get(this.#size);
}
};
// node_modules/svelte/src/reactivity/map.js
/** @import { Source } from '#client' */
/**
* A reactive version of the built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) object.
* Reading contents of the map (by iterating, or by reading `map.size` or calling `map.get(...)` or `map.has(...)` as in the [tic-tac-toe example](https://svelte.dev/playground/0b0ff4aa49c9443f9b47fe5203c78293) below) in an [effect](https://svelte.dev/docs/svelte/$effect) or [derived](https://svelte.dev/docs/svelte/$derived)
* will cause it to be re-evaluated as necessary when the map is updated.
*
* Note that values in a reactive map are _not_ made [deeply reactive](https://svelte.dev/docs/svelte/$state#Deep-state).
*
* ```svelte
* <script>
* import { SvelteMap } from 'svelte/reactivity';
* import { result } from './game.js';
*
* let board = new SvelteMap();
* let player = $state('x');
* let winner = $derived(result(board));
*
* function reset() {
* player = 'x';
* board.clear();
* }
* <\/script>
*
* <div class="board">
* {#each Array(9), i}
* <button
* disabled={board.has(i) || winner}
* onclick={() => {
* board.set(i, player);
* player = player === 'x' ? 'o' : 'x';
* }}
* >{board.get(i)}</button>
* {/each}
* </div>
*
* {#if winner}
* <p>{winner} wins!</p>
* <button onclick={reset}>reset</button>
* {:else}
* <p>{player} is next</p>
* {/if}
* ```
*
* @template K
* @template V
* @extends {Map<K, V>}
*/
var SvelteMap = class extends Map {
/** @type {Map<K, Source<number>>} */
#sources = /* @__PURE__ */ new Map();
#version = /* @__PURE__ */ state(0);
#size = /* @__PURE__ */ state(0);
#update_version = update_version || -1;
/**
* @param {Iterable<readonly [K, V]> | null | undefined} [value]
*/
constructor(value) {
super();
value = new Map(value);
tag(this.#version, "SvelteMap version");
tag(this.#size, "SvelteMap.size");
if (value) {
for (var [key, v] of value) super.set(key, v);
this.#size.v = super.size;
}
}
/**
* If the source is being created inside the same reaction as the SvelteMap instance,
* we use `state` so that it will not be a dependency of the reaction. Otherwise we
* use `source` so it will be.
*
* @template T
* @param {T} value
* @returns {Source<T>}
*/
#source(value) {
return update_version === this.#update_version ? /* @__PURE__ */ state(value) : source(value);
}
/** @param {K} key */
has(key) {
var sources = this.#sources;
var s = sources.get(key);
if (s === void 0) {
if (super.has(key)) {
s = this.#source(0);
tag(s, `SvelteMap get(${label(key)})`);
sources.set(key, s);
} else {
get(this.#version);
return false;
}
}
get(s);
return true;
}
/**
* @param {(value: V, key: K, map: Map<K, V>) => void} callbackfn
* @param {any} [this_arg]
*/
forEach(callbackfn, this_arg) {
this.#read_all();
super.forEach(callbackfn, this_arg);
}
/** @param {K} key */
get(key) {
var sources = this.#sources;
var s = sources.get(key);
if (s === void 0) {
if (super.has(key)) {
s = this.#source(0);
tag(s, `SvelteMap get(${label(key)})`);
sources.set(key, s);
} else {
get(this.#version);
return;
}
}
get(s);
return super.get(key);
}
/**
* @param {K} key
* @param {V} value
* */
getOrInsert(key, value) {
if (!super.has(key)) this.set(key, value);
return this.get(key);
}
/**
* @param {K} key
* @param {(key: K) => V} callbackFn
*/
getOrInsertComputed(key, callbackFn) {
if (!super.has(key)) this.set(key, callbackFn(key));
return this.get(key);
}
/**
* @param {K} key
* @param {V} value
* */
set(key, value) {
var sources = this.#sources;
var s = sources.get(key);
var prev_res = super.get(key);
var res = super.set(key, value);
var version = this.#version;
if (s === void 0) {
s = this.#source(0);
tag(s, `SvelteMap get(${label(key)})`);
sources.set(key, s);
set(this.#size, super.size);
increment(version);
} else if (prev_res !== value) {
increment(s);
var v_reactions = version.reactions === null ? null : new Set(version.reactions);
if (v_reactions === null || !s.reactions?.every((r) => v_reactions.has(r))) increment(version);
}
return res;
}
/** @param {K} key */
delete(key) {
var sources = this.#sources;
var s = sources.get(key);
var res = super.delete(key);
if (s !== void 0) {
sources.delete(key);
set(s, -1);
}
if (res) {
set(this.#size, super.size);
increment(this.#version);
}
return res;
}
clear() {
if (super.size === 0) return;
super.clear();
var sources = this.#sources;
set(this.#size, 0);
for (var s of sources.values()) set(s, -1);
increment(this.#version);
sources.clear();
}
#read_all() {
get(this.#version);
var sources = this.#sources;
if (this.#size.v !== sources.size) {
for (var key of super.keys()) if (!sources.has(key)) {
var s = this.#source(0);
tag(s, `SvelteMap get(${label(key)})`);
sources.set(key, s);
}
}
for ([, s] of this.#sources) get(s);
}
keys() {
get(this.#version);
return super.keys();
}
values() {
this.#read_all();
return super.values();
}
entries() {
this.#read_all();
return super.entries();
}
[Symbol.iterator]() {
return this.entries();
}
get size() {
get(this.#size);
return super.size;
}
};
// node_modules/svelte/src/reactivity/url-search-params.js
var REPLACE = Symbol("replace");
/**
* A reactive version of the built-in [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) object.
* Reading its contents (by iterating, or by calling `params.get(...)` or `params.getAll(...)` as in the [example](https://svelte.dev/playground/b3926c86c5384bab9f2cf993bc08c1c8) below) in an [effect](https://svelte.dev/docs/svelte/$effect) or [derived](https://svelte.dev/docs/svelte/$derived)
* will cause it to be re-evaluated as necessary when the params are updated.
*
* ```svelte
* <script>
* import { SvelteURLSearchParams } from 'svelte/reactivity';
*
* const params = new SvelteURLSearchParams('message=hello');
*
* let key = $state('key');
* let value = $state('value');
* <\/script>
*
* <input bind:value={key} />
* <input bind:value={value} />
* <button onclick={() => params.append(key, value)}>append</button>
*
* <p>?{params.toString()}</p>
*
* {#each params as [key, value]}
* <p>{key}: {value}</p>
* {/each}
* ```
*/
var SvelteURLSearchParams = class extends URLSearchParams {
#version = tag(/* @__PURE__ */ state(0), "SvelteURLSearchParams version");
#url = get_current_url();
#updating = false;
#update_url() {
if (!this.#url || this.#updating) return;
this.#updating = true;
const search = super.toString();
this.#url.search = search && `?${search}`;
this.#updating = false;
}
/**
* @param {URLSearchParams} params
* @internal
*/
[REPLACE](params) {
if (this.#updating) return;
if (params.toString() === super.toString()) return;
this.#updating = true;
for (const key of [...super.keys()]) super.delete(key);
for (const [key, value] of params) super.append(key, value);
increment(this.#version);
this.#updating = false;
}
/**
* @param {string} name
* @param {string} value
* @returns {void}
*/
append(name, value) {
super.append(name, value);
this.#update_url();
increment(this.#version);
}
/**
* @param {string} name
* @param {string=} value
* @returns {void}
*/
delete(name, value) {
var has_value = super.has(name, value);
super.delete(name, value);
if (has_value) {
this.#update_url();
increment(this.#version);
}
}
/**
* @param {string} name
* @returns {string|null}
*/
get(name) {
get(this.#version);
return super.get(name);
}
/**
* @param {string} name
* @returns {string[]}
*/
getAll(name) {
get(this.#version);
return super.getAll(name);
}
/**
* @param {string} name
* @param {string=} value
* @returns {boolean}
*/
has(name, value) {
get(this.#version);
return super.has(name, value);
}
keys() {
get(this.#version);
return super.keys();
}
/**
* @param {(value: string, key: string, parent: URLSearchParams) => void} callback
* @param {any} [this_arg]
* @returns {void}
*/
forEach(callback, this_arg) {
get(this.#version);
super.forEach(callback, this_arg);
}
/**
* @param {string} name
* @param {string} value
* @returns {void}
*/
set(name, value) {
var previous = super.getAll(name);
super.set(name, value);
var current = super.getAll(name);
if (previous.length !== current.length || previous.some((value, i) => value !== current[i])) {
this.#update_url();
increment(this.#version);
}
}
sort() {
super.sort();
this.#update_url();
increment(this.#version);
}
toString() {
get(this.#version);
return super.toString();
}
values() {
get(this.#version);
return super.values();
}
entries() {
get(this.#version);
return super.entries();
}
[Symbol.iterator]() {
return this.entries();
}
get size() {
get(this.#version);
return super.size;
}
};
// node_modules/svelte/src/reactivity/url.js
/** @type {SvelteURL | null} */
var current_url = null;
function get_current_url() {
return current_url;
}
/**
* A reactive version of the built-in [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL) object.
* Reading properties of the URL (such as `url.href` or `url.pathname`) in an [effect](https://svelte.dev/docs/svelte/$effect) or [derived](https://svelte.dev/docs/svelte/$derived)
* will cause it to be re-evaluated as necessary when the URL changes.
*
* The `searchParams` property is an instance of [SvelteURLSearchParams](https://svelte.dev/docs/svelte/svelte-reactivity#SvelteURLSearchParams).
*
* [Example](https://svelte.dev/playground/5a694758901b448c83dc40dc31c71f2a):
*
* ```svelte
* <script>
* import { SvelteURL } from 'svelte/reactivity';
*
* const url = new SvelteURL('https://example.com/path');
* <\/script>
*
* <!-- changes to these... -->
* <input bind:value={url.protocol} />
* <input bind:value={url.hostname} />
* <input bind:value={url.pathname} />
*
* <hr />
*
* <!-- will update `href` and vice versa -->
* <input bind:value={url.href} size="65" />
* ```
*/
var SvelteURL = class extends URL {
#protocol = /* @__PURE__ */ state(super.protocol);
#username = /* @__PURE__ */ state(super.username);
#password = /* @__PURE__ */ state(super.password);
#hostname = /* @__PURE__ */ state(super.hostname);
#port = /* @__PURE__ */ state(super.port);
#pathname = /* @__PURE__ */ state(super.pathname);
#hash = /* @__PURE__ */ state(super.hash);
#search = /* @__PURE__ */ state(super.search);
#searchParams;
/**
* @param {string | URL} url
* @param {string | URL} [base]
*/
constructor(url, base) {
url = new URL(url, base);
super(url);
tag(this.#protocol, "SvelteURL.protocol");
tag(this.#username, "SvelteURL.username");
tag(this.#password, "SvelteURL.password");
tag(this.#hostname, "SvelteURL.hostname");
tag(this.#port, "SvelteURL.port");
tag(this.#pathname, "SvelteURL.pathname");
tag(this.#hash, "SvelteURL.hash");
tag(this.#search, "SvelteURL.search");
current_url = this;
this.#searchParams = new SvelteURLSearchParams(url.searchParams);
current_url = null;
}
get hash() {
return get(this.#hash);
}
set hash(value) {
super.hash = value;
set(this.#hash, super.hash);
}
get host() {
get(this.#hostname);
get(this.#port);
return super.host;
}
set host(value) {
super.host = value;
set(this.#hostname, super.hostname);
set(this.#port, super.port);
}
get hostname() {
return get(this.#hostname);
}
set hostname(value) {
super.hostname = value;
set(this.#hostname, super.hostname);
}
get href() {
get(this.#protocol);
get(this.#username);
get(this.#password);
get(this.#hostname);
get(this.#port);
get(this.#pathname);
get(this.#hash);
get(this.#search);
return super.href;
}
set href(value) {
super.href = value;
set(this.#protocol, super.protocol);
set(this.#username, super.username);
set(this.#password, super.password);
set(this.#hostname, super.hostname);
set(this.#port, super.port);
set(this.#pathname, super.pathname);
set(this.#hash, super.hash);
set(this.#search, super.search);
this.#searchParams[REPLACE](super.searchParams);
}
get password() {
return get(this.#password);
}
set password(value) {
super.password = value;
set(this.#password, super.password);
}
get pathname() {
return get(this.#pathname);
}
set pathname(value) {
super.pathname = value;
set(this.#pathname, super.pathname);
}
get port() {
return get(this.#port);
}
set port(value) {
super.port = value;
set(this.#port, super.port);
}
get protocol() {
return get(this.#protocol);
}
set protocol(value) {
super.protocol = value;
set(this.#protocol, super.protocol);
set(this.#port, super.port);
}
get search() {
return get(this.#search);
}
set search(value) {
super.search = value;
set(this.#search, super.search);
this.#searchParams[REPLACE](super.searchParams);
}
get username() {
return get(this.#username);
}
set username(value) {
super.username = value;
set(this.#username, super.username);
}
get origin() {
get(this.#protocol);
get(this.#hostname);
get(this.#port);
return super.origin;
}
get searchParams() {
return this.#searchParams;
}
toString() {
return this.href;
}
toJSON() {
return this.href;
}
};
// node_modules/svelte/src/reactivity/media-query.js
var parenthesis_regex = /\(.+\)/;
var non_parenthesized_keywords = /* @__PURE__ */ new Set([
"all",
"print",
"screen",
"and",
"or",
"not",
"only"
]);
/**
* Creates a media query and provides a `current` property that reflects whether or not it matches.
*
* Use it carefully — during server-side rendering, there is no way to know what the correct value should be, potentially causing content to change upon hydration.
* If you can use the media query in CSS to achieve the same effect, do that.
*
* ```svelte
* <script>
* import { MediaQuery } from 'svelte/reactivity';
*
* const large = new MediaQuery('min-width: 800px');
* <\/script>
*
* <h1>{large.current ? 'large screen' : 'small screen'}</h1>
* ```
* @extends {ReactiveValue<boolean>}
* @since 5.7.0
*/
var MediaQuery = class extends ReactiveValue {
/**
* @param {string} query A media query string
* @param {boolean} [fallback] Fallback value for the server
*/
constructor(query, fallback) {
let final_query = parenthesis_regex.test(query) || query.split(/[\s,]+/).some((keyword) => non_parenthesized_keywords.has(keyword.trim())) ? query : `(${query})`;
const q = window.matchMedia(final_query);
super(() => q.matches, (update) => on(q, "change", update));
}
};
export { SvelteSet as a, SvelteMap as i, SvelteURL as n, SvelteDate as o, SvelteURLSearchParams as r, MediaQuery as t };

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +0,0 @@
{
"type": "module"
}

View File

@@ -1,23 +0,0 @@
import { t as createSubscriber } from "./create-subscriber-C6AIq2F7.js";
// node_modules/svelte/src/reactivity/reactive-value.js
/**
* @template T
*/
var ReactiveValue = class {
#fn;
#subscribe;
/**
*
* @param {() => T} fn
* @param {(update: () => void) => void} onsubscribe
*/
constructor(fn, onsubscribe) {
this.#fn = fn;
this.#subscribe = createSubscriber(onsubscribe);
}
get current() {
this.#subscribe();
return this.#fn();
}
};
export { ReactiveValue as t };

View File

@@ -1 +0,0 @@
{"version":3,"file":"reactive-value-BNDpYQtD.js","names":[],"sources":["../../svelte/src/reactivity/reactive-value.js"],"sourcesContent":["import { createSubscriber } from './create-subscriber.js';\n\n/**\n * @template T\n */\nexport class ReactiveValue {\n\t#fn;\n\t#subscribe;\n\n\t/**\n\t *\n\t * @param {() => T} fn\n\t * @param {(update: () => void) => void} onsubscribe\n\t */\n\tconstructor(fn, onsubscribe) {\n\t\tthis.#fn = fn;\n\t\tthis.#subscribe = createSubscriber(onsubscribe);\n\t}\n\n\tget current() {\n\t\tthis.#subscribe();\n\t\treturn this.#fn();\n\t}\n}\n"],"mappings":";;;;;AAKA,IAAa,gBAAb,MAA2B;CAC1B;CACA;;;;;;CAOA,YAAY,IAAI,aAAa;EAC5B,KAAK,MAAM;EACX,KAAK,aAAa,iBAAiB,WAAW;CAC/C;CAEA,IAAI,UAAU;EACb,KAAK,WAAW;EAChB,OAAO,KAAK,IAAI;CACjB;AACD"}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -1,192 +0,0 @@
import { In as safe_not_equal, Ir as run_all, Nr as noop, f as untrack } from "./runtime-BOFXI46e.js";
// node_modules/svelte/src/store/utils.js
/** @import { Readable } from './public' */
/**
* @template T
* @param {Readable<T> | null | undefined} store
* @param {(value: T) => void} run
* @param {(value: T) => void} [invalidate]
* @returns {() => void}
*/
function subscribe_to_store(store, run, invalidate) {
if (store == null) {
run(void 0);
if (invalidate) invalidate(void 0);
return noop;
}
const unsub = untrack(() => store.subscribe(run, invalidate));
return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
}
// node_modules/svelte/src/store/shared/index.js
/** @import { Readable, StartStopNotifier, Subscriber, Unsubscriber, Updater, Writable } from '../public.js' */
/** @import { Stores, StoresValues, SubscribeInvalidateTuple } from '../private.js' */
/**
* @type {Array<SubscribeInvalidateTuple<any> | any>}
*/
var subscriber_queue = [];
/**
* Creates a `Readable` store that allows reading by subscription.
*
* @template T
* @param {T} [value] initial value
* @param {StartStopNotifier<T>} [start]
* @returns {Readable<T>}
*/
function readable(value, start) {
return { subscribe: writable(value, start).subscribe };
}
/**
* Create a `Writable` store that allows both updating and reading by subscription.
*
* @template T
* @param {T} [value] initial value
* @param {StartStopNotifier<T>} [start]
* @returns {Writable<T>}
*/
function writable(value, start = noop) {
/** @type {Unsubscriber | null} */
let stop = null;
/** @type {Set<SubscribeInvalidateTuple<T>>} */
const subscribers = /* @__PURE__ */ new Set();
/**
* @param {T} new_value
* @returns {void}
*/
function set(new_value) {
if (safe_not_equal(value, new_value)) {
value = new_value;
if (stop) {
const run_queue = !subscriber_queue.length;
for (const subscriber of subscribers) {
subscriber[1]();
subscriber_queue.push(subscriber, value);
}
if (run_queue) {
for (let i = 0; i < subscriber_queue.length; i += 2) subscriber_queue[i][0](subscriber_queue[i + 1]);
subscriber_queue.length = 0;
}
}
}
}
/**
* @param {Updater<T>} fn
* @returns {void}
*/
function update(fn) {
set(fn(value));
}
/**
* @param {Subscriber<T>} run
* @param {() => void} [invalidate]
* @returns {Unsubscriber}
*/
function subscribe(run, invalidate = noop) {
/** @type {SubscribeInvalidateTuple<T>} */
const subscriber = [run, invalidate];
subscribers.add(subscriber);
if (subscribers.size === 1) stop = start(set, update) || noop;
run(value);
return () => {
subscribers.delete(subscriber);
if (subscribers.size === 0 && stop) {
stop();
stop = null;
}
};
}
return {
set,
update,
subscribe
};
}
/**
* Derived value store by synchronizing one or more readable stores and
* applying an aggregation function over its input values.
*
* @template {Stores} S
* @template T
* @overload
* @param {S} stores
* @param {(values: StoresValues<S>, set: (value: T) => void, update: (fn: Updater<T>) => void) => Unsubscriber | void} fn
* @param {T} [initial_value]
* @returns {Readable<T>}
*/
/**
* Derived value store by synchronizing one or more readable stores and
* applying an aggregation function over its input values.
*
* @template {Stores} S
* @template T
* @overload
* @param {S} stores
* @param {(values: StoresValues<S>) => T} fn
* @param {T} [initial_value]
* @returns {Readable<T>}
*/
/**
* @template {Stores} S
* @template T
* @param {S} stores
* @param {Function} fn
* @param {T} [initial_value]
* @returns {Readable<T>}
*/
function derived(stores, fn, initial_value) {
const single = !Array.isArray(stores);
/** @type {Array<Readable<any>>} */
const stores_array = single ? [stores] : stores;
if (!stores_array.every(Boolean)) throw new Error("derived() expects stores as input, got a falsy value");
const auto = fn.length < 2;
return readable(initial_value, (set, update) => {
let started = false;
/** @type {T[]} */
const values = [];
let pending = 0;
let cleanup = noop;
const sync = () => {
if (pending) return;
cleanup();
const result = fn(single ? values[0] : values, set, update);
if (auto) set(result);
else cleanup = typeof result === "function" ? result : noop;
};
const unsubscribers = stores_array.map((store, i) => subscribe_to_store(store, (value) => {
values[i] = value;
pending &= ~(1 << i);
if (started) sync();
}, () => {
pending |= 1 << i;
}));
started = true;
sync();
return function stop() {
run_all(unsubscribers);
cleanup();
started = false;
};
});
}
/**
* Takes a store and returns a new one derived from the old one that is readable.
*
* @template T
* @param {Readable<T>} store - store to make readonly
* @returns {Readable<T>}
*/
function readonly(store) {
return { subscribe: store.subscribe.bind(store) };
}
/**
* Get the current value from a store by subscribing and immediately unsubscribing.
*
* @template T
* @param {Readable<T>} store
* @returns {T}
*/
function get(store) {
let value;
subscribe_to_store(store, (_) => value = _)();
return value;
}
export { writable as a, readonly as i, get as n, subscribe_to_store as o, readable as r, derived as t };

File diff suppressed because one or more lines are too long

4
node_modules/.vite/deps/svelte.js generated vendored
View File

@@ -1,4 +0,0 @@
import { $t as hasContext, Jt as createContext, Qt as getContext, Zt as getAllContexts, bt as fork, d as tick, f as untrack, in as setContext, u as settled, yt as flushSync } from "./runtime-BOFXI46e.js";
import { Ft as createRawSnippet, a as onDestroy, i as getAbortSignal, n as beforeUpdate, o as onMount, r as createEventDispatcher, s as hydratable, t as afterUpdate } from "./index-client-D0TavHuA.js";
import { h as mount, m as hydrate, y as unmount } from "./legacy-client-DZ46pveM.js";
export { afterUpdate, beforeUpdate, createContext, createEventDispatcher, createRawSnippet, flushSync, fork, getAbortSignal, getAllContexts, getContext, hasContext, hydratable, hydrate, mount, onDestroy, onMount, setContext, settled, tick, unmount, untrack };

View File

@@ -1,54 +0,0 @@
import { cubicOut } from "./svelte_easing.js";
// node_modules/svelte/src/animate/index.js
/** @import { FlipParams, AnimationConfig } from './public.js' */
/**
* The flip function calculates the start and end position of an element and animates between them, translating the x and y values.
* `flip` stands for [First, Last, Invert, Play](https://aerotwist.com/blog/flip-your-animations/).
*
* @param {Element} node
* @param {{ from: DOMRect; to: DOMRect }} fromTo
* @param {FlipParams} params
* @returns {AnimationConfig}
*/
function flip(node, { from, to }, params = {}) {
var { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;
var style = getComputedStyle(node);
var transform = style.transform === "none" ? "" : style.transform;
var [ox, oy] = style.transformOrigin.split(" ").map(parseFloat);
ox /= node.clientWidth;
oy /= node.clientHeight;
var zoom = get_zoom(node);
var sx = node.clientWidth / to.width / zoom;
var sy = node.clientHeight / to.height / zoom;
var fx = from.left + from.width * ox;
var fy = from.top + from.height * oy;
var tx = to.left + to.width * ox;
var ty = to.top + to.height * oy;
var dx = (fx - tx) * sx;
var dy = (fy - ty) * sy;
var dsx = from.width / to.width;
var dsy = from.height / to.height;
return {
delay,
duration: typeof duration === "function" ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,
easing,
css: (t, u) => {
return `transform: ${transform} translate(${u * dx}px, ${u * dy}px) scale(${t + u * dsx}, ${t + u * dsy});`;
}
};
}
/**
* @param {Element} element
*/
function get_zoom(element) {
if ("currentCSSZoom" in element) return element.currentCSSZoom;
/** @type {Element | null} */
var current = element;
var zoom = 1;
while (current !== null) {
zoom *= +getComputedStyle(current).zoom;
current = current.parentElement;
}
return zoom;
}
export { flip };

View File

@@ -1 +0,0 @@
{"version":3,"file":"svelte_animate.js","names":[],"sources":["../../svelte/src/animate/index.js"],"sourcesContent":["/** @import { FlipParams, AnimationConfig } from './public.js' */\nimport { cubicOut } from '../easing/index.js';\n\n/**\n * The flip function calculates the start and end position of an element and animates between them, translating the x and y values.\n * `flip` stands for [First, Last, Invert, Play](https://aerotwist.com/blog/flip-your-animations/).\n *\n * @param {Element} node\n * @param {{ from: DOMRect; to: DOMRect }} fromTo\n * @param {FlipParams} params\n * @returns {AnimationConfig}\n */\nexport function flip(node, { from, to }, params = {}) {\n\tvar { delay = 0, duration = (d) => Math.sqrt(d) * 120, easing = cubicOut } = params;\n\n\tvar style = getComputedStyle(node);\n\n\t// find the transform origin, expressed as a pair of values between 0 and 1\n\tvar transform = style.transform === 'none' ? '' : style.transform;\n\tvar [ox, oy] = style.transformOrigin.split(' ').map(parseFloat);\n\tox /= node.clientWidth;\n\toy /= node.clientHeight;\n\n\t// calculate effect of parent transforms and zoom\n\tvar zoom = get_zoom(node); // https://drafts.csswg.org/css-viewport/#effective-zoom\n\tvar sx = node.clientWidth / to.width / zoom;\n\tvar sy = node.clientHeight / to.height / zoom;\n\n\t// find the starting position of the transform origin\n\tvar fx = from.left + from.width * ox;\n\tvar fy = from.top + from.height * oy;\n\n\t// find the ending position of the transform origin\n\tvar tx = to.left + to.width * ox;\n\tvar ty = to.top + to.height * oy;\n\n\t// find the translation at the start of the transform\n\tvar dx = (fx - tx) * sx;\n\tvar dy = (fy - ty) * sy;\n\n\t// find the relative scale at the start of the transform\n\tvar dsx = from.width / to.width;\n\tvar dsy = from.height / to.height;\n\n\treturn {\n\t\tdelay,\n\t\tduration: typeof duration === 'function' ? duration(Math.sqrt(dx * dx + dy * dy)) : duration,\n\t\teasing,\n\t\tcss: (t, u) => {\n\t\t\tvar x = u * dx;\n\t\t\tvar y = u * dy;\n\t\t\tvar sx = t + u * dsx;\n\t\t\tvar sy = t + u * dsy;\n\n\t\t\treturn `transform: ${transform} translate(${x}px, ${y}px) scale(${sx}, ${sy});`;\n\t\t}\n\t};\n}\n\n/**\n * @param {Element} element\n */\nfunction get_zoom(element) {\n\tif ('currentCSSZoom' in element) {\n\t\treturn /** @type {number} */ (element.currentCSSZoom);\n\t}\n\n\t/** @type {Element | null} */\n\tvar current = element;\n\tvar zoom = 1;\n\n\twhile (current !== null) {\n\t\tzoom *= +getComputedStyle(current).zoom;\n\t\tcurrent = /** @type {Element | null} */ (current.parentElement);\n\t}\n\n\treturn zoom;\n}\n"],"mappings":";;;;;;;;;;;;AAYA,SAAgB,KAAK,MAAM,EAAE,MAAM,MAAM,SAAS,CAAC,GAAG;CACrD,IAAI,EAAE,QAAQ,GAAG,YAAY,MAAM,KAAK,KAAK,CAAC,IAAI,KAAK,SAAS,aAAa;CAE7E,IAAI,QAAQ,iBAAiB,IAAI;CAGjC,IAAI,YAAY,MAAM,cAAc,SAAS,KAAK,MAAM;CACxD,IAAI,CAAC,IAAI,MAAM,MAAM,gBAAgB,MAAM,GAAG,CAAC,CAAC,IAAI,UAAU;CAC9D,MAAM,KAAK;CACX,MAAM,KAAK;CAGX,IAAI,OAAO,SAAS,IAAI;CACxB,IAAI,KAAK,KAAK,cAAc,GAAG,QAAQ;CACvC,IAAI,KAAK,KAAK,eAAe,GAAG,SAAS;CAGzC,IAAI,KAAK,KAAK,OAAO,KAAK,QAAQ;CAClC,IAAI,KAAK,KAAK,MAAM,KAAK,SAAS;CAGlC,IAAI,KAAK,GAAG,OAAO,GAAG,QAAQ;CAC9B,IAAI,KAAK,GAAG,MAAM,GAAG,SAAS;CAG9B,IAAI,MAAM,KAAK,MAAM;CACrB,IAAI,MAAM,KAAK,MAAM;CAGrB,IAAI,MAAM,KAAK,QAAQ,GAAG;CAC1B,IAAI,MAAM,KAAK,SAAS,GAAG;CAE3B,OAAO;EACN;EACA,UAAU,OAAO,aAAa,aAAa,SAAS,KAAK,KAAK,KAAK,KAAK,KAAK,EAAE,CAAC,IAAI;EACpF;EACA,MAAM,GAAG,MAAM;GAMd,OAAO,cAAc,UAAU,aALvB,IAAI,GAKkC,MAJtC,IAAI,GAI0C,YAH7C,IAAI,IAAI,IAGoD,IAF5D,IAAI,IAAI,IAE2D;EAC7E;CACD;AACD;;;;AAKA,SAAS,SAAS,SAAS;CAC1B,IAAI,oBAAoB,SACvB,OAA8B,QAAQ;;CAIvC,IAAI,UAAU;CACd,IAAI,OAAO;CAEX,OAAO,YAAY,MAAM;EACxB,QAAQ,CAAC,iBAAiB,OAAO,CAAC,CAAC;EACnC,UAAyC,QAAQ;CAClD;CAEA,OAAO;AACR"}

View File

@@ -1 +0,0 @@
export { cn as createAttachmentKey, ln as fromAction } from "./index-client-D0TavHuA.js";

View File

@@ -1,298 +0,0 @@
// node_modules/svelte/src/easing/index.js
/**
* Returns value as is.
*
* @param {number} t
* @returns {number}
*/
function linear(t) {
return t;
}
/**
* Rebound effect on start and end of value range.
*
* @param {number} t
* @returns {number}
*/
function backInOut(t) {
const s = 2.5949095;
if ((t *= 2) < 1) return .5 * (t * t * (3.5949095 * t - s));
return .5 * ((t -= 2) * t * (3.5949095 * t + s) + 2);
}
/**
* Rebound effect on start.
*
* @param {number} t
* @returns {number}
*/
function backIn(t) {
return t * t * (2.70158 * t - 1.70158);
}
/**
* Rebound effect on end.
*
* @param {number} t
* @returns {number}
*/
function backOut(t) {
return --t * t * (2.70158 * t + 1.70158) + 1;
}
/**
* Bounce effect on end.
*
* @param {number} t
* @returns {number}
*/
function bounceOut(t) {
const a = 4 / 11;
const b = 8 / 11;
const c = 9 / 10;
const ca = 4356 / 361;
const cb = 35442 / 1805;
const cc = 16061 / 1805;
const t2 = t * t;
return t < a ? 7.5625 * t2 : t < b ? 9.075 * t2 - 9.9 * t + 3.4 : t < c ? ca * t2 - cb * t + cc : 10.8 * t * t - 20.52 * t + 10.72;
}
/**
* Bounce effect on start and end.
*
* @param {number} t
* @returns {number}
*/
function bounceInOut(t) {
return t < .5 ? .5 * (1 - bounceOut(1 - t * 2)) : .5 * bounceOut(t * 2 - 1) + .5;
}
/**
* Bounce effect on start.
*
* @param {number} t
* @returns {number}
*/
function bounceIn(t) {
return 1 - bounceOut(1 - t);
}
/**
* Circular effect, accelerate on start, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function circInOut(t) {
if ((t *= 2) < 1) return -.5 * (Math.sqrt(1 - t * t) - 1);
return .5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
}
/**
* Circular effect, accelerate on start.
*
* @param {number} t
* @returns {number}
*/
function circIn(t) {
return 1 - Math.sqrt(1 - t * t);
}
/**
* Circular effect, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function circOut(t) {
return Math.sqrt(1 - --t * t);
}
/**
* Cubic scaling, accelerate on start, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function cubicInOut(t) {
return t < .5 ? 4 * t * t * t : .5 * Math.pow(2 * t - 2, 3) + 1;
}
/**
* Cubic scaling, accelerate on start
*
* @param {number} t
* @returns {number}
*/
function cubicIn(t) {
return t * t * t;
}
/**
* Cubic scaling, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function cubicOut(t) {
const f = t - 1;
return f * f * f + 1;
}
/**
* Elastic effect on start and end.
*
* @param {number} t
* @returns {number}
*/
function elasticInOut(t) {
return t < .5 ? .5 * Math.sin(13 * Math.PI / 2 * 2 * t) * Math.pow(2, 10 * (2 * t - 1)) : .5 * Math.sin(-13 * Math.PI / 2 * (2 * t - 1 + 1)) * Math.pow(2, -10 * (2 * t - 1)) + 1;
}
/**
* Elastic effect on start.
*
* @param {number} t
* @returns {number}
*/
function elasticIn(t) {
return Math.sin(13 * t * Math.PI / 2) * Math.pow(2, 10 * (t - 1));
}
/**
* Elastic effect on end.
*
* @param {number} t
* @returns {number}
*/
function elasticOut(t) {
return Math.sin(-13 * (t + 1) * Math.PI / 2) * Math.pow(2, -10 * t) + 1;
}
/**
* Exponential effect on start and end.
*
* @param {number} t
* @returns {number}
*/
function expoInOut(t) {
return t === 0 || t === 1 ? t : t < .5 ? .5 * Math.pow(2, 20 * t - 10) : -.5 * Math.pow(2, 10 - t * 20) + 1;
}
/**
* Exponential effect on start.
*
* @param {number} t
* @returns {number}
*/
function expoIn(t) {
return t === 0 ? t : Math.pow(2, 10 * (t - 1));
}
/**
* Exponential effect on end.
*
* @param {number} t
* @returns {number}
*/
function expoOut(t) {
return t === 1 ? t : 1 - Math.pow(2, -10 * t);
}
/**
* Quadratic scaling, accelerate on start, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function quadInOut(t) {
t /= .5;
if (t < 1) return .5 * t * t;
t--;
return -.5 * (t * (t - 2) - 1);
}
/**
* Quadratic scaling, accelerate on start.
*
* @param {number} t
* @returns {number}
*/
function quadIn(t) {
return t * t;
}
/**
* Quadratic scaling, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function quadOut(t) {
return -t * (t - 2);
}
/**
* Quartic scaling, accelerate on start, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function quartInOut(t) {
return t < .5 ? 8 * Math.pow(t, 4) : -8 * Math.pow(t - 1, 4) + 1;
}
/**
* Quartic scaling, accelerate on start.
*
* @param {number} t
* @returns {number}
*/
function quartIn(t) {
return Math.pow(t, 4);
}
/**
* Quartic scaling, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function quartOut(t) {
return Math.pow(t - 1, 3) * (1 - t) + 1;
}
/**
* Quintic scaling, accelerate on start, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function quintInOut(t) {
if ((t *= 2) < 1) return .5 * t * t * t * t * t;
return .5 * ((t -= 2) * t * t * t * t + 2);
}
/**
* Quintic scaling, accelerate on start.
*
* @param {number} t
* @returns {number}
*/
function quintIn(t) {
return t * t * t * t * t;
}
/**
* Quintic scaling, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function quintOut(t) {
return --t * t * t * t * t + 1;
}
/**
* Sinusoidal effect, accelerate on start, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function sineInOut(t) {
return -.5 * (Math.cos(Math.PI * t) - 1);
}
/**
* Sinusoidal effect, accelerate on start.
*
* @param {number} t
* @returns {number}
*/
function sineIn(t) {
const v = Math.cos(t * Math.PI * .5);
if (Math.abs(v) < 1e-14) return 1;
else return 1 - v;
}
/**
* Sinusoidal effect, decelerate towards end.
*
* @param {number} t
* @returns {number}
*/
function sineOut(t) {
return Math.sin(t * Math.PI / 2);
}
export { backIn, backInOut, backOut, bounceIn, bounceInOut, bounceOut, circIn, circInOut, circOut, cubicIn, cubicInOut, cubicOut, elasticIn, elasticInOut, elasticOut, expoIn, expoInOut, expoOut, linear, quadIn, quadInOut, quadOut, quartIn, quartInOut, quartOut, quintIn, quintInOut, quintOut, sineIn, sineInOut, sineOut };

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
export { c as on } from "./events-21uQP6Br.js";

View File

@@ -1,2 +0,0 @@
// node_modules/svelte/src/internal/index.js
throw new Error(`Your application, or one of its dependencies, imported from 'svelte/internal', which was a private module used by Svelte 4 components that no longer exists in Svelte 5. It is not intended to be public API. If you're a library author and you used 'svelte/internal' deliberately, please raise an issue on https://github.com/sveltejs/svelte/issues detailing your use case.`);

View File

@@ -1 +0,0 @@
{"version":3,"file":"svelte_internal.js","names":[],"sources":["../../svelte/src/internal/index.js"],"sourcesContent":["// TODO we may, on a best-effort basis, reimplement some of the legacy private APIs here so that certain libraries continue to work. Those APIs will be marked as deprecated (and should noisily warn the user) and will be removed in a future version of Svelte.\n\nthrow new Error(\n\t`Your application, or one of its dependencies, imported from 'svelte/internal', which was a private module used by Svelte 4 components that no longer exists in Svelte 5. It is not intended to be public API. If you're a library author and you used 'svelte/internal' deliberately, please raise an issue on https://github.com/sveltejs/svelte/issues detailing your use case.`\n);\n"],"mappings":";AAEA,MAAM,IAAI,MACT,mXACD"}

View File

@@ -1,5 +0,0 @@
import { $ as only_child, $n as NAMESPACE_SVG, An as invalid_default_snippet, At as run, B as $window, C as effect_root, Ct as async_derived, E as legacy_pre_effect_reset, Et as user_derived, F as user_effect, Ht as remove_textarea_child, I as user_pre_effect, It as wait, Jn as FILENAME, Kt as add_svelte_meta, Lr as to_array, Mt as save, Nr as noop, Nt as track_reactivity_loss, P as template_effect, Pt as unsave, S as effect, T as legacy_pre_effect, Tr as fallback, Tt as derived_safe_equal, Un as reset, V as child, Vn as next, Vt as autofocus, Yn as HMR, a as get, d as tick, dn as trace, dt as set, f as untrack, fn as snapshot, h as aborted, ht as update_pre, i as deep_read_state, it as strict_equals, j as render_effect, jt as run_after_blockers, kt as for_await_track_reactivity_loss, ln as tag, lt as mutable_source, m as invalidate_inner_signals, mt as update, nn as pop, nt as sibling, ot as proxy, pt as state, q as first_child, r as deep_read, rn as push, rt as equals, s as safe_get, t as active_effect, un as tag_proxy, ut as mutate, vt as eager, w as effect_tracking, wr as exclude_from_object, y as deferred_template_effect, yt as flushSync, z as $document, zn as hydrate_template } from "./runtime-BOFXI46e.js";
import { $ as bind_files, $t as inspect, A as init, At as animation, B as bind_online, Bt as validate_store, C as store_unsub, Ct as attr, D as bubble_event, Dt as append_styles, E as add_legacy_event_listener, Et as action, F as bind_property, G as bind_paused, Gt as each, H as bind_current_time, Ht as sanitize_slots, I as bind_this, It as snippet, J as bind_ready_state, Jt as key, K as bind_playback_rate, Kt as index, L as bind_element_size, Lt as wrap_snippet, M as bind_window_size, N as bind_content_editable, Nt as raf, O as reactive_import, Ot as head, P as bind_focused, Pt as component, Q as bind_checked, Qt as async, R as bind_resize_observer, Rt as prevent_snippet_stringification, S as store_set, St as set_class, T as update_store, Tt as attach, U as bind_ended, Ut as slot, V as bind_buffered, Vt as validate_void_dynamic_element, W as bind_muted, Wt as html, X as bind_seeking, Xt as await_block, Y as bind_seekable, Yt as if_block, Z as bind_volume, Zt as validate_snippet_args, _ as invalidate_store, _t as init_select, an as cleanup_styles, at as CLASS, b as store_get, bt as set_selected, c as log_if_contains_state, cn as createAttachmentKey, ct as remove_input_defaults, d as legacy_rest_props, dt as set_custom_element_data, en as check_target, et as bind_group, f as prop, ft as set_default_checked, g as update_prop, gt as bind_select_value, h as update_pre_prop, ht as set_xlink_attribute, in as add_locations, it as selectedcontent, j as bind_window_scroll, jt as transition, k as update_legacy_props, kt as element, l as create_custom_element, lt as set_attribute, m as spread_props, mt as set_value, nn as create_ownership_validator, nt as bind_active_element, on as assign, ot as STYLE, p as rest_props, pt as set_default_value, q as bind_played, qt as css_props, rn as hmr, rt as customizable_select, sn as assign_async, st as attribute_effect, tn as legacy_api, tt as bind_value, u as validate_binding, ut as set_checked, v as mark_store_binding, vt as select_option, w as update_pre_store, wt as clsx, x as store_mutate, xt as set_style, y as setup_stores, yt as set_default_select_value, z as bind_prop, zt as validate_dynamic_element_tag } from "./index-client-D0TavHuA.js";
import { A as text, D as from_svg, E as from_mathml, O as from_tree, S as append, T as from_html, _ as set_text, b as boundary, d as stopImmediatePropagation, f as stopPropagation, j as with_script, k as props_id, l as preventDefault, p as trusted, s as once, u as self, w as comment, x as pending } from "./legacy-client-DZ46pveM.js";
import { a as delegated, i as delegate, l as replay_events, n as apply, o as event } from "./events-21uQP6Br.js";
export { CLASS, FILENAME, HMR, NAMESPACE_SVG, STYLE, aborted, action, active_effect, add_legacy_event_listener, add_locations, add_svelte_meta, animation, append, append_styles, apply, assign, assign_async, async, async_derived, attach, createAttachmentKey as attachment, attr, attribute_effect, autofocus, await_block as await, bind_active_element, bind_buffered, bind_checked, bind_content_editable, bind_current_time, bind_element_size, bind_ended, bind_files, bind_focused, bind_group, bind_muted, bind_online, bind_paused, bind_playback_rate, bind_played, bind_prop, bind_property, bind_ready_state, bind_resize_observer, bind_seekable, bind_seeking, bind_select_value, bind_this, bind_value, bind_volume, bind_window_scroll, bind_window_size, boundary, bubble_event, check_target, child, cleanup_styles, clsx, comment, component, create_custom_element, create_ownership_validator, css_props, customizable_select, deep_read, deep_read_state, deferred_template_effect, delegate, delegated, user_derived as derived, derived_safe_equal, $document as document, each, eager, effect, effect_root, effect_tracking, element, equals, event, exclude_from_object, fallback, first_child, flushSync as flush, for_await_track_reactivity_loss, from_html, from_mathml, from_svg, from_tree, get, head, hmr, html, hydrate_template, if_block as if, index, init, init_select, inspect, invalid_default_snippet, invalidate_inner_signals, invalidate_store, key, legacy_api, legacy_pre_effect, legacy_pre_effect_reset, legacy_rest_props, log_if_contains_state, mark_store_binding, mutable_source, mutate, next, noop, once, only_child, pending, pop, preventDefault, prevent_snippet_stringification, prop, props_id, proxy, push, raf, reactive_import, remove_input_defaults, remove_textarea_child, render_effect, replay_events, reset, rest_props, run, run_after_blockers, safe_get, sanitize_slots, save, select_option, selectedcontent, self, set, set_attribute, set_checked, set_class, set_custom_element_data, set_default_checked, set_default_select_value, set_default_value, set_selected, set_style, set_text, set_value, set_xlink_attribute, setup_stores, sibling, slot, snapshot, snippet, spread_props, state, stopImmediatePropagation, stopPropagation, store_get, store_mutate, store_set, store_unsub, strict_equals, tag, tag_proxy, template_effect, text, tick, to_array, trace, track_reactivity_loss, transition, trusted, unsave, untrack, update, update_legacy_props, update_pre, update_pre_prop, update_pre_store, update_prop, update_store, user_effect, user_pre_effect, validate_binding, validate_dynamic_element_tag, validate_snippet_args, validate_store, validate_void_dynamic_element, wait, $window as window, with_script, wrap_snippet };

View File

@@ -1,2 +0,0 @@
// node_modules/svelte/src/internal/disclose-version.js
if (typeof window !== "undefined") ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");

View File

@@ -1 +0,0 @@
{"version":3,"file":"svelte_internal_disclose-version.js","names":[],"sources":["../../svelte/src/internal/disclose-version.js"],"sourcesContent":["import { PUBLIC_VERSION } from '../version.js';\n\nif (typeof window !== 'undefined') {\n\t// @ts-expect-error\n\t((window.__svelte ??= {}).v ??= new Set()).add(PUBLIC_VERSION);\n}\n"],"mappings":";AAEA,IAAI,OAAO,WAAW,aAErB,CAAC,CAAC,OAAO,aAAa,CAAC,EAAA,CAAG,sBAAM,IAAI,IAAI,EAAA,CAAG,IAAA,GAAkB"}

View File

@@ -1,3 +0,0 @@
import { n as enable_async_mode_flag } from "./flags-qfBdqUK7.js";
// node_modules/svelte/src/internal/flags/async.js
enable_async_mode_flag();

View File

@@ -1 +0,0 @@
{"version":3,"file":"svelte_internal_flags_async.js","names":[],"sources":["../../svelte/src/internal/flags/async.js"],"sourcesContent":["import { enable_async_mode_flag } from './index.js';\n\nenable_async_mode_flag();\n"],"mappings":";;AAEA,uBAAuB"}

View File

@@ -1,3 +0,0 @@
import { r as enable_legacy_mode_flag } from "./flags-qfBdqUK7.js";
// node_modules/svelte/src/internal/flags/legacy.js
enable_legacy_mode_flag();

View File

@@ -1 +0,0 @@
{"version":3,"file":"svelte_internal_flags_legacy.js","names":[],"sources":["../../svelte/src/internal/flags/legacy.js"],"sourcesContent":["import { enable_legacy_mode_flag } from './index.js';\n\nenable_legacy_mode_flag();\n"],"mappings":";;AAEA,wBAAwB"}

View File

@@ -1,3 +0,0 @@
import { i as enable_tracing_mode_flag } from "./flags-qfBdqUK7.js";
// node_modules/svelte/src/internal/flags/tracing.js
enable_tracing_mode_flag();

View File

@@ -1 +0,0 @@
{"version":3,"file":"svelte_internal_flags_tracing.js","names":[],"sources":["../../svelte/src/internal/flags/tracing.js"],"sourcesContent":["import { enable_tracing_mode_flag } from './index.js';\n\nenable_tracing_mode_flag();\n"],"mappings":";;AAEA,yBAAyB"}

View File

@@ -1 +0,0 @@
export { t as asClassComponent, n as createBubbler, r as createClassComponent, i as handlers, o as nonpassive, s as once, c as passive, l as preventDefault, a as run, u as self, d as stopImmediatePropagation, f as stopPropagation, p as trusted } from "./legacy-client-DZ46pveM.js";

View File

@@ -1,558 +0,0 @@
import { t as MediaQuery } from "./index-client-CF5gpQfx.js";
import { a as writable } from "./shared-CBkF5T1F.js";
import { Mt as loop, Nt as raf } from "./index-client-D0TavHuA.js";
import { Nr as noop, Sr as deferred, a as get, dt as set, j as render_effect, ln as tag, pt as state } from "./runtime-BOFXI46e.js";
import "./esm-env-D8Yi5ac9.js";
import { linear } from "./svelte_easing.js";
// node_modules/svelte/src/motion/utils.js
/**
* @param {any} obj
* @returns {obj is Date}
*/
function is_date(obj) {
return Object.prototype.toString.call(obj) === "[object Date]";
}
// node_modules/svelte/src/motion/spring.js
/** @import { Task } from '#client' */
/** @import { TickContext } from './private.js' */
/** @import { Spring as SpringStore, SpringOptions, SpringUpdateOptions } from './public.js' */
/**
* @template T
* @param {TickContext} ctx
* @param {T} last_value
* @param {T} current_value
* @param {T} target_value
* @returns {T}
*/
function tick_spring(ctx, last_value, current_value, target_value) {
if (typeof current_value === "number" || is_date(current_value)) {
const delta = target_value - current_value;
const velocity = (current_value - last_value) / (ctx.dt || 1 / 60);
const d = (velocity + (ctx.opts.stiffness * delta - ctx.opts.damping * velocity) * ctx.inv_mass) * ctx.dt;
if (Math.abs(d) < ctx.opts.precision && Math.abs(delta) < ctx.opts.precision) return target_value;
else {
ctx.settled = false;
return is_date(current_value) ? new Date(current_value.getTime() + d) : current_value + d;
}
} else if (Array.isArray(current_value)) return current_value.map((_, i) => tick_spring(ctx, last_value[i], current_value[i], target_value[i]));
else if (typeof current_value === "object") {
const next_value = {};
for (const k in current_value) next_value[k] = tick_spring(ctx, last_value[k], current_value[k], target_value[k]);
return next_value;
} else throw new Error(`Cannot spring ${typeof current_value} values`);
}
/**
* The spring function in Svelte creates a store whose value is animated, with a motion that simulates the behavior of a spring. This means when the value changes, instead of transitioning at a steady rate, it "bounces" like a spring would, depending on the physics parameters provided. This adds a level of realism to the transitions and can enhance the user experience.
*
* @deprecated Use [`Spring`](https://svelte.dev/docs/svelte/svelte-motion#Spring) instead
* @template [T=any]
* @param {T} [value]
* @param {SpringOptions} [opts]
* @returns {SpringStore<T>}
*/
function spring(value, opts = {}) {
const store = writable(value);
const { stiffness = .15, damping = .8, precision = .01 } = opts;
/** @type {number} */
let last_time;
/** @type {Task | null} */
let task;
/** @type {object} */
let current_token;
let last_value = value;
let target_value = value;
let inv_mass = 1;
let inv_mass_recovery_rate = 0;
let cancel_task = false;
/**
* @param {T} new_value
* @param {SpringUpdateOptions} opts
* @returns {Promise<void>}
*/
function set(new_value, opts = {}) {
target_value = new_value;
const token = current_token = {};
if (value == null || opts.hard || spring.stiffness >= 1 && spring.damping >= 1) {
cancel_task = true;
last_time = raf.now();
last_value = new_value;
store.set(value = target_value);
return Promise.resolve();
} else if (opts.soft) {
inv_mass_recovery_rate = 1 / ((opts.soft === true ? .5 : +opts.soft) * 60);
inv_mass = 0;
}
if (!task) {
last_time = raf.now();
cancel_task = false;
task = loop((now) => {
if (cancel_task) {
cancel_task = false;
task = null;
return false;
}
inv_mass = Math.min(inv_mass + inv_mass_recovery_rate, 1);
const elapsed = Math.min(now - last_time, 1e3 / 30);
/** @type {TickContext} */
const ctx = {
inv_mass,
opts: spring,
settled: true,
dt: elapsed * 60 / 1e3
};
const next_value = tick_spring(ctx, last_value, value, target_value);
last_time = now;
last_value = value;
store.set(value = next_value);
if (ctx.settled) task = null;
return !ctx.settled;
});
}
return new Promise((fulfil) => {
/** @type {Task} */ task.promise.then(() => {
if (token === current_token) fulfil();
});
});
}
/** @type {SpringStore<T>} */
const spring = {
set,
update: (fn, opts) => set(fn(target_value, value), opts),
subscribe: store.subscribe,
stiffness,
damping,
precision
};
return spring;
}
/**
* A wrapper for a value that behaves in a spring-like fashion. Changes to `spring.target` will cause `spring.current` to
* move towards it over time, taking account of the `spring.stiffness` and `spring.damping` parameters.
*
* ```svelte
* <script>
* import { Spring } from 'svelte/motion';
*
* const spring = new Spring(0);
* <\/script>
*
* <input type="range" bind:value={spring.target} />
* <input type="range" bind:value={spring.current} disabled />
* ```
* @template T
* @since 5.8.0
*/
var Spring = class Spring {
#stiffness = /* @__PURE__ */ state(.15);
#damping = /* @__PURE__ */ state(.8);
#precision = /* @__PURE__ */ state(.01);
#current;
#target;
#last_value = void 0;
#last_time = 0;
#inverse_mass = 1;
#momentum = 0;
/** @type {import('../internal/client/types').Task | null} */
#task = null;
/** @type {ReturnType<typeof deferred> | null} */
#deferred = null;
/**
* @param {T} value
* @param {SpringOptions} [options]
*/
constructor(value, options = {}) {
this.#current = tag(/* @__PURE__ */ state(value), "Spring.current");
this.#target = tag(/* @__PURE__ */ state(value), "Spring.target");
if (typeof options.stiffness === "number") this.#stiffness.v = clamp(options.stiffness, 0, 1);
if (typeof options.damping === "number") this.#damping.v = clamp(options.damping, 0, 1);
if (typeof options.precision === "number") this.#precision.v = options.precision;
tag(this.#stiffness, "Spring.stiffness");
tag(this.#damping, "Spring.damping");
tag(this.#precision, "Spring.precision");
tag(this.#current, "Spring.current");
tag(this.#target, "Spring.target");
}
/**
* Create a spring whose value is bound to the return value of `fn`. This must be called
* inside an effect root (for example, during component initialisation).
*
* ```svelte
* <script>
* import { Spring } from 'svelte/motion';
*
* let { number } = $props();
*
* const spring = Spring.of(() => number);
* <\/script>
* ```
* @template U
* @param {() => U} fn
* @param {SpringOptions} [options]
*/
static of(fn, options) {
const spring = new Spring(fn(), options);
render_effect(() => {
spring.set(fn());
});
return spring;
}
/** @param {T} value */
#update(value) {
set(this.#target, value);
this.#current.v ??= value;
this.#last_value ??= this.#current.v;
if (!this.#task) {
this.#last_time = raf.now();
var inv_mass_recovery_rate = 1e3 / (this.#momentum * 60);
this.#task ??= loop((now) => {
this.#inverse_mass = Math.min(this.#inverse_mass + inv_mass_recovery_rate, 1);
const elapsed = Math.min(now - this.#last_time, 1e3 / 30);
/** @type {import('./private').TickContext} */
const ctx = {
inv_mass: this.#inverse_mass,
opts: {
stiffness: this.#stiffness.v,
damping: this.#damping.v,
precision: this.#precision.v
},
settled: true,
dt: elapsed * 60 / 1e3
};
var next = tick_spring(ctx, this.#last_value, this.#current.v, this.#target.v);
this.#last_value = this.#current.v;
this.#last_time = now;
set(this.#current, next);
if (ctx.settled) this.#task = null;
return !ctx.settled;
});
}
return this.#task.promise;
}
/**
* Sets `spring.target` to `value` and returns a `Promise` that resolves if and when `spring.current` catches up to it.
*
* If `options.instant` is `true`, `spring.current` immediately matches `spring.target`.
*
* If `options.preserveMomentum` is provided, the spring will continue on its current trajectory for
* the specified number of milliseconds. This is useful for things like 'fling' gestures.
*
* @param {T} value
* @param {SpringUpdateOptions} [options]
*/
set(value, options) {
this.#deferred?.reject(/* @__PURE__ */ new Error("Aborted"));
if (options?.instant || this.#current.v === void 0) {
this.#task?.abort();
this.#task = null;
set(this.#current, set(this.#target, value));
this.#last_value = value;
return Promise.resolve();
}
if (options?.preserveMomentum) {
this.#inverse_mass = 0;
this.#momentum = options.preserveMomentum;
}
var d = this.#deferred = deferred();
d.promise.catch(noop);
this.#update(value).then(() => {
if (d !== this.#deferred) return;
d.resolve(void 0);
});
return d.promise;
}
get current() {
return get(this.#current);
}
get damping() {
return get(this.#damping);
}
set damping(v) {
set(this.#damping, clamp(v, 0, 1));
}
get precision() {
return get(this.#precision);
}
set precision(v) {
set(this.#precision, v);
}
get stiffness() {
return get(this.#stiffness);
}
set stiffness(v) {
set(this.#stiffness, clamp(v, 0, 1));
}
get target() {
return get(this.#target);
}
set target(v) {
this.set(v);
}
};
/**
* @param {number} n
* @param {number} min
* @param {number} max
*/
function clamp(n, min, max) {
return Math.max(min, Math.min(max, n));
}
// node_modules/svelte/src/motion/tweened.js
/** @import { Task } from '../internal/client/types' */
/** @import { Tweened, TweenOptions } from './public' */
/**
* @template T
* @param {T} a
* @param {T} b
* @returns {(t: number) => T}
*/
function get_interpolator(a, b) {
if (a === b || a !== a) return () => a;
const type = typeof a;
if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) throw new Error("Cannot interpolate values of different type");
if (Array.isArray(a)) {
const arr = b.map((bi, i) => {
return get_interpolator(
/** @type {Array<any>} */
a[i],
bi
);
});
return (t) => arr.map((fn) => fn(t));
}
if (type === "object") {
if (!a || !b) throw new Error("Object cannot be null");
if (is_date(a) && is_date(b)) {
const an = a.getTime();
const delta = b.getTime() - an;
return (t) => new Date(an + t * delta);
}
const keys = Object.keys(b);
/** @type {Record<string, (t: number) => T>} */
const interpolators = {};
keys.forEach((key) => {
interpolators[key] = get_interpolator(a[key], b[key]);
});
return (t) => {
/** @type {Record<string, any>} */
const result = {};
keys.forEach((key) => {
result[key] = interpolators[key](t);
});
return result;
};
}
if (type === "number") {
const delta = b - a;
return (t) => a + t * delta;
}
return () => b;
}
/**
* A tweened store in Svelte is a special type of store that provides smooth transitions between state values over time.
*
* @deprecated Use [`Tween`](https://svelte.dev/docs/svelte/svelte-motion#Tween) instead
* @template T
* @param {T} [value]
* @param {TweenOptions<T>} [defaults]
* @returns {Tweened<T>}
*/
function tweened(value, defaults = {}) {
const store = writable(value);
/** @type {Task} */
let task;
let target_value = value;
/**
* @param {T} new_value
* @param {TweenOptions<T>} [opts]
*/
function set(new_value, opts) {
target_value = new_value;
if (value == null) {
store.set(value = new_value);
return Promise.resolve();
}
/** @type {Task | null} */
let previous_task = task;
let started = false;
let { delay = 0, duration = 400, easing = linear, interpolate = get_interpolator } = {
...defaults,
...opts
};
if (duration === 0) {
if (previous_task) {
previous_task.abort();
previous_task = null;
}
store.set(value = target_value);
return Promise.resolve();
}
const start = raf.now() + delay;
/** @type {(t: number) => T} */
let fn;
task = loop((now) => {
if (now < start) return true;
if (!started) {
fn = interpolate(value, new_value);
if (typeof duration === "function") duration = duration(value, new_value);
started = true;
}
if (previous_task) {
previous_task.abort();
previous_task = null;
}
const elapsed = now - start;
if (elapsed > duration) {
store.set(value = new_value);
return false;
}
store.set(value = fn(easing(elapsed / duration)));
return true;
});
return task.promise;
}
return {
set,
update: (fn, opts) => set(fn(target_value, value), opts),
subscribe: store.subscribe
};
}
/**
* A wrapper for a value that tweens smoothly to its target value. Changes to `tween.target` will cause `tween.current` to
* move towards it over time, taking account of the `delay`, `duration` and `easing` options.
*
* ```svelte
* <script>
* import { Tween } from 'svelte/motion';
*
* const tween = new Tween(0);
* <\/script>
*
* <input type="range" bind:value={tween.target} />
* <input type="range" bind:value={tween.current} disabled />
* ```
* @template T
* @since 5.8.0
*/
var Tween = class Tween {
#current;
#target;
/** @type {TweenOptions<T>} */
#defaults;
/** @type {import('../internal/client/types').Task | null} */
#task = null;
/**
* @param {T} value
* @param {TweenOptions<T>} options
*/
constructor(value, options = {}) {
this.#current = /* @__PURE__ */ state(value);
this.#target = /* @__PURE__ */ state(value);
this.#defaults = options;
tag(this.#current, "Tween.current");
tag(this.#target, "Tween.target");
}
/**
* Create a tween whose value is bound to the return value of `fn`. This must be called
* inside an effect root (for example, during component initialisation).
*
* ```svelte
* <script>
* import { Tween } from 'svelte/motion';
*
* let { number } = $props();
*
* const tween = Tween.of(() => number);
* <\/script>
* ```
* @template U
* @param {() => U} fn
* @param {TweenOptions<U>} [options]
*/
static of(fn, options) {
const tween = new Tween(fn(), options);
render_effect(() => {
tween.set(fn());
});
return tween;
}
/**
* Sets `tween.target` to `value` and returns a `Promise` that resolves if and when `tween.current` catches up to it.
*
* If `options` are provided, they will override the tween's defaults.
* @param {T} value
* @param {TweenOptions<T>} [options]
* @returns
*/
set(value, options) {
set(this.#target, value);
let { delay = 0, duration = 400, easing = linear, interpolate = get_interpolator } = {
...this.#defaults,
...options
};
if (duration === 0) {
this.#task?.abort();
set(this.#current, value);
return Promise.resolve();
}
const start = raf.now() + delay;
/** @type {(t: number) => T} */
let fn;
let started = false;
let previous_task = this.#task;
this.#task = loop((now) => {
if (now < start) return true;
if (!started) {
started = true;
const prev = this.#current.v;
fn = interpolate(prev, value);
if (typeof duration === "function") duration = duration(prev, value);
previous_task?.abort();
previous_task = null;
}
const elapsed = now - start;
if (elapsed > duration) {
set(this.#current, value);
return false;
}
set(this.#current, fn(easing(elapsed / duration)));
return true;
});
return this.#task.promise;
}
get current() {
return get(this.#current);
}
get target() {
return get(this.#target);
}
set target(v) {
this.set(v);
}
};
// node_modules/svelte/src/motion/index.js
/**
* A [media query](https://svelte.dev/docs/svelte/svelte-reactivity#MediaQuery) that matches if the user [prefers reduced motion](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion).
*
* ```svelte
* <script>
* import { prefersReducedMotion } from 'svelte/motion';
* import { fly } from 'svelte/transition';
*
* let visible = $state(false);
* <\/script>
*
* <button onclick={() => visible = !visible}>
* toggle
* </button>
*
* {#if visible}
* <p transition:fly={{ y: prefersReducedMotion.current ? 0 : 200 }}>
* flies in, unless the user prefers reduced motion
* </p>
* {/if}
* ```
* @type {MediaQuery}
* @since 5.7.0
*/
var prefersReducedMotion = /*@__PURE__*/ new MediaQuery("(prefers-reduced-motion: reduce)");
export { Spring, Tween, prefersReducedMotion, spring, tweened };

File diff suppressed because one or more lines are too long

View File

@@ -1,15 +0,0 @@
// node_modules/clsx/dist/clsx.mjs
function r(e) {
var t, f, n = "";
if ("string" == typeof e || "number" == typeof e) n += e;
else if ("object" == typeof e) if (Array.isArray(e)) {
var o = e.length;
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
} else for (f in e) e[f] && (n && (n += " "), n += f);
return n;
}
function clsx() {
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
return n;
}
export { clsx, clsx as default };

Some files were not shown because too many files have changed in this diff Show More