@real-router/core 0.154.0 → 0.155.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 (170) hide show
  1. package/README.md +8 -8
  2. package/dist/cjs/Router-ewvQ-TrA.js +2 -0
  3. package/dist/cjs/Router-ewvQ-TrA.js.map +1 -0
  4. package/dist/cjs/Router.d.ts +0 -2
  5. package/dist/cjs/Router.d.ts.map +1 -1
  6. package/dist/cjs/RouterError.d.ts +0 -2
  7. package/dist/cjs/RouterError.d.ts.map +1 -1
  8. package/dist/cjs/api/cloneRouter.d.ts +0 -2
  9. package/dist/cjs/api/cloneRouter.d.ts.map +1 -1
  10. package/dist/cjs/api/getDependenciesApi.d.ts +0 -2
  11. package/dist/cjs/api/getDependenciesApi.d.ts.map +1 -1
  12. package/dist/cjs/api/getLifecycleApi.d.ts +0 -2
  13. package/dist/cjs/api/getLifecycleApi.d.ts.map +1 -1
  14. package/dist/cjs/api/getPluginApi.d.ts +0 -2
  15. package/dist/cjs/api/getPluginApi.d.ts.map +1 -1
  16. package/dist/cjs/api/getRoutesApi.d.ts +0 -2
  17. package/dist/cjs/api/getRoutesApi.d.ts.map +1 -1
  18. package/dist/cjs/api/types.d.ts +0 -2
  19. package/dist/cjs/api/types.d.ts.map +1 -1
  20. package/dist/cjs/api.js +1 -1
  21. package/dist/cjs/channels/guard.d.ts +0 -2
  22. package/dist/cjs/channels/guard.d.ts.map +1 -1
  23. package/dist/cjs/constants.d.ts +0 -2
  24. package/dist/cjs/constants.d.ts.map +1 -1
  25. package/dist/cjs/createRouter.d.ts +0 -2
  26. package/dist/cjs/createRouter.d.ts.map +1 -1
  27. package/dist/cjs/dependenciesStore.d.ts +0 -2
  28. package/dist/cjs/dependenciesStore.d.ts.map +1 -1
  29. package/dist/cjs/engine/builder/types.d.ts +0 -2
  30. package/dist/cjs/engine/builder/types.d.ts.map +1 -1
  31. package/dist/cjs/engine/createMatcher.d.ts +0 -2
  32. package/dist/cjs/engine/createMatcher.d.ts.map +1 -1
  33. package/dist/cjs/engine/path-matcher/SegmentMatcher.d.ts +0 -2
  34. package/dist/cjs/engine/path-matcher/SegmentMatcher.d.ts.map +1 -1
  35. package/dist/cjs/engine/path-matcher/buildParamMeta.d.ts +0 -2
  36. package/dist/cjs/engine/path-matcher/buildParamMeta.d.ts.map +1 -1
  37. package/dist/cjs/engine/path-matcher/types.d.ts +0 -2
  38. package/dist/cjs/engine/path-matcher/types.d.ts.map +1 -1
  39. package/dist/cjs/engine/search-params/types.d.ts +0 -2
  40. package/dist/cjs/engine/search-params/types.d.ts.map +1 -1
  41. package/dist/cjs/engine/validation/route-batch.d.ts +0 -2
  42. package/dist/cjs/engine/validation/route-batch.d.ts.map +1 -1
  43. package/dist/cjs/getNavigator.d.ts +0 -2
  44. package/dist/cjs/getNavigator.d.ts.map +1 -1
  45. package/dist/cjs/helpers.d.ts +0 -2
  46. package/dist/cjs/helpers.d.ts.map +1 -1
  47. package/dist/cjs/index.js +1 -1
  48. package/dist/cjs/internals.d.ts +0 -2
  49. package/dist/cjs/internals.d.ts.map +1 -1
  50. package/dist/cjs/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.ts +0 -2
  51. package/dist/cjs/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.ts.map +1 -1
  52. package/dist/cjs/namespaces/RouteLifecycleNamespace/types.d.ts +0 -2
  53. package/dist/cjs/namespaces/RouteLifecycleNamespace/types.d.ts.map +1 -1
  54. package/dist/cjs/namespaces/RoutesNamespace/forwardChain.d.ts +0 -2
  55. package/dist/cjs/namespaces/RoutesNamespace/forwardChain.d.ts.map +1 -1
  56. package/dist/cjs/namespaces/RoutesNamespace/routesStore.d.ts +0 -2
  57. package/dist/cjs/namespaces/RoutesNamespace/routesStore.d.ts.map +1 -1
  58. package/dist/cjs/namespaces/RoutesNamespace/types.d.ts +0 -2
  59. package/dist/cjs/namespaces/RoutesNamespace/types.d.ts.map +1 -1
  60. package/dist/cjs/pipeline/port.d.ts +0 -2
  61. package/dist/cjs/pipeline/port.d.ts.map +1 -1
  62. package/dist/cjs/types/RouterValidator.d.ts +0 -2
  63. package/dist/cjs/types/RouterValidator.d.ts.map +1 -1
  64. package/dist/cjs/types/api.d.ts +0 -2
  65. package/dist/cjs/types/api.d.ts.map +1 -1
  66. package/dist/cjs/types/base.d.ts +0 -2
  67. package/dist/cjs/types/base.d.ts.map +1 -1
  68. package/dist/cjs/types/constants.d.ts +0 -2
  69. package/dist/cjs/types/constants.d.ts.map +1 -1
  70. package/dist/cjs/types/internal.d.ts +0 -2
  71. package/dist/cjs/types/internal.d.ts.map +1 -1
  72. package/dist/cjs/types/limits.d.ts +0 -2
  73. package/dist/cjs/types/limits.d.ts.map +1 -1
  74. package/dist/cjs/types/route-node-types.d.ts +0 -2
  75. package/dist/cjs/types/route-node-types.d.ts.map +1 -1
  76. package/dist/cjs/types/router.d.ts +0 -2
  77. package/dist/cjs/types/router.d.ts.map +1 -1
  78. package/dist/cjs/types/tree-changed.d.ts +0 -2
  79. package/dist/cjs/types/tree-changed.d.ts.map +1 -1
  80. package/dist/cjs/types.d.ts +0 -2
  81. package/dist/cjs/types.d.ts.map +1 -1
  82. package/dist/cjs/utils/ingest.d.ts +0 -2
  83. package/dist/cjs/utils/ingest.d.ts.map +1 -1
  84. package/dist/esm/Router-_DZAf0c_.mjs +2 -0
  85. package/dist/esm/Router-_DZAf0c_.mjs.map +1 -0
  86. package/dist/esm/Router.d.mts +0 -2
  87. package/dist/esm/Router.d.mts.map +1 -1
  88. package/dist/esm/RouterError.d.mts +0 -2
  89. package/dist/esm/RouterError.d.mts.map +1 -1
  90. package/dist/esm/api/cloneRouter.d.mts +0 -2
  91. package/dist/esm/api/cloneRouter.d.mts.map +1 -1
  92. package/dist/esm/api/getDependenciesApi.d.mts +0 -2
  93. package/dist/esm/api/getDependenciesApi.d.mts.map +1 -1
  94. package/dist/esm/api/getLifecycleApi.d.mts +0 -2
  95. package/dist/esm/api/getLifecycleApi.d.mts.map +1 -1
  96. package/dist/esm/api/getPluginApi.d.mts +0 -2
  97. package/dist/esm/api/getPluginApi.d.mts.map +1 -1
  98. package/dist/esm/api/getRoutesApi.d.mts +0 -2
  99. package/dist/esm/api/getRoutesApi.d.mts.map +1 -1
  100. package/dist/esm/api/types.d.mts +0 -2
  101. package/dist/esm/api/types.d.mts.map +1 -1
  102. package/dist/esm/api.mjs +1 -1
  103. package/dist/esm/channels/guard.d.mts +0 -2
  104. package/dist/esm/channels/guard.d.mts.map +1 -1
  105. package/dist/esm/constants.d.mts +0 -2
  106. package/dist/esm/constants.d.mts.map +1 -1
  107. package/dist/esm/createRouter.d.mts +0 -2
  108. package/dist/esm/createRouter.d.mts.map +1 -1
  109. package/dist/esm/dependenciesStore.d.mts +0 -2
  110. package/dist/esm/dependenciesStore.d.mts.map +1 -1
  111. package/dist/esm/engine/builder/types.d.mts +0 -2
  112. package/dist/esm/engine/builder/types.d.mts.map +1 -1
  113. package/dist/esm/engine/createMatcher.d.mts +0 -2
  114. package/dist/esm/engine/createMatcher.d.mts.map +1 -1
  115. package/dist/esm/engine/path-matcher/SegmentMatcher.d.mts +0 -2
  116. package/dist/esm/engine/path-matcher/SegmentMatcher.d.mts.map +1 -1
  117. package/dist/esm/engine/path-matcher/buildParamMeta.d.mts +0 -2
  118. package/dist/esm/engine/path-matcher/buildParamMeta.d.mts.map +1 -1
  119. package/dist/esm/engine/path-matcher/types.d.mts +0 -2
  120. package/dist/esm/engine/path-matcher/types.d.mts.map +1 -1
  121. package/dist/esm/engine/search-params/types.d.mts +0 -2
  122. package/dist/esm/engine/search-params/types.d.mts.map +1 -1
  123. package/dist/esm/engine/validation/route-batch.d.mts +0 -2
  124. package/dist/esm/engine/validation/route-batch.d.mts.map +1 -1
  125. package/dist/esm/getNavigator.d.mts +0 -2
  126. package/dist/esm/getNavigator.d.mts.map +1 -1
  127. package/dist/esm/helpers.d.mts +0 -2
  128. package/dist/esm/helpers.d.mts.map +1 -1
  129. package/dist/esm/index.mjs +1 -1
  130. package/dist/esm/internals.d.mts +0 -2
  131. package/dist/esm/internals.d.mts.map +1 -1
  132. package/dist/esm/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.mts +0 -2
  133. package/dist/esm/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.mts.map +1 -1
  134. package/dist/esm/namespaces/RouteLifecycleNamespace/types.d.mts +0 -2
  135. package/dist/esm/namespaces/RouteLifecycleNamespace/types.d.mts.map +1 -1
  136. package/dist/esm/namespaces/RoutesNamespace/forwardChain.d.mts +0 -2
  137. package/dist/esm/namespaces/RoutesNamespace/forwardChain.d.mts.map +1 -1
  138. package/dist/esm/namespaces/RoutesNamespace/routesStore.d.mts +0 -2
  139. package/dist/esm/namespaces/RoutesNamespace/routesStore.d.mts.map +1 -1
  140. package/dist/esm/namespaces/RoutesNamespace/types.d.mts +0 -2
  141. package/dist/esm/namespaces/RoutesNamespace/types.d.mts.map +1 -1
  142. package/dist/esm/pipeline/port.d.mts +0 -2
  143. package/dist/esm/pipeline/port.d.mts.map +1 -1
  144. package/dist/esm/types/RouterValidator.d.mts +0 -2
  145. package/dist/esm/types/RouterValidator.d.mts.map +1 -1
  146. package/dist/esm/types/api.d.mts +0 -2
  147. package/dist/esm/types/api.d.mts.map +1 -1
  148. package/dist/esm/types/base.d.mts +0 -2
  149. package/dist/esm/types/base.d.mts.map +1 -1
  150. package/dist/esm/types/constants.d.mts +0 -2
  151. package/dist/esm/types/constants.d.mts.map +1 -1
  152. package/dist/esm/types/internal.d.mts +0 -2
  153. package/dist/esm/types/internal.d.mts.map +1 -1
  154. package/dist/esm/types/limits.d.mts +0 -2
  155. package/dist/esm/types/limits.d.mts.map +1 -1
  156. package/dist/esm/types/route-node-types.d.mts +0 -2
  157. package/dist/esm/types/route-node-types.d.mts.map +1 -1
  158. package/dist/esm/types/router.d.mts +0 -2
  159. package/dist/esm/types/router.d.mts.map +1 -1
  160. package/dist/esm/types/tree-changed.d.mts +0 -2
  161. package/dist/esm/types/tree-changed.d.mts.map +1 -1
  162. package/dist/esm/types.d.mts +0 -2
  163. package/dist/esm/types.d.mts.map +1 -1
  164. package/dist/esm/utils/ingest.d.mts +0 -2
  165. package/dist/esm/utils/ingest.d.mts.map +1 -1
  166. package/package.json +1 -1
  167. package/dist/cjs/Router-C2Q3JreA.js +0 -2
  168. package/dist/cjs/Router-C2Q3JreA.js.map +0 -1
  169. package/dist/esm/Router-B6jYUVPG.mjs +0 -2
  170. package/dist/esm/Router-B6jYUVPG.mjs.map +0 -1
@@ -1,7 +1,6 @@
1
1
  import { NavigationTarget, Params, SearchParams, State, Unsubscribe } from "./types/base.mjs";
2
2
  import { DefaultDependencies, LeaveFn, Options, PluginFactory, Route, Router as Router$1, SubscribeFn } from "./types/router.mjs";
3
3
  import { NavigationOptions } from "./types.mjs";
