init
This commit is contained in:
Vendored
+167
@@ -0,0 +1,167 @@
|
||||
|
||||
// this file is generated — do not edit it
|
||||
|
||||
|
||||
/// <reference types="@sveltejs/kit" />
|
||||
|
||||
/**
|
||||
* Environment variables [loaded by Vite](https://vitejs.dev/guide/env-and-mode.html#env-files) from `.env` files and `process.env`. Like [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), this module cannot be imported into client-side code. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured).
|
||||
*
|
||||
* _Unlike_ [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), the values exported from this module are statically injected into your bundle at build time, enabling optimisations like dead code elimination.
|
||||
*
|
||||
* ```ts
|
||||
* import { API_KEY } from '$env/static/private';
|
||||
* ```
|
||||
*
|
||||
* Note that all environment variables referenced in your code should be declared (for example in an `.env` file), even if they don't have a value until the app is deployed:
|
||||
*
|
||||
* ```
|
||||
* MY_FEATURE_FLAG=""
|
||||
* ```
|
||||
*
|
||||
* You can override `.env` values from the command line like so:
|
||||
*
|
||||
* ```sh
|
||||
* MY_FEATURE_FLAG="enabled" npm run dev
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/static/private' {
|
||||
export const MANPATH: string;
|
||||
export const GHOSTTY_RESOURCES_DIR: string;
|
||||
export const TERM_PROGRAM: string;
|
||||
export const NODE: string;
|
||||
export const SHELL: string;
|
||||
export const TERM: string;
|
||||
export const HOMEBREW_REPOSITORY: string;
|
||||
export const TMPDIR: string;
|
||||
export const TERM_PROGRAM_VERSION: string;
|
||||
export const npm_config_local_prefix: string;
|
||||
export const USER: string;
|
||||
export const COMMAND_MODE: string;
|
||||
export const SSH_AUTH_SOCK: string;
|
||||
export const __CF_USER_TEXT_ENCODING: string;
|
||||
export const npm_execpath: string;
|
||||
export const PATH: string;
|
||||
export const npm_package_json: string;
|
||||
export const _: string;
|
||||
export const LaunchInstanceID: string;
|
||||
export const GHOSTTY_SHELL_FEATURES: string;
|
||||
export const __CFBundleIdentifier: string;
|
||||
export const npm_command: string;
|
||||
export const PWD: string;
|
||||
export const npm_lifecycle_event: string;
|
||||
export const npm_package_name: string;
|
||||
export const LANG: string;
|
||||
export const XPC_FLAGS: string;
|
||||
export const npm_package_version: string;
|
||||
export const XPC_SERVICE_NAME: string;
|
||||
export const HOME: string;
|
||||
export const SHLVL: string;
|
||||
export const TERMINFO: string;
|
||||
export const HOMEBREW_PREFIX: string;
|
||||
export const LOGNAME: string;
|
||||
export const npm_lifecycle_script: string;
|
||||
export const XDG_DATA_DIRS: string;
|
||||
export const GHOSTTY_BIN_DIR: string;
|
||||
export const npm_config_user_agent: string;
|
||||
export const INFOPATH: string;
|
||||
export const HOMEBREW_CELLAR: string;
|
||||
export const OSLogRateLimit: string;
|
||||
export const SECURITYSESSIONID: string;
|
||||
export const npm_node_execpath: string;
|
||||
export const COLORTERM: string;
|
||||
export const NODE_ENV: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to [`$env/static/private`](https://svelte.dev/docs/kit/$env-static-private), except that it only includes environment variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
||||
*
|
||||
* Values are replaced statically at build time.
|
||||
*
|
||||
* ```ts
|
||||
* import { PUBLIC_BASE_URL } from '$env/static/public';
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/static/public' {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/main/packages/adapter-node) (or running [`vite preview`](https://svelte.dev/docs/kit/cli)), this is equivalent to `process.env`. This module only includes variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) _and do_ start with [`config.kit.env.privatePrefix`](https://svelte.dev/docs/kit/configuration#env) (if configured).
|
||||
*
|
||||
* This module cannot be imported into client-side code.
|
||||
*
|
||||
* ```ts
|
||||
* import { env } from '$env/dynamic/private';
|
||||
* console.log(env.DEPLOYMENT_SPECIFIC_VARIABLE);
|
||||
* ```
|
||||
*
|
||||
* > [!NOTE] In `dev`, `$env/dynamic` always includes environment variables from `.env`. In `prod`, this behavior will depend on your adapter.
|
||||
*/
|
||||
declare module '$env/dynamic/private' {
|
||||
export const env: {
|
||||
MANPATH: string;
|
||||
GHOSTTY_RESOURCES_DIR: string;
|
||||
TERM_PROGRAM: string;
|
||||
NODE: string;
|
||||
SHELL: string;
|
||||
TERM: string;
|
||||
HOMEBREW_REPOSITORY: string;
|
||||
TMPDIR: string;
|
||||
TERM_PROGRAM_VERSION: string;
|
||||
npm_config_local_prefix: string;
|
||||
USER: string;
|
||||
COMMAND_MODE: string;
|
||||
SSH_AUTH_SOCK: string;
|
||||
__CF_USER_TEXT_ENCODING: string;
|
||||
npm_execpath: string;
|
||||
PATH: string;
|
||||
npm_package_json: string;
|
||||
_: string;
|
||||
LaunchInstanceID: string;
|
||||
GHOSTTY_SHELL_FEATURES: string;
|
||||
__CFBundleIdentifier: string;
|
||||
npm_command: string;
|
||||
PWD: string;
|
||||
npm_lifecycle_event: string;
|
||||
npm_package_name: string;
|
||||
LANG: string;
|
||||
XPC_FLAGS: string;
|
||||
npm_package_version: string;
|
||||
XPC_SERVICE_NAME: string;
|
||||
HOME: string;
|
||||
SHLVL: string;
|
||||
TERMINFO: string;
|
||||
HOMEBREW_PREFIX: string;
|
||||
LOGNAME: string;
|
||||
npm_lifecycle_script: string;
|
||||
XDG_DATA_DIRS: string;
|
||||
GHOSTTY_BIN_DIR: string;
|
||||
npm_config_user_agent: string;
|
||||
INFOPATH: string;
|
||||
HOMEBREW_CELLAR: string;
|
||||
OSLogRateLimit: string;
|
||||
SECURITYSESSIONID: string;
|
||||
npm_node_execpath: string;
|
||||
COLORTERM: string;
|
||||
NODE_ENV: string;
|
||||
[key: `PUBLIC_${string}`]: undefined;
|
||||
[key: `${string}`]: string | undefined;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Similar to [`$env/dynamic/private`](https://svelte.dev/docs/kit/$env-dynamic-private), but only includes variables that begin with [`config.kit.env.publicPrefix`](https://svelte.dev/docs/kit/configuration#env) (which defaults to `PUBLIC_`), and can therefore safely be exposed to client-side code.
|
||||
*
|
||||
* Note that public dynamic environment variables must all be sent from the server to the client, causing larger network requests — when possible, use `$env/static/public` instead.
|
||||
*
|
||||
* ```ts
|
||||
* import { env } from '$env/dynamic/public';
|
||||
* console.log(env.PUBLIC_DEPLOYMENT_SPECIFIC_VARIABLE);
|
||||
* ```
|
||||
*/
|
||||
declare module '$env/dynamic/public' {
|
||||
export const env: {
|
||||
[key: `PUBLIC_${string}`]: string | undefined;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
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: (({ error }) => { 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 { default as root } from '../root.js';
|
||||
@@ -0,0 +1 @@
|
||||
export const matchers = {};
|
||||
@@ -0,0 +1 @@
|
||||
export { default as component } from "../../../../src/routes/+layout.svelte";
|
||||
@@ -0,0 +1 @@
|
||||
export { default as component } from "../../../../node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte";
|
||||
@@ -0,0 +1 @@
|
||||
export { default as component } from "../../../../src/routes/+page.svelte";
|
||||
@@ -0,0 +1,3 @@
|
||||
import { asClassComponent } from 'svelte/legacy';
|
||||
import Root from './root.svelte';
|
||||
export default asClassComponent(Root);
|
||||
@@ -0,0 +1,68 @@
|
||||
<!-- This file is generated by @sveltejs/kit — do not edit it! -->
|
||||
<svelte:options runes={true} />
|
||||
<script>
|
||||
import { setContext, onMount, tick } from 'svelte';
|
||||
import { browser } from '$app/environment';
|
||||
|
||||
// stores
|
||||
let { stores, page, constructors, components = [], form, data_0 = null, data_1 = null } = $props();
|
||||
|
||||
if (!browser) {
|
||||
// svelte-ignore state_referenced_locally
|
||||
setContext('__svelte__', stores);
|
||||
}
|
||||
|
||||
if (browser) {
|
||||
$effect.pre(() => stores.page.set(page));
|
||||
} else {
|
||||
// svelte-ignore state_referenced_locally
|
||||
stores.page.set(page);
|
||||
}
|
||||
$effect(() => {
|
||||
stores;page;constructors;components;form;data_0;data_1;
|
||||
stores.page.notify();
|
||||
});
|
||||
|
||||
let mounted = $state(false);
|
||||
let navigated = $state(false);
|
||||
let title = $state(null);
|
||||
|
||||
onMount(() => {
|
||||
const unsubscribe = stores.page.subscribe(() => {
|
||||
if (mounted) {
|
||||
navigated = true;
|
||||
tick().then(() => {
|
||||
title = document.title || 'untitled page';
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
mounted = true;
|
||||
return unsubscribe;
|
||||
});
|
||||
|
||||
const Pyramid_1=$derived(constructors[1])
|
||||
</script>
|
||||
|
||||
{#if constructors[1]}
|
||||
{@const Pyramid_0 = constructors[0]}
|
||||
<!-- svelte-ignore binding_property_non_reactive -->
|
||||
<Pyramid_0 bind:this={components[0]} data={data_0} {form} params={page.params}>
|
||||
<!-- svelte-ignore binding_property_non_reactive -->
|
||||
<Pyramid_1 bind:this={components[1]} data={data_1} {form} params={page.params} />
|
||||
</Pyramid_0>
|
||||
|
||||
{:else}
|
||||
{@const Pyramid_0 = constructors[0]}
|
||||
<!-- svelte-ignore binding_property_non_reactive -->
|
||||
<Pyramid_0 bind:this={components[0]} data={data_0} {form} params={page.params} />
|
||||
|
||||
{/if}
|
||||
|
||||
{#if mounted}
|
||||
<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px">
|
||||
{#if navigated}
|
||||
{title}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
import root from '../root.js';
|
||||
import { set_building, set_prerendering } from '__sveltekit/environment';
|
||||
import { set_assets } from '$app/paths/internal/server';
|
||||
import { set_manifest, set_read_implementation } from '__sveltekit/server';
|
||||
import { set_private_env, set_public_env } from '../../../node_modules/@sveltejs/kit/src/runtime/shared-server.js';
|
||||
|
||||
export const options = {
|
||||
app_template_contains_nonce: false,
|
||||
async: 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_check_origin: true,
|
||||
csrf_trusted_origins: [],
|
||||
embedded: false,
|
||||
env_public_prefix: 'PUBLIC_',
|
||||
env_private_prefix: '',
|
||||
hash_routing: false,
|
||||
hooks: null, // added lazily, via `get_hooks`
|
||||
preload_strategy: "modulepreload",
|
||||
root,
|
||||
service_worker: false,
|
||||
service_worker_options: undefined,
|
||||
templates: {
|
||||
app: ({ head, body, assets, nonce, env }) => "<!doctype html>\n<html lang=\"en\">\n\t<head>\n\t\t<meta charset=\"utf-8\" />\n\t\t<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t" + head + "\n\t</head>\n\t<body data-sveltekit-preload-data=\"hover\">\n\t\t<div style=\"display: contents\">" + body + "</div>\n\t</body>\n</html>\n",
|
||||
error: ({ 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"
|
||||
},
|
||||
version_hash: "1rc0y0p"
|
||||
};
|
||||
|
||||
export async function get_hooks() {
|
||||
let handle;
|
||||
let handleFetch;
|
||||
let handleError;
|
||||
let handleValidationError;
|
||||
let init;
|
||||
|
||||
|
||||
let reroute;
|
||||
let transport;
|
||||
|
||||
|
||||
return {
|
||||
handle,
|
||||
handleFetch,
|
||||
handleError,
|
||||
handleValidationError,
|
||||
init,
|
||||
reroute,
|
||||
transport
|
||||
};
|
||||
}
|
||||
|
||||
export { set_assets, set_building, set_manifest, set_prerendering, set_private_env, set_public_env, set_read_implementation };
|
||||
Vendored
+41
@@ -0,0 +1,41 @@
|
||||
|
||||
// this file is generated — do not edit it
|
||||
|
||||
|
||||
declare module "svelte/elements" {
|
||||
export interface HTMLAttributes<T> {
|
||||
'data-sveltekit-keepfocus'?: true | '' | 'off' | undefined | null;
|
||||
'data-sveltekit-noscroll'?: true | '' | 'off' | undefined | null;
|
||||
'data-sveltekit-preload-code'?:
|
||||
| true
|
||||
| ''
|
||||
| 'eager'
|
||||
| 'viewport'
|
||||
| 'hover'
|
||||
| 'tap'
|
||||
| 'off'
|
||||
| undefined
|
||||
| null;
|
||||
'data-sveltekit-preload-data'?: true | '' | 'hover' | 'tap' | 'off' | undefined | null;
|
||||
'data-sveltekit-reload'?: true | '' | 'off' | undefined | null;
|
||||
'data-sveltekit-replacestate'?: true | '' | 'off' | undefined | null;
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
|
||||
|
||||
declare module "$app/types" {
|
||||
export interface AppTypes {
|
||||
RouteId(): "/";
|
||||
RouteParams(): {
|
||||
|
||||
};
|
||||
LayoutParams(): {
|
||||
"/": Record<string, never>
|
||||
};
|
||||
Pathname(): "/";
|
||||
ResolvedPathname(): `${"" | `/${string}`}${ReturnType<AppTypes['Pathname']>}`;
|
||||
Asset(): "/robots.txt" | string & {};
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"paths": {
|
||||
"$lib": [
|
||||
"../src/lib"
|
||||
],
|
||||
"$lib/*": [
|
||||
"../src/lib/*"
|
||||
],
|
||||
"$app/types": [
|
||||
"./types/index.d.ts"
|
||||
]
|
||||
},
|
||||
"rootDirs": [
|
||||
"..",
|
||||
"./types"
|
||||
],
|
||||
"verbatimModuleSyntax": true,
|
||||
"isolatedModules": true,
|
||||
"lib": [
|
||||
"esnext",
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"moduleResolution": "bundler",
|
||||
"module": "esnext",
|
||||
"noEmit": true,
|
||||
"target": "esnext"
|
||||
},
|
||||
"include": [
|
||||
"ambient.d.ts",
|
||||
"non-ambient.d.ts",
|
||||
"./types/**/$types.d.ts",
|
||||
"../vite.config.js",
|
||||
"../vite.config.ts",
|
||||
"../src/**/*.js",
|
||||
"../src/**/*.ts",
|
||||
"../src/**/*.svelte",
|
||||
"../tests/**/*.js",
|
||||
"../tests/**/*.ts",
|
||||
"../tests/**/*.svelte"
|
||||
],
|
||||
"exclude": [
|
||||
"../node_modules/**",
|
||||
"../src/service-worker.js",
|
||||
"../src/service-worker/**/*.js",
|
||||
"../src/service-worker.ts",
|
||||
"../src/service-worker/**/*.ts",
|
||||
"../src/service-worker.d.ts",
|
||||
"../src/service-worker/**/*.d.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"/": []
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
import type * as Kit from '@sveltejs/kit';
|
||||
|
||||
type Expand<T> = T extends infer O ? { [K in keyof O]: O[K] } : never;
|
||||
// @ts-ignore
|
||||
type MatcherParam<M> = M extends (param : string) => param is infer U ? U extends string ? U : string : string;
|
||||
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;
|
||||
export type Snapshot<T = any> = Kit.Snapshot<T>;
|
||||
type PageParentData = EnsureDefined<LayoutData>;
|
||||
type LayoutRouteId = RouteId | "/" | null
|
||||
type LayoutParams = RouteParams & { }
|
||||
type LayoutParentData = EnsureDefined<{}>;
|
||||
|
||||
export type PageServerData = null;
|
||||
export type PageData = Expand<PageParentData>;
|
||||
export type PageProps = { params: RouteParams; data: PageData }
|
||||
export type LayoutServerData = null;
|
||||
export type LayoutData = Expand<LayoutParentData>;
|
||||
export type LayoutProps = { params: LayoutParams; data: LayoutData; children: import("svelte").Snippet }
|
||||
@@ -1,2 +1,42 @@
|
||||
# Sveltekit
|
||||
# sv
|
||||
|
||||
Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
|
||||
|
||||
## Creating a project
|
||||
|
||||
If you're seeing this, you've probably already done this step. Congrats!
|
||||
|
||||
```sh
|
||||
# create a new project
|
||||
npx sv create my-app
|
||||
```
|
||||
|
||||
To recreate this project with the same configuration:
|
||||
|
||||
```sh
|
||||
# recreate this project
|
||||
bun x sv create --template minimal --types ts --install bun my-sveltekit-app
|
||||
```
|
||||
|
||||
## Developing
|
||||
|
||||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
|
||||
|
||||
```sh
|
||||
npm run dev
|
||||
|
||||
# or start the server and open the app in a new browser tab
|
||||
npm run dev -- --open
|
||||
```
|
||||
|
||||
## Building
|
||||
|
||||
To create a production version of your app:
|
||||
|
||||
```sh
|
||||
npm run build
|
||||
```
|
||||
|
||||
You can preview the production build with `npm run preview`.
|
||||
|
||||
> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.
|
||||
|
||||
@@ -0,0 +1,225 @@
|
||||
{
|
||||
"lockfileVersion": 1,
|
||||
"configVersion": 1,
|
||||
"workspaces": {
|
||||
"": {
|
||||
"name": "my-sveltekit-app",
|
||||
"devDependencies": {
|
||||
"@sveltejs/adapter-auto": "^7.0.0",
|
||||
"@sveltejs/kit": "^2.49.1",
|
||||
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
||||
"svelte": "^5.45.6",
|
||||
"svelte-check": "^4.3.4",
|
||||
"typescript": "^5.9.3",
|
||||
"vite": "^7.2.6",
|
||||
},
|
||||
},
|
||||
},
|
||||
"packages": {
|
||||
"@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.27.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw=="],
|
||||
|
||||
"@esbuild/android-arm": ["@esbuild/android-arm@0.27.2", "", { "os": "android", "cpu": "arm" }, "sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA=="],
|
||||
|
||||
"@esbuild/android-arm64": ["@esbuild/android-arm64@0.27.2", "", { "os": "android", "cpu": "arm64" }, "sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA=="],
|
||||
|
||||
"@esbuild/android-x64": ["@esbuild/android-x64@0.27.2", "", { "os": "android", "cpu": "x64" }, "sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A=="],
|
||||
|
||||
"@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.27.2", "", { "os": "darwin", "cpu": "arm64" }, "sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg=="],
|
||||
|
||||
"@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.27.2", "", { "os": "darwin", "cpu": "x64" }, "sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA=="],
|
||||
|
||||
"@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.27.2", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g=="],
|
||||
|
||||
"@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.27.2", "", { "os": "freebsd", "cpu": "x64" }, "sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA=="],
|
||||
|
||||
"@esbuild/linux-arm": ["@esbuild/linux-arm@0.27.2", "", { "os": "linux", "cpu": "arm" }, "sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw=="],
|
||||
|
||||
"@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.27.2", "", { "os": "linux", "cpu": "arm64" }, "sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw=="],
|
||||
|
||||
"@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.27.2", "", { "os": "linux", "cpu": "ia32" }, "sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w=="],
|
||||
|
||||
"@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.27.2", "", { "os": "linux", "cpu": "none" }, "sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg=="],
|
||||
|
||||
"@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.27.2", "", { "os": "linux", "cpu": "none" }, "sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw=="],
|
||||
|
||||
"@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.27.2", "", { "os": "linux", "cpu": "ppc64" }, "sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ=="],
|
||||
|
||||
"@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.27.2", "", { "os": "linux", "cpu": "none" }, "sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA=="],
|
||||
|
||||
"@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.27.2", "", { "os": "linux", "cpu": "s390x" }, "sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w=="],
|
||||
|
||||
"@esbuild/linux-x64": ["@esbuild/linux-x64@0.27.2", "", { "os": "linux", "cpu": "x64" }, "sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA=="],
|
||||
|
||||
"@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.27.2", "", { "os": "none", "cpu": "arm64" }, "sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw=="],
|
||||
|
||||
"@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.27.2", "", { "os": "none", "cpu": "x64" }, "sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA=="],
|
||||
|
||||
"@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.27.2", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA=="],
|
||||
|
||||
"@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.27.2", "", { "os": "openbsd", "cpu": "x64" }, "sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg=="],
|
||||
|
||||
"@esbuild/openharmony-arm64": ["@esbuild/openharmony-arm64@0.27.2", "", { "os": "none", "cpu": "arm64" }, "sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag=="],
|
||||
|
||||
"@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.27.2", "", { "os": "sunos", "cpu": "x64" }, "sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg=="],
|
||||
|
||||
"@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.27.2", "", { "os": "win32", "cpu": "arm64" }, "sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg=="],
|
||||
|
||||
"@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.27.2", "", { "os": "win32", "cpu": "ia32" }, "sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ=="],
|
||||
|
||||
"@esbuild/win32-x64": ["@esbuild/win32-x64@0.27.2", "", { "os": "win32", "cpu": "x64" }, "sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ=="],
|
||||
|
||||
"@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/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="],
|
||||
|
||||
"@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
|
||||
|
||||
"@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="],
|
||||
|
||||
"@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="],
|
||||
|
||||
"@rollup/rollup-android-arm-eabi": ["@rollup/rollup-android-arm-eabi@4.56.0", "", { "os": "android", "cpu": "arm" }, "sha512-LNKIPA5k8PF1+jAFomGe3qN3bbIgJe/IlpDBwuVjrDKrJhVWywgnJvflMt/zkbVNLFtF1+94SljYQS6e99klnw=="],
|
||||
|
||||
"@rollup/rollup-android-arm64": ["@rollup/rollup-android-arm64@4.56.0", "", { "os": "android", "cpu": "arm64" }, "sha512-lfbVUbelYqXlYiU/HApNMJzT1E87UPGvzveGg2h0ktUNlOCxKlWuJ9jtfvs1sKHdwU4fzY7Pl8sAl49/XaEk6Q=="],
|
||||
|
||||
"@rollup/rollup-darwin-arm64": ["@rollup/rollup-darwin-arm64@4.56.0", "", { "os": "darwin", "cpu": "arm64" }, "sha512-EgxD1ocWfhoD6xSOeEEwyE7tDvwTgZc8Bss7wCWe+uc7wO8G34HHCUH+Q6cHqJubxIAnQzAsyUsClt0yFLu06w=="],
|
||||
|
||||
"@rollup/rollup-darwin-x64": ["@rollup/rollup-darwin-x64@4.56.0", "", { "os": "darwin", "cpu": "x64" }, "sha512-1vXe1vcMOssb/hOF8iv52A7feWW2xnu+c8BV4t1F//m9QVLTfNVpEdja5ia762j/UEJe2Z1jAmEqZAK42tVW3g=="],
|
||||
|
||||
"@rollup/rollup-freebsd-arm64": ["@rollup/rollup-freebsd-arm64@4.56.0", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-bof7fbIlvqsyv/DtaXSck4VYQ9lPtoWNFCB/JY4snlFuJREXfZnm+Ej6yaCHfQvofJDXLDMTVxWscVSuQvVWUQ=="],
|
||||
|
||||
"@rollup/rollup-freebsd-x64": ["@rollup/rollup-freebsd-x64@4.56.0", "", { "os": "freebsd", "cpu": "x64" }, "sha512-KNa6lYHloW+7lTEkYGa37fpvPq+NKG/EHKM8+G/g9WDU7ls4sMqbVRV78J6LdNuVaeeK5WB9/9VAFbKxcbXKYg=="],
|
||||
|
||||
"@rollup/rollup-linux-arm-gnueabihf": ["@rollup/rollup-linux-arm-gnueabihf@4.56.0", "", { "os": "linux", "cpu": "arm" }, "sha512-E8jKK87uOvLrrLN28jnAAAChNq5LeCd2mGgZF+fGF5D507WlG/Noct3lP/QzQ6MrqJ5BCKNwI9ipADB6jyiq2A=="],
|
||||
|
||||
"@rollup/rollup-linux-arm-musleabihf": ["@rollup/rollup-linux-arm-musleabihf@4.56.0", "", { "os": "linux", "cpu": "arm" }, "sha512-jQosa5FMYF5Z6prEpTCCmzCXz6eKr/tCBssSmQGEeozA9tkRUty/5Vx06ibaOP9RCrW1Pvb8yp3gvZhHwTDsJw=="],
|
||||
|
||||
"@rollup/rollup-linux-arm64-gnu": ["@rollup/rollup-linux-arm64-gnu@4.56.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-uQVoKkrC1KGEV6udrdVahASIsaF8h7iLG0U0W+Xn14ucFwi6uS539PsAr24IEF9/FoDtzMeeJXJIBo5RkbNWvQ=="],
|
||||
|
||||
"@rollup/rollup-linux-arm64-musl": ["@rollup/rollup-linux-arm64-musl@4.56.0", "", { "os": "linux", "cpu": "arm64" }, "sha512-vLZ1yJKLxhQLFKTs42RwTwa6zkGln+bnXc8ueFGMYmBTLfNu58sl5/eXyxRa2RarTkJbXl8TKPgfS6V5ijNqEA=="],
|
||||
|
||||
"@rollup/rollup-linux-loong64-gnu": ["@rollup/rollup-linux-loong64-gnu@4.56.0", "", { "os": "linux", "cpu": "none" }, "sha512-FWfHOCub564kSE3xJQLLIC/hbKqHSVxy8vY75/YHHzWvbJL7aYJkdgwD/xGfUlL5UV2SB7otapLrcCj2xnF1dg=="],
|
||||
|
||||
"@rollup/rollup-linux-loong64-musl": ["@rollup/rollup-linux-loong64-musl@4.56.0", "", { "os": "linux", "cpu": "none" }, "sha512-z1EkujxIh7nbrKL1lmIpqFTc/sr0u8Uk0zK/qIEFldbt6EDKWFk/pxFq3gYj4Bjn3aa9eEhYRlL3H8ZbPT1xvA=="],
|
||||
|
||||
"@rollup/rollup-linux-ppc64-gnu": ["@rollup/rollup-linux-ppc64-gnu@4.56.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-iNFTluqgdoQC7AIE8Q34R3AuPrJGJirj5wMUErxj22deOcY7XwZRaqYmB6ZKFHoVGqRcRd0mqO+845jAibKCkw=="],
|
||||
|
||||
"@rollup/rollup-linux-ppc64-musl": ["@rollup/rollup-linux-ppc64-musl@4.56.0", "", { "os": "linux", "cpu": "ppc64" }, "sha512-MtMeFVlD2LIKjp2sE2xM2slq3Zxf9zwVuw0jemsxvh1QOpHSsSzfNOTH9uYW9i1MXFxUSMmLpeVeUzoNOKBaWg=="],
|
||||
|
||||
"@rollup/rollup-linux-riscv64-gnu": ["@rollup/rollup-linux-riscv64-gnu@4.56.0", "", { "os": "linux", "cpu": "none" }, "sha512-in+v6wiHdzzVhYKXIk5U74dEZHdKN9KH0Q4ANHOTvyXPG41bajYRsy7a8TPKbYPl34hU7PP7hMVHRvv/5aCSew=="],
|
||||
|
||||
"@rollup/rollup-linux-riscv64-musl": ["@rollup/rollup-linux-riscv64-musl@4.56.0", "", { "os": "linux", "cpu": "none" }, "sha512-yni2raKHB8m9NQpI9fPVwN754mn6dHQSbDTwxdr9SE0ks38DTjLMMBjrwvB5+mXrX+C0npX0CVeCUcvvvD8CNQ=="],
|
||||
|
||||
"@rollup/rollup-linux-s390x-gnu": ["@rollup/rollup-linux-s390x-gnu@4.56.0", "", { "os": "linux", "cpu": "s390x" }, "sha512-zhLLJx9nQPu7wezbxt2ut+CI4YlXi68ndEve16tPc/iwoylWS9B3FxpLS2PkmfYgDQtosah07Mj9E0khc3Y+vQ=="],
|
||||
|
||||
"@rollup/rollup-linux-x64-gnu": ["@rollup/rollup-linux-x64-gnu@4.56.0", "", { "os": "linux", "cpu": "x64" }, "sha512-MVC6UDp16ZSH7x4rtuJPAEoE1RwS8N4oK9DLHy3FTEdFoUTCFVzMfJl/BVJ330C+hx8FfprA5Wqx4FhZXkj2Kw=="],
|
||||
|
||||
"@rollup/rollup-linux-x64-musl": ["@rollup/rollup-linux-x64-musl@4.56.0", "", { "os": "linux", "cpu": "x64" }, "sha512-ZhGH1eA4Qv0lxaV00azCIS1ChedK0V32952Md3FtnxSqZTBTd6tgil4nZT5cU8B+SIw3PFYkvyR4FKo2oyZIHA=="],
|
||||
|
||||
"@rollup/rollup-openbsd-x64": ["@rollup/rollup-openbsd-x64@4.56.0", "", { "os": "openbsd", "cpu": "x64" }, "sha512-O16XcmyDeFI9879pEcmtWvD/2nyxR9mF7Gs44lf1vGGx8Vg2DRNx11aVXBEqOQhWb92WN4z7fW/q4+2NYzCbBA=="],
|
||||
|
||||
"@rollup/rollup-openharmony-arm64": ["@rollup/rollup-openharmony-arm64@4.56.0", "", { "os": "none", "cpu": "arm64" }, "sha512-LhN/Reh+7F3RCgQIRbgw8ZMwUwyqJM+8pXNT6IIJAqm2IdKkzpCh/V9EdgOMBKuebIrzswqy4ATlrDgiOwbRcQ=="],
|
||||
|
||||
"@rollup/rollup-win32-arm64-msvc": ["@rollup/rollup-win32-arm64-msvc@4.56.0", "", { "os": "win32", "cpu": "arm64" }, "sha512-kbFsOObXp3LBULg1d3JIUQMa9Kv4UitDmpS+k0tinPBz3watcUiV2/LUDMMucA6pZO3WGE27P7DsfaN54l9ing=="],
|
||||
|
||||
"@rollup/rollup-win32-ia32-msvc": ["@rollup/rollup-win32-ia32-msvc@4.56.0", "", { "os": "win32", "cpu": "ia32" }, "sha512-vSSgny54D6P4vf2izbtFm/TcWYedw7f8eBrOiGGecyHyQB9q4Kqentjaj8hToe+995nob/Wv48pDqL5a62EWtg=="],
|
||||
|
||||
"@rollup/rollup-win32-x64-gnu": ["@rollup/rollup-win32-x64-gnu@4.56.0", "", { "os": "win32", "cpu": "x64" }, "sha512-FeCnkPCTHQJFbiGG49KjV5YGW/8b9rrXAM2Mz2kiIoktq2qsJxRD5giEMEOD2lPdgs72upzefaUvS+nc8E3UzQ=="],
|
||||
|
||||
"@rollup/rollup-win32-x64-msvc": ["@rollup/rollup-win32-x64-msvc@4.56.0", "", { "os": "win32", "cpu": "x64" }, "sha512-H8AE9Ur/t0+1VXujj90w0HrSOuv0Nq9r1vSZF2t5km20NTfosQsGGUXDaKdQZzwuLts7IyL1fYT4hM95TI9c4g=="],
|
||||
|
||||
"@standard-schema/spec": ["@standard-schema/spec@1.1.0", "", {}, "sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w=="],
|
||||
|
||||
"@sveltejs/acorn-typescript": ["@sveltejs/acorn-typescript@1.0.8", "", { "peerDependencies": { "acorn": "^8.9.0" } }, "sha512-esgN+54+q0NjB0Y/4BomT9samII7jGwNy/2a3wNZbT2A2RpmXsXwUt24LvLhx6jUq2gVk4cWEvcRO6MFQbOfNA=="],
|
||||
|
||||
"@sveltejs/adapter-auto": ["@sveltejs/adapter-auto@7.0.0", "", { "peerDependencies": { "@sveltejs/kit": "^2.0.0" } }, "sha512-ImDWaErTOCkRS4Gt+5gZuymKFBobnhChXUZ9lhUZLahUgvA4OOvRzi3sahzYgbxGj5nkA6OV0GAW378+dl/gyw=="],
|
||||
|
||||
"@sveltejs/kit": ["@sveltejs/kit@2.50.0", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/cookie": "^0.6.0", "acorn": "^8.14.1", "cookie": "^0.6.0", "devalue": "^5.6.2", "esm-env": "^1.2.2", "kleur": "^4.1.5", "magic-string": "^0.30.5", "mrmime": "^2.0.0", "sade": "^1.8.1", "set-cookie-parser": "^2.6.0", "sirv": "^3.0.0" }, "peerDependencies": { "@opentelemetry/api": "^1.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0 || ^4.0.0-next.1 || ^5.0.0 || ^6.0.0-next.0", "svelte": "^4.0.0 || ^5.0.0-next.0", "typescript": "^5.3.3", "vite": "^5.0.3 || ^6.0.0 || ^7.0.0-beta.0" }, "optionalPeers": ["@opentelemetry/api", "typescript"], "bin": { "svelte-kit": "svelte-kit.js" } }, "sha512-Hj8sR8O27p2zshFEIJzsvfhLzxga/hWw6tRLnBjMYw70m1aS9BSYCqAUtzDBjRREtX1EvLMYgaC0mYE3Hz4KWA=="],
|
||||
|
||||
"@sveltejs/vite-plugin-svelte": ["@sveltejs/vite-plugin-svelte@6.2.4", "", { "dependencies": { "@sveltejs/vite-plugin-svelte-inspector": "^5.0.0", "deepmerge": "^4.3.1", "magic-string": "^0.30.21", "obug": "^2.1.0", "vitefu": "^1.1.1" }, "peerDependencies": { "svelte": "^5.0.0", "vite": "^6.3.0 || ^7.0.0" } }, "sha512-ou/d51QSdTyN26D7h6dSpusAKaZkAiGM55/AKYi+9AGZw7q85hElbjK3kEyzXHhLSnRISHOYzVge6x0jRZ7DXA=="],
|
||||
|
||||
"@sveltejs/vite-plugin-svelte-inspector": ["@sveltejs/vite-plugin-svelte-inspector@5.0.2", "", { "dependencies": { "obug": "^2.1.0" }, "peerDependencies": { "@sveltejs/vite-plugin-svelte": "^6.0.0-next.0", "svelte": "^5.0.0", "vite": "^6.3.0 || ^7.0.0" } }, "sha512-TZzRTcEtZffICSAoZGkPSl6Etsj2torOVrx6Uw0KpXxrec9Gg6jFWQ60Q3+LmNGfZSxHRCZL7vXVZIWmuV50Ig=="],
|
||||
|
||||
"@types/cookie": ["@types/cookie@0.6.0", "", {}, "sha512-4Kh9a6B2bQciAhf7FSuMRRkUWecJgJu9nPnx3yzpsfXX/c50REIqpHY4C82bXP90qrLtXtkDxTZosYO3UpOwlA=="],
|
||||
|
||||
"@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="],
|
||||
|
||||
"acorn": ["acorn@8.15.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg=="],
|
||||
|
||||
"aria-query": ["aria-query@5.3.2", "", {}, "sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw=="],
|
||||
|
||||
"axobject-query": ["axobject-query@4.1.0", "", {}, "sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ=="],
|
||||
|
||||
"chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="],
|
||||
|
||||
"clsx": ["clsx@2.1.1", "", {}, "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA=="],
|
||||
|
||||
"cookie": ["cookie@0.6.0", "", {}, "sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw=="],
|
||||
|
||||
"deepmerge": ["deepmerge@4.3.1", "", {}, "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="],
|
||||
|
||||
"devalue": ["devalue@5.6.2", "", {}, "sha512-nPRkjWzzDQlsejL1WVifk5rvcFi/y1onBRxjaFMjZeR9mFpqu2gmAZ9xUB9/IEanEP/vBtGeGganC/GO1fmufg=="],
|
||||
|
||||
"esbuild": ["esbuild@0.27.2", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.27.2", "@esbuild/android-arm": "0.27.2", "@esbuild/android-arm64": "0.27.2", "@esbuild/android-x64": "0.27.2", "@esbuild/darwin-arm64": "0.27.2", "@esbuild/darwin-x64": "0.27.2", "@esbuild/freebsd-arm64": "0.27.2", "@esbuild/freebsd-x64": "0.27.2", "@esbuild/linux-arm": "0.27.2", "@esbuild/linux-arm64": "0.27.2", "@esbuild/linux-ia32": "0.27.2", "@esbuild/linux-loong64": "0.27.2", "@esbuild/linux-mips64el": "0.27.2", "@esbuild/linux-ppc64": "0.27.2", "@esbuild/linux-riscv64": "0.27.2", "@esbuild/linux-s390x": "0.27.2", "@esbuild/linux-x64": "0.27.2", "@esbuild/netbsd-arm64": "0.27.2", "@esbuild/netbsd-x64": "0.27.2", "@esbuild/openbsd-arm64": "0.27.2", "@esbuild/openbsd-x64": "0.27.2", "@esbuild/openharmony-arm64": "0.27.2", "@esbuild/sunos-x64": "0.27.2", "@esbuild/win32-arm64": "0.27.2", "@esbuild/win32-ia32": "0.27.2", "@esbuild/win32-x64": "0.27.2" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw=="],
|
||||
|
||||
"esm-env": ["esm-env@1.2.2", "", {}, "sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA=="],
|
||||
|
||||
"esrap": ["esrap@2.2.2", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.4.15" } }, "sha512-zA6497ha+qKvoWIK+WM9NAh5ni17sKZKhbS5B3PoYbBvaYHZWoS33zmFybmyqpn07RLUxSmn+RCls2/XF+d0oQ=="],
|
||||
|
||||
"fdir": ["fdir@6.5.0", "", { "peerDependencies": { "picomatch": "^3 || ^4" }, "optionalPeers": ["picomatch"] }, "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg=="],
|
||||
|
||||
"fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="],
|
||||
|
||||
"is-reference": ["is-reference@3.0.3", "", { "dependencies": { "@types/estree": "^1.0.6" } }, "sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw=="],
|
||||
|
||||
"kleur": ["kleur@4.1.5", "", {}, "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ=="],
|
||||
|
||||
"locate-character": ["locate-character@3.0.0", "", {}, "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA=="],
|
||||
|
||||
"magic-string": ["magic-string@0.30.21", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ=="],
|
||||
|
||||
"mri": ["mri@1.2.0", "", {}, "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="],
|
||||
|
||||
"mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="],
|
||||
|
||||
"nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="],
|
||||
|
||||
"obug": ["obug@2.1.1", "", {}, "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ=="],
|
||||
|
||||
"picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="],
|
||||
|
||||
"picomatch": ["picomatch@4.0.3", "", {}, "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q=="],
|
||||
|
||||
"postcss": ["postcss@8.5.6", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="],
|
||||
|
||||
"readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="],
|
||||
|
||||
"rollup": ["rollup@4.56.0", "", { "dependencies": { "@types/estree": "1.0.8" }, "optionalDependencies": { "@rollup/rollup-android-arm-eabi": "4.56.0", "@rollup/rollup-android-arm64": "4.56.0", "@rollup/rollup-darwin-arm64": "4.56.0", "@rollup/rollup-darwin-x64": "4.56.0", "@rollup/rollup-freebsd-arm64": "4.56.0", "@rollup/rollup-freebsd-x64": "4.56.0", "@rollup/rollup-linux-arm-gnueabihf": "4.56.0", "@rollup/rollup-linux-arm-musleabihf": "4.56.0", "@rollup/rollup-linux-arm64-gnu": "4.56.0", "@rollup/rollup-linux-arm64-musl": "4.56.0", "@rollup/rollup-linux-loong64-gnu": "4.56.0", "@rollup/rollup-linux-loong64-musl": "4.56.0", "@rollup/rollup-linux-ppc64-gnu": "4.56.0", "@rollup/rollup-linux-ppc64-musl": "4.56.0", "@rollup/rollup-linux-riscv64-gnu": "4.56.0", "@rollup/rollup-linux-riscv64-musl": "4.56.0", "@rollup/rollup-linux-s390x-gnu": "4.56.0", "@rollup/rollup-linux-x64-gnu": "4.56.0", "@rollup/rollup-linux-x64-musl": "4.56.0", "@rollup/rollup-openbsd-x64": "4.56.0", "@rollup/rollup-openharmony-arm64": "4.56.0", "@rollup/rollup-win32-arm64-msvc": "4.56.0", "@rollup/rollup-win32-ia32-msvc": "4.56.0", "@rollup/rollup-win32-x64-gnu": "4.56.0", "@rollup/rollup-win32-x64-msvc": "4.56.0", "fsevents": "~2.3.2" }, "bin": { "rollup": "dist/bin/rollup" } }, "sha512-9FwVqlgUHzbXtDg9RCMgodF3Ua4Na6Gau+Sdt9vyCN4RhHfVKX2DCHy3BjMLTDd47ITDhYAnTwGulWTblJSDLg=="],
|
||||
|
||||
"sade": ["sade@1.8.1", "", { "dependencies": { "mri": "^1.1.0" } }, "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A=="],
|
||||
|
||||
"set-cookie-parser": ["set-cookie-parser@2.7.2", "", {}, "sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw=="],
|
||||
|
||||
"sirv": ["sirv@3.0.2", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g=="],
|
||||
|
||||
"source-map-js": ["source-map-js@1.2.1", "", {}, "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA=="],
|
||||
|
||||
"svelte": ["svelte@5.48.0", "", { "dependencies": { "@jridgewell/remapping": "^2.3.4", "@jridgewell/sourcemap-codec": "^1.5.0", "@sveltejs/acorn-typescript": "^1.0.5", "@types/estree": "^1.0.5", "acorn": "^8.12.1", "aria-query": "^5.3.1", "axobject-query": "^4.1.0", "clsx": "^2.1.1", "devalue": "^5.6.2", "esm-env": "^1.2.1", "esrap": "^2.2.1", "is-reference": "^3.0.3", "locate-character": "^3.0.0", "magic-string": "^0.30.11", "zimmerframe": "^1.1.2" } }, "sha512-+NUe82VoFP1RQViZI/esojx70eazGF4u0O/9ucqZ4rPcOZD+n5EVp17uYsqwdzjUjZyTpGKunHbDziW6AIAVkQ=="],
|
||||
|
||||
"svelte-check": ["svelte-check@4.3.5", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "chokidar": "^4.0.1", "fdir": "^6.2.0", "picocolors": "^1.0.0", "sade": "^1.7.4" }, "peerDependencies": { "svelte": "^4.0.0 || ^5.0.0-next.0", "typescript": ">=5.0.0" }, "bin": { "svelte-check": "bin/svelte-check" } }, "sha512-e4VWZETyXaKGhpkxOXP+B/d0Fp/zKViZoJmneZWe/05Y2aqSKj3YN2nLfYPJBQ87WEiY4BQCQ9hWGu9mPT1a1Q=="],
|
||||
|
||||
"tinyglobby": ["tinyglobby@0.2.15", "", { "dependencies": { "fdir": "^6.5.0", "picomatch": "^4.0.3" } }, "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ=="],
|
||||
|
||||
"totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="],
|
||||
|
||||
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
||||
|
||||
"vite": ["vite@7.3.1", "", { "dependencies": { "esbuild": "^0.27.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", "rollup": "^4.43.0", "tinyglobby": "^0.2.15" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "peerDependencies": { "@types/node": "^20.19.0 || >=22.12.0", "jiti": ">=1.21.0", "less": "^4.0.0", "lightningcss": "^1.21.0", "sass": "^1.70.0", "sass-embedded": "^1.70.0", "stylus": ">=0.54.8", "sugarss": "^5.0.0", "terser": "^5.16.0", "tsx": "^4.8.1", "yaml": "^2.4.2" }, "optionalPeers": ["@types/node", "jiti", "less", "lightningcss", "sass", "sass-embedded", "stylus", "sugarss", "terser", "tsx", "yaml"], "bin": { "vite": "bin/vite.js" } }, "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA=="],
|
||||
|
||||
"vitefu": ["vitefu@1.1.1", "", { "peerDependencies": { "vite": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0-beta.0" }, "optionalPeers": ["vite"] }, "sha512-B/Fegf3i8zh0yFbpzZ21amWzHmuNlLlmJT6n7bu5e+pCHUKQIfXSYokrqOBGEMMe9UG2sostKQF9mml/vYaWJQ=="],
|
||||
|
||||
"zimmerframe": ["zimmerframe@1.1.4", "", {}, "sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ=="],
|
||||
}
|
||||
}
|
||||
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
../acorn/bin/acorn
|
||||
+1
@@ -0,0 +1 @@
|
||||
../@esbuild/darwin-arm64/bin/esbuild
|
||||
+1
@@ -0,0 +1 @@
|
||||
../nanoid/bin/nanoid.cjs
|
||||
+1
@@ -0,0 +1 @@
|
||||
../rollup/dist/bin/rollup
|
||||
+1
@@ -0,0 +1 @@
|
||||
../svelte-check/bin/svelte-check
|
||||
+1
@@ -0,0 +1 @@
|
||||
../@sveltejs/kit/svelte-kit.js
|
||||
+1
@@ -0,0 +1 @@
|
||||
../typescript/bin/tsc
|
||||
+1
@@ -0,0 +1 @@
|
||||
../typescript/bin/tsserver
|
||||
+1
@@ -0,0 +1 @@
|
||||
../vite/bin/vite.js
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"compilerOptions":{"css":"external","dev":true,"hmr":true},"configFile":false,"extensions":[".svelte"],"preprocess":{"script":"({ content, filename }) => {\n\t\tif (!filename) return;\n\n\t\tconst basename = path.basename(filename);\n\t\tif (basename.startsWith('+page.') || basename.startsWith('+layout.')) {\n\t\t\tconst match = content.match(options_regex);\n\t\t\tif (match && match.index !== undefined && !should_ignore(content, match.index)) {\n\t\t\t\tconst fixed = basename.replace('.svelte', '(.server).js/ts');\n\n\t\t\t\tconst message =\n\t\t\t\t\t`\\n${colors.bold().red(path.relative('.', filename))}\\n` +\n\t\t\t\t\t`\\`${match[1]}\\` will be ignored — move it to ${fixed} instead. See https://svelte.dev/docs/kit/page-options for more information.`;\n\n\t\t\t\tif (!warned.has(message)) {\n\t\t\t\t\tconsole.log(message);\n\t\t\t\t\twarned.add(message);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}","markup":"({ content, filename }) => {\n\t\tif (!filename) return;\n\n\t\tconst basename = path.basename(filename);\n\t\tconst has_children =\n\t\t\tcontent.includes('<slot') || (isSvelte5Plus() && content.includes('{@render'));\n\n\t\tif (basename.startsWith('+layout.') && !has_children) {\n\t\t\tconst message =\n\t\t\t\t`\\n${colors.bold().red(path.relative('.', filename))}\\n` +\n\t\t\t\t`\\`<slot />\\`${isSvelte5Plus() ? ' or `{@render ...}` tag' : ''}` +\n\t\t\t\t' missing — inner content will not be rendered';\n\n\t\t\tif (!warned.has(message)) {\n\t\t\t\tconsole.log(message);\n\t\t\t\twarned.add(message);\n\t\t\t}\n\t\t}\n\t}"}}
|
||||
+148
@@ -0,0 +1,148 @@
|
||||
{
|
||||
"hash": "cbe4a0e7",
|
||||
"configHash": "3b483436",
|
||||
"lockfileHash": "860b5073",
|
||||
"browserHash": "c4c1bfc5",
|
||||
"optimized": {
|
||||
"svelte": {
|
||||
"src": "../../svelte/src/index-client.js",
|
||||
"file": "svelte.js",
|
||||
"fileHash": "6b39986c",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/animate": {
|
||||
"src": "../../svelte/src/animate/index.js",
|
||||
"file": "svelte_animate.js",
|
||||
"fileHash": "0416d1f7",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/attachments": {
|
||||
"src": "../../svelte/src/attachments/index.js",
|
||||
"file": "svelte_attachments.js",
|
||||
"fileHash": "c2251f9d",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/easing": {
|
||||
"src": "../../svelte/src/easing/index.js",
|
||||
"file": "svelte_easing.js",
|
||||
"fileHash": "30f3ede1",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/internal": {
|
||||
"src": "../../svelte/src/internal/index.js",
|
||||
"file": "svelte_internal.js",
|
||||
"fileHash": "1428c667",
|
||||
"needsInterop": true
|
||||
},
|
||||
"svelte/internal/client": {
|
||||
"src": "../../svelte/src/internal/client/index.js",
|
||||
"file": "svelte_internal_client.js",
|
||||
"fileHash": "5b15f757",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/internal/disclose-version": {
|
||||
"src": "../../svelte/src/internal/disclose-version.js",
|
||||
"file": "svelte_internal_disclose-version.js",
|
||||
"fileHash": "a0d83d36",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/internal/flags/async": {
|
||||
"src": "../../svelte/src/internal/flags/async.js",
|
||||
"file": "svelte_internal_flags_async.js",
|
||||
"fileHash": "2c3a7cbd",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/internal/flags/legacy": {
|
||||
"src": "../../svelte/src/internal/flags/legacy.js",
|
||||
"file": "svelte_internal_flags_legacy.js",
|
||||
"fileHash": "bce59abf",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/internal/flags/tracing": {
|
||||
"src": "../../svelte/src/internal/flags/tracing.js",
|
||||
"file": "svelte_internal_flags_tracing.js",
|
||||
"fileHash": "6ebefe43",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/legacy": {
|
||||
"src": "../../svelte/src/legacy/legacy-client.js",
|
||||
"file": "svelte_legacy.js",
|
||||
"fileHash": "9e0df5c4",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/motion": {
|
||||
"src": "../../svelte/src/motion/index.js",
|
||||
"file": "svelte_motion.js",
|
||||
"fileHash": "390b6479",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/reactivity": {
|
||||
"src": "../../svelte/src/reactivity/index-client.js",
|
||||
"file": "svelte_reactivity.js",
|
||||
"fileHash": "a867d2bb",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/reactivity/window": {
|
||||
"src": "../../svelte/src/reactivity/window/index.js",
|
||||
"file": "svelte_reactivity_window.js",
|
||||
"fileHash": "2876dc7f",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/store": {
|
||||
"src": "../../svelte/src/store/index-client.js",
|
||||
"file": "svelte_store.js",
|
||||
"fileHash": "15fd40a6",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/transition": {
|
||||
"src": "../../svelte/src/transition/index.js",
|
||||
"file": "svelte_transition.js",
|
||||
"fileHash": "51d7dc98",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte/events": {
|
||||
"src": "../../svelte/src/events/index.js",
|
||||
"file": "svelte_events.js",
|
||||
"fileHash": "ae03a2ea",
|
||||
"needsInterop": false
|
||||
},
|
||||
"svelte > clsx": {
|
||||
"src": "../../clsx/dist/clsx.mjs",
|
||||
"file": "svelte___clsx.js",
|
||||
"fileHash": "65a1710c",
|
||||
"needsInterop": false
|
||||
}
|
||||
},
|
||||
"chunks": {
|
||||
"chunk-GOC6LLKR": {
|
||||
"file": "chunk-GOC6LLKR.js"
|
||||
},
|
||||
"chunk-6VYHLW26": {
|
||||
"file": "chunk-6VYHLW26.js"
|
||||
},
|
||||
"chunk-7RQDXF5S": {
|
||||
"file": "chunk-7RQDXF5S.js"
|
||||
},
|
||||
"chunk-YERFD2CZ": {
|
||||
"file": "chunk-YERFD2CZ.js"
|
||||
},
|
||||
"chunk-UW3ABHAC": {
|
||||
"file": "chunk-UW3ABHAC.js"
|
||||
},
|
||||
"chunk-U7P2NEEE": {
|
||||
"file": "chunk-U7P2NEEE.js"
|
||||
},
|
||||
"chunk-DL7TWQ45": {
|
||||
"file": "chunk-DL7TWQ45.js"
|
||||
},
|
||||
"chunk-5MWODAS5": {
|
||||
"file": "chunk-5MWODAS5.js"
|
||||
},
|
||||
"chunk-VZQZA5WB": {
|
||||
"file": "chunk-VZQZA5WB.js"
|
||||
},
|
||||
"chunk-OHYQYV5R": {
|
||||
"file": "chunk-OHYQYV5R.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
+4669
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+27
@@ -0,0 +1,27 @@
|
||||
import {
|
||||
createSubscriber
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
|
||||
// node_modules/svelte/src/reactivity/reactive-value.js
|
||||
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
|
||||
};
|
||||
//# sourceMappingURL=chunk-6VYHLW26.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"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": ";;;;;AAKO,IAAM,gBAAN,MAAoB;AAAA,EAC1B;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,YAAY,IAAI,aAAa;AAC5B,SAAK,MAAM;AACX,SAAK,aAAa,iBAAiB,WAAW;AAAA,EAC/C;AAAA,EAEA,IAAI,UAAU;AACb,SAAK,WAAW;AAChB,WAAO,KAAK,IAAI;AAAA,EACjB;AACD;",
|
||||
"names": []
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+966
@@ -0,0 +1,966 @@
|
||||
import {
|
||||
COMMENT_NODE,
|
||||
DIRTY,
|
||||
DOCUMENT_FRAGMENT_NODE,
|
||||
EFFECT_RAN,
|
||||
FILENAME,
|
||||
HYDRATION_END,
|
||||
HYDRATION_ERROR,
|
||||
HYDRATION_START,
|
||||
LEGACY_PROPS,
|
||||
MAYBE_DIRTY,
|
||||
NAMESPACE_MATHML,
|
||||
NAMESPACE_SVG,
|
||||
STATE_SYMBOL,
|
||||
TEMPLATE_FRAGMENT,
|
||||
TEMPLATE_USE_IMPORT_NODE,
|
||||
TEMPLATE_USE_MATHML,
|
||||
TEMPLATE_USE_SVG,
|
||||
TEXT_NODE,
|
||||
active_effect,
|
||||
all_registered_events,
|
||||
array_from,
|
||||
boundary,
|
||||
clear_text_content,
|
||||
component_context,
|
||||
component_root,
|
||||
create_comment,
|
||||
create_element,
|
||||
create_fragment,
|
||||
create_text,
|
||||
define_property,
|
||||
dev_current_component_function,
|
||||
flushSync,
|
||||
get,
|
||||
get_first_child,
|
||||
get_next_sibling,
|
||||
handle_event_propagation,
|
||||
hydrate_next,
|
||||
hydrate_node,
|
||||
hydrating,
|
||||
hydration_failed,
|
||||
init_operations,
|
||||
is_array,
|
||||
is_firefox,
|
||||
lifecycle_outside_component,
|
||||
mutable_source,
|
||||
noop,
|
||||
on,
|
||||
pop,
|
||||
push,
|
||||
root_event_handles,
|
||||
set,
|
||||
set_attribute,
|
||||
set_hydrate_node,
|
||||
set_hydrating,
|
||||
set_signal_status,
|
||||
user_pre_effect
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import {
|
||||
hydration_mismatch,
|
||||
legacy_recursive_reactive_block,
|
||||
lifecycle_double_unmount,
|
||||
state_proxy_unmount,
|
||||
true_default
|
||||
} from "./chunk-VZQZA5WB.js";
|
||||
import {
|
||||
async_mode_flag
|
||||
} from "./chunk-OHYQYV5R.js";
|
||||
|
||||
// node_modules/svelte/src/internal/client/dom/reconciler.js
|
||||
function create_fragment_from_html(html) {
|
||||
var elem = document.createElement("template");
|
||||
elem.innerHTML = html.replaceAll("<!>", "<!---->");
|
||||
return elem.content;
|
||||
}
|
||||
|
||||
// node_modules/svelte/src/internal/client/dom/template.js
|
||||
function assign_nodes(start, end) {
|
||||
var effect = (
|
||||
/** @type {Effect} */
|
||||
active_effect
|
||||
);
|
||||
if (effect.nodes === null) {
|
||||
effect.nodes = { start, end, a: null, t: null };
|
||||
}
|
||||
}
|
||||
function from_html(content, flags) {
|
||||
var is_fragment = (flags & TEMPLATE_FRAGMENT) !== 0;
|
||||
var use_import_node = (flags & TEMPLATE_USE_IMPORT_NODE) !== 0;
|
||||
var node;
|
||||
var has_start = !content.startsWith("<!>");
|
||||
return () => {
|
||||
if (hydrating) {
|
||||
assign_nodes(hydrate_node, null);
|
||||
return hydrate_node;
|
||||
}
|
||||
if (node === void 0) {
|
||||
node = create_fragment_from_html(has_start ? content : "<!>" + content);
|
||||
if (!is_fragment) node = /** @type {TemplateNode} */
|
||||
get_first_child(node);
|
||||
}
|
||||
var clone = (
|
||||
/** @type {TemplateNode} */
|
||||
use_import_node || is_firefox ? document.importNode(node, true) : node.cloneNode(true)
|
||||
);
|
||||
if (is_fragment) {
|
||||
var start = (
|
||||
/** @type {TemplateNode} */
|
||||
get_first_child(clone)
|
||||
);
|
||||
var end = (
|
||||
/** @type {TemplateNode} */
|
||||
clone.lastChild
|
||||
);
|
||||
assign_nodes(start, end);
|
||||
} else {
|
||||
assign_nodes(clone, clone);
|
||||
}
|
||||
return clone;
|
||||
};
|
||||
}
|
||||
function from_namespace(content, flags, ns = "svg") {
|
||||
var has_start = !content.startsWith("<!>");
|
||||
var is_fragment = (flags & TEMPLATE_FRAGMENT) !== 0;
|
||||
var wrapped = `<${ns}>${has_start ? content : "<!>" + content}</${ns}>`;
|
||||
var node;
|
||||
return () => {
|
||||
if (hydrating) {
|
||||
assign_nodes(hydrate_node, null);
|
||||
return hydrate_node;
|
||||
}
|
||||
if (!node) {
|
||||
var fragment = (
|
||||
/** @type {DocumentFragment} */
|
||||
create_fragment_from_html(wrapped)
|
||||
);
|
||||
var root = (
|
||||
/** @type {Element} */
|
||||
get_first_child(fragment)
|
||||
);
|
||||
if (is_fragment) {
|
||||
node = document.createDocumentFragment();
|
||||
while (get_first_child(root)) {
|
||||
node.appendChild(
|
||||
/** @type {TemplateNode} */
|
||||
get_first_child(root)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
node = /** @type {Element} */
|
||||
get_first_child(root);
|
||||
}
|
||||
}
|
||||
var clone = (
|
||||
/** @type {TemplateNode} */
|
||||
node.cloneNode(true)
|
||||
);
|
||||
if (is_fragment) {
|
||||
var start = (
|
||||
/** @type {TemplateNode} */
|
||||
get_first_child(clone)
|
||||
);
|
||||
var end = (
|
||||
/** @type {TemplateNode} */
|
||||
clone.lastChild
|
||||
);
|
||||
assign_nodes(start, end);
|
||||
} else {
|
||||
assign_nodes(clone, clone);
|
||||
}
|
||||
return clone;
|
||||
};
|
||||
}
|
||||
function from_svg(content, flags) {
|
||||
return from_namespace(content, flags, "svg");
|
||||
}
|
||||
function from_mathml(content, flags) {
|
||||
return from_namespace(content, flags, "math");
|
||||
}
|
||||
function fragment_from_tree(structure, ns) {
|
||||
var fragment = create_fragment();
|
||||
for (var item of structure) {
|
||||
if (typeof item === "string") {
|
||||
fragment.append(create_text(item));
|
||||
continue;
|
||||
}
|
||||
if (item === void 0 || item[0][0] === "/") {
|
||||
fragment.append(create_comment(item ? item[0].slice(3) : ""));
|
||||
continue;
|
||||
}
|
||||
const [name, attributes, ...children] = item;
|
||||
const namespace = name === "svg" ? NAMESPACE_SVG : name === "math" ? NAMESPACE_MATHML : ns;
|
||||
var element = create_element(name, namespace, attributes?.is);
|
||||
for (var key in attributes) {
|
||||
set_attribute(element, key, attributes[key]);
|
||||
}
|
||||
if (children.length > 0) {
|
||||
var target = element.tagName === "TEMPLATE" ? (
|
||||
/** @type {HTMLTemplateElement} */
|
||||
element.content
|
||||
) : element;
|
||||
target.append(
|
||||
fragment_from_tree(children, element.tagName === "foreignObject" ? void 0 : namespace)
|
||||
);
|
||||
}
|
||||
fragment.append(element);
|
||||
}
|
||||
return fragment;
|
||||
}
|
||||
function from_tree(structure, flags) {
|
||||
var is_fragment = (flags & TEMPLATE_FRAGMENT) !== 0;
|
||||
var use_import_node = (flags & TEMPLATE_USE_IMPORT_NODE) !== 0;
|
||||
var node;
|
||||
return () => {
|
||||
if (hydrating) {
|
||||
assign_nodes(hydrate_node, null);
|
||||
return hydrate_node;
|
||||
}
|
||||
if (node === void 0) {
|
||||
const ns = (flags & TEMPLATE_USE_SVG) !== 0 ? NAMESPACE_SVG : (flags & TEMPLATE_USE_MATHML) !== 0 ? NAMESPACE_MATHML : void 0;
|
||||
node = fragment_from_tree(structure, ns);
|
||||
if (!is_fragment) node = /** @type {TemplateNode} */
|
||||
get_first_child(node);
|
||||
}
|
||||
var clone = (
|
||||
/** @type {TemplateNode} */
|
||||
use_import_node || is_firefox ? document.importNode(node, true) : node.cloneNode(true)
|
||||
);
|
||||
if (is_fragment) {
|
||||
var start = (
|
||||
/** @type {TemplateNode} */
|
||||
get_first_child(clone)
|
||||
);
|
||||
var end = (
|
||||
/** @type {TemplateNode} */
|
||||
clone.lastChild
|
||||
);
|
||||
assign_nodes(start, end);
|
||||
} else {
|
||||
assign_nodes(clone, clone);
|
||||
}
|
||||
return clone;
|
||||
};
|
||||
}
|
||||
function with_script(fn) {
|
||||
return () => run_scripts(fn());
|
||||
}
|
||||
function run_scripts(node) {
|
||||
if (hydrating) return node;
|
||||
const is_fragment = node.nodeType === DOCUMENT_FRAGMENT_NODE;
|
||||
const scripts = (
|
||||
/** @type {HTMLElement} */
|
||||
node.tagName === "SCRIPT" ? [
|
||||
/** @type {HTMLScriptElement} */
|
||||
node
|
||||
] : node.querySelectorAll("script")
|
||||
);
|
||||
const effect = (
|
||||
/** @type {Effect & { nodes: EffectNodes }} */
|
||||
active_effect
|
||||
);
|
||||
for (const script of scripts) {
|
||||
const clone = document.createElement("script");
|
||||
for (var attribute of script.attributes) {
|
||||
clone.setAttribute(attribute.name, attribute.value);
|
||||
}
|
||||
clone.textContent = script.textContent;
|
||||
if (is_fragment ? node.firstChild === script : node === script) {
|
||||
effect.nodes.start = clone;
|
||||
}
|
||||
if (is_fragment ? node.lastChild === script : node === script) {
|
||||
effect.nodes.end = clone;
|
||||
}
|
||||
script.replaceWith(clone);
|
||||
}
|
||||
return node;
|
||||
}
|
||||
function text(value = "") {
|
||||
if (!hydrating) {
|
||||
var t = create_text(value + "");
|
||||
assign_nodes(t, t);
|
||||
return t;
|
||||
}
|
||||
var node = hydrate_node;
|
||||
if (node.nodeType !== TEXT_NODE) {
|
||||
node.before(node = create_text());
|
||||
set_hydrate_node(node);
|
||||
}
|
||||
assign_nodes(node, node);
|
||||
return node;
|
||||
}
|
||||
function comment() {
|
||||
if (hydrating) {
|
||||
assign_nodes(hydrate_node, null);
|
||||
return hydrate_node;
|
||||
}
|
||||
var frag = document.createDocumentFragment();
|
||||
var start = document.createComment("");
|
||||
var anchor = create_text();
|
||||
frag.append(start, anchor);
|
||||
assign_nodes(start, anchor);
|
||||
return frag;
|
||||
}
|
||||
function append(anchor, dom) {
|
||||
if (hydrating) {
|
||||
var effect = (
|
||||
/** @type {Effect & { nodes: EffectNodes }} */
|
||||
active_effect
|
||||
);
|
||||
if ((effect.f & EFFECT_RAN) === 0 || effect.nodes.end === null) {
|
||||
effect.nodes.end = hydrate_node;
|
||||
}
|
||||
hydrate_next();
|
||||
return;
|
||||
}
|
||||
if (anchor === null) {
|
||||
return;
|
||||
}
|
||||
anchor.before(
|
||||
/** @type {Node} */
|
||||
dom
|
||||
);
|
||||
}
|
||||
function props_id() {
|
||||
if (hydrating && hydrate_node && hydrate_node.nodeType === COMMENT_NODE && hydrate_node.textContent?.startsWith(`$`)) {
|
||||
const id = hydrate_node.textContent.substring(1);
|
||||
hydrate_next();
|
||||
return id;
|
||||
}
|
||||
(window.__svelte ??= {}).uid ??= 1;
|
||||
return `c${window.__svelte.uid++}`;
|
||||
}
|
||||
|
||||
// node_modules/svelte/src/utils.js
|
||||
var regex_return_characters = /\r/g;
|
||||
function hash(str) {
|
||||
str = str.replace(regex_return_characters, "");
|
||||
let hash2 = 5381;
|
||||
let i = str.length;
|
||||
while (i--) hash2 = (hash2 << 5) - hash2 ^ str.charCodeAt(i);
|
||||
return (hash2 >>> 0).toString(36);
|
||||
}
|
||||
var VOID_ELEMENT_NAMES = [
|
||||
"area",
|
||||
"base",
|
||||
"br",
|
||||
"col",
|
||||
"command",
|
||||
"embed",
|
||||
"hr",
|
||||
"img",
|
||||
"input",
|
||||
"keygen",
|
||||
"link",
|
||||
"meta",
|
||||
"param",
|
||||
"source",
|
||||
"track",
|
||||
"wbr"
|
||||
];
|
||||
function is_void(name) {
|
||||
return VOID_ELEMENT_NAMES.includes(name) || name.toLowerCase() === "!doctype";
|
||||
}
|
||||
function is_capture_event(name) {
|
||||
return name.endsWith("capture") && name !== "gotpointercapture" && name !== "lostpointercapture";
|
||||
}
|
||||
var DELEGATED_EVENTS = [
|
||||
"beforeinput",
|
||||
"click",
|
||||
"change",
|
||||
"dblclick",
|
||||
"contextmenu",
|
||||
"focusin",
|
||||
"focusout",
|
||||
"input",
|
||||
"keydown",
|
||||
"keyup",
|
||||
"mousedown",
|
||||
"mousemove",
|
||||
"mouseout",
|
||||
"mouseover",
|
||||
"mouseup",
|
||||
"pointerdown",
|
||||
"pointermove",
|
||||
"pointerout",
|
||||
"pointerover",
|
||||
"pointerup",
|
||||
"touchend",
|
||||
"touchmove",
|
||||
"touchstart"
|
||||
];
|
||||
function can_delegate_event(event_name) {
|
||||
return DELEGATED_EVENTS.includes(event_name);
|
||||
}
|
||||
var DOM_BOOLEAN_ATTRIBUTES = [
|
||||
"allowfullscreen",
|
||||
"async",
|
||||
"autofocus",
|
||||
"autoplay",
|
||||
"checked",
|
||||
"controls",
|
||||
"default",
|
||||
"disabled",
|
||||
"formnovalidate",
|
||||
"indeterminate",
|
||||
"inert",
|
||||
"ismap",
|
||||
"loop",
|
||||
"multiple",
|
||||
"muted",
|
||||
"nomodule",
|
||||
"novalidate",
|
||||
"open",
|
||||
"playsinline",
|
||||
"readonly",
|
||||
"required",
|
||||
"reversed",
|
||||
"seamless",
|
||||
"selected",
|
||||
"webkitdirectory",
|
||||
"defer",
|
||||
"disablepictureinpicture",
|
||||
"disableremoteplayback"
|
||||
];
|
||||
var ATTRIBUTE_ALIASES = {
|
||||
// no `class: 'className'` because we handle that separately
|
||||
formnovalidate: "formNoValidate",
|
||||
ismap: "isMap",
|
||||
nomodule: "noModule",
|
||||
playsinline: "playsInline",
|
||||
readonly: "readOnly",
|
||||
defaultvalue: "defaultValue",
|
||||
defaultchecked: "defaultChecked",
|
||||
srcobject: "srcObject",
|
||||
novalidate: "noValidate",
|
||||
allowfullscreen: "allowFullscreen",
|
||||
disablepictureinpicture: "disablePictureInPicture",
|
||||
disableremoteplayback: "disableRemotePlayback"
|
||||
};
|
||||
function normalize_attribute(name) {
|
||||
name = name.toLowerCase();
|
||||
return ATTRIBUTE_ALIASES[name] ?? name;
|
||||
}
|
||||
var DOM_PROPERTIES = [
|
||||
...DOM_BOOLEAN_ATTRIBUTES,
|
||||
"formNoValidate",
|
||||
"isMap",
|
||||
"noModule",
|
||||
"playsInline",
|
||||
"readOnly",
|
||||
"value",
|
||||
"volume",
|
||||
"defaultValue",
|
||||
"defaultChecked",
|
||||
"srcObject",
|
||||
"noValidate",
|
||||
"allowFullscreen",
|
||||
"disablePictureInPicture",
|
||||
"disableRemotePlayback"
|
||||
];
|
||||
var PASSIVE_EVENTS = ["touchstart", "touchmove"];
|
||||
function is_passive_event(name) {
|
||||
return PASSIVE_EVENTS.includes(name);
|
||||
}
|
||||
var STATE_CREATION_RUNES = (
|
||||
/** @type {const} */
|
||||
[
|
||||
"$state",
|
||||
"$state.raw",
|
||||
"$derived",
|
||||
"$derived.by"
|
||||
]
|
||||
);
|
||||
var RUNES = (
|
||||
/** @type {const} */
|
||||
[
|
||||
...STATE_CREATION_RUNES,
|
||||
"$state.eager",
|
||||
"$state.snapshot",
|
||||
"$props",
|
||||
"$props.id",
|
||||
"$bindable",
|
||||
"$effect",
|
||||
"$effect.pre",
|
||||
"$effect.tracking",
|
||||
"$effect.root",
|
||||
"$effect.pending",
|
||||
"$inspect",
|
||||
"$inspect().with",
|
||||
"$inspect.trace",
|
||||
"$host"
|
||||
]
|
||||
);
|
||||
var RAW_TEXT_ELEMENTS = (
|
||||
/** @type {const} */
|
||||
["textarea", "script", "style", "title"]
|
||||
);
|
||||
function is_raw_text_element(name) {
|
||||
return RAW_TEXT_ELEMENTS.includes(
|
||||
/** @type {typeof RAW_TEXT_ELEMENTS[number]} */
|
||||
name
|
||||
);
|
||||
}
|
||||
function sanitize_location(location) {
|
||||
return (
|
||||
/** @type {T} */
|
||||
location?.replace(/\//g, "/")
|
||||
);
|
||||
}
|
||||
|
||||
// node_modules/svelte/src/internal/client/render.js
|
||||
var should_intro = true;
|
||||
function set_should_intro(value) {
|
||||
should_intro = value;
|
||||
}
|
||||
function set_text(text2, value) {
|
||||
var str = value == null ? "" : typeof value === "object" ? value + "" : value;
|
||||
if (str !== (text2.__t ??= text2.nodeValue)) {
|
||||
text2.__t = str;
|
||||
text2.nodeValue = str + "";
|
||||
}
|
||||
}
|
||||
function mount(component, options) {
|
||||
return _mount(component, options);
|
||||
}
|
||||
function hydrate(component, options) {
|
||||
init_operations();
|
||||
options.intro = options.intro ?? false;
|
||||
const target = options.target;
|
||||
const was_hydrating = hydrating;
|
||||
const previous_hydrate_node = hydrate_node;
|
||||
try {
|
||||
var anchor = get_first_child(target);
|
||||
while (anchor && (anchor.nodeType !== COMMENT_NODE || /** @type {Comment} */
|
||||
anchor.data !== HYDRATION_START)) {
|
||||
anchor = get_next_sibling(anchor);
|
||||
}
|
||||
if (!anchor) {
|
||||
throw HYDRATION_ERROR;
|
||||
}
|
||||
set_hydrating(true);
|
||||
set_hydrate_node(
|
||||
/** @type {Comment} */
|
||||
anchor
|
||||
);
|
||||
const instance = _mount(component, { ...options, anchor });
|
||||
set_hydrating(false);
|
||||
return (
|
||||
/** @type {Exports} */
|
||||
instance
|
||||
);
|
||||
} catch (error) {
|
||||
if (error instanceof Error && error.message.split("\n").some((line) => line.startsWith("https://svelte.dev/e/"))) {
|
||||
throw error;
|
||||
}
|
||||
if (error !== HYDRATION_ERROR) {
|
||||
console.warn("Failed to hydrate: ", error);
|
||||
}
|
||||
if (options.recover === false) {
|
||||
hydration_failed();
|
||||
}
|
||||
init_operations();
|
||||
clear_text_content(target);
|
||||
set_hydrating(false);
|
||||
return mount(component, options);
|
||||
} finally {
|
||||
set_hydrating(was_hydrating);
|
||||
set_hydrate_node(previous_hydrate_node);
|
||||
}
|
||||
}
|
||||
var document_listeners = /* @__PURE__ */ new Map();
|
||||
function _mount(Component, { target, anchor, props = {}, events, context, intro = true }) {
|
||||
init_operations();
|
||||
var registered_events = /* @__PURE__ */ new Set();
|
||||
var event_handle = (events2) => {
|
||||
for (var i = 0; i < events2.length; i++) {
|
||||
var event_name = events2[i];
|
||||
if (registered_events.has(event_name)) continue;
|
||||
registered_events.add(event_name);
|
||||
var passive2 = is_passive_event(event_name);
|
||||
target.addEventListener(event_name, handle_event_propagation, { passive: passive2 });
|
||||
var n = document_listeners.get(event_name);
|
||||
if (n === void 0) {
|
||||
document.addEventListener(event_name, handle_event_propagation, { passive: passive2 });
|
||||
document_listeners.set(event_name, 1);
|
||||
} else {
|
||||
document_listeners.set(event_name, n + 1);
|
||||
}
|
||||
}
|
||||
};
|
||||
event_handle(array_from(all_registered_events));
|
||||
root_event_handles.add(event_handle);
|
||||
var component = void 0;
|
||||
var unmount2 = component_root(() => {
|
||||
var anchor_node = anchor ?? target.appendChild(create_text());
|
||||
boundary(
|
||||
/** @type {TemplateNode} */
|
||||
anchor_node,
|
||||
{
|
||||
pending: () => {
|
||||
}
|
||||
},
|
||||
(anchor_node2) => {
|
||||
if (context) {
|
||||
push({});
|
||||
var ctx = (
|
||||
/** @type {ComponentContext} */
|
||||
component_context
|
||||
);
|
||||
ctx.c = context;
|
||||
}
|
||||
if (events) {
|
||||
props.$$events = events;
|
||||
}
|
||||
if (hydrating) {
|
||||
assign_nodes(
|
||||
/** @type {TemplateNode} */
|
||||
anchor_node2,
|
||||
null
|
||||
);
|
||||
}
|
||||
should_intro = intro;
|
||||
component = Component(anchor_node2, props) || {};
|
||||
should_intro = true;
|
||||
if (hydrating) {
|
||||
active_effect.nodes.end = hydrate_node;
|
||||
if (hydrate_node === null || hydrate_node.nodeType !== COMMENT_NODE || /** @type {Comment} */
|
||||
hydrate_node.data !== HYDRATION_END) {
|
||||
hydration_mismatch();
|
||||
throw HYDRATION_ERROR;
|
||||
}
|
||||
}
|
||||
if (context) {
|
||||
pop();
|
||||
}
|
||||
}
|
||||
);
|
||||
return () => {
|
||||
for (var event_name of registered_events) {
|
||||
target.removeEventListener(event_name, handle_event_propagation);
|
||||
var n = (
|
||||
/** @type {number} */
|
||||
document_listeners.get(event_name)
|
||||
);
|
||||
if (--n === 0) {
|
||||
document.removeEventListener(event_name, handle_event_propagation);
|
||||
document_listeners.delete(event_name);
|
||||
} else {
|
||||
document_listeners.set(event_name, n);
|
||||
}
|
||||
}
|
||||
root_event_handles.delete(event_handle);
|
||||
if (anchor_node !== anchor) {
|
||||
anchor_node.parentNode?.removeChild(anchor_node);
|
||||
}
|
||||
};
|
||||
});
|
||||
mounted_components.set(component, unmount2);
|
||||
return component;
|
||||
}
|
||||
var mounted_components = /* @__PURE__ */ new WeakMap();
|
||||
function unmount(component, options) {
|
||||
const fn = mounted_components.get(component);
|
||||
if (fn) {
|
||||
mounted_components.delete(component);
|
||||
return fn(options);
|
||||
}
|
||||
if (true_default) {
|
||||
if (STATE_SYMBOL in component) {
|
||||
state_proxy_unmount();
|
||||
} else {
|
||||
lifecycle_double_unmount();
|
||||
}
|
||||
}
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
// node_modules/svelte/src/internal/client/dom/legacy/event-modifiers.js
|
||||
function trusted(fn) {
|
||||
return function(...args) {
|
||||
var event = (
|
||||
/** @type {Event} */
|
||||
args[0]
|
||||
);
|
||||
if (event.isTrusted) {
|
||||
fn?.apply(this, args);
|
||||
}
|
||||
};
|
||||
}
|
||||
function self(fn) {
|
||||
return function(...args) {
|
||||
var event = (
|
||||
/** @type {Event} */
|
||||
args[0]
|
||||
);
|
||||
if (event.target === this) {
|
||||
fn?.apply(this, args);
|
||||
}
|
||||
};
|
||||
}
|
||||
function stopPropagation(fn) {
|
||||
return function(...args) {
|
||||
var event = (
|
||||
/** @type {Event} */
|
||||
args[0]
|
||||
);
|
||||
event.stopPropagation();
|
||||
return fn?.apply(this, args);
|
||||
};
|
||||
}
|
||||
function once(fn) {
|
||||
var ran = false;
|
||||
return function(...args) {
|
||||
if (ran) return;
|
||||
ran = true;
|
||||
return fn?.apply(this, args);
|
||||
};
|
||||
}
|
||||
function stopImmediatePropagation(fn) {
|
||||
return function(...args) {
|
||||
var event = (
|
||||
/** @type {Event} */
|
||||
args[0]
|
||||
);
|
||||
event.stopImmediatePropagation();
|
||||
return fn?.apply(this, args);
|
||||
};
|
||||
}
|
||||
function preventDefault(fn) {
|
||||
return function(...args) {
|
||||
var event = (
|
||||
/** @type {Event} */
|
||||
args[0]
|
||||
);
|
||||
event.preventDefault();
|
||||
return fn?.apply(this, args);
|
||||
};
|
||||
}
|
||||
function passive(node, [event, handler]) {
|
||||
user_pre_effect(() => {
|
||||
return on(node, event, handler() ?? noop, {
|
||||
passive: true
|
||||
});
|
||||
});
|
||||
}
|
||||
function nonpassive(node, [event, handler]) {
|
||||
user_pre_effect(() => {
|
||||
return on(node, event, handler() ?? noop, {
|
||||
passive: false
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// node_modules/svelte/src/legacy/legacy-client.js
|
||||
function createClassComponent(options) {
|
||||
return new Svelte4Component(options);
|
||||
}
|
||||
function asClassComponent(component) {
|
||||
return class extends Svelte4Component {
|
||||
/** @param {any} options */
|
||||
constructor(options) {
|
||||
super({
|
||||
component,
|
||||
...options
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
var Svelte4Component = class {
|
||||
/** @type {any} */
|
||||
#events;
|
||||
/** @type {Record<string, any>} */
|
||||
#instance;
|
||||
/**
|
||||
* @param {ComponentConstructorOptions & {
|
||||
* component: any;
|
||||
* }} options
|
||||
*/
|
||||
constructor(options) {
|
||||
var sources = /* @__PURE__ */ new Map();
|
||||
var add_source = (key, value) => {
|
||||
var s = mutable_source(value, false, false);
|
||||
sources.set(key, s);
|
||||
return s;
|
||||
};
|
||||
const props = new Proxy(
|
||||
{ ...options.props || {}, $$events: {} },
|
||||
{
|
||||
get(target, prop) {
|
||||
return get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
||||
},
|
||||
has(target, prop) {
|
||||
if (prop === LEGACY_PROPS) return true;
|
||||
get(sources.get(prop) ?? add_source(prop, Reflect.get(target, prop)));
|
||||
return Reflect.has(target, prop);
|
||||
},
|
||||
set(target, prop, value) {
|
||||
set(sources.get(prop) ?? add_source(prop, value), value);
|
||||
return Reflect.set(target, prop, value);
|
||||
}
|
||||
}
|
||||
);
|
||||
this.#instance = (options.hydrate ? hydrate : mount)(options.component, {
|
||||
target: options.target,
|
||||
anchor: options.anchor,
|
||||
props,
|
||||
context: options.context,
|
||||
intro: options.intro ?? false,
|
||||
recover: options.recover
|
||||
});
|
||||
if (!async_mode_flag && (!options?.props?.$$host || options.sync === false)) {
|
||||
flushSync();
|
||||
}
|
||||
this.#events = props.$$events;
|
||||
for (const key of Object.keys(this.#instance)) {
|
||||
if (key === "$set" || key === "$destroy" || key === "$on") continue;
|
||||
define_property(this, key, {
|
||||
get() {
|
||||
return this.#instance[key];
|
||||
},
|
||||
/** @param {any} value */
|
||||
set(value) {
|
||||
this.#instance[key] = value;
|
||||
},
|
||||
enumerable: true
|
||||
});
|
||||
}
|
||||
this.#instance.$set = /** @param {Record<string, any>} next */
|
||||
(next) => {
|
||||
Object.assign(props, next);
|
||||
};
|
||||
this.#instance.$destroy = () => {
|
||||
unmount(this.#instance);
|
||||
};
|
||||
}
|
||||
/** @param {Record<string, any>} props */
|
||||
$set(props) {
|
||||
this.#instance.$set(props);
|
||||
}
|
||||
/**
|
||||
* @param {string} event
|
||||
* @param {(...args: any[]) => any} callback
|
||||
* @returns {any}
|
||||
*/
|
||||
$on(event, callback) {
|
||||
this.#events[event] = this.#events[event] || [];
|
||||
const cb = (...args) => callback.call(this, ...args);
|
||||
this.#events[event].push(cb);
|
||||
return () => {
|
||||
this.#events[event] = this.#events[event].filter(
|
||||
/** @param {any} fn */
|
||||
(fn) => fn !== cb
|
||||
);
|
||||
};
|
||||
}
|
||||
$destroy() {
|
||||
this.#instance.$destroy();
|
||||
}
|
||||
};
|
||||
function run(fn) {
|
||||
user_pre_effect(() => {
|
||||
fn();
|
||||
var effect = (
|
||||
/** @type {import('#client').Effect} */
|
||||
active_effect
|
||||
);
|
||||
if ((effect.f & DIRTY) !== 0) {
|
||||
let filename = "a file (we can't know which one)";
|
||||
if (true_default) {
|
||||
filename = dev_current_component_function?.[FILENAME] ?? filename;
|
||||
}
|
||||
legacy_recursive_reactive_block(filename);
|
||||
set_signal_status(effect, MAYBE_DIRTY);
|
||||
}
|
||||
});
|
||||
}
|
||||
function handlers(...handlers2) {
|
||||
return function(event) {
|
||||
const { stopImmediatePropagation: stopImmediatePropagation2 } = event;
|
||||
let stopped = false;
|
||||
event.stopImmediatePropagation = () => {
|
||||
stopped = true;
|
||||
stopImmediatePropagation2.call(event);
|
||||
};
|
||||
const errors = [];
|
||||
for (const handler of handlers2) {
|
||||
try {
|
||||
handler?.call(this, event);
|
||||
} catch (e) {
|
||||
errors.push(e);
|
||||
}
|
||||
if (stopped) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (let error of errors) {
|
||||
queueMicrotask(() => {
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
function createBubbler() {
|
||||
const active_component_context = component_context;
|
||||
if (active_component_context === null) {
|
||||
lifecycle_outside_component("createBubbler");
|
||||
}
|
||||
return (type) => (event) => {
|
||||
const events = (
|
||||
/** @type {Record<string, Function | Function[]>} */
|
||||
active_component_context.s.$$events?.[
|
||||
/** @type {any} */
|
||||
type
|
||||
]
|
||||
);
|
||||
if (events) {
|
||||
const callbacks = is_array(events) ? events.slice() : [events];
|
||||
for (const fn of callbacks) {
|
||||
fn.call(active_component_context.x, event);
|
||||
}
|
||||
return !event.defaultPrevented;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
export {
|
||||
hash,
|
||||
is_void,
|
||||
is_capture_event,
|
||||
can_delegate_event,
|
||||
normalize_attribute,
|
||||
is_raw_text_element,
|
||||
sanitize_location,
|
||||
create_fragment_from_html,
|
||||
assign_nodes,
|
||||
from_html,
|
||||
from_svg,
|
||||
from_mathml,
|
||||
from_tree,
|
||||
with_script,
|
||||
text,
|
||||
comment,
|
||||
append,
|
||||
props_id,
|
||||
should_intro,
|
||||
set_should_intro,
|
||||
set_text,
|
||||
mount,
|
||||
hydrate,
|
||||
unmount,
|
||||
trusted,
|
||||
self,
|
||||
stopPropagation,
|
||||
once,
|
||||
stopImmediatePropagation,
|
||||
preventDefault,
|
||||
passive,
|
||||
nonpassive,
|
||||
createClassComponent,
|
||||
asClassComponent,
|
||||
run,
|
||||
handlers,
|
||||
createBubbler
|
||||
};
|
||||
//# sourceMappingURL=chunk-DL7TWQ45.js.map
|
||||
+7
File diff suppressed because one or more lines are too long
+686
@@ -0,0 +1,686 @@
|
||||
import {
|
||||
ReactiveValue
|
||||
} from "./chunk-6VYHLW26.js";
|
||||
import {
|
||||
active_reaction,
|
||||
get,
|
||||
increment,
|
||||
label,
|
||||
on,
|
||||
set,
|
||||
set_active_reaction,
|
||||
source,
|
||||
state,
|
||||
tag,
|
||||
update_version,
|
||||
user_derived
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import {
|
||||
true_default
|
||||
} from "./chunk-VZQZA5WB.js";
|
||||
|
||||
// node_modules/svelte/src/reactivity/date.js
|
||||
var inited = false;
|
||||
var SvelteDate = class _SvelteDate extends Date {
|
||||
#time = state(super.getTime());
|
||||
/** @type {Map<keyof Date, Source<unknown>>} */
|
||||
#deriveds = /* @__PURE__ */ new Map();
|
||||
#reaction = active_reaction;
|
||||
/** @param {any[]} params */
|
||||
constructor(...params) {
|
||||
super(...params);
|
||||
if (true_default) {
|
||||
tag(this.#time, "SvelteDate.#time");
|
||||
}
|
||||
if (!inited) this.#init();
|
||||
}
|
||||
#init() {
|
||||
inited = true;
|
||||
var proto = _SvelteDate.prototype;
|
||||
var date_proto = Date.prototype;
|
||||
var methods = (
|
||||
/** @type {Array<keyof Date & string>} */
|
||||
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 = user_derived(() => {
|
||||
get(this.#time);
|
||||
return date_proto[method].apply(this, args);
|
||||
});
|
||||
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
|
||||
var read_methods = ["forEach", "isDisjointFrom", "isSubsetOf", "isSupersetOf"];
|
||||
var set_like_methods = ["difference", "intersection", "symmetricDifference", "union"];
|
||||
var inited2 = false;
|
||||
var SvelteSet = class _SvelteSet extends Set {
|
||||
/** @type {Map<T, Source<boolean>>} */
|
||||
#sources = /* @__PURE__ */ new Map();
|
||||
#version = state(0);
|
||||
#size = state(0);
|
||||
#update_version = update_version || -1;
|
||||
/**
|
||||
* @param {Iterable<T> | null | undefined} [value]
|
||||
*/
|
||||
constructor(value) {
|
||||
super();
|
||||
if (true_default) {
|
||||
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 (!inited2) 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 ? state(value) : source(value);
|
||||
}
|
||||
// We init as part of the first instance so that we can treeshake this class
|
||||
#init() {
|
||||
inited2 = 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 set2 = (
|
||||
/** @type {Set<T>} */
|
||||
set_proto[method].apply(this, v)
|
||||
);
|
||||
return new _SvelteSet(set2);
|
||||
};
|
||||
}
|
||||
}
|
||||
/** @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);
|
||||
if (true_default) {
|
||||
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
|
||||
var SvelteMap = class extends Map {
|
||||
/** @type {Map<K, Source<number>>} */
|
||||
#sources = /* @__PURE__ */ new Map();
|
||||
#version = state(0);
|
||||
#size = state(0);
|
||||
#update_version = update_version || -1;
|
||||
/**
|
||||
* @param {Iterable<readonly [K, V]> | null | undefined} [value]
|
||||
*/
|
||||
constructor(value) {
|
||||
super();
|
||||
if (true_default) {
|
||||
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 ? state(value) : source(value);
|
||||
}
|
||||
/** @param {K} key */
|
||||
has(key) {
|
||||
var sources = this.#sources;
|
||||
var s = sources.get(key);
|
||||
if (s === void 0) {
|
||||
var ret = super.get(key);
|
||||
if (ret !== void 0) {
|
||||
s = this.#source(0);
|
||||
if (true_default) {
|
||||
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) {
|
||||
var ret = super.get(key);
|
||||
if (ret !== void 0) {
|
||||
s = this.#source(0);
|
||||
if (true_default) {
|
||||
tag(s, `SvelteMap get(${label(key)})`);
|
||||
}
|
||||
sources.set(key, s);
|
||||
} else {
|
||||
get(this.#version);
|
||||
return void 0;
|
||||
}
|
||||
}
|
||||
get(s);
|
||||
return super.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);
|
||||
if (true_default) {
|
||||
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);
|
||||
var needs_version_increase = v_reactions === null || !s.reactions?.every(
|
||||
(r) => (
|
||||
/** @type {NonNullable<typeof v_reactions>} */
|
||||
v_reactions.has(r)
|
||||
)
|
||||
);
|
||||
if (needs_version_increase) {
|
||||
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(this.#size, super.size);
|
||||
set(s, -1);
|
||||
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);
|
||||
if (true_default) {
|
||||
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 = /* @__PURE__ */ Symbol();
|
||||
var SvelteURLSearchParams = class extends URLSearchParams {
|
||||
#version = true_default ? tag(state(0), "SvelteURLSearchParams version") : state(0);
|
||||
#url = get_current_url();
|
||||
#updating = false;
|
||||
#update_url() {
|
||||
if (!this.#url || this.#updating) return;
|
||||
this.#updating = true;
|
||||
const search = this.toString();
|
||||
this.#url.search = search && `?${search}`;
|
||||
this.#updating = false;
|
||||
}
|
||||
/**
|
||||
* @param {URLSearchParams} params
|
||||
* @internal
|
||||
*/
|
||||
[REPLACE](params) {
|
||||
if (this.#updating) 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 {string} name
|
||||
* @param {string} value
|
||||
* @returns {void}
|
||||
*/
|
||||
set(name, value) {
|
||||
var previous = super.getAll(name).join("");
|
||||
super.set(name, value);
|
||||
if (previous !== super.getAll(name).join("")) {
|
||||
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
|
||||
var current_url = null;
|
||||
function get_current_url() {
|
||||
return current_url;
|
||||
}
|
||||
var SvelteURL = class extends URL {
|
||||
#protocol = state(super.protocol);
|
||||
#username = state(super.username);
|
||||
#password = state(super.password);
|
||||
#hostname = state(super.hostname);
|
||||
#port = state(super.port);
|
||||
#pathname = state(super.pathname);
|
||||
#hash = state(super.hash);
|
||||
#search = state(super.search);
|
||||
#searchParams;
|
||||
/**
|
||||
* @param {string | URL} url
|
||||
* @param {string | URL} [base]
|
||||
*/
|
||||
constructor(url, base) {
|
||||
url = new URL(url, base);
|
||||
super(url);
|
||||
if (true_default) {
|
||||
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);
|
||||
}
|
||||
get search() {
|
||||
return get(this.#search);
|
||||
}
|
||||
set search(value) {
|
||||
super.search = value;
|
||||
set(this.#search, value);
|
||||
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"]);
|
||||
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) || // we need to use `some` here because technically this `window.matchMedia('random,screen')` still returns true
|
||||
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 {
|
||||
SvelteDate,
|
||||
SvelteSet,
|
||||
SvelteMap,
|
||||
SvelteURLSearchParams,
|
||||
SvelteURL,
|
||||
MediaQuery
|
||||
};
|
||||
//# sourceMappingURL=chunk-GOC6LLKR.js.map
|
||||
+7
File diff suppressed because one or more lines are too long
+23
@@ -0,0 +1,23 @@
|
||||
// node_modules/svelte/src/internal/flags/index.js
|
||||
var async_mode_flag = false;
|
||||
var legacy_mode_flag = false;
|
||||
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 {
|
||||
async_mode_flag,
|
||||
legacy_mode_flag,
|
||||
tracing_mode_flag,
|
||||
enable_async_mode_flag,
|
||||
enable_legacy_mode_flag,
|
||||
enable_tracing_mode_flag
|
||||
};
|
||||
//# sourceMappingURL=chunk-OHYQYV5R.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"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": ";AACO,IAAI,kBAAkB;AAEtB,IAAI,mBAAmB;AAEvB,IAAI,oBAAoB;AAExB,SAAS,yBAAyB;AACxC,oBAAkB;AACnB;AAOO,SAAS,0BAA0B;AACzC,qBAAmB;AACpB;AAEO,SAAS,2BAA2B;AAC1C,sBAAoB;AACrB;",
|
||||
"names": []
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
// 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;
|
||||
}
|
||||
var clsx_default = clsx;
|
||||
|
||||
export {
|
||||
clsx,
|
||||
clsx_default
|
||||
};
|
||||
//# sourceMappingURL=chunk-U7P2NEEE.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../clsx/dist/clsx.mjs"],
|
||||
"sourcesContent": ["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}export 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 default clsx;"],
|
||||
"mappings": ";AAAA,SAAS,EAAE,GAAE;AAAC,MAAI,GAAE,GAAE,IAAE;AAAG,MAAG,YAAU,OAAO,KAAG,YAAU,OAAO,EAAE,MAAG;AAAA,WAAU,YAAU,OAAO,EAAE,KAAG,MAAM,QAAQ,CAAC,GAAE;AAAC,QAAI,IAAE,EAAE;AAAO,SAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,CAAC,MAAI,IAAE,EAAE,EAAE,CAAC,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAA,EAAE,MAAM,MAAI,KAAK,EAAE,GAAE,CAAC,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;AAAQ,SAAS,OAAM;AAAC,WAAQ,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,CAAC,OAAK,IAAE,EAAE,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;AAAC,IAAO,eAAQ;",
|
||||
"names": []
|
||||
}
|
||||
+4487
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+213
@@ -0,0 +1,213 @@
|
||||
// node_modules/esm-env/true.js
|
||||
var true_default = true;
|
||||
|
||||
// node_modules/svelte/src/internal/client/warnings.js
|
||||
var bold = "font-weight: bold";
|
||||
var normal = "font-weight: normal";
|
||||
function assignment_value_stale(property, location) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] assignment_value_stale
|
||||
%cAssignment to \`${property}\` property (${location}) will evaluate to the right-hand side, not the value of \`${property}\` following the assignment. This may result in unexpected behaviour.
|
||||
https://svelte.dev/e/assignment_value_stale`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/assignment_value_stale`);
|
||||
}
|
||||
}
|
||||
function await_waterfall(name, location) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] await_waterfall
|
||||
%cAn async derived, \`${name}\` (${location}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app
|
||||
https://svelte.dev/e/await_waterfall`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/await_waterfall`);
|
||||
}
|
||||
}
|
||||
function binding_property_non_reactive(binding, location) {
|
||||
if (true_default) {
|
||||
console.warn(
|
||||
`%c[svelte] binding_property_non_reactive
|
||||
%c${location ? `\`${binding}\` (${location}) is binding to a non-reactive property` : `\`${binding}\` is binding to a non-reactive property`}
|
||||
https://svelte.dev/e/binding_property_non_reactive`,
|
||||
bold,
|
||||
normal
|
||||
);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/binding_property_non_reactive`);
|
||||
}
|
||||
}
|
||||
function console_log_state(method) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] console_log_state
|
||||
%cYour \`console.${method}\` contained \`$state\` proxies. Consider using \`$inspect(...)\` or \`$state.snapshot(...)\` instead
|
||||
https://svelte.dev/e/console_log_state`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/console_log_state`);
|
||||
}
|
||||
}
|
||||
function event_handler_invalid(handler, suggestion) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] event_handler_invalid
|
||||
%c${handler} should be a function. Did you mean to ${suggestion}?
|
||||
https://svelte.dev/e/event_handler_invalid`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/event_handler_invalid`);
|
||||
}
|
||||
}
|
||||
function hydratable_missing_but_expected(key) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] hydratable_missing_but_expected
|
||||
%cExpected to find a hydratable with key \`${key}\` during hydration, but did not.
|
||||
https://svelte.dev/e/hydratable_missing_but_expected`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/hydratable_missing_but_expected`);
|
||||
}
|
||||
}
|
||||
function hydration_attribute_changed(attribute, html, value) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] hydration_attribute_changed
|
||||
%cThe \`${attribute}\` attribute on \`${html}\` changed its value between server and client renders. The client value, \`${value}\`, will be ignored in favour of the server value
|
||||
https://svelte.dev/e/hydration_attribute_changed`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/hydration_attribute_changed`);
|
||||
}
|
||||
}
|
||||
function hydration_html_changed(location) {
|
||||
if (true_default) {
|
||||
console.warn(
|
||||
`%c[svelte] hydration_html_changed
|
||||
%c${location ? `The value of an \`{@html ...}\` block ${location} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
||||
https://svelte.dev/e/hydration_html_changed`,
|
||||
bold,
|
||||
normal
|
||||
);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/hydration_html_changed`);
|
||||
}
|
||||
}
|
||||
function hydration_mismatch(location) {
|
||||
if (true_default) {
|
||||
console.warn(
|
||||
`%c[svelte] hydration_mismatch
|
||||
%c${location ? `Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}` : "Hydration failed because the initial UI does not match what was rendered on the server"}
|
||||
https://svelte.dev/e/hydration_mismatch`,
|
||||
bold,
|
||||
normal
|
||||
);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/hydration_mismatch`);
|
||||
}
|
||||
}
|
||||
function invalid_raw_snippet_render() {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] invalid_raw_snippet_render
|
||||
%cThe \`render\` function passed to \`createRawSnippet\` should return HTML for a single element
|
||||
https://svelte.dev/e/invalid_raw_snippet_render`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/invalid_raw_snippet_render`);
|
||||
}
|
||||
}
|
||||
function legacy_recursive_reactive_block(filename) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] legacy_recursive_reactive_block
|
||||
%cDetected a migrated \`$:\` reactive block in \`${filename}\` that both accesses and updates the same reactive value. This may cause recursive updates when converted to an \`$effect\`.
|
||||
https://svelte.dev/e/legacy_recursive_reactive_block`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/legacy_recursive_reactive_block`);
|
||||
}
|
||||
}
|
||||
function lifecycle_double_unmount() {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] lifecycle_double_unmount
|
||||
%cTried to unmount a component that was not mounted
|
||||
https://svelte.dev/e/lifecycle_double_unmount`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/lifecycle_double_unmount`);
|
||||
}
|
||||
}
|
||||
function ownership_invalid_binding(parent, prop, child, owner) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] ownership_invalid_binding
|
||||
%c${parent} passed property \`${prop}\` to ${child} with \`bind:\`, but its parent component ${owner} did not declare \`${prop}\` as a binding. Consider creating a binding between ${owner} and ${parent} (e.g. \`bind:${prop}={...}\` instead of \`${prop}={...}\`)
|
||||
https://svelte.dev/e/ownership_invalid_binding`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/ownership_invalid_binding`);
|
||||
}
|
||||
}
|
||||
function ownership_invalid_mutation(name, location, prop, parent) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] ownership_invalid_mutation
|
||||
%cMutating unbound props (\`${name}\`, at ${location}) is strongly discouraged. Consider using \`bind:${prop}={...}\` in ${parent} (or using a callback) instead
|
||||
https://svelte.dev/e/ownership_invalid_mutation`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/ownership_invalid_mutation`);
|
||||
}
|
||||
}
|
||||
function select_multiple_invalid_value() {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] select_multiple_invalid_value
|
||||
%cThe \`value\` property of a \`<select multiple>\` element should be an array, but it received a non-array value. The selection will be kept as is.
|
||||
https://svelte.dev/e/select_multiple_invalid_value`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/select_multiple_invalid_value`);
|
||||
}
|
||||
}
|
||||
function state_proxy_equality_mismatch(operator) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
||||
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results
|
||||
https://svelte.dev/e/state_proxy_equality_mismatch`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/state_proxy_equality_mismatch`);
|
||||
}
|
||||
}
|
||||
function state_proxy_unmount() {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] state_proxy_unmount
|
||||
%cTried to unmount a state proxy, rather than a component
|
||||
https://svelte.dev/e/state_proxy_unmount`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/state_proxy_unmount`);
|
||||
}
|
||||
}
|
||||
function svelte_boundary_reset_noop() {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] svelte_boundary_reset_noop
|
||||
%cA \`<svelte:boundary>\` \`reset\` function only resets the boundary the first time it is called
|
||||
https://svelte.dev/e/svelte_boundary_reset_noop`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`);
|
||||
}
|
||||
}
|
||||
function transition_slide_display(value) {
|
||||
if (true_default) {
|
||||
console.warn(`%c[svelte] transition_slide_display
|
||||
%cThe \`slide\` transition does not work correctly for elements with \`display: ${value}\`
|
||||
https://svelte.dev/e/transition_slide_display`, bold, normal);
|
||||
} else {
|
||||
console.warn(`https://svelte.dev/e/transition_slide_display`);
|
||||
}
|
||||
}
|
||||
|
||||
export {
|
||||
true_default,
|
||||
assignment_value_stale,
|
||||
await_waterfall,
|
||||
binding_property_non_reactive,
|
||||
console_log_state,
|
||||
event_handler_invalid,
|
||||
hydratable_missing_but_expected,
|
||||
hydration_attribute_changed,
|
||||
hydration_html_changed,
|
||||
hydration_mismatch,
|
||||
invalid_raw_snippet_render,
|
||||
legacy_recursive_reactive_block,
|
||||
lifecycle_double_unmount,
|
||||
ownership_invalid_binding,
|
||||
ownership_invalid_mutation,
|
||||
select_multiple_invalid_value,
|
||||
state_proxy_equality_mismatch,
|
||||
state_proxy_unmount,
|
||||
svelte_boundary_reset_noop,
|
||||
transition_slide_display
|
||||
};
|
||||
//# sourceMappingURL=chunk-VZQZA5WB.js.map
|
||||
+7
File diff suppressed because one or more lines are too long
+148
@@ -0,0 +1,148 @@
|
||||
// node_modules/svelte/src/easing/index.js
|
||||
function linear(t) {
|
||||
return t;
|
||||
}
|
||||
function backInOut(t) {
|
||||
const s = 1.70158 * 1.525;
|
||||
if ((t *= 2) < 1) return 0.5 * (t * t * ((s + 1) * t - s));
|
||||
return 0.5 * ((t -= 2) * t * ((s + 1) * t + s) + 2);
|
||||
}
|
||||
function backIn(t) {
|
||||
const s = 1.70158;
|
||||
return t * t * ((s + 1) * t - s);
|
||||
}
|
||||
function backOut(t) {
|
||||
const s = 1.70158;
|
||||
return --t * t * ((s + 1) * t + s) + 1;
|
||||
}
|
||||
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;
|
||||
}
|
||||
function bounceInOut(t) {
|
||||
return t < 0.5 ? 0.5 * (1 - bounceOut(1 - t * 2)) : 0.5 * bounceOut(t * 2 - 1) + 0.5;
|
||||
}
|
||||
function bounceIn(t) {
|
||||
return 1 - bounceOut(1 - t);
|
||||
}
|
||||
function circInOut(t) {
|
||||
if ((t *= 2) < 1) return -0.5 * (Math.sqrt(1 - t * t) - 1);
|
||||
return 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
|
||||
}
|
||||
function circIn(t) {
|
||||
return 1 - Math.sqrt(1 - t * t);
|
||||
}
|
||||
function circOut(t) {
|
||||
return Math.sqrt(1 - --t * t);
|
||||
}
|
||||
function cubicInOut(t) {
|
||||
return t < 0.5 ? 4 * t * t * t : 0.5 * Math.pow(2 * t - 2, 3) + 1;
|
||||
}
|
||||
function cubicIn(t) {
|
||||
return t * t * t;
|
||||
}
|
||||
function cubicOut(t) {
|
||||
const f = t - 1;
|
||||
return f * f * f + 1;
|
||||
}
|
||||
function elasticInOut(t) {
|
||||
return t < 0.5 ? 0.5 * Math.sin(13 * Math.PI / 2 * 2 * t) * Math.pow(2, 10 * (2 * t - 1)) : 0.5 * Math.sin(-13 * Math.PI / 2 * (2 * t - 1 + 1)) * Math.pow(2, -10 * (2 * t - 1)) + 1;
|
||||
}
|
||||
function elasticIn(t) {
|
||||
return Math.sin(13 * t * Math.PI / 2) * Math.pow(2, 10 * (t - 1));
|
||||
}
|
||||
function elasticOut(t) {
|
||||
return Math.sin(-13 * (t + 1) * Math.PI / 2) * Math.pow(2, -10 * t) + 1;
|
||||
}
|
||||
function expoInOut(t) {
|
||||
return t === 0 || t === 1 ? t : t < 0.5 ? 0.5 * Math.pow(2, 20 * t - 10) : -0.5 * Math.pow(2, 10 - t * 20) + 1;
|
||||
}
|
||||
function expoIn(t) {
|
||||
return t === 0 ? t : Math.pow(2, 10 * (t - 1));
|
||||
}
|
||||
function expoOut(t) {
|
||||
return t === 1 ? t : 1 - Math.pow(2, -10 * t);
|
||||
}
|
||||
function quadInOut(t) {
|
||||
t /= 0.5;
|
||||
if (t < 1) return 0.5 * t * t;
|
||||
t--;
|
||||
return -0.5 * (t * (t - 2) - 1);
|
||||
}
|
||||
function quadIn(t) {
|
||||
return t * t;
|
||||
}
|
||||
function quadOut(t) {
|
||||
return -t * (t - 2);
|
||||
}
|
||||
function quartInOut(t) {
|
||||
return t < 0.5 ? 8 * Math.pow(t, 4) : -8 * Math.pow(t - 1, 4) + 1;
|
||||
}
|
||||
function quartIn(t) {
|
||||
return Math.pow(t, 4);
|
||||
}
|
||||
function quartOut(t) {
|
||||
return Math.pow(t - 1, 3) * (1 - t) + 1;
|
||||
}
|
||||
function quintInOut(t) {
|
||||
if ((t *= 2) < 1) return 0.5 * t * t * t * t * t;
|
||||
return 0.5 * ((t -= 2) * t * t * t * t + 2);
|
||||
}
|
||||
function quintIn(t) {
|
||||
return t * t * t * t * t;
|
||||
}
|
||||
function quintOut(t) {
|
||||
return --t * t * t * t * t + 1;
|
||||
}
|
||||
function sineInOut(t) {
|
||||
return -0.5 * (Math.cos(Math.PI * t) - 1);
|
||||
}
|
||||
function sineIn(t) {
|
||||
const v = Math.cos(t * Math.PI * 0.5);
|
||||
if (Math.abs(v) < 1e-14) return 1;
|
||||
else return 1 - v;
|
||||
}
|
||||
function sineOut(t) {
|
||||
return Math.sin(t * Math.PI / 2);
|
||||
}
|
||||
|
||||
export {
|
||||
linear,
|
||||
backInOut,
|
||||
backIn,
|
||||
backOut,
|
||||
bounceOut,
|
||||
bounceInOut,
|
||||
bounceIn,
|
||||
circInOut,
|
||||
circIn,
|
||||
circOut,
|
||||
cubicInOut,
|
||||
cubicIn,
|
||||
cubicOut,
|
||||
elasticInOut,
|
||||
elasticIn,
|
||||
elasticOut,
|
||||
expoInOut,
|
||||
expoIn,
|
||||
expoOut,
|
||||
quadInOut,
|
||||
quadIn,
|
||||
quadOut,
|
||||
quartInOut,
|
||||
quartIn,
|
||||
quartOut,
|
||||
quintInOut,
|
||||
quintIn,
|
||||
quintOut,
|
||||
sineInOut,
|
||||
sineIn,
|
||||
sineOut
|
||||
};
|
||||
//# sourceMappingURL=chunk-YERFD2CZ.js.map
|
||||
+7
File diff suppressed because one or more lines are too long
+3
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"type": "module"
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
import {
|
||||
afterUpdate,
|
||||
beforeUpdate,
|
||||
createEventDispatcher,
|
||||
createRawSnippet,
|
||||
getAbortSignal,
|
||||
hydratable,
|
||||
onDestroy,
|
||||
onMount
|
||||
} from "./chunk-UW3ABHAC.js";
|
||||
import "./chunk-U7P2NEEE.js";
|
||||
import {
|
||||
hydrate,
|
||||
mount,
|
||||
unmount
|
||||
} from "./chunk-DL7TWQ45.js";
|
||||
import {
|
||||
createContext,
|
||||
flushSync,
|
||||
fork,
|
||||
getAllContexts,
|
||||
getContext,
|
||||
hasContext,
|
||||
setContext,
|
||||
settled,
|
||||
tick,
|
||||
untrack
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.js";
|
||||
export {
|
||||
afterUpdate,
|
||||
beforeUpdate,
|
||||
createContext,
|
||||
createEventDispatcher,
|
||||
createRawSnippet,
|
||||
flushSync,
|
||||
fork,
|
||||
getAbortSignal,
|
||||
getAllContexts,
|
||||
getContext,
|
||||
hasContext,
|
||||
hydratable,
|
||||
hydrate,
|
||||
mount,
|
||||
onDestroy,
|
||||
onMount,
|
||||
setContext,
|
||||
settled,
|
||||
tick,
|
||||
unmount,
|
||||
untrack
|
||||
};
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import {
|
||||
clsx,
|
||||
clsx_default
|
||||
} from "./chunk-U7P2NEEE.js";
|
||||
export {
|
||||
clsx,
|
||||
clsx_default as default
|
||||
};
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
import {
|
||||
cubicOut
|
||||
} from "./chunk-YERFD2CZ.js";
|
||||
|
||||
// node_modules/svelte/src/animate/index.js
|
||||
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) => {
|
||||
var x = u * dx;
|
||||
var y = u * dy;
|
||||
var sx2 = t + u * dsx;
|
||||
var sy2 = t + u * dsy;
|
||||
return `transform: ${transform} translate(${x}px, ${y}px) scale(${sx2}, ${sy2});`;
|
||||
}
|
||||
};
|
||||
}
|
||||
function get_zoom(element) {
|
||||
if ("currentCSSZoom" in element) {
|
||||
return (
|
||||
/** @type {number} */
|
||||
element.currentCSSZoom
|
||||
);
|
||||
}
|
||||
var current = element;
|
||||
var zoom = 1;
|
||||
while (current !== null) {
|
||||
zoom *= +getComputedStyle(current).zoom;
|
||||
current = /** @type {Element | null} */
|
||||
current.parentElement;
|
||||
}
|
||||
return zoom;
|
||||
}
|
||||
export {
|
||||
flip
|
||||
};
|
||||
//# sourceMappingURL=svelte_animate.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"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": ";;;;;AAYO,SAAS,KAAK,MAAM,EAAE,MAAM,GAAG,GAAG,SAAS,CAAC,GAAG;AACrD,MAAI,EAAE,QAAQ,GAAG,WAAW,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI,KAAK,SAAS,SAAS,IAAI;AAE7E,MAAI,QAAQ,iBAAiB,IAAI;AAGjC,MAAI,YAAY,MAAM,cAAc,SAAS,KAAK,MAAM;AACxD,MAAI,CAAC,IAAI,EAAE,IAAI,MAAM,gBAAgB,MAAM,GAAG,EAAE,IAAI,UAAU;AAC9D,QAAM,KAAK;AACX,QAAM,KAAK;AAGX,MAAI,OAAO,SAAS,IAAI;AACxB,MAAI,KAAK,KAAK,cAAc,GAAG,QAAQ;AACvC,MAAI,KAAK,KAAK,eAAe,GAAG,SAAS;AAGzC,MAAI,KAAK,KAAK,OAAO,KAAK,QAAQ;AAClC,MAAI,KAAK,KAAK,MAAM,KAAK,SAAS;AAGlC,MAAI,KAAK,GAAG,OAAO,GAAG,QAAQ;AAC9B,MAAI,KAAK,GAAG,MAAM,GAAG,SAAS;AAG9B,MAAI,MAAM,KAAK,MAAM;AACrB,MAAI,MAAM,KAAK,MAAM;AAGrB,MAAI,MAAM,KAAK,QAAQ,GAAG;AAC1B,MAAI,MAAM,KAAK,SAAS,GAAG;AAE3B,SAAO;AAAA,IACN;AAAA,IACA,UAAU,OAAO,aAAa,aAAa,SAAS,KAAK,KAAK,KAAK,KAAK,KAAK,EAAE,CAAC,IAAI;AAAA,IACpF;AAAA,IACA,KAAK,CAAC,GAAG,MAAM;AACd,UAAI,IAAI,IAAI;AACZ,UAAI,IAAI,IAAI;AACZ,UAAIA,MAAK,IAAI,IAAI;AACjB,UAAIC,MAAK,IAAI,IAAI;AAEjB,aAAO,cAAc,SAAS,cAAc,CAAC,OAAO,CAAC,aAAaD,GAAE,KAAKC,GAAE;AAAA,IAC5E;AAAA,EACD;AACD;AAKA,SAAS,SAAS,SAAS;AAC1B,MAAI,oBAAoB,SAAS;AAChC;AAAA;AAAA,MAA8B,QAAQ;AAAA;AAAA,EACvC;AAGA,MAAI,UAAU;AACd,MAAI,OAAO;AAEX,SAAO,YAAY,MAAM;AACxB,YAAQ,CAAC,iBAAiB,OAAO,EAAE;AACnC;AAAA,IAAyC,QAAQ;AAAA,EAClD;AAEA,SAAO;AACR;",
|
||||
"names": ["sx", "sy"]
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import {
|
||||
createAttachmentKey,
|
||||
fromAction
|
||||
} from "./chunk-UW3ABHAC.js";
|
||||
import "./chunk-U7P2NEEE.js";
|
||||
import "./chunk-DL7TWQ45.js";
|
||||
import "./chunk-5MWODAS5.js";
|
||||
import "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.js";
|
||||
export {
|
||||
createAttachmentKey,
|
||||
fromAction
|
||||
};
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+66
@@ -0,0 +1,66 @@
|
||||
import {
|
||||
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
|
||||
} from "./chunk-YERFD2CZ.js";
|
||||
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
|
||||
};
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import "./chunk-7RQDXF5S.js";
|
||||
import {
|
||||
on
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.js";
|
||||
export {
|
||||
on
|
||||
};
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// 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.`
|
||||
);
|
||||
//# sourceMappingURL=svelte_internal.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"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;AAAA,EACT;AACD;",
|
||||
"names": []
|
||||
}
|
||||
+401
@@ -0,0 +1,401 @@
|
||||
import {
|
||||
CLASS,
|
||||
STYLE,
|
||||
action,
|
||||
add_legacy_event_listener,
|
||||
add_locations,
|
||||
animation,
|
||||
append_styles,
|
||||
assign,
|
||||
assign_and,
|
||||
assign_nullish,
|
||||
assign_or,
|
||||
async,
|
||||
attach,
|
||||
attr,
|
||||
attribute_effect,
|
||||
await_block,
|
||||
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,
|
||||
bubble_event,
|
||||
check_target,
|
||||
cleanup_styles,
|
||||
clsx,
|
||||
component,
|
||||
createAttachmentKey,
|
||||
create_custom_element,
|
||||
create_ownership_validator,
|
||||
css_props,
|
||||
customizable_select,
|
||||
each,
|
||||
element,
|
||||
head,
|
||||
hmr,
|
||||
html,
|
||||
if_block,
|
||||
index,
|
||||
init,
|
||||
init_select,
|
||||
inspect,
|
||||
invalidate_store,
|
||||
key,
|
||||
legacy_api,
|
||||
legacy_rest_props,
|
||||
log_if_contains_state,
|
||||
mark_store_binding,
|
||||
prevent_snippet_stringification,
|
||||
prop,
|
||||
raf,
|
||||
reactive_import,
|
||||
remove_input_defaults,
|
||||
rest_props,
|
||||
sanitize_slots,
|
||||
select_option,
|
||||
selectedcontent,
|
||||
set_attribute,
|
||||
set_checked,
|
||||
set_class,
|
||||
set_custom_element_data,
|
||||
set_default_checked,
|
||||
set_default_value,
|
||||
set_selected,
|
||||
set_style,
|
||||
set_value,
|
||||
set_xlink_attribute,
|
||||
setup_stores,
|
||||
slot,
|
||||
snippet,
|
||||
spread_props,
|
||||
store_get,
|
||||
store_mutate,
|
||||
store_set,
|
||||
store_unsub,
|
||||
transition,
|
||||
update_legacy_props,
|
||||
update_pre_prop,
|
||||
update_pre_store,
|
||||
update_prop,
|
||||
update_store,
|
||||
validate_binding,
|
||||
validate_dynamic_element_tag,
|
||||
validate_each_keys,
|
||||
validate_snippet_args,
|
||||
validate_store,
|
||||
validate_void_dynamic_element,
|
||||
wrap_snippet
|
||||
} from "./chunk-UW3ABHAC.js";
|
||||
import "./chunk-U7P2NEEE.js";
|
||||
import {
|
||||
append,
|
||||
comment,
|
||||
from_html,
|
||||
from_mathml,
|
||||
from_svg,
|
||||
from_tree,
|
||||
once,
|
||||
preventDefault,
|
||||
props_id,
|
||||
self,
|
||||
set_text,
|
||||
stopImmediatePropagation,
|
||||
stopPropagation,
|
||||
text,
|
||||
trusted,
|
||||
with_script
|
||||
} from "./chunk-DL7TWQ45.js";
|
||||
import {
|
||||
$document,
|
||||
$window,
|
||||
FILENAME,
|
||||
HMR,
|
||||
NAMESPACE_SVG,
|
||||
aborted,
|
||||
active_effect,
|
||||
add_svelte_meta,
|
||||
apply,
|
||||
async_derived,
|
||||
autofocus,
|
||||
boundary,
|
||||
child,
|
||||
deep_read,
|
||||
deep_read_state,
|
||||
deferred_template_effect,
|
||||
delegate,
|
||||
derived_safe_equal,
|
||||
eager,
|
||||
effect,
|
||||
effect_root,
|
||||
effect_tracking,
|
||||
equals,
|
||||
event,
|
||||
exclude_from_object,
|
||||
fallback,
|
||||
first_child,
|
||||
flushSync,
|
||||
for_await_track_reactivity_loss,
|
||||
get,
|
||||
hydrate_template,
|
||||
invalid_default_snippet,
|
||||
invalidate_inner_signals,
|
||||
invoke_error_boundary,
|
||||
legacy_pre_effect,
|
||||
legacy_pre_effect_reset,
|
||||
mutable_source,
|
||||
mutate,
|
||||
next,
|
||||
noop,
|
||||
pending,
|
||||
pop,
|
||||
proxy,
|
||||
push,
|
||||
remove_textarea_child,
|
||||
render_effect,
|
||||
replay_events,
|
||||
reset,
|
||||
run2 as run,
|
||||
run_after_blockers,
|
||||
safe_get,
|
||||
save,
|
||||
set,
|
||||
sibling,
|
||||
snapshot,
|
||||
state,
|
||||
strict_equals,
|
||||
tag,
|
||||
tag_proxy,
|
||||
template_effect,
|
||||
tick,
|
||||
to_array,
|
||||
trace,
|
||||
track_reactivity_loss,
|
||||
untrack,
|
||||
update,
|
||||
update_pre,
|
||||
user_derived,
|
||||
user_effect,
|
||||
user_pre_effect
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.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_and,
|
||||
assign_nullish,
|
||||
assign_or,
|
||||
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,
|
||||
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,
|
||||
invoke_error_boundary,
|
||||
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,
|
||||
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_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,
|
||||
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_each_keys,
|
||||
validate_snippet_args,
|
||||
validate_store,
|
||||
validate_void_dynamic_element,
|
||||
$window as window,
|
||||
with_script,
|
||||
wrap_snippet
|
||||
};
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
// node_modules/svelte/src/version.js
|
||||
var PUBLIC_VERSION = "5";
|
||||
|
||||
// node_modules/svelte/src/internal/disclose-version.js
|
||||
if (typeof window !== "undefined") {
|
||||
((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add(PUBLIC_VERSION);
|
||||
}
|
||||
//# sourceMappingURL=svelte_internal_disclose-version.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../svelte/src/version.js", "../../svelte/src/internal/disclose-version.js"],
|
||||
"sourcesContent": ["// generated during release, do not modify\n\n/**\n * The current version, as set in package.json.\n * @type {string}\n */\nexport const VERSION = '5.48.0';\nexport const PUBLIC_VERSION = '5';\n", "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": ";AAOO,IAAM,iBAAiB;;;ACL9B,IAAI,OAAO,WAAW,aAAa;AAElC,IAAE,OAAO,aAAa,CAAC,GAAG,MAAM,oBAAI,IAAI,GAAG,IAAI,cAAc;AAC9D;",
|
||||
"names": []
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import {
|
||||
enable_async_mode_flag
|
||||
} from "./chunk-OHYQYV5R.js";
|
||||
|
||||
// node_modules/svelte/src/internal/flags/async.js
|
||||
enable_async_mode_flag();
|
||||
//# sourceMappingURL=svelte_internal_flags_async.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"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;",
|
||||
"names": []
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import {
|
||||
enable_legacy_mode_flag
|
||||
} from "./chunk-OHYQYV5R.js";
|
||||
|
||||
// node_modules/svelte/src/internal/flags/legacy.js
|
||||
enable_legacy_mode_flag();
|
||||
//# sourceMappingURL=svelte_internal_flags_legacy.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"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;",
|
||||
"names": []
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import {
|
||||
enable_tracing_mode_flag
|
||||
} from "./chunk-OHYQYV5R.js";
|
||||
|
||||
// node_modules/svelte/src/internal/flags/tracing.js
|
||||
enable_tracing_mode_flag();
|
||||
//# sourceMappingURL=svelte_internal_flags_tracing.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"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;",
|
||||
"names": []
|
||||
}
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
import {
|
||||
asClassComponent,
|
||||
createBubbler,
|
||||
createClassComponent,
|
||||
handlers,
|
||||
nonpassive,
|
||||
once,
|
||||
passive,
|
||||
preventDefault,
|
||||
run,
|
||||
self,
|
||||
stopImmediatePropagation,
|
||||
stopPropagation,
|
||||
trusted
|
||||
} from "./chunk-DL7TWQ45.js";
|
||||
import "./chunk-5MWODAS5.js";
|
||||
import "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.js";
|
||||
export {
|
||||
asClassComponent,
|
||||
createBubbler,
|
||||
createClassComponent,
|
||||
handlers,
|
||||
nonpassive,
|
||||
once,
|
||||
passive,
|
||||
preventDefault,
|
||||
run,
|
||||
self,
|
||||
stopImmediatePropagation,
|
||||
stopPropagation,
|
||||
trusted
|
||||
};
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+543
@@ -0,0 +1,543 @@
|
||||
import {
|
||||
MediaQuery
|
||||
} from "./chunk-GOC6LLKR.js";
|
||||
import "./chunk-6VYHLW26.js";
|
||||
import "./chunk-7RQDXF5S.js";
|
||||
import {
|
||||
linear
|
||||
} from "./chunk-YERFD2CZ.js";
|
||||
import {
|
||||
loop,
|
||||
raf,
|
||||
writable
|
||||
} from "./chunk-UW3ABHAC.js";
|
||||
import "./chunk-U7P2NEEE.js";
|
||||
import "./chunk-DL7TWQ45.js";
|
||||
import {
|
||||
deferred,
|
||||
get,
|
||||
noop,
|
||||
render_effect,
|
||||
set,
|
||||
state,
|
||||
tag
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import {
|
||||
true_default
|
||||
} from "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.js";
|
||||
|
||||
// node_modules/svelte/src/motion/utils.js
|
||||
function is_date(obj) {
|
||||
return Object.prototype.toString.call(obj) === "[object Date]";
|
||||
}
|
||||
|
||||
// node_modules/svelte/src/motion/spring.js
|
||||
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 spring2 = ctx.opts.stiffness * delta;
|
||||
const damper = ctx.opts.damping * velocity;
|
||||
const acceleration = (spring2 - damper) * ctx.inv_mass;
|
||||
const d = (velocity + acceleration) * 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) => (
|
||||
// @ts-ignore
|
||||
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`);
|
||||
}
|
||||
}
|
||||
function spring(value, opts = {}) {
|
||||
const store = writable(value);
|
||||
const { stiffness = 0.15, damping = 0.8, precision = 0.01 } = opts;
|
||||
let last_time;
|
||||
let task;
|
||||
let current_token;
|
||||
let last_value = (
|
||||
/** @type {T} */
|
||||
value
|
||||
);
|
||||
let target_value = (
|
||||
/** @type {T | undefined} */
|
||||
value
|
||||
);
|
||||
let inv_mass = 1;
|
||||
let inv_mass_recovery_rate = 0;
|
||||
let cancel_task = false;
|
||||
function set2(new_value, opts2 = {}) {
|
||||
target_value = new_value;
|
||||
const token = current_token = {};
|
||||
if (value == null || opts2.hard || spring2.stiffness >= 1 && spring2.damping >= 1) {
|
||||
cancel_task = true;
|
||||
last_time = raf.now();
|
||||
last_value = new_value;
|
||||
store.set(value = target_value);
|
||||
return Promise.resolve();
|
||||
} else if (opts2.soft) {
|
||||
const rate = opts2.soft === true ? 0.5 : +opts2.soft;
|
||||
inv_mass_recovery_rate = 1 / (rate * 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);
|
||||
const ctx = {
|
||||
inv_mass,
|
||||
opts: spring2,
|
||||
settled: true,
|
||||
dt: elapsed * 60 / 1e3
|
||||
};
|
||||
const next_value = tick_spring(ctx, last_value, value, target_value);
|
||||
last_time = now;
|
||||
last_value = /** @type {T} */
|
||||
value;
|
||||
store.set(value = /** @type {T} */
|
||||
next_value);
|
||||
if (ctx.settled) {
|
||||
task = null;
|
||||
}
|
||||
return !ctx.settled;
|
||||
});
|
||||
}
|
||||
return new Promise((fulfil) => {
|
||||
task.promise.then(() => {
|
||||
if (token === current_token) fulfil();
|
||||
});
|
||||
});
|
||||
}
|
||||
const spring2 = {
|
||||
set: set2,
|
||||
update: (fn, opts2) => set2(fn(
|
||||
/** @type {T} */
|
||||
target_value,
|
||||
/** @type {T} */
|
||||
value
|
||||
), opts2),
|
||||
subscribe: store.subscribe,
|
||||
stiffness,
|
||||
damping,
|
||||
precision
|
||||
};
|
||||
return spring2;
|
||||
}
|
||||
var Spring = class _Spring {
|
||||
#stiffness = state(0.15);
|
||||
#damping = state(0.8);
|
||||
#precision = state(0.01);
|
||||
#current;
|
||||
#target;
|
||||
#last_value = (
|
||||
/** @type {T} */
|
||||
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 {SpringOpts} [options]
|
||||
*/
|
||||
constructor(value, options = {}) {
|
||||
this.#current = true_default ? tag(state(value), "Spring.current") : state(value);
|
||||
this.#target = true_default ? tag(state(value), "Spring.target") : state(value);
|
||||
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;
|
||||
if (true_default) {
|
||||
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 {SpringOpts} [options]
|
||||
*/
|
||||
static of(fn, options) {
|
||||
const spring2 = new _Spring(fn(), options);
|
||||
render_effect(() => {
|
||||
spring2.set(fn());
|
||||
});
|
||||
return spring2;
|
||||
}
|
||||
/** @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);
|
||||
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 {SpringUpdateOpts} [options]
|
||||
*/
|
||||
set(value, options) {
|
||||
this.#deferred?.reject(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);
|
||||
}
|
||||
};
|
||||
function clamp(n, min, max) {
|
||||
return Math.max(min, Math.min(max, n));
|
||||
}
|
||||
|
||||
// node_modules/svelte/src/motion/tweened.js
|
||||
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 = (
|
||||
/** @type {Array<any>} */
|
||||
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 bn = b.getTime();
|
||||
const delta = bn - an;
|
||||
return (t) => new Date(an + t * delta);
|
||||
}
|
||||
const keys = Object.keys(b);
|
||||
const interpolators = {};
|
||||
keys.forEach((key) => {
|
||||
interpolators[key] = get_interpolator(a[key], b[key]);
|
||||
});
|
||||
return (t) => {
|
||||
const result = {};
|
||||
keys.forEach((key) => {
|
||||
result[key] = interpolators[key](t);
|
||||
});
|
||||
return result;
|
||||
};
|
||||
}
|
||||
if (type === "number") {
|
||||
const delta = (
|
||||
/** @type {number} */
|
||||
b - /** @type {number} */
|
||||
a
|
||||
);
|
||||
return (t) => a + t * delta;
|
||||
}
|
||||
return () => b;
|
||||
}
|
||||
function tweened(value, defaults = {}) {
|
||||
const store = writable(value);
|
||||
let task;
|
||||
let target_value = value;
|
||||
function set2(new_value, opts) {
|
||||
target_value = new_value;
|
||||
if (value == null) {
|
||||
store.set(value = new_value);
|
||||
return Promise.resolve();
|
||||
}
|
||||
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;
|
||||
let fn;
|
||||
task = loop((now) => {
|
||||
if (now < start) return true;
|
||||
if (!started) {
|
||||
fn = interpolate(
|
||||
/** @type {any} */
|
||||
value,
|
||||
new_value
|
||||
);
|
||||
if (typeof duration === "function")
|
||||
duration = duration(
|
||||
/** @type {any} */
|
||||
value,
|
||||
new_value
|
||||
);
|
||||
started = true;
|
||||
}
|
||||
if (previous_task) {
|
||||
previous_task.abort();
|
||||
previous_task = null;
|
||||
}
|
||||
const elapsed = now - start;
|
||||
if (elapsed > /** @type {number} */
|
||||
duration) {
|
||||
store.set(value = new_value);
|
||||
return false;
|
||||
}
|
||||
store.set(value = fn(easing(elapsed / duration)));
|
||||
return true;
|
||||
});
|
||||
return task.promise;
|
||||
}
|
||||
return {
|
||||
set: set2,
|
||||
update: (fn, opts) => set2(fn(
|
||||
/** @type {any} */
|
||||
target_value,
|
||||
/** @type {any} */
|
||||
value
|
||||
), opts),
|
||||
subscribe: store.subscribe
|
||||
};
|
||||
}
|
||||
var Tween = class _Tween {
|
||||
#current;
|
||||
#target;
|
||||
/** @type {TweenedOptions<T>} */
|
||||
#defaults;
|
||||
/** @type {import('../internal/client/types').Task | null} */
|
||||
#task = null;
|
||||
/**
|
||||
* @param {T} value
|
||||
* @param {TweenedOptions<T>} options
|
||||
*/
|
||||
constructor(value, options = {}) {
|
||||
this.#current = state(value);
|
||||
this.#target = state(value);
|
||||
this.#defaults = options;
|
||||
if (true_default) {
|
||||
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 {TweenedOptions<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 {TweenedOptions<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;
|
||||
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();
|
||||
}
|
||||
const elapsed = now - start;
|
||||
if (elapsed > /** @type {number} */
|
||||
duration) {
|
||||
set(this.#current, value);
|
||||
return false;
|
||||
}
|
||||
set(this.#current, fn(easing(elapsed / /** @type {number} */
|
||||
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
|
||||
var prefersReducedMotion = new MediaQuery(
|
||||
"(prefers-reduced-motion: reduce)"
|
||||
);
|
||||
export {
|
||||
Spring,
|
||||
Tween,
|
||||
prefersReducedMotion,
|
||||
spring,
|
||||
tweened
|
||||
};
|
||||
//# sourceMappingURL=svelte_motion.js.map
|
||||
+7
File diff suppressed because one or more lines are too long
+27
@@ -0,0 +1,27 @@
|
||||
import {
|
||||
MediaQuery,
|
||||
SvelteDate,
|
||||
SvelteMap,
|
||||
SvelteSet,
|
||||
SvelteURL,
|
||||
SvelteURLSearchParams
|
||||
} from "./chunk-GOC6LLKR.js";
|
||||
import "./chunk-6VYHLW26.js";
|
||||
import "./chunk-7RQDXF5S.js";
|
||||
import "./chunk-UW3ABHAC.js";
|
||||
import "./chunk-U7P2NEEE.js";
|
||||
import "./chunk-DL7TWQ45.js";
|
||||
import {
|
||||
createSubscriber
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.js";
|
||||
export {
|
||||
MediaQuery,
|
||||
SvelteDate,
|
||||
SvelteMap,
|
||||
SvelteSet,
|
||||
SvelteURL,
|
||||
SvelteURLSearchParams,
|
||||
createSubscriber
|
||||
};
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
import {
|
||||
ReactiveValue
|
||||
} from "./chunk-6VYHLW26.js";
|
||||
import "./chunk-7RQDXF5S.js";
|
||||
import "./chunk-UW3ABHAC.js";
|
||||
import "./chunk-U7P2NEEE.js";
|
||||
import "./chunk-DL7TWQ45.js";
|
||||
import {
|
||||
get,
|
||||
on,
|
||||
set,
|
||||
source,
|
||||
tag
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import {
|
||||
true_default
|
||||
} from "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.js";
|
||||
|
||||
// node_modules/svelte/src/reactivity/window/index.js
|
||||
var scrollX = new ReactiveValue(
|
||||
true_default ? () => window.scrollX : () => void 0,
|
||||
(update) => on(window, "scroll", update)
|
||||
);
|
||||
var scrollY = new ReactiveValue(
|
||||
true_default ? () => window.scrollY : () => void 0,
|
||||
(update) => on(window, "scroll", update)
|
||||
);
|
||||
var innerWidth = new ReactiveValue(
|
||||
true_default ? () => window.innerWidth : () => void 0,
|
||||
(update) => on(window, "resize", update)
|
||||
);
|
||||
var innerHeight = new ReactiveValue(
|
||||
true_default ? () => window.innerHeight : () => void 0,
|
||||
(update) => on(window, "resize", update)
|
||||
);
|
||||
var outerWidth = new ReactiveValue(
|
||||
true_default ? () => window.outerWidth : () => void 0,
|
||||
(update) => on(window, "resize", update)
|
||||
);
|
||||
var outerHeight = new ReactiveValue(
|
||||
true_default ? () => window.outerHeight : () => void 0,
|
||||
(update) => on(window, "resize", update)
|
||||
);
|
||||
var screenLeft = new ReactiveValue(
|
||||
true_default ? () => window.screenLeft : () => void 0,
|
||||
(update) => {
|
||||
let value = window.screenLeft;
|
||||
let frame = requestAnimationFrame(function check() {
|
||||
frame = requestAnimationFrame(check);
|
||||
if (value !== (value = window.screenLeft)) {
|
||||
update();
|
||||
}
|
||||
});
|
||||
return () => {
|
||||
cancelAnimationFrame(frame);
|
||||
};
|
||||
}
|
||||
);
|
||||
var screenTop = new ReactiveValue(
|
||||
true_default ? () => window.screenTop : () => void 0,
|
||||
(update) => {
|
||||
let value = window.screenTop;
|
||||
let frame = requestAnimationFrame(function check() {
|
||||
frame = requestAnimationFrame(check);
|
||||
if (value !== (value = window.screenTop)) {
|
||||
update();
|
||||
}
|
||||
});
|
||||
return () => {
|
||||
cancelAnimationFrame(frame);
|
||||
};
|
||||
}
|
||||
);
|
||||
var online = new ReactiveValue(
|
||||
true_default ? () => navigator.onLine : () => void 0,
|
||||
(update) => {
|
||||
const unsub_online = on(window, "online", update);
|
||||
const unsub_offline = on(window, "offline", update);
|
||||
return () => {
|
||||
unsub_online();
|
||||
unsub_offline();
|
||||
};
|
||||
}
|
||||
);
|
||||
var devicePixelRatio = new class DevicePixelRatio {
|
||||
#dpr = source(true_default ? window.devicePixelRatio : void 0);
|
||||
#update() {
|
||||
const off = on(
|
||||
window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),
|
||||
"change",
|
||||
() => {
|
||||
set(this.#dpr, window.devicePixelRatio);
|
||||
off();
|
||||
this.#update();
|
||||
}
|
||||
);
|
||||
}
|
||||
constructor() {
|
||||
if (true_default) {
|
||||
this.#update();
|
||||
}
|
||||
if (true_default) {
|
||||
tag(this.#dpr, "window.devicePixelRatio");
|
||||
}
|
||||
}
|
||||
get current() {
|
||||
get(this.#dpr);
|
||||
return true_default ? window.devicePixelRatio : void 0;
|
||||
}
|
||||
}();
|
||||
export {
|
||||
devicePixelRatio,
|
||||
innerHeight,
|
||||
innerWidth,
|
||||
online,
|
||||
outerHeight,
|
||||
outerWidth,
|
||||
screenLeft,
|
||||
screenTop,
|
||||
scrollX,
|
||||
scrollY
|
||||
};
|
||||
//# sourceMappingURL=svelte_reactivity_window.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../svelte/src/reactivity/window/index.js"],
|
||||
"sourcesContent": ["import { BROWSER, DEV } from 'esm-env';\nimport { on } from '../../events/index.js';\nimport { ReactiveValue } from '../reactive-value.js';\nimport { get } from '../../internal/client/index.js';\nimport { set, source } from '../../internal/client/reactivity/sources.js';\nimport { tag } from '../../internal/client/dev/tracing.js';\n\n/**\n * `scrollX.current` is a reactive view of `window.scrollX`. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const scrollX = new ReactiveValue(\n\tBROWSER ? () => window.scrollX : () => undefined,\n\t(update) => on(window, 'scroll', update)\n);\n\n/**\n * `scrollY.current` is a reactive view of `window.scrollY`. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const scrollY = new ReactiveValue(\n\tBROWSER ? () => window.scrollY : () => undefined,\n\t(update) => on(window, 'scroll', update)\n);\n\n/**\n * `innerWidth.current` is a reactive view of `window.innerWidth`. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const innerWidth = new ReactiveValue(\n\tBROWSER ? () => window.innerWidth : () => undefined,\n\t(update) => on(window, 'resize', update)\n);\n\n/**\n * `innerHeight.current` is a reactive view of `window.innerHeight`. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const innerHeight = new ReactiveValue(\n\tBROWSER ? () => window.innerHeight : () => undefined,\n\t(update) => on(window, 'resize', update)\n);\n\n/**\n * `outerWidth.current` is a reactive view of `window.outerWidth`. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const outerWidth = new ReactiveValue(\n\tBROWSER ? () => window.outerWidth : () => undefined,\n\t(update) => on(window, 'resize', update)\n);\n\n/**\n * `outerHeight.current` is a reactive view of `window.outerHeight`. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const outerHeight = new ReactiveValue(\n\tBROWSER ? () => window.outerHeight : () => undefined,\n\t(update) => on(window, 'resize', update)\n);\n\n/**\n * `screenLeft.current` is a reactive view of `window.screenLeft`. It is updated inside a `requestAnimationFrame` callback. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const screenLeft = new ReactiveValue(\n\tBROWSER ? () => window.screenLeft : () => undefined,\n\t(update) => {\n\t\tlet value = window.screenLeft;\n\n\t\tlet frame = requestAnimationFrame(function check() {\n\t\t\tframe = requestAnimationFrame(check);\n\n\t\t\tif (value !== (value = window.screenLeft)) {\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(frame);\n\t\t};\n\t}\n);\n\n/**\n * `screenTop.current` is a reactive view of `window.screenTop`. It is updated inside a `requestAnimationFrame` callback. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const screenTop = new ReactiveValue(\n\tBROWSER ? () => window.screenTop : () => undefined,\n\t(update) => {\n\t\tlet value = window.screenTop;\n\n\t\tlet frame = requestAnimationFrame(function check() {\n\t\t\tframe = requestAnimationFrame(check);\n\n\t\t\tif (value !== (value = window.screenTop)) {\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\n\t\treturn () => {\n\t\t\tcancelAnimationFrame(frame);\n\t\t};\n\t}\n);\n\n/**\n * `online.current` is a reactive view of `navigator.onLine`. On the server it is `undefined`.\n * @since 5.11.0\n */\nexport const online = new ReactiveValue(\n\tBROWSER ? () => navigator.onLine : () => undefined,\n\t(update) => {\n\t\tconst unsub_online = on(window, 'online', update);\n\t\tconst unsub_offline = on(window, 'offline', update);\n\t\treturn () => {\n\t\t\tunsub_online();\n\t\t\tunsub_offline();\n\t\t};\n\t}\n);\n\n/**\n * `devicePixelRatio.current` is a reactive view of `window.devicePixelRatio`. On the server it is `undefined`.\n * Note that behaviour differs between browsers — on Chrome it will respond to the current zoom level,\n * on Firefox and Safari it won't.\n * @type {{ get current(): number | undefined }}\n * @since 5.11.0\n */\nexport const devicePixelRatio = /* @__PURE__ */ new (class DevicePixelRatio {\n\t#dpr = source(BROWSER ? window.devicePixelRatio : undefined);\n\n\t#update() {\n\t\tconst off = on(\n\t\t\twindow.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),\n\t\t\t'change',\n\t\t\t() => {\n\t\t\t\tset(this.#dpr, window.devicePixelRatio);\n\n\t\t\t\toff();\n\t\t\t\tthis.#update();\n\t\t\t}\n\t\t);\n\t}\n\n\tconstructor() {\n\t\tif (BROWSER) {\n\t\t\tthis.#update();\n\t\t}\n\n\t\tif (DEV) {\n\t\t\ttag(this.#dpr, 'window.devicePixelRatio');\n\t\t}\n\t}\n\n\tget current() {\n\t\tget(this.#dpr);\n\t\treturn BROWSER ? window.devicePixelRatio : undefined;\n\t}\n})();\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;AAWO,IAAM,UAAU,IAAI;AAAA,EAC1B,eAAU,MAAM,OAAO,UAAU,MAAM;AAAA,EACvC,CAAC,WAAW,GAAG,QAAQ,UAAU,MAAM;AACxC;AAMO,IAAM,UAAU,IAAI;AAAA,EAC1B,eAAU,MAAM,OAAO,UAAU,MAAM;AAAA,EACvC,CAAC,WAAW,GAAG,QAAQ,UAAU,MAAM;AACxC;AAMO,IAAM,aAAa,IAAI;AAAA,EAC7B,eAAU,MAAM,OAAO,aAAa,MAAM;AAAA,EAC1C,CAAC,WAAW,GAAG,QAAQ,UAAU,MAAM;AACxC;AAMO,IAAM,cAAc,IAAI;AAAA,EAC9B,eAAU,MAAM,OAAO,cAAc,MAAM;AAAA,EAC3C,CAAC,WAAW,GAAG,QAAQ,UAAU,MAAM;AACxC;AAMO,IAAM,aAAa,IAAI;AAAA,EAC7B,eAAU,MAAM,OAAO,aAAa,MAAM;AAAA,EAC1C,CAAC,WAAW,GAAG,QAAQ,UAAU,MAAM;AACxC;AAMO,IAAM,cAAc,IAAI;AAAA,EAC9B,eAAU,MAAM,OAAO,cAAc,MAAM;AAAA,EAC3C,CAAC,WAAW,GAAG,QAAQ,UAAU,MAAM;AACxC;AAMO,IAAM,aAAa,IAAI;AAAA,EAC7B,eAAU,MAAM,OAAO,aAAa,MAAM;AAAA,EAC1C,CAAC,WAAW;AACX,QAAI,QAAQ,OAAO;AAEnB,QAAI,QAAQ,sBAAsB,SAAS,QAAQ;AAClD,cAAQ,sBAAsB,KAAK;AAEnC,UAAI,WAAW,QAAQ,OAAO,aAAa;AAC1C,eAAO;AAAA,MACR;AAAA,IACD,CAAC;AAED,WAAO,MAAM;AACZ,2BAAqB,KAAK;AAAA,IAC3B;AAAA,EACD;AACD;AAMO,IAAM,YAAY,IAAI;AAAA,EAC5B,eAAU,MAAM,OAAO,YAAY,MAAM;AAAA,EACzC,CAAC,WAAW;AACX,QAAI,QAAQ,OAAO;AAEnB,QAAI,QAAQ,sBAAsB,SAAS,QAAQ;AAClD,cAAQ,sBAAsB,KAAK;AAEnC,UAAI,WAAW,QAAQ,OAAO,YAAY;AACzC,eAAO;AAAA,MACR;AAAA,IACD,CAAC;AAED,WAAO,MAAM;AACZ,2BAAqB,KAAK;AAAA,IAC3B;AAAA,EACD;AACD;AAMO,IAAM,SAAS,IAAI;AAAA,EACzB,eAAU,MAAM,UAAU,SAAS,MAAM;AAAA,EACzC,CAAC,WAAW;AACX,UAAM,eAAe,GAAG,QAAQ,UAAU,MAAM;AAChD,UAAM,gBAAgB,GAAG,QAAQ,WAAW,MAAM;AAClD,WAAO,MAAM;AACZ,mBAAa;AACb,oBAAc;AAAA,IACf;AAAA,EACD;AACD;AASO,IAAM,mBAAmC,IAAK,MAAM,iBAAiB;AAAA,EAC3E,OAAO,OAAO,eAAU,OAAO,mBAAmB,MAAS;AAAA,EAE3D,UAAU;AACT,UAAM,MAAM;AAAA,MACX,OAAO,WAAW,gBAAgB,OAAO,gBAAgB,OAAO;AAAA,MAChE;AAAA,MACA,MAAM;AACL,YAAI,KAAK,MAAM,OAAO,gBAAgB;AAEtC,YAAI;AACJ,aAAK,QAAQ;AAAA,MACd;AAAA,IACD;AAAA,EACD;AAAA,EAEA,cAAc;AACb,QAAI,cAAS;AACZ,WAAK,QAAQ;AAAA,IACd;AAEA,QAAI,cAAK;AACR,UAAI,KAAK,MAAM,yBAAyB;AAAA,IACzC;AAAA,EACD;AAAA,EAEA,IAAI,UAAU;AACb,QAAI,KAAK,IAAI;AACb,WAAO,eAAU,OAAO,mBAAmB;AAAA,EAC5C;AACD,EAAG;",
|
||||
"names": []
|
||||
}
|
||||
+106
@@ -0,0 +1,106 @@
|
||||
import {
|
||||
derived,
|
||||
get,
|
||||
readable,
|
||||
readonly,
|
||||
writable
|
||||
} from "./chunk-UW3ABHAC.js";
|
||||
import "./chunk-U7P2NEEE.js";
|
||||
import "./chunk-DL7TWQ45.js";
|
||||
import {
|
||||
active_effect,
|
||||
active_reaction,
|
||||
createSubscriber,
|
||||
effect_root,
|
||||
effect_tracking,
|
||||
render_effect,
|
||||
set_active_effect,
|
||||
set_active_reaction
|
||||
} from "./chunk-5MWODAS5.js";
|
||||
import "./chunk-VZQZA5WB.js";
|
||||
import "./chunk-OHYQYV5R.js";
|
||||
|
||||
// node_modules/svelte/src/store/index-client.js
|
||||
function toStore(get2, set) {
|
||||
var effect = active_effect;
|
||||
var reaction = active_reaction;
|
||||
var init_value = get2();
|
||||
const store = writable(init_value, (set2) => {
|
||||
var ran = init_value !== get2();
|
||||
var teardown;
|
||||
var previous_reaction = active_reaction;
|
||||
var previous_effect = active_effect;
|
||||
set_active_reaction(reaction);
|
||||
set_active_effect(effect);
|
||||
try {
|
||||
teardown = effect_root(() => {
|
||||
render_effect(() => {
|
||||
const value = get2();
|
||||
if (ran) set2(value);
|
||||
});
|
||||
});
|
||||
} finally {
|
||||
set_active_reaction(previous_reaction);
|
||||
set_active_effect(previous_effect);
|
||||
}
|
||||
ran = true;
|
||||
return teardown;
|
||||
});
|
||||
if (set) {
|
||||
return {
|
||||
set,
|
||||
update: (fn) => set(fn(get2())),
|
||||
subscribe: store.subscribe
|
||||
};
|
||||
}
|
||||
return {
|
||||
subscribe: store.subscribe
|
||||
};
|
||||
}
|
||||
function fromStore(store) {
|
||||
let value = (
|
||||
/** @type {V} */
|
||||
void 0
|
||||
);
|
||||
const subscribe = createSubscriber((update) => {
|
||||
let ran = false;
|
||||
const unsubscribe = store.subscribe((v) => {
|
||||
value = v;
|
||||
if (ran) update();
|
||||
});
|
||||
ran = true;
|
||||
return unsubscribe;
|
||||
});
|
||||
function current() {
|
||||
if (effect_tracking()) {
|
||||
subscribe();
|
||||
return value;
|
||||
}
|
||||
return get(store);
|
||||
}
|
||||
if ("set" in store) {
|
||||
return {
|
||||
get current() {
|
||||
return current();
|
||||
},
|
||||
set current(v) {
|
||||
store.set(v);
|
||||
}
|
||||
};
|
||||
}
|
||||
return {
|
||||
get current() {
|
||||
return current();
|
||||
}
|
||||
};
|
||||
}
|
||||
export {
|
||||
derived,
|
||||
fromStore,
|
||||
get,
|
||||
readable,
|
||||
readonly,
|
||||
toStore,
|
||||
writable
|
||||
};
|
||||
//# sourceMappingURL=svelte_store.js.map
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../svelte/src/store/index-client.js"],
|
||||
"sourcesContent": ["/** @import { Readable, Writable } from './public.js' */\nimport {\n\teffect_root,\n\teffect_tracking,\n\trender_effect\n} from '../internal/client/reactivity/effects.js';\nimport { get, writable } from './shared/index.js';\nimport { createSubscriber } from '../reactivity/create-subscriber.js';\nimport {\n\tactive_effect,\n\tactive_reaction,\n\tset_active_effect,\n\tset_active_reaction\n} from '../internal/client/runtime.js';\n\nexport { derived, get, readable, readonly, writable } from './shared/index.js';\n\n/**\n * @template V\n * @overload\n * @param {() => V} get\n * @param {(v: V) => void} set\n * @returns {Writable<V>}\n */\n/**\n * @template V\n * @overload\n * @param {() => V} get\n * @returns {Readable<V>}\n */\n/**\n * Create a store from a function that returns state, and (to make a writable store), an\n * optional second function that sets state.\n *\n * ```ts\n * import { toStore } from 'svelte/store';\n *\n * let count = $state(0);\n *\n * const store = toStore(() => count, (v) => (count = v));\n * ```\n * @template V\n * @param {() => V} get\n * @param {(v: V) => void} [set]\n * @returns {Writable<V> | Readable<V>}\n */\nexport function toStore(get, set) {\n\tvar effect = active_effect;\n\tvar reaction = active_reaction;\n\tvar init_value = get();\n\n\tconst store = writable(init_value, (set) => {\n\t\t// If the value has changed before we call subscribe, then\n\t\t// we need to treat the value as already having run\n\t\tvar ran = init_value !== get();\n\n\t\t// TODO do we need a different implementation on the server?\n\t\tvar teardown;\n\t\t// Apply the reaction and effect at the time of toStore being called\n\t\tvar previous_reaction = active_reaction;\n\t\tvar previous_effect = active_effect;\n\t\tset_active_reaction(reaction);\n\t\tset_active_effect(effect);\n\n\t\ttry {\n\t\t\tteardown = effect_root(() => {\n\t\t\t\trender_effect(() => {\n\t\t\t\t\tconst value = get();\n\t\t\t\t\tif (ran) set(value);\n\t\t\t\t});\n\t\t\t});\n\t\t} finally {\n\t\t\tset_active_reaction(previous_reaction);\n\t\t\tset_active_effect(previous_effect);\n\t\t}\n\n\t\tran = true;\n\n\t\treturn teardown;\n\t});\n\n\tif (set) {\n\t\treturn {\n\t\t\tset,\n\t\t\tupdate: (fn) => set(fn(get())),\n\t\t\tsubscribe: store.subscribe\n\t\t};\n\t}\n\n\treturn {\n\t\tsubscribe: store.subscribe\n\t};\n}\n\n/**\n * @template V\n * @overload\n * @param {Writable<V>} store\n * @returns {{ current: V }}\n */\n/**\n * @template V\n * @overload\n * @param {Readable<V>} store\n * @returns {{ readonly current: V }}\n */\n/**\n * Convert a store to an object with a reactive `current` property. If `store`\n * is a readable store, `current` will be a readonly property.\n *\n * ```ts\n * import { fromStore, get, writable } from 'svelte/store';\n *\n * const store = writable(0);\n *\n * const count = fromStore(store);\n *\n * count.current; // 0;\n * store.set(1);\n * count.current; // 1\n *\n * count.current += 1;\n * get(store); // 2\n * ```\n * @template V\n * @param {Writable<V> | Readable<V>} store\n */\nexport function fromStore(store) {\n\tlet value = /** @type {V} */ (undefined);\n\n\tconst subscribe = createSubscriber((update) => {\n\t\tlet ran = false;\n\n\t\tconst unsubscribe = store.subscribe((v) => {\n\t\t\tvalue = v;\n\t\t\tif (ran) update();\n\t\t});\n\n\t\tran = true;\n\n\t\treturn unsubscribe;\n\t});\n\n\tfunction current() {\n\t\tif (effect_tracking()) {\n\t\t\tsubscribe();\n\t\t\treturn value;\n\t\t}\n\n\t\treturn get(store);\n\t}\n\n\tif ('set' in store) {\n\t\treturn {\n\t\t\tget current() {\n\t\t\t\treturn current();\n\t\t\t},\n\t\t\tset current(v) {\n\t\t\t\tstore.set(v);\n\t\t\t}\n\t\t};\n\t}\n\n\treturn {\n\t\tget current() {\n\t\t\treturn current();\n\t\t}\n\t};\n}\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AA8CO,SAAS,QAAQA,MAAK,KAAK;AACjC,MAAI,SAAS;AACb,MAAI,WAAW;AACf,MAAI,aAAaA,KAAI;AAErB,QAAM,QAAQ,SAAS,YAAY,CAACC,SAAQ;AAG3C,QAAI,MAAM,eAAeD,KAAI;AAG7B,QAAI;AAEJ,QAAI,oBAAoB;AACxB,QAAI,kBAAkB;AACtB,wBAAoB,QAAQ;AAC5B,sBAAkB,MAAM;AAExB,QAAI;AACH,iBAAW,YAAY,MAAM;AAC5B,sBAAc,MAAM;AACnB,gBAAM,QAAQA,KAAI;AAClB,cAAI,IAAK,CAAAC,KAAI,KAAK;AAAA,QACnB,CAAC;AAAA,MACF,CAAC;AAAA,IACF,UAAE;AACD,0BAAoB,iBAAiB;AACrC,wBAAkB,eAAe;AAAA,IAClC;AAEA,UAAM;AAEN,WAAO;AAAA,EACR,CAAC;AAED,MAAI,KAAK;AACR,WAAO;AAAA,MACN;AAAA,MACA,QAAQ,CAAC,OAAO,IAAI,GAAGD,KAAI,CAAC,CAAC;AAAA,MAC7B,WAAW,MAAM;AAAA,IAClB;AAAA,EACD;AAEA,SAAO;AAAA,IACN,WAAW,MAAM;AAAA,EAClB;AACD;AAmCO,SAAS,UAAU,OAAO;AAChC,MAAI;AAAA;AAAA,IAA0B;AAAA;AAE9B,QAAM,YAAY,iBAAiB,CAAC,WAAW;AAC9C,QAAI,MAAM;AAEV,UAAM,cAAc,MAAM,UAAU,CAAC,MAAM;AAC1C,cAAQ;AACR,UAAI,IAAK,QAAO;AAAA,IACjB,CAAC;AAED,UAAM;AAEN,WAAO;AAAA,EACR,CAAC;AAED,WAAS,UAAU;AAClB,QAAI,gBAAgB,GAAG;AACtB,gBAAU;AACV,aAAO;AAAA,IACR;AAEA,WAAO,IAAI,KAAK;AAAA,EACjB;AAEA,MAAI,SAAS,OAAO;AACnB,WAAO;AAAA,MACN,IAAI,UAAU;AACb,eAAO,QAAQ;AAAA,MAChB;AAAA,MACA,IAAI,QAAQ,GAAG;AACd,cAAM,IAAI,CAAC;AAAA,MACZ;AAAA,IACD;AAAA,EACD;AAEA,SAAO;AAAA,IACN,IAAI,UAAU;AACb,aAAO,QAAQ;AAAA,IAChB;AAAA,EACD;AACD;",
|
||||
"names": ["get", "set"]
|
||||
}
|
||||
+207
@@ -0,0 +1,207 @@
|
||||
import {
|
||||
transition_slide_display,
|
||||
true_default
|
||||
} from "./chunk-VZQZA5WB.js";
|
||||
|
||||
// node_modules/svelte/src/transition/index.js
|
||||
var linear = (x) => x;
|
||||
function cubic_out(t) {
|
||||
const f = t - 1;
|
||||
return f * f * f + 1;
|
||||
}
|
||||
function cubic_in_out(t) {
|
||||
return t < 0.5 ? 4 * t * t * t : 0.5 * Math.pow(2 * t - 2, 3) + 1;
|
||||
}
|
||||
function split_css_unit(value) {
|
||||
const split = typeof value === "string" && value.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);
|
||||
return split ? [parseFloat(split[1]), split[2] || "px"] : [
|
||||
/** @type {number} */
|
||||
value,
|
||||
"px"
|
||||
];
|
||||
}
|
||||
function blur(node, { delay = 0, duration = 400, easing = cubic_in_out, amount = 5, opacity = 0 } = {}) {
|
||||
const style = getComputedStyle(node);
|
||||
const target_opacity = +style.opacity;
|
||||
const f = style.filter === "none" ? "" : style.filter;
|
||||
const od = target_opacity * (1 - opacity);
|
||||
const [value, unit] = split_css_unit(amount);
|
||||
return {
|
||||
delay,
|
||||
duration,
|
||||
easing,
|
||||
css: (_t, u) => `opacity: ${target_opacity - od * u}; filter: ${f} blur(${u * value}${unit});`
|
||||
};
|
||||
}
|
||||
function fade(node, { delay = 0, duration = 400, easing = linear } = {}) {
|
||||
const o = +getComputedStyle(node).opacity;
|
||||
return {
|
||||
delay,
|
||||
duration,
|
||||
easing,
|
||||
css: (t) => `opacity: ${t * o}`
|
||||
};
|
||||
}
|
||||
function fly(node, { delay = 0, duration = 400, easing = cubic_out, x = 0, y = 0, opacity = 0 } = {}) {
|
||||
const style = getComputedStyle(node);
|
||||
const target_opacity = +style.opacity;
|
||||
const transform = style.transform === "none" ? "" : style.transform;
|
||||
const od = target_opacity * (1 - opacity);
|
||||
const [x_value, x_unit] = split_css_unit(x);
|
||||
const [y_value, y_unit] = split_css_unit(y);
|
||||
return {
|
||||
delay,
|
||||
duration,
|
||||
easing,
|
||||
css: (t, u) => `
|
||||
transform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit});
|
||||
opacity: ${target_opacity - od * u}`
|
||||
};
|
||||
}
|
||||
var slide_warning = false;
|
||||
function slide(node, { delay = 0, duration = 400, easing = cubic_out, axis = "y" } = {}) {
|
||||
const style = getComputedStyle(node);
|
||||
if (true_default && !slide_warning && /(contents|inline|table)/.test(style.display)) {
|
||||
slide_warning = true;
|
||||
Promise.resolve().then(() => slide_warning = false);
|
||||
transition_slide_display(style.display);
|
||||
}
|
||||
const opacity = +style.opacity;
|
||||
const primary_property = axis === "y" ? "height" : "width";
|
||||
const primary_property_value = parseFloat(style[primary_property]);
|
||||
const secondary_properties = axis === "y" ? ["top", "bottom"] : ["left", "right"];
|
||||
const capitalized_secondary_properties = secondary_properties.map(
|
||||
(e) => (
|
||||
/** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
|
||||
`${e[0].toUpperCase()}${e.slice(1)}`
|
||||
)
|
||||
);
|
||||
const padding_start_value = parseFloat(style[`padding${capitalized_secondary_properties[0]}`]);
|
||||
const padding_end_value = parseFloat(style[`padding${capitalized_secondary_properties[1]}`]);
|
||||
const margin_start_value = parseFloat(style[`margin${capitalized_secondary_properties[0]}`]);
|
||||
const margin_end_value = parseFloat(style[`margin${capitalized_secondary_properties[1]}`]);
|
||||
const border_width_start_value = parseFloat(
|
||||
style[`border${capitalized_secondary_properties[0]}Width`]
|
||||
);
|
||||
const border_width_end_value = parseFloat(
|
||||
style[`border${capitalized_secondary_properties[1]}Width`]
|
||||
);
|
||||
return {
|
||||
delay,
|
||||
duration,
|
||||
easing,
|
||||
css: (t) => `overflow: hidden;opacity: ${Math.min(t * 20, 1) * opacity};${primary_property}: ${t * primary_property_value}px;padding-${secondary_properties[0]}: ${t * padding_start_value}px;padding-${secondary_properties[1]}: ${t * padding_end_value}px;margin-${secondary_properties[0]}: ${t * margin_start_value}px;margin-${secondary_properties[1]}: ${t * margin_end_value}px;border-${secondary_properties[0]}-width: ${t * border_width_start_value}px;border-${secondary_properties[1]}-width: ${t * border_width_end_value}px;min-${primary_property}: 0`
|
||||
};
|
||||
}
|
||||
function scale(node, { delay = 0, duration = 400, easing = cubic_out, start = 0, opacity = 0 } = {}) {
|
||||
const style = getComputedStyle(node);
|
||||
const target_opacity = +style.opacity;
|
||||
const transform = style.transform === "none" ? "" : style.transform;
|
||||
const sd = 1 - start;
|
||||
const od = target_opacity * (1 - opacity);
|
||||
return {
|
||||
delay,
|
||||
duration,
|
||||
easing,
|
||||
css: (_t, u) => `
|
||||
transform: ${transform} scale(${1 - sd * u});
|
||||
opacity: ${target_opacity - od * u}
|
||||
`
|
||||
};
|
||||
}
|
||||
function draw(node, { delay = 0, speed, duration, easing = cubic_in_out } = {}) {
|
||||
let len = node.getTotalLength();
|
||||
const style = getComputedStyle(node);
|
||||
if (style.strokeLinecap !== "butt") {
|
||||
len += parseInt(style.strokeWidth);
|
||||
}
|
||||
if (duration === void 0) {
|
||||
if (speed === void 0) {
|
||||
duration = 800;
|
||||
} else {
|
||||
duration = len / speed;
|
||||
}
|
||||
} else if (typeof duration === "function") {
|
||||
duration = duration(len);
|
||||
}
|
||||
return {
|
||||
delay,
|
||||
duration,
|
||||
easing,
|
||||
css: (_, u) => `
|
||||
stroke-dasharray: ${len};
|
||||
stroke-dashoffset: ${u * len};
|
||||
`
|
||||
};
|
||||
}
|
||||
function assign(tar, src) {
|
||||
for (const k in src) tar[k] = src[k];
|
||||
return (
|
||||
/** @type {T & S} */
|
||||
tar
|
||||
);
|
||||
}
|
||||
function crossfade({ fallback, ...defaults }) {
|
||||
const to_receive = /* @__PURE__ */ new Map();
|
||||
const to_send = /* @__PURE__ */ new Map();
|
||||
function crossfade2(from_node, node, params) {
|
||||
const {
|
||||
delay = 0,
|
||||
duration = (
|
||||
/** @param {number} d */
|
||||
(d2) => Math.sqrt(d2) * 30
|
||||
),
|
||||
easing = cubic_out
|
||||
} = assign(assign({}, defaults), params);
|
||||
const from = from_node.getBoundingClientRect();
|
||||
const to = node.getBoundingClientRect();
|
||||
const dx = from.left - to.left;
|
||||
const dy = from.top - to.top;
|
||||
const dw = from.width / to.width;
|
||||
const dh = from.height / to.height;
|
||||
const d = Math.sqrt(dx * dx + dy * dy);
|
||||
const style = getComputedStyle(node);
|
||||
const transform = style.transform === "none" ? "" : style.transform;
|
||||
const opacity = +style.opacity;
|
||||
return {
|
||||
delay,
|
||||
duration: typeof duration === "function" ? duration(d) : duration,
|
||||
easing,
|
||||
css: (t, u) => `
|
||||
opacity: ${t * opacity};
|
||||
transform-origin: top left;
|
||||
transform: ${transform} translate(${u * dx}px,${u * dy}px) scale(${t + (1 - t) * dw}, ${t + (1 - t) * dh});
|
||||
`
|
||||
};
|
||||
}
|
||||
function transition(items, counterparts, intro) {
|
||||
return (node, params) => {
|
||||
items.set(params.key, node);
|
||||
return () => {
|
||||
if (counterparts.has(params.key)) {
|
||||
const other_node = counterparts.get(params.key);
|
||||
counterparts.delete(params.key);
|
||||
return crossfade2(
|
||||
/** @type {Element} */
|
||||
other_node,
|
||||
node,
|
||||
params
|
||||
);
|
||||
}
|
||||
items.delete(params.key);
|
||||
return fallback && fallback(node, params, intro);
|
||||
};
|
||||
};
|
||||
}
|
||||
return [transition(to_send, to_receive, false), transition(to_receive, to_send, true)];
|
||||
}
|
||||
export {
|
||||
blur,
|
||||
crossfade,
|
||||
draw,
|
||||
fade,
|
||||
fly,
|
||||
scale,
|
||||
slide
|
||||
};
|
||||
//# sourceMappingURL=svelte_transition.js.map
|
||||
+7
File diff suppressed because one or more lines are too long
+3
@@ -0,0 +1,3 @@
|
||||
# esbuild
|
||||
|
||||
This is the macOS ARM 64-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
|
||||
BIN
Binary file not shown.
+20
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "@esbuild/darwin-arm64",
|
||||
"version": "0.27.2",
|
||||
"description": "The macOS ARM 64-bit binary for esbuild, a JavaScript bundler.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/evanw/esbuild.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"preferUnplugged": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
"os": [
|
||||
"darwin"
|
||||
],
|
||||
"cpu": [
|
||||
"arm64"
|
||||
]
|
||||
}
|
||||
BIN
Binary file not shown.
+19
@@ -0,0 +1,19 @@
|
||||
Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+227
@@ -0,0 +1,227 @@
|
||||
# @jridgewell/gen-mapping
|
||||
|
||||
> Generate source maps
|
||||
|
||||
`gen-mapping` allows you to generate a source map during transpilation or minification.
|
||||
With a source map, you're able to trace the original location in the source file, either in Chrome's
|
||||
DevTools or using a library like [`@jridgewell/trace-mapping`][trace-mapping].
|
||||
|
||||
You may already be familiar with the [`source-map`][source-map] package's `SourceMapGenerator`. This
|
||||
provides the same `addMapping` and `setSourceContent` API.
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install @jridgewell/gen-mapping
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```typescript
|
||||
import { GenMapping, addMapping, setSourceContent, toEncodedMap, toDecodedMap } from '@jridgewell/gen-mapping';
|
||||
|
||||
const map = new GenMapping({
|
||||
file: 'output.js',
|
||||
sourceRoot: 'https://example.com/',
|
||||
});
|
||||
|
||||
setSourceContent(map, 'input.js', `function foo() {}`);
|
||||
|
||||
addMapping(map, {
|
||||
// Lines start at line 1, columns at column 0.
|
||||
generated: { line: 1, column: 0 },
|
||||
source: 'input.js',
|
||||
original: { line: 1, column: 0 },
|
||||
});
|
||||
|
||||
addMapping(map, {
|
||||
generated: { line: 1, column: 9 },
|
||||
source: 'input.js',
|
||||
original: { line: 1, column: 9 },
|
||||
name: 'foo',
|
||||
});
|
||||
|
||||
assert.deepEqual(toDecodedMap(map), {
|
||||
version: 3,
|
||||
file: 'output.js',
|
||||
names: ['foo'],
|
||||
sourceRoot: 'https://example.com/',
|
||||
sources: ['input.js'],
|
||||
sourcesContent: ['function foo() {}'],
|
||||
mappings: [
|
||||
[ [0, 0, 0, 0], [9, 0, 0, 9, 0] ]
|
||||
],
|
||||
});
|
||||
|
||||
assert.deepEqual(toEncodedMap(map), {
|
||||
version: 3,
|
||||
file: 'output.js',
|
||||
names: ['foo'],
|
||||
sourceRoot: 'https://example.com/',
|
||||
sources: ['input.js'],
|
||||
sourcesContent: ['function foo() {}'],
|
||||
mappings: 'AAAA,SAASA',
|
||||
});
|
||||
```
|
||||
|
||||
### Smaller Sourcemaps
|
||||
|
||||
Not everything needs to be added to a sourcemap, and needless markings can cause signficantly
|
||||
larger file sizes. `gen-mapping` exposes `maybeAddSegment`/`maybeAddMapping` APIs that will
|
||||
intelligently determine if this marking adds useful information. If not, the marking will be
|
||||
skipped.
|
||||
|
||||
```typescript
|
||||
import { maybeAddMapping } from '@jridgewell/gen-mapping';
|
||||
|
||||
const map = new GenMapping();
|
||||
|
||||
// Adding a sourceless marking at the beginning of a line isn't useful.
|
||||
maybeAddMapping(map, {
|
||||
generated: { line: 1, column: 0 },
|
||||
});
|
||||
|
||||
// Adding a new source marking is useful.
|
||||
maybeAddMapping(map, {
|
||||
generated: { line: 1, column: 0 },
|
||||
source: 'input.js',
|
||||
original: { line: 1, column: 0 },
|
||||
});
|
||||
|
||||
// But adding another marking pointing to the exact same original location isn't, even if the
|
||||
// generated column changed.
|
||||
maybeAddMapping(map, {
|
||||
generated: { line: 1, column: 9 },
|
||||
source: 'input.js',
|
||||
original: { line: 1, column: 0 },
|
||||
});
|
||||
|
||||
assert.deepEqual(toEncodedMap(map), {
|
||||
version: 3,
|
||||
names: [],
|
||||
sources: ['input.js'],
|
||||
sourcesContent: [null],
|
||||
mappings: 'AAAA',
|
||||
});
|
||||
```
|
||||
|
||||
## Benchmarks
|
||||
|
||||
```
|
||||
node v18.0.0
|
||||
|
||||
amp.js.map
|
||||
Memory Usage:
|
||||
gen-mapping: addSegment 5852872 bytes
|
||||
gen-mapping: addMapping 7716042 bytes
|
||||
source-map-js 6143250 bytes
|
||||
source-map-0.6.1 6124102 bytes
|
||||
source-map-0.8.0 6121173 bytes
|
||||
Smallest memory usage is gen-mapping: addSegment
|
||||
|
||||
Adding speed:
|
||||
gen-mapping: addSegment x 441 ops/sec ±2.07% (90 runs sampled)
|
||||
gen-mapping: addMapping x 350 ops/sec ±2.40% (86 runs sampled)
|
||||
source-map-js: addMapping x 169 ops/sec ±2.42% (80 runs sampled)
|
||||
source-map-0.6.1: addMapping x 167 ops/sec ±2.56% (80 runs sampled)
|
||||
source-map-0.8.0: addMapping x 168 ops/sec ±2.52% (80 runs sampled)
|
||||
Fastest is gen-mapping: addSegment
|
||||
|
||||
Generate speed:
|
||||
gen-mapping: decoded output x 150,824,370 ops/sec ±0.07% (102 runs sampled)
|
||||
gen-mapping: encoded output x 663 ops/sec ±0.22% (98 runs sampled)
|
||||
source-map-js: encoded output x 197 ops/sec ±0.45% (84 runs sampled)
|
||||
source-map-0.6.1: encoded output x 198 ops/sec ±0.33% (85 runs sampled)
|
||||
source-map-0.8.0: encoded output x 197 ops/sec ±0.06% (93 runs sampled)
|
||||
Fastest is gen-mapping: decoded output
|
||||
|
||||
|
||||
***
|
||||
|
||||
|
||||
babel.min.js.map
|
||||
Memory Usage:
|
||||
gen-mapping: addSegment 37578063 bytes
|
||||
gen-mapping: addMapping 37212897 bytes
|
||||
source-map-js 47638527 bytes
|
||||
source-map-0.6.1 47690503 bytes
|
||||
source-map-0.8.0 47470188 bytes
|
||||
Smallest memory usage is gen-mapping: addMapping
|
||||
|
||||
Adding speed:
|
||||
gen-mapping: addSegment x 31.05 ops/sec ±8.31% (43 runs sampled)
|
||||
gen-mapping: addMapping x 29.83 ops/sec ±7.36% (51 runs sampled)
|
||||
source-map-js: addMapping x 20.73 ops/sec ±6.22% (38 runs sampled)
|
||||
source-map-0.6.1: addMapping x 20.03 ops/sec ±10.51% (38 runs sampled)
|
||||
source-map-0.8.0: addMapping x 19.30 ops/sec ±8.27% (37 runs sampled)
|
||||
Fastest is gen-mapping: addSegment
|
||||
|
||||
Generate speed:
|
||||
gen-mapping: decoded output x 381,379,234 ops/sec ±0.29% (96 runs sampled)
|
||||
gen-mapping: encoded output x 95.15 ops/sec ±2.98% (72 runs sampled)
|
||||
source-map-js: encoded output x 15.20 ops/sec ±7.41% (33 runs sampled)
|
||||
source-map-0.6.1: encoded output x 16.36 ops/sec ±10.46% (31 runs sampled)
|
||||
source-map-0.8.0: encoded output x 16.06 ops/sec ±6.45% (31 runs sampled)
|
||||
Fastest is gen-mapping: decoded output
|
||||
|
||||
|
||||
***
|
||||
|
||||
|
||||
preact.js.map
|
||||
Memory Usage:
|
||||
gen-mapping: addSegment 416247 bytes
|
||||
gen-mapping: addMapping 419824 bytes
|
||||
source-map-js 1024619 bytes
|
||||
source-map-0.6.1 1146004 bytes
|
||||
source-map-0.8.0 1113250 bytes
|
||||
Smallest memory usage is gen-mapping: addSegment
|
||||
|
||||
Adding speed:
|
||||
gen-mapping: addSegment x 13,755 ops/sec ±0.15% (98 runs sampled)
|
||||
gen-mapping: addMapping x 13,013 ops/sec ±0.11% (101 runs sampled)
|
||||
source-map-js: addMapping x 4,564 ops/sec ±0.21% (98 runs sampled)
|
||||
source-map-0.6.1: addMapping x 4,562 ops/sec ±0.11% (99 runs sampled)
|
||||
source-map-0.8.0: addMapping x 4,593 ops/sec ±0.11% (100 runs sampled)
|
||||
Fastest is gen-mapping: addSegment
|
||||
|
||||
Generate speed:
|
||||
gen-mapping: decoded output x 379,864,020 ops/sec ±0.23% (93 runs sampled)
|
||||
gen-mapping: encoded output x 14,368 ops/sec ±4.07% (82 runs sampled)
|
||||
source-map-js: encoded output x 5,261 ops/sec ±0.21% (99 runs sampled)
|
||||
source-map-0.6.1: encoded output x 5,124 ops/sec ±0.58% (99 runs sampled)
|
||||
source-map-0.8.0: encoded output x 5,434 ops/sec ±0.33% (96 runs sampled)
|
||||
Fastest is gen-mapping: decoded output
|
||||
|
||||
|
||||
***
|
||||
|
||||
|
||||
react.js.map
|
||||
Memory Usage:
|
||||
gen-mapping: addSegment 975096 bytes
|
||||
gen-mapping: addMapping 1102981 bytes
|
||||
source-map-js 2918836 bytes
|
||||
source-map-0.6.1 2885435 bytes
|
||||
source-map-0.8.0 2874336 bytes
|
||||
Smallest memory usage is gen-mapping: addSegment
|
||||
|
||||
Adding speed:
|
||||
gen-mapping: addSegment x 4,772 ops/sec ±0.15% (100 runs sampled)
|
||||
gen-mapping: addMapping x 4,456 ops/sec ±0.13% (97 runs sampled)
|
||||
source-map-js: addMapping x 1,618 ops/sec ±0.24% (97 runs sampled)
|
||||
source-map-0.6.1: addMapping x 1,622 ops/sec ±0.12% (99 runs sampled)
|
||||
source-map-0.8.0: addMapping x 1,631 ops/sec ±0.12% (100 runs sampled)
|
||||
Fastest is gen-mapping: addSegment
|
||||
|
||||
Generate speed:
|
||||
gen-mapping: decoded output x 379,107,695 ops/sec ±0.07% (99 runs sampled)
|
||||
gen-mapping: encoded output x 5,421 ops/sec ±1.60% (89 runs sampled)
|
||||
source-map-js: encoded output x 2,113 ops/sec ±1.81% (98 runs sampled)
|
||||
source-map-0.6.1: encoded output x 2,126 ops/sec ±0.10% (100 runs sampled)
|
||||
source-map-0.8.0: encoded output x 2,176 ops/sec ±0.39% (98 runs sampled)
|
||||
Fastest is gen-mapping: decoded output
|
||||
```
|
||||
|
||||
[source-map]: https://www.npmjs.com/package/source-map
|
||||
[trace-mapping]: https://github.com/jridgewell/sourcemaps/tree/main/packages/trace-mapping
|
||||
+292
@@ -0,0 +1,292 @@
|
||||
// src/set-array.ts
|
||||
var SetArray = class {
|
||||
constructor() {
|
||||
this._indexes = { __proto__: null };
|
||||
this.array = [];
|
||||
}
|
||||
};
|
||||
function cast(set) {
|
||||
return set;
|
||||
}
|
||||
function get(setarr, key) {
|
||||
return cast(setarr)._indexes[key];
|
||||
}
|
||||
function put(setarr, key) {
|
||||
const index = get(setarr, key);
|
||||
if (index !== void 0) return index;
|
||||
const { array, _indexes: indexes } = cast(setarr);
|
||||
const length = array.push(key);
|
||||
return indexes[key] = length - 1;
|
||||
}
|
||||
function remove(setarr, key) {
|
||||
const index = get(setarr, key);
|
||||
if (index === void 0) return;
|
||||
const { array, _indexes: indexes } = cast(setarr);
|
||||
for (let i = index + 1; i < array.length; i++) {
|
||||
const k = array[i];
|
||||
array[i - 1] = k;
|
||||
indexes[k]--;
|
||||
}
|
||||
indexes[key] = void 0;
|
||||
array.pop();
|
||||
}
|
||||
|
||||
// src/gen-mapping.ts
|
||||
import {
|
||||
encode
|
||||
} from "@jridgewell/sourcemap-codec";
|
||||
import { TraceMap, decodedMappings } from "@jridgewell/trace-mapping";
|
||||
|
||||
// src/sourcemap-segment.ts
|
||||
var COLUMN = 0;
|
||||
var SOURCES_INDEX = 1;
|
||||
var SOURCE_LINE = 2;
|
||||
var SOURCE_COLUMN = 3;
|
||||
var NAMES_INDEX = 4;
|
||||
|
||||
// src/gen-mapping.ts
|
||||
var NO_NAME = -1;
|
||||
var GenMapping = class {
|
||||
constructor({ file, sourceRoot } = {}) {
|
||||
this._names = new SetArray();
|
||||
this._sources = new SetArray();
|
||||
this._sourcesContent = [];
|
||||
this._mappings = [];
|
||||
this.file = file;
|
||||
this.sourceRoot = sourceRoot;
|
||||
this._ignoreList = new SetArray();
|
||||
}
|
||||
};
|
||||
function cast2(map) {
|
||||
return map;
|
||||
}
|
||||
function addSegment(map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
||||
return addSegmentInternal(
|
||||
false,
|
||||
map,
|
||||
genLine,
|
||||
genColumn,
|
||||
source,
|
||||
sourceLine,
|
||||
sourceColumn,
|
||||
name,
|
||||
content
|
||||
);
|
||||
}
|
||||
function addMapping(map, mapping) {
|
||||
return addMappingInternal(false, map, mapping);
|
||||
}
|
||||
var maybeAddSegment = (map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => {
|
||||
return addSegmentInternal(
|
||||
true,
|
||||
map,
|
||||
genLine,
|
||||
genColumn,
|
||||
source,
|
||||
sourceLine,
|
||||
sourceColumn,
|
||||
name,
|
||||
content
|
||||
);
|
||||
};
|
||||
var maybeAddMapping = (map, mapping) => {
|
||||
return addMappingInternal(true, map, mapping);
|
||||
};
|
||||
function setSourceContent(map, source, content) {
|
||||
const {
|
||||
_sources: sources,
|
||||
_sourcesContent: sourcesContent
|
||||
// _originalScopes: originalScopes,
|
||||
} = cast2(map);
|
||||
const index = put(sources, source);
|
||||
sourcesContent[index] = content;
|
||||
}
|
||||
function setIgnore(map, source, ignore = true) {
|
||||
const {
|
||||
_sources: sources,
|
||||
_sourcesContent: sourcesContent,
|
||||
_ignoreList: ignoreList
|
||||
// _originalScopes: originalScopes,
|
||||
} = cast2(map);
|
||||
const index = put(sources, source);
|
||||
if (index === sourcesContent.length) sourcesContent[index] = null;
|
||||
if (ignore) put(ignoreList, index);
|
||||
else remove(ignoreList, index);
|
||||
}
|
||||
function toDecodedMap(map) {
|
||||
const {
|
||||
_mappings: mappings,
|
||||
_sources: sources,
|
||||
_sourcesContent: sourcesContent,
|
||||
_names: names,
|
||||
_ignoreList: ignoreList
|
||||
// _originalScopes: originalScopes,
|
||||
// _generatedRanges: generatedRanges,
|
||||
} = cast2(map);
|
||||
removeEmptyFinalLines(mappings);
|
||||
return {
|
||||
version: 3,
|
||||
file: map.file || void 0,
|
||||
names: names.array,
|
||||
sourceRoot: map.sourceRoot || void 0,
|
||||
sources: sources.array,
|
||||
sourcesContent,
|
||||
mappings,
|
||||
// originalScopes,
|
||||
// generatedRanges,
|
||||
ignoreList: ignoreList.array
|
||||
};
|
||||
}
|
||||
function toEncodedMap(map) {
|
||||
const decoded = toDecodedMap(map);
|
||||
return Object.assign({}, decoded, {
|
||||
// originalScopes: decoded.originalScopes.map((os) => encodeOriginalScopes(os)),
|
||||
// generatedRanges: encodeGeneratedRanges(decoded.generatedRanges as GeneratedRange[]),
|
||||
mappings: encode(decoded.mappings)
|
||||
});
|
||||
}
|
||||
function fromMap(input) {
|
||||
const map = new TraceMap(input);
|
||||
const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot });
|
||||
putAll(cast2(gen)._names, map.names);
|
||||
putAll(cast2(gen)._sources, map.sources);
|
||||
cast2(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null);
|
||||
cast2(gen)._mappings = decodedMappings(map);
|
||||
if (map.ignoreList) putAll(cast2(gen)._ignoreList, map.ignoreList);
|
||||
return gen;
|
||||
}
|
||||
function allMappings(map) {
|
||||
const out = [];
|
||||
const { _mappings: mappings, _sources: sources, _names: names } = cast2(map);
|
||||
for (let i = 0; i < mappings.length; i++) {
|
||||
const line = mappings[i];
|
||||
for (let j = 0; j < line.length; j++) {
|
||||
const seg = line[j];
|
||||
const generated = { line: i + 1, column: seg[COLUMN] };
|
||||
let source = void 0;
|
||||
let original = void 0;
|
||||
let name = void 0;
|
||||
if (seg.length !== 1) {
|
||||
source = sources.array[seg[SOURCES_INDEX]];
|
||||
original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] };
|
||||
if (seg.length === 5) name = names.array[seg[NAMES_INDEX]];
|
||||
}
|
||||
out.push({ generated, source, original, name });
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
||||
const {
|
||||
_mappings: mappings,
|
||||
_sources: sources,
|
||||
_sourcesContent: sourcesContent,
|
||||
_names: names
|
||||
// _originalScopes: originalScopes,
|
||||
} = cast2(map);
|
||||
const line = getIndex(mappings, genLine);
|
||||
const index = getColumnIndex(line, genColumn);
|
||||
if (!source) {
|
||||
if (skipable && skipSourceless(line, index)) return;
|
||||
return insert(line, index, [genColumn]);
|
||||
}
|
||||
assert(sourceLine);
|
||||
assert(sourceColumn);
|
||||
const sourcesIndex = put(sources, source);
|
||||
const namesIndex = name ? put(names, name) : NO_NAME;
|
||||
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
|
||||
if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {
|
||||
return;
|
||||
}
|
||||
return insert(
|
||||
line,
|
||||
index,
|
||||
name ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] : [genColumn, sourcesIndex, sourceLine, sourceColumn]
|
||||
);
|
||||
}
|
||||
function assert(_val) {
|
||||
}
|
||||
function getIndex(arr, index) {
|
||||
for (let i = arr.length; i <= index; i++) {
|
||||
arr[i] = [];
|
||||
}
|
||||
return arr[index];
|
||||
}
|
||||
function getColumnIndex(line, genColumn) {
|
||||
let index = line.length;
|
||||
for (let i = index - 1; i >= 0; index = i--) {
|
||||
const current = line[i];
|
||||
if (genColumn >= current[COLUMN]) break;
|
||||
}
|
||||
return index;
|
||||
}
|
||||
function insert(array, index, value) {
|
||||
for (let i = array.length; i > index; i--) {
|
||||
array[i] = array[i - 1];
|
||||
}
|
||||
array[index] = value;
|
||||
}
|
||||
function removeEmptyFinalLines(mappings) {
|
||||
const { length } = mappings;
|
||||
let len = length;
|
||||
for (let i = len - 1; i >= 0; len = i, i--) {
|
||||
if (mappings[i].length > 0) break;
|
||||
}
|
||||
if (len < length) mappings.length = len;
|
||||
}
|
||||
function putAll(setarr, array) {
|
||||
for (let i = 0; i < array.length; i++) put(setarr, array[i]);
|
||||
}
|
||||
function skipSourceless(line, index) {
|
||||
if (index === 0) return true;
|
||||
const prev = line[index - 1];
|
||||
return prev.length === 1;
|
||||
}
|
||||
function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {
|
||||
if (index === 0) return false;
|
||||
const prev = line[index - 1];
|
||||
if (prev.length === 1) return false;
|
||||
return sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME);
|
||||
}
|
||||
function addMappingInternal(skipable, map, mapping) {
|
||||
const { generated, source, original, name, content } = mapping;
|
||||
if (!source) {
|
||||
return addSegmentInternal(
|
||||
skipable,
|
||||
map,
|
||||
generated.line - 1,
|
||||
generated.column,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
);
|
||||
}
|
||||
assert(original);
|
||||
return addSegmentInternal(
|
||||
skipable,
|
||||
map,
|
||||
generated.line - 1,
|
||||
generated.column,
|
||||
source,
|
||||
original.line - 1,
|
||||
original.column,
|
||||
name,
|
||||
content
|
||||
);
|
||||
}
|
||||
export {
|
||||
GenMapping,
|
||||
addMapping,
|
||||
addSegment,
|
||||
allMappings,
|
||||
fromMap,
|
||||
maybeAddMapping,
|
||||
maybeAddSegment,
|
||||
setIgnore,
|
||||
setSourceContent,
|
||||
toDecodedMap,
|
||||
toEncodedMap
|
||||
};
|
||||
//# sourceMappingURL=gen-mapping.mjs.map
|
||||
+6
File diff suppressed because one or more lines are too long
+358
@@ -0,0 +1,358 @@
|
||||
(function (global, factory) {
|
||||
if (typeof exports === 'object' && typeof module !== 'undefined') {
|
||||
factory(module, require('@jridgewell/sourcemap-codec'), require('@jridgewell/trace-mapping'));
|
||||
module.exports = def(module);
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
define(['module', '@jridgewell/sourcemap-codec', '@jridgewell/trace-mapping'], function(mod) {
|
||||
factory.apply(this, arguments);
|
||||
mod.exports = def(mod);
|
||||
});
|
||||
} else {
|
||||
const mod = { exports: {} };
|
||||
factory(mod, global.sourcemapCodec, global.traceMapping);
|
||||
global = typeof globalThis !== 'undefined' ? globalThis : global || self;
|
||||
global.genMapping = def(mod);
|
||||
}
|
||||
function def(m) { return 'default' in m.exports ? m.exports.default : m.exports; }
|
||||
})(this, (function (module, require_sourcemapCodec, require_traceMapping) {
|
||||
"use strict";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __commonJS = (cb, mod) => function __require() {
|
||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||
};
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// umd:@jridgewell/sourcemap-codec
|
||||
var require_sourcemap_codec = __commonJS({
|
||||
"umd:@jridgewell/sourcemap-codec"(exports, module2) {
|
||||
module2.exports = require_sourcemapCodec;
|
||||
}
|
||||
});
|
||||
|
||||
// umd:@jridgewell/trace-mapping
|
||||
var require_trace_mapping = __commonJS({
|
||||
"umd:@jridgewell/trace-mapping"(exports, module2) {
|
||||
module2.exports = require_traceMapping;
|
||||
}
|
||||
});
|
||||
|
||||
// src/gen-mapping.ts
|
||||
var gen_mapping_exports = {};
|
||||
__export(gen_mapping_exports, {
|
||||
GenMapping: () => GenMapping,
|
||||
addMapping: () => addMapping,
|
||||
addSegment: () => addSegment,
|
||||
allMappings: () => allMappings,
|
||||
fromMap: () => fromMap,
|
||||
maybeAddMapping: () => maybeAddMapping,
|
||||
maybeAddSegment: () => maybeAddSegment,
|
||||
setIgnore: () => setIgnore,
|
||||
setSourceContent: () => setSourceContent,
|
||||
toDecodedMap: () => toDecodedMap,
|
||||
toEncodedMap: () => toEncodedMap
|
||||
});
|
||||
module.exports = __toCommonJS(gen_mapping_exports);
|
||||
|
||||
// src/set-array.ts
|
||||
var SetArray = class {
|
||||
constructor() {
|
||||
this._indexes = { __proto__: null };
|
||||
this.array = [];
|
||||
}
|
||||
};
|
||||
function cast(set) {
|
||||
return set;
|
||||
}
|
||||
function get(setarr, key) {
|
||||
return cast(setarr)._indexes[key];
|
||||
}
|
||||
function put(setarr, key) {
|
||||
const index = get(setarr, key);
|
||||
if (index !== void 0) return index;
|
||||
const { array, _indexes: indexes } = cast(setarr);
|
||||
const length = array.push(key);
|
||||
return indexes[key] = length - 1;
|
||||
}
|
||||
function remove(setarr, key) {
|
||||
const index = get(setarr, key);
|
||||
if (index === void 0) return;
|
||||
const { array, _indexes: indexes } = cast(setarr);
|
||||
for (let i = index + 1; i < array.length; i++) {
|
||||
const k = array[i];
|
||||
array[i - 1] = k;
|
||||
indexes[k]--;
|
||||
}
|
||||
indexes[key] = void 0;
|
||||
array.pop();
|
||||
}
|
||||
|
||||
// src/gen-mapping.ts
|
||||
var import_sourcemap_codec = __toESM(require_sourcemap_codec());
|
||||
var import_trace_mapping = __toESM(require_trace_mapping());
|
||||
|
||||
// src/sourcemap-segment.ts
|
||||
var COLUMN = 0;
|
||||
var SOURCES_INDEX = 1;
|
||||
var SOURCE_LINE = 2;
|
||||
var SOURCE_COLUMN = 3;
|
||||
var NAMES_INDEX = 4;
|
||||
|
||||
// src/gen-mapping.ts
|
||||
var NO_NAME = -1;
|
||||
var GenMapping = class {
|
||||
constructor({ file, sourceRoot } = {}) {
|
||||
this._names = new SetArray();
|
||||
this._sources = new SetArray();
|
||||
this._sourcesContent = [];
|
||||
this._mappings = [];
|
||||
this.file = file;
|
||||
this.sourceRoot = sourceRoot;
|
||||
this._ignoreList = new SetArray();
|
||||
}
|
||||
};
|
||||
function cast2(map) {
|
||||
return map;
|
||||
}
|
||||
function addSegment(map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
||||
return addSegmentInternal(
|
||||
false,
|
||||
map,
|
||||
genLine,
|
||||
genColumn,
|
||||
source,
|
||||
sourceLine,
|
||||
sourceColumn,
|
||||
name,
|
||||
content
|
||||
);
|
||||
}
|
||||
function addMapping(map, mapping) {
|
||||
return addMappingInternal(false, map, mapping);
|
||||
}
|
||||
var maybeAddSegment = (map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) => {
|
||||
return addSegmentInternal(
|
||||
true,
|
||||
map,
|
||||
genLine,
|
||||
genColumn,
|
||||
source,
|
||||
sourceLine,
|
||||
sourceColumn,
|
||||
name,
|
||||
content
|
||||
);
|
||||
};
|
||||
var maybeAddMapping = (map, mapping) => {
|
||||
return addMappingInternal(true, map, mapping);
|
||||
};
|
||||
function setSourceContent(map, source, content) {
|
||||
const {
|
||||
_sources: sources,
|
||||
_sourcesContent: sourcesContent
|
||||
// _originalScopes: originalScopes,
|
||||
} = cast2(map);
|
||||
const index = put(sources, source);
|
||||
sourcesContent[index] = content;
|
||||
}
|
||||
function setIgnore(map, source, ignore = true) {
|
||||
const {
|
||||
_sources: sources,
|
||||
_sourcesContent: sourcesContent,
|
||||
_ignoreList: ignoreList
|
||||
// _originalScopes: originalScopes,
|
||||
} = cast2(map);
|
||||
const index = put(sources, source);
|
||||
if (index === sourcesContent.length) sourcesContent[index] = null;
|
||||
if (ignore) put(ignoreList, index);
|
||||
else remove(ignoreList, index);
|
||||
}
|
||||
function toDecodedMap(map) {
|
||||
const {
|
||||
_mappings: mappings,
|
||||
_sources: sources,
|
||||
_sourcesContent: sourcesContent,
|
||||
_names: names,
|
||||
_ignoreList: ignoreList
|
||||
// _originalScopes: originalScopes,
|
||||
// _generatedRanges: generatedRanges,
|
||||
} = cast2(map);
|
||||
removeEmptyFinalLines(mappings);
|
||||
return {
|
||||
version: 3,
|
||||
file: map.file || void 0,
|
||||
names: names.array,
|
||||
sourceRoot: map.sourceRoot || void 0,
|
||||
sources: sources.array,
|
||||
sourcesContent,
|
||||
mappings,
|
||||
// originalScopes,
|
||||
// generatedRanges,
|
||||
ignoreList: ignoreList.array
|
||||
};
|
||||
}
|
||||
function toEncodedMap(map) {
|
||||
const decoded = toDecodedMap(map);
|
||||
return Object.assign({}, decoded, {
|
||||
// originalScopes: decoded.originalScopes.map((os) => encodeOriginalScopes(os)),
|
||||
// generatedRanges: encodeGeneratedRanges(decoded.generatedRanges as GeneratedRange[]),
|
||||
mappings: (0, import_sourcemap_codec.encode)(decoded.mappings)
|
||||
});
|
||||
}
|
||||
function fromMap(input) {
|
||||
const map = new import_trace_mapping.TraceMap(input);
|
||||
const gen = new GenMapping({ file: map.file, sourceRoot: map.sourceRoot });
|
||||
putAll(cast2(gen)._names, map.names);
|
||||
putAll(cast2(gen)._sources, map.sources);
|
||||
cast2(gen)._sourcesContent = map.sourcesContent || map.sources.map(() => null);
|
||||
cast2(gen)._mappings = (0, import_trace_mapping.decodedMappings)(map);
|
||||
if (map.ignoreList) putAll(cast2(gen)._ignoreList, map.ignoreList);
|
||||
return gen;
|
||||
}
|
||||
function allMappings(map) {
|
||||
const out = [];
|
||||
const { _mappings: mappings, _sources: sources, _names: names } = cast2(map);
|
||||
for (let i = 0; i < mappings.length; i++) {
|
||||
const line = mappings[i];
|
||||
for (let j = 0; j < line.length; j++) {
|
||||
const seg = line[j];
|
||||
const generated = { line: i + 1, column: seg[COLUMN] };
|
||||
let source = void 0;
|
||||
let original = void 0;
|
||||
let name = void 0;
|
||||
if (seg.length !== 1) {
|
||||
source = sources.array[seg[SOURCES_INDEX]];
|
||||
original = { line: seg[SOURCE_LINE] + 1, column: seg[SOURCE_COLUMN] };
|
||||
if (seg.length === 5) name = names.array[seg[NAMES_INDEX]];
|
||||
}
|
||||
out.push({ generated, source, original, name });
|
||||
}
|
||||
}
|
||||
return out;
|
||||
}
|
||||
function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
||||
const {
|
||||
_mappings: mappings,
|
||||
_sources: sources,
|
||||
_sourcesContent: sourcesContent,
|
||||
_names: names
|
||||
// _originalScopes: originalScopes,
|
||||
} = cast2(map);
|
||||
const line = getIndex(mappings, genLine);
|
||||
const index = getColumnIndex(line, genColumn);
|
||||
if (!source) {
|
||||
if (skipable && skipSourceless(line, index)) return;
|
||||
return insert(line, index, [genColumn]);
|
||||
}
|
||||
assert(sourceLine);
|
||||
assert(sourceColumn);
|
||||
const sourcesIndex = put(sources, source);
|
||||
const namesIndex = name ? put(names, name) : NO_NAME;
|
||||
if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
|
||||
if (skipable && skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex)) {
|
||||
return;
|
||||
}
|
||||
return insert(
|
||||
line,
|
||||
index,
|
||||
name ? [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] : [genColumn, sourcesIndex, sourceLine, sourceColumn]
|
||||
);
|
||||
}
|
||||
function assert(_val) {
|
||||
}
|
||||
function getIndex(arr, index) {
|
||||
for (let i = arr.length; i <= index; i++) {
|
||||
arr[i] = [];
|
||||
}
|
||||
return arr[index];
|
||||
}
|
||||
function getColumnIndex(line, genColumn) {
|
||||
let index = line.length;
|
||||
for (let i = index - 1; i >= 0; index = i--) {
|
||||
const current = line[i];
|
||||
if (genColumn >= current[COLUMN]) break;
|
||||
}
|
||||
return index;
|
||||
}
|
||||
function insert(array, index, value) {
|
||||
for (let i = array.length; i > index; i--) {
|
||||
array[i] = array[i - 1];
|
||||
}
|
||||
array[index] = value;
|
||||
}
|
||||
function removeEmptyFinalLines(mappings) {
|
||||
const { length } = mappings;
|
||||
let len = length;
|
||||
for (let i = len - 1; i >= 0; len = i, i--) {
|
||||
if (mappings[i].length > 0) break;
|
||||
}
|
||||
if (len < length) mappings.length = len;
|
||||
}
|
||||
function putAll(setarr, array) {
|
||||
for (let i = 0; i < array.length; i++) put(setarr, array[i]);
|
||||
}
|
||||
function skipSourceless(line, index) {
|
||||
if (index === 0) return true;
|
||||
const prev = line[index - 1];
|
||||
return prev.length === 1;
|
||||
}
|
||||
function skipSource(line, index, sourcesIndex, sourceLine, sourceColumn, namesIndex) {
|
||||
if (index === 0) return false;
|
||||
const prev = line[index - 1];
|
||||
if (prev.length === 1) return false;
|
||||
return sourcesIndex === prev[SOURCES_INDEX] && sourceLine === prev[SOURCE_LINE] && sourceColumn === prev[SOURCE_COLUMN] && namesIndex === (prev.length === 5 ? prev[NAMES_INDEX] : NO_NAME);
|
||||
}
|
||||
function addMappingInternal(skipable, map, mapping) {
|
||||
const { generated, source, original, name, content } = mapping;
|
||||
if (!source) {
|
||||
return addSegmentInternal(
|
||||
skipable,
|
||||
map,
|
||||
generated.line - 1,
|
||||
generated.column,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
);
|
||||
}
|
||||
assert(original);
|
||||
return addSegmentInternal(
|
||||
skipable,
|
||||
map,
|
||||
generated.line - 1,
|
||||
generated.column,
|
||||
source,
|
||||
original.line - 1,
|
||||
original.column,
|
||||
name,
|
||||
content
|
||||
);
|
||||
}
|
||||
}));
|
||||
//# sourceMappingURL=gen-mapping.umd.js.map
|
||||
+6
File diff suppressed because one or more lines are too long
+88
@@ -0,0 +1,88 @@
|
||||
import type { SourceMapInput } from '@jridgewell/trace-mapping';
|
||||
import type { DecodedSourceMap, EncodedSourceMap, Pos, Mapping } from './types';
|
||||
export type { DecodedSourceMap, EncodedSourceMap, Mapping };
|
||||
export type Options = {
|
||||
file?: string | null;
|
||||
sourceRoot?: string | null;
|
||||
};
|
||||
/**
|
||||
* Provides the state to generate a sourcemap.
|
||||
*/
|
||||
export declare class GenMapping {
|
||||
private _names;
|
||||
private _sources;
|
||||
private _sourcesContent;
|
||||
private _mappings;
|
||||
private _ignoreList;
|
||||
file: string | null | undefined;
|
||||
sourceRoot: string | null | undefined;
|
||||
constructor({ file, sourceRoot }?: Options);
|
||||
}
|
||||
/**
|
||||
* A low-level API to associate a generated position with an original source position. Line and
|
||||
* column here are 0-based, unlike `addMapping`.
|
||||
*/
|
||||
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source?: null, sourceLine?: null, sourceColumn?: null, name?: null, content?: null): void;
|
||||
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name?: null, content?: string | null): void;
|
||||
export declare function addSegment(map: GenMapping, genLine: number, genColumn: number, source: string, sourceLine: number, sourceColumn: number, name: string, content?: string | null): void;
|
||||
/**
|
||||
* A high-level API to associate a generated position with an original source position. Line is
|
||||
* 1-based, but column is 0-based, due to legacy behavior in `source-map` library.
|
||||
*/
|
||||
export declare function addMapping(map: GenMapping, mapping: {
|
||||
generated: Pos;
|
||||
source?: null;
|
||||
original?: null;
|
||||
name?: null;
|
||||
content?: null;
|
||||
}): void;
|
||||
export declare function addMapping(map: GenMapping, mapping: {
|
||||
generated: Pos;
|
||||
source: string;
|
||||
original: Pos;
|
||||
name?: null;
|
||||
content?: string | null;
|
||||
}): void;
|
||||
export declare function addMapping(map: GenMapping, mapping: {
|
||||
generated: Pos;
|
||||
source: string;
|
||||
original: Pos;
|
||||
name: string;
|
||||
content?: string | null;
|
||||
}): void;
|
||||
/**
|
||||
* Same as `addSegment`, but will only add the segment if it generates useful information in the
|
||||
* resulting map. This only works correctly if segments are added **in order**, meaning you should
|
||||
* not add a segment with a lower generated line/column than one that came before.
|
||||
*/
|
||||
export declare const maybeAddSegment: typeof addSegment;
|
||||
/**
|
||||
* Same as `addMapping`, but will only add the mapping if it generates useful information in the
|
||||
* resulting map. This only works correctly if mappings are added **in order**, meaning you should
|
||||
* not add a mapping with a lower generated line/column than one that came before.
|
||||
*/
|
||||
export declare const maybeAddMapping: typeof addMapping;
|
||||
/**
|
||||
* Adds/removes the content of the source file to the source map.
|
||||
*/
|
||||
export declare function setSourceContent(map: GenMapping, source: string, content: string | null): void;
|
||||
export declare function setIgnore(map: GenMapping, source: string, ignore?: boolean): void;
|
||||
/**
|
||||
* Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
|
||||
* a sourcemap, or to JSON.stringify.
|
||||
*/
|
||||
export declare function toDecodedMap(map: GenMapping): DecodedSourceMap;
|
||||
/**
|
||||
* Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
|
||||
* a sourcemap, or to JSON.stringify.
|
||||
*/
|
||||
export declare function toEncodedMap(map: GenMapping): EncodedSourceMap;
|
||||
/**
|
||||
* Constructs a new GenMapping, using the already present mappings of the input.
|
||||
*/
|
||||
export declare function fromMap(input: SourceMapInput): GenMapping;
|
||||
/**
|
||||
* Returns an array of high-level mapping objects for every recorded segment, which could then be
|
||||
* passed to the `source-map` library.
|
||||
*/
|
||||
export declare function allMappings(map: GenMapping): Mapping[];
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
type Key = string | number | symbol;
|
||||
/**
|
||||
* SetArray acts like a `Set` (allowing only one occurrence of a string `key`), but provides the
|
||||
* index of the `key` in the backing array.
|
||||
*
|
||||
* This is designed to allow synchronizing a second array with the contents of the backing array,
|
||||
* like how in a sourcemap `sourcesContent[i]` is the source content associated with `source[i]`,
|
||||
* and there are never duplicates.
|
||||
*/
|
||||
export declare class SetArray<T extends Key = Key> {
|
||||
private _indexes;
|
||||
array: readonly T[];
|
||||
constructor();
|
||||
}
|
||||
/**
|
||||
* Gets the index associated with `key` in the backing array, if it is already present.
|
||||
*/
|
||||
export declare function get<T extends Key>(setarr: SetArray<T>, key: T): number | undefined;
|
||||
/**
|
||||
* Puts `key` into the backing array, if it is not already present. Returns
|
||||
* the index of the `key` in the backing array.
|
||||
*/
|
||||
export declare function put<T extends Key>(setarr: SetArray<T>, key: T): number;
|
||||
/**
|
||||
* Pops the last added item out of the SetArray.
|
||||
*/
|
||||
export declare function pop<T extends Key>(setarr: SetArray<T>): void;
|
||||
/**
|
||||
* Removes the key, if it exists in the set.
|
||||
*/
|
||||
export declare function remove<T extends Key>(setarr: SetArray<T>, key: T): void;
|
||||
export {};
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
type GeneratedColumn = number;
|
||||
type SourcesIndex = number;
|
||||
type SourceLine = number;
|
||||
type SourceColumn = number;
|
||||
type NamesIndex = number;
|
||||
export type SourceMapSegment = [GeneratedColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn] | [GeneratedColumn, SourcesIndex, SourceLine, SourceColumn, NamesIndex];
|
||||
export declare const COLUMN = 0;
|
||||
export declare const SOURCES_INDEX = 1;
|
||||
export declare const SOURCE_LINE = 2;
|
||||
export declare const SOURCE_COLUMN = 3;
|
||||
export declare const NAMES_INDEX = 4;
|
||||
export {};
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
import type { SourceMapSegment } from './sourcemap-segment';
|
||||
export interface SourceMapV3 {
|
||||
file?: string | null;
|
||||
names: readonly string[];
|
||||
sourceRoot?: string;
|
||||
sources: readonly (string | null)[];
|
||||
sourcesContent?: readonly (string | null)[];
|
||||
version: 3;
|
||||
ignoreList?: readonly number[];
|
||||
}
|
||||
export interface EncodedSourceMap extends SourceMapV3 {
|
||||
mappings: string;
|
||||
}
|
||||
export interface DecodedSourceMap extends SourceMapV3 {
|
||||
mappings: readonly SourceMapSegment[][];
|
||||
}
|
||||
export interface Pos {
|
||||
line: number;
|
||||
column: number;
|
||||
}
|
||||
export interface OriginalPos extends Pos {
|
||||
source: string;
|
||||
}
|
||||
export interface BindingExpressionRange {
|
||||
start: Pos;
|
||||
expression: string;
|
||||
}
|
||||
export type Mapping = {
|
||||
generated: Pos;
|
||||
source: undefined;
|
||||
original: undefined;
|
||||
name: undefined;
|
||||
} | {
|
||||
generated: Pos;
|
||||
source: string;
|
||||
original: Pos;
|
||||
name: string;
|
||||
} | {
|
||||
generated: Pos;
|
||||
source: string;
|
||||
original: Pos;
|
||||
name: undefined;
|
||||
};
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"name": "@jridgewell/gen-mapping",
|
||||
"version": "0.3.13",
|
||||
"description": "Generate source maps",
|
||||
"keywords": [
|
||||
"source",
|
||||
"map"
|
||||
],
|
||||
"main": "dist/gen-mapping.umd.js",
|
||||
"module": "dist/gen-mapping.mjs",
|
||||
"types": "types/gen-mapping.d.cts",
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"types"
|
||||
],
|
||||
"exports": {
|
||||
".": [
|
||||
{
|
||||
"import": {
|
||||
"types": "./types/gen-mapping.d.mts",
|
||||
"default": "./dist/gen-mapping.mjs"
|
||||
},
|
||||
"default": {
|
||||
"types": "./types/gen-mapping.d.cts",
|
||||
"default": "./dist/gen-mapping.umd.js"
|
||||
}
|
||||
},
|
||||
"./dist/gen-mapping.umd.js"
|
||||
],
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
"benchmark": "run-s build:code benchmark:*",
|
||||
"benchmark:install": "cd benchmark && npm install",
|
||||
"benchmark:only": "node --expose-gc benchmark/index.js",
|
||||
"build": "run-s -n build:code build:types",
|
||||
"build:code": "node ../../esbuild.mjs gen-mapping.ts",
|
||||
"build:types": "run-s build:types:force build:types:emit build:types:mts",
|
||||
"build:types:force": "rimraf tsconfig.build.tsbuildinfo",
|
||||
"build:types:emit": "tsc --project tsconfig.build.json",
|
||||
"build:types:mts": "node ../../mts-types.mjs",
|
||||
"clean": "run-s -n clean:code clean:types",
|
||||
"clean:code": "tsc --build --clean tsconfig.build.json",
|
||||
"clean:types": "rimraf dist types",
|
||||
"test": "run-s -n test:types test:only test:format",
|
||||
"test:format": "prettier --check '{src,test}/**/*.ts'",
|
||||
"test:only": "mocha",
|
||||
"test:types": "eslint '{src,test}/**/*.ts'",
|
||||
"lint": "run-s -n lint:types lint:format",
|
||||
"lint:format": "npm run test:format -- --write",
|
||||
"lint:types": "npm run test:types -- --fix",
|
||||
"prepublishOnly": "npm run-s -n build test"
|
||||
},
|
||||
"homepage": "https://github.com/jridgewell/sourcemaps/tree/main/packages/gen-mapping",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jridgewell/sourcemaps.git",
|
||||
"directory": "packages/gen-mapping"
|
||||
},
|
||||
"author": "Justin Ridgewell <justin@ridgewell.name>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@jridgewell/sourcemap-codec": "^1.5.0",
|
||||
"@jridgewell/trace-mapping": "^0.3.24"
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user