@amoa/casting 0.1.5 → 0.1.6

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 (320) hide show
  1. package/dist/export/index.js +9 -9
  2. package/dist/form/buttons/index.js +2 -2
  3. package/dist/form/caption/index.js +2 -2
  4. package/dist/form/description/index.js +2 -2
  5. package/dist/form/email/index.js +3 -3
  6. package/dist/form/index.js +4 -4
  7. package/dist/form/inputs/index.js +2 -2
  8. package/dist/form/password/index.js +3 -3
  9. package/dist/index.css +33 -1647
  10. package/dist/waiter/index.js +11 -13
  11. package/package.json +4 -3
  12. package/dist/_virtual/_commonjsHelpers.js +0 -5
  13. package/dist/_virtual/_interop_require_default.js +0 -3
  14. package/dist/_virtual/_interop_require_wildcard.js +0 -3
  15. package/dist/_virtual/action-async-storage-instance.js +0 -3
  16. package/dist/_virtual/action-async-storage.external.js +0 -3
  17. package/dist/_virtual/add-base-path.js +0 -3
  18. package/dist/_virtual/add-locale.js +0 -3
  19. package/dist/_virtual/add-locale2.js +0 -3
  20. package/dist/_virtual/add-path-prefix.js +0 -3
  21. package/dist/_virtual/app-paths.js +0 -3
  22. package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
  23. package/dist/_virtual/app-router-headers.js +0 -3
  24. package/dist/_virtual/app.js +0 -3
  25. package/dist/_virtual/async-local-storage.js +0 -3
  26. package/dist/_virtual/bailout-to-csr.js +0 -3
  27. package/dist/_virtual/boundary-constants.js +0 -3
  28. package/dist/_virtual/constants.js +0 -3
  29. package/dist/_virtual/deployment-id.js +0 -3
  30. package/dist/_virtual/detect-domain-locale.js +0 -3
  31. package/dist/_virtual/detect-domain-locale2.js +0 -3
  32. package/dist/_virtual/dynamic-rendering-utils.js +0 -3
  33. package/dist/_virtual/dynamic-rendering.js +0 -3
  34. package/dist/_virtual/ensure-leading-slash.js +0 -3
  35. package/dist/_virtual/error-once.js +0 -3
  36. package/dist/_virtual/escape-regexp.js +0 -3
  37. package/dist/_virtual/find-closest-quality.js +0 -3
  38. package/dist/_virtual/forbidden.js +0 -3
  39. package/dist/_virtual/format-url.js +0 -3
  40. package/dist/_virtual/get-domain-locale.js +0 -3
  41. package/dist/_virtual/get-dynamic-param.js +0 -3
  42. package/dist/_virtual/get-img-props.js +0 -3
  43. package/dist/_virtual/get-segment-param.js +0 -3
  44. package/dist/_virtual/has-base-path.js +0 -3
  45. package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
  46. package/dist/_virtual/head.js +0 -3
  47. package/dist/_virtual/hooks-client-context.shared-runtime.js +0 -3
  48. package/dist/_virtual/hooks-server-context.js +0 -3
  49. package/dist/_virtual/http-access-fallback.js +0 -3
  50. package/dist/_virtual/image-blur-svg.js +0 -3
  51. package/dist/_virtual/image-component.js +0 -3
  52. package/dist/_virtual/image-config-context.shared-runtime.js +0 -3
  53. package/dist/_virtual/image-config.js +0 -3
  54. package/dist/_virtual/image-external.js +0 -3
  55. package/dist/_virtual/image-loader.js +0 -3
  56. package/dist/_virtual/image.js +0 -7
  57. package/dist/_virtual/index.js +0 -3
  58. package/dist/_virtual/index2.js +0 -3
  59. package/dist/_virtual/index3.js +0 -3
  60. package/dist/_virtual/interception-prefix-from-param-type.js +0 -3
  61. package/dist/_virtual/interception-routes.js +0 -3
  62. package/dist/_virtual/interpolate-as.js +0 -3
  63. package/dist/_virtual/invariant-error.js +0 -3
  64. package/dist/_virtual/is-dynamic.js +0 -3
  65. package/dist/_virtual/is-local-url.js +0 -3
  66. package/dist/_virtual/is-next-router-error.js +0 -3
  67. package/dist/_virtual/is-postpone.js +0 -3
  68. package/dist/_virtual/jsx-runtime.js +0 -5
  69. package/dist/_virtual/jsx-runtime2.js +0 -3
  70. package/dist/_virtual/link.js +0 -7
  71. package/dist/_virtual/link2.js +0 -3
  72. package/dist/_virtual/match-local-pattern.js +0 -3
  73. package/dist/_virtual/match-remote-pattern.js +0 -3
  74. package/dist/_virtual/navigation.js +0 -3
  75. package/dist/_virtual/navigation.react-server.js +0 -3
  76. package/dist/_virtual/navigation2.js +0 -3
  77. package/dist/_virtual/normalize-locale-path.js +0 -3
  78. package/dist/_virtual/normalize-locale-path2.js +0 -3
  79. package/dist/_virtual/normalize-trailing-slash.js +0 -3
  80. package/dist/_virtual/not-found.js +0 -3
  81. package/dist/_virtual/omit.js +0 -3
  82. package/dist/_virtual/parse-loader-tree.js +0 -3
  83. package/dist/_virtual/parse-path.js +0 -3
  84. package/dist/_virtual/path-has-prefix.js +0 -3
  85. package/dist/_virtual/querystring.js +0 -3
  86. package/dist/_virtual/react-jsx-runtime.development.js +0 -3
  87. package/dist/_virtual/react-jsx-runtime.production.js +0 -3
  88. package/dist/_virtual/readonly-url-search-params.js +0 -3
  89. package/dist/_virtual/redirect-error.js +0 -3
  90. package/dist/_virtual/redirect-status-code.js +0 -3
  91. package/dist/_virtual/redirect.js +0 -3
  92. package/dist/_virtual/remove-trailing-slash.js +0 -3
  93. package/dist/_virtual/request-idle-callback.js +0 -3
  94. package/dist/_virtual/resolve-href.js +0 -3
  95. package/dist/_virtual/resolve-param-value.js +0 -3
  96. package/dist/_virtual/route-match-utils.js +0 -3
  97. package/dist/_virtual/route-matcher.js +0 -3
  98. package/dist/_virtual/route-pattern-normalizer.js +0 -3
  99. package/dist/_virtual/route-regex.js +0 -3
  100. package/dist/_virtual/router-context.shared-runtime.js +0 -3
  101. package/dist/_virtual/scheduler.js +0 -3
  102. package/dist/_virtual/segment.js +0 -3
  103. package/dist/_virtual/server-inserted-html.shared-runtime.js +0 -3
  104. package/dist/_virtual/side-effect.js +0 -3
  105. package/dist/_virtual/sorted-routes.js +0 -3
  106. package/dist/_virtual/static-generation-bailout.js +0 -3
  107. package/dist/_virtual/unauthorized.js +0 -3
  108. package/dist/_virtual/unrecognized-action-error.js +0 -3
  109. package/dist/_virtual/unstable-rethrow.browser.js +0 -3
  110. package/dist/_virtual/unstable-rethrow.js +0 -3
  111. package/dist/_virtual/unstable-rethrow.server.js +0 -3
  112. package/dist/_virtual/use-intersection.js +0 -3
  113. package/dist/_virtual/use-merged-ref.js +0 -3
  114. package/dist/_virtual/utils.js +0 -3
  115. package/dist/_virtual/warn-once.js +0 -3
  116. package/dist/_virtual/work-async-storage-instance.js +0 -3
  117. package/dist/_virtual/work-async-storage.external.js +0 -3
  118. package/dist/_virtual/work-unit-async-storage-instance.js +0 -3
  119. package/dist/_virtual/work-unit-async-storage.external.js +0 -3
  120. package/dist/config/config.json.js +0 -37
  121. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -16
  122. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -48
  123. package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
  124. package/dist/node_modules/next/dist/client/add-locale.js +0 -39
  125. package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -112
  126. package/dist/node_modules/next/dist/client/components/forbidden.js +0 -62
  127. package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -50
  128. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -77
  129. package/dist/node_modules/next/dist/client/components/is-next-router-error.js +0 -37
  130. package/dist/node_modules/next/dist/client/components/navigation.js +0 -198
  131. package/dist/node_modules/next/dist/client/components/navigation.react-server.js +0 -80
  132. package/dist/node_modules/next/dist/client/components/not-found.js +0 -56
  133. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -58
  134. package/dist/node_modules/next/dist/client/components/redirect-error.js +0 -60
  135. package/dist/node_modules/next/dist/client/components/redirect-status-code.js +0 -36
  136. package/dist/node_modules/next/dist/client/components/redirect.js +0 -98
  137. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -50
  138. package/dist/node_modules/next/dist/client/components/unauthorized.js +0 -63
  139. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -47
  140. package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -42
  141. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +0 -41
  142. package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -50
  143. package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -36
  144. package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
  145. package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
  146. package/dist/node_modules/next/dist/client/image-component.js +0 -343
  147. package/dist/node_modules/next/dist/client/link.js +0 -466
  148. package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
  149. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -54
  150. package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
  151. package/dist/node_modules/next/dist/client/resolve-href.js +0 -124
  152. package/dist/node_modules/next/dist/client/use-intersection.js +0 -126
  153. package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -79
  154. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -439
  155. package/dist/node_modules/next/dist/compiled/picomatch/index.js +0 -1662
  156. package/dist/node_modules/next/dist/lib/constants.js +0 -339
  157. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -41
  158. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -114
  159. package/dist/node_modules/next/dist/lib/scheduler.js +0 -69
  160. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -26
  161. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -25
  162. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -83
  163. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -804
  164. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -26
  165. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -25
  166. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -26
  167. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -221
  168. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -90
  169. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -27
  170. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -56
  171. package/dist/node_modules/next/dist/shared/lib/deployment-id.js +0 -41
  172. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -32
  173. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +0 -30
  174. package/dist/node_modules/next/dist/shared/lib/get-img-props.js +0 -617
  175. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -31
  176. package/dist/node_modules/next/dist/shared/lib/head.js +0 -177
  177. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -65
  178. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -36
  179. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -66
  180. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +0 -42
  181. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +0 -33
  182. package/dist/node_modules/next/dist/shared/lib/image-config.js +0 -56
  183. package/dist/node_modules/next/dist/shared/lib/image-external.js +0 -60
  184. package/dist/node_modules/next/dist/shared/lib/image-loader.js +0 -119
  185. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -29
  186. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -43
  187. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +0 -54
  188. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +0 -71
  189. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -31
  190. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +0 -130
  191. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -41
  192. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -36
  193. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
  194. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -88
  195. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -176
  196. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -89
  197. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -38
  198. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +0 -44
  199. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -109
  200. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -71
  201. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -38
  202. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -39
  203. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -32
  204. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -46
  205. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -46
  206. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -34
  207. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -82
  208. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -34
  209. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +0 -128
  210. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -122
  211. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -61
  212. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -312
  213. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -246
  214. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -31
  215. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -102
  216. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -44
  217. package/dist/node_modules/next/dist/shared/lib/side-effect.js +0 -78
  218. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -33
  219. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -33
  220. package/dist/node_modules/next/dist/shared/lib/utils.js +0 -192
  221. package/dist/node_modules/next/image.js +0 -13
  222. package/dist/node_modules/next/link.js +0 -13
  223. package/dist/node_modules/next/navigation.js +0 -13
  224. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -240
  225. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
  226. package/dist/node_modules/react/jsx-runtime.js +0 -19
  227. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -26
  228. package/dist/packages/carving/src/carving.js +0 -34
  229. package/dist/packages/carving/src/condo.js +0 -17
  230. package/dist/packages/carving/src/logos/amoa.js +0 -17
  231. package/dist/packages/forge/src/classes.js +0 -17
  232. package/dist/packages/forge/src/dates/date.js +0 -8
  233. package/dist/packages/forge/src/dates/day.js +0 -7
  234. package/dist/packages/forge/src/dates/index.js +0 -31
  235. package/dist/packages/forge/src/dates/month.js +0 -35
  236. package/dist/packages/forge/src/dates/year.js +0 -16
  237. package/dist/packages/forge/src/fetcher/index.js +0 -37
  238. package/dist/packages/forge/src/fetcher/querystring.js +0 -9
  239. package/dist/packages/forge/src/files.js +0 -17
  240. package/dist/packages/forge/src/numbers/index.js +0 -5
  241. package/dist/packages/forge/src/strings/characters.js +0 -3
  242. package/dist/packages/forge/src/strings/diacritics.js +0 -261
  243. package/dist/packages/forge/src/strings/index.js +0 -24
  244. package/dist/packages/hooks/src/use-debounce.js +0 -19
  245. package/dist/packages/hooks/src/use-tooltip.js +0 -27
  246. package/dist/packages/ingots/src/address/api/form.js +0 -12
  247. package/dist/packages/ingots/src/address/config.json.js +0 -16
  248. package/dist/packages/ingots/src/address/index.js +0 -115
  249. package/dist/packages/ingots/src/address/index.module.css.js +0 -3
  250. package/dist/packages/ingots/src/address/service.js +0 -41
  251. package/dist/packages/ingots/src/backdrop/index.js +0 -18
  252. package/dist/packages/ingots/src/backdrop/index.module.css.js +0 -3
  253. package/dist/packages/ingots/src/button/index.js +0 -56
  254. package/dist/packages/ingots/src/button/index.module.css.js +0 -3
  255. package/dist/packages/ingots/src/checkbox/index.js +0 -47
  256. package/dist/packages/ingots/src/checkbox/index.module.css.js +0 -3
  257. package/dist/packages/ingots/src/date/erase/index.js +0 -22
  258. package/dist/packages/ingots/src/date/erase/index.module.css.js +0 -3
  259. package/dist/packages/ingots/src/date/input/index.js +0 -113
  260. package/dist/packages/ingots/src/date/input/index.module.css.js +0 -3
  261. package/dist/packages/ingots/src/date/picker/day/index.js +0 -35
  262. package/dist/packages/ingots/src/date/picker/day/index.module.css.js +0 -3
  263. package/dist/packages/ingots/src/date/picker/days/index.js +0 -59
  264. package/dist/packages/ingots/src/date/picker/days/index.module.css.js +0 -3
  265. package/dist/packages/ingots/src/date/picker/handle/index.js +0 -40
  266. package/dist/packages/ingots/src/date/picker/handle/index.module.css.js +0 -3
  267. package/dist/packages/ingots/src/date/picker/index.js +0 -154
  268. package/dist/packages/ingots/src/date/picker/index.module.css.js +0 -3
  269. package/dist/packages/ingots/src/date/picker/menu/index.js +0 -32
  270. package/dist/packages/ingots/src/date/picker/menu/index.module.css.js +0 -3
  271. package/dist/packages/ingots/src/date/picker/menu/item.js +0 -30
  272. package/dist/packages/ingots/src/date/picker/menu/item.module.css.js +0 -3
  273. package/dist/packages/ingots/src/file/api/index.js +0 -14
  274. package/dist/packages/ingots/src/file/card/index.js +0 -65
  275. package/dist/packages/ingots/src/file/card/index.module.css.js +0 -3
  276. package/dist/packages/ingots/src/file/index.js +0 -34
  277. package/dist/packages/ingots/src/file/index.module.css.js +0 -3
  278. package/dist/packages/ingots/src/file/input/index.js +0 -261
  279. package/dist/packages/ingots/src/file/input/index.module.css.js +0 -3
  280. package/dist/packages/ingots/src/input/index.js +0 -75
  281. package/dist/packages/ingots/src/input/src/validation/index.js +0 -3
  282. package/dist/packages/ingots/src/loader/index.js +0 -23
  283. package/dist/packages/ingots/src/loader/index.module.css.js +0 -3
  284. package/dist/packages/ingots/src/loader/variants/spinner/index.js +0 -31
  285. package/dist/packages/ingots/src/loader/variants/spinner/index.module.css.js +0 -3
  286. package/dist/packages/ingots/src/select/card/index.js +0 -33
  287. package/dist/packages/ingots/src/select/card/index.module.css.js +0 -3
  288. package/dist/packages/ingots/src/select/category/index.js +0 -13
  289. package/dist/packages/ingots/src/select/category/index.module.css.js +0 -3
  290. package/dist/packages/ingots/src/select/content/index.js +0 -46
  291. package/dist/packages/ingots/src/select/index.js +0 -155
  292. package/dist/packages/ingots/src/select/index.module.css.js +0 -3
  293. package/dist/packages/ingots/src/select/option/index.js +0 -35
  294. package/dist/packages/ingots/src/select/option/index.module.css.js +0 -3
  295. package/dist/packages/ingots/src/select/options/index.js +0 -59
  296. package/dist/packages/ingots/src/select/options/index.module.css.js +0 -3
  297. package/dist/packages/ingots/src/snackbar/context.js +0 -9
  298. package/dist/packages/ingots/src/tag/index.js +0 -16
  299. package/dist/packages/ingots/src/tag/index.module.css.js +0 -3
  300. package/dist/packages/ingots/src/text/index.js +0 -92
  301. package/dist/packages/ingots/src/text/index.module.css.js +0 -3
  302. package/dist/packages/ingots/src/textarea/index.js +0 -62
  303. package/dist/packages/ingots/src/textarea/index.module.css.js +0 -3
  304. package/dist/packages/ingots/src/toggle/index.js +0 -43
  305. package/dist/packages/ingots/src/toggle/index.module.css.js +0 -3
  306. package/dist/packages/runes/src/icon.js +0 -16
  307. package/dist/packages/runes/src/paths/alert.js +0 -18
  308. package/dist/packages/runes/src/paths/arrow/path.js +0 -18
  309. package/dist/packages/runes/src/paths/calendar.js +0 -18
  310. package/dist/packages/runes/src/paths/check/fill.js +0 -18
  311. package/dist/packages/runes/src/paths/check/regular.js +0 -18
  312. package/dist/packages/runes/src/paths/chevron/down.js +0 -18
  313. package/dist/packages/runes/src/paths/chevron/left.js +0 -18
  314. package/dist/packages/runes/src/paths/chevron/right.js +0 -18
  315. package/dist/packages/runes/src/paths/click.js +0 -18
  316. package/dist/packages/runes/src/paths/cross/regular.js +0 -16
  317. package/dist/packages/runes/src/paths/download.js +0 -18
  318. package/dist/packages/runes/src/paths/file.js +0 -18
  319. package/dist/packages/runes/src/paths/link.js +0 -23
  320. package/dist/packages/wares/src/authentication/index.js +0 -11
