@bquery/bquery 1.11.1 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -33
- package/dist/{a11y-DgUQ8-fI.js → a11y-IV_bfLyn.js} +3 -3
- package/dist/{a11y-DgUQ8-fI.js.map → a11y-IV_bfLyn.js.map} +1 -1
- package/dist/a11y.es.mjs +1 -1
- package/dist/{component-D8ydhe58.js → component-BtsRbf6c.js} +7 -7
- package/dist/{component-D8ydhe58.js.map → component-BtsRbf6c.js.map} +1 -1
- package/dist/component.es.mjs +1 -1
- package/dist/{concurrency-BU1wPEsZ.js → concurrency-kycgAZvW.js} +3 -3
- package/dist/{concurrency-BU1wPEsZ.js.map → concurrency-kycgAZvW.js.map} +1 -1
- package/dist/concurrency.es.mjs +1 -1
- package/dist/{config-DhT9auRm.js → config-BP7KwiR5.js} +1 -1
- package/dist/{config-DhT9auRm.js.map → config-BP7KwiR5.js.map} +1 -1
- package/dist/constraints-Dlbx_m1b.js.map +1 -1
- package/dist/core-tOP6QOrY.js.map +1 -1
- package/dist/{core-CongXJuo.js → core-yg9rJXiR.js} +1 -1
- package/dist/{core-CongXJuo.js.map → core-yg9rJXiR.js.map} +1 -1
- package/dist/custom-directives-5DlKqvd2.js.map +1 -1
- package/dist/devtools-QosAqo0T.js.map +1 -1
- package/dist/dnd-d2OU4len.js.map +1 -1
- package/dist/{effect-Cc51IH91.js → effect-v8OIEmPs.js} +2 -2
- package/dist/{effect-Cc51IH91.js.map → effect-v8OIEmPs.js.map} +1 -1
- package/dist/env-PvwYHnJq.js.map +1 -1
- package/dist/{forms-BLx4ZzT7.js → forms-DYcdlk_h.js} +8 -8
- package/dist/{forms-BLx4ZzT7.js.map → forms-DYcdlk_h.js.map} +1 -1
- package/dist/forms.es.mjs +1 -1
- package/dist/full.d.ts +11 -11
- package/dist/full.d.ts.map +1 -1
- package/dist/full.es.mjs +324 -279
- package/dist/full.iife.js +26 -26
- package/dist/full.iife.js.map +1 -1
- package/dist/full.umd.js +26 -26
- package/dist/full.umd.js.map +1 -1
- package/dist/function-Cybd57JV.js.map +1 -1
- package/dist/{i18n--p7PM-9r.js → i18n-unHU1jMo.js} +3 -3
- package/dist/{i18n--p7PM-9r.js.map → i18n-unHU1jMo.js.map} +1 -1
- package/dist/i18n.es.mjs +1 -1
- package/dist/index.es.mjs +198 -196
- package/dist/match-CrZRVC4z.js.map +1 -1
- package/dist/{media-gjbWNq50.js → media-Chh6mA0v.js} +3 -3
- package/dist/{media-gjbWNq50.js.map → media-Chh6mA0v.js.map} +1 -1
- package/dist/media.es.mjs +1 -1
- package/dist/{motion-BBMso9Ir.js → motion-27Od9aFE.js} +2 -2
- package/dist/{motion-BBMso9Ir.js.map → motion-27Od9aFE.js.map} +1 -1
- package/dist/motion.es.mjs +1 -1
- package/dist/{mount-0A9qtcRJ.js → mount-DwUFujZ_.js} +4 -4
- package/dist/{mount-0A9qtcRJ.js.map → mount-DwUFujZ_.js.map} +1 -1
- package/dist/object-BCk-1c8T.js.map +1 -1
- package/dist/{platform-BPHIXbw8.js → platform-2YkFA11t.js} +4 -4
- package/dist/{platform-BPHIXbw8.js.map → platform-2YkFA11t.js.map} +1 -1
- package/dist/platform.es.mjs +2 -2
- package/dist/plugin-SZEirbwq.js.map +1 -1
- package/dist/reactive/index.d.ts +2 -2
- package/dist/reactive/index.d.ts.map +1 -1
- package/dist/reactive/signal.d.ts +7 -7
- package/dist/reactive/signal.d.ts.map +1 -1
- package/dist/reactive/websocket.d.ts +15 -3
- package/dist/reactive/websocket.d.ts.map +1 -1
- package/dist/{reactive-BAd2hfl8.js → reactive-BvPR_FYA.js} +10 -10
- package/dist/{reactive-BAd2hfl8.js.map → reactive-BvPR_FYA.js.map} +1 -1
- package/dist/reactive.es.mjs +40 -40
- package/dist/{readonly-C0ZwS1Tf.js → readonly-Br-6pAgj.js} +2 -2
- package/dist/{readonly-C0ZwS1Tf.js.map → readonly-Br-6pAgj.js.map} +1 -1
- package/dist/registry-jpUQHf4E.js.map +1 -1
- package/dist/{router-C4weu0QL.js → router-CbnWKprL.js} +7 -7
- package/dist/{router-C4weu0QL.js.map → router-CbnWKprL.js.map} +1 -1
- package/dist/router.es.mjs +1 -1
- package/dist/sanitize-DOMkRO9G.js.map +1 -1
- package/dist/server/create-server.d.ts.map +1 -1
- package/dist/server/types.d.ts.map +1 -1
- package/dist/{server-QdyKtCS1.js → server-Dwiq_F49.js} +2 -2
- package/dist/server-Dwiq_F49.js.map +1 -0
- package/dist/server.es.mjs +1 -1
- package/dist/ssr/context.d.ts.map +1 -1
- package/dist/ssr/renderer.d.ts.map +1 -1
- package/dist/ssr/suspense.d.ts.map +1 -1
- package/dist/{ssr-Bt6BQA3J.js → ssr-CqJU1Ogp.js} +8 -8
- package/dist/ssr-CqJU1Ogp.js.map +1 -0
- package/dist/ssr.es.mjs +1 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/plugins.d.ts +38 -0
- package/dist/store/plugins.d.ts.map +1 -1
- package/dist/{store-DnXuu6Li.js → store-DzrhVQ29.js} +69 -62
- package/dist/store-DzrhVQ29.js.map +1 -0
- package/dist/store.es.mjs +13 -11
- package/dist/storybook.es.mjs.map +1 -1
- package/dist/{testing-CeMUwrRD.js → testing-ByjwS2_D.js} +3 -3
- package/dist/{testing-CeMUwrRD.js.map → testing-ByjwS2_D.js.map} +1 -1
- package/dist/testing.es.mjs +1 -1
- package/dist/type-guards-BMX2c0LP.js.map +1 -1
- package/dist/{untrack-bjWDNdyE.js → untrack-uzz3JDNK.js} +3 -3
- package/dist/{untrack-bjWDNdyE.js.map → untrack-uzz3JDNK.js.map} +1 -1
- package/dist/view.es.mjs +8 -8
- package/package.json +8 -7
- package/src/full.ts +75 -6
- package/src/reactive/index.ts +5 -4
- package/src/reactive/signal.ts +7 -6
- package/src/reactive/websocket.ts +15 -2
- package/src/server/create-server.ts +10 -5
- package/src/server/types.ts +1 -5
- package/src/ssr/context.ts +6 -2
- package/src/ssr/renderer.ts +5 -2
- package/src/ssr/suspense.ts +17 -8
- package/src/store/index.ts +1 -1
- package/src/store/plugins.ts +48 -1
- package/dist/server-QdyKtCS1.js.map +0 -1
- package/dist/ssr-Bt6BQA3J.js.map +0 -1
- package/dist/store-DnXuu6Li.js.map +0 -1
package/dist/index.es.mjs
CHANGED
|
@@ -1,118 +1,119 @@
|
|
|
1
1
|
import { a as e, c as s, d as t, i as r, n as o, o as i, r as n, s as c, t as u } from "./sanitize-DOMkRO9G.js";
|
|
2
|
-
import { C as l, S as p, _ as d, a as S, b as
|
|
2
|
+
import { C as l, S as p, _ as d, a as S, b as g, c as f, d as k, f as h, g as b, h as R, i as y, l as C, m as T, n as v, o as E, p as P, r as O, s as A, t as D, u as w, v as H, w as I, x, y as F } from "./core-tOP6QOrY.js";
|
|
3
3
|
import { a as B, n as L, o as M, r as q, s as z, t as N } from "./object-BCk-1c8T.js";
|
|
4
4
|
import { i as _, n as V, r as j, t as $ } from "./function-Cybd57JV.js";
|
|
5
5
|
import { a as U, c as J, i as K, l as Y, n as X, o as Z, r as aa, s as ea, t as sa, u as ta } from "./type-guards-BMX2c0LP.js";
|
|
6
|
-
import { n as oa, t as ia } from "./
|
|
7
|
-
import { n as ca,
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { n as
|
|
11
|
-
import {
|
|
12
|
-
import { C as Ka, E as Ya, S as Xa, T as Za, _ as ae, a as ee, b as se, c as te, d as re, f as oe, g as ie, h as ne, i as ce, l as ue, m as me, n as le, o as pe, p as de, r as Se, s as
|
|
13
|
-
import { a as Te, c as ve, i as Ee, l as
|
|
14
|
-
import { C as xe, D as Fe, E as We, O as Be, S as Le, T as Me, _ as qe, a as ze, b as Ne, c as Qe, d as _e, f as Ve, g as je, h as $e, i as Ge, l as Ue, m as Je, n as Ke, o as Ye, p as Xe, r as Ze, s as as, t as es, u as ss, v as ts, w as rs, x as os, y as is } from "./motion-
|
|
15
|
-
import { a as cs, i as us, n as ms, o as ls, r as ps, s as ds, t as Ss } from "./platform-
|
|
16
|
-
import { a as
|
|
6
|
+
import { n as oa, t as ia } from "./config-BP7KwiR5.js";
|
|
7
|
+
import { n as ca, t as ua } from "./core-yg9rJXiR.js";
|
|
8
|
+
import { i as la, n as pa, o as da, t as Sa } from "./effect-v8OIEmPs.js";
|
|
9
|
+
import { n as fa, r as ka, t as ha } from "./untrack-uzz3JDNK.js";
|
|
10
|
+
import { C as Ra, E as ya, S as Ca, T as Ta, _ as va, a as Ea, b as Pa, c as Oa, d as Aa, f as Da, g as wa, h as Ha, i as Ia, l as xa, m as Fa, n as Wa, o as Ba, p as La, r as Ma, s as qa, t as za, u as Na, v as Qa, w as _a, x as Va, y as ja } from "./reactive-BvPR_FYA.js";
|
|
11
|
+
import { n as Ga, r as Ua } from "./readonly-Br-6pAgj.js";
|
|
12
|
+
import { C as Ka, E as Ya, S as Xa, T as Za, _ as ae, a as ee, b as se, c as te, d as re, f as oe, g as ie, h as ne, i as ce, l as ue, m as me, n as le, o as pe, p as de, r as Se, s as ge, t as fe, u as ke, v as he, w as be, x as Re, y as ye } from "./concurrency-kycgAZvW.js";
|
|
13
|
+
import { a as Te, c as ve, i as Ee, l as Pe, n as Oe, o as Ae, r as De, s as we, t as He } from "./component-BtsRbf6c.js";
|
|
14
|
+
import { C as xe, D as Fe, E as We, O as Be, S as Le, T as Me, _ as qe, a as ze, b as Ne, c as Qe, d as _e, f as Ve, g as je, h as $e, i as Ge, l as Ue, m as Je, n as Ke, o as Ye, p as Xe, r as Ze, s as as, t as es, u as ss, v as ts, w as rs, x as os, y as is } from "./motion-27Od9aFE.js";
|
|
15
|
+
import { a as cs, i as us, n as ms, o as ls, r as ps, s as ds, t as Ss } from "./platform-2YkFA11t.js";
|
|
16
|
+
import { a as fs, c as ks, d as hs, f as bs, i as Rs, l as ys, m as Cs, n as Ts, o as vs, p as Es, r as Ps, s as Os, t as As, u as Ds } from "./router-CbnWKprL.js";
|
|
17
17
|
import { i as Hs, n as Is, t as xs } from "./registry-jpUQHf4E.js";
|
|
18
|
-
import { a as Ws, c as Bs, i as Ls,
|
|
19
|
-
import { n as
|
|
18
|
+
import { a as Ws, c as Bs, i as Ls, l as Ms, n as qs, o as zs, r as Ns, s as Qs, t as _s, u as Vs } from "./store-DzrhVQ29.js";
|
|
19
|
+
import { n as $s, r as Gs, t as Us } from "./mount-DwUFujZ_.js";
|
|
20
20
|
import "./view.es.mjs";
|
|
21
|
-
import { a as
|
|
22
|
-
import { n as
|
|
23
|
-
import { a as
|
|
24
|
-
import { n as
|
|
25
|
-
import { a as
|
|
26
|
-
import { a as
|
|
27
|
-
import { a as
|
|
28
|
-
import { a as
|
|
29
|
-
import { A as
|
|
30
|
-
import { n as
|
|
21
|
+
import { a as Ys, c as Xs, d as Zs, f as at, i as et, l as st, n as tt, o as rt, p as ot, r as it, s as nt, t as ct, u as ut } from "./forms-DYcdlk_h.js";
|
|
22
|
+
import { n as lt, r as pt, t as dt } from "./i18n-unHU1jMo.js";
|
|
23
|
+
import { a as gt, d as ft, i as kt, l as ht, n as bt, o as Rt, r as yt, s as Ct, t as Tt, u as vt } from "./a11y-IV_bfLyn.js";
|
|
24
|
+
import { n as Pt, r as Ot, t as At } from "./dnd-d2OU4len.js";
|
|
25
|
+
import { a as wt, c as Ht, d as It, f as xt, i as Ft, l as Wt, n as Bt, o as Lt, r as Mt, s as qt, t as zt, u as Nt } from "./media-Chh6mA0v.js";
|
|
26
|
+
import { a as _t, i as Vt, n as jt, o as $t, r as Gt, t as Ut } from "./plugin-SZEirbwq.js";
|
|
27
|
+
import { a as Kt, c as Yt, d as Xt, f as Zt, g as ar, h as er, i as sr, l as tr, m as rr, n as or, o as ir, p as nr, r as cr, s as ur, t as mr, u as lr } from "./devtools-QosAqo0T.js";
|
|
28
|
+
import { a as dr, i as Sr, n as gr, o as fr, r as kr, t as hr } from "./testing-ByjwS2_D.js";
|
|
29
|
+
import { A as Rr, B as yr, C as Cr, D as Tr, E as vr, F as Er, I as Pr, L as Or, M as Ar, N as Dr, O as wr, P as Hr, R as Ir, S as xr, T as Fr, V as Wr, _ as Br, a as Lr, b as Mr, c as qr, d as zr, f as Nr, g as Qr, h as _r, i as Vr, j as jr, k as $r, l as Gr, m as Ur, n as Jr, o as Kr, p as Yr, r as Xr, s as Zr, t as ao, u as eo, v as so, w as to, x as ro, y as oo, z as io } from "./ssr-CqJU1Ogp.js";
|
|
30
|
+
import { n as co, r as uo, t as mo } from "./server-Dwiq_F49.js";
|
|
31
31
|
export {
|
|
32
32
|
x as $,
|
|
33
33
|
p as $$,
|
|
34
34
|
l as BQueryCollection,
|
|
35
35
|
I as BQueryElement,
|
|
36
36
|
ks as BqLinkElement,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
fa as Computed,
|
|
38
|
+
Ir as HYDRATION_HASH_ATTR,
|
|
39
|
+
Pa as HttpError,
|
|
40
|
+
ua as Signal,
|
|
41
41
|
Xa as TaskWorkerAbortError,
|
|
42
42
|
Ka as TaskWorkerError,
|
|
43
43
|
be as TaskWorkerSerializationError,
|
|
44
44
|
Za as TaskWorkerTimeoutError,
|
|
45
45
|
Ya as TaskWorkerUnsupportedError,
|
|
46
46
|
We as animate,
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
vt as announceToScreenReader,
|
|
48
|
+
ht as auditA11y,
|
|
49
49
|
Ds as back,
|
|
50
|
-
|
|
50
|
+
Ua as batch,
|
|
51
51
|
pe as batchTasks,
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
Oe as bool,
|
|
53
|
+
It as breakpoints,
|
|
54
54
|
ds as buckets,
|
|
55
55
|
ls as cache,
|
|
56
56
|
he as callWorkerMethod,
|
|
57
57
|
v as capitalize,
|
|
58
58
|
Ve as capturePosition,
|
|
59
59
|
b as chunk,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
f as clamp,
|
|
61
|
+
ft as clearAnnouncements,
|
|
62
|
+
Gs as clearExpressionCache,
|
|
63
|
+
Bs as clearPlugins,
|
|
64
|
+
mr as clearTimeline,
|
|
65
|
+
Ft as clipboard,
|
|
65
66
|
N as clone,
|
|
66
67
|
d as compact,
|
|
67
68
|
Te as component,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
ka as computed,
|
|
70
|
+
io as configureSSR,
|
|
71
|
+
Fr as createAssetManager,
|
|
72
|
+
ao as createBunHandler,
|
|
73
|
+
Jr as createDenoHandler,
|
|
74
|
+
ot as createForm,
|
|
75
|
+
vr as createHeadManager,
|
|
76
|
+
Va as createHttp,
|
|
77
|
+
dt as createI18n,
|
|
78
|
+
Xr as createNodeHandler,
|
|
79
|
+
qs as createPersistedStore,
|
|
80
|
+
fe as createReactiveRpcPool,
|
|
80
81
|
le as createReactiveRpcWorker,
|
|
81
82
|
Se as createReactiveTaskPool,
|
|
82
83
|
ce as createReactiveTaskWorker,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
Ca as createRequestQueue,
|
|
85
|
+
Na as createRestClient,
|
|
86
|
+
Kr as createResumableState,
|
|
86
87
|
Ts as createRouter,
|
|
87
88
|
me as createRpcPool,
|
|
88
89
|
ye as createRpcWorker,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
to as createSSRContext,
|
|
91
|
+
Vr as createSSRHandler,
|
|
92
|
+
zr as createSSRRouterContext,
|
|
93
|
+
mo as createServer,
|
|
94
|
+
Qs as createStore,
|
|
94
95
|
ne as createTaskPool,
|
|
95
96
|
ie as createTaskWorker,
|
|
96
|
-
|
|
97
|
+
Us as createTemplate,
|
|
97
98
|
r as createTrustedHtml,
|
|
98
|
-
|
|
99
|
-
|
|
99
|
+
_a as createUseFetch,
|
|
100
|
+
Lr as createWebHandler,
|
|
100
101
|
Es as currentRoute,
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
ct as custom,
|
|
103
|
+
tt as customAsync,
|
|
103
104
|
$ as debounce,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
Aa as deduplicateRequest,
|
|
106
|
+
Tr as defer,
|
|
107
|
+
ia as defineBqueryConfig,
|
|
107
108
|
Ae as defineComponent,
|
|
108
|
-
|
|
109
|
+
wr as defineLoader,
|
|
109
110
|
ms as definePageMeta,
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
zs as defineStore,
|
|
112
|
+
Hr as deserializeStoreState,
|
|
112
113
|
xs as destroyStore,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
$r as detectRuntime,
|
|
115
|
+
Ot as draggable,
|
|
116
|
+
Pt as droppable,
|
|
116
117
|
je as easeInCubic,
|
|
117
118
|
qe as easeInOutCubic,
|
|
118
119
|
ts as easeInOutQuad,
|
|
@@ -122,160 +123,160 @@ export {
|
|
|
122
123
|
Le as easeOutExpo,
|
|
123
124
|
xe as easeOutQuad,
|
|
124
125
|
rs as easingPresets,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
Sa as effect,
|
|
127
|
+
pa as effectScope,
|
|
128
|
+
it as email,
|
|
129
|
+
or as enableDevtools,
|
|
129
130
|
H as ensureArray,
|
|
130
131
|
u as escapeHtml,
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
O as escapeRegExp,
|
|
133
|
+
ge as every,
|
|
133
134
|
te as filter,
|
|
134
135
|
ue as find,
|
|
135
|
-
|
|
136
|
+
hr as fireEvent,
|
|
136
137
|
F as flatten,
|
|
137
138
|
Xe as flip,
|
|
138
139
|
Je as flipElements,
|
|
139
140
|
$e as flipList,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
gr as flushEffects,
|
|
142
|
+
lt as formatDate,
|
|
143
|
+
pt as formatNumber,
|
|
143
144
|
hs as forward,
|
|
144
145
|
c as generateNonce,
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
cr as generateSignalLabel,
|
|
147
|
+
oa as getBqueryConfig,
|
|
147
148
|
se as getConcurrencySupport,
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
149
|
+
la as getCurrentScope,
|
|
150
|
+
Ut as getCustomDirective,
|
|
151
|
+
jt as getCustomDirectives,
|
|
152
|
+
sr as getDevtoolsState,
|
|
153
|
+
Tt as getFocusableElements,
|
|
154
|
+
Gt as getInstalledPlugins,
|
|
155
|
+
yr as getSSRConfig,
|
|
156
|
+
Rr as getSSRRuntimeFeatures,
|
|
156
157
|
Is as getStore,
|
|
157
|
-
|
|
158
|
+
Kt as getTimeline,
|
|
158
159
|
e as getTrustedTypesPolicy,
|
|
159
160
|
s as hasCSPDirective,
|
|
160
161
|
L as hasOwn,
|
|
161
162
|
De as html,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
163
|
+
Ra as http,
|
|
164
|
+
Qr as hydrateIsland,
|
|
165
|
+
Wr as hydrateMount,
|
|
166
|
+
Br as hydrateOnIdle,
|
|
167
|
+
so as hydrateOnInteraction,
|
|
168
|
+
oo as hydrateOnMedia,
|
|
169
|
+
Mr as hydrateOnVisible,
|
|
170
|
+
Er as hydrateStore,
|
|
171
|
+
qr as hydrateStoreSnapshot,
|
|
172
|
+
Pr as hydrateStores,
|
|
172
173
|
C as inRange,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
ir as inspectComponents,
|
|
175
|
+
ur as inspectSignals,
|
|
176
|
+
Yt as inspectStores,
|
|
176
177
|
vs as interceptLinks,
|
|
177
|
-
|
|
178
|
+
Ps as isActive,
|
|
178
179
|
Rs as isActiveSignal,
|
|
179
180
|
sa as isArray,
|
|
180
181
|
X as isBoolean,
|
|
181
|
-
|
|
182
|
+
jr as isBrowserRuntime,
|
|
182
183
|
aa as isCollection,
|
|
183
|
-
|
|
184
|
+
qa as isComputed,
|
|
184
185
|
Re as isConcurrencySupported,
|
|
185
186
|
K as isDate,
|
|
186
|
-
|
|
187
|
+
tr as isDevtoolsEnabled,
|
|
187
188
|
U as isElement,
|
|
188
189
|
h as isEmpty,
|
|
189
190
|
Z as isFunction,
|
|
190
|
-
|
|
191
|
+
Vt as isInstalled,
|
|
191
192
|
Cs as isNavigating,
|
|
192
193
|
ea as isNumber,
|
|
193
194
|
J as isObject,
|
|
194
195
|
q as isPlainObject,
|
|
195
196
|
Y as isPromise,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
Ar as isServerRuntime,
|
|
198
|
+
co as isServerWebSocketSession,
|
|
199
|
+
Oa as isSignal,
|
|
199
200
|
ta as isString,
|
|
200
201
|
i as isTrustedTypesSupported,
|
|
201
|
-
|
|
202
|
+
uo as isWebSocketRequest,
|
|
202
203
|
_e as keyframePresets,
|
|
203
204
|
Me as linear,
|
|
204
|
-
|
|
205
|
-
|
|
205
|
+
Os as link,
|
|
206
|
+
ja as linkedSignal,
|
|
206
207
|
Hs as listStores,
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
lr as logComponents,
|
|
209
|
+
Xt as logSignals,
|
|
210
|
+
Zt as logStores,
|
|
211
|
+
nr as logTimeline,
|
|
211
212
|
ke as map,
|
|
212
|
-
|
|
213
|
+
Ns as mapActions,
|
|
213
214
|
Ls as mapGetters,
|
|
214
215
|
Ws as mapState,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
et as matchField,
|
|
217
|
+
Ys as max,
|
|
218
|
+
rt as maxLength,
|
|
219
|
+
xt as mediaQuery,
|
|
219
220
|
B as merge,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
221
|
+
nt as min,
|
|
222
|
+
Xs as minLength,
|
|
223
|
+
kr as mockRouter,
|
|
224
|
+
Sr as mockSignal,
|
|
224
225
|
ss as morphElement,
|
|
225
|
-
|
|
226
|
+
$s as mount,
|
|
226
227
|
bs as navigate,
|
|
227
228
|
V as noop,
|
|
228
229
|
us as notifications,
|
|
229
230
|
M as omit,
|
|
230
|
-
|
|
231
|
+
da as onScopeDispose,
|
|
231
232
|
j as once,
|
|
232
233
|
Ue as parallax,
|
|
233
234
|
re as parallel,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
235
|
+
P as parseJson,
|
|
236
|
+
st as pattern,
|
|
237
|
+
wa as persistedSignal,
|
|
237
238
|
z as pick,
|
|
238
239
|
ee as pipeline,
|
|
239
|
-
|
|
240
|
-
|
|
240
|
+
Rt as prefersColorScheme,
|
|
241
|
+
Ct as prefersContrast,
|
|
241
242
|
Fe as prefersReducedMotion,
|
|
242
243
|
w as randomInt,
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
Gr as readStoreSnapshot,
|
|
245
|
+
Ga as readonly,
|
|
246
|
+
rr as recordEvent,
|
|
246
247
|
oe as reduce,
|
|
247
248
|
ys as registerBqLink,
|
|
248
249
|
He as registerDefaultComponents,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
250
|
+
Ms as registerPlugin,
|
|
251
|
+
bt as releaseFocus,
|
|
252
|
+
dr as renderComponent,
|
|
253
|
+
ro as renderToResponse,
|
|
254
|
+
xr as renderToStream,
|
|
255
|
+
Ur as renderToStreamSuspense,
|
|
256
|
+
Dr as renderToString,
|
|
257
|
+
Cr as renderToStringAsync,
|
|
258
|
+
ut as required,
|
|
259
|
+
_t as resetPlugins,
|
|
260
|
+
fs as resolve,
|
|
261
|
+
Nr as resolveSSRRoute,
|
|
262
|
+
Zr as resumeState,
|
|
263
|
+
gt as rovingTabIndex,
|
|
264
|
+
Yr as runRouteLoaders,
|
|
264
265
|
ae as runTask,
|
|
265
266
|
Ee as safeHtml,
|
|
266
267
|
o as sanitize,
|
|
267
268
|
o as sanitizeHtml,
|
|
268
269
|
Qe as scrollAnimate,
|
|
269
270
|
Ze as sequence,
|
|
270
|
-
|
|
271
|
-
|
|
271
|
+
eo as serializeStoreSnapshot,
|
|
272
|
+
Or as serializeStoreState,
|
|
272
273
|
Be as setReducedMotion,
|
|
273
|
-
|
|
274
|
-
|
|
274
|
+
ca as signal,
|
|
275
|
+
kt as skipLink,
|
|
275
276
|
T as sleep,
|
|
276
277
|
y as slugify,
|
|
277
278
|
de as some,
|
|
278
|
-
|
|
279
|
+
At as sortable,
|
|
279
280
|
Ye as spring,
|
|
280
281
|
as as springPresets,
|
|
281
282
|
ze as stagger,
|
|
@@ -286,51 +287,52 @@ export {
|
|
|
286
287
|
S as toCamelCase,
|
|
287
288
|
E as toKebabCase,
|
|
288
289
|
k as toNumber,
|
|
289
|
-
|
|
290
|
-
|
|
290
|
+
xa as toValue,
|
|
291
|
+
er as trackSignal,
|
|
291
292
|
Ke as transition,
|
|
292
|
-
|
|
293
|
+
yt as trapFocus,
|
|
293
294
|
A as truncate,
|
|
294
295
|
t as trusted,
|
|
295
296
|
es as typewriter,
|
|
296
297
|
R as uid,
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
298
|
+
g as unique,
|
|
299
|
+
Vs as unregisterPlugin,
|
|
300
|
+
ha as untrack,
|
|
301
|
+
ar as untrackSignal,
|
|
302
|
+
Zs as url,
|
|
303
|
+
$t as use,
|
|
302
304
|
ps as useAnnouncer,
|
|
303
|
-
|
|
304
|
-
|
|
305
|
+
Ta as useAsyncData,
|
|
306
|
+
Ht as useBattery,
|
|
305
307
|
we as useComputed,
|
|
306
308
|
cs as useCookie,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
+
wt as useDeviceMotion,
|
|
310
|
+
Lt as useDeviceOrientation,
|
|
309
311
|
ve as useEffect,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
312
|
+
za as useEventSource,
|
|
313
|
+
ya as useFetch,
|
|
314
|
+
at as useFormField,
|
|
315
|
+
qt as useGeolocation,
|
|
316
|
+
va as useInfiniteFetch,
|
|
317
|
+
zt as useIntersectionObserver,
|
|
318
|
+
Bt as useMutationObserver,
|
|
319
|
+
Wt as useNetworkStatus,
|
|
320
|
+
Qa as usePaginatedFetch,
|
|
321
|
+
Ha as usePolling,
|
|
322
|
+
Mt as useResizeObserver,
|
|
323
|
+
Da as useResource,
|
|
324
|
+
La as useResourceList,
|
|
323
325
|
As as useRoute,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
326
|
+
Pe as useSignal,
|
|
327
|
+
Fa as useSubmit,
|
|
328
|
+
Nt as useViewport,
|
|
329
|
+
Wa as useWebSocket,
|
|
330
|
+
Ma as useWebSocketChannel,
|
|
329
331
|
D as utils,
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
332
|
+
_r as verifyHydration,
|
|
333
|
+
fr as waitFor,
|
|
334
|
+
Ia as watch,
|
|
335
|
+
Ea as watchDebounce,
|
|
336
|
+
_s as watchStore,
|
|
337
|
+
Ba as watchThrottle
|
|
336
338
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"match-CrZRVC4z.js","names":[],"sources":["../src/router/query.ts","../src/router/path-pattern.ts","../src/router/match.ts"],"sourcesContent":["/**\n * Query string helpers.\n * @module bquery/router\n */\n\nimport { isPrototypePollutionKey } from '../core/utils/object';\n\n/**\n * Parses query string into an object.\n * Single values are stored as strings, duplicate keys become arrays.\n * @internal\n *\n * @example\n * parseQuery('?foo=1') // { foo: '1' }\n * parseQuery('?tag=a&tag=b') // { tag: ['a', 'b'] }\n * parseQuery('?x=1&y=2&x=3') // { x: ['1', '3'], y: '2' }\n */\nexport const parseQuery = (search: string): Record<string, string | string[]> => {\n const query: Record<string, string | string[]> = {};\n const params = new URLSearchParams(search);\n\n params.forEach((value, key) => {\n if (isPrototypePollutionKey(key)) return;\n const existing = query[key];\n if (existing === undefined) {\n // First occurrence: store as string\n query[key] = value;\n } else if (Array.isArray(existing)) {\n // Already an array: append\n existing.push(value);\n } else {\n // Second occurrence: convert to array\n query[key] = [existing, value];\n }\n });\n\n return query;\n};\n","/**\n * Shared helpers for parsing route path params and constraints.\n * @internal\n */\n\n/** Validates whether a character can start a route param name. @internal */\nexport const isParamStart = (char: string | undefined): boolean =>\n char !== undefined &&\n ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || char === '_');\n\n/** Validates whether a character can appear after the start of a route param name. @internal */\nexport const isParamChar = (char: string | undefined): boolean =>\n isParamStart(char) || (char !== undefined && char >= '0' && char <= '9');\n\n/** Reads a route param constraint while preserving escaped chars and nested groups. @internal */\nexport const readConstraint = (\n path: string,\n startIndex: number\n): { constraint: string; endIndex: number } | null => {\n let depth = 1;\n let constraint = '';\n let i = startIndex + 1;\n let inCharacterClass = false;\n\n while (i < path.length) {\n const char = path[i];\n\n if (char === '\\\\' && i + 1 < path.length) {\n constraint += char + path[i + 1];\n i += 2;\n continue;\n }\n\n if (char === '[' && !inCharacterClass) {\n inCharacterClass = true;\n } else if (char === ']' && inCharacterClass) {\n inCharacterClass = false;\n } else if (!inCharacterClass && char === '(') {\n depth++;\n } else if (!inCharacterClass && char === ')') {\n depth--;\n if (depth === 0) {\n return { constraint, endIndex: i + 1 };\n }\n }\n\n constraint += char;\n i++;\n }\n\n return null;\n};\n","/**\n * Route matching helpers.\n * @module bquery/router\n */\n\nimport { parseQuery } from './query';\nimport { getNormalizedRouteConstraint, getRouteConstraintRegex } from './constraints';\nimport { isParamChar, isParamStart, readConstraint } from './path-pattern';\nimport type { Route, RouteDefinition } from './types';\n\nconst readConstraintOrThrow = (\n path: string,\n startIndex: number\n): { constraint: string; endIndex: number } => {\n const parsedConstraint = readConstraint(path, startIndex);\n if (!parsedConstraint) {\n throw new Error(\n `bQuery router: Invalid route param constraint syntax in path \"${path}\" at index ${startIndex}.`\n );\n }\n return parsedConstraint;\n};\n\ntype RouteParamDescriptor = {\n name: string;\n constraint?: string;\n nextIndex: number;\n};\n\nconst validatedRoutePathCache = new Set<string>();\n\nconst readParamDescriptor = (path: string, index: number): RouteParamDescriptor | null => {\n if (path[index] !== ':' || !isParamStart(path[index + 1])) {\n return null;\n }\n\n let nameEnd = index + 2;\n while (nameEnd < path.length && isParamChar(path[nameEnd])) {\n nameEnd++;\n }\n\n let nextIndex = nameEnd;\n let constraint: string | undefined;\n\n if (path[nameEnd] === '(') {\n const parsedConstraint = readConstraintOrThrow(path, nameEnd);\n constraint = parsedConstraint.constraint;\n nextIndex = parsedConstraint.endIndex;\n }\n\n return {\n name: path.slice(index + 1, nameEnd),\n constraint,\n nextIndex,\n };\n};\n\nconst validateRoutePathPattern = (path: string): void => {\n if (validatedRoutePathCache.has(path)) {\n return;\n }\n\n for (let i = 0; i < path.length; ) {\n const char = path[i];\n\n if (char === ':' && isParamStart(path[i + 1])) {\n const param = readParamDescriptor(path, i);\n if (param?.constraint) {\n getNormalizedRouteConstraint(param.constraint);\n }\n i = param?.nextIndex ?? i + 1;\n continue;\n }\n\n i++;\n }\n\n validatedRoutePathCache.add(path);\n};\n\nconst findSegmentBoundary = (value: string, startIndex: number): number => {\n const slashIndex = value.indexOf('/', startIndex);\n return slashIndex === -1 ? value.length : slashIndex;\n};\n\nconst readNextStaticChunk = (path: string, startIndex: number): string => {\n let chunkEnd = startIndex;\n\n while (chunkEnd < path.length) {\n if (path[chunkEnd] === '*') {\n break;\n }\n\n if (path[chunkEnd] === ':' && isParamStart(path[chunkEnd + 1])) {\n break;\n }\n\n chunkEnd++;\n }\n\n return path.slice(startIndex, chunkEnd);\n};\n\nconst findAnchoredCandidateEnds = (\n actualPath: string,\n startIndex: number,\n limit: number,\n nextStaticChunk: string\n): number[] => {\n const candidates: number[] = [];\n let searchIndex = startIndex;\n\n while (searchIndex <= limit) {\n const candidateEnd = actualPath.indexOf(nextStaticChunk, searchIndex);\n if (candidateEnd === -1 || candidateEnd > limit) {\n break;\n }\n\n candidates.push(candidateEnd);\n searchIndex = candidateEnd + 1;\n }\n\n return candidates.reverse();\n};\n\nconst matchPathPattern = (routePath: string, actualPath: string): Record<string, string> | null => {\n // Memoization keeps wildcard/param backtracking linear for repeated subproblems\n // within a single route/path match attempt.\n const memo = new Map<string, Record<string, string> | null>();\n\n const matchFrom = (routeIndex: number, pathIndex: number): Record<string, string> | null => {\n const memoKey = `${routeIndex}:${pathIndex}`;\n if (memo.has(memoKey)) {\n return memo.get(memoKey) ?? null;\n }\n\n if (routeIndex === routePath.length) {\n const result = pathIndex === actualPath.length ? {} : null;\n memo.set(memoKey, result);\n return result;\n }\n\n const routeChar = routePath[routeIndex];\n\n if (routeChar === '*') {\n if (routeIndex === routePath.length - 1) {\n const result = {};\n memo.set(memoKey, result);\n return result;\n }\n\n const nextStaticChunk = readNextStaticChunk(routePath, routeIndex + 1);\n const anchoredCandidateEnds =\n nextStaticChunk.length > 0\n ? findAnchoredCandidateEnds(actualPath, pathIndex, actualPath.length, nextStaticChunk)\n : null;\n\n const iterateCandidateEnds = anchoredCandidateEnds\n ? (callback: (candidateEnd: number) => Record<string, string> | null) => {\n for (const candidateEnd of anchoredCandidateEnds) {\n const result = callback(candidateEnd);\n if (result) {\n return result;\n }\n }\n return null;\n }\n : (callback: (candidateEnd: number) => Record<string, string> | null) => {\n for (let candidateEnd = actualPath.length; candidateEnd >= pathIndex; candidateEnd--) {\n const result = callback(candidateEnd);\n if (result) {\n return result;\n }\n }\n return null;\n };\n\n const wildcardMatch = iterateCandidateEnds((candidateEnd) => {\n const suffixMatch = matchFrom(routeIndex + 1, candidateEnd);\n if (suffixMatch) {\n memo.set(memoKey, suffixMatch);\n return suffixMatch;\n }\n return null;\n });\n\n if (wildcardMatch) {\n return wildcardMatch;\n }\n\n memo.set(memoKey, null);\n return null;\n }\n\n const param = readParamDescriptor(routePath, routeIndex);\n if (param) {\n const constraintRegex = param.constraint\n ? getRouteConstraintRegex(param.constraint)\n : undefined;\n const candidateLimit = param.constraint\n ? actualPath.length\n : findSegmentBoundary(actualPath, pathIndex);\n const nextStaticChunk = readNextStaticChunk(routePath, param.nextIndex);\n const anchoredCandidateEnds =\n nextStaticChunk.length > 0\n ? findAnchoredCandidateEnds(actualPath, pathIndex, candidateLimit, nextStaticChunk)\n : null;\n\n const iterateCandidateEnds = anchoredCandidateEnds\n ? (callback: (candidateEnd: number) => Record<string, string> | null) => {\n for (const candidateEnd of anchoredCandidateEnds) {\n if (candidateEnd <= pathIndex) {\n continue;\n }\n const result = callback(candidateEnd);\n if (result) {\n return result;\n }\n }\n return null;\n }\n : (callback: (candidateEnd: number) => Record<string, string> | null) => {\n for (let candidateEnd = candidateLimit; candidateEnd > pathIndex; candidateEnd--) {\n const result = callback(candidateEnd);\n if (result) {\n return result;\n }\n }\n return null;\n };\n\n const paramMatch = iterateCandidateEnds((candidateEnd) => {\n const candidateValue = actualPath.slice(pathIndex, candidateEnd);\n\n if (constraintRegex) {\n if (!constraintRegex.test(candidateValue)) {\n return null;\n }\n }\n\n const suffixMatch = matchFrom(param.nextIndex, candidateEnd);\n if (suffixMatch) {\n const result = {\n [param.name]: candidateValue,\n ...suffixMatch,\n };\n memo.set(memoKey, result);\n return result;\n }\n return null;\n });\n\n if (paramMatch) {\n return paramMatch;\n }\n\n memo.set(memoKey, null);\n return null;\n }\n\n if (pathIndex >= actualPath.length || routeChar !== actualPath[pathIndex]) {\n memo.set(memoKey, null);\n return null;\n }\n\n const result = matchFrom(routeIndex + 1, pathIndex + 1);\n memo.set(memoKey, result);\n return result;\n };\n\n return matchFrom(0, 0);\n};\n\n/**\n * Matches a path against route definitions and extracts params.\n * @internal\n */\nexport const matchRoute = (\n path: string,\n routes: RouteDefinition[]\n): { matched: RouteDefinition; params: Record<string, string> } | null => {\n for (const route of routes) {\n validateRoutePathPattern(route.path);\n const params = matchPathPattern(route.path, path);\n if (params) {\n return { matched: route, params };\n }\n }\n\n return null;\n};\n\n/**\n * Creates a Route object from the current URL.\n * @internal\n */\nexport const createRoute = (\n pathname: string,\n search: string,\n hash: string,\n routes: RouteDefinition[]\n): Route => {\n const result = matchRoute(pathname, routes);\n\n return {\n path: pathname,\n params: result?.params ?? {},\n query: parseQuery(search),\n matched: result?.matched ?? null,\n hash: hash.replace(/^#/, ''),\n };\n};\n"],"mappings":";;AAiBA,IAAa,IAAA,CAAc,MAAsD;AAC/E,QAAM,IAA2C,CAAA;AAGjD,aAFmB,gBAAgB,CAAA,EAE5B,QAAA,CAAS,GAAO,MAAQ;AAC7B,QAAI,EAAwB,CAAA,EAAM;AAClC,UAAM,IAAW,EAAM,CAAA;AACvB,IAAI,MAAa,SAEf,EAAM,CAAA,IAAO,IACJ,MAAM,QAAQ,CAAA,IAEvB,EAAS,KAAK,CAAA,IAGd,EAAM,CAAA,IAAO,CAAC,GAAU,CAAA;AAAA,MAIrB;GC9BI,IAAA,CAAgB,MAC3B,MAAS,WACP,KAAQ,OAAO,KAAQ,OAAS,KAAQ,OAAO,KAAQ,OAAQ,MAAS,MAG/D,IAAA,CAAe,MAC1B,EAAa,CAAA,KAAU,MAAS,UAAa,KAAQ,OAAO,KAAQ,KAGzD,IAAA,CACX,GACA,MACoD;AACpD,MAAI,IAAQ,GACR,IAAa,IACb,IAAI,IAAa,GACjB,IAAmB;AAEvB,S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AAA;AAGX,eAAO;AAAA,UAG4B,MAAiB;AACxD,cAAM,IAAiB,EAAW,MAAM,GAAW,CAAA;AAEnD,YAAI,KACE,CAAC,EAAgB,KAAK,CAAA;AACxB,iBAAO;AAIX,cAAM,IAAc,EAAU,EAAM,WAAW,CAAA;AAC/C,YAAI,GAAa;AACf,gBAAM,IAAS;AAAA,aACZ,EAAM,IAAA,GAAO;AAAA,YACd,GAAG;AAAA;AAEL,iBAAA,EAAK,IAAI,GAAS,CAAA,GACX;AAAA;AAET,eAAO;AAAA;AAGT,aAAI,MAIJ,EAAK,IAAI,GAAS,IAAA,GACX;AAAA;AAGT,QAAI,KAAa,EAAW,UAAU,MAAc,EAAW,CAAA;AAC7D,aAAA,EAAK,IAAI,GAAS,IAAA,GACX;AAGT,UAAM,IAAS,EAAU,IAAa,GAAG,IAAY,CAAA;AACrD,WAAA,EAAK,IAAI,GAAS,CAAA,GACX;AAAA;AAGT,SAAO,EAAU,GAAG,CAAA;GAOT,IAAA,CACX,GACA,MACwE;AACxE,aAAW,KAAS,GAAQ;AAC1B,IAAA,EAAyB,EAAM,IAAA;AAC/B,UAAM,IAAS,EAAiB,EAAM,MAAM,CAAA;AAC5C,QAAI,EACF,QAAO;AAAA,MAAE,SAAS;AAAA,MAAO,QAAA;AAAA;;AAI7B,SAAO;GAOI,IAAA,CACX,GACA,GACA,GACA,MACU;AACV,QAAM,IAAS,EAAW,GAAU,CAAA;AAEpC,SAAO;AAAA,IACL,MAAM;AAAA,IACN,QAAQ,GAAQ,UAAU,CAAA;AAAA,IAC1B,OAAO,EAAW,CAAA;AAAA,IAClB,SAAS,GAAQ,WAAW;AAAA,IAC5B,MAAM,EAAK,QAAQ,MAAM,EAAA;AAAA"}
|
|
1
|
+
{"version":3,"file":"match-CrZRVC4z.js","names":[],"sources":["../src/router/query.ts","../src/router/path-pattern.ts","../src/router/match.ts"],"sourcesContent":["/**\n * Query string helpers.\n * @module bquery/router\n */\n\nimport { isPrototypePollutionKey } from '../core/utils/object';\n\n/**\n * Parses query string into an object.\n * Single values are stored as strings, duplicate keys become arrays.\n * @internal\n *\n * @example\n * parseQuery('?foo=1') // { foo: '1' }\n * parseQuery('?tag=a&tag=b') // { tag: ['a', 'b'] }\n * parseQuery('?x=1&y=2&x=3') // { x: ['1', '3'], y: '2' }\n */\nexport const parseQuery = (search: string): Record<string, string | string[]> => {\n const query: Record<string, string | string[]> = {};\n const params = new URLSearchParams(search);\n\n params.forEach((value, key) => {\n if (isPrototypePollutionKey(key)) return;\n const existing = query[key];\n if (existing === undefined) {\n // First occurrence: store as string\n query[key] = value;\n } else if (Array.isArray(existing)) {\n // Already an array: append\n existing.push(value);\n } else {\n // Second occurrence: convert to array\n query[key] = [existing, value];\n }\n });\n\n return query;\n};\n","/**\n * Shared helpers for parsing route path params and constraints.\n * @internal\n */\n\n/** Validates whether a character can start a route param name. @internal */\nexport const isParamStart = (char: string | undefined): boolean =>\n char !== undefined &&\n ((char >= 'a' && char <= 'z') || (char >= 'A' && char <= 'Z') || char === '_');\n\n/** Validates whether a character can appear after the start of a route param name. @internal */\nexport const isParamChar = (char: string | undefined): boolean =>\n isParamStart(char) || (char !== undefined && char >= '0' && char <= '9');\n\n/** Reads a route param constraint while preserving escaped chars and nested groups. @internal */\nexport const readConstraint = (\n path: string,\n startIndex: number\n): { constraint: string; endIndex: number } | null => {\n let depth = 1;\n let constraint = '';\n let i = startIndex + 1;\n let inCharacterClass = false;\n\n while (i < path.length) {\n const char = path[i];\n\n if (char === '\\\\' && i + 1 < path.length) {\n constraint += char + path[i + 1];\n i += 2;\n continue;\n }\n\n if (char === '[' && !inCharacterClass) {\n inCharacterClass = true;\n } else if (char === ']' && inCharacterClass) {\n inCharacterClass = false;\n } else if (!inCharacterClass && char === '(') {\n depth++;\n } else if (!inCharacterClass && char === ')') {\n depth--;\n if (depth === 0) {\n return { constraint, endIndex: i + 1 };\n }\n }\n\n constraint += char;\n i++;\n }\n\n return null;\n};\n","/**\n * Route matching helpers.\n * @module bquery/router\n */\n\nimport { parseQuery } from './query';\nimport { getNormalizedRouteConstraint, getRouteConstraintRegex } from './constraints';\nimport { isParamChar, isParamStart, readConstraint } from './path-pattern';\nimport type { Route, RouteDefinition } from './types';\n\nconst readConstraintOrThrow = (\n path: string,\n startIndex: number\n): { constraint: string; endIndex: number } => {\n const parsedConstraint = readConstraint(path, startIndex);\n if (!parsedConstraint) {\n throw new Error(\n `bQuery router: Invalid route param constraint syntax in path \"${path}\" at index ${startIndex}.`\n );\n }\n return parsedConstraint;\n};\n\ntype RouteParamDescriptor = {\n name: string;\n constraint?: string;\n nextIndex: number;\n};\n\nconst validatedRoutePathCache = new Set<string>();\n\nconst readParamDescriptor = (path: string, index: number): RouteParamDescriptor | null => {\n if (path[index] !== ':' || !isParamStart(path[index + 1])) {\n return null;\n }\n\n let nameEnd = index + 2;\n while (nameEnd < path.length && isParamChar(path[nameEnd])) {\n nameEnd++;\n }\n\n let nextIndex = nameEnd;\n let constraint: string | undefined;\n\n if (path[nameEnd] === '(') {\n const parsedConstraint = readConstraintOrThrow(path, nameEnd);\n constraint = parsedConstraint.constraint;\n nextIndex = parsedConstraint.endIndex;\n }\n\n return {\n name: path.slice(index + 1, nameEnd),\n constraint,\n nextIndex,\n };\n};\n\nconst validateRoutePathPattern = (path: string): void => {\n if (validatedRoutePathCache.has(path)) {\n return;\n }\n\n for (let i = 0; i < path.length; ) {\n const char = path[i];\n\n if (char === ':' && isParamStart(path[i + 1])) {\n const param = readParamDescriptor(path, i);\n if (param?.constraint) {\n getNormalizedRouteConstraint(param.constraint);\n }\n i = param?.nextIndex ?? i + 1;\n continue;\n }\n\n i++;\n }\n\n validatedRoutePathCache.add(path);\n};\n\nconst findSegmentBoundary = (value: string, startIndex: number): number => {\n const slashIndex = value.indexOf('/', startIndex);\n return slashIndex === -1 ? value.length : slashIndex;\n};\n\nconst readNextStaticChunk = (path: string, startIndex: number): string => {\n let chunkEnd = startIndex;\n\n while (chunkEnd < path.length) {\n if (path[chunkEnd] === '*') {\n break;\n }\n\n if (path[chunkEnd] === ':' && isParamStart(path[chunkEnd + 1])) {\n break;\n }\n\n chunkEnd++;\n }\n\n return path.slice(startIndex, chunkEnd);\n};\n\nconst findAnchoredCandidateEnds = (\n actualPath: string,\n startIndex: number,\n limit: number,\n nextStaticChunk: string\n): number[] => {\n const candidates: number[] = [];\n let searchIndex = startIndex;\n\n while (searchIndex <= limit) {\n const candidateEnd = actualPath.indexOf(nextStaticChunk, searchIndex);\n if (candidateEnd === -1 || candidateEnd > limit) {\n break;\n }\n\n candidates.push(candidateEnd);\n searchIndex = candidateEnd + 1;\n }\n\n return candidates.reverse();\n};\n\nconst matchPathPattern = (routePath: string, actualPath: string): Record<string, string> | null => {\n // Memoization keeps wildcard/param backtracking linear for repeated subproblems\n // within a single route/path match attempt.\n const memo = new Map<string, Record<string, string> | null>();\n\n const matchFrom = (routeIndex: number, pathIndex: number): Record<string, string> | null => {\n const memoKey = `${routeIndex}:${pathIndex}`;\n if (memo.has(memoKey)) {\n return memo.get(memoKey) ?? null;\n }\n\n if (routeIndex === routePath.length) {\n const result = pathIndex === actualPath.length ? {} : null;\n memo.set(memoKey, result);\n return result;\n }\n\n const routeChar = routePath[routeIndex];\n\n if (routeChar === '*') {\n if (routeIndex === routePath.length - 1) {\n const result = {};\n memo.set(memoKey, result);\n return result;\n }\n\n const nextStaticChunk = readNextStaticChunk(routePath, routeIndex + 1);\n const anchoredCandidateEnds =\n nextStaticChunk.length > 0\n ? findAnchoredCandidateEnds(actualPath, pathIndex, actualPath.length, nextStaticChunk)\n : null;\n\n const iterateCandidateEnds = anchoredCandidateEnds\n ? (callback: (candidateEnd: number) => Record<string, string> | null) => {\n for (const candidateEnd of anchoredCandidateEnds) {\n const result = callback(candidateEnd);\n if (result) {\n return result;\n }\n }\n return null;\n }\n : (callback: (candidateEnd: number) => Record<string, string> | null) => {\n for (let candidateEnd = actualPath.length; candidateEnd >= pathIndex; candidateEnd--) {\n const result = callback(candidateEnd);\n if (result) {\n return result;\n }\n }\n return null;\n };\n\n const wildcardMatch = iterateCandidateEnds((candidateEnd) => {\n const suffixMatch = matchFrom(routeIndex + 1, candidateEnd);\n if (suffixMatch) {\n memo.set(memoKey, suffixMatch);\n return suffixMatch;\n }\n return null;\n });\n\n if (wildcardMatch) {\n return wildcardMatch;\n }\n\n memo.set(memoKey, null);\n return null;\n }\n\n const param = readParamDescriptor(routePath, routeIndex);\n if (param) {\n const constraintRegex = param.constraint\n ? getRouteConstraintRegex(param.constraint)\n : undefined;\n const candidateLimit = param.constraint\n ? actualPath.length\n : findSegmentBoundary(actualPath, pathIndex);\n const nextStaticChunk = readNextStaticChunk(routePath, param.nextIndex);\n const anchoredCandidateEnds =\n nextStaticChunk.length > 0\n ? findAnchoredCandidateEnds(actualPath, pathIndex, candidateLimit, nextStaticChunk)\n : null;\n\n const iterateCandidateEnds = anchoredCandidateEnds\n ? (callback: (candidateEnd: number) => Record<string, string> | null) => {\n for (const candidateEnd of anchoredCandidateEnds) {\n if (candidateEnd <= pathIndex) {\n continue;\n }\n const result = callback(candidateEnd);\n if (result) {\n return result;\n }\n }\n return null;\n }\n : (callback: (candidateEnd: number) => Record<string, string> | null) => {\n for (let candidateEnd = candidateLimit; candidateEnd > pathIndex; candidateEnd--) {\n const result = callback(candidateEnd);\n if (result) {\n return result;\n }\n }\n return null;\n };\n\n const paramMatch = iterateCandidateEnds((candidateEnd) => {\n const candidateValue = actualPath.slice(pathIndex, candidateEnd);\n\n if (constraintRegex) {\n if (!constraintRegex.test(candidateValue)) {\n return null;\n }\n }\n\n const suffixMatch = matchFrom(param.nextIndex, candidateEnd);\n if (suffixMatch) {\n const result = {\n [param.name]: candidateValue,\n ...suffixMatch,\n };\n memo.set(memoKey, result);\n return result;\n }\n return null;\n });\n\n if (paramMatch) {\n return paramMatch;\n }\n\n memo.set(memoKey, null);\n return null;\n }\n\n if (pathIndex >= actualPath.length || routeChar !== actualPath[pathIndex]) {\n memo.set(memoKey, null);\n return null;\n }\n\n const result = matchFrom(routeIndex + 1, pathIndex + 1);\n memo.set(memoKey, result);\n return result;\n };\n\n return matchFrom(0, 0);\n};\n\n/**\n * Matches a path against route definitions and extracts params.\n * @internal\n */\nexport const matchRoute = (\n path: string,\n routes: RouteDefinition[]\n): { matched: RouteDefinition; params: Record<string, string> } | null => {\n for (const route of routes) {\n validateRoutePathPattern(route.path);\n const params = matchPathPattern(route.path, path);\n if (params) {\n return { matched: route, params };\n }\n }\n\n return null;\n};\n\n/**\n * Creates a Route object from the current URL.\n * @internal\n */\nexport const createRoute = (\n pathname: string,\n search: string,\n hash: string,\n routes: RouteDefinition[]\n): Route => {\n const result = matchRoute(pathname, routes);\n\n return {\n path: pathname,\n params: result?.params ?? {},\n query: parseQuery(search),\n matched: result?.matched ?? null,\n hash: hash.replace(/^#/, ''),\n };\n};\n"],"mappings":";;AAiBA,IAAa,IAAA,CAAc,MAAsD;AAC/E,QAAM,IAA2C,CAAC;AAGlD,aAFmB,gBAAgB,CAEnC,EAAO,QAAA,CAAS,GAAO,MAAQ;AAC7B,QAAI,EAAwB,CAAG,EAAG;AAClC,UAAM,IAAW,EAAM,CAAA;AACvB,IAAI,MAAa,SAEf,EAAM,CAAA,IAAO,IACJ,MAAM,QAAQ,CAAQ,IAE/B,EAAS,KAAK,CAAK,IAGnB,EAAM,CAAA,IAAO,CAAC,GAAU,CAAK;AAAA,EAEjC,CAAC,GAEM;AACT,GC/Ba,IAAA,CAAgB,MAC3B,MAAS,WACP,KAAQ,OAAO,KAAQ,OAAS,KAAQ,OAAO,KAAQ,OAAQ,MAAS,MAG/D,IAAA,CAAe,MAC1B,EAAa,CAAI,KAAM,MAAS,UAAa,KAAQ,OAAO,KAAQ,KAGzD,IAAA,CACX,GACA,MACoD;AACpD,MAAI,IAAQ,GACR,IAAa,IACb,IAAI,IAAa,GACjB,IAAmB;AAEvB,SAAO,IAAI,EAAK,UAAQ;AACtB,UAAM,IAAO,EAAK,CAAA;AAElB,QAAI,MAAS,QAAQ,IAAI,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 -1,5 +1,5 @@
|
|
|
1
|
-
import { n as d } from "./core-
|
|
2
|
-
import { n as f } from "./readonly-
|
|
1
|
+
import { n as d } from "./core-yg9rJXiR.js";
|
|
2
|
+
import { n as f } from "./readonly-Br-6pAgj.js";
|
|
3
3
|
var A = (i) => {
|
|
4
4
|
const r = d(!1);
|
|
5
5
|
let a;
|
|
@@ -511,4 +511,4 @@ export {
|
|
|
511
511
|
z as u
|
|
512
512
|
};
|
|
513
513
|
|
|
514
|
-
//# sourceMappingURL=media-
|
|
514
|
+
//# sourceMappingURL=media-Chh6mA0v.js.map
|