4
- //#region src/Router.d.ts
5
4
  /**
6
5
  * Router class with integrated namespace architecture.
7
6
  *
@@ -62,5 +61,4 @@ export declare class Router<Dependencies extends DefaultDependencies = DefaultDe
62
61
  navigateToDefault(options?: NavigationOptions): Promise<State>;
63
62
  navigateToNotFound(path?: string): State;
64
63
  }
65
- //#endregion
66
64
  //# sourceMappingURL=Router.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Router.d.mts","names":["RouterInterface"],"sources":["../../src/Router.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qBAiHa,OACX,qBAAqB,sBAAsB,gCAChCA,SAAgB;;GAC1B;;;;;;EAgGC,YAAA,SAAQ,MAAM,iBACd,UAAS,QAAQ,QAAQ,gBACzB,eAAc;EAyrBhB,cACE,cACA,SAAS,QACT,SAAS,cACT,0BACA;EAwCF,UAAU,eAAe,SAAS,QAAQ,SAAS;EAoDnD,SAAS,UAAU,SAAS,WAAW,MAAM;EAI7C,oBAAoB;EAIpB,eACE,QAAQ,mBACR,QAAQ,mBACR;EAWF,iBACE,oBACE,SAAS,OAAO,YAAY;EAYhC;;;;;;;;;;;;;;EAiBA,MAAM,oBAAoB,QAAQ;EAQlC;EAyBA;EAwDA,cAAc,cAAc,SAAS,QAAQ,SAAS;EAkKtD,aACK,UAAU,cAAc,8CAC1B;EA2CH,UAAU,UAAU,cAAc;EAMlC,eAAe,UAAU,UAAU;EAMnC;EAQA,SACE,QAAQ,kBACR,UAAU,oBACT,QAAQ;EACX,SACE,mBACA,cAAc,QACd,cAAc,cACd,UAAU,oBACT,QAAQ;EA+EX,kBAAkB,UAAU,oBAAoB,QAAQ;EAiBxD,mBAAmB,gBAAgB"}
1
+ {"version":3,"file":"Router.d.mts","names":["RouterInterface"],"sources":["../../src/Router.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;qBAiHa,OACX,qBAAqB,sBAAsB,gCAChCA,SAAgB;;GAC1B;;;;;;EAgGC,YAAA,SAAQ,MAAM,iBACd,UAAS,QAAQ,QAAQ,gBACzB,eAAc;EAyrBhB,cACE,cACA,SAAS,QACT,SAAS,cACT,0BACA;EAwCF,UAAU,eAAe,SAAS,QAAQ,SAAS;EAoDnD,SAAS,UAAU,SAAS,WAAW,MAAM;EAI7C,oBAAoB;EAIpB,eACE,QAAQ,mBACR,QAAQ,mBACR;EAWF,iBACE,oBACE,SAAS,OAAO,YAAY;EAYhC;;;;;;;;;;;;;;EAiBA,MAAM,oBAAoB,QAAQ;EAQlC;EAyBA;EAwDA,cAAc,cAAc,SAAS,QAAQ,SAAS;EAkKtD,aACK,UAAU,cAAc,8CAC1B;EA2CH,UAAU,UAAU,cAAc;EAMlC,eAAe,UAAU,UAAU;EAMnC;EAQA,SACE,QAAQ,kBACR,UAAU,oBACT,QAAQ;EACX,SACE,mBACA,cAAc,QACd,cAAc,cACd,UAAU,oBACT,QAAQ;EA+EX,kBAAkB,UAAU,oBAAoB,QAAQ;EAiBxD,mBAAmB,gBAAgB"}
@@ -1,4 +1,3 @@
1
- //#region src/RouterError.d.ts
2
1
  /**
3
2
  * Freeze a `RouterError` at the moment it stops being core's to change — the
4
3
  * throw (#1960).
@@ -257,6 +256,5 @@ export declare function raiser(receiver: Receiver, door?: string): Raiser;
257
256
  * name, and a marker is greppable where a bare sentence is not (#1845).
258
257
  */
259
258
  export declare const internalDefect: InternalDefect;
260
- //#endregion
261
259
  export {};
262
260
  //# sourceMappingURL=RouterError.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouterError.d.mts","names":[],"sources":["../../src/RouterError.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;wBA0DgB,kBAAkB,UAAU,aAAa,OAAO,IAAI;qBAMvD,oBAAoB;GAC9B;WAIQ;WACA;EAIT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCE,YAAA,gBAEE,SACA,SACA,SACG;KAEF;IACD;IACA;IACA;;;;;;;;;;;;;;;;;;;;;;;EAkEJ,QAAQ;;;;;;;;;;;;;;;;;;;;;EA6BR,iBAAiB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;EA8CtB,oBAAoB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;EA+C5B,SAAS;;;;;;;;;;;;;;;;;;;;;EAoCT,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCT,UAAU;;;;;;;YA8CA;KAGP,IAAI,UAAU,UACjB,SAAS,yBACN,sBACA;;iBAGY;;;;;;EAMf,MAAM,IAAI,eAAe,SAAS,iBAAiB,IAAI;EACvD,OAAO,IAAI,WAAW,SAAS,iBAAiB,IAAI;EACpD,KAAK,IAAI;EACT,OAAO,IAAI;;;;;;EAMX,OACE,cACA,SAAS,SAAS,6BACf,IAAI;;;iBAIM;EACf,OAAO,IAAI;;;;;;;;;;;;;;;;;;;;wBAkCG,OAAO,UAAU,UAAU,gBAAgB;;;;;qBAiD9C,gBAAgB"}
