jaxs 0.5.0 → 0.6.2
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/dist/jaxs.d.ts +53 -75
- package/dist/jaxs.js +477 -499
- package/dist/jaxs.umd.cjs +297 -324
- package/package.json +1 -1
package/dist/jaxs.umd.cjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
})(this, function (p) {
|
|
9
9
|
'use strict'
|
|
10
10
|
const f = (e, t) => t.createElement(e),
|
|
11
|
-
|
|
11
|
+
nt = (e, t) => {
|
|
12
12
|
for (const s in t) {
|
|
13
13
|
if (s === '__self') continue
|
|
14
14
|
const n = t[s].toString()
|
|
@@ -18,22 +18,22 @@
|
|
|
18
18
|
} else e.setAttribute(s, n)
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
rt = (e, t, s) => {
|
|
22
22
|
const n = {}
|
|
23
23
|
for (const r in t) {
|
|
24
24
|
const o = t[r],
|
|
25
|
-
a = (
|
|
25
|
+
a = (l) => s(o, l)
|
|
26
26
|
e.addEventListener(r, a),
|
|
27
27
|
(n[r] = { domEvent: r, busEvent: o, listener: a })
|
|
28
28
|
}
|
|
29
29
|
e.eventMaps = n
|
|
30
30
|
},
|
|
31
|
-
|
|
31
|
+
ot = (e, t, s, n) => {
|
|
32
32
|
const r = f(e, n.document)
|
|
33
|
-
return
|
|
33
|
+
return nt(r, t), rt(r, s, n.publish), r
|
|
34
34
|
},
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
g = 'http://www.w3.org/2000/svg',
|
|
36
|
+
it = {
|
|
37
37
|
animate: !0,
|
|
38
38
|
animateMotion: !0,
|
|
39
39
|
animateTransform: !0,
|
|
@@ -97,33 +97,33 @@
|
|
|
97
97
|
use: !0,
|
|
98
98
|
view: !0,
|
|
99
99
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const n = s.createElementNS(
|
|
100
|
+
ut = (e, t) => !!(it[e] || (e === 'a' && t === g)),
|
|
101
|
+
at = (e, t, s) => {
|
|
102
|
+
const n = s.createElementNS(g, e)
|
|
103
103
|
for (const r in t)
|
|
104
104
|
r === '__self' ||
|
|
105
105
|
r === 'xmlns' ||
|
|
106
106
|
n.setAttributeNS(null, r, t[r].toString())
|
|
107
107
|
return n
|
|
108
108
|
},
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
class
|
|
109
|
+
ct = (e) => e.namespaceURI === g,
|
|
110
|
+
lt = (e, t) => t.createTextNode(e)
|
|
111
|
+
class ht {
|
|
112
112
|
constructor(t) {
|
|
113
113
|
this.value = t.toString()
|
|
114
114
|
}
|
|
115
115
|
render(t) {
|
|
116
|
-
const s =
|
|
116
|
+
const s = lt(this.value, t.document)
|
|
117
117
|
return (s.__jsx = 'TextNode'), [s]
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
const dt = (e) => typeof e == 'string' || typeof e == 'number',
|
|
121
|
+
pt = (e) => new ht(e),
|
|
122
|
+
mt = (e) => (dt(e) ? pt(e) : e),
|
|
123
|
+
ft = (e) => bt(e).map(mt).flat(),
|
|
124
|
+
bt = (e) => (Array.isArray(e) ? e.flat() : e ? [e] : []),
|
|
125
125
|
N = (e, t = {}) => e || t.children || [],
|
|
126
|
-
|
|
126
|
+
vt = (e, t = '') => {
|
|
127
127
|
const s = {},
|
|
128
128
|
n = {}
|
|
129
129
|
for (const r in e) {
|
|
@@ -133,19 +133,19 @@
|
|
|
133
133
|
n[a] = o ? o.toString() : ''
|
|
134
134
|
} else {
|
|
135
135
|
if (o === !1) continue
|
|
136
|
-
r === '__source' ? (s.__source = e.__source) : (s[r] =
|
|
136
|
+
r === '__source' ? (s.__source = e.__source) : (s[r] = gt(r, o, t))
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
return { attributes: s, events: n }
|
|
140
140
|
},
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
gt = (e, t, s = '') => (t == null ? s : t.toString()),
|
|
142
|
+
yt = (e, t) => {
|
|
143
143
|
const s = e || {},
|
|
144
144
|
n = N(t, s)
|
|
145
145
|
return (s.children = s.children || n), s
|
|
146
146
|
},
|
|
147
|
-
j = (e, t, s, n = []) => e.reduce(
|
|
148
|
-
|
|
147
|
+
j = (e, t, s, n = []) => e.reduce(Et(t, s), n).flat(),
|
|
148
|
+
Et = (e, t) => (s, n) =>
|
|
149
149
|
n
|
|
150
150
|
? Array.isArray(n)
|
|
151
151
|
? j(n, e, t, s)
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
: s
|
|
154
154
|
class O {
|
|
155
155
|
constructor(t) {
|
|
156
|
-
this.collection =
|
|
156
|
+
this.collection = ft(t)
|
|
157
157
|
}
|
|
158
158
|
render(t, s) {
|
|
159
159
|
this.parentElement = s
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
t.forEach((n) => s.appendChild(n))
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
class
|
|
172
|
+
class xt {
|
|
173
173
|
constructor(t, s) {
|
|
174
174
|
;(this.type = t), (this.attributes = s)
|
|
175
175
|
}
|
|
@@ -197,13 +197,13 @@
|
|
|
197
197
|
return `${this.type}${t}${s}${n}`
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
class
|
|
200
|
+
class At {
|
|
201
201
|
constructor(t, s, n = []) {
|
|
202
202
|
this.type = t
|
|
203
|
-
const { events: r, attributes: o } =
|
|
203
|
+
const { events: r, attributes: o } = vt(s)
|
|
204
204
|
;(this.events = r),
|
|
205
205
|
(this.attributes = o),
|
|
206
|
-
(this.isSvg =
|
|
206
|
+
(this.isSvg = ut(this.type, this.attributes.xmlns)),
|
|
207
207
|
(this.children = new O(n))
|
|
208
208
|
}
|
|
209
209
|
render(t) {
|
|
@@ -214,19 +214,19 @@
|
|
|
214
214
|
return this.isSvg ? this.generateSvgDom(t) : this.generateHtmlDom(t)
|
|
215
215
|
}
|
|
216
216
|
generateHtmlDom(t) {
|
|
217
|
-
const s =
|
|
217
|
+
const s = ot(this.type, this.attributes, this.events, t)
|
|
218
218
|
return (s.__jsx = this.jsxKey()), s
|
|
219
219
|
}
|
|
220
220
|
generateSvgDom(t) {
|
|
221
|
-
const s =
|
|
221
|
+
const s = at(this.type, this.attributes, t.document)
|
|
222
222
|
return (s.__jsx = this.jsxKey()), s
|
|
223
223
|
}
|
|
224
224
|
jsxKey() {
|
|
225
|
-
return new
|
|
225
|
+
return new xt(this.type, this.attributes).generate()
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
const M = (e, t, ...s) =>
|
|
229
|
-
typeof e == 'string' ? new
|
|
229
|
+
typeof e == 'string' ? new At(e, t, s) : e(yt(t, s))
|
|
230
230
|
M.fragment = (e, t) => {
|
|
231
231
|
const s = N(t, e)
|
|
232
232
|
return new O(s)
|
|
@@ -256,40 +256,42 @@
|
|
|
256
256
|
return this.renderKit.document.querySelector(this.selector)
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
const
|
|
259
|
+
const wt = (e, t, s) => {
|
|
260
260
|
const n = new _t(e, t, s)
|
|
261
261
|
return n.renderAndAttach(s), n
|
|
262
262
|
},
|
|
263
263
|
T = 'go-to-href',
|
|
264
|
+
k = 'go-to',
|
|
264
265
|
b = 'navigation:location-change',
|
|
265
|
-
|
|
266
|
-
|
|
266
|
+
$ = 'navigation:route-change',
|
|
267
|
+
St = Object.freeze(
|
|
267
268
|
Object.defineProperty(
|
|
268
269
|
{
|
|
269
270
|
__proto__: null,
|
|
270
271
|
linkNavigationEvent: T,
|
|
271
272
|
locationChangeEvent: b,
|
|
272
|
-
|
|
273
|
+
navigationEvent: k,
|
|
274
|
+
routeChangeEvent: $,
|
|
273
275
|
},
|
|
274
276
|
Symbol.toStringTag,
|
|
275
277
|
{ value: 'Module' },
|
|
276
278
|
),
|
|
277
279
|
),
|
|
278
|
-
|
|
279
|
-
e.
|
|
280
|
+
P = (e) => {
|
|
281
|
+
e.create('route', { host: '', path: '', query: {} })
|
|
280
282
|
},
|
|
281
|
-
|
|
283
|
+
D = (e) => {
|
|
282
284
|
const t = e.closest('[href]')
|
|
283
285
|
return (t && t.getAttribute('href')) || ''
|
|
284
286
|
},
|
|
285
|
-
|
|
287
|
+
y = (e, { publish: t, window: s }) => {
|
|
286
288
|
s.history.pushState(null, '', e), t(b, null)
|
|
287
289
|
},
|
|
288
|
-
|
|
290
|
+
F = (e, t) => {
|
|
289
291
|
if (!e || !e.target) return
|
|
290
292
|
e.preventDefault()
|
|
291
|
-
const s =
|
|
292
|
-
|
|
293
|
+
const s = D(e.target)
|
|
294
|
+
y(s, t)
|
|
293
295
|
},
|
|
294
296
|
L = (e) =>
|
|
295
297
|
e
|
|
@@ -302,40 +304,43 @@
|
|
|
302
304
|
}, {}),
|
|
303
305
|
z = (e, t) => {
|
|
304
306
|
const { state: s, publish: n, window: r } = t,
|
|
305
|
-
{ host: o, pathname: a, search:
|
|
307
|
+
{ host: o, pathname: a, search: l } = r.location,
|
|
306
308
|
u = a,
|
|
307
|
-
d = L(
|
|
309
|
+
d = L(l),
|
|
308
310
|
c = { host: o, path: u, query: d }
|
|
309
|
-
s.store('route').update(c), n(
|
|
311
|
+
s.store('route').update(c), n($, c)
|
|
310
312
|
},
|
|
311
313
|
B = (e) => {
|
|
312
314
|
const { subscribe: t } = e
|
|
313
|
-
t(T,
|
|
315
|
+
t(T, F),
|
|
316
|
+
t(k, (s, n) => {
|
|
317
|
+
y(s, n)
|
|
318
|
+
})
|
|
314
319
|
},
|
|
315
|
-
|
|
320
|
+
V = (e) => {
|
|
316
321
|
const { publish: t, subscribe: s, state: n, window: r } = e
|
|
317
|
-
|
|
322
|
+
P(n), r.addEventListener('popstate', () => t(b, null)), s(b, z)
|
|
318
323
|
},
|
|
319
|
-
|
|
324
|
+
K = (e) => {
|
|
320
325
|
setTimeout(() => e.publish(b, null), 0)
|
|
321
326
|
},
|
|
322
|
-
|
|
323
|
-
|
|
327
|
+
R = (e) => {
|
|
328
|
+
V(e), B(e), K(e)
|
|
324
329
|
},
|
|
325
|
-
|
|
330
|
+
Nt = Object.freeze(
|
|
326
331
|
Object.defineProperty(
|
|
327
332
|
{
|
|
328
333
|
__proto__: null,
|
|
329
|
-
publishLocation:
|
|
330
|
-
startNavigation:
|
|
331
|
-
subscribeToHistoryChange:
|
|
334
|
+
publishLocation: K,
|
|
335
|
+
startNavigation: R,
|
|
336
|
+
subscribeToHistoryChange: V,
|
|
332
337
|
subscribeToNavigation: B,
|
|
333
338
|
},
|
|
334
339
|
Symbol.toStringTag,
|
|
335
340
|
{ value: 'Module' },
|
|
336
341
|
),
|
|
337
342
|
)
|
|
338
|
-
class
|
|
343
|
+
class U {
|
|
339
344
|
constructor({
|
|
340
345
|
window: t,
|
|
341
346
|
document: s,
|
|
@@ -343,7 +348,7 @@
|
|
|
343
348
|
subscribe: r,
|
|
344
349
|
bus: o,
|
|
345
350
|
state: a,
|
|
346
|
-
renderKit:
|
|
351
|
+
renderKit: l,
|
|
347
352
|
}) {
|
|
348
353
|
;(this.window = t),
|
|
349
354
|
(this.document = s),
|
|
@@ -351,19 +356,19 @@
|
|
|
351
356
|
(this.subscribe = r),
|
|
352
357
|
(this.bus = o),
|
|
353
358
|
(this.state = a),
|
|
354
|
-
(this.renderKit =
|
|
359
|
+
(this.renderKit = l),
|
|
355
360
|
(this.roots = [])
|
|
356
361
|
}
|
|
357
362
|
render(t, s) {
|
|
358
|
-
const n =
|
|
363
|
+
const n = wt(t, s, this.renderKit)
|
|
359
364
|
return this.roots.push(n), n
|
|
360
365
|
}
|
|
361
366
|
startNavigation() {
|
|
362
|
-
|
|
367
|
+
R(this)
|
|
363
368
|
}
|
|
364
369
|
}
|
|
365
|
-
const
|
|
366
|
-
Object.defineProperty({ __proto__: null, App:
|
|
370
|
+
const jt = Object.freeze(
|
|
371
|
+
Object.defineProperty({ __proto__: null, App: U }, Symbol.toStringTag, {
|
|
367
372
|
value: 'Module',
|
|
368
373
|
}),
|
|
369
374
|
)
|
|
@@ -446,7 +451,7 @@
|
|
|
446
451
|
subscribe: (n, r) => e.subscribe(n, r),
|
|
447
452
|
}
|
|
448
453
|
},
|
|
449
|
-
|
|
454
|
+
Ot = Object.freeze(
|
|
450
455
|
Object.defineProperty(
|
|
451
456
|
{
|
|
452
457
|
__proto__: null,
|
|
@@ -461,25 +466,54 @@
|
|
|
461
466
|
),
|
|
462
467
|
v = (e) => Array.isArray(e),
|
|
463
468
|
E = (e) => e !== null && !v(e) && typeof e == 'object',
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
!(E(e) && E(t)) ||
|
|
469
|
+
Mt = (e, t) => e === t,
|
|
470
|
+
Tt = (e, t) => Object.keys(e).length === Object.keys(t).length,
|
|
471
|
+
kt = (e, t) =>
|
|
472
|
+
!(E(e) && E(t)) || !Tt(e, t)
|
|
468
473
|
? !1
|
|
469
474
|
: Object.keys(e).every((s) => {
|
|
470
475
|
const n = e[s],
|
|
471
476
|
r = t[s]
|
|
472
477
|
return x(n, r)
|
|
473
478
|
}),
|
|
474
|
-
|
|
479
|
+
$t = (e, t) =>
|
|
475
480
|
!(v(e) && v(t)) || e.length !== t.length
|
|
476
481
|
? !1
|
|
477
482
|
: e.every((s, n) => {
|
|
478
483
|
const r = t[n]
|
|
479
484
|
return x(s, r)
|
|
480
485
|
}),
|
|
481
|
-
x = (e, t) => (E(e) ?
|
|
482
|
-
class
|
|
486
|
+
x = (e, t) => (E(e) ? kt(e, t) : v(e) ? $t(e, t) : Mt(e, t))
|
|
487
|
+
class A {
|
|
488
|
+
constructor(t) {
|
|
489
|
+
;(this.name = t.name),
|
|
490
|
+
(this.parent = t.parent),
|
|
491
|
+
(this._value = t.value),
|
|
492
|
+
(this.initialValue = structuredClone(t.value))
|
|
493
|
+
}
|
|
494
|
+
get value() {
|
|
495
|
+
return this._value
|
|
496
|
+
}
|
|
497
|
+
set value(t) {
|
|
498
|
+
throw new Error('Cannot set value directly. Use an updater!')
|
|
499
|
+
}
|
|
500
|
+
reset() {
|
|
501
|
+
this._value = this.initialValue
|
|
502
|
+
}
|
|
503
|
+
update(t) {
|
|
504
|
+
if (typeof t == 'function') {
|
|
505
|
+
const s = this.getUpdatedValue(t)
|
|
506
|
+
this.updateValue(s)
|
|
507
|
+
} else this.updateValue(t)
|
|
508
|
+
}
|
|
509
|
+
updateValue(t) {
|
|
510
|
+
x(this._value, t) || ((this._value = t), this.parent.notify(this.name))
|
|
511
|
+
}
|
|
512
|
+
getUpdatedValue(t) {
|
|
513
|
+
return t(this.value)
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
class _ {
|
|
483
517
|
constructor(t) {
|
|
484
518
|
this.store = t
|
|
485
519
|
}
|
|
@@ -487,28 +521,25 @@
|
|
|
487
521
|
this.store.update(t)
|
|
488
522
|
}
|
|
489
523
|
reset() {
|
|
490
|
-
this.store.update(this.store.
|
|
524
|
+
this.store.update(this.store.initialValue)
|
|
491
525
|
}
|
|
492
526
|
get value() {
|
|
493
527
|
return this.store.value
|
|
494
528
|
}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
529
|
+
}
|
|
530
|
+
class Pt extends _ {
|
|
531
|
+
updateAttribute(t, s) {
|
|
532
|
+
const n = { ...this.value }
|
|
533
|
+
;(n[t] = s), this.update(n)
|
|
500
534
|
}
|
|
501
|
-
|
|
502
|
-
|
|
535
|
+
resetAttribute(t) {
|
|
536
|
+
const s = { ...this.value },
|
|
537
|
+
n = this.store.initialValue[t]
|
|
538
|
+
;(s[t] = n), this.update(s)
|
|
503
539
|
}
|
|
504
540
|
}
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
this.constructor.prototype[t] = (...n) => {
|
|
508
|
-
const r = s(this.value, ...n)
|
|
509
|
-
this.update(r)
|
|
510
|
-
}
|
|
511
|
-
}
|
|
541
|
+
const Dt = (e) => new Pt(e)
|
|
542
|
+
class Ft extends _ {
|
|
512
543
|
push(t) {
|
|
513
544
|
const s = [...this.value, t]
|
|
514
545
|
this.update(s)
|
|
@@ -540,44 +571,17 @@
|
|
|
540
571
|
const n = [...this.value]
|
|
541
572
|
n.splice(t, 0, s), this.update(n)
|
|
542
573
|
}
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
;(this.name = t.name),
|
|
547
|
-
(this.parent = t.parent),
|
|
548
|
-
(this._value = t.value),
|
|
549
|
-
(this.initialState = structuredClone(t.value)),
|
|
550
|
-
(this.updater = new g(this))
|
|
551
|
-
}
|
|
552
|
-
get value() {
|
|
553
|
-
return this._value
|
|
554
|
-
}
|
|
555
|
-
set value(t) {
|
|
556
|
-
throw new Error('Cannot set value directly. Use an updater!')
|
|
557
|
-
}
|
|
558
|
-
update(t) {
|
|
559
|
-
if (typeof t == 'function') {
|
|
560
|
-
const s = this.getUpdatedValue(t)
|
|
561
|
-
this.updateValue(s)
|
|
562
|
-
} else this.updateValue(t)
|
|
563
|
-
}
|
|
564
|
-
updateValue(t) {
|
|
565
|
-
x(this._value, t) || ((this._value = t), this.parent.notify(this.name))
|
|
566
|
-
}
|
|
567
|
-
getUpdatedValue(t) {
|
|
568
|
-
return t(this.value)
|
|
569
|
-
}
|
|
570
|
-
addUpdaters(t) {
|
|
571
|
-
this.updater.addUpdaterFunctions(t)
|
|
572
|
-
}
|
|
573
|
-
addUpdater(t, s) {
|
|
574
|
-
this.updater.addUpdaterFunction(t, s)
|
|
574
|
+
remove(t) {
|
|
575
|
+
const s = this.value.reduce((n, r) => (r !== t && n.push(r), n), [])
|
|
576
|
+
this.update(s)
|
|
575
577
|
}
|
|
576
|
-
|
|
577
|
-
this.
|
|
578
|
+
removeBy(t) {
|
|
579
|
+
const s = this.value.reduce((n, r) => (t(r) || n.push(r), n), [])
|
|
580
|
+
this.update(s)
|
|
578
581
|
}
|
|
579
582
|
}
|
|
580
|
-
|
|
583
|
+
const Lt = (e) => new Ft(e)
|
|
584
|
+
class zt extends _ {
|
|
581
585
|
toggle() {
|
|
582
586
|
const t = !this.value
|
|
583
587
|
this.update(t)
|
|
@@ -588,31 +592,14 @@
|
|
|
588
592
|
setFalse() {
|
|
589
593
|
this.update(!1)
|
|
590
594
|
}
|
|
591
|
-
addUpdaterFunction(t, s) {
|
|
592
|
-
this.constructor.prototype[t] = (...n) => {
|
|
593
|
-
const r = s(this.value, ...n)
|
|
594
|
-
this.update(r)
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
class C extends g {
|
|
599
|
-
addUpdaterFunction(t, s) {
|
|
600
|
-
this.constructor.prototype[t] = (...n) => {
|
|
601
|
-
const r = s(this.value, ...n)
|
|
602
|
-
this.update(r)
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
updateAttribute(t, s) {
|
|
606
|
-
const n = { ...this.value }
|
|
607
|
-
;(n[t] = s), this.update(n)
|
|
608
|
-
}
|
|
609
595
|
}
|
|
610
|
-
const
|
|
611
|
-
|
|
596
|
+
const Bt = { object: Dt, list: Lt, boolean: (e) => new zt(e) },
|
|
597
|
+
w = 'state'
|
|
598
|
+
class G {
|
|
612
599
|
constructor(t) {
|
|
613
600
|
;(this.publisher = t),
|
|
614
601
|
(this.stores = {}),
|
|
615
|
-
(this.eventNamePrefix =
|
|
602
|
+
(this.eventNamePrefix = w),
|
|
616
603
|
(this.notifications = new Set()),
|
|
617
604
|
(this.inTransaction = !1)
|
|
618
605
|
}
|
|
@@ -620,18 +607,6 @@
|
|
|
620
607
|
const n = new A({ name: t, parent: this, value: s })
|
|
621
608
|
return (this.stores[t] = n), n
|
|
622
609
|
}
|
|
623
|
-
createBoolean(t, s) {
|
|
624
|
-
const n = this.create(t, s)
|
|
625
|
-
return (n.updater = new G(n)), n
|
|
626
|
-
}
|
|
627
|
-
createRecord(t, s) {
|
|
628
|
-
const n = this.create(t, s)
|
|
629
|
-
return (n.updater = new C(n)), n
|
|
630
|
-
}
|
|
631
|
-
createList(t, s) {
|
|
632
|
-
const n = this.create(t, s)
|
|
633
|
-
return (n.updater = new w(n)), n
|
|
634
|
-
}
|
|
635
610
|
store(t) {
|
|
636
611
|
return this.stores[t] || new A({ name: t, parent: this, value: void 0 })
|
|
637
612
|
}
|
|
@@ -666,24 +641,22 @@
|
|
|
666
641
|
return `${this.eventNamePrefix}:${t}`
|
|
667
642
|
}
|
|
668
643
|
}
|
|
669
|
-
const
|
|
670
|
-
|
|
644
|
+
const C = (e) => new G(e),
|
|
645
|
+
Vt = Object.freeze(
|
|
671
646
|
Object.defineProperty(
|
|
672
647
|
{
|
|
673
648
|
__proto__: null,
|
|
674
|
-
State:
|
|
649
|
+
State: G,
|
|
675
650
|
Store: A,
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
createState: W,
|
|
680
|
-
eventName: S,
|
|
651
|
+
createState: C,
|
|
652
|
+
eventName: w,
|
|
653
|
+
updaters: Bt,
|
|
681
654
|
},
|
|
682
655
|
Symbol.toStringTag,
|
|
683
656
|
{ value: 'Module' },
|
|
684
657
|
),
|
|
685
658
|
)
|
|
686
|
-
class
|
|
659
|
+
class Kt {
|
|
687
660
|
constructor(t) {
|
|
688
661
|
this.setupDomEnvironment(t)
|
|
689
662
|
}
|
|
@@ -693,7 +666,7 @@
|
|
|
693
666
|
this.setupState(),
|
|
694
667
|
this.addBusOptions(),
|
|
695
668
|
this.setRenderKit(),
|
|
696
|
-
new
|
|
669
|
+
new U({
|
|
697
670
|
window: this.window,
|
|
698
671
|
document: this.document,
|
|
699
672
|
publish: this.publish,
|
|
@@ -717,7 +690,7 @@
|
|
|
717
690
|
;(this.publish = t), (this.subscribe = s), (this.bus = n)
|
|
718
691
|
}
|
|
719
692
|
setupState() {
|
|
720
|
-
this.state =
|
|
693
|
+
this.state = C(this.publish)
|
|
721
694
|
}
|
|
722
695
|
addBusOptions() {
|
|
723
696
|
this.bus.addListenerOptions({
|
|
@@ -736,8 +709,8 @@
|
|
|
736
709
|
}
|
|
737
710
|
}
|
|
738
711
|
}
|
|
739
|
-
const
|
|
740
|
-
const s = new
|
|
712
|
+
const Rt = (e = {}) => {
|
|
713
|
+
const s = new Kt(e).setup()
|
|
741
714
|
return s.startNavigation(), s
|
|
742
715
|
}
|
|
743
716
|
var i = ((e) => (
|
|
@@ -754,37 +727,37 @@
|
|
|
754
727
|
(e[(e.changeText = 10)] = 'changeText'),
|
|
755
728
|
e
|
|
756
729
|
))(i || {})
|
|
757
|
-
const
|
|
730
|
+
const Ut = Object.freeze(
|
|
758
731
|
Object.defineProperty(
|
|
759
732
|
{ __proto__: null, ChangeInstructionTypes: i },
|
|
760
733
|
Symbol.toStringTag,
|
|
761
734
|
{ value: 'Module' },
|
|
762
735
|
),
|
|
763
736
|
),
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
737
|
+
qt = (e, t) => ({ source: e, target: t, type: i.changeText, data: {} }),
|
|
738
|
+
It = (e, t) => ({ source: e, target: t, type: i.replaceNode, data: {} }),
|
|
739
|
+
Jt = (e, t, s) => ({
|
|
767
740
|
source: e,
|
|
768
741
|
target: t,
|
|
769
742
|
data: s,
|
|
770
743
|
type: i.removeAttribute,
|
|
771
744
|
}),
|
|
772
|
-
|
|
773
|
-
|
|
745
|
+
Ht = (e, t, s) => ({ source: e, target: t, data: s, type: i.addAttribute }),
|
|
746
|
+
Gt = (e, t, s) => ({
|
|
774
747
|
source: e,
|
|
775
748
|
target: t,
|
|
776
749
|
data: s,
|
|
777
750
|
type: i.updateAttribute,
|
|
778
751
|
}),
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
class
|
|
752
|
+
Ct = (e, t, s) => ({ source: e, target: t, data: s, type: i.removeEvent }),
|
|
753
|
+
Qt = (e, t, s) => ({ source: e, target: t, data: s, type: i.addEvent }),
|
|
754
|
+
Wt = (e, t, s) => ({ source: e, target: t, data: s, type: i.updateEvent }),
|
|
755
|
+
Q = (e) => ({ source: e, target: e, type: i.removeNode, data: {} }),
|
|
756
|
+
S = (e, t) => ({ target: e, source: e, type: i.insertNode, data: t }),
|
|
757
|
+
Xt = (e, t, s) => ({ source: e, target: t, type: i.changeValue, data: s }),
|
|
758
|
+
Yt = (e, t) => (e.type > t.type ? 1 : e.type < t.type ? -1 : 0),
|
|
759
|
+
W = { index: -1 }
|
|
760
|
+
class Zt {
|
|
788
761
|
constructor() {
|
|
789
762
|
this.map = {}
|
|
790
763
|
}
|
|
@@ -799,7 +772,7 @@
|
|
|
799
772
|
pullMatch(t) {
|
|
800
773
|
const s = t && t.__jsx
|
|
801
774
|
return !s || !(this.map[s] && this.map[s].length)
|
|
802
|
-
?
|
|
775
|
+
? W
|
|
803
776
|
: this.map[s].shift()
|
|
804
777
|
}
|
|
805
778
|
clear(t) {
|
|
@@ -816,261 +789,261 @@
|
|
|
816
789
|
return Object.values(this.map).flat()
|
|
817
790
|
}
|
|
818
791
|
}
|
|
819
|
-
const
|
|
820
|
-
const t = new
|
|
792
|
+
const X = (e) => {
|
|
793
|
+
const t = new Zt()
|
|
821
794
|
return t.populate(e), t
|
|
822
795
|
},
|
|
823
|
-
|
|
796
|
+
Y = (e, t, s = !1) => {
|
|
824
797
|
const n = [],
|
|
825
798
|
r = e.attributes,
|
|
826
799
|
o = r.length,
|
|
827
800
|
a = t.attributes,
|
|
828
|
-
|
|
801
|
+
l = a.length
|
|
829
802
|
let u, d, c
|
|
830
803
|
for (u = 0; u < o; u++) {
|
|
831
804
|
c = null
|
|
832
|
-
const
|
|
833
|
-
if (
|
|
834
|
-
for (d = 0; d <
|
|
805
|
+
const h = r.item(u)
|
|
806
|
+
if (h) {
|
|
807
|
+
for (d = 0; d < l; d++) {
|
|
835
808
|
const m = a.item(d)
|
|
836
|
-
if (m &&
|
|
809
|
+
if (m && h.name == m.name) {
|
|
837
810
|
c = m
|
|
838
811
|
break
|
|
839
812
|
}
|
|
840
813
|
}
|
|
841
814
|
c
|
|
842
|
-
?
|
|
843
|
-
n.push(
|
|
844
|
-
: n.push(
|
|
815
|
+
? h.value !== c.value &&
|
|
816
|
+
n.push(Gt(e, t, { name: h.name, value: c.value, isSvg: s }))
|
|
817
|
+
: n.push(Jt(e, t, { name: h.name, isSvg: s }))
|
|
845
818
|
}
|
|
846
819
|
}
|
|
847
|
-
for (u = 0; u <
|
|
820
|
+
for (u = 0; u < l; u++) {
|
|
848
821
|
c = null
|
|
849
|
-
const
|
|
850
|
-
if (
|
|
822
|
+
const h = a.item(u)
|
|
823
|
+
if (h) {
|
|
851
824
|
for (d = 0; d < o; d++) {
|
|
852
825
|
const m = r.item(d)
|
|
853
|
-
if (m && m.name ==
|
|
826
|
+
if (m && m.name == h.name) {
|
|
854
827
|
c = m
|
|
855
828
|
break
|
|
856
829
|
}
|
|
857
830
|
}
|
|
858
|
-
c || n.push(
|
|
831
|
+
c || n.push(Ht(e, t, { name: h.name, value: h.value, isSvg: s }))
|
|
859
832
|
}
|
|
860
833
|
}
|
|
861
834
|
return n
|
|
862
835
|
},
|
|
863
|
-
|
|
836
|
+
te = (e, t) => {
|
|
864
837
|
const s = [],
|
|
865
838
|
n = e.eventMaps,
|
|
866
839
|
r = t.eventMaps,
|
|
867
840
|
o = Object.keys(n),
|
|
868
841
|
a = Object.keys(r)
|
|
869
842
|
return (
|
|
870
|
-
o.forEach((
|
|
871
|
-
const u = n[
|
|
872
|
-
d = r[
|
|
843
|
+
o.forEach((l) => {
|
|
844
|
+
const u = n[l],
|
|
845
|
+
d = r[l]
|
|
873
846
|
d
|
|
874
847
|
? d.busEvent !== u.busEvent &&
|
|
875
848
|
s.push(
|
|
876
|
-
|
|
877
|
-
name:
|
|
849
|
+
Wt(e, t, {
|
|
850
|
+
name: l,
|
|
878
851
|
targetValue: d.listener,
|
|
879
852
|
sourceValue: u.listener,
|
|
880
853
|
}),
|
|
881
854
|
)
|
|
882
|
-
: s.push(
|
|
855
|
+
: s.push(Ct(e, t, { name: u.domEvent, value: u.listener }))
|
|
883
856
|
}),
|
|
884
|
-
a.forEach((
|
|
885
|
-
const u = n[
|
|
886
|
-
d = r[
|
|
887
|
-
u || s.push(
|
|
857
|
+
a.forEach((l) => {
|
|
858
|
+
const u = n[l],
|
|
859
|
+
d = r[l]
|
|
860
|
+
u || s.push(Qt(e, t, { name: d.domEvent, value: d.listener }))
|
|
888
861
|
}),
|
|
889
862
|
s
|
|
890
863
|
)
|
|
891
864
|
},
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
if (
|
|
865
|
+
ee = (e) => e.tagName !== 'INPUT',
|
|
866
|
+
se = (e, t) => e.value === t.value,
|
|
867
|
+
ne = (e, t) => {
|
|
868
|
+
if (ee(e) || se(e, t)) return []
|
|
896
869
|
const s = e,
|
|
897
870
|
n = t
|
|
898
|
-
return [
|
|
871
|
+
return [Xt(s, n, { name: 'value', value: n.value })]
|
|
899
872
|
},
|
|
900
|
-
|
|
901
|
-
const s =
|
|
902
|
-
n =
|
|
903
|
-
r =
|
|
873
|
+
re = (e, t) => {
|
|
874
|
+
const s = Y(e, t),
|
|
875
|
+
n = te(e, t),
|
|
876
|
+
r = ne(e, t)
|
|
904
877
|
return s.concat(n).concat(r)
|
|
905
878
|
},
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
879
|
+
oe = (e, t) => Y(e, t, !0),
|
|
880
|
+
ie = (e, t) => (e.textContent !== t.textContent ? [qt(e, t)] : []),
|
|
881
|
+
ue = (e, t, s) => {
|
|
909
882
|
let n = []
|
|
910
|
-
if (e.nodeType === 1 &&
|
|
883
|
+
if (e.nodeType === 1 && ct(e)) {
|
|
911
884
|
const r = e,
|
|
912
885
|
o = t,
|
|
913
|
-
a =
|
|
914
|
-
|
|
915
|
-
n = a.concat(
|
|
886
|
+
a = oe(r, o),
|
|
887
|
+
l = s(r.childNodes, o.childNodes, r)
|
|
888
|
+
n = a.concat(l)
|
|
916
889
|
} else if (e.nodeType === 1) {
|
|
917
890
|
const r = e,
|
|
918
891
|
o = t,
|
|
919
|
-
a =
|
|
920
|
-
|
|
921
|
-
n = a.concat(
|
|
922
|
-
} else e.nodeType === 3 && (n =
|
|
892
|
+
a = re(r, o),
|
|
893
|
+
l = s(r.childNodes, o.childNodes, r)
|
|
894
|
+
n = a.concat(l)
|
|
895
|
+
} else e.nodeType === 3 && (n = ie(e, t))
|
|
923
896
|
return n
|
|
924
897
|
},
|
|
925
|
-
|
|
898
|
+
Z = (e, t, s) => {
|
|
926
899
|
const n = [],
|
|
927
|
-
r =
|
|
928
|
-
o =
|
|
929
|
-
a =
|
|
930
|
-
|
|
900
|
+
r = ae(e, t),
|
|
901
|
+
o = X(e),
|
|
902
|
+
a = X(t),
|
|
903
|
+
l = []
|
|
931
904
|
let u = 0
|
|
932
905
|
for (; u < r; u++) {
|
|
933
906
|
const c = e[u],
|
|
934
|
-
|
|
935
|
-
if (
|
|
936
|
-
const m = o.pullMatch(
|
|
937
|
-
a.clear(
|
|
907
|
+
h = t[u]
|
|
908
|
+
if (h && a.check(h)) {
|
|
909
|
+
const m = o.pullMatch(h)
|
|
910
|
+
a.clear(h),
|
|
938
911
|
m.element
|
|
939
|
-
? (m.index !== u && n.push(
|
|
940
|
-
|
|
912
|
+
? (m.index !== u && n.push(S(m.element, { parent: s, index: u })),
|
|
913
|
+
l.push({ source: m.element, target: h }))
|
|
941
914
|
: c
|
|
942
915
|
? a.check(c)
|
|
943
|
-
? n.push(
|
|
944
|
-
: (o.clear(c), n.push(
|
|
945
|
-
: n.push(
|
|
946
|
-
} else c && o.pullMatch(c).element && n.push(
|
|
916
|
+
? n.push(S(h, { parent: s, index: u }))
|
|
917
|
+
: (o.clear(c), n.push(It(c, h)))
|
|
918
|
+
: n.push(S(h, { parent: s, index: u }))
|
|
919
|
+
} else c && o.pullMatch(c).element && n.push(Q(c))
|
|
947
920
|
}
|
|
948
921
|
o.remaining().forEach(({ element: c }) => {
|
|
949
|
-
n.push(
|
|
922
|
+
n.push(Q(c))
|
|
950
923
|
})
|
|
951
|
-
const d =
|
|
952
|
-
(c, { source:
|
|
924
|
+
const d = l.reduce(
|
|
925
|
+
(c, { source: h, target: m }) => c.concat(ue(h, m, Z)),
|
|
953
926
|
[],
|
|
954
927
|
)
|
|
955
|
-
return n.concat(d).sort(
|
|
928
|
+
return n.concat(d).sort(Yt)
|
|
956
929
|
},
|
|
957
|
-
|
|
930
|
+
ae = (e, t) => {
|
|
958
931
|
const s = e.length,
|
|
959
932
|
n = t.length
|
|
960
933
|
return s > n ? s : n
|
|
961
934
|
},
|
|
962
|
-
|
|
963
|
-
const n =
|
|
935
|
+
ce = (e, t, s) => {
|
|
936
|
+
const n = Z(e, t, s)
|
|
964
937
|
return (
|
|
965
938
|
n.forEach((r) => {
|
|
966
|
-
|
|
939
|
+
le(r)
|
|
967
940
|
}),
|
|
968
941
|
n
|
|
969
942
|
)
|
|
970
943
|
},
|
|
971
|
-
|
|
972
|
-
;(
|
|
944
|
+
le = (e) => {
|
|
945
|
+
;(Ae[e.type] || he)(e)
|
|
973
946
|
},
|
|
974
|
-
|
|
975
|
-
|
|
947
|
+
he = (e) => {},
|
|
948
|
+
de = (e) => {
|
|
976
949
|
const { source: t, target: s } = e
|
|
977
950
|
t.nodeValue = s.textContent
|
|
978
951
|
},
|
|
979
|
-
|
|
952
|
+
pe = (e) => {
|
|
980
953
|
const { source: t } = e
|
|
981
954
|
t.remove()
|
|
982
955
|
},
|
|
983
|
-
|
|
956
|
+
me = (e) => {
|
|
984
957
|
const { target: t, data: s } = e,
|
|
985
958
|
{ parent: n, index: r } = s,
|
|
986
959
|
o = n.childNodes[r]
|
|
987
960
|
o ? o && o !== t && n.insertBefore(t, o) : n.appendChild(t)
|
|
988
961
|
},
|
|
989
|
-
|
|
962
|
+
fe = (e) => {
|
|
990
963
|
const { source: t, target: s } = e
|
|
991
964
|
t.replaceWith(s)
|
|
992
965
|
},
|
|
993
|
-
|
|
966
|
+
be = (e) => {
|
|
994
967
|
const { source: t, data: s } = e,
|
|
995
968
|
{ name: n, isSvg: r } = s
|
|
996
969
|
r ? t.removeAttributeNS(null, n) : t.removeAttribute(n)
|
|
997
970
|
},
|
|
998
|
-
|
|
971
|
+
tt = (e) => {
|
|
999
972
|
const { source: t, data: s } = e,
|
|
1000
973
|
{ name: n, value: r, isSvg: o } = s
|
|
1001
974
|
o ? t.setAttributeNS(null, n, r) : t.setAttribute(n, r)
|
|
1002
975
|
},
|
|
1003
|
-
|
|
1004
|
-
|
|
976
|
+
ve = (e) => {
|
|
977
|
+
tt(e)
|
|
1005
978
|
},
|
|
1006
|
-
|
|
979
|
+
ge = (e) => {
|
|
1007
980
|
const t = e.data,
|
|
1008
981
|
s = e.source,
|
|
1009
982
|
{ name: n, value: r } = t
|
|
1010
983
|
s.removeEventListener(n, r)
|
|
1011
984
|
},
|
|
1012
|
-
|
|
985
|
+
ye = (e) => {
|
|
1013
986
|
const t = e.data,
|
|
1014
987
|
s = e.source,
|
|
1015
988
|
{ name: n, value: r } = t
|
|
1016
989
|
s.addEventListener(n, r)
|
|
1017
990
|
},
|
|
1018
|
-
|
|
991
|
+
Ee = (e) => {
|
|
1019
992
|
const t = e.data,
|
|
1020
993
|
s = e.source,
|
|
1021
994
|
{ name: n, sourceValue: r, targetValue: o } = t
|
|
1022
995
|
s.removeEventListener(n, r), s.addEventListener(n, o)
|
|
1023
996
|
},
|
|
1024
|
-
|
|
997
|
+
xe = (e) => {
|
|
1025
998
|
const t = e.data,
|
|
1026
999
|
s = e.source,
|
|
1027
1000
|
{ value: n } = t
|
|
1028
1001
|
s.value = n
|
|
1029
1002
|
},
|
|
1030
|
-
|
|
1031
|
-
[i.changeText]:
|
|
1032
|
-
[i.removeNode]:
|
|
1033
|
-
[i.insertNode]:
|
|
1034
|
-
[i.replaceNode]:
|
|
1035
|
-
[i.removeAttribute]:
|
|
1036
|
-
[i.addAttribute]:
|
|
1037
|
-
[i.updateAttribute]:
|
|
1038
|
-
[i.removeEvent]:
|
|
1039
|
-
[i.addEvent]:
|
|
1040
|
-
[i.updateEvent]:
|
|
1041
|
-
[i.changeValue]:
|
|
1003
|
+
Ae = {
|
|
1004
|
+
[i.changeText]: de,
|
|
1005
|
+
[i.removeNode]: pe,
|
|
1006
|
+
[i.insertNode]: me,
|
|
1007
|
+
[i.replaceNode]: fe,
|
|
1008
|
+
[i.removeAttribute]: be,
|
|
1009
|
+
[i.addAttribute]: tt,
|
|
1010
|
+
[i.updateAttribute]: ve,
|
|
1011
|
+
[i.removeEvent]: ge,
|
|
1012
|
+
[i.addEvent]: ye,
|
|
1013
|
+
[i.updateEvent]: Ee,
|
|
1014
|
+
[i.changeValue]: xe,
|
|
1042
1015
|
},
|
|
1043
|
-
|
|
1016
|
+
_e = (e, t, s) => {
|
|
1044
1017
|
const n = [...t]
|
|
1045
1018
|
return (
|
|
1046
1019
|
e.forEach((r) => {
|
|
1047
|
-
|
|
1020
|
+
we(r, n, s)
|
|
1048
1021
|
}),
|
|
1049
1022
|
n
|
|
1050
1023
|
)
|
|
1051
1024
|
},
|
|
1052
|
-
|
|
1053
|
-
const n =
|
|
1025
|
+
we = (e, t, s) => {
|
|
1026
|
+
const n = Oe[e.type]
|
|
1054
1027
|
n && n(e, t, s)
|
|
1055
1028
|
},
|
|
1056
|
-
|
|
1029
|
+
Se = (e, t) => {
|
|
1057
1030
|
const { source: s } = e,
|
|
1058
1031
|
n = t.indexOf(s)
|
|
1059
1032
|
n >= 0 && t.splice(n, 1)
|
|
1060
1033
|
},
|
|
1061
|
-
|
|
1034
|
+
Ne = (e, t, s) => {
|
|
1062
1035
|
const { target: n } = e,
|
|
1063
1036
|
r = e.data,
|
|
1064
1037
|
{ index: o, parent: a } = r
|
|
1065
1038
|
s === a && t.splice(o, 0, n)
|
|
1066
1039
|
},
|
|
1067
|
-
|
|
1040
|
+
je = (e, t) => {
|
|
1068
1041
|
const { target: s, source: n } = e,
|
|
1069
1042
|
r = t.indexOf(n)
|
|
1070
1043
|
r >= 0 && (t[r] = s)
|
|
1071
1044
|
},
|
|
1072
|
-
|
|
1073
|
-
class
|
|
1045
|
+
Oe = { [i.removeNode]: Se, [i.insertNode]: Ne, [i.replaceNode]: je }
|
|
1046
|
+
class Me {
|
|
1074
1047
|
constructor({
|
|
1075
1048
|
Template: t,
|
|
1076
1049
|
subscriptions: s,
|
|
@@ -1107,8 +1080,8 @@
|
|
|
1107
1080
|
this.parentElement = n
|
|
1108
1081
|
}
|
|
1109
1082
|
const t = this.generateDom(this.renderKit),
|
|
1110
|
-
s =
|
|
1111
|
-
this.dom =
|
|
1083
|
+
s = ce(this.dom, t, this.parentElement)
|
|
1084
|
+
this.dom = _e(s, this.dom, this.parentElement)
|
|
1112
1085
|
}
|
|
1113
1086
|
subscribeForRerender() {
|
|
1114
1087
|
const { subscribe: t } = this.renderKit
|
|
@@ -1117,68 +1090,68 @@
|
|
|
1117
1090
|
})
|
|
1118
1091
|
}
|
|
1119
1092
|
eventName(t) {
|
|
1120
|
-
return `${
|
|
1093
|
+
return `${w}:${t}`
|
|
1121
1094
|
}
|
|
1122
1095
|
}
|
|
1123
|
-
const
|
|
1124
|
-
|
|
1096
|
+
const Te = (e) => e,
|
|
1097
|
+
et = ({ Template: e, viewModel: t, subscriptions: s }) => (
|
|
1125
1098
|
(s = s || []),
|
|
1126
|
-
(t = t ||
|
|
1099
|
+
(t = t || Te),
|
|
1127
1100
|
(n) =>
|
|
1128
|
-
new
|
|
1101
|
+
new Me({ Template: e, viewModel: t, subscriptions: s, attributes: n })
|
|
1129
1102
|
),
|
|
1130
|
-
|
|
1103
|
+
ke = Object.freeze(
|
|
1131
1104
|
Object.defineProperty(
|
|
1132
1105
|
{
|
|
1133
1106
|
__proto__: null,
|
|
1134
|
-
createRouteState:
|
|
1135
|
-
events:
|
|
1107
|
+
createRouteState: P,
|
|
1108
|
+
events: St,
|
|
1136
1109
|
extractQueryParams: L,
|
|
1137
|
-
findHref:
|
|
1138
|
-
navigate:
|
|
1139
|
-
onLinkClick:
|
|
1110
|
+
findHref: D,
|
|
1111
|
+
navigate: y,
|
|
1112
|
+
onLinkClick: F,
|
|
1140
1113
|
onLocationChange: z,
|
|
1141
|
-
start:
|
|
1114
|
+
start: Nt,
|
|
1142
1115
|
},
|
|
1143
1116
|
Symbol.toStringTag,
|
|
1144
1117
|
{ value: 'Module' },
|
|
1145
1118
|
),
|
|
1146
1119
|
),
|
|
1147
|
-
|
|
1120
|
+
$e =
|
|
1148
1121
|
(e) =>
|
|
1149
1122
|
({ path: t }) =>
|
|
1150
1123
|
t === e,
|
|
1151
|
-
|
|
1152
|
-
|
|
1124
|
+
Pe = () => !0,
|
|
1125
|
+
st =
|
|
1153
1126
|
(e) =>
|
|
1154
1127
|
({ route: t }) => {
|
|
1155
1128
|
const s = e.find((n) => n.match(t))
|
|
1156
1129
|
return s && s.Partial
|
|
1157
1130
|
},
|
|
1158
|
-
|
|
1131
|
+
De = Object.freeze(
|
|
1159
1132
|
Object.defineProperty(
|
|
1160
|
-
{ __proto__: null, buildRouter:
|
|
1133
|
+
{ __proto__: null, buildRouter: st, catchAll: Pe, exactPathMatch: $e },
|
|
1161
1134
|
Symbol.toStringTag,
|
|
1162
1135
|
{ value: 'Module' },
|
|
1163
1136
|
),
|
|
1164
1137
|
),
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
const t =
|
|
1168
|
-
return
|
|
1169
|
-
Template: ({ route: n }) => (t({ route: n }) ||
|
|
1138
|
+
Fe = () => ({ render: (e, t) => [] }),
|
|
1139
|
+
Le = (e) => {
|
|
1140
|
+
const t = st(e)
|
|
1141
|
+
return et({
|
|
1142
|
+
Template: ({ route: n }) => (t({ route: n }) || Fe)(),
|
|
1170
1143
|
subscriptions: ['route'],
|
|
1171
1144
|
})
|
|
1172
1145
|
}
|
|
1173
|
-
;(p.JaxsTypes =
|
|
1174
|
-
(p.appBuilding =
|
|
1175
|
-
(p.bind =
|
|
1176
|
-
(p.createApp =
|
|
1146
|
+
;(p.JaxsTypes = Ut),
|
|
1147
|
+
(p.appBuilding = jt),
|
|
1148
|
+
(p.bind = et),
|
|
1149
|
+
(p.createApp = Rt),
|
|
1177
1150
|
(p.jsx = M),
|
|
1178
|
-
(p.messageBus =
|
|
1179
|
-
(p.navigation =
|
|
1180
|
-
(p.routedView =
|
|
1181
|
-
(p.routing =
|
|
1182
|
-
(p.state =
|
|
1151
|
+
(p.messageBus = Ot),
|
|
1152
|
+
(p.navigation = ke),
|
|
1153
|
+
(p.routedView = Le),
|
|
1154
|
+
(p.routing = De),
|
|
1155
|
+
(p.state = Vt),
|
|
1183
1156
|
Object.defineProperty(p, Symbol.toStringTag, { value: 'Module' })
|
|
1184
1157
|
})
|