one 1.1.298 → 1.1.300

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/dist/cjs/cleanUrl.js +1 -1
  2. package/dist/cjs/cleanUrl.js.map +1 -1
  3. package/dist/cjs/cleanUrl.native.js +1 -1
  4. package/dist/cjs/cleanUrl.native.js.map +1 -1
  5. package/dist/cjs/cli/runAndroid.js +34 -0
  6. package/dist/cjs/cli/runAndroid.js.map +6 -0
  7. package/dist/cjs/cli/runAndroid.native.js +39 -0
  8. package/dist/cjs/cli/runAndroid.native.js.map +6 -0
  9. package/dist/cjs/cli/runIos.js +34 -0
  10. package/dist/cjs/cli/runIos.js.map +6 -0
  11. package/dist/cjs/cli/runIos.native.js +39 -0
  12. package/dist/cjs/cli/runIos.native.js.map +6 -0
  13. package/dist/cjs/cli.js +23 -1
  14. package/dist/cjs/cli.js.map +1 -1
  15. package/dist/cjs/cli.native.js +25 -1
  16. package/dist/cjs/cli.native.js.map +2 -2
  17. package/dist/cjs/createHandleRequest.js +2 -2
  18. package/dist/cjs/createHandleRequest.js.map +1 -1
  19. package/dist/cjs/createHandleRequest.native.js +2 -2
  20. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  21. package/dist/cjs/vite/createFileSystemRouter.js +1 -1
  22. package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
  23. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  24. package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
  25. package/dist/cjs/vite/replaceLoader.js +7 -1
  26. package/dist/cjs/vite/replaceLoader.js.map +1 -1
  27. package/dist/cjs/vite/replaceLoader.native.js +7 -1
  28. package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
  29. package/dist/esm/Root.native.js +110 -104
  30. package/dist/esm/Root.native.js.map +6 -1
  31. package/dist/esm/Route.native.js +12 -10
  32. package/dist/esm/Route.native.js.map +6 -1
  33. package/dist/esm/cleanUrl.js +1 -1
  34. package/dist/esm/cleanUrl.js.map +1 -1
  35. package/dist/esm/cleanUrl.mjs +1 -1
  36. package/dist/esm/cleanUrl.mjs.map +1 -1
  37. package/dist/esm/cleanUrl.native.js +13 -14
  38. package/dist/esm/cleanUrl.native.js.map +6 -1
  39. package/dist/esm/cli/label-process.native.js +5 -4
  40. package/dist/esm/cli/label-process.native.js.map +6 -1
  41. package/dist/esm/cli/main.native.js +8 -13
  42. package/dist/esm/cli/main.native.js.map +6 -1
  43. package/dist/esm/cli/prebuild.native.js +5 -5
  44. package/dist/esm/cli/prebuild.native.js.map +6 -1
  45. package/dist/esm/cli/run.native.js +21 -28
  46. package/dist/esm/cli/run.native.js.map +6 -1
  47. package/dist/esm/cli/runAndroid.js +10 -0
  48. package/dist/esm/cli/runAndroid.js.map +6 -0
  49. package/dist/esm/cli/runAndroid.mjs +10 -0
  50. package/dist/esm/cli/runAndroid.mjs.map +1 -0
  51. package/dist/esm/cli/runAndroid.native.js +10 -0
  52. package/dist/esm/cli/runAndroid.native.js.map +6 -0
  53. package/dist/esm/cli/runIos.js +10 -0
  54. package/dist/esm/cli/runIos.js.map +6 -0
  55. package/dist/esm/cli/runIos.mjs +10 -0
  56. package/dist/esm/cli/runIos.mjs.map +1 -0
  57. package/dist/esm/cli/runIos.native.js +10 -0
  58. package/dist/esm/cli/runIos.native.js.map +6 -0
  59. package/dist/esm/cli.js +23 -1
  60. package/dist/esm/cli.js.map +1 -1
  61. package/dist/esm/cli.mjs +33 -1
  62. package/dist/esm/cli.mjs.map +1 -1
  63. package/dist/esm/cli.native.js +143 -148
  64. package/dist/esm/cli.native.js.map +6 -1
  65. package/dist/esm/clientLoaderResolver.native.js +9 -6
  66. package/dist/esm/clientLoaderResolver.native.js.map +6 -1
  67. package/dist/esm/config.native.js +12 -11
  68. package/dist/esm/config.native.js.map +6 -1
  69. package/dist/esm/constants.native.js +7 -5
  70. package/dist/esm/constants.native.js.map +6 -1
  71. package/dist/esm/createApp.native.js +13 -9
  72. package/dist/esm/createApp.native.js.map +6 -1
  73. package/dist/esm/createHandleRequest.js +2 -2
  74. package/dist/esm/createHandleRequest.js.map +1 -1
  75. package/dist/esm/createHandleRequest.mjs +2 -2
  76. package/dist/esm/createHandleRequest.mjs.map +1 -1
  77. package/dist/esm/createHandleRequest.native.js +57 -66
  78. package/dist/esm/createHandleRequest.native.js.map +6 -1
  79. package/dist/esm/createRoute.native.js +16 -16
  80. package/dist/esm/createRoute.native.js.map +6 -1
  81. package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
  82. package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
  83. package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
  84. package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
  85. package/dist/esm/fork/NavigationContainer.native.js +24 -31
  86. package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
  87. package/dist/esm/fork/createMemoryHistory.native.js +99 -115
  88. package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
  89. package/dist/esm/fork/extractPathFromURL.native.js +16 -15
  90. package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
  91. package/dist/esm/fork/findFocusedRoute.native.js +6 -5
  92. package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
  93. package/dist/esm/fork/getPathFromState.native.js +127 -140
  94. package/dist/esm/fork/getPathFromState.native.js.map +6 -1
  95. package/dist/esm/fork/getStateFromPath.native.js +292 -288
  96. package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
  97. package/dist/esm/fork/useLinking.native.js +70 -61
  98. package/dist/esm/fork/useLinking.native.js.map +6 -1
  99. package/dist/esm/fork/validatePathConfig.native.js +15 -9
  100. package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
  101. package/dist/esm/getLinkingConfig.native.js +11 -6
  102. package/dist/esm/getLinkingConfig.native.js.map +6 -1
  103. package/dist/esm/getReactNavigationConfig.native.js +28 -20
  104. package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
  105. package/dist/esm/getRoutes.native.js +249 -229
  106. package/dist/esm/getRoutes.native.js.map +6 -1
  107. package/dist/esm/getURL.native.js +4 -4
  108. package/dist/esm/getURL.native.js.map +6 -1
  109. package/dist/esm/head/Head.android.js +5 -3
  110. package/dist/esm/head/Head.android.js.map +6 -1
  111. package/dist/esm/head/Head.ios.js +144 -132
  112. package/dist/esm/head/Head.ios.js.map +6 -1
  113. package/dist/esm/head/Head.native.js +7 -7
  114. package/dist/esm/head/Head.native.js.map +6 -1
  115. package/dist/esm/head/HeadModule.native.js +6 -6
  116. package/dist/esm/head/HeadModule.native.js.map +6 -1
  117. package/dist/esm/head/index.native.js +2 -2
  118. package/dist/esm/head/index.native.js.map +6 -1
  119. package/dist/esm/head/types.native.js +1 -2
  120. package/dist/esm/head/types.native.js.map +6 -1
  121. package/dist/esm/head/url.native.js +10 -8
  122. package/dist/esm/head/url.native.js.map +6 -1
  123. package/dist/esm/hooks.native.js +53 -34
  124. package/dist/esm/hooks.native.js.map +6 -1
  125. package/dist/esm/imperative-api.native.js +9 -6
  126. package/dist/esm/imperative-api.native.js.map +6 -1
  127. package/dist/esm/import-mode/index.android.js +4 -3
  128. package/dist/esm/import-mode/index.android.js.map +6 -1
  129. package/dist/esm/import-mode/index.ios.js +4 -3
  130. package/dist/esm/import-mode/index.ios.js.map +6 -1
  131. package/dist/esm/import-mode/index.native.js +3 -1
  132. package/dist/esm/import-mode/index.native.js.map +6 -1
  133. package/dist/esm/index.native.js +65 -27
  134. package/dist/esm/index.native.js.map +6 -1
  135. package/dist/esm/interfaces/router.native.js +4 -2
  136. package/dist/esm/interfaces/router.native.js.map +6 -1
  137. package/dist/esm/layouts/Drawer.native.js +7 -6
  138. package/dist/esm/layouts/Drawer.native.js.map +6 -1
  139. package/dist/esm/layouts/Stack.native.js +7 -6
  140. package/dist/esm/layouts/Stack.native.js.map +6 -1
  141. package/dist/esm/layouts/Tabs.native.js +42 -39
  142. package/dist/esm/layouts/Tabs.native.js.map +6 -1
  143. package/dist/esm/layouts/withLayoutContext.native.js +51 -48
  144. package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
  145. package/dist/esm/link/Link.native.js +62 -53
  146. package/dist/esm/link/Link.native.js.map +6 -1
  147. package/dist/esm/link/Redirect.native.js +8 -9
  148. package/dist/esm/link/Redirect.native.js.map +6 -1
  149. package/dist/esm/link/href.native.js +28 -27
  150. package/dist/esm/link/href.native.js.map +6 -1
  151. package/dist/esm/link/linking.native.js +51 -40
  152. package/dist/esm/link/linking.native.js.map +6 -1
  153. package/dist/esm/link/path.native.js +28 -19
  154. package/dist/esm/link/path.native.js.map +6 -1
  155. package/dist/esm/link/useLinkTo.native.js +22 -20
  156. package/dist/esm/link/useLinkTo.native.js.map +6 -1
  157. package/dist/esm/link/useLoadedNavigation.native.js +30 -23
  158. package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
  159. package/dist/esm/matchers.native.js +16 -3
  160. package/dist/esm/matchers.native.js.map +6 -1
  161. package/dist/esm/platform.native.js +4 -2
  162. package/dist/esm/platform.native.js.map +6 -1
  163. package/dist/esm/polyfills-mobile.native.js +4 -5
  164. package/dist/esm/polyfills-mobile.native.js.map +6 -1
  165. package/dist/esm/polyfills-server.native.js +1 -1
  166. package/dist/esm/polyfills-server.native.js.map +6 -1
  167. package/dist/esm/render.native.js +3 -1
  168. package/dist/esm/render.native.js.map +6 -1
  169. package/dist/esm/router/RouterStore.native.js +1 -2
  170. package/dist/esm/router/RouterStore.native.js.map +6 -1
  171. package/dist/esm/router/constants.native.js +4 -2
  172. package/dist/esm/router/constants.native.js.map +6 -1
  173. package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
  174. package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
  175. package/dist/esm/router/lastAction.native.js +10 -9
  176. package/dist/esm/router/lastAction.native.js.map +6 -1
  177. package/dist/esm/router/router.native.js +135 -114
  178. package/dist/esm/router/router.native.js.map +6 -1
  179. package/dist/esm/router/serverLocationContext.native.js +4 -2
  180. package/dist/esm/router/serverLocationContext.native.js.map +6 -1
  181. package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
  182. package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
  183. package/dist/esm/serve.native.js +77 -104
  184. package/dist/esm/serve.native.js.map +6 -1
  185. package/dist/esm/server/createRoutesManifest.native.js +14 -11
  186. package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
  187. package/dist/esm/server/getServerManifest.native.js +61 -67
  188. package/dist/esm/server/getServerManifest.native.js.map +6 -1
  189. package/dist/esm/server-render.native.js +9 -10
  190. package/dist/esm/server-render.native.js.map +6 -1
  191. package/dist/esm/sortRoutes.native.js +27 -17
  192. package/dist/esm/sortRoutes.native.js.map +6 -1
  193. package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
  194. package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
  195. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
  196. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
  197. package/dist/esm/types.native.js +1 -2
  198. package/dist/esm/types.native.js.map +6 -1
  199. package/dist/esm/useFocusEffect.native.js +25 -22
  200. package/dist/esm/useFocusEffect.native.js.map +6 -1
  201. package/dist/esm/useLoader.native.js +50 -50
  202. package/dist/esm/useLoader.native.js.map +6 -1
  203. package/dist/esm/useNavigation.native.js +23 -19
  204. package/dist/esm/useNavigation.native.js.map +6 -1
  205. package/dist/esm/useScreens.native.js +143 -160
  206. package/dist/esm/useScreens.native.js.map +6 -1
  207. package/dist/esm/useViteRoutes.native.js +25 -28
  208. package/dist/esm/useViteRoutes.native.js.map +6 -1
  209. package/dist/esm/utils/assertIsReady.native.js +6 -3
  210. package/dist/esm/utils/assertIsReady.native.js.map +6 -1
  211. package/dist/esm/utils/dynamicImport.native.js +5 -3
  212. package/dist/esm/utils/dynamicImport.native.js.map +6 -1
  213. package/dist/esm/utils/existsAsync.native.js +6 -4
  214. package/dist/esm/utils/existsAsync.native.js.map +6 -1
  215. package/dist/esm/utils/getPageExport.native.js +12 -11
  216. package/dist/esm/utils/getPageExport.native.js.map +6 -1
  217. package/dist/esm/utils/globDir.native.js +5 -3
  218. package/dist/esm/utils/globDir.native.js.map +6 -1
  219. package/dist/esm/utils/hashString.native.js +4 -2
  220. package/dist/esm/utils/hashString.native.js.map +6 -1
  221. package/dist/esm/utils/isResponse.native.js +4 -2
  222. package/dist/esm/utils/isResponse.native.js.map +6 -1
  223. package/dist/esm/utils/isStatus.native.js +4 -2
  224. package/dist/esm/utils/isStatus.native.js.map +6 -1
  225. package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
  226. package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
  227. package/dist/esm/utils/rand.native.js +5 -3
  228. package/dist/esm/utils/rand.native.js.map +6 -1
  229. package/dist/esm/utils/redirect.native.js +7 -5
  230. package/dist/esm/utils/redirect.native.js.map +6 -1
  231. package/dist/esm/utils/removeSearch.native.js +4 -2
  232. package/dist/esm/utils/removeSearch.native.js.map +6 -1
  233. package/dist/esm/utils/removeUndefined.native.js +6 -3
  234. package/dist/esm/utils/removeUndefined.native.js.map +6 -1
  235. package/dist/esm/utils/requireResolve.native.js +4 -2
  236. package/dist/esm/utils/requireResolve.native.js.map +6 -1
  237. package/dist/esm/utils/url.native.js +6 -2
  238. package/dist/esm/utils/url.native.js.map +6 -1
  239. package/dist/esm/utils/weakKey.native.js +11 -10
  240. package/dist/esm/utils/weakKey.native.js.map +6 -1
  241. package/dist/esm/utils/weakMemo.native.js +8 -8
  242. package/dist/esm/utils/weakMemo.native.js.map +6 -1
  243. package/dist/esm/views/EmptyRoute.native.js +5 -3
  244. package/dist/esm/views/EmptyRoute.native.js.map +6 -1
  245. package/dist/esm/views/ErrorBoundary.native.js +5 -8
  246. package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
  247. package/dist/esm/views/LoadProgressBar.native.js +58 -57
  248. package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
  249. package/dist/esm/views/Navigator.native.js +54 -71
  250. package/dist/esm/views/Navigator.native.js.map +6 -1
  251. package/dist/esm/views/PreloadLinks.native.js +3 -1
  252. package/dist/esm/views/PreloadLinks.native.js.map +6 -1
  253. package/dist/esm/views/RootErrorBoundary.native.js +39 -29
  254. package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
  255. package/dist/esm/views/Screen.native.js +12 -12
  256. package/dist/esm/views/Screen.native.js.map +6 -1
  257. package/dist/esm/views/ScrollRestoration.native.js +27 -27
  258. package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
  259. package/dist/esm/views/Try.native.js +40 -37
  260. package/dist/esm/views/Try.native.js.map +6 -1
  261. package/dist/esm/vite/build.native.js +260 -295
  262. package/dist/esm/vite/build.native.js.map +6 -1
  263. package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
  264. package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
  265. package/dist/esm/vite/constants.native.js +6 -4
  266. package/dist/esm/vite/constants.native.js.map +6 -1
  267. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  268. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  269. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  270. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  271. package/dist/esm/vite/createFileSystemRouter.native.js +100 -131
  272. package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
  273. package/dist/esm/vite/customNodeExternals.native.js +9 -10
  274. package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
  275. package/dist/esm/vite/ensureTsConfig.native.js +7 -5
  276. package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
  277. package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
  278. package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
  279. package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
  280. package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
  281. package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
  282. package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
  283. package/dist/esm/vite/getManifest.native.js +6 -4
  284. package/dist/esm/vite/getManifest.native.js.map +6 -1
  285. package/dist/esm/vite/headers.native.js +11 -5
  286. package/dist/esm/vite/headers.native.js.map +6 -1
  287. package/dist/esm/vite/loadEnv.native.js +7 -6
  288. package/dist/esm/vite/loadEnv.native.js.map +6 -1
  289. package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
  290. package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
  291. package/dist/esm/vite/one.native.js +142 -127
  292. package/dist/esm/vite/one.native.js.map +6 -1
  293. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
  294. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
  295. package/dist/esm/vite/replaceLoader.js +7 -1
  296. package/dist/esm/vite/replaceLoader.js.map +1 -1
  297. package/dist/esm/vite/replaceLoader.mjs +5 -1
  298. package/dist/esm/vite/replaceLoader.mjs.map +1 -1
  299. package/dist/esm/vite/replaceLoader.native.js +13 -10
  300. package/dist/esm/vite/replaceLoader.native.js.map +6 -1
  301. package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
  302. package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
  303. package/dist/esm/vite/server.native.js +5 -4
  304. package/dist/esm/vite/server.native.js.map +6 -1
  305. package/dist/esm/vite/types.native.js +1 -2
  306. package/dist/esm/vite/types.native.js.map +6 -1
  307. package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
  308. package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
  309. package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
  310. package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
  311. package/dist/esm/vite.native.js +19 -10
  312. package/dist/esm/vite.native.js.map +6 -1
  313. package/dist/esm/zero/getQueryKey.native.js +5 -3
  314. package/dist/esm/zero/getQueryKey.native.js.map +6 -1
  315. package/dist/esm/zero/isZeroQuery.native.js +4 -2
  316. package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
  317. package/dist/esm/zero/resolveQuery.native.js +9 -8
  318. package/dist/esm/zero/resolveQuery.native.js.map +6 -1
  319. package/dist/esm/zero/subscribeToQuery.native.js +5 -3
  320. package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
  321. package/dist/esm/zero/types.native.js +1 -2
  322. package/dist/esm/zero/types.native.js.map +6 -1
  323. package/dist/esm/zero/useQuery.native.js +12 -12
  324. package/dist/esm/zero/useQuery.native.js.map +6 -1
  325. package/dist/esm/zero/useQueryZero.native.js +24 -20
  326. package/dist/esm/zero/useQueryZero.native.js.map +6 -1
  327. package/dist/esm/zero.native.js +9 -5
  328. package/dist/esm/zero.native.js.map +6 -1
  329. package/package.json +7 -7
  330. package/src/cleanUrl.ts +1 -1
  331. package/src/cli/runAndroid.ts +6 -0
  332. package/src/cli/runIos.ts +6 -0
  333. package/src/cli.ts +27 -1
  334. package/src/createHandleRequest.ts +7 -0
  335. package/src/vite/createFileSystemRouter.tsx +1 -2
  336. package/src/vite/replaceLoader.ts +7 -1
  337. package/types/cli/runAndroid.d.ts +2 -0
  338. package/types/cli/runAndroid.d.ts.map +1 -0
  339. package/types/cli/runIos.d.ts +2 -0
  340. package/types/cli/runIos.d.ts.map +1 -0
  341. package/types/createHandleRequest.d.ts.map +1 -1
  342. package/types/vite/createFileSystemRouter.d.ts.map +1 -1
  343. package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -1,10 +1,9 @@