1
+ {"version":3,"file":"RouterError.d.mts","names":[],"sources":["../../src/RouterError.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;wBA0DgB,kBAAkB,UAAU,aAAa,OAAO,IAAI;qBAMvD,oBAAoB;GAC9B;WAIQ;WACA;EAIT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCE,YAAA,gBAEE,SACA,SACA,SACG;KAEF;IACD;IACA;IACA;;;;;;;;;;;;;;;;;;;;;;;EAkEJ,QAAQ;;;;;;;;;;;;;;;;;;;;;EA6BR,iBAAiB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;EA8CtB,oBAAoB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;EA+C5B,SAAS;;;;;;;;;;;;;;;;;;;;;EAoCT,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCT,UAAU;;;;;;;YA8CA;KAGP,IAAI,UAAU,UACjB,SAAS,yBACN,sBACA;;iBAGY;;;;;;EAMf,MAAM,IAAI,eAAe,SAAS,iBAAiB,IAAI;EACvD,OAAO,IAAI,WAAW,SAAS,iBAAiB,IAAI;EACpD,KAAK,IAAI;EACT,OAAO,IAAI;;;;;;EAMX,OACE,cACA,SAAS,SAAS,6BACf,IAAI;;;iBAIM;EACf,OAAO,IAAI;;;;;;;;;;;;;;;;;;;;wBAkCG,OAAO,UAAU,UAAU,gBAAgB;;;;;qBAiD9C,gBAAgB"}
@@ -1,6 +1,5 @@
1
1
  import { DefaultDependencies, LoggerConfig, Router } from "../types/router.mjs";
2
2
  import { Router as Router$1 } from "../Router.mjs";
3
- //#region src/api/cloneRouter.d.ts
4
3
  /**
5
4
  * Per-clone overrides beyond dependencies.
6
5
  */
@@ -81,5 +80,4 @@ export interface CloneOptions {
81
80
  * wraps this function and injects `abortSignal` automatically.
82
81
  */
83
82
  export declare function cloneRouter<Dependencies extends DefaultDependencies = DefaultDependencies>(router: Router<Dependencies>, dependencies?: Dependencies, opts?: CloneOptions): Router$1<Dependencies>;
84
- //#endregion
85
83
  //# sourceMappingURL=cloneRouter.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cloneRouter.d.mts","names":["RouterClass"],"sources":["../../../src/api/cloneRouter.ts"],"mappings":";;;;;;iBAuCiB;;;;;;;;;;;EAWf,SAAS,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkEH,YACd,qBAAqB,sBAAsB,qBAE3C,QAAQ,OAAO,eACf,eAAe,cACf,OAAO,eACNA,SAAY"}
1
+ {"version":3,"file":"cloneRouter.d.mts","names":["RouterClass"],"sources":["../../../src/api/cloneRouter.ts"],"mappings":";;;;;iBAuCiB;;;;;;;;;;;EAWf,SAAS,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkEH,YACd,qBAAqB,sBAAsB,qBAE3C,QAAQ,OAAO,eACf,eAAe,cACf,OAAO,eACNA,SAAY"}
@@ -1,6 +1,4 @@
1
1
  import { DefaultDependencies, Router } from "../types/router.mjs";
2
2
  import { DependenciesApi } from "../types/api.mjs";
3
- //#region src/api/getDependenciesApi.d.ts
4
3
  export declare function getDependenciesApi<Dependencies extends DefaultDependencies = DefaultDependencies>(router: Router<Dependencies>): DependenciesApi<Dependencies>;
5
- //#endregion
6
4
  //# sourceMappingURL=getDependenciesApi.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getDependenciesApi.d.mts","names":[],"sources":["../../../src/api/getDependenciesApi.ts"],"mappings":";;;wBAqMgB,mBACd,qBAAqB,sBAAsB,qBAC3C,QAAQ,OAAO,gBAAgB,gBAAgB"}
1
+ {"version":3,"file":"getDependenciesApi.d.mts","names":[],"sources":["../../../src/api/getDependenciesApi.ts"],"mappings":";;wBAqMgB,mBACd,qBAAqB,sBAAsB,qBAC3C,QAAQ,OAAO,gBAAgB,gBAAgB"}
@@ -1,6 +1,4 @@
1
1
  import { DefaultDependencies, Router } from "../types/router.mjs";
2
2
  import { LifecycleApi } from "../types/api.mjs";
3
- //#region src/api/getLifecycleApi.d.ts
4
3
  export declare function getLifecycleApi<Dependencies extends DefaultDependencies = DefaultDependencies>(router: Router<Dependencies>): LifecycleApi<Dependencies>;
5
- //#endregion
6
4
  //# sourceMappingURL=getLifecycleApi.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getLifecycleApi.d.mts","names":[],"sources":["../../../src/api/getLifecycleApi.ts"],"mappings":";;;wBAWgB,gBACd,qBAAqB,sBAAsB,qBAC3C,QAAQ,OAAO,gBAAgB,aAAa"}
1
+ {"version":3,"file":"getLifecycleApi.d.mts","names":[],"sources":["../../../src/api/getLifecycleApi.ts"],"mappings":";;wBAWgB,gBACd,qBAAqB,sBAAsB,qBAC3C,QAAQ,OAAO,gBAAgB,aAAa"}
@@ -1,6 +1,4 @@
1
1
  import { DefaultDependencies, Router } from "../types/router.mjs";
2
2
  import { PluginApi } from "./types.mjs";
3
- //#region src/api/getPluginApi.d.ts
4
3
  export declare function getPluginApi<Dependencies extends DefaultDependencies = DefaultDependencies>(router: Router<Dependencies>): PluginApi;
5
- //#endregion
6
4
  //# sourceMappingURL=getPluginApi.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getPluginApi.d.mts","names":[],"sources":["../../../src/api/getPluginApi.ts"],"mappings":";;;wBA0EgB,aACd,qBAAqB,sBAAsB,qBAC3C,QAAQ,OAAO,gBAAgB"}
1
+ {"version":3,"file":"getPluginApi.d.mts","names":[],"sources":["../../../src/api/getPluginApi.ts"],"mappings":";;wBA0EgB,aACd,qBAAqB,sBAAsB,qBAC3C,QAAQ,OAAO,gBAAgB"}
@@ -1,6 +1,4 @@
1
1
  import { DefaultDependencies, Router } from "../types/router.mjs";
2
2
  import { RoutesApi } from "../types/api.mjs";
3
- //#region src/api/getRoutesApi.d.ts
4
3
  export declare function getRoutesApi<Dependencies extends DefaultDependencies = DefaultDependencies>(router: Router<Dependencies>): RoutesApi<Dependencies>;
5
- //#endregion
6
4
  //# sourceMappingURL=getRoutesApi.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getRoutesApi.d.mts","names":[],"sources":["../../../src/api/getRoutesApi.ts"],"mappings":";;;wBA63BgB,aACd,qBAAqB,sBAAsB,qBAC3C,QAAQ,OAAO,gBAAgB,UAAU"}
1
+ {"version":3,"file":"getRoutesApi.d.mts","names":[],"sources":["../../../src/api/getRoutesApi.ts"],"mappings":";;wBA63BgB,aACd,qBAAqB,sBAAsB,qBAC3C,QAAQ,OAAO,gBAAgB,UAAU"}
@@ -1,9 +1,7 @@
1
1
  import { RouteTree } from "../engine/builder/types.mjs";
2
2
  import { DependenciesApi, LifecycleApi, PluginApi as PluginApi$1, RoutesApi } from "../types/api.mjs";
3
- //#region src/api/types.d.ts
4
3
  export interface PluginApi extends Omit<PluginApi$1, "getTree"> {
5
4
  getTree: () => RouteTree;
6
5
  }
7
- //#endregion
8
6
  export type { DependenciesApi, LifecycleApi, RoutesApi };
9
7
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":["BasePluginApi"],"sources":["../../../src/api/types.ts"],"mappings":";;;iBAGiB,kBAAkB,KAAKA;EACtC,eAAe"}
1
+ {"version":3,"file":"types.d.mts","names":["BasePluginApi"],"sources":["../../../src/api/types.ts"],"mappings":";;iBAGiB,kBAAkB,KAAKA;EACtC,eAAe"}
package/dist/esm/api.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{b as e,i as t,l as n,o as r,s as i}from"./RouterError-DyPeuufj.mjs";import{S as a,c as o,l as s,n as c,o as l,u}from"./internals-D-5hS0qt.mjs";import{A as d,C as f,D as p,E as m,F as h,I as g,L as _,M as v,N as y,O as b,P as x,R as S,S as C,T as w,_ as T,a as E,b as ee,c as D,d as O,f as k,g as A,h as te,i as j,j as M,k as N,l as ne,m as re,n as ie,o as ae,p as oe,r as se,s as ce,t as le,u as P,w as ue,x as F,y as I,z as de}from"./Router-B6jYUVPG.mjs";import{t as fe}from"./helpers-BXXeSrT8.mjs";const L=t(`router`);function R(t,n){if(t())throw L.code(e.REENTRANT_TREE_MUTATION)`cannot mutate the route tree from inside a subscribeChanges handler — the mutation would run while a TREE_CHANGED emit is on the stack and the tree must stay atomic. Defer it: queueMicrotask(() => routes.add(...)) or await.`;if(n())throw L.code(e.REENTRANT_TREE_MUTATION)`cannot mutate the route tree from inside replace()'s revalidation — the tree would move under a state that has not been revalidated yet. Defer it: queueMicrotask(() => routes.replace(...)) or await.`}function pe(e,t,n){if(t){let r=t===e;if(r||t.startsWith(`${e}.`)){let i=r?``:` (current: "${t}")`;return n.warn(`router.removeRoute`,`Cannot remove route "${e}" — it is currently active${i}. Navigate away first.`),!1}}return!0}function me(e,t){t.warn(`router.removeRoute`,`Route "${e}" removed while navigation is in progress. Removing a route the router is navigating to (or an ancestor of it) fails that navigation with "ROUTE_NOT_FOUND" — the rejected navigate() promise and onTransitionError carry the same code, and onTransitionCancel never fires. The committed state is not affected either way.`)}function z(e){let t=e.indexOf(`?`);return t===-1?e:e.slice(0,t)}function he(e,t,n,r){return n&&z(e)!==z(t)?(r.error(`router.setRootPath`,"Cannot change the root PATH while navigation is in progress — it moves every route's path, including the one being navigated to. Wait for navigation to complete. (Changing only the `?`-declared query names is allowed here: it moves no paths.)"),!1):!0}const B=t(`router`,`claimContextNamespace`),ge=t(`router`,`extendRouter`),V=Object.freeze,H=Object.keys,U=new WeakMap;function _e(t){let d=U.get(t);if(d)return d;let p=l(t),h={makeState:(e,t,n,r)=>p.makeState(e,t,n,r),forwardState:(e,t,n)=>(o(p.checks,c[`forwardState:entry`],e,t,n),p.forwardState(e,t,n)),matchPath:e=>p.matchPath(e,p.getOptions()),navigateToState:(e,t)=>p.navigateToState(e,t),setRootPath:e=>{if(s(p.isDisposed),R(p.treeChanged.isEmitting,()=>p.routeGetStore().revalidating),!he(p.getRootPath(),e,p.isTransitioning(),p.logger))return!1;let t=p.getRootPath();return p.setRootPath(e),t!==e&&p.treeChanged.emit({op:`rootPath`,previous:t,next:e}),!0},getRootPath:p.getRootPath,addEventListener:(e,t)=>p.addEventListener(e,t),buildNavigationState:(e,t={},n={})=>{u(p,`buildNavigationState`,e,t);let r=fe(t);o(p.checks,c[`buildNavigationState:state`],e,r,n);let i=m(p.port(),e,r,n,{diagnoseUndeclared:!0});if(p.buildStateResolved(i.name,i.path))return a(`buildNavigationState`,i.name,i.path,p.port().queryNames(i.name)),ue(i,w(i,p.port()))},buildPathResolved:(e,t,n)=>p.buildPathResolved(e,t,n),getAdoptedOrigins:p.getAdoptedOrigins,logger:V({log:(e,t,...n)=>{p.logger.log(e,t,...n)},warn:(e,t,...n)=>{p.logger.warn(e,t,...n)},error:(e,t,...n)=>{p.logger.error(e,t,...n)}}),getDeclaredQueryNames:e=>p.getDeclaredQueryNames(e),getUrlParams:e=>f(p.routeGetStore(),e),getForwardMap:()=>{let e=i();return r(e,p.routeGetStore().config.forwardMap),V(e)},getResolvedLimits:()=>p.dependenciesGetStore().limits,getDependencyKeys:()=>V(H(p.dependenciesGetStore().dependencies)),getExternalGuardNames:()=>{let[e,t]=p.routeGetStore().lifecycleNamespace.getFactoriesByOrigin().external;return V([...new Set([...H(e),...H(t)])])},getOptions:p.getOptions,getTree:p.getTree,addInterceptor:(e,t)=>{s(p.isDisposed),y(e,t);let n=p.interceptors.get(e);n||(n=[],p.interceptors.set(e,n)),n.push(t);let r=!1;return()=>{r||(r=!0,n.splice(n.indexOf(t),1))}},subscribeDiagnostic:p.subscribeDiagnostic,addCheck:(e,t)=>{s(p.isDisposed),M(e,t);let n=p.checks.get(e);n||(n=[],p.checks.set(e,n)),n.push(t);let r=!1;return()=>{r||(r=!0,n.splice(n.indexOf(t),1))}},getRouteConfig:e=>{let t=p.routeGetStore();if(t.matcher.hasRoute(e))return t.routeCustomFields[e]},extendRouter:n=>{s(p.isDisposed),v(n);let r=H(n);for(let n of r)if(n in t)throw ge.code(e.PLUGIN_CONFLICT)`Cannot extend router: property "${n}" already exists`;let i=r.map(e=>n[e]),a={keys:r};for(let[e,n]of r.entries())t[n]=i[e];p.routerExtensions.push(a);let o=!1;return()=>{if(o)return;o=!0;for(let e of a.keys)delete t[e];let e=p.routerExtensions.indexOf(a);e!==-1&&p.routerExtensions.splice(e,1)}},emitTransitionError:e=>{s(p.isDisposed),p.emitTransitionError(e)},claimContextNamespace:t=>{if(s(p.isDisposed),typeof t!=`string`||t===``)throw B.type`namespace must be a non-empty string, got ${typeof t==`string`?`an empty string`:typeof t}`;if(p.contextClaimRecords.has(t))throw B.code(e.CONTEXT_NAMESPACE_ALREADY_CLAIMED)`Cannot claim context namespace: "${t}" is already claimed by another plugin`;let r={write(e,i){p.contextClaimRecords.get(t)===r&&n(e.context,t,i)},release(){p.contextClaimRecords.get(t)===r&&p.contextClaimRecords.delete(t)}};return p.contextClaimRecords.set(t,r),r}},g=V(h);return U.set(t,g),g}const ve=t(`router`,`clear`),W=Object.freeze,G=Object.keys,ye=Object.freeze({replace:!0,revalidate:!0}),be=Object.freeze([]);function xe(e,t,n,r){let i=t=>e.has(t);F(t.decoders,i),F(t.encoders,i),F(t.defaultParams,i),F(t.defaultSearch,i),F(t.forwardMap,i),F(t.forwardFnMap,i),F(n,i),F(t.forwardMap,e=>i(t.forwardMap[e]));let[a,o]=r.getFactories();for(let e of G(o))i(e)&&r.clearCanActivate(e,`both`);for(let e of G(a))i(e)&&r.clearCanDeactivate(e,`both`)}function K(e,t,n,r){let i=n.forwardFnMap[t],a=n.forwardMap[t];i===void 0?a!==void 0&&(e.forwardTo=a):e.forwardTo=i,t in n.defaultParams&&(e.defaultParams=n.defaultParams[t]),t in n.defaultSearch&&(e.defaultSearch=n.defaultSearch[t]),t in n.decoders&&(e.decodeParams=n.decoders[t]),t in n.encoders&&(e.encodeParams=n.encoders[t]);let[o,s]=r;return t in s&&(e.canActivate=s[t]),t in o&&(e.canDeactivate=o[t]),e}function q(e,t,r,i){let a={name:e.name,path:e.path};return K(a,t,r,i),e.children&&n(a,`children`,e.children.map(e=>q(e,`${t}.${e.name}`,r,i))),a}function J(e,t,n,r){let i={name:e,path:t};return K(i,e,n,r),W(i)}function Y(e,t){let n=new Map,r=e.lifecycleNamespace.getFactories(),i=(a,o)=>{for(let s of a){let a=o?`${o}.${s.name}`:s.name;t(a)&&n.set(a,J(a,s.path,e.config,r)),s.children&&i(s.children,a)}};return i(e.definitions,``),n}function Se(e,t){let n=Y(e,e=>t.has(e));return W([...n.values()])}function Ce(e,t,n){let r=n.lifecycleNamespace.getFactories(),i=[],a=(e,t)=>{for(let o of e){let e=t?`${t}.${o.name}`:o.name;i.push(J(e,o.path,n.config,r)),o.children&&a(o.children,e)}};return a(e,t??``),W(i)}function we(e,t){let n=[],r=[];for(let[r,i]of e)t.has(r)||n.push(i);for(let[n,i]of t)e.has(n)||r.push(i);return{removed:W(n),added:W(r)}}function Te(e){let t={};return e.forwardTo!==void 0&&(t.forwardTo=e.forwardTo),e.defaultParams!==void 0&&(t.defaultParams=e.defaultParams),e.defaultSearch!==void 0&&(t.defaultSearch=e.defaultSearch),e.encodeParams!==void 0&&(t.encodeParams=e.encodeParams),e.decodeParams!==void 0&&(t.decodeParams=e.decodeParams),W(t)}function Ee(e,t,n,r){E(e,t,n);let i=k(e,t,n,r);I(i.matcher,i.config,`addRoute`),e.lifecycleNamespace.preflightHandlerLimit(i.pendingCanActivate.keys(),i.pendingCanDeactivate.keys(),!1),j(e,i)}function X(e,t,n){e.systemCommit(t,n,ye)}function De(e,t,n,r,i){ne(t,`addRoute`),O(t,`addRoute`),ae(t,`addRoute`),ce(t,``,`addRoute`),D(t,``,`addRoute`);let a=oe(t,e.rootPath,e.matcherOptions,n.logger);I(a.matcher,a.config,`addRoute`),e.lifecycleNamespace.preflightHandlerLimit(a.pendingCanActivate.keys(),a.pendingCanDeactivate.keys(),!0);let o=A(a,e.depsStore);e.lifecycleNamespace.clearDefinitionGuards(),j(e,a,o),e.revalidating=!0;let s=r();try{if(i?.(),s!==void 0){let t=n.matchPath(s.path,n.getOptions());if(t){if(t.name===s.name)X(n,{...t,context:s.context,transition:s.transition},s);else{let{toDeactivate:r,toActivate:i,intersection:a}=ie(t,s,n.getMetaForState);if(e.lifecycleNamespace.canNavigateTo([],i,t,s,`replace`)){let e={phase:`activating`,from:s.name,reason:`success`,replace:!0,segments:{deactivated:r,activated:i,intersection:a}};X(n,{...t,transition:e},s)}else n.revalidateToNotFound(s.path)}}else n.revalidateToNotFound(s.path)}}finally{e.revalidating=!1}}function Oe(e,t,n){let r=e.definitions,i=C(r,t);if(i===void 0)return;let a=n?Se(e,i):be;return xe(i,e.config,e.routeCustomFields,e.lifecycleNamespace),te(e,r),a}function ke(e,t){let n=e.matcher.getSegmentsByName(t);if(!n)return;let r=n.at(-1),i=S(r),a=e.lifecycleNamespace.getFactories();return q(i,t,e.config,a)}const Z=new WeakMap;function Ae(t){let n=Z.get(t);if(n)return n;let r=l(t),i=r.routeGetStore(),a=e=>{r.treeChanged.emit(e)},u=W({add:(e,t)=>{s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating);let n=Array.isArray(e)?e:[e],l=t?.parent,u=g(n);if(o(r.checks,c[`addRoute:batch`],u,l),Ee(i,u,l,r.logger),r.treeChanged.listenerCount()>0){let e=Ce(u,l,i);a(l===void 0?{op:`add`,added:e}:{op:`add`,added:e,parent:l})}},remove:e=>{if(s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating),o(r.checks,c[`removeRoute:entry`],e),P(e,`removeRoute`),!pe(e,r.getStateName(),r.logger))return;let t=r.treeChanged.listenerCount()>0,n=Oe(i,e,t);n===void 0?r.logger.warn(`router.removeRoute`,`Route "${e}" not found. No changes made.`):(r.isTransitioning()&&me(e,r.logger),t&&a({op:`remove`,name:e,removedSubtree:n}))},update:(e,t)=>{if(s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating),o(r.checks,c[`updateRoute:entry`],e,t),P(e,`updateRoute`),!i.matcher.hasRoute(e))return;r.isTransitioning()&&r.logger.error(`router.updateRoute`,`Updating route "${e}" while navigation is in progress. This may cause unexpected behavior.`);let n=i.lifecycleNamespace,l=re(i,n,e,t);if(r.treeChanged.listenerCount()>0){let t=Te(l);G(t).length>0&&a({op:`update`,name:e,patch:t})}},clear:()=>{if(s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating),r.getStateName()!==void 0)throw ve.code(e.ROUTER_NOT_STOPPED)`Cannot clear routes while a state is committed. Use replace(routes) to swap the tree on a running router, or stop() first.`;if(r.isTransitioning()){r.logger.error(`router.clear`,`Cannot clear routes while navigation is in progress. Wait for navigation to complete.`);return}let t=r.treeChanged.listenerCount()>0?W([...Y(i,()=>!0).values()]):void 0;T(i),i.lifecycleNamespace.clearAll(),t!==void 0&&a({op:`clear`,removed:t})},has:e=>(o(r.checks,c[`hasRoute:entry`],e),i.matcher.hasRoute(e)),get:e=>(o(r.checks,c[`getRoute:entry`],e),ke(i,e)),replace:e=>{s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating);let n=Array.isArray(e)?e:[e];if(r.isTransitioning()){r.logger.error(`router.replace`,`Cannot replace routes while navigation is in progress. Wait for navigation to complete.`);return}let l=g(n);o(r.checks,c[`replaceRoutes:batch`],l);let u=r.treeChanged.listenerCount()>0?Y(i,()=>!0):void 0;De(i,l,r,()=>t.getState(),u===void 0?void 0:()=>{let e=Y(i,()=>!0),{removed:t,added:n}=we(u,e);a({op:`replace`,removed:t,added:n})})},subscribeChanges:e=>(h(e),r.treeChanged.subscribe(e))});return Z.set(t,u),u}const Q=Object.hasOwn,je=Object.keys,Me=e=>typeof e==`symbol`?e:String(e),Ne=[];function Pe(e,t,n,r){if(n===void 0)return;let i=e.dependencies,a=Me(t),o=r?je(i):Ne;if(o.includes(a)){let e=i[a];e!==n&&!(Number.isNaN(e)&&Number.isNaN(n))&&r?.dependencies.warnOverwrite(String(a),`setDependency`)}else r?.dependencies.validateDependencyCount(o.length,e.limits.maxDependencies,`setDependency`);i[a]=n}function Fe(e,t,n){let r=[],i=e.dependencies,a=new Set(n?je(i):Ne);_(t,(t,o)=>{a.has(t)?r.push(t):(n?.dependencies.validateDependencyCount(a.size,e.limits.maxDependencies,`setDependencies`),a.add(t)),d(i,t,o)}),r.length>0&&n?.dependencies.warnBatchOverwrite(r,`setDependencies`)}function Ie(e){let t=l(e);return{get:e=>{t.validator?.dependencies.validateDependencyName(e,`getDependency`);let n=t.dependenciesGetStore(),r=b(n,e);return t.validator?.dependencies.validateDependencyExists(e,r),r},getAll:()=>N(t.dependenciesGetStore()),set:(e,n)=>{s(t.isDisposed),t.validator?.dependencies.validateSetDependencyArgs(e,n,`setDependency`),Pe(t.dependenciesGetStore(),e,n,t.validator),s(t.isDisposed)},setAll:e=>{s(t.isDisposed);let n=t.dependenciesGetStore();t.validator?.dependencies.validateDependenciesObject(e,`setDependencies`),Fe(n,e,t.validator),s(t.isDisposed)},remove:e=>{s(t.isDisposed),t.validator?.dependencies.validateDependencyName(e,`removeDependency`);let n=t.dependenciesGetStore(),r=Me(e);Q(n.dependencies,r)||t.validator?.dependencies.warnRemoveNonExistent(String(r)),delete n.dependencies[r]},reset:()=>{s(t.isDisposed),p(t.dependenciesGetStore())},has:e=>(t.validator?.dependencies.validateDependencyName(e,`hasDependency`),Q(t.dependenciesGetStore().dependencies,e))}}function Le(e){let t=l(e),n=t.routeGetStore().lifecycleNamespace;return{addActivateGuard(e,r){s(t.isDisposed),x(e,`addActivateGuard`),o(t.checks,c[`addActivateGuard:entry`],e,r),n.addCanActivate(e,r,!1)},addDeactivateGuard(e,r){s(t.isDisposed),x(e,`addDeactivateGuard`),o(t.checks,c[`addDeactivateGuard:entry`],e,r),n.addCanDeactivate(e,r,!1)},removeActivateGuard(e){s(t.isDisposed),x(e,`removeActivateGuard`),o(t.checks,c[`removeActivateGuard:entry`],e),n.clearCanActivate(e,`external`)},removeDeactivateGuard(e){s(t.isDisposed),x(e,`removeDeactivateGuard`),o(t.checks,c[`removeDeactivateGuard:entry`],e),n.clearCanDeactivate(e,`external`)}}}const $=Object.entries,Re=Object.hasOwn,ze=t(`cloneRouter`);function Be(t,r,i){let a=l(t);if(a.isDisposed())throw ze.code(e.ROUTER_DISPOSED)`cannot clone a disposed router — dispose() is terminal`;a.validator?.dependencies.validateCloneArgs(r);let o=a.routeGetStore(),s=de(o.tree),c=o.config,u=o.resolvedForwardMap,d=o.routeCustomFields,{options:f,dependencies:p,pluginFactories:m,loggerConfig:h,limits:g,limitKeys:v}=a.getCloneState(),{definition:y,external:b}=o.lifecycleNamespace.getFactoriesByOrigin(),x={...p};r!==void 0&&_(r,(e,t)=>{n(x,e,t)});let S=i?.logger,C=S?{...h,...S}:h,w=new le(s,{...f,...o.matcherOptions?.queryParams!==void 0&&{queryParams:o.matcherOptions.queryParams},logger:C,...v!==void 0&&{limits:Object.fromEntries(v.filter(e=>Re(g,e)).map(e=>[e,g[e]]))},...o.matcherOptions?.urlParamsEncoding!==void 0&&{urlParamsEncoding:o.matcherOptions.urlParamsEncoding}},x),T=l(w),E=T.routeGetStore(),D=E.lifecycleNamespace;ee(E.config,c),se(E,Object.assign(E.resolvedForwardMap,u)),Object.assign(E.routeCustomFields,d),o.rootPath!==``&&T.setRootPath(o.rootPath);let[O,k]=y,[A,te]=b;for(let[e,t]of $(O))D.addCanDeactivate(e,t,!0);for(let[e,t]of $(k))D.addCanActivate(e,t,!0);let j=Le(w);for(let[e,t]of $(A))j.addDeactivateGuard(e,t);for(let[e,t]of $(te))j.addActivateGuard(e,t);let M=new Set(T.getCloneState().pluginFactories),N=m.filter(e=>!M.has(e));return N.length>0&&w.usePlugin(...N),w}export{Be as cloneRouter,Ie as getDependenciesApi,Le as getLifecycleApi,_e as getPluginApi,Ae as getRoutesApi};
1
+ import{b as e,i as t,l as n,o as r,s as i}from"./RouterError-DyPeuufj.mjs";import{S as a,c as o,l as s,n as c,o as l,u}from"./internals-D-5hS0qt.mjs";import{A as d,C as f,D as p,E as m,F as h,I as g,L as _,M as v,N as y,O as b,P as x,R as S,S as C,T as w,_ as T,a as E,b as ee,c as D,d as O,f as k,g as A,h as te,i as j,j as M,k as N,l as ne,m as re,n as ie,o as ae,p as oe,r as se,s as ce,t as le,u as P,w as ue,x as F,y as I,z as de}from"./Router-_DZAf0c_.mjs";import{t as fe}from"./helpers-BXXeSrT8.mjs";const L=t(`router`);function R(t,n){if(t())throw L.code(e.REENTRANT_TREE_MUTATION)`cannot mutate the route tree from inside a subscribeChanges handler — the mutation would run while a TREE_CHANGED emit is on the stack and the tree must stay atomic. Defer it: queueMicrotask(() => routes.add(...)) or await.`;if(n())throw L.code(e.REENTRANT_TREE_MUTATION)`cannot mutate the route tree from inside replace()'s revalidation — the tree would move under a state that has not been revalidated yet. Defer it: queueMicrotask(() => routes.replace(...)) or await.`}function pe(e,t,n){if(t){let r=t===e;if(r||t.startsWith(`${e}.`)){let i=r?``:` (current: "${t}")`;return n.warn(`router.removeRoute`,`Cannot remove route "${e}" — it is currently active${i}. Navigate away first.`),!1}}return!0}function me(e,t){t.warn(`router.removeRoute`,`Route "${e}" removed while navigation is in progress. Removing a route the router is navigating to (or an ancestor of it) fails that navigation with "ROUTE_NOT_FOUND" — the rejected navigate() promise and onTransitionError carry the same code, and onTransitionCancel never fires. The committed state is not affected either way.`)}function z(e){let t=e.indexOf(`?`);return t===-1?e:e.slice(0,t)}function he(e,t,n,r){return n&&z(e)!==z(t)?(r.error(`router.setRootPath`,"Cannot change the root PATH while navigation is in progress — it moves every route's path, including the one being navigated to. Wait for navigation to complete. (Changing only the `?`-declared query names is allowed here: it moves no paths.)"),!1):!0}const B=t(`router`,`claimContextNamespace`),ge=t(`router`,`extendRouter`),V=Object.freeze,H=Object.keys,U=new WeakMap;function _e(t){let d=U.get(t);if(d)return d;let p=l(t),h={makeState:(e,t,n,r)=>p.makeState(e,t,n,r),forwardState:(e,t,n)=>(o(p.checks,c[`forwardState:entry`],e,t,n),p.forwardState(e,t,n)),matchPath:e=>p.matchPath(e,p.getOptions()),navigateToState:(e,t)=>p.navigateToState(e,t),setRootPath:e=>{if(s(p.isDisposed),R(p.treeChanged.isEmitting,()=>p.routeGetStore().revalidating),!he(p.getRootPath(),e,p.isTransitioning(),p.logger))return!1;let t=p.getRootPath();return p.setRootPath(e),t!==e&&p.treeChanged.emit({op:`rootPath`,previous:t,next:e}),!0},getRootPath:p.getRootPath,addEventListener:(e,t)=>p.addEventListener(e,t),buildNavigationState:(e,t={},n={})=>{u(p,`buildNavigationState`,e,t);let r=fe(t);o(p.checks,c[`buildNavigationState:state`],e,r,n);let i=m(p.port(),e,r,n,{diagnoseUndeclared:!0});if(p.buildStateResolved(i.name,i.path))return a(`buildNavigationState`,i.name,i.path,p.port().queryNames(i.name)),ue(i,w(i,p.port()))},buildPathResolved:(e,t,n)=>p.buildPathResolved(e,t,n),getAdoptedOrigins:p.getAdoptedOrigins,logger:V({log:(e,t,...n)=>{p.logger.log(e,t,...n)},warn:(e,t,...n)=>{p.logger.warn(e,t,...n)},error:(e,t,...n)=>{p.logger.error(e,t,...n)}}),getDeclaredQueryNames:e=>p.getDeclaredQueryNames(e),getUrlParams:e=>f(p.routeGetStore(),e),getForwardMap:()=>{let e=i();return r(e,p.routeGetStore().config.forwardMap),V(e)},getResolvedLimits:()=>p.dependenciesGetStore().limits,getDependencyKeys:()=>V(H(p.dependenciesGetStore().dependencies)),getExternalGuardNames:()=>{let[e,t]=p.routeGetStore().lifecycleNamespace.getFactoriesByOrigin().external;return V([...new Set([...H(e),...H(t)])])},getOptions:p.getOptions,getTree:p.getTree,addInterceptor:(e,t)=>{s(p.isDisposed),y(e,t);let n=p.interceptors.get(e);n||(n=[],p.interceptors.set(e,n)),n.push(t);let r=!1;return()=>{r||(r=!0,n.splice(n.indexOf(t),1))}},subscribeDiagnostic:p.subscribeDiagnostic,addCheck:(e,t)=>{s(p.isDisposed),M(e,t);let n=p.checks.get(e);n||(n=[],p.checks.set(e,n)),n.push(t);let r=!1;return()=>{r||(r=!0,n.splice(n.indexOf(t),1))}},getRouteConfig:e=>{let t=p.routeGetStore();if(t.matcher.hasRoute(e))return t.routeCustomFields[e]},extendRouter:n=>{s(p.isDisposed),v(n);let r=H(n);for(let n of r)if(n in t)throw ge.code(e.PLUGIN_CONFLICT)`Cannot extend router: property "${n}" already exists`;let i=r.map(e=>n[e]),a={keys:r};for(let[e,n]of r.entries())t[n]=i[e];p.routerExtensions.push(a);let o=!1;return()=>{if(o)return;o=!0;for(let e of a.keys)delete t[e];let e=p.routerExtensions.indexOf(a);e!==-1&&p.routerExtensions.splice(e,1)}},emitTransitionError:e=>{s(p.isDisposed),p.emitTransitionError(e)},claimContextNamespace:t=>{if(s(p.isDisposed),typeof t!=`string`||t===``)throw B.type`namespace must be a non-empty string, got ${typeof t==`string`?`an empty string`:typeof t}`;if(p.contextClaimRecords.has(t))throw B.code(e.CONTEXT_NAMESPACE_ALREADY_CLAIMED)`Cannot claim context namespace: "${t}" is already claimed by another plugin`;let r={write(e,i){p.contextClaimRecords.get(t)===r&&n(e.context,t,i)},release(){p.contextClaimRecords.get(t)===r&&p.contextClaimRecords.delete(t)}};return p.contextClaimRecords.set(t,r),r}},g=V(h);return U.set(t,g),g}const ve=t(`router`,`clear`),W=Object.freeze,G=Object.keys,ye=Object.freeze({replace:!0,revalidate:!0}),be=Object.freeze([]);function xe(e,t,n,r){let i=t=>e.has(t);F(t.decoders,i),F(t.encoders,i),F(t.defaultParams,i),F(t.defaultSearch,i),F(t.forwardMap,i),F(t.forwardFnMap,i),F(n,i),F(t.forwardMap,e=>i(t.forwardMap[e]));let[a,o]=r.getFactories();for(let e of G(o))i(e)&&r.clearCanActivate(e,`both`);for(let e of G(a))i(e)&&r.clearCanDeactivate(e,`both`)}function K(e,t,n,r){let i=n.forwardFnMap[t],a=n.forwardMap[t];i===void 0?a!==void 0&&(e.forwardTo=a):e.forwardTo=i,t in n.defaultParams&&(e.defaultParams=n.defaultParams[t]),t in n.defaultSearch&&(e.defaultSearch=n.defaultSearch[t]),t in n.decoders&&(e.decodeParams=n.decoders[t]),t in n.encoders&&(e.encodeParams=n.encoders[t]);let[o,s]=r;return t in s&&(e.canActivate=s[t]),t in o&&(e.canDeactivate=o[t]),e}function q(e,t,r,i){let a={name:e.name,path:e.path};return K(a,t,r,i),e.children&&n(a,`children`,e.children.map(e=>q(e,`${t}.${e.name}`,r,i))),a}function J(e,t,n,r){let i={name:e,path:t};return K(i,e,n,r),W(i)}function Y(e,t){let n=new Map,r=e.lifecycleNamespace.getFactories(),i=(a,o)=>{for(let s of a){let a=o?`${o}.${s.name}`:s.name;t(a)&&n.set(a,J(a,s.path,e.config,r)),s.children&&i(s.children,a)}};return i(e.definitions,``),n}function Se(e,t){let n=Y(e,e=>t.has(e));return W([...n.values()])}function Ce(e,t,n){let r=n.lifecycleNamespace.getFactories(),i=[],a=(e,t)=>{for(let o of e){let e=t?`${t}.${o.name}`:o.name;i.push(J(e,o.path,n.config,r)),o.children&&a(o.children,e)}};return a(e,t??``),W(i)}function we(e,t){let n=[],r=[];for(let[r,i]of e)t.has(r)||n.push(i);for(let[n,i]of t)e.has(n)||r.push(i);return{removed:W(n),added:W(r)}}function Te(e){let t={};return e.forwardTo!==void 0&&(t.forwardTo=e.forwardTo),e.defaultParams!==void 0&&(t.defaultParams=e.defaultParams),e.defaultSearch!==void 0&&(t.defaultSearch=e.defaultSearch),e.encodeParams!==void 0&&(t.encodeParams=e.encodeParams),e.decodeParams!==void 0&&(t.decodeParams=e.decodeParams),W(t)}function Ee(e,t,n,r){E(e,t,n);let i=k(e,t,n,r);I(i.matcher,i.config,`addRoute`),e.lifecycleNamespace.preflightHandlerLimit(i.pendingCanActivate.keys(),i.pendingCanDeactivate.keys(),!1),j(e,i)}function X(e,t,n){e.systemCommit(t,n,ye)}function De(e,t,n,r,i){ne(t,`addRoute`),O(t,`addRoute`),ae(t,`addRoute`),ce(t,``,`addRoute`),D(t,``,`addRoute`);let a=oe(t,e.rootPath,e.matcherOptions,n.logger);I(a.matcher,a.config,`addRoute`),e.lifecycleNamespace.preflightHandlerLimit(a.pendingCanActivate.keys(),a.pendingCanDeactivate.keys(),!0);let o=A(a,e.depsStore);e.lifecycleNamespace.clearDefinitionGuards(),j(e,a,o),e.revalidating=!0;let s=r();try{if(i?.(),s!==void 0){let t=n.matchPath(s.path,n.getOptions());if(t){if(t.name===s.name)X(n,{...t,context:s.context,transition:s.transition},s);else{let{toDeactivate:r,toActivate:i,intersection:a}=ie(t,s,n.getMetaForState);if(e.lifecycleNamespace.canNavigateTo([],i,t,s,`replace`)){let e={phase:`activating`,from:s.name,reason:`success`,replace:!0,segments:{deactivated:r,activated:i,intersection:a}};X(n,{...t,transition:e},s)}else n.revalidateToNotFound(s.path)}}else n.revalidateToNotFound(s.path)}}finally{e.revalidating=!1}}function Oe(e,t,n){let r=e.definitions,i=C(r,t);if(i===void 0)return;let a=n?Se(e,i):be;return xe(i,e.config,e.routeCustomFields,e.lifecycleNamespace),te(e,r),a}function ke(e,t){let n=e.matcher.getSegmentsByName(t);if(!n)return;let r=n.at(-1),i=S(r),a=e.lifecycleNamespace.getFactories();return q(i,t,e.config,a)}const Z=new WeakMap;function Ae(t){let n=Z.get(t);if(n)return n;let r=l(t),i=r.routeGetStore(),a=e=>{r.treeChanged.emit(e)},u=W({add:(e,t)=>{s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating);let n=Array.isArray(e)?e:[e],l=t?.parent,u=g(n);if(o(r.checks,c[`addRoute:batch`],u,l),Ee(i,u,l,r.logger),r.treeChanged.listenerCount()>0){let e=Ce(u,l,i);a(l===void 0?{op:`add`,added:e}:{op:`add`,added:e,parent:l})}},remove:e=>{if(s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating),o(r.checks,c[`removeRoute:entry`],e),P(e,`removeRoute`),!pe(e,r.getStateName(),r.logger))return;let t=r.treeChanged.listenerCount()>0,n=Oe(i,e,t);n===void 0?r.logger.warn(`router.removeRoute`,`Route "${e}" not found. No changes made.`):(r.isTransitioning()&&me(e,r.logger),t&&a({op:`remove`,name:e,removedSubtree:n}))},update:(e,t)=>{if(s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating),o(r.checks,c[`updateRoute:entry`],e,t),P(e,`updateRoute`),!i.matcher.hasRoute(e))return;r.isTransitioning()&&r.logger.error(`router.updateRoute`,`Updating route "${e}" while navigation is in progress. This may cause unexpected behavior.`);let n=i.lifecycleNamespace,l=re(i,n,e,t);if(r.treeChanged.listenerCount()>0){let t=Te(l);G(t).length>0&&a({op:`update`,name:e,patch:t})}},clear:()=>{if(s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating),r.getStateName()!==void 0)throw ve.code(e.ROUTER_NOT_STOPPED)`Cannot clear routes while a state is committed. Use replace(routes) to swap the tree on a running router, or stop() first.`;if(r.isTransitioning()){r.logger.error(`router.clear`,`Cannot clear routes while navigation is in progress. Wait for navigation to complete.`);return}let t=r.treeChanged.listenerCount()>0?W([...Y(i,()=>!0).values()]):void 0;T(i),i.lifecycleNamespace.clearAll(),t!==void 0&&a({op:`clear`,removed:t})},has:e=>(o(r.checks,c[`hasRoute:entry`],e),i.matcher.hasRoute(e)),get:e=>(o(r.checks,c[`getRoute:entry`],e),ke(i,e)),replace:e=>{s(r.isDisposed),R(r.treeChanged.isEmitting,()=>i.revalidating);let n=Array.isArray(e)?e:[e];if(r.isTransitioning()){r.logger.error(`router.replace`,`Cannot replace routes while navigation is in progress. Wait for navigation to complete.`);return}let l=g(n);o(r.checks,c[`replaceRoutes:batch`],l);let u=r.treeChanged.listenerCount()>0?Y(i,()=>!0):void 0;De(i,l,r,()=>t.getState(),u===void 0?void 0:()=>{let e=Y(i,()=>!0),{removed:t,added:n}=we(u,e);a({op:`replace`,removed:t,added:n})})},subscribeChanges:e=>(h(e),r.treeChanged.subscribe(e))});return Z.set(t,u),u}const Q=Object.hasOwn,je=Object.keys,Me=e=>typeof e==`symbol`?e:String(e),Ne=[];function Pe(e,t,n,r){if(n===void 0)return;let i=e.dependencies,a=Me(t),o=r?je(i):Ne;if(o.includes(a)){let e=i[a];e!==n&&!(Number.isNaN(e)&&Number.isNaN(n))&&r?.dependencies.warnOverwrite(String(a),`setDependency`)}else r?.dependencies.validateDependencyCount(o.length,e.limits.maxDependencies,`setDependency`);i[a]=n}function Fe(e,t,n){let r=[],i=e.dependencies,a=new Set(n?je(i):Ne);_(t,(t,o)=>{a.has(t)?r.push(t):(n?.dependencies.validateDependencyCount(a.size,e.limits.maxDependencies,`setDependencies`),a.add(t)),d(i,t,o)}),r.length>0&&n?.dependencies.warnBatchOverwrite(r,`setDependencies`)}function Ie(e){let t=l(e);return{get:e=>{t.validator?.dependencies.validateDependencyName(e,`getDependency`);let n=t.dependenciesGetStore(),r=b(n,e);return t.validator?.dependencies.validateDependencyExists(e,r),r},getAll:()=>N(t.dependenciesGetStore()),set:(e,n)=>{s(t.isDisposed),t.validator?.dependencies.validateSetDependencyArgs(e,n,`setDependency`),Pe(t.dependenciesGetStore(),e,n,t.validator),s(t.isDisposed)},setAll:e=>{s(t.isDisposed);let n=t.dependenciesGetStore();t.validator?.dependencies.validateDependenciesObject(e,`setDependencies`),Fe(n,e,t.validator),s(t.isDisposed)},remove:e=>{s(t.isDisposed),t.validator?.dependencies.validateDependencyName(e,`removeDependency`);let n=t.dependenciesGetStore(),r=Me(e);Q(n.dependencies,r)||t.validator?.dependencies.warnRemoveNonExistent(String(r)),delete n.dependencies[r]},reset:()=>{s(t.isDisposed),p(t.dependenciesGetStore())},has:e=>(t.validator?.dependencies.validateDependencyName(e,`hasDependency`),Q(t.dependenciesGetStore().dependencies,e))}}function Le(e){let t=l(e),n=t.routeGetStore().lifecycleNamespace;return{addActivateGuard(e,r){s(t.isDisposed),x(e,`addActivateGuard`),o(t.checks,c[`addActivateGuard:entry`],e,r),n.addCanActivate(e,r,!1)},addDeactivateGuard(e,r){s(t.isDisposed),x(e,`addDeactivateGuard`),o(t.checks,c[`addDeactivateGuard:entry`],e,r),n.addCanDeactivate(e,r,!1)},removeActivateGuard(e){s(t.isDisposed),x(e,`removeActivateGuard`),o(t.checks,c[`removeActivateGuard:entry`],e),n.clearCanActivate(e,`external`)},removeDeactivateGuard(e){s(t.isDisposed),x(e,`removeDeactivateGuard`),o(t.checks,c[`removeDeactivateGuard:entry`],e),n.clearCanDeactivate(e,`external`)}}}const $=Object.entries,Re=Object.hasOwn,ze=t(`cloneRouter`);function Be(t,r,i){let a=l(t);if(a.isDisposed())throw ze.code(e.ROUTER_DISPOSED)`cannot clone a disposed router — dispose() is terminal`;a.validator?.dependencies.validateCloneArgs(r);let o=a.routeGetStore(),s=de(o.tree),c=o.config,u=o.resolvedForwardMap,d=o.routeCustomFields,{options:f,dependencies:p,pluginFactories:m,loggerConfig:h,limits:g,limitKeys:v}=a.getCloneState(),{definition:y,external:b}=o.lifecycleNamespace.getFactoriesByOrigin(),x={...p};r!==void 0&&_(r,(e,t)=>{n(x,e,t)});let S=i?.logger,C=S?{...h,...S}:h,w=new le(s,{...f,...o.matcherOptions?.queryParams!==void 0&&{queryParams:o.matcherOptions.queryParams},logger:C,...v!==void 0&&{limits:Object.fromEntries(v.filter(e=>Re(g,e)).map(e=>[e,g[e]]))},...o.matcherOptions?.urlParamsEncoding!==void 0&&{urlParamsEncoding:o.matcherOptions.urlParamsEncoding}},x),T=l(w),E=T.routeGetStore(),D=E.lifecycleNamespace;ee(E.config,c),se(E,Object.assign(E.resolvedForwardMap,u)),Object.assign(E.routeCustomFields,d),o.rootPath!==``&&T.setRootPath(o.rootPath);let[O,k]=y,[A,te]=b;for(let[e,t]of $(O))D.addCanDeactivate(e,t,!0);for(let[e,t]of $(k))D.addCanActivate(e,t,!0);let j=Le(w);for(let[e,t]of $(A))j.addDeactivateGuard(e,t);for(let[e,t]of $(te))j.addActivateGuard(e,t);let M=new Set(T.getCloneState().pluginFactories),N=m.filter(e=>!M.has(e));return N.length>0&&w.usePlugin(...N),w}export{Be as cloneRouter,Ie as getDependenciesApi,Le as getLifecycleApi,_e as getPluginApi,Ae as getRoutesApi};
2
2
  //# sourceMappingURL=api.mjs.map
