@k-4u/resource-mapper-core 0.0.1

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.
Files changed (250) hide show
  1. package/.aws-icons-last-updated +1 -0
  2. package/.svelte-kit/ambient.d.ts +263 -0
  3. package/.svelte-kit/generated/client/app.js +31 -0
  4. package/.svelte-kit/generated/client/matchers.js +1 -0
  5. package/.svelte-kit/generated/client/nodes/0.js +1 -0
  6. package/.svelte-kit/generated/client/nodes/1.js +1 -0
  7. package/.svelte-kit/generated/client/nodes/2.js +3 -0
  8. package/.svelte-kit/generated/client/nodes/3.js +3 -0
  9. package/.svelte-kit/generated/client-optimized/app.js +31 -0
  10. package/.svelte-kit/generated/client-optimized/matchers.js +1 -0
  11. package/.svelte-kit/generated/client-optimized/nodes/0.js +1 -0
  12. package/.svelte-kit/generated/client-optimized/nodes/1.js +1 -0
  13. package/.svelte-kit/generated/client-optimized/nodes/2.js +3 -0
  14. package/.svelte-kit/generated/client-optimized/nodes/3.js +3 -0
  15. package/.svelte-kit/generated/root.js +3 -0
  16. package/.svelte-kit/generated/root.svelte +68 -0
  17. package/.svelte-kit/generated/server/internal.js +53 -0
  18. package/.svelte-kit/non-ambient.d.ts +43 -0
  19. package/.svelte-kit/output/client/.vite/manifest.json +175 -0
  20. package/.svelte-kit/output/client/_app/immutable/assets/0.Czt_67iE.css +1 -0
  21. package/.svelte-kit/output/client/_app/immutable/assets/TeamContactCard.Dxj5nUCr.css +1 -0
  22. package/.svelte-kit/output/client/_app/immutable/assets/helpers.ysDrpaDf.css +1 -0
  23. package/.svelte-kit/output/client/_app/immutable/assets/libavoid.DQJapW5w.wasm +0 -0
  24. package/.svelte-kit/output/client/_app/immutable/chunks/BlLuv0eP.js +46 -0
  25. package/.svelte-kit/output/client/_app/immutable/chunks/CSBHmwYv.js +1 -0
  26. package/.svelte-kit/output/client/_app/immutable/chunks/CTCi5ueQ.js +1 -0
  27. package/.svelte-kit/output/client/_app/immutable/chunks/CfOzjaik.js +2 -0
  28. package/.svelte-kit/output/client/_app/immutable/chunks/D4PdvFNs.js +1 -0
  29. package/.svelte-kit/output/client/_app/immutable/chunks/DXgP-QUS.js +2 -0
  30. package/.svelte-kit/output/client/_app/immutable/chunks/DlbDC5An.js +1 -0
  31. package/.svelte-kit/output/client/_app/immutable/chunks/wRWe7aK9.js +1 -0
  32. package/.svelte-kit/output/client/_app/immutable/entry/app.ConrMuHl.js +2 -0
  33. package/.svelte-kit/output/client/_app/immutable/entry/start.Bm6FyGme.js +1 -0
  34. package/.svelte-kit/output/client/_app/immutable/nodes/0.d3cL-ETU.js +1 -0
  35. package/.svelte-kit/output/client/_app/immutable/nodes/1.D6z9rPGv.js +1 -0
  36. package/.svelte-kit/output/client/_app/immutable/nodes/2.CLD-8chl.js +1 -0
  37. package/.svelte-kit/output/client/_app/immutable/nodes/3.DXYeBoel.js +1 -0
  38. package/.svelte-kit/output/client/_app/version.json +1 -0
  39. package/.svelte-kit/output/client/libavoid.wasm +0 -0
  40. package/.svelte-kit/output/client/static/robots.txt +3 -0
  41. package/.svelte-kit/output/prerendered/dependencies/_app/env.js +1 -0
  42. package/.svelte-kit/output/server/.vite/manifest.json +224 -0
  43. package/.svelte-kit/output/server/_app/immutable/assets/LoadingOverlay.DBbe6V8W.css +1 -0
  44. package/.svelte-kit/output/server/_app/immutable/assets/_layout.Czt_67iE.css +1 -0
  45. package/.svelte-kit/output/server/_app/immutable/assets/_page.D9P41uDZ.css +1 -0
  46. package/.svelte-kit/output/server/chunks/ErrorDisplay.js +59 -0
  47. package/.svelte-kit/output/server/chunks/LoadingOverlay.js +12 -0
  48. package/.svelte-kit/output/server/chunks/LoadingOverlay.svelte_svelte_type_style_lang.js +1671 -0
  49. package/.svelte-kit/output/server/chunks/connections.js +33 -0
  50. package/.svelte-kit/output/server/chunks/diagram.js +7 -0
  51. package/.svelte-kit/output/server/chunks/environment.js +34 -0
  52. package/.svelte-kit/output/server/chunks/equality.js +57 -0
  53. package/.svelte-kit/output/server/chunks/exports.js +174 -0
  54. package/.svelte-kit/output/server/chunks/false.js +4 -0
  55. package/.svelte-kit/output/server/chunks/index.js +59 -0
  56. package/.svelte-kit/output/server/chunks/index2.js +2939 -0
  57. package/.svelte-kit/output/server/chunks/index3.js +20 -0
  58. package/.svelte-kit/output/server/chunks/internal.js +1017 -0
  59. package/.svelte-kit/output/server/chunks/shared.js +770 -0
  60. package/.svelte-kit/output/server/chunks/utils.js +43 -0
  61. package/.svelte-kit/output/server/entries/pages/_error.svelte.js +64 -0
  62. package/.svelte-kit/output/server/entries/pages/_layout.svelte.js +65 -0
  63. package/.svelte-kit/output/server/entries/pages/_page.svelte.js +3991 -0
  64. package/.svelte-kit/output/server/entries/pages/_page.ts.js +30 -0
  65. package/.svelte-kit/output/server/entries/pages/group/_groupId_/_page.svelte.js +67 -0
  66. package/.svelte-kit/output/server/entries/pages/group/_groupId_/_page.ts.js +47 -0
  67. package/.svelte-kit/output/server/index.js +3747 -0
  68. package/.svelte-kit/output/server/internal.js +13 -0
  69. package/.svelte-kit/output/server/manifest-full.js +47 -0
  70. package/.svelte-kit/output/server/manifest.js +47 -0
  71. package/.svelte-kit/output/server/nodes/0.js +8 -0
  72. package/.svelte-kit/output/server/nodes/1.js +8 -0
  73. package/.svelte-kit/output/server/nodes/2.js +10 -0
  74. package/.svelte-kit/output/server/nodes/3.js +10 -0
  75. package/.svelte-kit/output/server/remote-entry.js +557 -0
  76. package/.svelte-kit/tsconfig.json +61 -0
  77. package/.svelte-kit/types/route_meta_data.json +8 -0
  78. package/.svelte-kit/types/src/routes/$types.d.ts +26 -0
  79. package/.svelte-kit/types/src/routes/group/[groupId]/$types.d.ts +21 -0
  80. package/.svelte-kit/types/src/routes/group/[groupId]/proxy+page.ts +49 -0
  81. package/.svelte-kit/types/src/routes/proxy+page.ts +33 -0
  82. package/build/_app/env.js +1 -0
  83. package/build/_app/env.js.br +1 -0
  84. package/build/_app/env.js.gz +0 -0
  85. package/build/_app/immutable/assets/0.Czt_67iE.css +1 -0
  86. package/build/_app/immutable/assets/0.Czt_67iE.css.br +0 -0
  87. package/build/_app/immutable/assets/0.Czt_67iE.css.gz +0 -0
  88. package/build/_app/immutable/assets/TeamContactCard.Dxj5nUCr.css +1 -0
  89. package/build/_app/immutable/assets/TeamContactCard.Dxj5nUCr.css.br +0 -0
  90. package/build/_app/immutable/assets/TeamContactCard.Dxj5nUCr.css.gz +0 -0
  91. package/build/_app/immutable/assets/helpers.ysDrpaDf.css +1 -0
  92. package/build/_app/immutable/assets/helpers.ysDrpaDf.css.br +0 -0
  93. package/build/_app/immutable/assets/helpers.ysDrpaDf.css.gz +0 -0
  94. package/build/_app/immutable/assets/libavoid.DQJapW5w.wasm +0 -0
  95. package/build/_app/immutable/assets/libavoid.DQJapW5w.wasm.br +0 -0
  96. package/build/_app/immutable/assets/libavoid.DQJapW5w.wasm.gz +0 -0
  97. package/build/_app/immutable/chunks/BlLuv0eP.js +46 -0
  98. package/build/_app/immutable/chunks/BlLuv0eP.js.br +0 -0
  99. package/build/_app/immutable/chunks/BlLuv0eP.js.gz +0 -0
  100. package/build/_app/immutable/chunks/CSBHmwYv.js +1 -0
  101. package/build/_app/immutable/chunks/CSBHmwYv.js.br +0 -0
  102. package/build/_app/immutable/chunks/CSBHmwYv.js.gz +0 -0
  103. package/build/_app/immutable/chunks/CTCi5ueQ.js +1 -0
  104. package/build/_app/immutable/chunks/CTCi5ueQ.js.br +0 -0
  105. package/build/_app/immutable/chunks/CTCi5ueQ.js.gz +0 -0
  106. package/build/_app/immutable/chunks/CfOzjaik.js +2 -0
  107. package/build/_app/immutable/chunks/CfOzjaik.js.br +0 -0
  108. package/build/_app/immutable/chunks/CfOzjaik.js.gz +0 -0
  109. package/build/_app/immutable/chunks/D4PdvFNs.js +1 -0
  110. package/build/_app/immutable/chunks/D4PdvFNs.js.br +0 -0
  111. package/build/_app/immutable/chunks/D4PdvFNs.js.gz +0 -0
  112. package/build/_app/immutable/chunks/DXgP-QUS.js +2 -0
  113. package/build/_app/immutable/chunks/DXgP-QUS.js.br +0 -0
  114. package/build/_app/immutable/chunks/DXgP-QUS.js.gz +0 -0
  115. package/build/_app/immutable/chunks/DlbDC5An.js +1 -0
  116. package/build/_app/immutable/chunks/DlbDC5An.js.br +0 -0
  117. package/build/_app/immutable/chunks/DlbDC5An.js.gz +0 -0
  118. package/build/_app/immutable/chunks/wRWe7aK9.js +1 -0
  119. package/build/_app/immutable/chunks/wRWe7aK9.js.br +0 -0
  120. package/build/_app/immutable/chunks/wRWe7aK9.js.gz +0 -0
  121. package/build/_app/immutable/entry/app.ConrMuHl.js +2 -0
  122. package/build/_app/immutable/entry/app.ConrMuHl.js.br +0 -0
  123. package/build/_app/immutable/entry/app.ConrMuHl.js.gz +0 -0
  124. package/build/_app/immutable/entry/start.Bm6FyGme.js +1 -0
  125. package/build/_app/immutable/entry/start.Bm6FyGme.js.br +2 -0
  126. package/build/_app/immutable/entry/start.Bm6FyGme.js.gz +0 -0
  127. package/build/_app/immutable/nodes/0.d3cL-ETU.js +1 -0
  128. package/build/_app/immutable/nodes/0.d3cL-ETU.js.br +0 -0
  129. package/build/_app/immutable/nodes/0.d3cL-ETU.js.gz +0 -0
  130. package/build/_app/immutable/nodes/1.D6z9rPGv.js +1 -0
  131. package/build/_app/immutable/nodes/1.D6z9rPGv.js.br +0 -0
  132. package/build/_app/immutable/nodes/1.D6z9rPGv.js.gz +0 -0
  133. package/build/_app/immutable/nodes/2.CLD-8chl.js +1 -0
  134. package/build/_app/immutable/nodes/2.CLD-8chl.js.br +0 -0
  135. package/build/_app/immutable/nodes/2.CLD-8chl.js.gz +0 -0
  136. package/build/_app/immutable/nodes/3.DXYeBoel.js +1 -0
  137. package/build/_app/immutable/nodes/3.DXYeBoel.js.br +0 -0
  138. package/build/_app/immutable/nodes/3.DXYeBoel.js.gz +0 -0
  139. package/build/_app/version.json +1 -0
  140. package/build/_app/version.json.br +0 -0
  141. package/build/_app/version.json.gz +0 -0
  142. package/build/index.html +34 -0
  143. package/build/index.html.br +0 -0
  144. package/build/index.html.gz +0 -0
  145. package/build/libavoid.wasm +0 -0
  146. package/build/libavoid.wasm.br +0 -0
  147. package/build/libavoid.wasm.gz +0 -0
  148. package/build/static/robots.txt +3 -0
  149. package/coverage/coverage-final.json +6 -0
  150. package/coverage/coverage-summary.json +7 -0
  151. package/coverage/junit.xml +57 -0
  152. package/coverage/lcov-report/base.css +224 -0
  153. package/coverage/lcov-report/block-navigation.js +87 -0
  154. package/coverage/lcov-report/favicon.png +0 -0
  155. package/coverage/lcov-report/index.html +131 -0
  156. package/coverage/lcov-report/prettify.css +1 -0
  157. package/coverage/lcov-report/prettify.js +2 -0
  158. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  159. package/coverage/lcov-report/sorter.js +210 -0
  160. package/coverage/lcov-report/stores/index.html +116 -0
  161. package/coverage/lcov-report/stores/routingStore.ts.html +781 -0
  162. package/coverage/lcov-report/utils/flow/helpers.ts.html +127 -0
  163. package/coverage/lcov-report/utils/flow/index.html +161 -0
  164. package/coverage/lcov-report/utils/flow/layout.ts.html +805 -0
  165. package/coverage/lcov-report/utils/flow/serviceIds.ts.html +97 -0
  166. package/coverage/lcov-report/utils/flow/servicesGraph.ts.html +859 -0
  167. package/coverage/lcov.info +646 -0
  168. package/coverage/test-results.json +1 -0
  169. package/data/services/api/api-gateway.yaml +18 -0
  170. package/data/services/api/group-info.yaml +7 -0
  171. package/data/services/api/lambda-orders.yaml +21 -0
  172. package/data/services/api/lambda-products.yaml +15 -0
  173. package/data/services/api/lambda-users.yaml +15 -0
  174. package/data/services/compute/alb.yaml +15 -0
  175. package/data/services/compute/ecs-inventory.yaml +16 -0
  176. package/data/services/compute/ecs-notification.yaml +15 -0
  177. package/data/services/compute/group-info.yaml +7 -0
  178. package/data/services/data/dynamodb-notifications.yaml +12 -0
  179. package/data/services/data/dynamodb-orders.yaml +9 -0
  180. package/data/services/data/dynamodb-products.yaml +9 -0
  181. package/data/services/data/dynamodb-users.yaml +9 -0
  182. package/data/services/data/group-info.yaml +7 -0
  183. package/data/services/data/rds-postgres.yaml +9 -0
  184. package/data/services/data/redis.yaml +10 -0
  185. package/data/services/frontend/cloudfront.yaml +12 -0
  186. package/data/services/frontend/group-info.yaml +7 -0
  187. package/data/services/frontend/route53.yaml +15 -0
  188. package/data/services/frontend/s3-website.yaml +9 -0
  189. package/data/teams/cloud-shepherds.yaml +15 -0
  190. package/data/teams/data-wizards.yaml +15 -0
  191. package/data/teams/interface-architects.yaml +19 -0
  192. package/e2e/demo.test.ts +54 -0
  193. package/e2e/header-toolbar.simple.spec.ts +0 -0
  194. package/e2e/header-toolbar.spec.ts +53 -0
  195. package/e2e/layout.spec.ts +30 -0
  196. package/package.json +69 -0
  197. package/playwright.config.ts +10 -0
  198. package/plugins/mapper-data-plugin.ts +32 -0
  199. package/project.json +23 -0
  200. package/src/app.css +125 -0
  201. package/src/app.d.ts +31 -0
  202. package/src/app.html +11 -0
  203. package/src/lib/assets/favicon.svg +19 -0
  204. package/src/lib/components/EmptyState.svelte +37 -0
  205. package/src/lib/components/ErrorDisplay.svelte +82 -0
  206. package/src/lib/components/FlowCanvas.svelte +223 -0
  207. package/src/lib/components/GenericSidebarCard.svelte +44 -0
  208. package/src/lib/components/GroupDetailSidebar.svelte +31 -0
  209. package/src/lib/components/Header.svelte +57 -0
  210. package/src/lib/components/Legend.svelte +25 -0
  211. package/src/lib/components/LoadingOverlay.svelte +42 -0
  212. package/src/lib/components/LoadingSpinner.svelte +10 -0
  213. package/src/lib/components/ServiceDetailSidebar.svelte +90 -0
  214. package/src/lib/components/TeamContactCard.svelte +166 -0
  215. package/src/lib/components/flow/ExternalNode.svelte +45 -0
  216. package/src/lib/components/flow/MainGroupNode.svelte +24 -0
  217. package/src/lib/components/flow/ServiceGroupNode.svelte +17 -0
  218. package/src/lib/components/flow/ServiceNode.svelte +40 -0
  219. package/src/lib/components/flow/SnakeEdge.svelte +206 -0
  220. package/src/lib/components/flow/index.ts +6 -0
  221. package/src/lib/components/index.ts +12 -0
  222. package/src/lib/data/connections.ts +26 -0
  223. package/src/lib/data/groups.ts +11 -0
  224. package/src/lib/data/services.ts +12 -0
  225. package/src/lib/data/teams.ts +11 -0
  226. package/src/lib/index.ts +1 -0
  227. package/src/lib/state/theme.svelte.ts +21 -0
  228. package/src/lib/stores/diagram.ts +6 -0
  229. package/src/lib/stores/routingStore.test.ts +133 -0
  230. package/src/lib/stores/routingStore.ts +232 -0
  231. package/src/lib/utils/awsIcons.ts +117 -0
  232. package/src/lib/utils/flow/groupOverviewGraph.ts +73 -0
  233. package/src/lib/utils/flow/helpers.ts +14 -0
  234. package/src/lib/utils/flow/layout.test.ts +271 -0
  235. package/src/lib/utils/flow/layout.ts +240 -0
  236. package/src/lib/utils/flow/serviceIds.ts +5 -0
  237. package/src/lib/utils/flow/servicesGraph.test.ts +119 -0
  238. package/src/lib/utils/flow/servicesGraph.ts +258 -0
  239. package/src/routes/+error.svelte +36 -0
  240. package/src/routes/+layout.svelte +27 -0
  241. package/src/routes/+page.svelte +81 -0
  242. package/src/routes/+page.ts +31 -0
  243. package/src/routes/group/[groupId]/+page.svelte +102 -0
  244. package/src/routes/group/[groupId]/+page.ts +48 -0
  245. package/src/routes/layout.css +0 -0
  246. package/static/static/robots.txt +3 -0
  247. package/svelte.config.js +28 -0
  248. package/tailwind.config.js +12 -0
  249. package/tsconfig.json +22 -0
  250. package/vite.config.ts +81 -0