1
1
  import { validatePathConfig } from "@react-navigation/core";
2
- import { matchDeepDynamicRouteName, matchDynamicName, matchGroupName, testNotFound } from "../matchers.native.js";
3
- var DEFAULT_SCREENS = {},
4
- getActiveRoute = function (state) {
5
- var route = typeof state.index == "number" ? state.routes[state.index] : state.routes[state.routes.length - 1];
6
- return route.state ? getActiveRoute(route.state) : route && isInvalidParams(route.params) ? getActiveRoute(createFakeState(route.params)) : route;
7
- };
2
+ import { matchDeepDynamicRouteName, matchDynamicName, matchGroupName, testNotFound } from "../matchers";
3
+ var DEFAULT_SCREENS = {}, getActiveRoute = function(state) {
4
+ var route = typeof state.index == "number" ? state.routes[state.index] : state.routes[state.routes.length - 1];
5
+ return route.state ? getActiveRoute(route.state) : route && isInvalidParams(route.params) ? getActiveRoute(createFakeState(route.params)) : route;
6
+ };
8
7
  function createFakeState(params) {
9
8
  return {
10
9
  stale: !1,
@@ -12,12 +11,14 @@ function createFakeState(params) {
12
11
  key: "UNKNOWN",
13
12
  index: 0,
14
13
  routeNames: [],
15
- routes: [{
16
- key: "UNKNOWN",
17
- name: params.screen,
18
- params: params.params,
19
- path: params.path
20
- }]
14
+ routes: [
15
+ {
16
+ key: "UNKNOWN",
17
+ name: params.screen,
18
+ params: params.params,
19
+ path: params.path
20
+ }
21
+ ]
21
22
  };
22
23
  }
23
24
  function segmentMatchesConvention(segment) {
@@ -33,49 +34,56 @@ function getPathDataFromState(state) {
33
34
  var _options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
34
35
  screens: DEFAULT_SCREENS
35
36
  };
36
- if (state == null) throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");
37
- var {
38
- preserveGroups,
39
- preserveDynamicRoutes,
40
- ...options
41
- } = _options;
42
- if (validatePathConfig(options), Object.is(options.screens, DEFAULT_SCREENS)) throw Error("You must pass a 'screens' object to 'getPathFromState' to generate a path.");
43
- return getPathFromResolvedState(state,
44
- // Create a normalized configs object which will be easier to use
45
- createNormalizedConfigs(options.screens), {
46
- preserveGroups,
47
- preserveDynamicRoutes
48
- });
37
+ if (state == null)
38
+ throw Error("Got 'undefined' for the navigation state. You must pass a valid state object.");
39
+ var { preserveGroups, preserveDynamicRoutes, ...options } = _options;
40
+ if (validatePathConfig(options), Object.is(options.screens, DEFAULT_SCREENS))
41
+ throw Error("You must pass a 'screens' object to 'getPathFromState' to generate a path.");
42
+ return getPathFromResolvedState(
43
+ state,
44
+ // Create a normalized configs object which will be easier to use
45
+ createNormalizedConfigs(options.screens),
46
+ {
47
+ preserveGroups,
48
+ preserveDynamicRoutes
49
+ }
50
+ );
49
51
  }
50
52
  function processParamsWithUserSettings(configItem, params) {
51
53
  var stringify = configItem?.stringify;
52
- return Object.fromEntries(Object.entries(params).map(function (param) {
54
+ return Object.fromEntries(Object.entries(params).map(function(param) {
53
55
  var [key, value] = param;
54
- return [key,
55
- // TODO: Strip nullish values here.
56
- stringify?.[key] ? stringify[key](value) :
57
- // Preserve rest params
58
- Array.isArray(value) ? value : String(value)];
56
+ return [
57
+ key,
58
+ // TODO: Strip nullish values here.
59
+ stringify?.[key] ? stringify[key](value) : (
60
+ // Preserve rest params
61
+ Array.isArray(value) ? value : String(value)
62
+ )
63
+ ];
59
64
  }));
60
65
  }
61
66
  function deepEqual(a, b) {
62
- if (a === b) return !0;
67
+ if (a === b)
68
+ return !0;
63
69
  if (Array.isArray(a) && Array.isArray(b)) {
64
- if (a.length !== b.length) return !1;
65
- for (var i = 0; i < a.length; i++) if (!deepEqual(a[i], b[i])) return !1;
70
+ if (a.length !== b.length)
71
+ return !1;
72
+ for (var i = 0; i < a.length; i++)
73
+ if (!deepEqual(a[i], b[i]))
74
+ return !1;
66
75
  return !0;
67
76
  }
68
77
  if (typeof a == "object" && typeof b == "object") {
69
- var keysA = Object.keys(a),
70
- keysB = Object.keys(b);
71
- if (keysA.length !== keysB.length) return !1;
72
- var _iteratorNormalCompletion = !0,
73
- _didIteratorError = !1,
74
- _iteratorError = void 0;
78
+ var keysA = Object.keys(a), keysB = Object.keys(b);
79
+ if (keysA.length !== keysB.length)
80
+ return !1;
81
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
75
82
  try {
76
83
  for (var _iterator = keysA[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
77
84
  var key = _step.value;
78
- if (!deepEqual(a[key], b[key])) return !1;
85
+ if (!deepEqual(a[key], b[key]))
86
+ return !1;
79
87
  }
80
88
  } catch (err) {
81
89
  _didIteratorError = !0, _iteratorError = err;
@@ -83,7 +91,8 @@ function deepEqual(a, b) {
83
91
  try {
84
92
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
85
93
  } finally {
86
- if (_didIteratorError) throw _iteratorError;
94
+ if (_didIteratorError)
95
+ throw _iteratorError;
87
96
  }
88
97
  }
89
98
  return !0;
@@ -91,14 +100,12 @@ function deepEqual(a, b) {
91
100
  return !1;
92
101
  }
93
102
  function walkConfigItems(route, focusedRoute, configs, param) {
94
- var {
95
- preserveDynamicRoutes
96
- } = param;
103
+ var { preserveDynamicRoutes } = param;
97
104
  !route.state && isInvalidParams(route.params) && (route.state = createFakeState(route.params));
98
- for (var pattern = null, focusedParams, hash, collectedParams = {}; route.name in configs;) {
99
- var configItem = configs[route.name],
100
- inputPattern = configItem.pattern;
101
- if (inputPattern == null) throw new Error("Unexpected: No pattern found for route " + route.name);
105
+ for (var pattern = null, focusedParams, hash, collectedParams = {}; route.name in configs; ) {
106
+ var configItem = configs[route.name], inputPattern = configItem.pattern;
107
+ if (inputPattern == null)
108
+ throw new Error("Unexpected: No pattern found for route " + route.name);
102
109
  if (pattern = inputPattern, route.params) {
103
110
  route.params["#"] && (hash = route.params["#"], delete route.params["#"]);
104
111
  var params = processParamsWithUserSettings(configItem, route.params);
@@ -110,7 +117,7 @@ function walkConfigItems(route, focusedRoute, configs, param) {
110
117
  }
111
118
  if (!route.state && isInvalidParams(route.params) && (route.state = createFakeState(route.params)), !configItem.screens || route.state === void 0) {
112
119
  var _configItem_screens_configItem_initialRouteName;
113
- if (configItem.initialRouteName && configItem.screens && configItem.initialRouteName in configItem.screens && !((_configItem_screens_configItem_initialRouteName = configItem.screens[configItem.initialRouteName]) === null || _configItem_screens_configItem_initialRouteName === void 0) && _configItem_screens_configItem_initialRouteName.pattern) {
120
+ if (configItem.initialRouteName && configItem.screens && configItem.initialRouteName in configItem.screens && (!((_configItem_screens_configItem_initialRouteName = configItem.screens[configItem.initialRouteName]) === null || _configItem_screens_configItem_initialRouteName === void 0) && _configItem_screens_configItem_initialRouteName.pattern)) {
114
121
  var initialRouteConfig = configItem.screens[configItem.initialRouteName];
115
122
  pattern = initialRouteConfig.pattern, focusedParams && (preserveDynamicRoutes || (focusedParams = getParamsWithConventionsCollapsed({
116
123
  params: focusedParams,
@@ -120,13 +127,14 @@ function walkConfigItems(route, focusedRoute, configs, param) {
120
127
  }
121
128
  break;
122
129
  }
123
- var _route_state_index,
124
- index = (_route_state_index = route.state.index) !== null && _route_state_index !== void 0 ? _route_state_index : route.state.routes.length - 1,
125
- nextRoute = route.state.routes[index],
126
- nestedScreens = configItem.screens;
127
- if (nestedScreens && nextRoute.name in nestedScreens) route = nextRoute, configs = nestedScreens;else break;
130
+ var _route_state_index, index = (_route_state_index = route.state.index) !== null && _route_state_index !== void 0 ? _route_state_index : route.state.routes.length - 1, nextRoute = route.state.routes[index], nestedScreens = configItem.screens;
131
+ if (nestedScreens && nextRoute.name in nestedScreens)
132
+ route = nextRoute, configs = nestedScreens;
133
+ else
134
+ break;
128
135
  }
129
- if (pattern == null) throw new Error(`No pattern found for route "${route.name}". Options are: ${Object.keys(configs).join(", ")}.`);
136
+ if (pattern == null)
137
+ throw new Error(`No pattern found for route "${route.name}". Options are: ${Object.keys(configs).join(", ")}.`);
130
138
  return pattern && !focusedParams && focusedRoute.params && (preserveDynamicRoutes ? focusedParams = focusedRoute.params : focusedParams = getParamsWithConventionsCollapsed({
131
139
  params: focusedRoute.params,
132
140
  pattern,
@@ -140,22 +148,12 @@ function walkConfigItems(route, focusedRoute, configs, param) {
140
148
  };
141
149
  }
142
150
  function getPathFromResolvedState(state, configs, param) {
143
- for (var {
144
- preserveGroups,
145
- preserveDynamicRoutes
146
- } = param, path = "", current = state, hash, allParams = {}; current;) {
151
+ for (var { preserveGroups, preserveDynamicRoutes } = param, path = "", current = state, hash, allParams = {}; current; ) {
147
152
  var _configs_nextRoute_name, _nextRoute_state_routes_, _nextRoute_state, _nextRoute_state_routes;
148
153
  path += "/";
149
- var _current_index,
150
- route = current.routes[(_current_index = current.index) !== null && _current_index !== void 0 ? _current_index : 0];
154
+ var _current_index, route = current.routes[(_current_index = current.index) !== null && _current_index !== void 0 ? _current_index : 0];
151
155
  !route.state && isInvalidParams(route.params) && (route.state = createFakeState(route.params));
152
- var {
153
- pattern,
154
- params,
155
- nextRoute,
156
- focusedParams,
157
- hash: $hash
158
- } = walkConfigItems(route, getActiveRoute(current), {
156
+ var { pattern, params, nextRoute, focusedParams, hash: $hash } = walkConfigItems(route, getActiveRoute(current), {
159
157
  ...configs
160
158
  }, {
161
159
  preserveDynamicRoutes
@@ -169,17 +167,18 @@ function getPathFromResolvedState(state, configs, param) {
169
167
  preserveDynamicRoutes
170
168
  });
171
169
  var _nextRoute_state_index;
172
- if (nextRoute.state &&
173
- // NOTE: The upstream implementation allows for sending in synthetic states (states that weren't generated by `getStateFromPath`)
170
+ if (nextRoute.state && // NOTE: The upstream implementation allows for sending in synthetic states (states that weren't generated by `getStateFromPath`)
174
171
  // and any invalid routes will simply be ignored.
175
172
  // Because of this, we need to check if the next route is valid before continuing, otherwise our more strict
176
173
  // implementation will throw an error.
177
- configs[(_nextRoute_state_routes = nextRoute.state.routes) === null || _nextRoute_state_routes === void 0 || (_nextRoute_state_routes_ = _nextRoute_state_routes[(_nextRoute_state_index = (_nextRoute_state = nextRoute.state) === null || _nextRoute_state === void 0 ? void 0 : _nextRoute_state.index) !== null && _nextRoute_state_index !== void 0 ? _nextRoute_state_index : 0]) === null || _nextRoute_state_routes_ === void 0 ? void 0 : _nextRoute_state_routes_.name]) current = nextRoute.state;else {
178
- if (focusedParams &&
179
- // note: using [...route] is returning an array which shouldn't go on search, this is just
174
+ configs[(_nextRoute_state_routes = nextRoute.state.routes) === null || _nextRoute_state_routes === void 0 || (_nextRoute_state_routes_ = _nextRoute_state_routes[(_nextRoute_state_index = (_nextRoute_state = nextRoute.state) === null || _nextRoute_state === void 0 ? void 0 : _nextRoute_state.index) !== null && _nextRoute_state_index !== void 0 ? _nextRoute_state_index : 0]) === null || _nextRoute_state_routes_ === void 0 ? void 0 : _nextRoute_state_routes_.name])
175
+ current = nextRoute.state;
176
+ else {
177
+ if (focusedParams && // note: using [...route] is returning an array which shouldn't go on search, this is just
180
178
  // an initial hacky test to work around this as we dont want to pass that to search
181
179
  !Array.isArray(focusedParams)) {
182
- for (var _$param in focusedParams) focusedParams[_$param] === "undefined" && delete focusedParams[_$param];
180
+ for (var _$param in focusedParams)
181
+ focusedParams[_$param] === "undefined" && delete focusedParams[_$param];
183
182
  var query = new URLSearchParams(focusedParams).toString();
184
183
  query && (path += `?${query}`);
185
184
  }
@@ -194,15 +193,12 @@ function getPathFromResolvedState(state, configs, param) {
194
193
  };
195
194
  }
196
195
  function decodeParams(params) {
197
- var parsed = {},
198
- _iteratorNormalCompletion = !0,
199
- _didIteratorError = !1,
200
- _iteratorError = void 0;
196
+ var parsed = {}, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
201
197
  try {
202
198
  for (var _iterator = Object.entries(params)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
203
199
  var [key, value] = _step.value;
204
200
  try {
205
- Array.isArray(value) ? parsed[key] = value.map(function (v) {
201
+ Array.isArray(value) ? parsed[key] = value.map(function(v) {
206
202
  return decodeURIComponent(v);
207
203
  }) : parsed[key] = decodeURIComponent(value);
208
204
  } catch {
@@ -215,48 +211,34 @@ function decodeParams(params) {
215
211
  try {
216
212
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
217
213
  } finally {
218
- if (_didIteratorError) throw _iteratorError;
214
+ if (_didIteratorError)
215
+ throw _iteratorError;
219
216
  }
220
217
  }
221
218
  return parsed;
222
219
  }
223
220
  function getPathWithConventionsCollapsed(param) {
224
- var {
225
- pattern,
226
- routePath,
227
- params,
228
- preserveGroups,
229
- preserveDynamicRoutes,
230
- initialRouteName
231
- } = param,
232
- segments = pattern.split("/");
233
- return segments.map(function (p, i) {
221
+ var { pattern, routePath, params, preserveGroups, preserveDynamicRoutes, initialRouteName } = param, segments = pattern.split("/");
222
+ return segments.map(function(p, i) {
234
223
  var name = getParamName(p);
235
224
  return p.startsWith("*") ? preserveDynamicRoutes ? name === "not-found" ? "+not-found" : `[...${name}]` : params[name] ? Array.isArray(params[name]) ? params[name].join("/") : params[name] : i === 0 ? routePath : routePath?.split("/").slice(i + 1).join("/") : p.startsWith(":") ? preserveDynamicRoutes ? `[${name}]` : params[name] : !preserveGroups && matchGroupName(p) != null ? segments.length - 1 === i && initialRouteName ? segmentMatchesConvention(initialRouteName) ? "" : encodeURIComponentPreservingBrackets(initialRouteName) : "" : encodeURIComponentPreservingBrackets(p);
236
- }).map(function (v) {
225
+ }).map(function(v) {
237
226
  return v ?? "";
238
227
  }).join("/");
239
228
  }
240
229
  function getParamsWithConventionsCollapsed(param) {
241
- var {
242
- pattern,
243
- routeName,
244
- params
245
- } = param,
246
- processedParams = {
247
- ...params
248
- },
249
- segments = pattern.split("/");
250
- if (segments.filter(function (segment) {
230
+ var { pattern, routeName, params } = param, processedParams = {
231
+ ...params
232
+ }, segments = pattern.split("/");
233
+ if (segments.filter(function(segment) {
251
234
  return segment.startsWith(":");
252
- }).forEach(function (segment) {
235
+ }).forEach(function(segment) {
253
236
  var name2 = getParamName(segment);
254
237
  delete processedParams[name2];
255
- }), segments.some(function (segment) {
238
+ }), segments.some(function(segment) {
256
239
  return segment.startsWith("*");
257
240
  })) {
258
- var _matchDeepDynamicRouteName,
259
- name = testNotFound(routeName) ? "not-found" : (_matchDeepDynamicRouteName = matchDeepDynamicRouteName(routeName)) !== null && _matchDeepDynamicRouteName !== void 0 ? _matchDeepDynamicRouteName : routeName;
241
+ var _matchDeepDynamicRouteName, name = testNotFound(routeName) ? "not-found" : (_matchDeepDynamicRouteName = matchDeepDynamicRouteName(routeName)) !== null && _matchDeepDynamicRouteName !== void 0 ? _matchDeepDynamicRouteName : routeName;
260
242
  delete processedParams[name];
261
243
  }
262
244
  return processedParams;
@@ -266,46 +248,51 @@ function basicSanitizePath(path) {
266
248
  return simplifiedPath.length <= 1 ? simplifiedPath : simplifiedPath.replace(/\/$/, "");
267
249
  }
268
250
  function isInvalidParams(params) {
269
- return params ? "params" in params && typeof params.params == "object" && params.params ? !0 : "initial" in params && typeof params.initial == "boolean" &&
270
- // "path" in params &&
251
+ return params ? "params" in params && typeof params.params == "object" && params.params ? !0 : "initial" in params && typeof params.initial == "boolean" && // "path" in params &&
271
252
  "screen" in params : !1;
272
253
  }
273
- var getParamName = function (pattern) {
274
- return pattern.replace(/^[:*]/, "").replace(/\?$/, "");
275
- },
276
- joinPaths = function () {
277
- for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++) paths[_key] = arguments[_key];
278
- return [].concat(...paths.map(function (p) {
279
- return p.split("/");
280
- })).filter(Boolean).join("/");
281
- },
282
- createConfigItem = function (config, parentPattern) {
283
- if (typeof config == "string") {
284
- var pattern = parentPattern ? joinPaths(parentPattern, config) : config;
285
- return {
286
- pattern
287
- };
288
- }
289
- if (config.exact && config.path === void 0) throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");
290
- var pattern1 = config.exact !== !0 ? joinPaths(parentPattern || "", config.path || "") : config.path || "",
291
- screens = config.screens ? createNormalizedConfigs(config.screens, pattern1) : void 0;
254
+ var getParamName = function(pattern) {
255
+ return pattern.replace(/^[:*]/, "").replace(/\?$/, "");
256
+ }, joinPaths = function() {
257
+ for (var _len = arguments.length, paths = new Array(_len), _key = 0; _key < _len; _key++)
258
+ paths[_key] = arguments[_key];
259
+ return [].concat(...paths.map(function(p) {
260
+ return p.split("/");
261
+ })).filter(Boolean).join("/");
262
+ }, createConfigItem = function(config, parentPattern) {
263
+ if (typeof config == "string") {
264
+ var pattern = parentPattern ? joinPaths(parentPattern, config) : config;
292
265
  return {
293
- // Normalize pattern to remove any leading, trailing slashes, duplicate slashes etc.
294
- pattern: pattern1?.split("/").filter(Boolean).join("/"),
295
- stringify: config.stringify,
296
- screens,
297
- initialRouteName: config.initialRouteName
266
+ pattern
298
267
  };
299
- },
300
- createNormalizedConfigs = function (options, pattern) {
301
- return Object.fromEntries(Object.entries(options).map(function (param) {
302
- var [name, c] = param;
303
- return [name, createConfigItem(c, pattern)];
304
- }));
268
+ }
269
+ if (config.exact && config.path === void 0)
270
+ throw new Error("A 'path' needs to be specified when specifying 'exact: true'. If you don't want this screen in the URL, specify it as empty string, e.g. `path: ''`.");
271
+ var pattern1 = config.exact !== !0 ? joinPaths(parentPattern || "", config.path || "") : config.path || "", screens = config.screens ? createNormalizedConfigs(config.screens, pattern1) : void 0;
272
+ return {
273
+ // Normalize pattern to remove any leading, trailing slashes, duplicate slashes etc.
274
+ pattern: pattern1?.split("/").filter(Boolean).join("/"),
275
+ stringify: config.stringify,
276
+ screens,
277
+ initialRouteName: config.initialRouteName
305
278
  };
279
+ }, createNormalizedConfigs = function(options, pattern) {
280
+ return Object.fromEntries(Object.entries(options).map(function(param) {
281
+ var [name, c] = param;
282
+ return [
283
+ name,
284
+ createConfigItem(c, pattern)
285
+ ];
286
+ }));
287
+ };
306
288
  function appendBaseUrl(path) {
307
289
  var baseUrl = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : process.env.EXPO_BASE_URL;
308
290
  return process.env.NODE_ENV !== "development" && baseUrl ? `/${baseUrl.replace(/^\/+/, "").replace(/\/$/, "")}${path}` : path;
309
291
  }
310
- export { appendBaseUrl, deepEqual, getPathFromState as default, getPathDataFromState };
311
- //# sourceMappingURL=getPathFromState.native.js.map
292
+ export {
293
+ appendBaseUrl,
294
+ deepEqual,
295
+ getPathFromState as default,
296
+ getPathDataFromState
297
+ };
298
+ //# sourceMappingURL=getPathFromState.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["validatePathConfig","matchDeepDynamicRouteName","matchDynamicName","matchGroupName","testNotFound","DEFAULT_SCREENS","getActiveRoute","state","route","index","routes","length","isInvalidParams","params","createFakeState","stale","type","key","routeNames","name","screen","path","segmentMatchesConvention","segment","encodeURIComponentPreservingBrackets","str","encodeURIComponent","replace","getPathFromState","_options","getPathDataFromState","arguments","screens","Error","preserveGroups","preserveDynamicRoutes","options","Object","is","getPathFromResolvedState","createNormalizedConfigs","processParamsWithUserSettings","configItem","stringify","fromEntries","entries","map","param","value","Array","isArray","String","deepEqual","a","b","i","keysA","keys","keysB","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","Symbol","iterator","_step","next","done","err","return","walkConfigItems","focusedRoute","configs","pattern","focusedParams","hash","collectedParams","inputPattern","assign","getParamsWithConventionsCollapsed","routeName","_configItem_screens_configItem_initialRouteName","initialRouteName","initialRouteConfig","_route_state_index","nextRoute","nestedScreens","join","current","allParams","_configs_nextRoute_name","_nextRoute_state_routes_","_nextRoute_state","_nextRoute_state_routes","_current_index","$hash","getPathWithConventionsCollapsed","routePath","_nextRoute_state_index","_$param","query","URLSearchParams","toString","params1","decodeParams","appendBaseUrl","basicSanitizePath","parsed","v","decodeURIComponent","segments","split","p","getParamName","startsWith","slice","processedParams","filter","forEach","name2","some","_matchDeepDynamicRouteName","simplifiedPath"],"sources":["../../../src/fork/getPathFromState.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,kBAAA,QAA+D;AAGxE,SAAAC,yBAAA,EAAAC,gBAAA,EAAAC,cAAA,EAAAC,YAAA;AAAA,IACEC,eAAA;EAAAC,cAAA,YAAAA,CAAAC,KAAA;IACA,IAAAC,KAAA,UAAAD,KAAA,CAAAE,KAAA,eAAAF,KAAA,CAAAG,MAAA,CAAAH,KAAA,CAAAE,KAAA,IAAAF,KAAA,CAAAG,MAAA,CAAAH,KAAA,CAAAG,MAAA,CAAAC,MAAA;IACA,OAAAH,KAAA,CAAAD,KAAA,GAAAD,cAAA,CAAAE,KAAA,CAAAD,KAAA,IAAAC,KAAA,IAAAI,eAAA,CAAAJ,KAAA,CAAAK,MAAA,IAAAP,cAAA,CAA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,UAAU;AAE9B,QAAM9C,UAAU+C,gBAAgBN,UAAUM,eAAeD,MAAAA,IAAUA;AAEnE,WAAO;MAAE9C;IAAQ;EACnB;AAEA,MAAI8C,OAAOE,SAASF,OAAOpF,SAAS8C;AAClC,UAAM,IAAIpC,MACR,sJAAA;AAMJ,MAAM4B,WACJ8C,OAAOE,UAAU,KAAOP,UAAUM,iBAAiB,IAAID,OAAOpF,QAAQ,EAAA,IAAMoF,OAAOpF,QAAQ,IAEvFS,UAAU2E,OAAO3E,UAAUQ,wBAAwBmE,OAAO3E,SAAS6B,QAAAA,IAAWQ;AAEpF,SAAO;;IAELR,SAASA,UAAS8B,MAAM,GAAA,EAAKM,OAAOQ,OAAAA,EAAS/B,KAAK,GAAA;IAClD/B,WAAWgE,OAAOhE;IAClBX;IACAsC,kBAAkBqC,OAAOrC;EAC3B;AACF,GAEM9B,0BAA0B,SAC9BJ,SACAyB,SAAAA;SAEAxB,OAAOO,YACLP,OAAOQ,QAAQT,OAAAA,EAASU,IAAI,SAAA,OAAA;QAAC,CAACzB,MAAMyF,CAAAA,IAAE;WAAK;MAACzF;MAAMqF,iBAAiBI,GAAGjD,OAAAA;;;;AAGnE,SAASwB,cACd9D,MAAY;MACZwF,UAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAA8BC,QAAQC,IAAIC;AAE1C,SAAIF,QAAQC,IAAIE,aAAa,iBACvBJ,UACK,IAAIA,QAAQlF,QAAQ,QAAQ,EAAA,EAAIA,QAAQ,OAAO,EAAA,CAAA,GAAMN,IAAAA,KAGzDA;AACT;",
5
+ "names": ["validatePathConfig", "matchDeepDynamicRouteName", "matchDynamicName", "matchGroupName", "testNotFound", "DEFAULT_SCREENS", "getActiveRoute", "state", "route", "index", "routes", "length", "isInvalidParams", "params", "createFakeState", "stale", "type", "key", "routeNames", "name", "screen", "path", "segmentMatchesConvention", "segment", "encodeURIComponentPreservingBrackets", "str", "encodeURIComponent", "replace", "_options", "getPathDataFromState", "screens", "Error", "preserveGroups", "preserveDynamicRoutes", "options", "Object", "is", "getPathFromResolvedState", "createNormalizedConfigs", "processParamsWithUserSettings", "configItem", "stringify", "fromEntries", "entries", "map", "value", "Array", "isArray", "String", "deepEqual", "a", "b", "i", "keysA", "keys", "keysB", "walkConfigItems", "focusedRoute", "configs", "pattern", "focusedParams", "hash", "collectedParams", "inputPattern", "assign", "getParamsWithConventionsCollapsed", "routeName", "undefined", "initialRouteName", "initialRouteConfig", "nextRoute", "nestedScreens", "join", "current", "allParams", "$hash", "getPathWithConventionsCollapsed", "routePath", "param", "query", "URLSearchParams", "toString", "decodeParams", "appendBaseUrl", "basicSanitizePath", "parsed", "v", "decodeURIComponent", "segments", "split", "p", "getParamName", "startsWith", "slice", "processedParams", "filter", "forEach", "some", "simplifiedPath", "initial", "joinPaths", "paths", "concat", "Boolean", "createConfigItem", "config", "parentPattern", "exact", "c", "baseUrl", "process", "env", "EXPO_BASE_URL", "NODE_ENV"]
6
+ }