@@ -1,5 +1,4 @@
1
1
  import { Params } from "../types/base.mjs";
2
- //#region src/channels/guard.d.ts
3
2
  /**
4
3
  * THE predicate of the always-on channel guard: the first key the caller put in
5
4
  * the PATH bag while the route declares it as a QUERY param, or `undefined`
@@ -23,5 +22,4 @@ import { Params } from "../types/base.mjs";
23
22
  * @internal
24
23
  */
25
24
  export declare function findMisChanneledKey(params: Params | undefined, queryNames: readonly string[]): string | undefined;
26
- //#endregion
27
25
  //# sourceMappingURL=guard.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"guard.d.mts","names":[],"sources":["../../../src/channels/guard.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;wBAyCgB,oBACd,QAAQ,oBACR"}
1
+ {"version":3,"file":"guard.d.mts","names":[],"sources":["../../../src/channels/guard.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;wBAyCgB,oBACd,QAAQ,oBACR"}
@@ -1,5 +1,4 @@
1
1
  import { ErrorCodeKeys, ErrorCodeToValueMap, ErrorCodeValues, EventToNameMap } from "./types/constants.mjs";
2
- //#region src/constants.d.ts
3
2
  export type ConstantsKeys = "UNKNOWN_ROUTE";
4
3
  export type Constants = Readonly<Record<ConstantsKeys, string>>;
5
4
  export type ErrorCodes = Record<ErrorCodeKeys, ErrorCodeValues>;
@@ -20,5 +19,4 @@ export declare const constants: Constants;
20
19
  * Used with addEventListener/removeEventListener for reactive subscriptions.
21
20
  */
22
21
  export declare const events: EventToNameMap;
23
- //#endregion
24
22
  //# sourceMappingURL=constants.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.mts","names":[],"sources":["../../src/constants.ts"],"mappings":";;YAWY;YAEA,YAAY,SAAS,OAAO;YAM5B,aAAa,OAAO,eAAe;;;;;;qBAOlC,YAAY;;;;;qBAuBZ;qBA2BA,WAAW;;;;;qBAsBX,QAAQ"}
1
+ {"version":3,"file":"constants.d.mts","names":[],"sources":["../../src/constants.ts"],"mappings":";YAWY;YAEA,YAAY,SAAS,OAAO;YAM5B,aAAa,OAAO,eAAe;;;;;;qBAOlC,YAAY;;;;;qBAuBZ;qBA2BA,WAAW;;;;;qBAsBX,QAAQ"}
@@ -1,6 +1,5 @@
1
1
  import { DefaultDependencies, Options, Route } from "./types/router.mjs";
2
2
  import { Router } from "./Router.mjs";
3
- //#region src/createRouter.d.ts
4
3
  /**
5
4
  * Creates a new router instance.
6
5
  *
@@ -18,5 +17,4 @@ import { Router } from "./Router.mjs";
18
17
  * router.start('/');
19
18
  */
20
19
  export declare const createRouter: <Dependencies extends DefaultDependencies = DefaultDependencies>(routes?: Route<Dependencies>[], options?: Partial<Options<Dependencies>>, dependencies?: Dependencies) => Router<Dependencies>;
21
- //#endregion
22
20
  //# sourceMappingURL=createRouter.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createRouter.d.mts","names":[],"sources":["../../src/createRouter.ts"],"mappings":";;;;;;;;;;;;;;;;;;;qBAsBa,eACX,qBAAqB,sBAAsB,qBAE3C,SAAQ,MAAM,iBACd,UAAS,QAAQ,QAAQ,gBACzB,eAAc,iBACb,OAAO"}
1
+ {"version":3,"file":"createRouter.d.mts","names":[],"sources":["../../src/createRouter.ts"],"mappings":";;;;;;;;;;;;;;;;;;qBAsBa,eACX,qBAAqB,sBAAsB,qBAE3C,SAAQ,MAAM,iBACd,UAAS,QAAQ,QAAQ,gBACzB,eAAc,iBACb,OAAO"}
@@ -1,6 +1,5 @@
1
1
  import { DefaultDependencies } from "./types/router.mjs";
2
2
  import { Limits } from "./types/internal.mjs";
3
- //#region src/dependenciesStore.d.ts
4
3
  /**
5
4
  * The router's dependency record — plain data the router owns itself, with no
6
5
  * namespace in front of it. Every operation on it that core runs for its own
@@ -14,5 +13,4 @@ export interface DependenciesStore<Dependencies extends DefaultDependencies = De
14
13
  dependencies: Partial<Dependencies>;
15
14
  limits: Limits;
16
15
  }
17
- //#endregion
18
16
  //# sourceMappingURL=dependenciesStore.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dependenciesStore.d.mts","names":[],"sources":["../../src/dependenciesStore.ts"],"mappings":";;;;;;;;;;;;iBAkBiB,kBACf,qBAAqB,sBAAsB;EAE3C,cAAc,QAAQ;EACtB,QAAQ"}
1
+ {"version":3,"file":"dependenciesStore.d.mts","names":[],"sources":["../../src/dependenciesStore.ts"],"mappings":";;;;;;;;;;;iBAkBiB,kBACf,qBAAqB,sBAAsB;EAE3C,cAAc,QAAQ;EACtB,QAAQ"}
@@ -1,5 +1,4 @@
1
1
  import { ParamMeta } from "../path-matcher/types.mjs";
2
- //#region src/engine/builder/types.d.ts
3
2
  /**
4
3
  * Definition of a route for configuration.
5
4
  */
@@ -43,5 +42,4 @@ export interface RouteTree {
43
42
  */
44
43
  readonly paramTypeMap: Readonly<Record<string, "url" | "query">>;
45
44
  }
46
- //#endregion
47
45
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/engine/builder/types.ts"],"mappings":";;;;;iBAiBiB;GACd;EACD;EACA;EACA,WAAW;;;;;;;;;;;;iBAiBI;;WAIN;;WAGA;;WAGA;;WAGA,UAAU,oBAAoB;;WAG9B,WAAW;;WAKX,QAAQ;;WAGR,8BAA8B;;WAG9B;;;;;;WAOA,cAAc,SAAS"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/engine/builder/types.ts"],"mappings":";;;;iBAiBiB;GACd;EACD;EACA;EACA,WAAW;;;;;;;;;;;;iBAiBI;;WAIN;;WAGA;;WAGA;;WAGA,UAAU,oBAAoB;;WAG9B,WAAW;;WAKX,QAAQ;;WAGR,8BAA8B;;WAG9B;;;;;;WAOA,cAAc,SAAS"}
@@ -1,6 +1,5 @@
1
1
  import { SegmentMatcher } from "./path-matcher/SegmentMatcher.mjs";
