@axerity/cli 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/axerity.js +67 -194
- package/dist/client/_app/immutable/assets/0.jCJXzoiy.css +1 -0
- package/dist/client/_app/immutable/assets/2.DZRzHaE1.css +1 -0
- package/dist/client/_app/immutable/assets/geist-cyrillic-ext-wght-normal.DjL33-gN.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-cyrillic-wght-normal.BEAKL7Jp.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-latin-ext-wght-normal.DC-KSUi6.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-latin-wght-normal.BgDaEnEv.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-cyrillic-ext-wght-normal.I4S5GZfc.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-cyrillic-wght-normal.BmXc_FBt.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-latin-ext-wght-normal.DrnZ1wKl.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-latin-wght-normal.B_7UjwxQ.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-symbols2-wght-normal.GZpp1pK2.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-mono-vietnamese-wght-normal.D8KDMBhC.woff2 +0 -0
- package/dist/client/_app/immutable/assets/geist-vietnamese-wght-normal.6IgcOCM7.woff2 +0 -0
- package/dist/client/_app/immutable/chunks/0CIKaoUA.js +139 -0
- package/dist/client/_app/immutable/chunks/0tC8Ubqr.js +2 -0
- package/dist/client/_app/immutable/chunks/29nvmPLe2.js +1 -0
- package/dist/client/_app/immutable/chunks/9IV9o0dV2.js +4 -0
- package/dist/client/_app/immutable/chunks/B-elEOLV.js +24 -0
- package/dist/client/_app/immutable/chunks/B1R9-4vu.js +89 -0
- package/dist/client/_app/immutable/chunks/B1eXHGII2.js +10 -0
- package/dist/client/_app/immutable/chunks/B2NKIbe62.js +206 -0
- package/dist/client/_app/immutable/chunks/B5Brrqz92.js +1 -0
- package/dist/client/_app/immutable/chunks/B6nymVS3.js +1 -0
- package/dist/client/_app/immutable/chunks/B8E5l9fg2.js +1 -0
- package/dist/client/_app/immutable/chunks/B8gBHxth2.js +1 -0
- package/dist/client/_app/immutable/chunks/BC8A8xkk.js +2 -0
- package/dist/client/_app/immutable/chunks/BGU5ZGjx.js +1 -0
- package/dist/client/_app/immutable/chunks/BLhBgXDr2.js +1 -0
- package/dist/client/_app/immutable/chunks/BNdlLOgu2.js +2 -0
- package/dist/client/_app/immutable/chunks/BQyPqLag.js +84 -0
- package/dist/client/_app/immutable/chunks/BRQspS80.js +162 -0
- package/dist/client/_app/immutable/chunks/BVz-DmJs2.js +132 -0
- package/dist/client/_app/immutable/chunks/BWPyau1x.js +1 -0
- package/dist/client/_app/immutable/chunks/BXD4L9Ly.js +9 -0
- package/dist/client/_app/immutable/chunks/B_Yg36qy2.js +1 -0
- package/dist/client/_app/immutable/chunks/BcuUc08l.js +292 -0
- package/dist/client/_app/immutable/chunks/BdsP84LY.js +231 -0
- package/dist/client/_app/immutable/chunks/Bie0X5s02.js +62 -0
- package/dist/client/_app/immutable/chunks/BifhSqXX.js +1 -0
- package/dist/client/_app/immutable/chunks/BjVjgMFk2.js +15 -0
- package/dist/client/_app/immutable/chunks/BpwmCo88.js +1 -0
- package/dist/client/_app/immutable/chunks/BxQVBtgJ.js +1 -0
- package/dist/client/_app/immutable/chunks/C2oEw9bf.js +34 -0
- package/dist/client/_app/immutable/chunks/C6Oj8XFW.js +1 -0
- package/dist/client/_app/immutable/chunks/C6v0vZRT2.js +36 -0
- package/dist/client/_app/immutable/chunks/C7H7uo1r.js +70 -0
- package/dist/client/_app/immutable/chunks/C8Fc0cco.js +1 -0
- package/dist/client/_app/immutable/chunks/CDfHwfr9.js +1 -0
- package/dist/client/_app/immutable/chunks/CEW3xh3M.js +124 -0
- package/dist/client/_app/immutable/chunks/CFNmf5NX.js +1 -0
- package/dist/client/_app/immutable/chunks/CGhzzHe4.js +1 -0
- package/dist/client/_app/immutable/chunks/CJMWL00f.js +1 -0
- package/dist/client/_app/immutable/chunks/CLrCY0qQ2.js +1 -0
- package/dist/client/_app/immutable/chunks/COu5VFF2.js +78 -0
- package/dist/client/_app/immutable/chunks/CSKSodPl2.js +1 -0
- package/dist/client/_app/immutable/chunks/CVNFCEpi.js +1 -0
- package/dist/client/_app/immutable/chunks/CWUJwgR2.js +1 -0
- package/dist/client/_app/immutable/chunks/CXC42hVj.js +70 -0
- package/dist/client/_app/immutable/chunks/CZqBFf11.js +30 -0
- package/dist/client/_app/immutable/chunks/CaWcga612.js +1 -0
- package/dist/client/_app/immutable/chunks/CcX7Oofq.js +1 -0
- package/dist/client/_app/immutable/chunks/Chn8RaCU2.js +1 -0
- package/dist/client/_app/immutable/chunks/CtmfIXf-.js +161 -0
- package/dist/client/_app/immutable/chunks/D0Co2O6p.js +7 -0
- package/dist/client/_app/immutable/chunks/D1O9pT8r.js +1 -0
- package/dist/client/_app/immutable/chunks/D1z0eUZA.js +3 -0
- package/dist/client/_app/immutable/chunks/D5KVydqU.js +1 -0
- package/dist/client/_app/immutable/chunks/D6jRqBbL.js +1 -0
- package/dist/client/_app/immutable/chunks/DDXR3Aw12.js +1 -0
- package/dist/client/_app/immutable/chunks/DG5yTEkY.js +1 -0
- package/dist/client/_app/immutable/chunks/DGHybmkM2.js +1 -0
- package/dist/client/_app/immutable/chunks/DITdNjTm.js +7 -0
- package/dist/client/_app/immutable/chunks/D_nZbl6c.js +162 -0
- package/dist/client/_app/immutable/chunks/Dg6QheNk.js +85 -0
- package/dist/client/_app/immutable/chunks/Dn1BfjD4.js +1 -0
- package/dist/client/_app/immutable/chunks/DpEnPnBc.js +1 -0
- package/dist/client/_app/immutable/chunks/Drl36yuV.js +40 -0
- package/dist/client/_app/immutable/chunks/ED9-GWAc2.js +10 -0
- package/dist/client/_app/immutable/chunks/FqbQrHcz2.js +321 -0
- package/dist/client/_app/immutable/chunks/PLsDE8Xa.js +24 -0
- package/dist/client/_app/immutable/chunks/PwGqCEPd.js +106 -0
- package/dist/client/_app/immutable/chunks/QmWylQL4.js +96 -0
- package/dist/client/_app/immutable/chunks/SbORYBuH.js +1 -0
- package/dist/client/_app/immutable/chunks/Vhh-h91d.js +257 -0
- package/dist/client/_app/immutable/chunks/Y3d8lUBM.js +120 -0
- package/dist/client/_app/immutable/chunks/aheLp5ES.js +32 -0
- package/dist/client/_app/immutable/chunks/dcFrWhgf.js +1 -0
- package/dist/client/_app/immutable/chunks/dqbyyLvi2.js +10 -0
- package/dist/client/_app/immutable/chunks/hFfQmBrk2.js +1 -0
- package/dist/client/_app/immutable/chunks/m89wIWMZ.js +1 -0
- package/dist/client/_app/immutable/chunks/mktnrgVa.js +1 -0
- package/dist/client/_app/immutable/chunks/qD2cSsUD2.js +1 -0
- package/dist/client/_app/immutable/chunks/v-V-aVm52.js +43 -0
- package/dist/client/_app/immutable/chunks/v97jXyQK.js +3 -0
- package/dist/client/_app/immutable/chunks/wCc4pE4l.js +3 -0
- package/dist/client/_app/immutable/chunks/xihTtKlq.js +1 -0
- package/dist/client/_app/immutable/entry/app.BxBJhrll.js +2 -0
- package/dist/client/_app/immutable/entry/start.mAPciu1x.js +1 -0
- package/dist/client/_app/immutable/nodes/0.C7MOOY8s.js +1 -0
- package/dist/client/_app/immutable/nodes/1.C1SZKZS6.js +1 -0
- package/dist/client/_app/immutable/nodes/2.C9w6NQmI.js +28 -0
- package/dist/client/_app/version.json +1 -0
- package/dist/env.js +94 -0
- package/dist/handler.js +1494 -0
- package/dist/index.js +345 -0
- package/dist/server/chunks/0-lMxIppsX.js +40 -0
- package/dist/server/chunks/0-lMxIppsX.js.map +1 -0
- package/dist/server/chunks/1-CyLqCHnY.js +9 -0
- package/dist/server/chunks/1-CyLqCHnY.js.map +1 -0
- package/dist/server/chunks/2-B-CcMKoh.js +54 -0
- package/dist/server/chunks/2-B-CcMKoh.js.map +1 -0
- package/dist/server/chunks/Icon-B5VFrlh0.js +186 -0
- package/dist/server/chunks/Icon-B5VFrlh0.js.map +1 -0
- package/dist/server/chunks/_error.svelte-COifK9P1.js +48 -0
- package/dist/server/chunks/_error.svelte-COifK9P1.js.map +1 -0
- package/dist/server/chunks/_layout.svelte-DTQwWfEr.js +31 -0
- package/dist/server/chunks/_layout.svelte-DTQwWfEr.js.map +1 -0
- package/dist/server/chunks/_page.svelte-gMTRy91w.js +2206 -0
- package/dist/server/chunks/_page.svelte-gMTRy91w.js.map +1 -0
- package/dist/server/chunks/_server.ts-BBt3KS4Z.js +32 -0
- package/dist/server/chunks/_server.ts-BBt3KS4Z.js.map +1 -0
- package/dist/server/chunks/_server.ts-BaIDzhzq.js +26 -0
- package/dist/server/chunks/_server.ts-BaIDzhzq.js.map +1 -0
- package/dist/server/chunks/_server.ts-BtzVXaCw.js +29 -0
- package/dist/server/chunks/_server.ts-BtzVXaCw.js.map +1 -0
- package/dist/server/chunks/_server.ts-BuKSyj8m.js +37 -0
- package/dist/server/chunks/_server.ts-BuKSyj8m.js.map +1 -0
- package/dist/server/chunks/_server.ts-Cfw-nQ4-.js +31 -0
- package/dist/server/chunks/_server.ts-Cfw-nQ4-.js.map +1 -0
- package/dist/server/chunks/_server.ts-DlaxEvWB.js +53 -0
- package/dist/server/chunks/_server.ts-DlaxEvWB.js.map +1 -0
- package/dist/server/chunks/_server.ts-DnjaLdrg.js +195 -0
- package/dist/server/chunks/_server.ts-DnjaLdrg.js.map +1 -0
- package/dist/server/chunks/_server.ts-T58MO2wL.js +41 -0
- package/dist/server/chunks/_server.ts-T58MO2wL.js.map +1 -0
- package/dist/server/chunks/content-store-DPJsj8gD.js +5252 -0
- package/dist/server/chunks/content-store-DPJsj8gD.js.map +1 -0
- package/dist/server/chunks/docpage-BkHysAhp.js +5 -0
- package/dist/server/chunks/docpage-BkHysAhp.js.map +1 -0
- package/dist/server/chunks/exports-ZnEJ4gG9.js +758 -0
- package/dist/server/chunks/exports-ZnEJ4gG9.js.map +1 -0
- package/dist/server/chunks/hooks.server-nz527EC9.js +42 -0
- package/dist/server/chunks/hooks.server-nz527EC9.js.map +1 -0
- package/dist/server/chunks/internal-CvDbuC7W.js +5374 -0
- package/dist/server/chunks/internal-CvDbuC7W.js.map +1 -0
- package/dist/server/chunks/mdfile-DBiwGtNY.js +5 -0
- package/dist/server/chunks/mdfile-DBiwGtNY.js.map +1 -0
- package/dist/server/chunks/site-BfALkgJ-.js +52 -0
- package/dist/server/chunks/site-BfALkgJ-.js.map +1 -0
- package/dist/server/index.js +4356 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/manifest.js +103 -0
- package/dist/server/manifest.js.map +1 -0
- package/dist/shims.js +32 -0
- package/package.json +24 -16
- package/runtime/crawl.js +48 -0
- package/runtime/preview.js +42 -0
- package/runtime/serve.js +69 -0
- package/mdsvex.config.js +0 -261
- package/scripts/prepare-engine.mjs +0 -20
- package/src/app.d.ts +0 -17
- package/src/app.html +0 -39
- package/src/content/demo/api/meta.json +0 -5
- package/src/content/demo/api/pet/add-pet.md +0 -105
- package/src/content/demo/api/pet/delete-pet.md +0 -70
- package/src/content/demo/api/pet/find-by-status.md +0 -72
- package/src/content/demo/api/pet/find-by-tags.md +0 -64
- package/src/content/demo/api/pet/get-pet.md +0 -99
- package/src/content/demo/api/pet/meta.json +0 -15
- package/src/content/demo/api/pet/pet-object.md +0 -112
- package/src/content/demo/api/pet/update-pet-with-form.md +0 -69
- package/src/content/demo/api/pet/update-pet.md +0 -79
- package/src/content/demo/api/pet/upload-image.md +0 -79
- package/src/content/demo/api/store/delete-order.md +0 -62
- package/src/content/demo/api/store/get-order.md +0 -70
- package/src/content/demo/api/store/inventory.md +0 -54
- package/src/content/demo/api/store/meta.json +0 -5
- package/src/content/demo/api/store/order-object.md +0 -77
- package/src/content/demo/api/store/place-order.md +0 -83
- package/src/content/demo/api/user/create-user.md +0 -69
- package/src/content/demo/api/user/create-with-list.md +0 -57
- package/src/content/demo/api/user/delete-user.md +0 -61
- package/src/content/demo/api/user/get-user.md +0 -69
- package/src/content/demo/api/user/login.md +0 -80
- package/src/content/demo/api/user/logout.md +0 -45
- package/src/content/demo/api/user/meta.json +0 -14
- package/src/content/demo/api/user/update-user.md +0 -69
- package/src/content/demo/api/user/user-object.md +0 -85
- package/src/content/demo/changelog.md +0 -44
- package/src/content/demo/components/accordion.md +0 -70
- package/src/content/demo/components/api.md +0 -185
- package/src/content/demo/components/badge.md +0 -34
- package/src/content/demo/components/callout.md +0 -83
- package/src/content/demo/components/cards.md +0 -88
- package/src/content/demo/components/code-group.md +0 -55
- package/src/content/demo/components/columns.md +0 -42
- package/src/content/demo/components/frame.md +0 -51
- package/src/content/demo/components/icon.md +0 -54
- package/src/content/demo/components/kbd.md +0 -28
- package/src/content/demo/components/meta.json +0 -26
- package/src/content/demo/components/roadmap.md +0 -86
- package/src/content/demo/components/steps.md +0 -72
- package/src/content/demo/components/tabs.md +0 -146
- package/src/content/demo/components/tooltip.md +0 -44
- package/src/content/demo/components/tree.md +0 -83
- package/src/content/demo/components/type-table.md +0 -77
- package/src/content/demo/components/update.md +0 -48
- package/src/content/demo/components/video.md +0 -56
- package/src/content/demo/components/webhooks.md +0 -109
- package/src/content/demo/components/websockets.md +0 -101
- package/src/content/demo/configuration/ai.md +0 -40
- package/src/content/demo/configuration/cli.md +0 -48
- package/src/content/demo/configuration/deployment.md +0 -105
- package/src/content/demo/configuration/index.md +0 -92
- package/src/content/demo/configuration/layouts.md +0 -51
- package/src/content/demo/configuration/meta.json +0 -5
- package/src/content/demo/configuration/navigation.md +0 -167
- package/src/content/demo/configuration/openapi.md +0 -103
- package/src/content/demo/configuration/search.md +0 -36
- package/src/content/demo/index.md +0 -59
- package/src/content/demo/installation.md +0 -66
- package/src/content/demo/meta.json +0 -15
- package/src/content/demo/quick-start.md +0 -47
- package/src/content/demo/theming/advanced.md +0 -116
- package/src/content/demo/theming/code.md +0 -66
- package/src/content/demo/theming/colors.md +0 -103
- package/src/content/demo/theming/index.md +0 -88
- package/src/content/demo/theming/layout.md +0 -71
- package/src/content/demo/theming/meta.json +0 -5
- package/src/content/demo/theming/themes.md +0 -99
- package/src/content/demo/theming/typography.md +0 -83
- package/src/content/demo/writing/code-blocks.md +0 -154
- package/src/content/demo/writing/diagrams.md +0 -44
- package/src/content/demo/writing/frontmatter.md +0 -33
- package/src/content/demo/writing/markdown.md +0 -62
- package/src/content/demo/writing/meta.json +0 -5
- package/src/hooks.server.ts +0 -49
- package/src/lib/assets/favicon.svg +0 -1
- package/src/lib/base.ts +0 -12
- package/src/lib/components/DynamicIcon.svelte +0 -41
- package/src/lib/components/docs/Analytics.svelte +0 -38
- package/src/lib/components/docs/Banner.svelte +0 -44
- package/src/lib/components/docs/Breadcrumbs.svelte +0 -38
- package/src/lib/components/docs/CopyPageMenu.svelte +0 -119
- package/src/lib/components/docs/DocsLayout.svelte +0 -192
- package/src/lib/components/docs/Footer.svelte +0 -60
- package/src/lib/components/docs/Mermaid.svelte +0 -39
- package/src/lib/components/docs/Navbar.svelte +0 -144
- package/src/lib/components/docs/PageMeta.svelte +0 -35
- package/src/lib/components/docs/PageNav.svelte +0 -44
- package/src/lib/components/docs/SearchDialog.svelte +0 -182
- package/src/lib/components/docs/Sidebar.svelte +0 -85
- package/src/lib/components/docs/SidebarDropdown.svelte +0 -56
- package/src/lib/components/docs/SidebarFooterLinks.svelte +0 -19
- package/src/lib/components/docs/SidebarGroup.svelte +0 -54
- package/src/lib/components/docs/SidebarLink.svelte +0 -67
- package/src/lib/components/docs/TableOfContents.svelte +0 -77
- package/src/lib/components/docs/ThemeToggle.svelte +0 -19
- package/src/lib/components/docs/VersionSwitcher.svelte +0 -80
- package/src/lib/components/kit/Accordion.svelte +0 -60
- package/src/lib/components/kit/AccordionGroup.svelte +0 -13
- package/src/lib/components/kit/Badge.svelte +0 -32
- package/src/lib/components/kit/Callout.svelte +0 -51
- package/src/lib/components/kit/Card.svelte +0 -72
- package/src/lib/components/kit/CardGroup.svelte +0 -21
- package/src/lib/components/kit/CodeGroup.svelte +0 -65
- package/src/lib/components/kit/Columns.svelte +0 -26
- package/src/lib/components/kit/Event.svelte +0 -23
- package/src/lib/components/kit/EventList.svelte +0 -9
- package/src/lib/components/kit/File.svelte +0 -15
- package/src/lib/components/kit/Folder.svelte +0 -46
- package/src/lib/components/kit/Frame.svelte +0 -81
- package/src/lib/components/kit/Icon.svelte +0 -17
- package/src/lib/components/kit/Kbd.svelte +0 -11
- package/src/lib/components/kit/Roadmap.svelte +0 -15
- package/src/lib/components/kit/RoadmapItem.svelte +0 -109
- package/src/lib/components/kit/Step.svelte +0 -63
- package/src/lib/components/kit/Steps.svelte +0 -16
- package/src/lib/components/kit/Tab.svelte +0 -27
- package/src/lib/components/kit/Tabs.svelte +0 -75
- package/src/lib/components/kit/Tooltip.svelte +0 -33
- package/src/lib/components/kit/Tree.svelte +0 -11
- package/src/lib/components/kit/TypeTable.svelte +0 -187
- package/src/lib/components/kit/Update.svelte +0 -32
- package/src/lib/components/kit/Video.svelte +0 -64
- package/src/lib/components/kit/accordion-context.ts +0 -1
- package/src/lib/components/kit/api/Api.svelte +0 -80
- package/src/lib/components/kit/api/ApiExamplePanel.svelte +0 -100
- package/src/lib/components/kit/api/ApiField.svelte +0 -124
- package/src/lib/components/kit/api/Channel.svelte +0 -121
- package/src/lib/components/kit/api/Endpoint.svelte +0 -116
- package/src/lib/components/kit/api/Enum.svelte +0 -44
- package/src/lib/components/kit/api/EnumValues.svelte +0 -35
- package/src/lib/components/kit/api/Expandable.svelte +0 -70
- package/src/lib/components/kit/api/Message.svelte +0 -67
- package/src/lib/components/kit/api/ObjectExample.svelte +0 -11
- package/src/lib/components/kit/api/RequestExample.svelte +0 -11
- package/src/lib/components/kit/api/ResponseExample.svelte +0 -11
- package/src/lib/components/kit/api/Webhook.svelte +0 -115
- package/src/lib/components/kit/api/api-context.ts +0 -15
- package/src/lib/components/kit/tabs-context.ts +0 -8
- package/src/lib/components/kit/tabs-store.svelte.ts +0 -28
- package/src/lib/config/site.ts +0 -34
- package/src/lib/content/index.ts +0 -50
- package/src/lib/content/raw.ts +0 -21
- package/src/lib/content/tree.ts +0 -169
- package/src/lib/index.ts +0 -79
- package/src/lib/nav-match.ts +0 -23
- package/src/lib/openapi/generate.ts +0 -629
- package/src/lib/server/og.ts +0 -140
- package/src/lib/state/search.svelte.ts +0 -9
- package/src/lib/state/theme.svelte.ts +0 -58
- package/src/lib/types.ts +0 -216
- package/src/params/docpage.ts +0 -3
- package/src/params/mdfile.ts +0 -3
- package/src/routes/+error.svelte +0 -46
- package/src/routes/+layout.svelte +0 -25
- package/src/routes/[...path=mdfile]/+server.ts +0 -21
- package/src/routes/[...slug=docpage]/+page.svelte +0 -63
- package/src/routes/[...slug=docpage]/+page.ts +0 -44
- package/src/routes/layout.css +0 -897
- package/src/routes/llms-full.txt/+server.ts +0 -22
- package/src/routes/llms.txt/+server.ts +0 -20
- package/src/routes/og/[...slug]/+server.ts +0 -77
- package/src/routes/rss.xml/+server.ts +0 -65
- package/src/routes/search.json/+server.ts +0 -54
- package/src/routes/sitemap.xml/+server.ts +0 -21
- package/svelte.config.js +0 -35
- package/tsconfig.json +0 -20
- package/vite.config.ts +0 -46
- /package/{static → dist/client}/favicon-dark.svg +0 -0
- /package/{static → dist/client}/favicon-light.svg +0 -0
- /package/{static → dist/client}/favicon.svg +0 -0
- /package/{static → dist/client}/fonts/geist-400.ttf +0 -0
- /package/{static → dist/client}/fonts/geist-600.ttf +0 -0
- /package/{static → dist/client}/fonts/geist-700.ttf +0 -0
- /package/{static → dist/client}/og-image.png +0 -0
- /package/{static → dist/client}/robots.txt +0 -0
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import { z as is_valid_array_len, M as MAX_ARRAY_INDEX, y as is_valid_array_index, D as DevalueError, x as is_primitive, s as get_type, w as is_plain_object, n as enumerable_symbols, T as stringify_key, U as stringify_string, X as valid_array_indices } from './internal-CvDbuC7W.js';
|
|
2
|
+
import { HttpError, SvelteKitError } from '@sveltejs/kit/internal';
|
|
3
|
+
|
|
4
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/utils/functions.js
|
|
5
|
+
function noop() {}
|
|
6
|
+
/**
|
|
7
|
+
* @template T
|
|
8
|
+
* @param {() => T} fn
|
|
9
|
+
*/
|
|
10
|
+
function once(fn) {
|
|
11
|
+
let done = false;
|
|
12
|
+
/** @type T */
|
|
13
|
+
let result;
|
|
14
|
+
return () => {
|
|
15
|
+
if (done) return result;
|
|
16
|
+
done = true;
|
|
17
|
+
return result = fn();
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/base64.js
|
|
22
|
+
/** @type {(array_buffer: ArrayBuffer) => string} */
|
|
23
|
+
function encode_native(array_buffer) {
|
|
24
|
+
return new Uint8Array(array_buffer).toBase64();
|
|
25
|
+
}
|
|
26
|
+
/** @type {(base64: string) => ArrayBuffer} */
|
|
27
|
+
function decode_native(base64) {
|
|
28
|
+
return Uint8Array.fromBase64(base64).buffer;
|
|
29
|
+
}
|
|
30
|
+
/** @type {(array_buffer: ArrayBuffer) => string} */
|
|
31
|
+
function encode_buffer(array_buffer) {
|
|
32
|
+
return Buffer.from(array_buffer).toString("base64");
|
|
33
|
+
}
|
|
34
|
+
/** @type {(base64: string) => ArrayBuffer} */
|
|
35
|
+
function decode_buffer(base64) {
|
|
36
|
+
return Uint8Array.from(Buffer.from(base64, "base64")).buffer;
|
|
37
|
+
}
|
|
38
|
+
/** @type {(array_buffer: ArrayBuffer) => string} */
|
|
39
|
+
function encode_legacy(array_buffer) {
|
|
40
|
+
const array = new Uint8Array(array_buffer);
|
|
41
|
+
let binary = "";
|
|
42
|
+
const chunk_size = 32768;
|
|
43
|
+
for (let i = 0; i < array.length; i += chunk_size) {
|
|
44
|
+
const chunk = array.subarray(i, i + chunk_size);
|
|
45
|
+
binary += String.fromCharCode.apply(null, chunk);
|
|
46
|
+
}
|
|
47
|
+
return btoa(binary);
|
|
48
|
+
}
|
|
49
|
+
/** @type {(base64: string) => ArrayBuffer} */
|
|
50
|
+
function decode_legacy(base64) {
|
|
51
|
+
const binary_string = atob(base64);
|
|
52
|
+
const len = binary_string.length;
|
|
53
|
+
const array = new Uint8Array(len);
|
|
54
|
+
for (let i = 0; i < len; i++) array[i] = binary_string.charCodeAt(i);
|
|
55
|
+
return array.buffer;
|
|
56
|
+
}
|
|
57
|
+
var native = typeof Uint8Array.fromBase64 === "function";
|
|
58
|
+
var buffer = typeof process === "object" && process.versions?.node !== void 0;
|
|
59
|
+
var encode64 = native ? encode_native : buffer ? encode_buffer : encode_legacy;
|
|
60
|
+
var decode64 = native ? decode_native : buffer ? decode_buffer : decode_legacy;
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/parse.js
|
|
63
|
+
/**
|
|
64
|
+
* Revive a value serialized with `devalue.stringify`
|
|
65
|
+
* @param {string} serialized
|
|
66
|
+
* @param {Record<string, (value: any) => any>} [revivers]
|
|
67
|
+
*/
|
|
68
|
+
function parse(serialized, revivers) {
|
|
69
|
+
return unflatten(JSON.parse(serialized), revivers);
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Revive a value flattened with `devalue.stringify`
|
|
73
|
+
* @param {number | any[]} parsed
|
|
74
|
+
* @param {Record<string, (value: any) => any>} [revivers]
|
|
75
|
+
*/
|
|
76
|
+
function unflatten(parsed, revivers) {
|
|
77
|
+
if (typeof parsed === "number") return hydrate(parsed, true);
|
|
78
|
+
if (!Array.isArray(parsed) || parsed.length === 0) throw new Error("Invalid input");
|
|
79
|
+
const values = parsed;
|
|
80
|
+
const hydrated = Array(values.length);
|
|
81
|
+
/**
|
|
82
|
+
* A set of values currently being hydrated with custom revivers,
|
|
83
|
+
* used to detect invalid cyclical dependencies
|
|
84
|
+
* @type {Set<number> | null}
|
|
85
|
+
*/
|
|
86
|
+
let hydrating = null;
|
|
87
|
+
/**
|
|
88
|
+
* @param {number} index
|
|
89
|
+
* @returns {any}
|
|
90
|
+
*/
|
|
91
|
+
function hydrate(index, standalone = false) {
|
|
92
|
+
if (index === -1) return void 0;
|
|
93
|
+
if (index === -3) return NaN;
|
|
94
|
+
if (index === -4) return Infinity;
|
|
95
|
+
if (index === -5) return -Infinity;
|
|
96
|
+
if (index === -6) return -0;
|
|
97
|
+
if (standalone || typeof index !== "number") throw new Error(`Invalid input`);
|
|
98
|
+
if (index in hydrated) return hydrated[index];
|
|
99
|
+
const value = values[index];
|
|
100
|
+
if (!value || typeof value !== "object") hydrated[index] = value;
|
|
101
|
+
else if (Array.isArray(value)) if (typeof value[0] === "string") {
|
|
102
|
+
const type = value[0];
|
|
103
|
+
const reviver = revivers && Object.hasOwn(revivers, type) ? revivers[type] : void 0;
|
|
104
|
+
if (reviver) {
|
|
105
|
+
let i = value[1];
|
|
106
|
+
if (typeof i !== "number") i = values.push(value[1]) - 1;
|
|
107
|
+
hydrating ??= /* @__PURE__ */ new Set();
|
|
108
|
+
if (hydrating.has(i)) throw new Error("Invalid circular reference");
|
|
109
|
+
hydrating.add(i);
|
|
110
|
+
hydrated[index] = reviver(hydrate(i));
|
|
111
|
+
hydrating.delete(i);
|
|
112
|
+
return hydrated[index];
|
|
113
|
+
}
|
|
114
|
+
switch (type) {
|
|
115
|
+
case "Date":
|
|
116
|
+
hydrated[index] = new Date(value[1]);
|
|
117
|
+
break;
|
|
118
|
+
case "Set":
|
|
119
|
+
const set = /* @__PURE__ */ new Set();
|
|
120
|
+
hydrated[index] = set;
|
|
121
|
+
for (let i = 1; i < value.length; i += 1) set.add(hydrate(value[i]));
|
|
122
|
+
break;
|
|
123
|
+
case "Map":
|
|
124
|
+
const map = /* @__PURE__ */ new Map();
|
|
125
|
+
hydrated[index] = map;
|
|
126
|
+
for (let i = 1; i < value.length; i += 2) map.set(hydrate(value[i]), hydrate(value[i + 1]));
|
|
127
|
+
break;
|
|
128
|
+
case "RegExp":
|
|
129
|
+
hydrated[index] = new RegExp(value[1], value[2]);
|
|
130
|
+
break;
|
|
131
|
+
case "Object": {
|
|
132
|
+
const wrapped_index = value[1];
|
|
133
|
+
if (typeof values[wrapped_index] === "object" && values[wrapped_index][0] !== "BigInt") throw new Error("Invalid input");
|
|
134
|
+
hydrated[index] = Object(hydrate(wrapped_index));
|
|
135
|
+
break;
|
|
136
|
+
}
|
|
137
|
+
case "BigInt":
|
|
138
|
+
hydrated[index] = BigInt(value[1]);
|
|
139
|
+
break;
|
|
140
|
+
case "null":
|
|
141
|
+
const obj = Object.create(null);
|
|
142
|
+
hydrated[index] = obj;
|
|
143
|
+
for (let i = 1; i < value.length; i += 2) {
|
|
144
|
+
if (value[i] === "__proto__") throw new Error("Cannot parse an object with a `__proto__` property");
|
|
145
|
+
obj[value[i]] = hydrate(value[i + 1]);
|
|
146
|
+
}
|
|
147
|
+
break;
|
|
148
|
+
case "Int8Array":
|
|
149
|
+
case "Uint8Array":
|
|
150
|
+
case "Uint8ClampedArray":
|
|
151
|
+
case "Int16Array":
|
|
152
|
+
case "Uint16Array":
|
|
153
|
+
case "Float16Array":
|
|
154
|
+
case "Int32Array":
|
|
155
|
+
case "Uint32Array":
|
|
156
|
+
case "Float32Array":
|
|
157
|
+
case "Float64Array":
|
|
158
|
+
case "BigInt64Array":
|
|
159
|
+
case "BigUint64Array":
|
|
160
|
+
case "DataView": {
|
|
161
|
+
if (values[value[1]][0] !== "ArrayBuffer") throw new Error("Invalid data");
|
|
162
|
+
const TypedArrayConstructor = globalThis[type];
|
|
163
|
+
const buffer = hydrate(value[1]);
|
|
164
|
+
hydrated[index] = value[2] !== void 0 ? new TypedArrayConstructor(buffer, value[2], value[3]) : new TypedArrayConstructor(buffer);
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
case "ArrayBuffer": {
|
|
168
|
+
const base64 = value[1];
|
|
169
|
+
if (typeof base64 !== "string") throw new Error("Invalid ArrayBuffer encoding");
|
|
170
|
+
hydrated[index] = decode64(base64);
|
|
171
|
+
break;
|
|
172
|
+
}
|
|
173
|
+
case "Temporal.Duration":
|
|
174
|
+
case "Temporal.Instant":
|
|
175
|
+
case "Temporal.PlainDate":
|
|
176
|
+
case "Temporal.PlainTime":
|
|
177
|
+
case "Temporal.PlainDateTime":
|
|
178
|
+
case "Temporal.PlainMonthDay":
|
|
179
|
+
case "Temporal.PlainYearMonth":
|
|
180
|
+
case "Temporal.ZonedDateTime": {
|
|
181
|
+
const temporalName = type.slice(9);
|
|
182
|
+
hydrated[index] = Temporal[temporalName].from(value[1]);
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
case "URL":
|
|
186
|
+
hydrated[index] = new URL(value[1]);
|
|
187
|
+
break;
|
|
188
|
+
case "URLSearchParams":
|
|
189
|
+
hydrated[index] = new URLSearchParams(value[1]);
|
|
190
|
+
break;
|
|
191
|
+
default: throw new Error(`Unknown type ${type}`);
|
|
192
|
+
}
|
|
193
|
+
} else if (value[0] === -7) {
|
|
194
|
+
const len = value[1];
|
|
195
|
+
if (!is_valid_array_len(len)) throw new Error("Invalid input");
|
|
196
|
+
/** @type {any[]} */
|
|
197
|
+
const array = [];
|
|
198
|
+
hydrated[index] = array;
|
|
199
|
+
array[MAX_ARRAY_INDEX] = void 0;
|
|
200
|
+
delete array[MAX_ARRAY_INDEX];
|
|
201
|
+
for (let i = 2; i < value.length; i += 2) {
|
|
202
|
+
const idx = value[i];
|
|
203
|
+
if (!is_valid_array_index(idx) || idx >= len) throw new Error("Invalid input");
|
|
204
|
+
array[idx] = hydrate(value[i + 1]);
|
|
205
|
+
}
|
|
206
|
+
array.length = len;
|
|
207
|
+
} else {
|
|
208
|
+
const array = new Array(value.length);
|
|
209
|
+
hydrated[index] = array;
|
|
210
|
+
for (let i = 0; i < value.length; i += 1) {
|
|
211
|
+
const n = value[i];
|
|
212
|
+
if (n === -2) continue;
|
|
213
|
+
array[i] = hydrate(n);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
/** @type {Record<string, any>} */
|
|
218
|
+
const object = {};
|
|
219
|
+
hydrated[index] = object;
|
|
220
|
+
for (const key of Object.keys(value)) {
|
|
221
|
+
if (key === "__proto__") throw new Error("Cannot parse an object with a `__proto__` property");
|
|
222
|
+
const n = value[key];
|
|
223
|
+
object[key] = hydrate(n);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return hydrated[index];
|
|
227
|
+
}
|
|
228
|
+
return hydrate(0);
|
|
229
|
+
}
|
|
230
|
+
//#endregion
|
|
231
|
+
//#region node_modules/.pnpm/devalue@5.8.1/node_modules/devalue/src/stringify.js
|
|
232
|
+
/**
|
|
233
|
+
* Turn a value into a JSON string that can be parsed with `devalue.parse`
|
|
234
|
+
* @param {any} value
|
|
235
|
+
* @param {Record<string, (value: any) => any>} [reducers]
|
|
236
|
+
*/
|
|
237
|
+
function stringify$1(value, reducers) {
|
|
238
|
+
const stringified = run(false, value, reducers);
|
|
239
|
+
return typeof stringified === "string" ? stringified : `[${stringified.join(",")}]`;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* @param {boolean} async
|
|
243
|
+
* @param {any} value
|
|
244
|
+
* @param {Record<string, (value: any) => any>} [reducers]
|
|
245
|
+
*/
|
|
246
|
+
function run(async, value, reducers) {
|
|
247
|
+
/** @type {any[]} */
|
|
248
|
+
const stringified = [];
|
|
249
|
+
/** @type {Map<any, number>} */
|
|
250
|
+
const indexes = /* @__PURE__ */ new Map();
|
|
251
|
+
/** @type {Array<{ key: string, fn: (value: any) => any }>} */
|
|
252
|
+
const custom = [];
|
|
253
|
+
if (reducers) for (const key of Object.getOwnPropertyNames(reducers)) custom.push({
|
|
254
|
+
key,
|
|
255
|
+
fn: reducers[key]
|
|
256
|
+
});
|
|
257
|
+
/** @type {string[]} */
|
|
258
|
+
const keys = [];
|
|
259
|
+
let p = 0;
|
|
260
|
+
/**
|
|
261
|
+
* @param {any} thing
|
|
262
|
+
* @param {number} [index]
|
|
263
|
+
*/
|
|
264
|
+
function flatten(thing, index) {
|
|
265
|
+
if (thing === void 0) return -1;
|
|
266
|
+
if (Number.isNaN(thing)) return -3;
|
|
267
|
+
if (thing === Infinity) return -4;
|
|
268
|
+
if (thing === -Infinity) return -5;
|
|
269
|
+
if (thing === 0 && 1 / thing < 0) return -6;
|
|
270
|
+
if (indexes.has(thing)) return indexes.get(thing);
|
|
271
|
+
index ??= p++;
|
|
272
|
+
indexes.set(thing, index);
|
|
273
|
+
for (const { key, fn } of custom) {
|
|
274
|
+
const value = fn(thing);
|
|
275
|
+
if (value) {
|
|
276
|
+
stringified[index] = `["${key}",${flatten(value)}]`;
|
|
277
|
+
return index;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
if (typeof thing === "function") throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
|
|
281
|
+
else if (typeof thing === "symbol") throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
|
|
282
|
+
/** @type {string | Promise<any>} */
|
|
283
|
+
let str = "";
|
|
284
|
+
if (is_primitive(thing)) str = stringify_primitive(thing);
|
|
285
|
+
else if (typeof thing.then === "function") {
|
|
286
|
+
throw new DevalueError(`Cannot stringify a Promise or thenable — use stringifyAsync instead`, keys, thing, value);
|
|
287
|
+
} else {
|
|
288
|
+
const type = get_type(thing);
|
|
289
|
+
switch (type) {
|
|
290
|
+
case "Number":
|
|
291
|
+
case "String":
|
|
292
|
+
case "Boolean":
|
|
293
|
+
case "BigInt":
|
|
294
|
+
str = `["Object",${flatten(thing.valueOf())}]`;
|
|
295
|
+
break;
|
|
296
|
+
case "Date":
|
|
297
|
+
str = `["Date","${!isNaN(thing.getDate()) ? thing.toISOString() : ""}"]`;
|
|
298
|
+
break;
|
|
299
|
+
case "URL":
|
|
300
|
+
str = `["URL",${stringify_string(thing.toString())}]`;
|
|
301
|
+
break;
|
|
302
|
+
case "URLSearchParams":
|
|
303
|
+
str = `["URLSearchParams",${stringify_string(thing.toString())}]`;
|
|
304
|
+
break;
|
|
305
|
+
case "RegExp":
|
|
306
|
+
const { source, flags } = thing;
|
|
307
|
+
str = flags ? `["RegExp",${stringify_string(source)},"${flags}"]` : `["RegExp",${stringify_string(source)}]`;
|
|
308
|
+
break;
|
|
309
|
+
case "Array": {
|
|
310
|
+
let mostly_dense = false;
|
|
311
|
+
str = "[";
|
|
312
|
+
for (let i = 0; i < thing.length; i += 1) {
|
|
313
|
+
if (i > 0) str += ",";
|
|
314
|
+
if (Object.hasOwn(thing, i)) {
|
|
315
|
+
keys.push(`[${i}]`);
|
|
316
|
+
str += flatten(thing[i]);
|
|
317
|
+
keys.pop();
|
|
318
|
+
} else if (mostly_dense) str += -2;
|
|
319
|
+
else {
|
|
320
|
+
const populated_keys = valid_array_indices(thing);
|
|
321
|
+
const population = populated_keys.length;
|
|
322
|
+
const d = String(thing.length).length;
|
|
323
|
+
if ((thing.length - population) * 3 > 4 + d + population * (d + 1)) {
|
|
324
|
+
str = "[-7," + thing.length;
|
|
325
|
+
for (let j = 0; j < populated_keys.length; j++) {
|
|
326
|
+
const key = populated_keys[j];
|
|
327
|
+
keys.push(`[${key}]`);
|
|
328
|
+
str += "," + key + "," + flatten(thing[key]);
|
|
329
|
+
keys.pop();
|
|
330
|
+
}
|
|
331
|
+
break;
|
|
332
|
+
} else {
|
|
333
|
+
mostly_dense = true;
|
|
334
|
+
str += -2;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
str += "]";
|
|
339
|
+
break;
|
|
340
|
+
}
|
|
341
|
+
case "Set":
|
|
342
|
+
str = "[\"Set\"";
|
|
343
|
+
for (const value of thing) str += `,${flatten(value)}`;
|
|
344
|
+
str += "]";
|
|
345
|
+
break;
|
|
346
|
+
case "Map":
|
|
347
|
+
str = "[\"Map\"";
|
|
348
|
+
for (const [key, value] of thing) {
|
|
349
|
+
keys.push(`.get(${is_primitive(key) ? stringify_primitive(key) : "..."})`);
|
|
350
|
+
str += `,${flatten(key)},${flatten(value)}`;
|
|
351
|
+
keys.pop();
|
|
352
|
+
}
|
|
353
|
+
str += "]";
|
|
354
|
+
break;
|
|
355
|
+
case "Int8Array":
|
|
356
|
+
case "Uint8Array":
|
|
357
|
+
case "Uint8ClampedArray":
|
|
358
|
+
case "Int16Array":
|
|
359
|
+
case "Uint16Array":
|
|
360
|
+
case "Float16Array":
|
|
361
|
+
case "Int32Array":
|
|
362
|
+
case "Uint32Array":
|
|
363
|
+
case "Float32Array":
|
|
364
|
+
case "Float64Array":
|
|
365
|
+
case "BigInt64Array":
|
|
366
|
+
case "BigUint64Array":
|
|
367
|
+
case "DataView": {
|
|
368
|
+
/** @type {import("./types.js").TypedArray} */
|
|
369
|
+
const typedArray = thing;
|
|
370
|
+
str = "[\"" + type + "\"," + flatten(typedArray.buffer);
|
|
371
|
+
if (typedArray.byteLength !== typedArray.buffer.byteLength) str += `,${typedArray.byteOffset},${typedArray.length}`;
|
|
372
|
+
str += "]";
|
|
373
|
+
break;
|
|
374
|
+
}
|
|
375
|
+
case "ArrayBuffer":
|
|
376
|
+
str = `["ArrayBuffer","${encode64(thing)}"]`;
|
|
377
|
+
break;
|
|
378
|
+
case "Temporal.Duration":
|
|
379
|
+
case "Temporal.Instant":
|
|
380
|
+
case "Temporal.PlainDate":
|
|
381
|
+
case "Temporal.PlainTime":
|
|
382
|
+
case "Temporal.PlainDateTime":
|
|
383
|
+
case "Temporal.PlainMonthDay":
|
|
384
|
+
case "Temporal.PlainYearMonth":
|
|
385
|
+
case "Temporal.ZonedDateTime":
|
|
386
|
+
str = `["${type}",${stringify_string(thing.toString())}]`;
|
|
387
|
+
break;
|
|
388
|
+
default:
|
|
389
|
+
if (!is_plain_object(thing)) throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
|
|
390
|
+
if (enumerable_symbols(thing).length > 0) throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
|
|
391
|
+
if (Object.getPrototypeOf(thing) === null) {
|
|
392
|
+
str = "[\"null\"";
|
|
393
|
+
for (const key of Object.keys(thing)) {
|
|
394
|
+
if (key === "__proto__") throw new DevalueError(`Cannot stringify objects with __proto__ keys`, keys, thing, value);
|
|
395
|
+
keys.push(stringify_key(key));
|
|
396
|
+
str += `,${stringify_string(key)},${flatten(thing[key])}`;
|
|
397
|
+
keys.pop();
|
|
398
|
+
}
|
|
399
|
+
str += "]";
|
|
400
|
+
} else {
|
|
401
|
+
str = "{";
|
|
402
|
+
let started = false;
|
|
403
|
+
for (const key of Object.keys(thing)) {
|
|
404
|
+
if (key === "__proto__") throw new DevalueError(`Cannot stringify objects with __proto__ keys`, keys, thing, value);
|
|
405
|
+
if (started) str += ",";
|
|
406
|
+
started = true;
|
|
407
|
+
keys.push(stringify_key(key));
|
|
408
|
+
str += `${stringify_string(key)}:${flatten(thing[key])}`;
|
|
409
|
+
keys.pop();
|
|
410
|
+
}
|
|
411
|
+
str += "}";
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
stringified[index] = str;
|
|
416
|
+
return index;
|
|
417
|
+
}
|
|
418
|
+
const index = flatten(value);
|
|
419
|
+
if (index < 0) return `${index}`;
|
|
420
|
+
return stringified;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* @param {any} thing
|
|
424
|
+
* @returns {string}
|
|
425
|
+
*/
|
|
426
|
+
function stringify_primitive(thing) {
|
|
427
|
+
const type = typeof thing;
|
|
428
|
+
if (type === "string") return stringify_string(thing);
|
|
429
|
+
if (thing === void 0) return (-1).toString();
|
|
430
|
+
if (thing === 0 && 1 / thing < 0) return (-6).toString();
|
|
431
|
+
if (type === "bigint") return `["BigInt","${thing}"]`;
|
|
432
|
+
return String(thing);
|
|
433
|
+
}
|
|
434
|
+
//#endregion
|
|
435
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/utils.js
|
|
436
|
+
var text_encoder = new TextEncoder();
|
|
437
|
+
/**
|
|
438
|
+
* @param {Uint8Array} bytes
|
|
439
|
+
* @returns {string}
|
|
440
|
+
*/
|
|
441
|
+
function base64_encode(bytes) {
|
|
442
|
+
if (globalThis.Buffer) return globalThis.Buffer.from(bytes).toString("base64");
|
|
443
|
+
let binary = "";
|
|
444
|
+
for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);
|
|
445
|
+
return btoa(binary);
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* @param {string} encoded
|
|
449
|
+
* @returns {Uint8Array}
|
|
450
|
+
*/
|
|
451
|
+
function base64_decode(encoded) {
|
|
452
|
+
if (globalThis.Buffer) {
|
|
453
|
+
const buffer = globalThis.Buffer.from(encoded, "base64");
|
|
454
|
+
return new Uint8Array(buffer);
|
|
455
|
+
}
|
|
456
|
+
const binary = atob(encoded);
|
|
457
|
+
const bytes = new Uint8Array(binary.length);
|
|
458
|
+
for (let i = 0; i < binary.length; i++) bytes[i] = binary.charCodeAt(i);
|
|
459
|
+
return bytes;
|
|
460
|
+
}
|
|
461
|
+
//#endregion
|
|
462
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/utils/error.js
|
|
463
|
+
/**
|
|
464
|
+
* @param {unknown} err
|
|
465
|
+
* @return {Error}
|
|
466
|
+
*/
|
|
467
|
+
function coalesce_to_error(err) {
|
|
468
|
+
return err instanceof Error || err && err.name && err.message ? err : new Error(JSON.stringify(err));
|
|
469
|
+
}
|
|
470
|
+
/**
|
|
471
|
+
* This is an identity function that exists to make TypeScript less
|
|
472
|
+
* paranoid about people throwing things that aren't errors, which
|
|
473
|
+
* frankly is not something we should care about
|
|
474
|
+
* @param {unknown} error
|
|
475
|
+
*/
|
|
476
|
+
function normalize_error(error) {
|
|
477
|
+
return error;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @param {unknown} error
|
|
481
|
+
*/
|
|
482
|
+
function get_status(error) {
|
|
483
|
+
return error instanceof HttpError || error instanceof SvelteKitError ? error.status : 500;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* @param {unknown} error
|
|
487
|
+
*/
|
|
488
|
+
function get_message(error) {
|
|
489
|
+
return error instanceof SvelteKitError ? error.text : "Internal Error";
|
|
490
|
+
}
|
|
491
|
+
var INVALIDATED_PARAM = "x-sveltekit-invalidated";
|
|
492
|
+
var TRAILING_SLASH_PARAM = "x-sveltekit-trailing-slash";
|
|
493
|
+
/**
|
|
494
|
+
* Try to `devalue.stringify` the data object using the provided transport encoders.
|
|
495
|
+
* @param {any} data
|
|
496
|
+
* @param {Transport} transport
|
|
497
|
+
*/
|
|
498
|
+
function stringify(data, transport) {
|
|
499
|
+
return stringify$1(data, Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.encode])));
|
|
500
|
+
}
|
|
501
|
+
var remote_object = "__skrao";
|
|
502
|
+
var remote_map = "__skram";
|
|
503
|
+
var remote_set = "__skras";
|
|
504
|
+
/** @param {Transport} transport */
|
|
505
|
+
function create_remote_arg_revivers(transport) {
|
|
506
|
+
const remote_fns_revivers = {
|
|
507
|
+
/** @type {(value: unknown) => unknown} */
|
|
508
|
+
[remote_object]: (value) => value,
|
|
509
|
+
/** @type {(value: unknown) => Map<unknown, unknown>} */
|
|
510
|
+
[remote_map]: (value) => {
|
|
511
|
+
if (!Array.isArray(value)) throw new Error("Invalid data for Map reviver");
|
|
512
|
+
const map = /* @__PURE__ */ new Map();
|
|
513
|
+
for (const item of value) {
|
|
514
|
+
if (!Array.isArray(item) || item.length !== 2 || typeof item[0] !== "string" || typeof item[1] !== "string") throw new Error("Invalid data for Map reviver");
|
|
515
|
+
const [key, val] = item;
|
|
516
|
+
map.set(parse$1(key), parse$1(val));
|
|
517
|
+
}
|
|
518
|
+
return map;
|
|
519
|
+
},
|
|
520
|
+
/** @type {(value: unknown) => Set<unknown>} */
|
|
521
|
+
[remote_set]: (value) => {
|
|
522
|
+
if (!Array.isArray(value)) throw new Error("Invalid data for Set reviver");
|
|
523
|
+
const set = /* @__PURE__ */ new Set();
|
|
524
|
+
for (const item of value) {
|
|
525
|
+
if (typeof item !== "string") throw new Error("Invalid data for Set reviver");
|
|
526
|
+
set.add(parse$1(item));
|
|
527
|
+
}
|
|
528
|
+
return set;
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
const all_revivers = {
|
|
532
|
+
...Object.fromEntries(Object.entries(transport).map(([k, v]) => [k, v.decode])),
|
|
533
|
+
...remote_fns_revivers
|
|
534
|
+
};
|
|
535
|
+
/** @type {(data: string) => unknown} */
|
|
536
|
+
const parse$1 = (data) => parse(data, all_revivers);
|
|
537
|
+
return all_revivers;
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Parses the argument (if any) for a remote function
|
|
541
|
+
* @param {string} string
|
|
542
|
+
* @param {Transport} transport
|
|
543
|
+
*/
|
|
544
|
+
function parse_remote_arg(string, transport) {
|
|
545
|
+
if (!string) return void 0;
|
|
546
|
+
return parse(new TextDecoder().decode(base64_decode(string.replaceAll("-", "+").replaceAll("_", "/"))), create_remote_arg_revivers(transport));
|
|
547
|
+
}
|
|
548
|
+
/**
|
|
549
|
+
* @param {string} id
|
|
550
|
+
* @param {string} payload
|
|
551
|
+
*/
|
|
552
|
+
function create_remote_key(id, payload) {
|
|
553
|
+
return id + "/" + payload;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* @param {string} key
|
|
557
|
+
* @returns {{ id: string; payload: string }}
|
|
558
|
+
*/
|
|
559
|
+
function split_remote_key(key) {
|
|
560
|
+
const i = key.lastIndexOf("/");
|
|
561
|
+
if (i === -1) throw new Error(`Invalid remote key: ${key}`);
|
|
562
|
+
return {
|
|
563
|
+
id: key.slice(0, i),
|
|
564
|
+
payload: key.slice(i + 1)
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/utils/array.js
|
|
569
|
+
/**
|
|
570
|
+
* Removes nullish values from an array.
|
|
571
|
+
*
|
|
572
|
+
* @template T
|
|
573
|
+
* @param {Array<T>} arr
|
|
574
|
+
*/
|
|
575
|
+
function compact(arr) {
|
|
576
|
+
return arr.filter(
|
|
577
|
+
/** @returns {val is NonNullable<T>} */
|
|
578
|
+
(val) => val != null
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
//#endregion
|
|
582
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/pathname.js
|
|
583
|
+
var DATA_SUFFIX = "/__data.json";
|
|
584
|
+
var HTML_DATA_SUFFIX = ".html__data.json";
|
|
585
|
+
/** @param {string} pathname */
|
|
586
|
+
function has_data_suffix(pathname) {
|
|
587
|
+
return pathname.endsWith(DATA_SUFFIX) || pathname.endsWith(HTML_DATA_SUFFIX);
|
|
588
|
+
}
|
|
589
|
+
/** @param {string} pathname */
|
|
590
|
+
function add_data_suffix(pathname) {
|
|
591
|
+
if (pathname.endsWith(".html")) return pathname.replace(/\.html$/, HTML_DATA_SUFFIX);
|
|
592
|
+
return pathname.replace(/\/$/, "") + DATA_SUFFIX;
|
|
593
|
+
}
|
|
594
|
+
/** @param {string} pathname */
|
|
595
|
+
function strip_data_suffix(pathname) {
|
|
596
|
+
if (pathname.endsWith(HTML_DATA_SUFFIX)) return pathname.slice(0, -16) + ".html";
|
|
597
|
+
return pathname.slice(0, -12);
|
|
598
|
+
}
|
|
599
|
+
var ROUTE_SUFFIX = "/__route.js";
|
|
600
|
+
/**
|
|
601
|
+
* @param {string} pathname
|
|
602
|
+
* @returns {boolean}
|
|
603
|
+
*/
|
|
604
|
+
function has_resolution_suffix(pathname) {
|
|
605
|
+
return pathname.endsWith(ROUTE_SUFFIX);
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Convert a regular URL to a route to send to SvelteKit's server-side route resolution endpoint
|
|
609
|
+
* @param {string} pathname
|
|
610
|
+
* @returns {string}
|
|
611
|
+
*/
|
|
612
|
+
function add_resolution_suffix(pathname) {
|
|
613
|
+
return pathname.replace(/\/$/, "") + ROUTE_SUFFIX;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* @param {string} pathname
|
|
617
|
+
* @returns {string}
|
|
618
|
+
*/
|
|
619
|
+
function strip_resolution_suffix(pathname) {
|
|
620
|
+
return pathname.slice(0, -11);
|
|
621
|
+
}
|
|
622
|
+
//#endregion
|
|
623
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/telemetry/noop.js
|
|
624
|
+
/**
|
|
625
|
+
* @type {Span}
|
|
626
|
+
*/
|
|
627
|
+
var noop_span = {
|
|
628
|
+
spanContext() {
|
|
629
|
+
return noop_span_context;
|
|
630
|
+
},
|
|
631
|
+
setAttribute() {
|
|
632
|
+
return this;
|
|
633
|
+
},
|
|
634
|
+
setAttributes() {
|
|
635
|
+
return this;
|
|
636
|
+
},
|
|
637
|
+
addEvent() {
|
|
638
|
+
return this;
|
|
639
|
+
},
|
|
640
|
+
setStatus() {
|
|
641
|
+
return this;
|
|
642
|
+
},
|
|
643
|
+
updateName() {
|
|
644
|
+
return this;
|
|
645
|
+
},
|
|
646
|
+
end() {
|
|
647
|
+
return this;
|
|
648
|
+
},
|
|
649
|
+
isRecording() {
|
|
650
|
+
return false;
|
|
651
|
+
},
|
|
652
|
+
recordException() {
|
|
653
|
+
return this;
|
|
654
|
+
},
|
|
655
|
+
addLink() {
|
|
656
|
+
return this;
|
|
657
|
+
},
|
|
658
|
+
addLinks() {
|
|
659
|
+
return this;
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
/**
|
|
663
|
+
* @type {SpanContext}
|
|
664
|
+
*/
|
|
665
|
+
var noop_span_context = {
|
|
666
|
+
traceId: "",
|
|
667
|
+
spanId: "",
|
|
668
|
+
traceFlags: 0
|
|
669
|
+
};
|
|
670
|
+
//#endregion
|
|
671
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/utils/hash.js
|
|
672
|
+
/**
|
|
673
|
+
* Hash using djb2
|
|
674
|
+
* @param {import('types').StrictBody[]} values
|
|
675
|
+
*/
|
|
676
|
+
function hash(...values) {
|
|
677
|
+
let hash = 5381;
|
|
678
|
+
for (const value of values) if (typeof value === "string") {
|
|
679
|
+
let i = value.length;
|
|
680
|
+
while (i) hash = hash * 33 ^ value.charCodeAt(--i);
|
|
681
|
+
} else if (ArrayBuffer.isView(value)) {
|
|
682
|
+
const buffer = new Uint8Array(value.buffer, value.byteOffset, value.byteLength);
|
|
683
|
+
let i = buffer.length;
|
|
684
|
+
while (i) hash = hash * 33 ^ buffer[--i];
|
|
685
|
+
} else throw new TypeError("value must be a string or TypedArray");
|
|
686
|
+
return (hash >>> 0).toString(36);
|
|
687
|
+
}
|
|
688
|
+
//#endregion
|
|
689
|
+
//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/utils/exports.js
|
|
690
|
+
/**
|
|
691
|
+
* @param {Set<string>} expected
|
|
692
|
+
*/
|
|
693
|
+
function validator(expected) {
|
|
694
|
+
/**
|
|
695
|
+
* @param {any} module
|
|
696
|
+
* @param {string} [file]
|
|
697
|
+
*/
|
|
698
|
+
function validate(module, file) {
|
|
699
|
+
if (!module) return;
|
|
700
|
+
for (const key in module) {
|
|
701
|
+
if (key[0] === "_" || expected.has(key)) continue;
|
|
702
|
+
const values = [...expected.values()];
|
|
703
|
+
const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
|
|
704
|
+
throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
return validate;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* @param {string} key
|
|
711
|
+
* @param {string} ext
|
|
712
|
+
* @returns {string | void}
|
|
713
|
+
*/
|
|
714
|
+
function hint_for_supported_files(key, ext = ".js") {
|
|
715
|
+
const supported_files = [];
|
|
716
|
+
if (valid_layout_exports.has(key)) supported_files.push(`+layout${ext}`);
|
|
717
|
+
if (valid_page_exports.has(key)) supported_files.push(`+page${ext}`);
|
|
718
|
+
if (valid_layout_server_exports.has(key)) supported_files.push(`+layout.server${ext}`);
|
|
719
|
+
if (valid_page_server_exports.has(key)) supported_files.push(`+page.server${ext}`);
|
|
720
|
+
if (valid_server_exports.has(key)) supported_files.push(`+server${ext}`);
|
|
721
|
+
if (supported_files.length > 0) return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
|
|
722
|
+
}
|
|
723
|
+
var valid_layout_exports = new Set([
|
|
724
|
+
"load",
|
|
725
|
+
"prerender",
|
|
726
|
+
"csr",
|
|
727
|
+
"ssr",
|
|
728
|
+
"trailingSlash",
|
|
729
|
+
"config"
|
|
730
|
+
]);
|
|
731
|
+
var valid_page_exports = new Set([...valid_layout_exports, "entries"]);
|
|
732
|
+
var valid_layout_server_exports = new Set([...valid_layout_exports]);
|
|
733
|
+
var valid_page_server_exports = new Set([
|
|
734
|
+
...valid_layout_server_exports,
|
|
735
|
+
"actions",
|
|
736
|
+
"entries"
|
|
737
|
+
]);
|
|
738
|
+
var valid_server_exports = new Set([
|
|
739
|
+
"GET",
|
|
740
|
+
"POST",
|
|
741
|
+
"PATCH",
|
|
742
|
+
"PUT",
|
|
743
|
+
"DELETE",
|
|
744
|
+
"OPTIONS",
|
|
745
|
+
"HEAD",
|
|
746
|
+
"fallback",
|
|
747
|
+
"prerender",
|
|
748
|
+
"trailingSlash",
|
|
749
|
+
"config",
|
|
750
|
+
"entries"
|
|
751
|
+
]);
|
|
752
|
+
var validate_layout_exports = validator(valid_layout_exports);
|
|
753
|
+
var validate_page_exports = validator(valid_page_exports);
|
|
754
|
+
var validate_layout_server_exports = validator(valid_layout_server_exports);
|
|
755
|
+
var validate_page_server_exports = validator(valid_page_server_exports);
|
|
756
|
+
|
|
757
|
+
export { validate_page_server_exports as A, INVALIDATED_PARAM as I, TRAILING_SLASH_PARAM as T, add_data_suffix as a, add_resolution_suffix as b, base64_encode as c, coalesce_to_error as d, compact as e, create_remote_key as f, get_message as g, get_status as h, has_data_suffix as i, has_resolution_suffix as j, hash as k, noop_span as l, normalize_error as m, noop as n, once as o, parse as p, parse_remote_arg as q, stringify as r, split_remote_key as s, stringify$1 as t, strip_data_suffix as u, strip_resolution_suffix as v, text_encoder as w, validate_layout_exports as x, validate_layout_server_exports as y, validate_page_exports as z };
|
|
758
|
+
//# sourceMappingURL=exports-ZnEJ4gG9.js.map
|