@@ -0,0 +1,33 @@
1
+ const bakedData = void 0;
2
+ async function getAllTeams() {
3
+ return bakedData.teams;
4
+ }
5
+ async function getAllGroups() {
6
+ return bakedData.groups;
7
+ }
8
+ async function getGroup(groupId) {
9
+ if (!groupId) return null;
10
+ return bakedData.groups[groupId] ?? null;
11
+ }
12
+ async function getConnectionsFromGroup(groupId) {
13
+ if (!groupId) return [];
14
+ return bakedData.groupConnections.filter((c) => c.sourceGroup === groupId);
15
+ }
16
+ async function getConnectionsToGroup(groupId) {
17
+ if (!groupId) return [];
18
+ return bakedData.groupConnections.filter((c) => c.targetGroup === groupId);
19
+ }
20
+ async function getAllGroupConnections() {
21
+ return bakedData.groupConnections.filter(
22
+ (c) => c.sourceGroup !== c.targetGroup
23
+ );
24
+ }
25
+ export {
26
+ getAllGroupConnections as a,
27
+ getAllTeams as b,
28
+ bakedData as c,
29
+ getConnectionsFromGroup as d,
30
+ getConnectionsToGroup as e,
31
+ getGroup as f,
32
+ getAllGroups as g
33
+ };
@@ -0,0 +1,7 @@
1
+ import { w as writable } from "./index.js";
2
+ const selectedGroup = writable(null);
3
+ const showLegend = writable(true);
4
+ export {
5
+ showLegend as a,
6
+ selectedGroup as s
7
+ };
@@ -0,0 +1,34 @@
1
+ let base = "";
2
+ let assets = base;
3
+ const app_dir = "_app";
4
+ const relative = true;
5
+ const initial = { base, assets };
6
+ function override(paths) {
7
+ base = paths.base;
8
+ assets = paths.assets;
9
+ }
10
+ function reset() {
11
+ base = initial.base;
12
+ assets = initial.assets;
13
+ }
14
+ function set_assets(path) {
15
+ assets = initial.assets = path;
16
+ }
17
+ let prerendering = false;
18
+ function set_building() {
19
+ }
20
+ function set_prerendering() {
21
+ prerendering = true;
22
+ }
23
+ export {
24
+ assets as a,
25
+ base as b,
26
+ app_dir as c,
27
+ reset as d,
28
+ set_building as e,
29
+ set_prerendering as f,
30
+ override as o,
31
+ prerendering as p,
32
+ relative as r,
33
+ set_assets as s
34
+ };
@@ -0,0 +1,57 @@
1
+ var is_array = Array.isArray;
2
+ var index_of = Array.prototype.indexOf;
3
+ var includes = Array.prototype.includes;
4
+ var array_from = Array.from;
5
+ var define_property = Object.defineProperty;
6
+ var get_descriptor = Object.getOwnPropertyDescriptor;
7
+ var object_prototype = Object.prototype;
8
+ var array_prototype = Array.prototype;
9
+ var get_prototype_of = Object.getPrototypeOf;
10
+ var is_extensible = Object.isExtensible;
11
+ const noop = () => {
12
+ };
13
+ function run(fn) {
14
+ return fn();
15
+ }
16
+ function run_all(arr) {
17
+ for (var i = 0; i < arr.length; i++) {
18
+ arr[i]();
19
+ }
20
+ }
21
+ function deferred() {
22
+ var resolve;
23
+ var reject;
24
+ var promise = new Promise((res, rej) => {
25
+ resolve = res;
26
+ reject = rej;
27
+ });
28
+ return { promise, resolve, reject };
29
+ }
30
+ function equals(value) {
31
+ return value === this.v;
32
+ }
33
+ function safe_not_equal(a, b) {
34
+ return a != a ? b == b : a !== b || a !== null && typeof a === "object" || typeof a === "function";
35
+ }
36
+ function safe_equals(value) {
37
+ return !safe_not_equal(value, this.v);
38
+ }
39
+ export {
40
+ array_from as a,
41
+ run_all as b,
42
+ deferred as c,
43
+ define_property as d,
44
+ includes as e,
45
+ equals as f,
46
+ get_prototype_of as g,
47
+ array_prototype as h,
48
+ is_array as i,
49
+ get_descriptor as j,
50
+ is_extensible as k,
51
+ index_of as l,
52
+ safe_not_equal as m,
53
+ noop as n,
54
+ object_prototype as o,
55
+ run as r,
56
+ safe_equals as s
57
+ };
@@ -0,0 +1,174 @@
1
+ const SCHEME = /^[a-z][a-z\d+\-.]+:/i;
2
+ const internal = new URL("sveltekit-internal://");
3
+ function resolve(base, path) {
4
+ if (path[0] === "/" && path[1] === "/") return path;
5
+ let url = new URL(base, internal);
6
+ url = new URL(path, url);
7
+ return url.protocol === internal.protocol ? url.pathname + url.search + url.hash : url.href;
8
+ }
9
+ function normalize_path(path, trailing_slash) {
10
+ if (path === "/" || trailing_slash === "ignore") return path;
11
+ if (trailing_slash === "never") {
12
+ return path.endsWith("/") ? path.slice(0, -1) : path;
13
+ } else if (trailing_slash === "always" && !path.endsWith("/")) {
14
+ return path + "/";
15
+ }
16
+ return path;
17
+ }
18
+ function decode_pathname(pathname) {
19
+ return pathname.split("%25").map(decodeURI).join("%25");
20
+ }
21
+ function decode_params(params) {
22
+ for (const key in params) {
23
+ params[key] = decodeURIComponent(params[key]);
24
+ }
25
+ return params;
26
+ }
27
+ function make_trackable(url, callback, search_params_callback, allow_hash = false) {
28
+ const tracked = new URL(url);
29
+ Object.defineProperty(tracked, "searchParams", {
30
+ value: new Proxy(tracked.searchParams, {
31
+ get(obj, key) {
32
+ if (key === "get" || key === "getAll" || key === "has") {
33
+ return (param, ...rest) => {
34
+ search_params_callback(param);
35
+ return obj[key](param, ...rest);
36
+ };
37
+ }
38
+ callback();
39
+ const value = Reflect.get(obj, key);
40
+ return typeof value === "function" ? value.bind(obj) : value;
41
+ }
42
+ }),
43
+ enumerable: true,
44
+ configurable: true
45
+ });
46
+ const tracked_url_properties = ["href", "pathname", "search", "toString", "toJSON"];
47
+ if (allow_hash) tracked_url_properties.push("hash");
48
+ for (const property of tracked_url_properties) {
49
+ Object.defineProperty(tracked, property, {
50
+ get() {
51
+ callback();
52
+ return url[property];
53
+ },
54
+ enumerable: true,
55
+ configurable: true
56
+ });
57
+ }
58
+ {
59
+ tracked[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
60
+ return inspect(url, opts);
61
+ };
62
+ tracked.searchParams[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
63
+ return inspect(url.searchParams, opts);
64
+ };
65
+ }
66
+ if (!allow_hash) {
67
+ disable_hash(tracked);
68
+ }
69
+ return tracked;
70
+ }
71
+ function disable_hash(url) {
72
+ allow_nodejs_console_log(url);
73
+ Object.defineProperty(url, "hash", {
74
+ get() {
75
+ throw new Error(
76
+ "Cannot access event.url.hash. Consider using `page.url.hash` inside a component instead"
77
+ );
78
+ }
79
+ });
80
+ }
81
+ function disable_search(url) {
82
+ allow_nodejs_console_log(url);
83
+ for (const property of ["search", "searchParams"]) {
84
+ Object.defineProperty(url, property, {
85
+ get() {
86
+ throw new Error(`Cannot access url.${property} on a page with prerendering enabled`);
87
+ }
88
+ });
89
+ }
90
+ }
91
+ function allow_nodejs_console_log(url) {
92
+ {
93
+ url[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = (depth, opts, inspect) => {
94
+ return inspect(new URL(url), opts);
95
+ };
96
+ }
97
+ }
98
+ function validator(expected) {
99
+ function validate(module, file) {
100
+ if (!module) return;
101
+ for (const key in module) {
102
+ if (key[0] === "_" || expected.has(key)) continue;
103
+ const values = [...expected.values()];
104
+ const hint = hint_for_supported_files(key, file?.slice(file.lastIndexOf("."))) ?? `valid exports are ${values.join(", ")}, or anything with a '_' prefix`;
105
+ throw new Error(`Invalid export '${key}'${file ? ` in ${file}` : ""} (${hint})`);
106
+ }
107
+ }
108
+ return validate;
109
+ }
110
+ function hint_for_supported_files(key, ext = ".js") {
111
+ const supported_files = [];
112
+ if (valid_layout_exports.has(key)) {
113
+ supported_files.push(`+layout${ext}`);
114
+ }
115
+ if (valid_page_exports.has(key)) {
116
+ supported_files.push(`+page${ext}`);
117
+ }
118
+ if (valid_layout_server_exports.has(key)) {
119
+ supported_files.push(`+layout.server${ext}`);
120
+ }
121
+ if (valid_page_server_exports.has(key)) {
122
+ supported_files.push(`+page.server${ext}`);
123
+ }
124
+ if (valid_server_exports.has(key)) {
125
+ supported_files.push(`+server${ext}`);
126
+ }
127
+ if (supported_files.length > 0) {
128
+ return `'${key}' is a valid export in ${supported_files.slice(0, -1).join(", ")}${supported_files.length > 1 ? " or " : ""}${supported_files.at(-1)}`;
129
+ }
130
+ }
131
+ const valid_layout_exports = /* @__PURE__ */ new Set([
132
+ "load",
133
+ "prerender",
134
+ "csr",
135
+ "ssr",
136
+ "trailingSlash",
137
+ "config"
138
+ ]);
139
+ const valid_page_exports = /* @__PURE__ */ new Set([...valid_layout_exports, "entries"]);
140
+ const valid_layout_server_exports = /* @__PURE__ */ new Set([...valid_layout_exports]);
141
+ const valid_page_server_exports = /* @__PURE__ */ new Set([...valid_layout_server_exports, "actions", "entries"]);
142
+ const valid_server_exports = /* @__PURE__ */ new Set([
143
+ "GET",
144
+ "POST",
145
+ "PATCH",
146
+ "PUT",
147
+ "DELETE",
148
+ "OPTIONS",
149
+ "HEAD",
150
+ "fallback",
151
+ "prerender",
152
+ "trailingSlash",
153
+ "config",
154
+ "entries"
155
+ ]);
156
+ const validate_layout_exports = validator(valid_layout_exports);
157
+ const validate_page_exports = validator(valid_page_exports);
158
+ const validate_layout_server_exports = validator(valid_layout_server_exports);
159
+ const validate_page_server_exports = validator(valid_page_server_exports);
160
+ const validate_server_exports = validator(valid_server_exports);
161
+ export {
162
+ SCHEME as S,
163
+ decode_params as a,
164
+ validate_layout_exports as b,
165
+ validate_page_server_exports as c,
166
+ disable_search as d,
167
+ validate_page_exports as e,
168
+ decode_pathname as f,
169
+ validate_server_exports as g,
170
+ make_trackable as m,
171
+ normalize_path as n,
172
+ resolve as r,
173
+ validate_layout_server_exports as v
174
+ };
@@ -0,0 +1,4 @@
1
+ const BROWSER = false;
2
+ export {
3
+ BROWSER as B
4
+ };
@@ -0,0 +1,59 @@
1
+ import { n as noop, m as safe_not_equal } from "./equality.js";
2
+ import "clsx";
3
+ const subscriber_queue = [];
4
+ function readable(value, start) {
5
+ return {
6
+ subscribe: writable(value, start).subscribe
7
+ };
8
+ }
9
+ function writable(value, start = noop) {
10
+ let stop = null;
11
+ const subscribers = /* @__PURE__ */ new Set();
12
+ function set(new_value) {
13
+ if (safe_not_equal(value, new_value)) {
14
+ value = new_value;
15
+ if (stop) {
16
+ const run_queue = !subscriber_queue.length;
17
+ for (const subscriber of subscribers) {
18
+ subscriber[1]();
19
+ subscriber_queue.push(subscriber, value);
20
+ }
21
+ if (run_queue) {
22
+ for (let i = 0; i < subscriber_queue.length; i += 2) {
23
+ subscriber_queue[i][0](subscriber_queue[i + 1]);
24
+ }
25
+ subscriber_queue.length = 0;
26
+ }
27
+ }
28
+ }
29
+ }
30
+ function update(fn) {
31
+ set(fn(
32
+ /** @type {T} */
33
+ value
34
+ ));
35
+ }
36
+ function subscribe(run, invalidate = noop) {
37
+ const subscriber = [run, invalidate];
38
+ subscribers.add(subscriber);
39
+ if (subscribers.size === 1) {
40
+ stop = start(set, update) || noop;
41
+ }
42
+ run(
43
+ /** @type {T} */
44
+ value
45
+ );
46
+ return () => {
47
+ subscribers.delete(subscriber);
48
+ if (subscribers.size === 0 && stop) {
49
+ stop();
50
+ stop = null;
51
+ }
52
+ };
53
+ }
54
+ return { set, update, subscribe };
55
+ }
56
+ export {
57
+ readable as r,
58
+ writable as w
59
+ };