2
2
  import { Options } from "./search-params/types.mjs";
3
- //#region src/engine/createMatcher.d.ts
4
3
  /**
5
4
  * Query string formatting options.
6
5
  *
@@ -24,5 +23,4 @@ export interface CreateMatcherOptions {
24
23
  * without knowing the underlying SegmentMatcher implementation.
25
24
  */
26
25
  export type Matcher = SegmentMatcher;
27
- //#endregion
28
26
  //# sourceMappingURL=createMatcher.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createMatcher.d.mts","names":[],"sources":["../../../src/engine/createMatcher.ts"],"mappings":";;;;;;;;YAwBY,oBAAoB,SAAS;;;;iBAKxB;WACN;WACA;WACA;WACA;WACA,cAAc;;;;;;;;YASb,UAAU"}
1
+ {"version":3,"file":"createMatcher.d.mts","names":[],"sources":["../../../src/engine/createMatcher.ts"],"mappings":";;;;;;;YAwBY,oBAAoB,SAAS;;;;iBAKxB;WACN;WACA;WACA;WACA;WACA,cAAc;;;;;;;;YASb,UAAU"}
@@ -1,5 +1,4 @@
1
1
  import { BuildPathOptions, MatchResult, MatcherInputNode, ResolvedMatcherOptions, SegmentMatcherOptions } from "./types.mjs";
