Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
wip: simple auth system and masonry layout
Timothy Yin14eaa36fb695
diff --git a/.env.example b/.env.exampleindex ab14bb4c..5cf045c6 100644--- a/.env.example+++ b/.env.example@@ -10,3 +10,9 @@ NUXT_PROVIDER_S3_CDN_URL=NUXT_CLOUDFLARE_API_TOKEN=NUXT_CLOUDFLARE_D1_UUID=++NUXT_OAUTH_GITHUB_CLIENT_ID=+NUXT_OAUTH_GITHUB_CLIENT_SECRET=+NUXT_SESSION_PASSWORD=++NUXT_HUB_PROJECT_KEY=diff --git a/app/components/MasonryPhotoItem.vue b/app/components/MasonryPhotoItem.vuenew file mode 100644index 00000000..3f4d4f49--- /dev/null+++ b/app/components/MasonryPhotoItem.vue@@ -0,0 +1,183 @@+<script setup lang="ts">+interface Photo {+ id?: string+ url: string+ title?: string+ date?: string | Date+}++interface Props {+ photo: Photo+ index: number+ hasAnimated: boolean+ shouldAnimate: boolean+ animationDelay: number+}++const props = defineProps<Props>()+const emit = defineEmits<{+ 'animation-complete': []+ 'visibility-change': [+ { index: number; isVisible: boolean; date: string | Date },+ ]+}>()++// Constants+const ITEM_GAP = 2+const ESTIMATED_HEIGHT = 280++// Reactive state+const isLoading = ref(true)+const estimatedHeight = ref(ESTIMATED_HEIGHT)+const photoRef = ref<HTMLElement>()+const isVisible = ref(false)++// Methods+const handleImageLoad = (event: Event) => {+ const img = event.target as HTMLImageElement+ isLoading.value = false++ // Update estimated height based on actual image dimensions+ if (img.naturalWidth && img.naturalHeight) {+ const aspectRatio = img.naturalHeight / img.naturalWidth+ estimatedHeight.value = 280 * aspectRatio // Assuming 280px width+ }++ // Trigger animation after image loads+ if (props.shouldAnimate) {+ setTimeout(() => {+ emit('animation-complete')+ }, props.animationDelay * 1000)+ }+}++const handleImageError = () => {+ isLoading.value = false+ console.warn(`Failed to load image: ${props.photo.url}`)+}++const formatDate = (date: string | Date): string => {+ if (!date) return ''+ const d = new Date(date)+ return d.toLocaleDateString('en-US', {+ year: 'numeric',+ month: 'short',+ day: 'numeric',+ })+}++// Preload image on mount to get dimensions+onMounted(() => {+ const img = new Image()+ img.onload = () => {+ if (img.naturalWidth && img.naturalHeight) {+ const aspectRatio = img.naturalHeight / img.naturalWidth+ estimatedHeight.value = 280 * aspectRatio+ }+ }+ img.src = props.photo.url++ // Set up intersection observer for visibility tracking+ nextTick(() => {+ if (photoRef.value) {+ const observer = new IntersectionObserver(+ (entries) => {+ entries.forEach((entry) => {+ const newVisibility = entry.isIntersecting+ if (newVisibility !== isVisible.value) {+ isVisible.value = newVisibility+ emit('visibility-change', {+ index: props.index,+ isVisible: newVisibility,+ date: props.photo.date || new Date(),+ })+ }+ })+ },+ {+ threshold: 0.1, // Trigger when 10% of the item is visible+ rootMargin: '50px 0px 50px 0px', // Add some margin for smoother transitions+ },+ )++ observer.observe(photoRef.value)++ // Cleanup observer on unmount+ onUnmounted(() => {+ observer.disconnect()+ })+ }+ })+})+</script>++<template>+ <div+ ref="photoRef"+ class="masonry-item break-inside-avoid transition-all duration-300"+ :style="{+ marginBottom: `${ITEM_GAP}px`,+ opacity: shouldAnimate ? (hasAnimated ? 1 : 0) : 1,+ transform: shouldAnimate+ ? hasAnimated+ ? 'translateY(0) scale(1)'+ : 'translateY(30px) scale(0.95)'+ : 'none',+ }"+ >+ <div+ class="relative group overflow-hidden shadow-lg hover:shadow-xl transition-all duration-300"+ >+ <!-- Loading placeholder -->+ <div+ v-if="isLoading"+ class="w-full bg-gray-200 dark:bg-gray-700 animate-pulse"+ :style="{ height: `${estimatedHeight}px` }"+ />++ <!-- Image -->+ <img+ v-show="!isLoading"+ :src="photo.url"+ :alt="`Photo ${index + 1}`"+ class="w-full h-auto object-cover transition-transform duration-300 group-hover:scale-105"+ @load="handleImageLoad"+ @error="handleImageError"+ loading="lazy"+ />++ <!-- Overlay -->+ <div+ class="absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors duration-300"+ />++ <!-- Photo info overlay (bottom) -->+ <div+ class="absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-4 translate-y-full group-hover:translate-y-0 transition-transform duration-300"+ >+ <div class="text-white">+ <p+ class="text-sm font-medium"+ v-if="photo.title"+ >+ {{ photo.title }}+ </p>+ <p+ class="text-xs opacity-80"+ v-if="photo.date"+ >+ {{ formatDate(photo.date) }}+ </p>+ </div>+ </div>+ </div>+ </div>+</template>++<style scoped>+.masonry-item {+ display: inline-block;+ width: 100%;+ vertical-align: top;+}+</style>diff --git a/app/components/MasonryRoot.vue b/app/components/MasonryRoot.vuenew file mode 100644index 00000000..30fd9c6a--- /dev/null+++ b/app/components/MasonryRoot.vue@@ -0,0 +1,366 @@+<script setup lang="ts">+interface Photo {+ id?: string+ url: string+ title?: string+ date?: string | Date+}++interface Props {+ photos: Photo[]+ columns?: number | 'auto'+}++const props = withDefaults(defineProps<Props>(), {+ columns: 'auto',+})++// Constants+const FIRST_SCREEN_ITEMS_COUNT = 30+const COLUMN_GAP = 2+const MIN_COLUMN_WIDTH = 200+const MAX_COLUMN_WIDTH = 400+const AUTO_COLUMN_WIDTH = 280++// Reactive state+const masonryContainer = ref<HTMLElement>()+const containerWidth = ref(0)+const hasAnimated = ref(false)+const showFloatingActions = ref(false)+const dateRange = ref<string>()+const visiblePhotos = ref(new Set<number>())++// Composables+const isMobile = computed(() => {+ if (typeof window === 'undefined') return false+ return window.innerWidth < 768+})++// Computed+const columnCount = computed(() => {+ if (props.columns === 'auto') {+ if (!containerWidth.value) return 1++ const availableWidth = containerWidth.value - (isMobile.value ? 16 : 32)+ const maxColumns = isMobile.value ? 2 : 6+ const calculatedColumns = Math.floor(+ (availableWidth + COLUMN_GAP) / (AUTO_COLUMN_WIDTH + COLUMN_GAP),+ )++ return Math.min(Math.max(calculatedColumns, 1), maxColumns)+ }++ return props.columns+})++// Methods+const calculateAnimationDelay = (index: number): number => {+ if (hasAnimated.value || index >= FIRST_SCREEN_ITEMS_COUNT) return 0+ return Math.min(index * 0.05, 0.3)+}++const handleAnimationComplete = () => {+ hasAnimated.value = true+}++const handleVisibilityChange = ({+ index,+ isVisible,+}: {+ index: number+ isVisible: boolean+ date: string | Date+}) => {+ if (isVisible) {+ visiblePhotos.value.add(index)+ } else {+ visiblePhotos.value.delete(index)+ }+ updateDateRange()+}++const updateDateRange = () => {+ if (visiblePhotos.value.size === 0) {+ dateRange.value = undefined+ return+ }++ const visibleDates = Array.from(visiblePhotos.value)+ .map((index) => props.photos[index]?.date)+ .filter((date): date is string | Date => Boolean(date))+ .map((date) => new Date(date))+ .sort((a, b) => a.getTime() - b.getTime())++ if (visibleDates.length === 0) {+ dateRange.value = undefined+ return+ }++ const startDate = visibleDates[0]+ const endDate = visibleDates[visibleDates.length - 1]++ if (!startDate || !endDate) {+ dateRange.value = undefined+ return+ }++ // Format date range+ const formatOptions: Intl.DateTimeFormatOptions = {+ year: 'numeric',+ month: 'long',+ }++ if (+ startDate.getFullYear() === endDate.getFullYear() &&+ startDate.getMonth() === endDate.getMonth()+ ) {+ // Same month+ dateRange.value = startDate.toLocaleDateString('zh-CN', formatOptions)+ } else if (startDate.getFullYear() === endDate.getFullYear()) {+ // Same year, different months+ const startMonth = startDate.toLocaleDateString('zh-CN', { month: 'long' })+ const endMonth = endDate.toLocaleDateString('zh-CN', { month: 'long' })+ const year = startDate.getFullYear()+ dateRange.value = `${startMonth} - ${endMonth} ${year}`+ } else {+ // Different years+ const startFormatted = startDate.toLocaleDateString('zh-CN', formatOptions)+ const endFormatted = endDate.toLocaleDateString('zh-CN', formatOptions)+ dateRange.value = `${startFormatted} - ${endFormatted}`+ }+}++const updateContainerWidth = () => {+ if (masonryContainer.value) {+ containerWidth.value = masonryContainer.value.offsetWidth+ }+}++const handleScroll = () => {+ const scrollTop = window.pageYOffset || document.documentElement.scrollTop+ showFloatingActions.value = scrollTop > 500+}++// Lifecycle+onMounted(() => {+ updateContainerWidth()++ // Set up resize observer+ const resizeObserver = new ResizeObserver(() => {+ updateContainerWidth()+ })++ if (masonryContainer.value) {+ resizeObserver.observe(masonryContainer.value)+ }++ // Set up scroll listener+ window.addEventListener('scroll', handleScroll, { passive: true })++ // Cleanup+ onUnmounted(() => {+ resizeObserver.disconnect()+ window.removeEventListener('scroll', handleScroll)+ })+})+</script>++<template>+ <div class="masonry-container">+ <!-- Date Range Indicator for Desktop -->+ <div+ v-if="!isMobile && dateRange && showFloatingActions"+ class="fixed top-4 left-4 z-50 lg:top-6 lg:left-6"+ >+ <div+ class="flex flex-col gap-1 bg-black/60 backdrop-blur-[70px] rounded-xl border border-white/10 px-4 py-2 shadow-2xl"+ >+ <span class="text-white text-4xl font-black">{{ dateRange }}</span>+ <span class="text-white/60 text-xl font-bold">重庆、山东</span>+ </div>+ </div>++ <!-- Floating Action Bar for Desktop -->+ <div+ v-if="!isMobile && showFloatingActions"+ class="fixed top-4 right-4 z-50 lg:top-6 lg:right-6"+ >+ <div+ class="bg-black/60 backdrop-blur-[70px] rounded-xl border border-white/10 p-3 shadow-2xl"+ >+ <div class="flex gap-2">+ <button+ class="p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors"+ >+ <Icon+ name="mdi:grid"+ class="w-5 h-5 text-white"+ />+ </button>+ <button+ class="p-2 rounded-lg bg-white/10 hover:bg-white/20 transition-colors"+ >+ <Icon+ name="mdi:filter"+ class="w-5 h-5 text-white"+ />+ </button>+ </div>+ </div>+ </div>++ <!-- Mobile Date Range Indicator -->+ <div+ v-if="isMobile && dateRange && showFloatingActions"+ class="fixed top-0 right-0 left-0 z-50"+ >+ <div+ class="bg-black/60 backdrop-blur-[70px] border-b border-white/10 px-4 py-3"+ >+ <span class="text-white text-sm">{{ dateRange }}</span>+ </div>+ </div>++ <!-- Mobile Floating Action Button -->+ <div+ v-if="isMobile && showFloatingActions"+ class="fixed bottom-6 right-6 z-50"+ >+ <button+ class="w-14 h-14 bg-blue-500 rounded-full shadow-lg flex items-center justify-center"+ >+ <Icon+ name="mdi:plus"+ class="w-6 h-6 text-white"+ />+ </button>+ </div>++ <!-- Masonry Container -->+ <div+ class="p-1 lg:px-0 lg:pb-0"+ :style="{ userSelect: 'none' }"+ >+ <!-- Mobile Header -->+ <div+ v-if="isMobile"+ class="mb-4 text-center"+ >+ <h1 class="text-2xl font-bold text-gray-900 dark:text-white">+ Photo Gallery+ </h1>+ <AuthState>+ <template #default="{ loggedIn, user, clear }">+ <div+ v-if="loggedIn"+ class="text-gray-600 dark:text-gray-400"+ >+ Logged in as {{ user?.username || user?.email }}+ <button+ @click="clear"+ class="ml-2 text-blue-500"+ >+ Logout+ </button>+ </div>+ <div v-else>+ <a+ href="/api/auth/github"+ class="text-blue-500"+ >+ Login+ </a>+ </div>+ </template>+ <template #placeholder>+ <button disabled>Loading...</button>+ </template>+ </AuthState>+ </div>++ <!-- Masonry Grid -->+ <div+ ref="masonryContainer"+ class="masonry-grid"+ :style="{+ columnCount: columnCount,+ columnGap: `${COLUMN_GAP}px`,+ }"+ >+ <!-- Desktop Header -->+ <div+ v-if="!isMobile"+ class="masonry-item break-inside-avoid mb-4 select-auto"+ :style="{ width: '100%' }"+ >+ <div class="text-center py-8">+ <h1 class="text-4xl font-bold text-gray-900 dark:text-white mb-2">+ Photo Gallery+ </h1>+ <p class="text-gray-600 dark:text-gray-400">+ {{ photos.length }} photos+ </p>+ <AuthState>+ <template #default="{ loggedIn, user, clear }">+ <div+ v-if="loggedIn"+ class="text-gray-600 dark:text-gray-400"+ >+ Logged in as {{ user?.username || user?.email }}+ <button+ @click="clear"+ class="ml-2 text-blue-500"+ >+ Logout+ </button>+ </div>+ <div v-else>+ <a+ href="/api/auth/github"+ class="text-blue-500"+ >+ Login+ </a>+ </div>+ </template>+ <template #placeholder>+ <button disabled>Loading...</button>+ </template>+ </AuthState>+ </div>+ </div>++ <!-- Photo Items -->+ <MasonryPhotoItem+ v-for="(photo, index) in photos"+ :key="photo.id || index"+ :photo="photo"+ :index="index"+ :has-animated="hasAnimated"+ :should-animate="!hasAnimated && index < FIRST_SCREEN_ITEMS_COUNT"+ :animation-delay="calculateAnimationDelay(index)"+ @animation-complete="handleAnimationComplete"+ @visibility-change="handleVisibilityChange"+ />+ </div>+ </div>+ </div>+</template>++<style scoped>+.masonry-container {+ position: relative;+ width: 100%;+}++.masonry-grid {+ width: 100%;+ column-fill: balance;+}++.masonry-item {+ display: inline-block;+ width: 100%;+ vertical-align: top;+}+</style>diff --git a/app/layouts/default.vue b/app/layouts/default.vuenew file mode 100644index 00000000..596c0cab--- /dev/null+++ b/app/layouts/default.vue@@ -0,0 +1,13 @@+<script lang="ts" setup>++</script>++<template>+ <div class="relative h-screen">+ <slot />+ </div>+</template>++<style scoped>++</style>diff --git a/app/pages/index.vue b/app/pages/index.vueindex 964d19fb..690ecdd2 100644--- a/app/pages/index.vue+++ b/app/pages/index.vue@@ -1,13 +1,24 @@<script lang="ts" setup>+const { data } = useFetch('/api/photos')+// Transform data to match the expected photo format+const photos = computed(() => {+ if (!data.value?.urls) return []++ return [...data.value.urls].map((url: string, index: number) => ({+ id: `photo-${index}`,+ url,+ title: `Photo ${index + 1}`,+ date: new Date(2024, index + 1, index + 1), // Mock dates for demo+ }))+})</script><template>- <div>- Index+ <div class="min-h-screen p-2 pt-1 bg-gray-50 dark:bg-gray-900">+ <MasonryRoot+ :photos="photos"+ :columns="'auto'"+ /></div></template>--<style scoped>--</style>diff --git a/drizzle.config.ts b/drizzle.config.tsnew file mode 100644index 00000000..394b628b--- /dev/null+++ b/drizzle.config.ts@@ -0,0 +1,7 @@+import { defineConfig } from 'drizzle-kit'++export default defineConfig({+ dialect: 'sqlite',+ schema: './server/database/schema.ts',+ out: './server/database/migrations',+})diff --git a/generate-hash.mjs b/generate-hash.mjsnew file mode 100644index 00000000..4e587542--- /dev/null+++ b/generate-hash.mjs@@ -0,0 +1,11 @@+import crypto from 'crypto';++const password = 'admin123';+const salt = crypto.randomBytes(16).toString('hex');++crypto.scrypt(password, salt, 64, (err, derivedKey) => {+ if (err) throw err;+ const hash = salt + ':' + derivedKey.toString('hex');+ console.log('Generated hash for password "' + password + '":');+ console.log(hash);+});diff --git a/nuxt.config.ts b/nuxt.config.tsindex b7d00b67..497a1398 100644--- a/nuxt.config.ts+++ b/nuxt.config.ts@@ -13,6 +13,7 @@ export default defineNuxtConfig({'@nuxt/test-utils','motion-v/nuxt','@nuxthub/core',+ 'nuxt-auth-utils',],css: ['~/assets/css/tailwind.css'],@@ -46,4 +47,4 @@ export default defineNuxtConfig({vite: {plugins: [tailwindcss() as any],},-})+})\ No newline at end of filediff --git a/package.json b/package.jsonindex a2f934e7..af16cc0e 100644--- a/package.json+++ b/package.json@@ -8,6 +8,7 @@"type": "module","private": true,"scripts": {+ "db:generate": "drizzle-kit generate","build": "nuxt build","build:deps": "pnpm --filter @chronoframe/webgl-image build","dev": "pnpm dev:deps",@@ -28,9 +29,11 @@"@tailwindcss/vite": "^4.1.12","cloudflare": "^4.5.0","concurrently": "^9.2.0",+ "drizzle-orm": "^0.44.4","eslint": "^9.0.0","motion-v": "^1.7.0","nuxt": "^4.0.3",+ "nuxt-auth-utils": "0.5.23","tailwindcss": "^4.1.12","vue": "^3.5.18","vue-router": "^4.5.1",@@ -40,6 +43,7 @@"packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a","devDependencies": {"consola": "^3.4.2",+ "drizzle-kit": "^0.31.4","eslint-config-prettier": "^10.1.8","eslint-plugin-prettier": "^5.5.4","prettier": "^3.6.2"diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 641d2a68..b9779f50 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -19,19 +19,19 @@ importers:version: 1.9.0(@typescript-eslint/[email protected]([email protected]([email protected]))([email protected]))(@vue/[email protected])([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@nuxt/fonts':specifier: 0.11.4- version: 0.11.4(@netlify/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 0.11.4(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@nuxt/icon':specifier: 2.0.0version: 2.0.0([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))'@nuxt/image':specifier: 1.11.0- version: 1.11.0(@netlify/[email protected])([email protected])([email protected])([email protected])+ version: 1.11.0(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])([email protected])'@nuxt/test-utils':specifier: 3.19.2version: 3.19.2([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@nuxthub/core':specifier: 0.9.0- version: 0.9.0(@netlify/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))+ version: 0.9.0(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@tailwindcss/vite':specifier: ^4.1.12version: 4.1.12([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))@@ -41,6 +41,9 @@ importers:concurrently:specifier: ^9.2.0version: 9.2.0+ drizzle-orm:+ specifier: ^0.44.4+ version: 0.44.4(@cloudflare/[email protected])eslint:specifier: ^9.0.0version: 9.33.0([email protected])@@ -49,7 +52,10 @@ importers:version: 1.7.0(@vueuse/[email protected]([email protected]([email protected])))([email protected]([email protected]))nuxt:specifier: ^4.0.3- version: 4.0.3(@netlify/[email protected])(@parcel/[email protected])(@types/[email protected])(@vue/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])+ version: 4.0.3(@netlify/[email protected])(@parcel/[email protected])(@types/[email protected])(@vue/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected](@cloudflare/[email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])+ nuxt-auth-utils:+ specifier: 0.5.23+ version: 0.5.23([email protected])tailwindcss:specifier: ^4.1.12version: 4.1.12@@ -69,6 +75,9 @@ importers:consola:specifier: ^3.4.2version: 3.4.2+ drizzle-kit:+ specifier: ^0.31.4+ version: 0.31.4eslint-config-prettier:specifier: ^10.1.8version: 10.1.8([email protected]([email protected]))@@ -109,6 +118,18 @@ importers:packages:+ '@adonisjs/[email protected]':+ resolution: {integrity: sha512-ZkRguwjAp4skKvKDdRAfdJ2oqQ0N7p9l3sioyXO1E8o0WcsyDgEpsTQtuVNoIdMiw4sn4gJlmL3nyF4BcK1ZDQ==}+ engines: {node: '>=20.6.0'}+ peerDependencies:+ argon2: ^0.31.2 || ^0.41.0 || ^0.43.0+ bcrypt: ^5.1.1 || ^6.0.0+ peerDependenciesMeta:+ argon2:+ optional: true+ bcrypt:+ optional: true+'@ampproject/[email protected]':resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==}engines: {node: '>=6.0.0'}@@ -470,6 +491,9 @@ packages:resolution: {integrity: sha512-Y6+WUMsTFWE5jb20IFP4YGa5IrGY/+a/FbOSjDF/wz9gepU2hwCYSXRHP/vPwBvwcY3SVMASt4yXxbXNXigmZQ==}engines: {node: '>=18'}+ '@drizzle-team/[email protected]':+ resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==}+'@emnapi/[email protected]':resolution: {integrity: sha512-XsLw1dEOpkSX/WucdqUhPWP7hDxSvZiY+fsUC14h+FtQ2Ifni4znbBt8punRX+Uj2JG/uDb8nEHVKvrVlvdZ5Q==}@@ -483,6 +507,14 @@ packages:resolution: {integrity: sha512-Wyed8Wfn3vMNVwrZrgLMxmqwmlcCE1/RfUAOHFzMJb3QLH03mi9Yv1iOCZjif0yx5EZUeJ+17VD1MHPka9IQjQ==}engines: {node: '>=20.11.0'}+ '@esbuild-kit/[email protected]':+ resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==}+ deprecated: 'Merged into tsx: https://tsx.is'++ '@esbuild-kit/[email protected]':+ resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==}+ deprecated: 'Merged into tsx: https://tsx.is'+'@esbuild/[email protected]':resolution: {integrity: sha512-1VCICWypeQKhVbE9oW/sJaAmjLxhVqacdkvPLEjwlttjfwENRSClS8EjBz0KzRyFSCPDIkuXW34Je/vk7zdB7Q==}engines: {node: '>=18'}@@ -501,6 +533,12 @@ packages:cpu: [ppc64]os: [aix]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-bBy69pgfhMGtCnwpC/x5QhfxAz/cBgQ9enbtwjf6V9lnPI/hMyT9iWpR1arm0l3kttTr4L0KSLpKmLp/ilKS9A==}engines: {node: '>=18'}@@ -519,6 +557,12 @@ packages:cpu: [arm64]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-QNdQEps7DfFwE3hXiU4BZeOV68HHzYwGd0Nthhd3uCkkEKK7/R6MTgM0P7H7FAs5pU/DIWsviMmEGxEoxIZ+ZQ==}engines: {node: '>=18'}@@ -537,6 +581,12 @@ packages:cpu: [arm]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [android]+'@esbuild/[email protected]':resolution: {integrity: sha512-TVhdVtQIFuVpIIR282btcGC2oGQoSfZfmBdTip2anCaVYcqWlZXGcdcKIUklfX2wj0JklNYgz39OBqh2cqXvcQ==}engines: {node: '>=18'}@@ -555,6 +605,12 @@ packages:cpu: [x64]os: [android]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [darwin]+'@esbuild/[email protected]':resolution: {integrity: sha512-Y1giCfM4nlHDWEfSckMzeWNdQS31BQGs9/rouw6Ub91tkK79aIMTH3q9xHvzH8d0wDru5Ci0kWB8b3up/nl16g==}engines: {node: '>=18'}@@ -573,6 +629,12 @@ packages:cpu: [arm64]os: [darwin]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [darwin]+'@esbuild/[email protected]':resolution: {integrity: sha512-CJsry8ZGM5VFVeyUYB3cdKpd/H69PYez4eJh1W/t38vzutdjEjtP7hB6eLKBoOdxcAlCtEYHzQ/PJ/oU9I4u0A==}engines: {node: '>=18'}@@ -591,6 +653,12 @@ packages:cpu: [x64]os: [darwin]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [freebsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-yYq+39NlTRzU2XmoPW4l5Ifpl9fqSk0nAJYM/V/WUGPEFfek1epLHJIkTQM6bBs1swApjO5nWgvr843g6TjxuQ==}engines: {node: '>=18'}@@ -609,6 +677,12 @@ packages:cpu: [arm64]os: [freebsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [freebsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-0FgvOJ6UUMflsHSPLzdfDnnBBVoCDtBTVyn/MrWloUNvq/5SFmh13l3dvgRPkDihRxb77Y17MbqbCAa2strMQQ==}engines: {node: '>=18'}@@ -627,6 +701,12 @@ packages:cpu: [x64]os: [freebsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-+89UsQTfXdmjIvZS6nUnOOLoXnkUTB9hR5QAeLrQdzOSWZvNSAXAtcRDHWtqAUtAmv7ZM1WPOOeSxDzzzMogiQ==}engines: {node: '>=18'}@@ -645,6 +725,12 @@ packages:cpu: [arm64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==}+ engines: {node: '>=12'}+ cpu: [arm]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-kro4c0P85GMfFYqW4TWOpvmF8rFShbWGnrLqlzp4X1TNWjRY3JMYUfDCtOxPKOIY8B0WC8HN51hGP4I4hz4AaQ==}engines: {node: '>=18'}@@ -663,6 +749,12 @@ packages:cpu: [arm]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-yTEjoapy8UP3rv8dB0ip3AfMpRbyhSN3+hY8mo/i4QXFeDxmiYbEKp3ZRjBKcOP862Ua4b1PDfwlvbuwY7hIGQ==}engines: {node: '>=18'}@@ -681,6 +773,12 @@ packages:cpu: [ia32]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==}+ engines: {node: '>=12'}+ cpu: [loong64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-NeqqYkrcGzFwi6CGRGNMOjWGGSYOpqwCjS9fvaUlX5s3zwOtn1qwg1s2iE2svBe4Q/YOG1q6875lcAoQK/F4VA==}engines: {node: '>=18'}@@ -699,6 +797,12 @@ packages:cpu: [loong64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==}+ engines: {node: '>=12'}+ cpu: [mips64el]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-IcvTlF9dtLrfL/M8WgNI/qJYBENP3ekgsHbYUIzEzq5XJzzVEV/fXY9WFPfEEXmu3ck2qJP8LG/p3Q8f7Zc2Xg==}engines: {node: '>=18'}@@ -717,6 +821,12 @@ packages:cpu: [mips64el]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==}+ engines: {node: '>=12'}+ cpu: [ppc64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-HOy0aLTJTVtoTeGZh4HSXaO6M95qu4k5lJcH4gxv56iaycfz1S8GO/5Jh6X4Y1YiI0h7cRyLi+HixMR+88swag==}engines: {node: '>=18'}@@ -735,6 +845,12 @@ packages:cpu: [ppc64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==}+ engines: {node: '>=12'}+ cpu: [riscv64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-i8JUDAufpz9jOzo4yIShCTcXzS07vEgWzyX3NH2G7LEFVgrLEhjwL3ajFE4fZI3I4ZgiM7JH3GQ7ReObROvSUA==}engines: {node: '>=18'}@@ -753,6 +869,12 @@ packages:cpu: [riscv64]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==}+ engines: {node: '>=12'}+ cpu: [s390x]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-jFnu+6UbLlzIjPQpWCNh5QtrcNfMLjgIavnwPQAfoGx4q17ocOU9MsQ2QVvFxwQoWpZT8DvTLooTvmOQXkO51g==}engines: {node: '>=18'}@@ -771,6 +893,12 @@ packages:cpu: [s390x]os: [linux]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [linux]+'@esbuild/[email protected]':resolution: {integrity: sha512-6e0cvXwzOnVWJHq+mskP8DNSrKBr1bULBvnFLpc1KY+d+irZSgZ02TGse5FsafKS5jg2e4pbvK6TPXaF/A6+CA==}engines: {node: '>=18'}@@ -807,6 +935,12 @@ packages:cpu: [arm64]os: [netbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [netbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-XAg8pIQn5CzhOB8odIcAm42QsOfa98SBeKUdo4xa8OvX8LbMZqEtgeWE9P/Wxt7MlG2QqvjGths+nq48TrUiKw==}engines: {node: '>=18'}@@ -843,6 +977,12 @@ packages:cpu: [arm64]os: [openbsd]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [openbsd]+'@esbuild/[email protected]':resolution: {integrity: sha512-xAGGhyOQ9Otm1Xu8NT1ifGLnA6M3sJxZ6ixylb+vIUVzvvd6GOALpwQrYrtlPouMqd/vSbgehz6HaVk4+7Afhw==}engines: {node: '>=18'}@@ -867,6 +1007,12 @@ packages:cpu: [arm64]os: [openharmony]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [sunos]+'@esbuild/[email protected]':resolution: {integrity: sha512-Mw+tzy4pp6wZEK0+Lwr76pWLjrtjmJyUB23tHKqEDP74R3q95luY/bXqXZeYl4NYlvwOqoRKlInQialgCKy67Q==}engines: {node: '>=18'}@@ -885,6 +1031,12 @@ packages:cpu: [x64]os: [sunos]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==}+ engines: {node: '>=12'}+ cpu: [arm64]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-AVUP428VQTSddguz9dO9ngb+E5aScyg7nOeJDrF1HPYu555gmza3bDGMPhmVXL8svDSoqPCsCPjb265yG/kLKQ==}engines: {node: '>=18'}@@ -903,6 +1055,12 @@ packages:cpu: [arm64]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==}+ engines: {node: '>=12'}+ cpu: [ia32]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-i1sW+1i+oWvQzSgfRcxxG2k4I9n3O9NRqy8U+uugaT2Dy7kLO9Y7wI72haOahxceMX8hZAzgGou1FhndRldxRg==}engines: {node: '>=18'}@@ -921,6 +1079,12 @@ packages:cpu: [ia32]os: [win32]+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==}+ engines: {node: '>=12'}+ cpu: [x64]+ os: [win32]+'@esbuild/[email protected]':resolution: {integrity: sha512-nOT2vZNw6hJ+z43oP1SPea/G/6AbN6X+bGNhNuq8NtRHy4wsMhw765IKLNmnjek7GvjWBYQ8Q5VBoYTFg9y1UQ==}engines: {node: '>=18'}@@ -1191,6 +1355,10 @@ packages:'@kwsites/[email protected]':resolution: {integrity: sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==}+ '@lukeed/[email protected]':+ resolution: {integrity: sha512-9I2Zn6+NJLfaGoz9jN3lpwDgAYvfGeNYdbAIjJOqzs4Tpc+VU3Jqq4IofSUBKajiDS8k9fZIg18/z13mpk1bsA==}+ engines: {node: '>=8'}+'@mapbox/[email protected]':resolution: {integrity: sha512-llMXd39jtP0HpQLVI37Bf1m2ADlEb35GYSh1SDSLsBhR+5iCxiNGlT31yqbNtVHygHAtMy6dWFERpU2JgufhPg==}engines: {node: '>=18'}@@ -1754,6 +1922,10 @@ packages:resolution: {integrity: sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==}engines: {node: '>= 10.0.0'}+ '@phc/[email protected]':+ resolution: {integrity: sha512-m7X9U6BG2+J+R1lSOdCiITLLrxm+cWlNI3HUFA92oLO77ObGNzaKdh8pMLqdZcshtkKuV84olNNXDfMc4FezBQ==}+ engines: {node: '>=10'}+'@pkgjs/[email protected]':resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==}engines: {node: '>=14'}@@ -1774,6 +1946,17 @@ packages:'@poppinss/[email protected]':resolution: {integrity: sha512-m7bpKCD4QMlFCjA/nKTs23fuvoVFoA83brRKmObCUNmi/9tVu8Ve3w4YQAnJu4q3Tjf5fr685HYIC/IA2zHRSg==}+ '@poppinss/[email protected]':+ resolution: {integrity: sha512-FOrOq52l7u8goR5yncX14+k+Ewi5djnrt1JwXeS/FvnwAPOiveFhiczCDuvXdssAwamtrV2hp5Rw9v+n2T7hQg==}+ engines: {node: '>=20.6.0'}++ '@poppinss/[email protected]':+ resolution: {integrity: sha512-IuCtWaUwmJeAdby0n1a5cTYsBLe7fPymdc4oNTTl1b6l+Ok+14XpSX0ILOEU6UtZ9D2XI3f4TVUh4Titkk1xgw==}++ '@poppinss/[email protected]':+ resolution: {integrity: sha512-da+MMyeXhBaKtxQiWPfy7+056wk3lVIhioJnXHXkJ2/OHDaZfFcyKHNl1R06sdYO8lIRXcXdoZ6LO2ARmkAREA==}+ engines: {node: '>=18.16.0'}+'@rolldown/[email protected]':resolution: {integrity: sha512-NIJgOsMjbxAXvoGq/X0gD7VPMQ8j9g0BiDaNjVNVjvl+iKXxL3Jre0v31RmBYeLEmkbj2s02v8vFTbUXi5XS2Q==}@@ -2315,6 +2498,9 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-ebDJ9b0e702Yr7pWgB0jzm+CX4Srzz8RcXtLJDJB+BSccqMa36uyH/zUsSYao5+BD1ytv3k3rPYCq4mAE1hsXA==}+ '@types/[email protected]':+ resolution: {integrity: sha512-VgZkrJckypj85YxEsEavcMmmSOIzkUHqWmM4CCyia5dc54YwsXzJ5uT4fYxBQNEXx+oF1krlhgCbvfubXqZYsQ==}+'@types/[email protected]':resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==}@@ -2346,6 +2532,9 @@ packages:resolution: {integrity: sha512-EULJ8LApcVEPbrfND0cRQqutIOdiIgJ1Mgrhpy755r14xMohPTEpkV/k28SJvuOs9bHRFW8x+KeDAEPiGQPB9Q==}deprecated: This is a stub types definition. parse-path provides its own type definitions, so you do not need this installed.+ '@types/[email protected]':+ resolution: {integrity: sha512-JOqsl+ZoCpP4e8TDke9W79FDcSgPAR0l6pixx2JHkhnRjvShyYiAYw2LVsnA7K08Y6DeOnaU6ujmENO4os/cYg==}+'@types/[email protected]':resolution: {integrity: sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==}@@ -2977,6 +3166,10 @@ packages:peerDependencies:esbuild: '>=0.18'+ resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}+ engines: {node: '>= 0.8'}+resolution: {integrity: sha512-ixkEtbYafL56E6HiFuonMm1ZjoKtIo7TH68/uiEq4DAwv9NcUX2nJ95F8TrbMeNjqIkZpruo3ojXQJ+MGG5gcQ==}peerDependencies:@@ -3010,6 +3203,10 @@ packages:resolution: {integrity: sha512-ImpN5gLEY8gWeqfLUyEF4b7mYWcYoR2Si1VhnrbM4JizRFmfGaAQ12PhNykq6nvI4XvKLrsp8Xde74D5phJOSw==}+ resolution: {integrity: sha512-wljhAjDDIv/hM2FzgJnYQg90AWmZMNtESCjTeLH680qTzdo0nErlCxOmgzgX4ZsZAtIvqHyD87ES8QyriXB+BQ==}+ engines: {node: '>=18'}+resolution: {integrity: sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==}engines: {node: '>=18'}@@ -3450,6 +3647,102 @@ packages:resolution: {integrity: sha512-kQhDYKZecqnM0fCnzI5eIv5L4cAe/iRI+HqMbO/hbRdTAeXDG+M9FjipUxNfbARuEg4iHIbhnhs78BCHNbSxEQ==}engines: {node: '>=12'}+ resolution: {integrity: sha512-tCPWVZWZqWVx2XUsVpJRnH9Mx0ClVOf5YUHerZ5so1OKSlqww4zy1R5ksEdGRcO3tM3zj0PYN6V48TbQCL1RfA==}+ hasBin: true++ resolution: {integrity: sha512-ZyzKFpTC/Ut3fIqc2c0dPZ6nhchQXriTsqTNs4ayRgl6sZcFlMs9QZKPSHXK4bdOf41GHGWf+FrpcDDYwW+W6Q==}+ peerDependencies:+ '@aws-sdk/client-rds-data': '>=3'+ '@cloudflare/workers-types': '>=4'+ '@electric-sql/pglite': '>=0.2.0'+ '@libsql/client': '>=0.10.0'+ '@libsql/client-wasm': '>=0.10.0'+ '@neondatabase/serverless': '>=0.10.0'+ '@op-engineering/op-sqlite': '>=2'+ '@opentelemetry/api': ^1.4.1+ '@planetscale/database': '>=1.13'+ '@prisma/client': '*'+ '@tidbcloud/serverless': '*'+ '@types/better-sqlite3': '*'+ '@types/pg': '*'+ '@types/sql.js': '*'+ '@upstash/redis': '>=1.34.7'+ '@vercel/postgres': '>=0.8.0'+ '@xata.io/client': '*'+ better-sqlite3: '>=7'+ bun-types: '*'+ expo-sqlite: '>=14.0.0'+ gel: '>=2'+ knex: '*'+ kysely: '*'+ mysql2: '>=2'+ pg: '>=8'+ postgres: '>=3'+ prisma: '*'+ sql.js: '>=1'+ sqlite3: '>=5'+ peerDependenciesMeta:+ '@aws-sdk/client-rds-data':+ optional: true+ '@cloudflare/workers-types':+ optional: true+ '@electric-sql/pglite':+ optional: true+ '@libsql/client':+ optional: true+ '@libsql/client-wasm':+ optional: true+ '@neondatabase/serverless':+ optional: true+ '@op-engineering/op-sqlite':+ optional: true+ '@opentelemetry/api':+ optional: true+ '@planetscale/database':+ optional: true+ '@prisma/client':+ optional: true+ '@tidbcloud/serverless':+ optional: true+ '@types/better-sqlite3':+ optional: true+ '@types/pg':+ optional: true+ '@types/sql.js':+ optional: true+ '@upstash/redis':+ optional: true+ '@vercel/postgres':+ optional: true+ '@xata.io/client':+ optional: true+ better-sqlite3:+ optional: true+ bun-types:+ optional: true+ expo-sqlite:+ optional: true+ gel:+ optional: true+ knex:+ optional: true+ kysely:+ optional: true+ mysql2:+ optional: true+ pg:+ optional: true+ postgres:+ optional: true+ prisma:+ optional: true+ sql.js:+ optional: true+ sqlite3:+ optional: true+resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}engines: {node: '>= 0.4'}@@ -3519,6 +3812,16 @@ packages:resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-H2/S7Pm8a9CL1uhp9OvjwrBh5Pvx0H8qVOxNu8Wed9Y7qv56MPtq+GGM8RJpq6glYJn9Wspr8uw7l55uyinNeg==}+ peerDependencies:+ esbuild: '>=0.12 <1'++ resolution: {integrity: sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==}+ engines: {node: '>=12'}+ hasBin: true+resolution: {integrity: sha512-8pgjLUcUjcgDg+2Q4NYXnPbo/vncAY4UmyaCm0jZevERqCHZIaWwdJHkf8XQtu4AxSKCdvrUbT0XUr1IdZzI8Q==}engines: {node: '>=18'}@@ -3838,6 +4141,10 @@ packages:resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}+ resolution: {integrity: sha512-9UbaD6XdAL97+k/n+N7JwX46K/M6Zc6KcFYskrYL8wbBV/Uyk0CTAMY0VT+qiK5PM7AIc9aTWYtq65U7T+aCNQ==}+ engines: {node: '>=8'}+resolution: {integrity: sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw==}@@ -4254,6 +4561,12 @@ packages:resolution: {integrity: sha512-otDA4ldcIx+ZXsKHWmp0YizCweVRZG96J10b0FevjfuncLO1oX59THoAmHkNubYJ+9gWsYsp5k8v4ib6oDv1fA==}+ resolution: {integrity: sha512-s+3Al/p9g32Iq+oqXxkW//7jk2Vig6FF1CFqzVXoTUXt2qz89YWbL+OwS17NFYEvxC35n0FKeGO2LGYSxeM2Gg==}++ resolution: {integrity: sha512-Yms4GpbmdANamS51kKK6w4hRlKx8KTxbWyAAKT/MhUMtqbIqh5mb2HjhTNUbk7TFL8/MBB5zWSDohL7ed4k/UA==}+resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}@@ -4764,6 +5077,23 @@ packages:resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}+ resolution: {integrity: sha512-XnpfMOO/W8QcO/tB7tNONMa64Scrk9lNaGM4rwGhwm7bTbjhS+10IvwexdQP8upks2rAH6T9s5pntI9xlf7kjQ==}+ peerDependencies:+ '@atproto/api': ^0.13.15+ '@atproto/oauth-client-node': ^0.2.0+ '@simplewebauthn/browser': ^11.0.0+ '@simplewebauthn/server': ^11.0.0+ peerDependenciesMeta:+ '@atproto/api':+ optional: true+ '@atproto/oauth-client-node':+ optional: true+ '@simplewebauthn/browser':+ optional: true+ '@simplewebauthn/server':+ optional: true+resolution: {integrity: sha512-skRFoxY/1nphk+viF5ZEDLNEMJse0J/U5+wAYtJfYQ86EcEpLMm9v78FwdCc5IioKpgmSda6ZlLxY1DgK+6SDw==}engines: {node: ^20.19.0 || >=22.12.0}@@ -4782,6 +5112,9 @@ packages:engines: {node: ^14.16.0 || >=16.10.0}hasBin: true+ resolution: {integrity: sha512-Q52wTPUWPsVLVVmTViXPQFMW2h2xv2jnDGxypjpelCFKaOjLsm7AxYuOk1oQgFm95VNDbuggasu9htXrz6XwKw==}+resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}engines: {node: '>= 0.4'}@@ -4818,6 +5151,9 @@ packages:resolution: {integrity: sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ==}engines: {node: '>=12'}+ resolution: {integrity: sha512-PLWVhRksRnNH05sqeuCX/PR+1J70NyZcAcPske+FeF732KKONd3v0p5Utx1ro1iLfCglH8B3/+dA1vqIHDoIiA==}+resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}engines: {node: '>= 0.8.0'}@@ -5385,6 +5721,9 @@ packages:resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==}+ resolution: {integrity: sha512-dxtLJO6sc35jWidmLxo7ij+Eg48PM/kleBsxpC8QJE0qJICe+KawkDQmvCMZUr9u7WKVHgMW6vy3fQ7zMiFZMA==}+resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}hasBin: true@@ -5482,6 +5821,10 @@ packages:resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==}engines: {node: '>=14.16'}+ resolution: {integrity: sha512-h+z7HKHYXj6wJU+AnS/+IH8Uh9fdcX1Lrhg1/VMdf9PwoBQXFcXiAdsy2tSK0P6gKwJLXp02r90ahUCqHk9rrw==}+ engines: {node: '>=8.0.0'}+resolution: {integrity: sha512-g6T+p7QO8npa+/hNx9ohv1E5pVCmWrVCUzUXJyLdMmftX6ER0oiWY/w9knEonLpnOp6b6FenKnMfR8gqwWdwig==}@@ -5747,6 +6090,9 @@ packages:resolution: {integrity: sha512-aZbgViZrg1QNcG+LULa7nhZpJTZSLm/mXnHXnbAbjmN5aSa0y7V+wvv6+4WaBtpISJzThKy+PIPxc1Nq1EJ9mg==}engines: {node: '>= 14.0.0'}+ resolution: {integrity: sha512-cXzueh9pzBCsLzhToB4X4gZCb3KYkrsAcBAX97JnazE74HOl3cpBJYEV7nabHeG/6/WXCU5Yujlde/WPBUwnsg==}+resolution: {integrity: sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==}engines: {node: '>=18.12'}@@ -6320,6 +6666,11 @@ packages:snapshots:+ '@adonisjs/[email protected]':+ dependencies:+ '@phc/format': 1.0.0+ '@poppinss/utils': 6.10.1+'@ampproject/[email protected]':dependencies:'@jridgewell/gen-mapping': 0.3.13@@ -7040,6 +7391,8 @@ snapshots:gonzales-pe: 4.3.0node-source-walk: 7.0.1+ '@drizzle-team/[email protected]': {}+'@emnapi/[email protected]':dependencies:'@emnapi/wasi-threads': 1.0.4@@ -7064,6 +7417,16 @@ snapshots:esquery: 1.6.0jsdoc-type-pratt-parser: 4.8.0+ '@esbuild-kit/[email protected]':+ dependencies:+ esbuild: 0.18.20+ source-map-support: 0.5.21++ '@esbuild-kit/[email protected]':+ dependencies:+ '@esbuild-kit/core-utils': 3.3.2+ get-tsconfig: 4.10.1+'@esbuild/[email protected]':optional: true@@ -7073,6 +7436,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7082,6 +7448,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7091,6 +7460,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7100,6 +7472,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7109,6 +7484,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7118,6 +7496,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7127,6 +7508,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7136,6 +7520,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7145,6 +7532,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7154,6 +7544,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7163,6 +7556,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7172,6 +7568,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7181,6 +7580,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7190,6 +7592,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7199,6 +7604,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7208,6 +7616,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7226,6 +7637,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7244,6 +7658,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7256,6 +7673,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7265,6 +7685,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7274,6 +7697,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7283,6 +7709,9 @@ snapshots:'@esbuild/[email protected]':optional: true+ '@esbuild/[email protected]':+ optional: true+'@esbuild/[email protected]':optional: true@@ -7544,6 +7973,8 @@ snapshots:'@kwsites/[email protected]': {}+ '@lukeed/[email protected]': {}+'@mapbox/[email protected]':dependencies:consola: 3.4.2@@ -7915,7 +8346,7 @@ snapshots:- utf-8-validate- vite- '@nuxt/[email protected](@netlify/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@nuxt/[email protected](@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@nuxt/devtools-kit': 2.6.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))'@nuxt/kit': 3.18.1([email protected])@@ -7936,7 +8367,7 @@ snapshots:ufo: 1.6.1unifont: 0.4.1unplugin: 2.3.8+ unstorage: 1.16.1(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])transitivePeerDependencies:- '@azure/app-configuration'- '@azure/cosmos'@@ -7982,7 +8413,7 @@ snapshots:- vite- vue- '@nuxt/[email protected](@netlify/[email protected])([email protected])([email protected])([email protected])':+ '@nuxt/[email protected](@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])([email protected])':dependencies:'@nuxt/kit': 3.18.1([email protected])consola: 3.4.2@@ -7995,7 +8426,7 @@ snapshots:std-env: 3.9.0ufo: 1.6.1optionalDependencies:+ ipx: 2.1.1(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])transitivePeerDependencies:- '@azure/app-configuration'- '@azure/cosmos'@@ -8186,7 +8617,7 @@ snapshots:- vue-tsc- yaml- '@nuxthub/[email protected](@netlify/[email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@nuxthub/[email protected](@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@cloudflare/workers-types': 4.20250823.0'@nuxt/devtools-kit': 2.6.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))@@ -8205,7 +8636,7 @@ snapshots:std-env: 3.9.0ufo: 1.6.1uncrypto: 0.1.3+ unstorage: 1.16.1(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])zod: 3.25.76transitivePeerDependencies:- '@azure/app-configuration'@@ -8437,6 +8868,8 @@ snapshots:'@parcel/watcher-win32-ia32': 2.5.1'@parcel/watcher-win32-x64': 2.5.1+ '@phc/[email protected]': {}+'@pkgjs/[email protected]':optional: true@@ -8456,6 +8889,28 @@ snapshots:'@poppinss/[email protected]': {}+ '@poppinss/[email protected]': {}++ '@poppinss/[email protected]':+ dependencies:+ '@lukeed/ms': 2.0.2+ '@types/bytes': 3.1.5+ '@types/pluralize': 0.0.33+ bytes: 3.1.2+ case-anything: 3.1.2+ pluralize: 8.0.0+ slugify: 1.6.6+ truncatise: 0.0.8++ '@poppinss/[email protected]':+ dependencies:+ '@poppinss/exception': 1.2.2+ '@poppinss/object-builder': 1.1.0+ '@poppinss/string': 1.7.0+ flattie: 1.1.1+ safe-stable-stringify: 2.5.0+ secure-json-parse: 4.0.0+'@rolldown/[email protected]': {}'@rolldown/[email protected]': {}@@ -9062,6 +9517,8 @@ snapshots:'@types/[email protected]': {}+ '@types/[email protected]': {}+'@types/[email protected]':dependencies:'@types/deep-eql': 4.0.2@@ -9097,6 +9554,8 @@ snapshots:dependencies:parse-path: 7.1.0+ '@types/[email protected]': {}+'@types/[email protected]': {}'@types/[email protected]': {}@@ -9836,6 +10295,8 @@ snapshots:esbuild: 0.25.9load-tsconfig: 0.2.5+ [email protected]: {}+dependencies:chokidar: 4.0.3@@ -9878,6 +10339,8 @@ snapshots:+ [email protected]: {}+dependencies:assertion-error: 2.0.1@@ -10168,7 +10631,9 @@ snapshots:- [email protected]: {}+ optionalDependencies:+ drizzle-orm: 0.44.4(@cloudflare/[email protected])@@ -10308,6 +10773,19 @@ snapshots:+ dependencies:+ '@drizzle-team/brocli': 0.10.2+ '@esbuild-kit/esm-loader': 2.6.5+ esbuild: 0.25.9+ esbuild-register: 3.6.0([email protected])+ transitivePeerDependencies:+ - supports-color++ [email protected](@cloudflare/[email protected]):+ optionalDependencies:+ '@cloudflare/workers-types': 4.20250823.0+dependencies:call-bind-apply-helpers: 1.0.2@@ -10364,6 +10842,38 @@ snapshots:has-tostringtag: 1.0.2hasown: 2.0.2+ dependencies:+ debug: 4.4.1+ esbuild: 0.25.9+ transitivePeerDependencies:+ - supports-color++ optionalDependencies:+ '@esbuild/android-arm': 0.18.20+ '@esbuild/android-arm64': 0.18.20+ '@esbuild/android-x64': 0.18.20+ '@esbuild/darwin-arm64': 0.18.20+ '@esbuild/darwin-x64': 0.18.20+ '@esbuild/freebsd-arm64': 0.18.20+ '@esbuild/freebsd-x64': 0.18.20+ '@esbuild/linux-arm': 0.18.20+ '@esbuild/linux-arm64': 0.18.20+ '@esbuild/linux-ia32': 0.18.20+ '@esbuild/linux-loong64': 0.18.20+ '@esbuild/linux-mips64el': 0.18.20+ '@esbuild/linux-ppc64': 0.18.20+ '@esbuild/linux-riscv64': 0.18.20+ '@esbuild/linux-s390x': 0.18.20+ '@esbuild/linux-x64': 0.18.20+ '@esbuild/netbsd-x64': 0.18.20+ '@esbuild/openbsd-x64': 0.18.20+ '@esbuild/sunos-x64': 0.18.20+ '@esbuild/win32-arm64': 0.18.20+ '@esbuild/win32-ia32': 0.18.20+ '@esbuild/win32-x64': 0.18.20+optionalDependencies:'@esbuild/aix-ppc64': 0.25.4@@ -10790,6 +11300,8 @@ snapshots:+ [email protected]: {}+@@ -11090,7 +11602,7 @@ snapshots:transitivePeerDependencies:- supports-color+ [email protected](@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected]):dependencies:'@fastify/accept-negotiator': 1.1.0citty: 0.1.6@@ -11106,7 +11618,7 @@ snapshots:sharp: 0.32.6svgo: 3.3.2ufo: 1.6.1+ unstorage: 1.16.1(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])xss: 1.0.15transitivePeerDependencies:- '@azure/app-configuration'@@ -11231,6 +11743,10 @@ snapshots:'@sideway/formula': 3.0.1'@sideway/pinpoint': 2.0.0+ [email protected]: {}++ [email protected]: {}+@@ -11620,7 +12136,7 @@ snapshots:mlly: 1.7.4pkg-types: 2.3.0- [email protected](@netlify/[email protected]):dependencies:'@cloudflare/kv-asset-handler': 0.4.0'@netlify/functions': 3.1.10([email protected])@@ -11642,7 +12158,7 @@ snapshots:cookie-es: 2.0.0croner: 9.1.0crossws: 0.3.5- db0: 0.3.2+ db0: 0.3.2([email protected](@cloudflare/[email protected]))defu: 6.1.4destr: 2.0.5dot-prop: 9.0.0@@ -11688,7 +12204,7 @@ snapshots:unenv: 2.0.0-rc.19unimport: 5.2.0unplugin-utils: 0.2.5+ unstorage: 1.16.1(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])untyped: 2.0.0unwasm: 0.3.11youch: 4.1.0-beta.8@@ -11787,7 +12303,25 @@ snapshots:dependencies:boolbase: 1.0.0- [email protected](@netlify/[email protected])(@parcel/[email protected])(@types/[email protected])(@vue/[email protected])([email protected])([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]):+ dependencies:+ '@adonisjs/hash': 9.1.1+ '@nuxt/kit': 3.18.1([email protected])+ defu: 6.1.4+ h3: 1.15.4+ hookable: 5.5.3+ jose: 5.10.0+ ofetch: 1.4.1+ openid-client: 6.6.4+ pathe: 2.0.3+ scule: 1.3.0+ uncrypto: 0.1.3+ transitivePeerDependencies:+ - argon2+ - bcrypt+ - magicast++ [email protected](@netlify/[email protected])(@parcel/[email protected])(@types/[email protected])(@vue/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected](@cloudflare/[email protected]))([email protected]([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected]):dependencies:'@nuxt/cli': 3.28.0([email protected])'@nuxt/devalue': 2.0.2@@ -11822,7 +12356,7 @@ snapshots:mlly: 1.7.4mocked-exports: 0.1.1nanotar: 0.2.0- nitropack: 2.12.4(@netlify/[email protected])nypm: 0.6.1ofetch: 1.4.1ohash: 2.0.11@@ -11847,7 +12381,7 @@ snapshots:unimport: 5.2.0unplugin: 2.3.8unplugin-vue-router: 0.15.0(@vue/[email protected])([email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]))+ unstorage: 1.16.1(@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected])untyped: 2.0.0vue: 3.5.19([email protected])vue-bundle-renderer: 2.1.2@@ -11918,6 +12452,8 @@ snapshots:pkg-types: 2.3.0tinyexec: 1.0.1+ [email protected]: {}+@@ -11959,6 +12495,11 @@ snapshots:is-docker: 2.2.1is-wsl: 2.2.0+ dependencies:+ jose: 6.0.13+ oauth4webapi: 3.7.0+dependencies:deep-is: 0.1.4@@ -12574,6 +13115,8 @@ snapshots:+ [email protected]: {}+@@ -12730,6 +13273,8 @@ snapshots:+ [email protected]: {}+@@ -12996,6 +13541,8 @@ snapshots:+ [email protected]: {}+dependencies:typescript: 5.9.2@@ -13155,7 +13702,7 @@ snapshots:'@unrs/resolver-binding-win32-ia32-msvc': 1.11.1'@unrs/resolver-binding-win32-x64-msvc': 1.11.1+ [email protected](@netlify/[email protected])([email protected]([email protected](@cloudflare/[email protected])))([email protected]):dependencies:anymatch: 3.1.3chokidar: 4.0.3@@ -13167,7 +13714,7 @@ snapshots:ufo: 1.6.1optionalDependencies:'@netlify/blobs': 9.1.2- db0: 0.3.2+ db0: 0.3.2([email protected](@cloudflare/[email protected]))ioredis: 5.7.0diff --git a/server/api/auth/github.get.ts b/server/api/auth/github.get.tsnew file mode 100644index 00000000..04303bac--- /dev/null+++ b/server/api/auth/github.get.ts@@ -0,0 +1,50 @@+export default defineOAuthGitHubEventHandler({+ async onSuccess(event, { user }) {+ const userFromEmail = await useDB()+ .select()+ .from(tables.users)+ .where(eq(tables.users.email, user.email || ''))+ .get()++ logger.chrono.info(+ 'GitHub OAuth login:',+ user.email,+ userFromEmail ? 'Existing user' : 'New user',+ )++ if (!userFromEmail) {+ // create a new user without admin permission+ await useDB()+ .insert(tables.users)+ .values({+ username: user.name || '',+ email: user.email || '',+ avatar: user.avatar_url || null,+ createdAt: new Date(),+ })+ .returning()+ .get()+ // then reject login+ throw createError({+ statusCode: 403,+ statusMessage:+ 'Access denied. Please contact the administrator to activate your account.',+ })+ } else if (userFromEmail.isAdmin === 0) {+ throw createError({+ statusCode: 403,+ statusMessage:+ 'Access denied. Please contact the administrator to activate your account.',+ })+ } else {+ await setUserSession(event, { user: userFromEmail })+ }+ return sendRedirect(event, '/')+ },+ onError(event) {+ throw createError({+ statusCode: 401,+ statusMessage: 'Authentication failed',+ })+ },+})diff --git a/server/api/auth/logout.get.ts b/server/api/auth/logout.get.tsnew file mode 100644index 00000000..93c563cc--- /dev/null+++ b/server/api/auth/logout.get.ts@@ -0,0 +1,3 @@+export default eventHandler(async (event) => {+ await clearUserSession(event)+})\ No newline at end of filediff --git a/server/api/auth/profile.get.ts b/server/api/auth/profile.get.tsnew file mode 100644index 00000000..8be52b50--- /dev/null+++ b/server/api/auth/profile.get.ts@@ -0,0 +1,3 @@+export default eventHandler(async (event) => {+ return (await getUserSession(event)).user+})diff --git a/server/api/photos/index.get.ts b/server/api/photos/index.get.tsindex b7823571..35e81567 100644--- a/server/api/photos/index.get.ts+++ b/server/api/photos/index.get.ts@@ -1,7 +1,11 @@import { useStorageManager } from '~~/server/utils/useStorageManager'export default eventHandler(async (event) => {+ await requireUserSession(event)const { storageProvider } = useStorageManager(event)const photos = await storageProvider.listAll()- return photos+ return {+ urls: photos.map((photo) => storageProvider.getPublicUrl(photo.key)),+ objects: photos,+ }})diff --git a/server/api/photos/url/[key].ts b/server/api/photos/url/[key].tsdeleted file mode 100644index f5628070..00000000--- a/server/api/photos/url/[key].ts+++ /dev/null@@ -1,12 +0,0 @@-export default eventHandler(async (event) => {- const { storageProvider } = useStorageManager(event)- const key = getRouterParam(event, 'key')-- if (!key) {- throw createError({ statusCode: 400, statusMessage: 'Invalid key' })- }-- const url = storageProvider.getPublicUrl(decodeURIComponent(key))-- return { url }-})diff --git a/server/database/migrations/0000_rainy_christian_walker.sql b/server/database/migrations/0000_rainy_christian_walker.sqlnew file mode 100644index 00000000..7f6c5bee--- /dev/null+++ b/server/database/migrations/0000_rainy_christian_walker.sql@@ -0,0 +1,11 @@+CREATE TABLE `users` (+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,+ `name` text NOT NULL,+ `email` text NOT NULL,+ `password` text NOT NULL,+ `avatar` text,+ `created_at` integer NOT NULL+);+--> statement-breakpoint+CREATE UNIQUE INDEX `users_name_unique` ON `users` (`name`);--> statement-breakpoint+CREATE UNIQUE INDEX `users_email_unique` ON `users` (`email`);\ No newline at end of filediff --git a/server/database/migrations/0001_quick_marvel_apes.sql b/server/database/migrations/0001_quick_marvel_apes.sqlnew file mode 100644index 00000000..b63284b5--- /dev/null+++ b/server/database/migrations/0001_quick_marvel_apes.sql@@ -0,0 +1,17 @@+PRAGMA foreign_keys=OFF;--> statement-breakpoint+CREATE TABLE `__new_users` (+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,+ `name` text NOT NULL,+ `email` text NOT NULL,+ `password` text,+ `avatar` text,+ `created_at` integer NOT NULL,+ `is_admin` integer DEFAULT 0 NOT NULL+);+--> statement-breakpoint+INSERT INTO `__new_users`("id", "name", "email", "password", "avatar", "created_at", "is_admin") SELECT "id", "name", "email", "password", "avatar", "created_at", "is_admin" FROM `users`;--> statement-breakpoint+DROP TABLE `users`;--> statement-breakpoint+ALTER TABLE `__new_users` RENAME TO `users`;--> statement-breakpoint+PRAGMA foreign_keys=ON;--> statement-breakpoint+CREATE UNIQUE INDEX `users_name_unique` ON `users` (`name`);--> statement-breakpoint+CREATE UNIQUE INDEX `users_email_unique` ON `users` (`email`);\ No newline at end of filediff --git a/server/database/migrations/0002_insert-default-user.sql b/server/database/migrations/0002_insert-default-user.sqlnew file mode 100644index 00000000..d282d01e--- /dev/null+++ b/server/database/migrations/0002_insert-default-user.sql@@ -0,0 +1,3 @@+-- Migration number: 0001 2025-08-23T16:09:27.764Z+INSERT INTO users (name, email, password, avatar, created_at, is_admin) VALUES+ ('HoshinoSuzumi', '[email protected]', '$scrypt$n=16384,r=8,p=1$QaLKQI/LB+Kh7jgyeH4lGw$NuoxPwPvDZGK3F9oTNEgUNMAi24z/Wei6hWnJzNdscwKDHpQQVJfL1BlcNC+gHJtdJn4YsmQ9tWbVOCE4RgL1g', NULL, strftime('%s', 'now'), 1);\ No newline at end of filediff --git a/server/database/migrations/meta/0000_snapshot.json b/server/database/migrations/meta/0000_snapshot.jsonnew file mode 100644index 00000000..85b52a7a--- /dev/null+++ b/server/database/migrations/meta/0000_snapshot.json@@ -0,0 +1,85 @@+{+ "version": "6",+ "dialect": "sqlite",+ "id": "f066db51-c83d-45cd-998f-2096d4df8b12",+ "prevId": "00000000-0000-0000-0000-000000000000",+ "tables": {+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "avatar": {+ "name": "avatar",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ }+ },+ "indexes": {+ "users_name_unique": {+ "name": "users_name_unique",+ "columns": [+ "name"+ ],+ "isUnique": true+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ }+ },+ "views": {},+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "indexes": {}+ }+}\ No newline at end of filediff --git a/server/database/migrations/meta/0001_snapshot.json b/server/database/migrations/meta/0001_snapshot.jsonnew file mode 100644index 00000000..d40ec7f0--- /dev/null+++ b/server/database/migrations/meta/0001_snapshot.json@@ -0,0 +1,93 @@+{+ "version": "6",+ "dialect": "sqlite",+ "id": "374841f0-3d8d-4f77-8da2-128bae5c8e7a",+ "prevId": "f066db51-c83d-45cd-998f-2096d4df8b12",+ "tables": {+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "integer",+ "primaryKey": true,+ "notNull": true,+ "autoincrement": true+ },+ "name": {+ "name": "name",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "password": {+ "name": "password",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "avatar": {+ "name": "avatar",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "is_admin": {+ "name": "is_admin",+ "type": "integer",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 0+ }+ },+ "indexes": {+ "users_name_unique": {+ "name": "users_name_unique",+ "columns": [+ "name"+ ],+ "isUnique": true+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {},+ "uniqueConstraints": {},+ "checkConstraints": {}+ }+ },+ "views": {},+ "enums": {},+ "_meta": {+ "schemas": {},+ "tables": {},+ "columns": {}+ },+ "internal": {+ "indexes": {}+ }+}\ No newline at end of filediff --git a/server/database/migrations/meta/_journal.json b/server/database/migrations/meta/_journal.jsonnew file mode 100644index 00000000..756e0d98--- /dev/null+++ b/server/database/migrations/meta/_journal.json@@ -0,0 +1,20 @@+{+ "version": "7",+ "dialect": "sqlite",+ "entries": [+ {+ "idx": 0,+ "version": "6",+ "when": 1755964755120,+ "tag": "0000_rainy_christian_walker",+ "breakpoints": true+ },+ {+ "idx": 1,+ "version": "6",+ "when": 1755965654193,+ "tag": "0001_quick_marvel_apes",+ "breakpoints": true+ }+ ]+}\ No newline at end of filediff --git a/server/database/schema.ts b/server/database/schema.tsnew file mode 100644index 00000000..967da2bc--- /dev/null+++ b/server/database/schema.ts@@ -0,0 +1,11 @@+import { sqliteTable, text, integer } from 'drizzle-orm/sqlite-core'++export const users = sqliteTable('users', {+ id: integer('id').primaryKey({ autoIncrement: true }),+ username: text('name').notNull().unique(),+ email: text('email').notNull().unique(),+ password: text('password'),+ avatar: text('avatar'),+ createdAt: integer('created_at', { mode: 'timestamp' }).notNull(),+ isAdmin: integer('is_admin').default(0).notNull(),+})diff --git a/server/plugins/storage.ts b/server/plugins/storage.tsindex fcef16b0..95a34767 100644--- a/server/plugins/storage.ts+++ b/server/plugins/storage.ts@@ -21,6 +21,7 @@ export default nitroPlugin(async (nitroApp) => {r2: {provider: 'hub-r2',prefix: 'photos/',+ cdnUrl: import.meta.dev ? 'http://localhost:3000/image/' : 'https://cdn-dev.lens.bh8.ga/',maxKeys: 100,},}diff --git a/server/api/photos/[key].get.ts b/server/routes/image/[...key].get.tssimilarity index 100%rename from server/api/photos/[key].get.tsrename to server/routes/image/[...key].get.tsdiff --git a/server/utils/db.ts b/server/utils/db.tsnew file mode 100644index 00000000..66cff0c0--- /dev/null+++ b/server/utils/db.ts@@ -0,0 +1,12 @@+import { drizzle } from 'drizzle-orm/d1'+export { sql, eq, and, or } from 'drizzle-orm'++import * as schema from '../database/schema'++export const tables = schema++export function useDB() {+ return drizzle(hubDatabase(), { schema })+}++export type User = typeof schema.users.$inferSelectdiff --git a/shared/types/auth.d.ts b/shared/types/auth.d.tsnew file mode 100644index 00000000..a9e737ef--- /dev/null+++ b/shared/types/auth.d.ts@@ -0,0 +1,7 @@+import type { User as DBUser } from '../../server/utils/db'++declare module '#auth-utils' {+ interface User extends DBUser {}+}++export {}