@@ -1,46 +0,0 @@
1
- import { __exports as parsePath } from '../../../../../../../_virtual/parse-path.js';
2
-
3
- /**
4
- * Given a path this function will find the pathname, query and hash and return
5
- * them. This is useful to parse full paths on the client side.
6
- * @param path A path to parse e.g. /foo/bar?id=1#hash
7
- */
8
-
9
- var hasRequiredParsePath;
10
-
11
- function requireParsePath () {
12
- if (hasRequiredParsePath) return parsePath;
13
- hasRequiredParsePath = 1;
14
- (function (exports$1) {
15
-
16
- Object.defineProperty(exports$1, "__esModule", {
17
- value: true
18
- });
19
- Object.defineProperty(exports$1, "parsePath", {
20
- enumerable: true,
21
- get: function () {
22
- return parsePath;
23
- }
24
- });
25
- function parsePath(path) {
26
- const hashIndex = path.indexOf('#');
27
- const queryIndex = path.indexOf('?');
28
- const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
29
- if (hasQuery || hashIndex > -1) {
30
- return {
31
- pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
32
- query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : undefined) : '',
33
- hash: hashIndex > -1 ? path.slice(hashIndex) : ''
34
- };
35
- }
36
- return {
37
- pathname: path,
38
- query: '',
39
- hash: ''
40
- };
41
- }
42
- } (parsePath));
43
- return parsePath;
44
- }
45
-
46
- export { requireParsePath as __require };
@@ -1,34 +0,0 @@
1
- import { __exports as pathHasPrefix } from '../../../../../../../_virtual/path-has-prefix.js';
2
- import { __require as requireParsePath } from './parse-path.js';
3
-
4
- var hasRequiredPathHasPrefix;
5
-
6
- function requirePathHasPrefix () {
7
- if (hasRequiredPathHasPrefix) return pathHasPrefix;
8
- hasRequiredPathHasPrefix = 1;
9
- (function (exports$1) {
10
-
11
- Object.defineProperty(exports$1, "__esModule", {
12
- value: true
13
- });
14
- Object.defineProperty(exports$1, "pathHasPrefix", {
15
- enumerable: true,
16
- get: function () {
17
- return pathHasPrefix;
18
- }
19
- });
20
- const _parsepath = requireParsePath();
21
- function pathHasPrefix(path, prefix) {
22
- if (typeof path !== 'string') {
23
- return false;
24
- }
25
- const {
26
- pathname
27
- } = (0, _parsepath.parsePath)(path);
28
- return pathname === prefix || pathname.startsWith(prefix + '/');
29
- }
30
- } (pathHasPrefix));
31
- return pathHasPrefix;
32
- }
33
-
34
- export { requirePathHasPrefix as __require };
@@ -1,82 +0,0 @@
1
- import { __exports as querystring } from '../../../../../../../_virtual/querystring.js';
2
-
3
- var hasRequiredQuerystring;
4
-
5
- function requireQuerystring () {
6
- if (hasRequiredQuerystring) return querystring;
7
- hasRequiredQuerystring = 1;
8
- (function (exports$1) {
9
-
10
- Object.defineProperty(exports$1, "__esModule", {
11
- value: true
12
- });
13
- function _export(target, all) {
14
- for (var name in all) Object.defineProperty(target, name, {
15
- enumerable: true,
16
- get: all[name]
17
- });
18
- }
19
- _export(exports$1, {
20
- assign: function () {
21
- return assign;
22
- },
23
- searchParamsToUrlQuery: function () {
24
- return searchParamsToUrlQuery;
25
- },
26
- urlQueryToSearchParams: function () {
27
- return urlQueryToSearchParams;
28
- }
29
- });
30
- function searchParamsToUrlQuery(searchParams) {
31
- const query = {};
32
- for (const [key, value] of searchParams.entries()) {
33
- const existing = query[key];
34
- if (typeof existing === 'undefined') {
35
- query[key] = value;
36
- } else if (Array.isArray(existing)) {
37
- existing.push(value);
38
- } else {
39
- query[key] = [existing, value];
40
- }
41
- }
42
- return query;
43
- }
44
- function stringifyUrlQueryParam(param) {
45
- if (typeof param === 'string') {
46
- return param;
47
- }
48
- if (typeof param === 'number' && !isNaN(param) || typeof param === 'boolean') {
49
- return String(param);
50
- } else {
51
- return '';
52
- }
53
- }
54
- function urlQueryToSearchParams(query) {
55
- const searchParams = new URLSearchParams();
56
- for (const [key, value] of Object.entries(query)) {
57
- if (Array.isArray(value)) {
58
- for (const item of value) {
59
- searchParams.append(key, stringifyUrlQueryParam(item));
60
- }
61
- } else {
62
- searchParams.set(key, stringifyUrlQueryParam(value));
63
- }
64
- }
65
- return searchParams;
66
- }
67
- function assign(target, ...searchParamsList) {
68
- for (const searchParams of searchParamsList) {
69
- for (const key of searchParams.keys()) {
70
- target.delete(key);
71
- }
72
- for (const [key, value] of searchParams.entries()) {
73
- target.append(key, value);
74
- }
75
- }
76
- return target;
77
- }
78
- } (querystring));
79
- return querystring;
80
- }
81
-
82
- export { requireQuerystring as __require };
@@ -1,34 +0,0 @@
1
- import { __exports as removeTrailingSlash } from '../../../../../../../_virtual/remove-trailing-slash.js';
2
-
3
- /**
4
- * Removes the trailing slash for a given route or page path. Preserves the
5
- * root page. Examples:
6
- * - `/foo/bar/` -> `/foo/bar`
7
- * - `/foo/bar` -> `/foo/bar`
8
- * - `/` -> `/`
9
- */
10
-
11
- var hasRequiredRemoveTrailingSlash;
12
-
13
- function requireRemoveTrailingSlash () {
14
- if (hasRequiredRemoveTrailingSlash) return removeTrailingSlash;
15
- hasRequiredRemoveTrailingSlash = 1;
16
- (function (exports$1) {
17
-
18
- Object.defineProperty(exports$1, "__esModule", {
19
- value: true
20
- });
21
- Object.defineProperty(exports$1, "removeTrailingSlash", {
22
- enumerable: true,
23
- get: function () {
24
- return removeTrailingSlash;
25
- }
26
- });
27
- function removeTrailingSlash(route) {
28
- return route.replace(/\/$/, '') || '/';
29
- }
30
- } (removeTrailingSlash));
31
- return removeTrailingSlash;
32
- }
33
-
34
- export { requireRemoveTrailingSlash as __require };
@@ -1,128 +0,0 @@
1
- import { __exports as resolveParamValue } from '../../../../../../../_virtual/resolve-param-value.js';
2
- import { __require as requireInvariantError } from '../../invariant-error.js';
3
- import { __require as requireInterceptionPrefixFromParamType } from './interception-prefix-from-param-type.js';
4
-
5
- var hasRequiredResolveParamValue;
6
-
7
- function requireResolveParamValue () {
8
- if (hasRequiredResolveParamValue) return resolveParamValue;
9
- hasRequiredResolveParamValue = 1;
10
- (function (exports$1) {
11
-
12
- Object.defineProperty(exports$1, "__esModule", {
13
- value: true
14
- });
15
- Object.defineProperty(exports$1, "resolveParamValue", {
16
- enumerable: true,
17
- get: function () {
18
- return resolveParamValue;
19
- }
20
- });
21
- const _invarianterror = requireInvariantError();
22
- const _interceptionprefixfromparamtype = requireInterceptionPrefixFromParamType();
23
- /**
24
- * Extracts the param value from a path segment, handling interception markers
25
- * based on the expected param type.
26
- *
27
- * @param pathSegment - The path segment to extract the value from
28
- * @param params - The current params object for resolving dynamic param references
29
- * @param paramType - The expected param type which may include interception marker info
30
- * @returns The extracted param value
31
- */
32
- function getParamValueFromSegment(pathSegment, params, paramType) {
33
- // If the segment is dynamic, resolve it from the params object
34
- if (pathSegment.type === 'dynamic') {
35
- return params[pathSegment.param.paramName];
36
- }
37
- // If the paramType indicates this is an intercepted param, strip the marker
38
- // that matches the interception marker in the param type
39
- const interceptionPrefix = (0, _interceptionprefixfromparamtype.interceptionPrefixFromParamType)(paramType);
40
- if (interceptionPrefix === pathSegment.interceptionMarker) {
41
- return pathSegment.name.replace(pathSegment.interceptionMarker, '');
42
- }
43
- // For static segments, use the name
44
- return pathSegment.name;
45
- }
46
- function resolveParamValue(paramName, paramType, depth, route, params) {
47
- switch (paramType) {
48
- case 'catchall':
49
- case 'optional-catchall':
50
- case 'catchall-intercepted-(..)(..)':
51
- case 'catchall-intercepted-(.)':
52
- case 'catchall-intercepted-(..)':
53
- case 'catchall-intercepted-(...)':
54
- // For catchall routes, derive from pathname using depth to determine
55
- // which segments to use
56
- const processedSegments = [];
57
- // Process segments to handle any embedded dynamic params
58
- for (let index = depth; index < route.segments.length; index++) {
59
- const pathSegment = route.segments[index];
60
- if (pathSegment.type === 'static') {
61
- let value = pathSegment.name;
62
- // For intercepted catch-all params, strip the marker from the first segment
63
- const interceptionPrefix = (0, _interceptionprefixfromparamtype.interceptionPrefixFromParamType)(paramType);
64
- if (interceptionPrefix && index === depth && interceptionPrefix === pathSegment.interceptionMarker) {
65
- // Strip the interception marker from the value
66
- value = value.replace(pathSegment.interceptionMarker, '');
67
- }
68
- processedSegments.push(value);
69
- } else {
70
- // If the segment is a param placeholder, check if we have its value
71
- if (!params.hasOwnProperty(pathSegment.param.paramName)) {
72
- // If the segment is an optional catchall, we can break out of the
73
- // loop because it's optional!
74
- if (pathSegment.param.paramType === 'optional-catchall') {
75
- break;
76
- }
77
- // Unknown param placeholder in pathname - can't derive full value
78
- return undefined;
79
- }
80
- // If the segment matches a param, use the param value
81
- // We don't encode values here as that's handled during retrieval.
82
- const paramValue = params[pathSegment.param.paramName];
83
- if (Array.isArray(paramValue)) {
84
- processedSegments.push(...paramValue);
85
- } else {
86
- processedSegments.push(paramValue);
87
- }
88
- }
89
- }
90
- if (processedSegments.length > 0) {
91
- return processedSegments;
92
- } else if (paramType === 'optional-catchall') {
93
- return undefined;
94
- } else {
95
- // We shouldn't be able to match a catchall segment without any path
96
- // segments if it's not an optional catchall
97
- throw Object.defineProperty(new _invarianterror.InvariantError(`Unexpected empty path segments match for a route "${route.pathname}" with param "${paramName}" of type "${paramType}"`), "__NEXT_ERROR_CODE", {
98
- value: "E931",
99
- enumerable: false,
100
- configurable: true
101
- });
102
- }
103
- case 'dynamic':
104
- case 'dynamic-intercepted-(..)(..)':
105
- case 'dynamic-intercepted-(.)':
106
- case 'dynamic-intercepted-(..)':
107
- case 'dynamic-intercepted-(...)':
108
- // For regular dynamic parameters, take the segment at this depth
109
- if (depth < route.segments.length) {
110
- const pathSegment = route.segments[depth];
111
- // Check if the segment at this depth is a placeholder for an unknown param
112
- if (pathSegment.type === 'dynamic' && !params.hasOwnProperty(pathSegment.param.paramName)) {
113
- // The segment is a placeholder like [category] and we don't have the value
114
- return undefined;
115
- }
116
- // If the segment matches a param, use the param value from params object
117
- // Otherwise it's a static segment, just use it directly
118
- // We don't encode values here as that's handled during retrieval
119
- return getParamValueFromSegment(pathSegment, params, paramType);
120
- }
121
- return undefined;
122
- }
123
- }
124
- } (resolveParamValue));
125
- return resolveParamValue;
126
- }
127
-
128
- export { requireResolveParamValue as __require };
@@ -1,122 +0,0 @@
1
- import { __exports as routeMatchUtils } from '../../../../../../../_virtual/route-match-utils.js';
2
- import { __require as requirePathToRegexp } from '../../../../compiled/path-to-regexp/index.js';
3
- import { __require as requireRoutePatternNormalizer } from '../../../../lib/route-pattern-normalizer.js';
4
-
5
- /**
6
- * Client-safe utilities for route matching that don't import server-side
7
- * utilities to avoid bundling issues with Turbopack
8
- */
9
-
10
- var hasRequiredRouteMatchUtils;
11
-
12
- function requireRouteMatchUtils () {
13
- if (hasRequiredRouteMatchUtils) return routeMatchUtils;
14
- hasRequiredRouteMatchUtils = 1;
15
- (function (exports$1) {
16
-
17
- Object.defineProperty(exports$1, "__esModule", {
18
- value: true
19
- });
20
- function _export(target, all) {
21
- for (var name in all) Object.defineProperty(target, name, {
22
- enumerable: true,
23
- get: all[name]
24
- });
25
- }
26
- _export(exports$1, {
27
- safeCompile: function () {
28
- return safeCompile;
29
- },
30
- safePathToRegexp: function () {
31
- return safePathToRegexp;
32
- },
33
- safeRegexpToFunction: function () {
34
- return safeRegexpToFunction;
35
- },
36
- safeRouteMatcher: function () {
37
- return safeRouteMatcher;
38
- }
39
- });
40
- const _pathtoregexp = requirePathToRegexp();
41
- const _routepatternnormalizer = requireRoutePatternNormalizer();
42
- function safePathToRegexp(route, keys, options) {
43
- if (typeof route !== 'string') {
44
- return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
45
- }
46
- // Check if normalization is needed and cache the result
47
- const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
48
- const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
49
- try {
50
- return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
51
- } catch (error) {
52
- // Only try normalization if we haven't already normalized
53
- if (!needsNormalization) {
54
- try {
55
- const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
56
- return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
57
- } catch (retryError) {
58
- // If that doesn't work, fall back to original error
59
- throw error;
60
- }
61
- }
62
- throw error;
63
- }
64
- }
65
- function safeCompile(route, options) {
66
- // Check if normalization is needed and cache the result
67
- const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
68
- const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
69
- try {
70
- const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
71
- // If we normalized the route, wrap the compiler to strip separators from output
72
- // The normalization inserts _NEXTSEP_ as a literal string in the pattern to satisfy
73
- // path-to-regexp validation, but we don't want it in the final compiled URL
74
- if (needsNormalization) {
75
- return params => {
76
- return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
77
- };
78
- }
79
- return compiler;
80
- } catch (error) {
81
- // Only try normalization if we haven't already normalized
82
- if (!needsNormalization) {
83
- try {
84
- const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
85
- const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
86
- // Wrap the compiler to strip separators from output
87
- return params => {
88
- return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
89
- };
90
- } catch (retryError) {
91
- // If that doesn't work, fall back to original error
92
- throw error;
93
- }
94
- }
95
- throw error;
96
- }
97
- }
98
- function safeRegexpToFunction(regexp, keys) {
99
- const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
100
- return pathname => {
101
- const result = originalMatcher(pathname);
102
- if (!result) return false;
103
- // Clean parameters before returning
104
- return {
105
- ...result,
106
- params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
107
- };
108
- };
109
- }
110
- function safeRouteMatcher(matcherFn) {
111
- return pathname => {
112
- const result = matcherFn(pathname);
113
- if (!result) return false;
114
- // Clean parameters before returning
115
- return (0, _routepatternnormalizer.stripParameterSeparators)(result);
116
- };
117
- }
118
- } (routeMatchUtils));
119
- return routeMatchUtils;
120
- }
121
-
122
- export { requireRouteMatchUtils as __require };
@@ -1,61 +0,0 @@
1
- import { __exports as routeMatcher } from '../../../../../../../_virtual/route-matcher.js';
2
- import { __require as requireUtils } from '../../utils.js';
3
- import { __require as requireRouteMatchUtils } from './route-match-utils.js';
4
-
5
- var hasRequiredRouteMatcher;
6
-
7
- function requireRouteMatcher () {
8
- if (hasRequiredRouteMatcher) return routeMatcher;
9
- hasRequiredRouteMatcher = 1;
10
- (function (exports$1) {
11
-
12
- Object.defineProperty(exports$1, "__esModule", {
13
- value: true
14
- });
15
- Object.defineProperty(exports$1, "getRouteMatcher", {
16
- enumerable: true,
17
- get: function () {
18
- return getRouteMatcher;
19
- }
20
- });
21
- const _utils = requireUtils();
22
- const _routematchutils = requireRouteMatchUtils();
23
- function getRouteMatcher({
24
- re,
25
- groups
26
- }) {
27
- const rawMatcher = pathname => {
28
- const routeMatch = re.exec(pathname);
29
- if (!routeMatch) return false;
30
- const decode = param => {
31
- try {
32
- return decodeURIComponent(param);
33
- } catch {
34
- throw Object.defineProperty(new _utils.DecodeError('failed to decode param'), "__NEXT_ERROR_CODE", {
35
- value: "E528",
36
- enumerable: false,
37
- configurable: true
38
- });
39
- }
40
- };
41
- const params = {};
42
- for (const [key, group] of Object.entries(groups)) {
43
- const match = routeMatch[group.pos];
44
- if (match !== undefined) {
45
- if (group.repeat) {
46
- params[key] = match.split('/').map(entry => decode(entry));
47
- } else {
48
- params[key] = decode(match);
49
- }
50
- }
51
- }
52
- return params;
53
- };
54
- // Wrap with safe matcher to handle parameter cleaning
55
- return (0, _routematchutils.safeRouteMatcher)(rawMatcher);
56
- }
57
- } (routeMatcher));
58
- return routeMatcher;
59
- }
60
-
61
- export { requireRouteMatcher as __require };