2
- //#region src/engine/path-matcher/SegmentMatcher.d.ts
3
2
  export declare class SegmentMatcher {
4
3
  #private;
5
4
  get options(): ResolvedMatcherOptions;
@@ -24,5 +23,4 @@ export declare class SegmentMatcher {
24
23
  getDeclaredQueryParams(name: string): readonly string[] | undefined;
25
24
  hasRoute(name: string): boolean;
26
25
  }
27
- //#endregion
28
26
  //# sourceMappingURL=SegmentMatcher.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SegmentMatcher.d.mts","names":[],"sources":["../../../../src/engine/path-matcher/SegmentMatcher.ts"],"mappings":";;qBA0La;;MACP,WAAW;EA2BH,YAAA,SAAS;EAoFrB,aAAa,MAAM;EAkBnB,MAAM,eAAe;EAqDrB,UACE,cACA,SAAS,yBACT,SAAS,yBACT,UAAU;EA4BZ,kBAAkB,wBAAwB;EAO1C,cACE,eACC,SAAS,eAAe;;;;;;;;;;;;;EAgB3B,uBAAuB;EAIvB,SAAS"}
1
+ {"version":3,"file":"SegmentMatcher.d.mts","names":[],"sources":["../../../../src/engine/path-matcher/SegmentMatcher.ts"],"mappings":";qBA0La;;MACP,WAAW;EA2BH,YAAA,SAAS;EAoFrB,aAAa,MAAM;EAkBnB,MAAM,eAAe;EAqDrB,UACE,cACA,SAAS,yBACT,SAAS,yBACT,UAAU;EA4BZ,kBAAkB,wBAAwB;EAO1C,cACE,eACC,SAAS,eAAe;;;;;;;;;;;;;EAgB3B,uBAAuB;EAIvB,SAAS"}
@@ -1,5 +1,4 @@
1
1
  import { ParamMeta } from "./types.mjs";
2
- //#region src/engine/path-matcher/buildParamMeta.d.ts
3
2
  /**
4
3
  * Builds parameter metadata from a route path pattern: the URL params its
5
4
  * `:param` and `*splat` slots declare, the query params its `?name`
@@ -27,5 +26,4 @@ import { ParamMeta } from "./types.mjs";
27
26
  * ```
28
27
  */
29
28
  export declare function buildParamMeta(path: string): ParamMeta;
30
- //#endregion
31
29
  //# sourceMappingURL=buildParamMeta.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"buildParamMeta.d.mts","names":[],"sources":["../../../../src/engine/path-matcher/buildParamMeta.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA8IgB,eAAe,eAAe"}
1
+ {"version":3,"file":"buildParamMeta.d.mts","names":[],"sources":["../../../../src/engine/path-matcher/buildParamMeta.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;wBA8IgB,eAAe,eAAe"}
@@ -1,4 +1,3 @@
1
- //#region src/engine/path-matcher/types.d.ts
2
1
  /**
3
2
  * Path Matcher Type Definitions.
4
3
  *
@@ -85,5 +84,4 @@ export interface ResolvedMatcherOptions {
85
84
  readonly parseQueryString: (queryString: string) => Record<string, unknown>;
86
85
  readonly buildQueryString: (params: Record<string, unknown>) => string;
87
86
  }
88
- //#endregion
89
87
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/engine/path-matcher/types.ts"],"mappings":";;;;;;;;;;;iBAWiB;;;;;;WAMN;;;;;;WAOA;;;;;;WAOA,cAAc,SAAS;;;;;;WAOvB;;;;;;;;;;YAeC;iBAMK;WACN;WACA;WACA;WACA;WACA,UAAU,oBAAoB;WAC9B,8BAA8B;WAC9B,WAAW;WACX,cAAc,SAAS;;;;;iBAqCjB;WACN;WACA;;iBA2BM;WACN,mBAAmB;;WAEnB,QAAQ,SAAS;;WAEjB,QAAQ,SAAS;WACjB,MAAM,SAAS,eAAe;;iBAOxB;EACf;EACA;EACA;EACA,oBAAoB;EACpB,mBAAmB,wBAAwB;EAC3C,mBAAmB,QAAQ;;iBAGZ;WACN;WACA;WACA;WACA,mBAAmB;WACnB,mBAAmB,wBAAwB;WAC3C,mBAAmB,QAAQ"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/engine/path-matcher/types.ts"],"mappings":";;;;;;;;;;iBAWiB;;;;;;WAMN;;;;;;WAOA;;;;;;WAOA,cAAc,SAAS;;;;;;WAOvB;;;;;;;;;;YAeC;iBAMK;WACN;WACA;WACA;WACA;WACA,UAAU,oBAAoB;WAC9B,8BAA8B;WAC9B,WAAW;WACX,cAAc,SAAS;;;;;iBAqCjB;WACN;WACA;;iBA2BM;WACN,mBAAmB;;WAEnB,QAAQ,SAAS;;WAEjB,QAAQ,SAAS;WACjB,MAAM,SAAS,eAAe;;iBAOxB;EACf;EACA;EACA;EACA,oBAAoB;EACpB,mBAAmB,wBAAwB;EAC3C,mBAAmB,QAAQ;;iBAGZ;WACN;WACA;WACA;WACA,mBAAmB;WACnB,mBAAmB,wBAAwB;WAC3C,mBAAmB,QAAQ"}
@@ -1,4 +1,3 @@
1
- //#region src/engine/search-params/types.d.ts
2
1
  /**
3
2
  * Search Params Type Definitions.
4
3
  *
@@ -67,5 +66,4 @@ export interface Options {
67
66
  /** Number parameter encoding format. @default "auto" */
68
67
  numberFormat?: NumberFormat;
69
68
  }
70
- //#endregion
71
69
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/engine/search-params/types.ts"],"mappings":";;;;;;;;;;;;;;;;;YAqBY;;;;;;;;;;;;;;;;YAiBA;;;;;;;;;YAUA;;;;;;;;;;;;;YAcA;;;;iBASK;;EAEf,cAAc;;EAEd,gBAAgB;;EAEhB,aAAa;;EAEb,eAAe"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/engine/search-params/types.ts"],"mappings":";;;;;;;;;;;;;;;;YAqBY;;;;;;;;;;;;;;;;YAiBA;;;;;;;;;YAUA;;;;;;;;;;;;;YAcA;;;;iBASK;;EAEf,cAAc;;EAEd,gBAAgB;;EAEhB,aAAa;;EAEb,eAAe"}
@@ -1,5 +1,4 @@
1
1
  import { RouteDefinition, RouteTree } from "../builder/types.mjs";
2
- //#region src/engine/validation/route-batch.d.ts
3
2
  /**
4
3
  * Validates route structure for add operations.
5
4
  *
@@ -33,5 +32,4 @@ import { RouteDefinition, RouteTree } from "../builder/types.mjs";
33
32
  * ```
34
33
  */
35
34
  export declare function validateRoute(route: unknown, methodName: string, rootNode?: RouteTree, parentName?: string, seenNames?: Set<string>, seenPathsByParent?: Map<string, Set<string>>): asserts route is RouteDefinition;
36
- //#endregion
37
35
  //# sourceMappingURL=route-batch.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"route-batch.d.mts","names":[],"sources":["../../../../src/engine/validation/route-batch.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA6XgB,cACd,gBACA,oBACA,WAAW,WACX,qBACA,YAAY,aACZ,oBAAoB,YAAY,uBACvB,SAAS"}
1
+ {"version":3,"file":"route-batch.d.mts","names":[],"sources":["../../../../src/engine/validation/route-batch.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA6XgB,cACd,gBACA,oBACA,WAAW,WACX,qBACA,YAAY,aACZ,oBAAoB,YAAY,uBACvB,SAAS"}
@@ -1,5 +1,3 @@
1
1
  import { DefaultDependencies, Navigator, Router } from "./types/router.mjs";
2
- //#region src/getNavigator.d.ts
3
2
  export declare const getNavigator: <Dependencies extends DefaultDependencies = DefaultDependencies>(router: Router<Dependencies>) => Navigator;
4
- //#endregion
5
3
  //# sourceMappingURL=getNavigator.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getNavigator.d.mts","names":[],"sources":["../../src/getNavigator.ts"],"mappings":";;qBAOa,eACX,qBAAqB,sBAAsB,qBAE3C,QAAQ,OAAO,kBACd"}
1
+ {"version":3,"file":"getNavigator.d.mts","names":[],"sources":["../../src/getNavigator.ts"],"mappings":";qBAOa,eACX,qBAAqB,sBAAsB,qBAE3C,QAAQ,OAAO,kBACd"}
@@ -1,4 +1,3 @@
1
- //#region src/helpers.d.ts
2
1
  /**
3
2
  * CORE's own copy of a caller-owned channel bag — one read per key, and nothing
4
3
  * else changed (#2134).
@@ -43,5 +42,4 @@
43
42
  * {@link normalizeChannel} makes for its own walk, and is stated there (#2091).
44
43
  */
45
44
  export declare function adoptChannel<T extends Record<string, unknown> | undefined | null>(bag: T): T;
46
- //#endregion
47
45
  //# sourceMappingURL=helpers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/helpers.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA+9BgB,aACd,UAAU,4CACV,KAAK,IAAI"}
1
+ {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/helpers.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA+9BgB,aACd,UAAU,4CACV,KAAK,IAAI"}
@@ -1,2 +1,2 @@
1
- import{_ as e,b as t,t as n,x as r,y as i}from"./RouterError-DyPeuufj.mjs";import{t as a,v as o}from"./Router-B6jYUVPG.mjs";const s=(e=[],t={},n={})=>new a(e,t,n),c=Object.freeze,l=new WeakMap,u=e=>{let t=l.get(e);return t||(t=c({navigate:e.navigate,getState:e.getState,isActiveRoute:e.isActiveRoute,canNavigateTo:e.canNavigateTo,subscribe:e.subscribe,subscribeLeave:e.subscribeLeave,isLeaveApproved:e.isLeaveApproved}),l.set(e,t)),t};export{a as Router,n as RouterError,e as UNKNOWN_ROUTE,i as constants,s as createRouter,t as errorCodes,r as events,u as getNavigator,o as resolveForwardChain};
1
+ import{_ as e,b as t,t as n,x as r,y as i}from"./RouterError-DyPeuufj.mjs";import{t as a,v as o}from"./Router-_DZAf0c_.mjs";const s=(e=[],t={},n={})=>new a(e,t,n),c=Object.freeze,l=new WeakMap,u=e=>{let t=l.get(e);return t||(t=c({navigate:e.navigate,getState:e.getState,isActiveRoute:e.isActiveRoute,canNavigateTo:e.canNavigateTo,subscribe:e.subscribe,subscribeLeave:e.subscribeLeave,isLeaveApproved:e.isLeaveApproved}),l.set(e,t)),t};export{a as Router,n as RouterError,e as UNKNOWN_ROUTE,i as constants,s as createRouter,t as errorCodes,r as events,u as getNavigator,o as resolveForwardChain};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -11,7 +11,6 @@ import { Limits } from "./types/internal.mjs";
11
11
  import { DependenciesStore } from "./dependenciesStore.mjs";
12
12
  import { RouteResolver } from "./pipeline/port.mjs";
13
13
  import { RoutesStore } from "./namespaces/RoutesNamespace/routesStore.mjs";
14
- //#region src/internals.d.ts
15
14
  export interface RouterInternals<D extends DefaultDependencies = DefaultDependencies> {
16
15
  readonly makeState: <P extends Params = Params, S extends SearchParams = SearchParams>(name: string, params?: P, search?: S, path?: string) => State<P, S>;
17
16
  /**
@@ -175,5 +174,4 @@ export interface RouterInternals<D extends DefaultDependencies = DefaultDependen
175
174
  readonly contextClaimRecords: Map<string, ContextNamespaceClaim>;
176
175
  }
177
176
  export declare function getInternals<D extends DefaultDependencies>(router: Router<D>): RouterInternals<D>;
178
- //#endregion
179
177
  //# sourceMappingURL=internals.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"internals.d.mts","names":["RouterInterface"],"sources":["../../src/internals.ts"],"mappings":";;;;;;;;;;;;;;iBAqCiB,gBACf,UAAU,sBAAsB;WAEvB,YACP,UAAU,SAAS,QACnB,UAAU,eAAe,cAEzB,cACA,SAAS,GACT,SAAS,GACT,kBACG,MAAM,GAAG;;;;;;;WAQL,kBACP,iBACG,eAAe;;;;;;WAOX,wBAAwB;WAExB,eACP,UAAU,SAAS,QACnB,UAAU,eAAe,cAEzB,mBACA,aAAa,GACb,cAAc,MACX,YAAY,GAAG;WAEX,qBACP,sBACA,gBAAgB,WACb;;;;;;;;;;;;;;;;;WAkBI,oBACP,sBACA,iBAAiB,QACjB,iBAAiB;WAGV,YAAY,UAAU,SAAS,QACtC,cACA,UAAU,eACP,MAAM;WAEF,kBAAkB,QAAQ;;;;;;;;;;;;;WAc1B,yBAAyB;WAEzB,mBAAmB,UAAU,WACpC,WAAW,GACX,IAAI,OAAO,eAAe,QACvB;;;;;;;;;;;;WAaI,sBAAsB,gBAAgB,oBAC7C,KAAK,GACL,aAAa,MAAM,mBAAmB,gBACnC;WAEI;aACE,OAAO,OAAO;aACd,YACP,UAAU,OAAO,8BACd;aACI;;;;;aAKA;;;;;;;;;WAUF,YAAY;WAEZ,sBAAsB,OAAO;;;;;;;WAQ7B,qBAAqB,iBAAiB;;;;;;;;;;;WAYtC,uBAAuB,iBAAiB;;WAGxC,QAAQ,iBAAiB,QAAQ;;;;;;;WAQjC,kBACP,OAAO,OACP,UAAU,sBACP,QAAQ;WAGJ,cAAc,cAEnB,UAAU,wBAAwB;;;;;;;;;WAa7B,QAAQ,iBAAiB;WAGzB,cAAc;WACd;WAEA,eAAe;WAEf;EAET,WAAW;WAaF,QAAQ;WAGR,4BAA4B,kBAAkB;WAM9C;IACP,SAAS,QAAQ;IACjB,cAAc;IACd,iBAAiB,cAAc;IAK/B,cAAc;IAMd,QAAQ;IAoBR;;WAIO,qBAAqB,YAAY;WAGjC;WACA;;;;;;;;;;;;;;;;;;;;;WAqBA,eACP,SAAS,OACT,WAAW,mBACX,MAAM,sBACH;WACI;IAAoB;;WACpB,qBAAqB,YAAY;;wBAkD5B,aAAa,UAAU,qBACrC,QAAQA,OAAgB,KACvB,gBAAgB"}
1
+ {"version":3,"file":"internals.d.mts","names":["RouterInterface"],"sources":["../../src/internals.ts"],"mappings":";;;;;;;;;;;;;iBAqCiB,gBACf,UAAU,sBAAsB;WAEvB,YACP,UAAU,SAAS,QACnB,UAAU,eAAe,cAEzB,cACA,SAAS,GACT,SAAS,GACT,kBACG,MAAM,GAAG;;;;;;;WAQL,kBACP,iBACG,eAAe;;;;;;WAOX,wBAAwB;WAExB,eACP,UAAU,SAAS,QACnB,UAAU,eAAe,cAEzB,mBACA,aAAa,GACb,cAAc,MACX,YAAY,GAAG;WAEX,qBACP,sBACA,gBAAgB,WACb;;;;;;;;;;;;;;;;;WAkBI,oBACP,sBACA,iBAAiB,QACjB,iBAAiB;WAGV,YAAY,UAAU,SAAS,QACtC,cACA,UAAU,eACP,MAAM;WAEF,kBAAkB,QAAQ;;;;;;;;;;;;;WAc1B,yBAAyB;WAEzB,mBAAmB,UAAU,WACpC,WAAW,GACX,IAAI,OAAO,eAAe,QACvB;;;;;;;;;;;;WAaI,sBAAsB,gBAAgB,oBAC7C,KAAK,GACL,aAAa,MAAM,mBAAmB,gBACnC;WAEI;aACE,OAAO,OAAO;aACd,YACP,UAAU,OAAO,8BACd;aACI;;;;;aAKA;;;;;;;;;WAUF,YAAY;WAEZ,sBAAsB,OAAO;;;;;;;WAQ7B,qBAAqB,iBAAiB;;;;;;;;;;;WAYtC,uBAAuB,iBAAiB;;WAGxC,QAAQ,iBAAiB,QAAQ;;;;;;;WAQjC,kBACP,OAAO,OACP,UAAU,sBACP,QAAQ;WAGJ,cAAc,cAEnB,UAAU,wBAAwB;;;;;;;;;WAa7B,QAAQ,iBAAiB;WAGzB,cAAc;WACd;WAEA,eAAe;WAEf;EAET,WAAW;WAaF,QAAQ;WAGR,4BAA4B,kBAAkB;WAM9C;IACP,SAAS,QAAQ;IACjB,cAAc;IACd,iBAAiB,cAAc;IAK/B,cAAc;IAMd,QAAQ;IAoBR;;WAIO,qBAAqB,YAAY;WAGjC;WACA;;;;;;;;;;;;;;;;;;;;;WAqBA,eACP,SAAS,OACT,WAAW,mBACX,MAAM,sBACH;WACI;IAAoB;;WACpB,qBAAqB,YAAY;;wBAkD5B,aAAa,UAAU,qBACrC,QAAQA,OAAgB,KACvB,gBAAgB"}
@@ -1,7 +1,6 @@
1
1
  import { State } from "../../types/base.mjs";
2
2
  import { DefaultDependencies, GuardFn, GuardFnFactory } from "../../types/router.mjs";
3
3
  import { RouteLifecycleDependencies } from "./types.mjs";
4
- //#region src/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.ts
5
4
  /**
6
5
  * Origin lane for a guard clear. Every `clearCanActivate` / `clearCanDeactivate`
7
6
  * caller names its lane — there is no origin-blind default — so a new call site
@@ -187,5 +186,4 @@ export declare class RouteLifecycleNamespace<Dependencies extends DefaultDepende
187
186
  */
188
187
  compileGuardFactory(handler: GuardFnFactory<Dependencies> | boolean, methodName: string): GuardFn;
189
188
  }
190
- //#endregion
191
189
  //# sourceMappingURL=RouteLifecycleNamespace.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RouteLifecycleNamespace.d.mts","names":[],"sources":["../../../../src/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.ts"],"mappings":";;;;;;;;;;;;;;YA8DY;;;;;;;;;;;;;;;;;;;;;qBAsBC,wBACX,qBAAqB,sBAAsB;;EAwD3C,gBAAgB,MAAM,2BAA2B;EAIjD,gBAAgB;;;;;;;;;;;;;;;;;;;;EA8ChB,sBACE,eAAe,kBACf,iBAAiB,kBACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkFF,eACE,cACA,SAAS,eAAe,yBACxB,2BACA,gBAAgB;;;;;;EAiBlB,iBACE,cACA,SAAS,eAAe,yBACxB,2BACA,gBAAgB;;;;;;;;;;EAqBlB,iBAAiB,cAAc,OAAO;;;;;;;;;;;;;;;;;;EAqBtC,mBAAmB,cAAc,OAAO;;;;;EAQxC;;;;;;;;;;;;;;;;;EA6BA;;;;;;;;;;;EAmCA,iBACE,eAAe,eAAe,gBAC9B,eAAe,eAAe;;;;;;EA4ChC;IACE,aACE,eAAe,eAAe,gBAC9B,eAAe,eAAe;IAEhC,WACE,eAAe,eAAe,gBAC9B,eAAe,eAAe;;;;;;;EA+ClC,iBAAiB,YAAY,UAAU,YAAY;;;;;EAQnD,cACE,wBACA,sBACA,SAAS,OACT,WAAW,mBACX;;;;;;;;;;;;;;EA8CF,oBACE,SAAS,eAAe,yBACxB,qBACC"}
1
+ {"version":3,"file":"RouteLifecycleNamespace.d.mts","names":[],"sources":["../../../../src/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.ts"],"mappings":";;;;;;;;;;;;;YA8DY;;;;;;;;;;;;;;;;;;;;;qBAsBC,wBACX,qBAAqB,sBAAsB;;EAwD3C,gBAAgB,MAAM,2BAA2B;EAIjD,gBAAgB;;;;;;;;;;;;;;;;;;;;EA8ChB,sBACE,eAAe,kBACf,iBAAiB,kBACjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkFF,eACE,cACA,SAAS,eAAe,yBACxB,2BACA,gBAAgB;;;;;;EAiBlB,iBACE,cACA,SAAS,eAAe,yBACxB,2BACA,gBAAgB;;;;;;;;;;EAqBlB,iBAAiB,cAAc,OAAO;;;;;;;;;;;;;;;;;;EAqBtC,mBAAmB,cAAc,OAAO;;;;;EAQxC;;;;;;;;;;;;;;;;;EA6BA;;;;;;;;;;;EAmCA,iBACE,eAAe,eAAe,gBAC9B,eAAe,eAAe;;;;;;EA4ChC;IACE,aACE,eAAe,eAAe,gBAC9B,eAAe,eAAe;IAEhC,WACE,eAAe,eAAe,gBAC9B,eAAe,eAAe;;;;;;;EA+ClC,iBAAiB,YAAY,UAAU,YAAY;;;;;EAQnD,cACE,wBACA,sBACA,SAAS,OACT,WAAW,mBACX;;;;;;;;;;;;;;EA8CF,oBACE,SAAS,eAAe,yBACxB,qBACC"}
@@ -1,6 +1,5 @@
1
1
  import { DefaultDependencies, GuardFn, GuardFnFactory, RouterLogger } from "../../types/router.mjs";
2
2
  import { RouterValidator } from "../../types/RouterValidator.mjs";
3
- //#region src/namespaces/RouteLifecycleNamespace/types.d.ts
4
3
  export interface RouteLifecycleDependencies<Dependencies extends DefaultDependencies = DefaultDependencies> {
5
4
  /** Per-router logger instance (from `getInternals(router).logger`) */
6
5
  logger: RouterLogger;
@@ -12,5 +11,4 @@ export interface RouteLifecycleDependencies<Dependencies extends DefaultDependen
12
11
  */
13
12
  getValidator: () => RouterValidator | null;
14
13
  }
15
- //#endregion
16
14
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/namespaces/RouteLifecycleNamespace/types.ts"],"mappings":";;;iBAUiB,2BACf,qBAAqB,sBAAsB;;EAG3C,QAAQ;EAER,iBAAiB,SAAS,eAAe,kBAAkB;;;;;;EAM3D,oBAAoB"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/namespaces/RouteLifecycleNamespace/types.ts"],"mappings":";;iBAUiB,2BACf,qBAAqB,sBAAsB;;EAG3C,QAAQ;EAER,iBAAiB,SAAS,eAAe,kBAAkB;;;;;;EAM3D,oBAAoB"}
@@ -1,4 +1,2 @@
1
- //#region src/namespaces/RoutesNamespace/forwardChain.d.ts
2
1
  export declare function resolveForwardChain(startRoute: string, forwardMap: Record<string, string>, maxDepth?: number): string;
3
- //#endregion
4
2
  //# sourceMappingURL=forwardChain.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"forwardChain.d.mts","names":[],"sources":["../../../../src/namespaces/RoutesNamespace/forwardChain.ts"],"mappings":";wBAkCgB,oBACd,oBACA,YAAY,wBACZ"}
1
+ {"version":3,"file":"forwardChain.d.mts","names":[],"sources":["../../../../src/namespaces/RoutesNamespace/forwardChain.ts"],"mappings":"A,wBAkCgB,oBACd,oBACA,YAAY,wBACZ"}
@@ -3,7 +3,6 @@ import { CreateMatcherOptions, Matcher } from "../../engine/createMatcher.mjs";
3
3
  import { DefaultDependencies, GuardFnFactory } from "../../types/router.mjs";
4
4
  import { RouteConfig, RoutesDependencies } from "./types.mjs";
5
5
  import { RouteLifecycleNamespace } from "../RouteLifecycleNamespace/RouteLifecycleNamespace.mjs";
6
- //#region src/namespaces/RoutesNamespace/routesStore.d.ts
7
6
  export interface RoutesStore<Dependencies extends DefaultDependencies = DefaultDependencies> {
8
7
  /**
9
8
  * DERIVED VIEW, not stored state: reconstructed from `tree` on every access
@@ -79,5 +78,4 @@ export interface RoutesStore<Dependencies extends DefaultDependencies = DefaultD
79
78
  readonly pendingCanActivate: Map<string, GuardFnFactory<Dependencies>>;
80
79
  readonly pendingCanDeactivate: Map<string, GuardFnFactory<Dependencies>>;
81
80
  }
82
- //#endregion
83
81
  //# sourceMappingURL=routesStore.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routesStore.d.mts","names":[],"sources":["../../../../src/namespaces/RoutesNamespace/routesStore.ts"],"mappings":";;;;;;iBA0FiB,YACf,qBAAqB,sBAAsB;;;;;;;;;;;;;WAclC,aAAa;WACb,QAAQ;EACjB,MAAM;EACN,SAAS;;;;;;;WAOA,gBAAgB;;;;;;;;;WAShB,kBAAkB;EAC3B,oBAAoB;;;;;;;;;;;EAYpB;;;;;;;;;;;;;;;;;;;;;;EAuBA;EACA,mBAAmB,eAAe;EAClC;WACS,gBAAgB;EACzB,WAAW,mBAAmB;EAC9B,oBAAoB,wBAAwB;WACnC,oBAAoB,YAAY,eAAe;WAC/C,sBAAsB,YAAY,eAAe"}
1
+ {"version":3,"file":"routesStore.d.mts","names":[],"sources":["../../../../src/namespaces/RoutesNamespace/routesStore.ts"],"mappings":";;;;;iBA0FiB,YACf,qBAAqB,sBAAsB;;;;;;;;;;;;;WAclC,aAAa;WACb,QAAQ;EACjB,MAAM;EACN,SAAS;;;;;;;WAOA,gBAAgB;;;;;;;;;WAShB,kBAAkB;EAC3B,oBAAoB;;;;;;;;;;;EAYpB;;;;;;;;;;;;;;;;;;;;;;EAuBA;EACA,mBAAmB,eAAe;EAClC;WACS,gBAAgB;EACzB,WAAW,mBAAmB;EAC9B,oBAAoB,wBAAwB;WACnC,oBAAoB,YAAY,eAAe;WAC/C,sBAAsB,YAAY,eAAe"}
@@ -2,7 +2,6 @@ import { Params, ParamsSearch, SearchParams, State } from "../../types/base.mjs"
2
2
  import { DefaultDependencies, ForwardToCallback, GuardFn, GuardFnFactory, RouterLogger } from "../../types/router.mjs";
3
3
  import { RouterValidator } from "../../types/RouterValidator.mjs";
4
4
  import { RouteResolver } from "../../pipeline/port.mjs";
5
- //#region src/namespaces/RoutesNamespace/types.d.ts
6
5
  /**
7
6
  * Dependencies injected into RoutesNamespace.
8
7
  *
@@ -69,5 +68,4 @@ export interface RouteConfig {
69
68
  /** Dynamic forward callbacks (source -> callback) */
70
69
  forwardFnMap: Record<string, ForwardToCallback<any>>;
71
70
  }
72
- //#endregion
73
71
  //# sourceMappingURL=types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/namespaces/RoutesNamespace/types.ts"],"mappings":";;;;;;;;;;;iBAsBiB,mBACf,qBAAqB,sBAAsB;;EAG3C,QAAQ;;;;;;;;EASR,oBAAoB;;;;;;;;;EAUpB,MAAM;;;;;;;EAQN,mBACE,cACA,SAAS,eAAe,eACxB,gBAAgB;;EAIlB,qBACE,cACA,SAAS,eAAe,eACxB,gBAAgB;;;;;;EAQlB,eACE,SAAS,eAAe,eACxB,uBACG;;EAML,gBAAgB;;EAGhB,iBACE,QAAQ,mBACR,QAAQ,mBACR;;EAIF,gBAAgB,gBAAgB,cAAc,MAAM,MAAM,aAAa;;;;;;iBAiBxD;;EAEf,UAAU,gBAAgB,UAAU,iBAAiB;;EAGrD,UAAU,gBAAgB,UAAU,iBAAiB;;EAGrD,eAAe,eAAe;;EAG9B,eAAe,eAAe;;EAG9B,YAAY;;EAIZ,cAAc,eAAe"}
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../../../../src/namespaces/RoutesNamespace/types.ts"],"mappings":";;;;;;;;;;iBAsBiB,mBACf,qBAAqB,sBAAsB;;EAG3C,QAAQ;;;;;;;;EASR,oBAAoB;;;;;;;;;EAUpB,MAAM;;;;;;;EAQN,mBACE,cACA,SAAS,eAAe,eACxB,gBAAgB;;EAIlB,qBACE,cACA,SAAS,eAAe,eACxB,gBAAgB;;;;;;EAQlB,eACE,SAAS,eAAe,eACxB,uBACG;;EAML,gBAAgB;;EAGhB,iBACE,QAAQ,mBACR,QAAQ,mBACR;;EAIF,gBAAgB,gBAAgB,cAAc,MAAM,MAAM,aAAa;;;;;;iBAiBxD;;EAEf,UAAU,gBAAgB,UAAU,iBAAiB;;EAGrD,UAAU,gBAAgB,UAAU,iBAAiB;;EAGrD,eAAe,eAAe;;EAG9B,eAAe,eAAe;;EAG9B,YAAY;;EAIZ,cAAc,eAAe"}
@@ -1,5 +1,4 @@
1
1
  import { Params, SearchParams } from "../types/base.mjs";
2
- //#region src/pipeline/port.d.ts
3
2
  /**
4
3
  * The pipeline's read-model over the routes layer — a narrow port, not a new
5
4
  * layer. The module stays pure and mock-testable; the router implements the
@@ -175,5 +174,4 @@ export interface RouteResolver {
175
174
  */
176
175
  reportUndeclaredParamKey?: ((routeName: string, key: string) => void) | undefined;
177
176
  }
178
- //#endregion
179
177
  //# sourceMappingURL=port.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"port.d.mts","names":[],"sources":["../../../src/pipeline/port.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2CiB;;;;;;;;EAQf,iBACE,cACA,QAAQ,QACR,SAAS;IAET;IACA,QAAQ;IAIR,SAAS;;;;;;;;;;;;;;;;;;;;;;EAuBX,gBAAgB,iBAAiB;EACjC,gBAAgB,iBAAiB;;;;;;;EAQjC,YAAY,cAAc,QAAQ,QAAQ,QAAQ;;;;;;;;;;;;;;EAelD,aAAa;;;;;;;;;;;;;EAcb,oBAAoB;;;;;;;EAQpB;;;;;;;;;;;;;;;;;;EAmBA,0BACI,mBAAmB;;;;;;;;;;;;;;;;;;;;;;EAuBvB,YAAY;;;;;;;;;;;;;;;;;;;EAoBZ,6BACI,mBAAmB"}
1
+ {"version":3,"file":"port.d.mts","names":[],"sources":["../../../src/pipeline/port.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2CiB;;;;;;;;EAQf,iBACE,cACA,QAAQ,QACR,SAAS;IAET;IACA,QAAQ;IAIR,SAAS;;;;;;;;;;;;;;;;;;;;;;EAuBX,gBAAgB,iBAAiB;EACjC,gBAAgB,iBAAiB;;;;;;;EAQjC,YAAY,cAAc,QAAQ,QAAQ,QAAQ;;;;;;;;;;;;;;EAelD,aAAa;;;;;;;;;;;;;EAcb,oBAAoB;;;;;;;EAQpB;;;;;;;;;;;;;;;;;;EAmBA,0BACI,mBAAmB;;;;;;;;;;;;;;;;;;;;;;EAuBvB,YAAY;;;;;;;;;;;;;;;;;;;EAoBZ,6BACI,mBAAmB"}
@@ -1,4 +1,3 @@
1
- //#region src/types/RouterValidator.d.ts
2
1
  /**
3
2
  * RouterValidator interface - defines all validation methods used by the router.
4
3
  *
@@ -158,5 +157,4 @@ export interface RouterValidator {
158
157
  validateCountThresholds: (count: number, eventName: string, methodName: string) => void;
159
158
  };
160
159
  }
161
- //#endregion
162
160
  //# sourceMappingURL=RouterValidator.d.mts.map