@zsviczian/kplex-web 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSES/Source.txt +2 -2
- package/cdn.js +10 -5627
- package/chunk.js +8 -765
- package/compass.css +1 -4861
- package/compass.js +1 -1
- package/demo.js +1 -1
- package/offline.js +777 -765
- package/package.json +1 -1
- package/runtime-pack.json +1 -1
package/offline.js
CHANGED
|
@@ -1,768 +1,780 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
which are
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
requirement to
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
organization, or
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
in a country,
|
|
499
|
-
country
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
the
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
SUCH
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
`]]});var Bh=Ln(_e=>{"use strict";T();function Yc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,a=e[i];if(0<gr(a,t))e[i]=t,e[n]=a,n=i;else break e}}function Dn(e){return e.length===0?null:e[0]}function br(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,a=e.length,o=a>>>1;i<o;){var l=2*(i+1)-1,r=e[l],u=l+1,c=e[u];if(0>gr(r,n))u<a&&0>gr(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[l]=n,i=l);else if(u<a&&0>gr(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function gr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}_e.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Lh=performance,_e.unstable_now=function(){return Lh.now()}):(Bc=Date,zh=Bc.now(),_e.unstable_now=function(){return Bc.now()-zh});var Lh,Bc,zh,ei=[],bi=[],S1=1,an=null,gt=3,qc=!1,Ko=!1,Qo=!1,jc=!1,_h=typeof setTimeout=="function"?setTimeout:null,Uh=typeof clearTimeout=="function"?clearTimeout:null,Dh=typeof setImmediate<"u"?setImmediate:null;function yr(e){for(var t=Dn(bi);t!==null;){if(t.callback===null)br(bi);else if(t.startTime<=e)br(bi),t.sortIndex=t.expirationTime,Yc(ei,t);else break;t=Dn(bi)}}function Xc(e){if(Qo=!1,yr(e),!Ko)if(Dn(ei)!==null)Ko=!0,ka||(ka=!0,Ua());else{var t=Dn(bi);t!==null&&Kc(Xc,t.startTime-e)}}var ka=!1,Zo=-1,kh=5,Ph=-1;function Ih(){return jc?!0:!(_e.unstable_now()-Ph<kh)}function Gc(){if(jc=!1,ka){var e=_e.unstable_now();Ph=e;var t=!0;try{e:{Ko=!1,Qo&&(Qo=!1,Uh(Zo),Zo=-1),qc=!0;var n=gt;try{t:{for(yr(e),an=Dn(ei);an!==null&&!(an.expirationTime>e&&Ih());){var i=an.callback;if(typeof i=="function"){an.callback=null,gt=an.priorityLevel;var a=i(an.expirationTime<=e);if(e=_e.unstable_now(),typeof a=="function"){an.callback=a,yr(e),t=!0;break t}an===Dn(ei)&&br(ei),yr(e)}else br(ei);an=Dn(ei)}if(an!==null)t=!0;else{var o=Dn(bi);o!==null&&Kc(Xc,o.startTime-e),t=!1}}break e}finally{an=null,gt=n,qc=!1}t=void 0}}finally{t?Ua():ka=!1}}}var Ua;typeof Dh=="function"?Ua=function(){Dh(Gc)}:typeof MessageChannel<"u"?(Vc=new MessageChannel,Hh=Vc.port2,Vc.port1.onmessage=Gc,Ua=function(){Hh.postMessage(null)}):Ua=function(){_h(Gc,0)};var Vc,Hh;function Kc(e,t){Zo=_h(function(){e(_e.unstable_now())},t)}_e.unstable_IdlePriority=5;_e.unstable_ImmediatePriority=1;_e.unstable_LowPriority=4;_e.unstable_NormalPriority=3;_e.unstable_Profiling=null;_e.unstable_UserBlockingPriority=2;_e.unstable_cancelCallback=function(e){e.callback=null};_e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):kh=0<e?Math.floor(1e3/e):5};_e.unstable_getCurrentPriorityLevel=function(){return gt};_e.unstable_next=function(e){switch(gt){case 1:case 2:case 3:var t=3;break;default:t=gt}var n=gt;gt=t;try{return e()}finally{gt=n}};_e.unstable_requestPaint=function(){jc=!0};_e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=gt;gt=e;try{return t()}finally{gt=n}};_e.unstable_scheduleCallback=function(e,t,n){var i=_e.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=n+a,e={id:S1++,callback:t,priorityLevel:e,startTime:n,expirationTime:a,sortIndex:-1},n>i?(e.sortIndex=n,Yc(bi,e),Dn(ei)===null&&e===Dn(bi)&&(Qo?(Uh(Zo),Zo=-1):Qo=!0,Kc(Xc,n-i))):(e.sortIndex=a,Yc(ei,e),Ko||qc||(Ko=!0,ka||(ka=!0,Ua()))),e};_e.unstable_shouldYield=Ih;_e.unstable_wrapCallback=function(e){var t=gt;return function(){var n=gt;gt=t;try{return e.apply(this,arguments)}finally{gt=n}}}});var Vh=Ln((LT,Gh)=>{"use strict";T();Gh.exports=Bh()});var tm=Ln(W=>{"use strict";T();var Fc=Symbol.for("react.transitional.element"),w1=Symbol.for("react.portal"),E1=Symbol.for("react.fragment"),x1=Symbol.for("react.strict_mode"),T1=Symbol.for("react.profiler"),N1=Symbol.for("react.consumer"),M1=Symbol.for("react.context"),R1=Symbol.for("react.forward_ref"),A1=Symbol.for("react.suspense"),C1=Symbol.for("react.memo"),Kh=Symbol.for("react.lazy"),O1=Symbol.for("react.activity"),L1=Symbol.for("react.view_transition"),Yh=Symbol.iterator;function z1(e){return e===null||typeof e!="object"?null:(e=Yh&&e[Yh]||e["@@iterator"],typeof e=="function"?e:null)}var Qh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zh=Object.assign,Fh={};function Ia(e,t,n){this.props=e,this.context=t,this.refs=Fh,this.updater=n||Qh}Ia.prototype.isReactComponent={};Ia.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Ia.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jh(){}Jh.prototype=Ia.prototype;function Jc(e,t,n){this.props=e,this.context=t,this.refs=Fh,this.updater=n||Qh}var Wc=Jc.prototype=new Jh;Wc.constructor=Jc;Zh(Wc,Ia.prototype);Wc.isPureReactComponent=!0;var qh=Array.isArray;function Zc(){}var Re={H:null,A:null,T:null,S:null},Wh=Object.prototype.hasOwnProperty;function $c(e,t,n){var i=n.ref;return{$$typeof:Fc,type:e,key:t,ref:i!==void 0?i:null,props:n}}function D1(e,t){return $c(e.type,t,e.props)}function es(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fc}function H1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jh=/\/+/g;function Qc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?H1(""+e.key):t.toString(36)}function _1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Zc,Zc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Pa(e,t,n,i,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Fc:case w1:l=!0;break;case Kh:return l=e._init,Pa(l(e._payload),t,n,i,a)}}if(l)return a=a(e),l=i===""?"."+Qc(e,0):i,qh(a)?(n="",l!=null&&(n=l.replace(jh,"$&/")+"/"),Pa(a,t,n,"",function(c){return c})):a!=null&&(es(a)&&(a=D1(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(jh,"$&/")+"/")+l)),t.push(a)),1;l=0;var r=i===""?".":i+":";if(qh(e))for(var u=0;u<e.length;u++)i=e[u],o=r+Qc(i,u),l+=Pa(i,t,n,o,a);else if(u=z1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,o=r+Qc(i,u++),l+=Pa(i,t,n,o,a);else if(o==="object"){if(typeof e.then=="function")return Pa(_1(e),t,n,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return l}function vr(e,t,n){if(e==null)return e;var i=[],a=0;return Pa(e,i,"","",function(o){return t.call(n,o,a++)}),i}function U1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Xh=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function $h(e){var t=Re.T,n={};n.types=t!==null?t.types:null,Re.T=n;try{var i=e(),a=Re.S;a!==null&&a(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(Zc,Xh)}catch(o){Xh(o)}finally{t!==null&&n.types!==null&&(t.types=n.types),Re.T=t}}function em(e){var t=Re.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else $h(em.bind(null,e))}var k1={map:vr,forEach:function(e,t,n){vr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vr(e,function(){t++}),t},toArray:function(e){return vr(e,function(t){return t})||[]},only:function(e){if(!es(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Activity=O1;W.Children=k1;W.Component=Ia;W.Fragment=E1;W.Profiler=T1;W.PureComponent=Jc;W.StrictMode=x1;W.Suspense=A1;W.ViewTransition=L1;W.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Re;W.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Re.H.useMemoCache(e)}};W.addTransitionType=em;W.cache=function(e){return function(){return e.apply(null,arguments)}};W.cacheSignal=function(){return null};W.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=Zh({},e.props),a=e.key;if(t!=null)for(o in t.key!==void 0&&(a=""+t.key),t)!Wh.call(t,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&t.ref===void 0||(i[o]=t[o]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var l=Array(o),r=0;r<o;r++)l[r]=arguments[r+2];i.children=l}return $c(e.type,a,i)};W.createContext=function(e){return e={$$typeof:M1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:N1,_context:e},e};W.createElement=function(e,t,n){var i,a={},o=null;if(t!=null)for(i in t.key!==void 0&&(o=""+t.key),t)Wh.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(a[i]=t[i]);var l=arguments.length-2;if(l===1)a.children=n;else if(1<l){for(var r=Array(l),u=0;u<l;u++)r[u]=arguments[u+2];a.children=r}if(e&&e.defaultProps)for(i in l=e.defaultProps,l)a[i]===void 0&&(a[i]=l[i]);return $c(e,o,a)};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:R1,render:e}};W.isValidElement=es;W.lazy=function(e){return{$$typeof:Kh,_payload:{_status:-1,_result:e},_init:U1}};W.memo=function(e,t){return{$$typeof:C1,type:e,compare:t===void 0?null:t}};W.startTransition=$h;W.unstable_useCacheRefresh=function(){return Re.H.useCacheRefresh()};W.use=function(e){return Re.H.use(e)};W.useActionState=function(e,t,n){return Re.H.useActionState(e,t,n)};W.useCallback=function(e,t){return Re.H.useCallback(e,t)};W.useContext=function(e){return Re.H.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e,t){return Re.H.useDeferredValue(e,t)};W.useEffect=function(e,t){return Re.H.useEffect(e,t)};W.useEffectEvent=function(e){return Re.H.useEffectEvent(e)};W.useId=function(){return Re.H.useId()};W.useImperativeHandle=function(e,t,n){return Re.H.useImperativeHandle(e,t,n)};W.useInsertionEffect=function(e,t){return Re.H.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return Re.H.useLayoutEffect(e,t)};W.useMemo=function(e,t){return Re.H.useMemo(e,t)};W.useOptimistic=function(e,t){return Re.H.useOptimistic(e,t)};W.useReducer=function(e,t,n){return Re.H.useReducer(e,t,n)};W.useRef=function(e){return Re.H.useRef(e)};W.useState=function(e){return Re.H.useState(e)};W.useSyncExternalStore=function(e,t,n){return Re.H.useSyncExternalStore(e,t,n)};W.useTransition=function(){return Re.H.useTransition()};W.version="19.3.0"});var tt=Ln((_T,nm)=>{"use strict";T();nm.exports=tm()});var om=Ln(yt=>{"use strict";T();var P1=tt();function am(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function vi(){}var xt={d:{f:vi,r:function(){throw Error(am(522))},D:vi,C:vi,L:vi,m:vi,X:vi,S:vi,M:vi},p:0,findDOMNode:null},I1=Symbol.for("react.portal"),B1=Symbol.for("react.recoverable"),im=Symbol.for("react.optimistic_key");function G1(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I1,key:i==null?null:i===im?im:""+i,children:e,containerInfo:t,implementation:n}}var Fo=P1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Sr(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xt;yt.browser=function(e){return{$$typeof:B1,_reason:e}};yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(am(299));return G1(e,t,null,n)};yt.flushSync=function(e){var t=Fo.T,n=xt.p;try{if(Fo.T=null,xt.p=2,e)return e()}finally{Fo.T=t,xt.p=n,xt.d.f()}};yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,xt.d.C(e,t))};yt.prefetchDNS=function(e){typeof e=="string"&&xt.d.D(e)};yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=Sr(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,o=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?xt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:a,fetchPriority:o}):n==="script"&&xt.d.X(e,{crossOrigin:i,integrity:a,fetchPriority:o,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Sr(t.as,t.crossOrigin);xt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&xt.d.M(e)};yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=Sr(n,t.crossOrigin);xt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Sr(t.as,t.crossOrigin);xt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else xt.d.m(e)};yt.requestFormReset=function(e){xt.d.r(e)};yt.unstable_batchedUpdates=function(e,t){return e(t)};yt.useFormState=function(e,t,n){return Fo.H.useFormState(e,t,n)};yt.useFormStatus=function(){return Fo.H.useHostTransitionStatus()};yt.version="19.3.0"});var wr=Ln((IT,rm)=>{"use strict";T();function lm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(lm)}catch(e){console.error(e)}}lm(),rm.exports=om()});var Kb=Ln(nc=>{"use strict";T();var Je=Vh(),Xp=tt(),V1=wr();function A(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Kp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kl(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function Qp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zp(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function um(e){if(kl(e)!==e)throw Error(A(188))}function Y1(e){var t=e.alternate;if(!t){if(t=kl(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return um(a),e;if(o===i)return um(a),t;o=o.sibling}throw Error(A(188))}if(n.return!==i.return)n=a,i=o;else{for(var l=!1,r=a.child;r;){if(r===n){l=!0,n=a,i=o;break}if(r===i){l=!0,i=a,n=o;break}r=r.sibling}if(!l){for(r=o.child;r;){if(r===n){l=!0,n=o,i=a;break}if(r===i){l=!0,i=o,n=a;break}r=r.sibling}if(!l)throw Error(A(189))}}if(n.alternate!==i)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function Fp(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Fp(e),t!==null)return t;e=e.sibling}return null}function Bt(e,t,n,i,a,o){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,a,o)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Bt(e.child,t,n,i,a,o))return!0;e=e.sibling}return!1}function wa(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function cm(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function Jp(e){var t=[null,null],n=wa(e);return n===null||Wp(t,e,n.child,{foundSelf:!1}),t}function Wp(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&Wp(e,t,n.child,i))return!0;n=n.sibling}return!1}function Fe(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(A(559))}}var Xa=null,zs=null;function q1(e,t,n){return e===n?!0:e===t?(Xa=e,!0):!1}function j1(e,t,n){return e===n?(zs=e,!1):e===t?(zs!==null&&(Xa=e),!0):!1}function sm(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Ds(e,t,n){for(var i=0,a=e;a;a=n(a))i++;a=0;for(var o=t;o;o=n(o))a++;for(;0<i-a;)e=n(e),i--;for(;0<a-i;)t=n(t),a--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Ne=Object.assign,X1=Symbol.for("react.element"),Er=Symbol.for("react.transitional.element"),il=Symbol.for("react.portal"),Ka=Symbol.for("react.fragment"),$p=Symbol.for("react.strict_mode"),Hs=Symbol.for("react.profiler"),eg=Symbol.for("react.consumer"),In=Symbol.for("react.context"),qf=Symbol.for("react.forward_ref"),_s=Symbol.for("react.suspense"),Us=Symbol.for("react.suspense_list"),jf=Symbol.for("react.memo"),xi=Symbol.for("react.lazy");Symbol.for("react.scope");var ks=Symbol.for("react.activity"),K1=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var Q1=Symbol.for("react.memo_cache_sentinel"),Ps=Symbol.for("react.view_transition"),Z1=Symbol.for("react.recoverable"),fm=Symbol.iterator;function Jo(e){return e===null||typeof e!="object"?null:(e=fm&&e[fm]||e["@@iterator"],typeof e=="function"?e:null)}var F1=Symbol.for("react.client.reference");function Is(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ka:return"Fragment";case Hs:return"Profiler";case $p:return"StrictMode";case _s:return"Suspense";case Us:return"SuspenseList";case ks:return"Activity";case Ps:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case il:return"Portal";case In:return e.displayName||"Context";case eg:return(e._context.displayName||"Context")+".Consumer";case qf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jf:return t=e.displayName||null,t!==null?t:Is(e.type)||"Memo";case xi:t=e._payload,e=e._init;try{return Is(e(t))}catch{}}return null}var al=Array.isArray,Q=Xp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ge=V1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ua={pending:!1,data:null,method:null,action:null},Bs=[],Qa=-1;function Xn(e){return{current:e}}function st(e){0>Qa||(e.current=Bs[Qa],Bs[Qa]=null,Qa--)}function Oe(e,t){Qa++,Bs[Qa]=e.current,e.current=t}var Yn=Xn(null),wl=Xn(null),zi=Xn(null),uu=Xn(null);function cu(e,t){switch(Oe(zi,t),Oe(wl,e),Oe(Yn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Np(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Np(t),e=Eb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(Yn),Oe(Yn,e)}function po(){st(Yn),st(wl),st(zi)}function Gs(e){var t=e.memoizedState;t!==null&&(No._currentValue=t.memoizedState,Oe(uu,e)),t=Yn.current;var n=Eb(t,e.type);t!==n&&(Oe(wl,e),Oe(Yn,n))}function su(e){wl.current===e&&(st(Yn),st(wl)),uu.current===e&&(st(uu),No._currentValue=ua)}var ts,dm;function wi(e){if(ts===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ts=t&&t[1]||"",dm=-1<n.stack.indexOf(`
|
|
1
|
+
// K-Plex
|
|
2
|
+
// GNU AFFERO GENERAL PUBLIC LICENSE
|
|
3
|
+
// Version 3, 19 November 2007
|
|
4
|
+
//
|
|
5
|
+
// Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
6
|
+
// Everyone is permitted to copy and distribute verbatim copies
|
|
7
|
+
// of this license document, but changing it is not allowed.
|
|
8
|
+
//
|
|
9
|
+
// Preamble
|
|
10
|
+
//
|
|
11
|
+
// The GNU Affero General Public License is a free, copyleft license for
|
|
12
|
+
// software and other kinds of works, specifically designed to ensure
|
|
13
|
+
// cooperation with the community in the case of network server software.
|
|
14
|
+
//
|
|
15
|
+
// The licenses for most software and other practical works are designed
|
|
16
|
+
// to take away your freedom to share and change the works. By contrast,
|
|
17
|
+
// our General Public Licenses are intended to guarantee your freedom to
|
|
18
|
+
// share and change all versions of a program--to make sure it remains free
|
|
19
|
+
// software for all its users.
|
|
20
|
+
//
|
|
21
|
+
// When we speak of free software, we are referring to freedom, not
|
|
22
|
+
// price. Our General Public Licenses are designed to make sure that you
|
|
23
|
+
// have the freedom to distribute copies of free software (and charge for
|
|
24
|
+
// them if you wish), that you receive source code or can get it if you
|
|
25
|
+
// want it, that you can change the software or use pieces of it in new
|
|
26
|
+
// free programs, and that you know you can do these things.
|
|
27
|
+
//
|
|
28
|
+
// Developers that use our General Public Licenses protect your rights
|
|
29
|
+
// with two steps: (1) assert copyright on the software, and (2) offer
|
|
30
|
+
// you this License which gives you legal permission to copy, distribute
|
|
31
|
+
// and/or modify the software.
|
|
32
|
+
//
|
|
33
|
+
// A secondary benefit of defending all users' freedom is that
|
|
34
|
+
// improvements made in alternate versions of the program, if they
|
|
35
|
+
// receive widespread use, become available for other developers to
|
|
36
|
+
// incorporate. Many developers of free software are heartened and
|
|
37
|
+
// encouraged by the resulting cooperation. However, in the case of
|
|
38
|
+
// software used on network servers, this result may fail to come about.
|
|
39
|
+
// The GNU General Public License permits making a modified version and
|
|
40
|
+
// letting the public access it on a server without ever releasing its
|
|
41
|
+
// source code to the public.
|
|
42
|
+
//
|
|
43
|
+
// The GNU Affero General Public License is designed specifically to
|
|
44
|
+
// ensure that, in such cases, the modified source code becomes available
|
|
45
|
+
// to the community. It requires the operator of a network server to
|
|
46
|
+
// provide the source code of the modified version running there to the
|
|
47
|
+
// users of that server. Therefore, public use of a modified version, on
|
|
48
|
+
// a publicly accessible server, gives the public access to the source
|
|
49
|
+
// code of the modified version.
|
|
50
|
+
//
|
|
51
|
+
// An older license, called the Affero General Public License and
|
|
52
|
+
// published by Affero, was designed to accomplish similar goals. This is
|
|
53
|
+
// a different license, not a version of the Affero GPL, but Affero has
|
|
54
|
+
// released a new version of the Affero GPL which permits relicensing under
|
|
55
|
+
// this license.
|
|
56
|
+
//
|
|
57
|
+
// The precise terms and conditions for copying, distribution and
|
|
58
|
+
// modification follow.
|
|
59
|
+
//
|
|
60
|
+
// TERMS AND CONDITIONS
|
|
61
|
+
//
|
|
62
|
+
// 0. Definitions.
|
|
63
|
+
//
|
|
64
|
+
// "This License" refers to version 3 of the GNU Affero General Public License.
|
|
65
|
+
//
|
|
66
|
+
// "Copyright" also means copyright-like laws that apply to other kinds of
|
|
67
|
+
// works, such as semiconductor masks.
|
|
68
|
+
//
|
|
69
|
+
// "The Program" refers to any copyrightable work licensed under this
|
|
70
|
+
// License. Each licensee is addressed as "you". "Licensees" and
|
|
71
|
+
// "recipients" may be individuals or organizations.
|
|
72
|
+
//
|
|
73
|
+
// To "modify" a work means to copy from or adapt all or part of the work
|
|
74
|
+
// in a fashion requiring copyright permission, other than the making of an
|
|
75
|
+
// exact copy. The resulting work is called a "modified version" of the
|
|
76
|
+
// earlier work or a work "based on" the earlier work.
|
|
77
|
+
//
|
|
78
|
+
// A "covered work" means either the unmodified Program or a work based
|
|
79
|
+
// on the Program.
|
|
80
|
+
//
|
|
81
|
+
// To "propagate" a work means to do anything with it that, without
|
|
82
|
+
// permission, would make you directly or secondarily liable for
|
|
83
|
+
// infringement under applicable copyright law, except executing it on a
|
|
84
|
+
// computer or modifying a private copy. Propagation includes copying,
|
|
85
|
+
// distribution (with or without modification), making available to the
|
|
86
|
+
// public, and in some countries other activities as well.
|
|
87
|
+
//
|
|
88
|
+
// To "convey" a work means any kind of propagation that enables other
|
|
89
|
+
// parties to make or receive copies. Mere interaction with a user through
|
|
90
|
+
// a computer network, with no transfer of a copy, is not conveying.
|
|
91
|
+
//
|
|
92
|
+
// An interactive user interface displays "Appropriate Legal Notices"
|
|
93
|
+
// to the extent that it includes a convenient and prominently visible
|
|
94
|
+
// feature that (1) displays an appropriate copyright notice, and (2)
|
|
95
|
+
// tells the user that there is no warranty for the work (except to the
|
|
96
|
+
// extent that warranties are provided), that licensees may convey the
|
|
97
|
+
// work under this License, and how to view a copy of this License. If
|
|
98
|
+
// the interface presents a list of user commands or options, such as a
|
|
99
|
+
// menu, a prominent item in the list meets this criterion.
|
|
100
|
+
//
|
|
101
|
+
// 1. Source Code.
|
|
102
|
+
//
|
|
103
|
+
// The "source code" for a work means the preferred form of the work
|
|
104
|
+
// for making modifications to it. "Object code" means any non-source
|
|
105
|
+
// form of a work.
|
|
106
|
+
//
|
|
107
|
+
// A "Standard Interface" means an interface that either is an official
|
|
108
|
+
// standard defined by a recognized standards body, or, in the case of
|
|
109
|
+
// interfaces specified for a particular programming language, one that
|
|
110
|
+
// is widely used among developers working in that language.
|
|
111
|
+
//
|
|
112
|
+
// The "System Libraries" of an executable work include anything, other
|
|
113
|
+
// than the work as a whole, that (a) is included in the normal form of
|
|
114
|
+
// packaging a Major Component, but which is not part of that Major
|
|
115
|
+
// Component, and (b) serves only to enable use of the work with that
|
|
116
|
+
// Major Component, or to implement a Standard Interface for which an
|
|
117
|
+
// implementation is available to the public in source code form. A
|
|
118
|
+
// "Major Component", in this context, means a major essential component
|
|
119
|
+
// (kernel, window system, and so on) of the specific operating system
|
|
120
|
+
// (if any) on which the executable work runs, or a compiler used to
|
|
121
|
+
// produce the work, or an object code interpreter used to run it.
|
|
122
|
+
//
|
|
123
|
+
// The "Corresponding Source" for a work in object code form means all
|
|
124
|
+
// the source code needed to generate, install, and (for an executable
|
|
125
|
+
// work) run the object code and to modify the work, including scripts to
|
|
126
|
+
// control those activities. However, it does not include the work's
|
|
127
|
+
// System Libraries, or general-purpose tools or generally available free
|
|
128
|
+
// programs which are used unmodified in performing those activities but
|
|
129
|
+
// which are not part of the work. For example, Corresponding Source
|
|
130
|
+
// includes interface definition files associated with source files for
|
|
131
|
+
// the work, and the source code for shared libraries and dynamically
|
|
132
|
+
// linked subprograms that the work is specifically designed to require,
|
|
133
|
+
// such as by intimate data communication or control flow between those
|
|
134
|
+
// subprograms and other parts of the work.
|
|
135
|
+
//
|
|
136
|
+
// The Corresponding Source need not include anything that users
|
|
137
|
+
// can regenerate automatically from other parts of the Corresponding
|
|
138
|
+
// Source.
|
|
139
|
+
//
|
|
140
|
+
// The Corresponding Source for a work in source code form is that
|
|
141
|
+
// same work.
|
|
142
|
+
//
|
|
143
|
+
// 2. Basic Permissions.
|
|
144
|
+
//
|
|
145
|
+
// All rights granted under this License are granted for the term of
|
|
146
|
+
// copyright on the Program, and are irrevocable provided the stated
|
|
147
|
+
// conditions are met. This License explicitly affirms your unlimited
|
|
148
|
+
// permission to run the unmodified Program. The output from running a
|
|
149
|
+
// covered work is covered by this License only if the output, given its
|
|
150
|
+
// content, constitutes a covered work. This License acknowledges your
|
|
151
|
+
// rights of fair use or other equivalent, as provided by copyright law.
|
|
152
|
+
//
|
|
153
|
+
// You may make, run and propagate covered works that you do not
|
|
154
|
+
// convey, without conditions so long as your license otherwise remains
|
|
155
|
+
// in force. You may convey covered works to others for the sole purpose
|
|
156
|
+
// of having them make modifications exclusively for you, or provide you
|
|
157
|
+
// with facilities for running those works, provided that you comply with
|
|
158
|
+
// the terms of this License in conveying all material for which you do
|
|
159
|
+
// not control copyright. Those thus making or running the covered works
|
|
160
|
+
// for you must do so exclusively on your behalf, under your direction
|
|
161
|
+
// and control, on terms that prohibit them from making any copies of
|
|
162
|
+
// your copyrighted material outside their relationship with you.
|
|
163
|
+
//
|
|
164
|
+
// Conveying under any other circumstances is permitted solely under
|
|
165
|
+
// the conditions stated below. Sublicensing is not allowed; section 10
|
|
166
|
+
// makes it unnecessary.
|
|
167
|
+
//
|
|
168
|
+
// 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
|
169
|
+
//
|
|
170
|
+
// No covered work shall be deemed part of an effective technological
|
|
171
|
+
// measure under any applicable law fulfilling obligations under article
|
|
172
|
+
// 11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
|
173
|
+
// similar laws prohibiting or restricting circumvention of such
|
|
174
|
+
// measures.
|
|
175
|
+
//
|
|
176
|
+
// When you convey a covered work, you waive any legal power to forbid
|
|
177
|
+
// circumvention of technological measures to the extent such circumvention
|
|
178
|
+
// is effected by exercising rights under this License with respect to
|
|
179
|
+
// the covered work, and you disclaim any intention to limit operation or
|
|
180
|
+
// modification of the work as a means of enforcing, against the work's
|
|
181
|
+
// users, your or third parties' legal rights to forbid circumvention of
|
|
182
|
+
// technological measures.
|
|
183
|
+
//
|
|
184
|
+
// 4. Conveying Verbatim Copies.
|
|
185
|
+
//
|
|
186
|
+
// You may convey verbatim copies of the Program's source code as you
|
|
187
|
+
// receive it, in any medium, provided that you conspicuously and
|
|
188
|
+
// appropriately publish on each copy an appropriate copyright notice;
|
|
189
|
+
// keep intact all notices stating that this License and any
|
|
190
|
+
// non-permissive terms added in accord with section 7 apply to the code;
|
|
191
|
+
// keep intact all notices of the absence of any warranty; and give all
|
|
192
|
+
// recipients a copy of this License along with the Program.
|
|
193
|
+
//
|
|
194
|
+
// You may charge any price or no price for each copy that you convey,
|
|
195
|
+
// and you may offer support or warranty protection for a fee.
|
|
196
|
+
//
|
|
197
|
+
// 5. Conveying Modified Source Versions.
|
|
198
|
+
//
|
|
199
|
+
// You may convey a work based on the Program, or the modifications to
|
|
200
|
+
// produce it from the Program, in the form of source code under the
|
|
201
|
+
// terms of section 4, provided that you also meet all of these conditions:
|
|
202
|
+
//
|
|
203
|
+
// a) The work must carry prominent notices stating that you modified
|
|
204
|
+
// it, and giving a relevant date.
|
|
205
|
+
//
|
|
206
|
+
// b) The work must carry prominent notices stating that it is
|
|
207
|
+
// released under this License and any conditions added under section
|
|
208
|
+
// 7. This requirement modifies the requirement in section 4 to
|
|
209
|
+
// "keep intact all notices".
|
|
210
|
+
//
|
|
211
|
+
// c) You must license the entire work, as a whole, under this
|
|
212
|
+
// License to anyone who comes into possession of a copy. This
|
|
213
|
+
// License will therefore apply, along with any applicable section 7
|
|
214
|
+
// additional terms, to the whole of the work, and all its parts,
|
|
215
|
+
// regardless of how they are packaged. This License gives no
|
|
216
|
+
// permission to license the work in any other way, but it does not
|
|
217
|
+
// invalidate such permission if you have separately received it.
|
|
218
|
+
//
|
|
219
|
+
// d) If the work has interactive user interfaces, each must display
|
|
220
|
+
// Appropriate Legal Notices; however, if the Program has interactive
|
|
221
|
+
// interfaces that do not display Appropriate Legal Notices, your
|
|
222
|
+
// work need not make them do so.
|
|
223
|
+
//
|
|
224
|
+
// A compilation of a covered work with other separate and independent
|
|
225
|
+
// works, which are not by their nature extensions of the covered work,
|
|
226
|
+
// and which are not combined with it such as to form a larger program,
|
|
227
|
+
// in or on a volume of a storage or distribution medium, is called an
|
|
228
|
+
// "aggregate" if the compilation and its resulting copyright are not
|
|
229
|
+
// used to limit the access or legal rights of the compilation's users
|
|
230
|
+
// beyond what the individual works permit. Inclusion of a covered work
|
|
231
|
+
// in an aggregate does not cause this License to apply to the other
|
|
232
|
+
// parts of the aggregate.
|
|
233
|
+
//
|
|
234
|
+
// 6. Conveying Non-Source Forms.
|
|
235
|
+
//
|
|
236
|
+
// You may convey a covered work in object code form under the terms
|
|
237
|
+
// of sections 4 and 5, provided that you also convey the
|
|
238
|
+
// machine-readable Corresponding Source under the terms of this License,
|
|
239
|
+
// in one of these ways:
|
|
240
|
+
//
|
|
241
|
+
// a) Convey the object code in, or embodied in, a physical product
|
|
242
|
+
// (including a physical distribution medium), accompanied by the
|
|
243
|
+
// Corresponding Source fixed on a durable physical medium
|
|
244
|
+
// customarily used for software interchange.
|
|
245
|
+
//
|
|
246
|
+
// b) Convey the object code in, or embodied in, a physical product
|
|
247
|
+
// (including a physical distribution medium), accompanied by a
|
|
248
|
+
// written offer, valid for at least three years and valid for as
|
|
249
|
+
// long as you offer spare parts or customer support for that product
|
|
250
|
+
// model, to give anyone who possesses the object code either (1) a
|
|
251
|
+
// copy of the Corresponding Source for all the software in the
|
|
252
|
+
// product that is covered by this License, on a durable physical
|
|
253
|
+
// medium customarily used for software interchange, for a price no
|
|
254
|
+
// more than your reasonable cost of physically performing this
|
|
255
|
+
// conveying of source, or (2) access to copy the
|
|
256
|
+
// Corresponding Source from a network server at no charge.
|
|
257
|
+
//
|
|
258
|
+
// c) Convey individual copies of the object code with a copy of the
|
|
259
|
+
// written offer to provide the Corresponding Source. This
|
|
260
|
+
// alternative is allowed only occasionally and noncommercially, and
|
|
261
|
+
// only if you received the object code with such an offer, in accord
|
|
262
|
+
// with subsection 6b.
|
|
263
|
+
//
|
|
264
|
+
// d) Convey the object code by offering access from a designated
|
|
265
|
+
// place (gratis or for a charge), and offer equivalent access to the
|
|
266
|
+
// Corresponding Source in the same way through the same place at no
|
|
267
|
+
// further charge. You need not require recipients to copy the
|
|
268
|
+
// Corresponding Source along with the object code. If the place to
|
|
269
|
+
// copy the object code is a network server, the Corresponding Source
|
|
270
|
+
// may be on a different server (operated by you or a third party)
|
|
271
|
+
// that supports equivalent copying facilities, provided you maintain
|
|
272
|
+
// clear directions next to the object code saying where to find the
|
|
273
|
+
// Corresponding Source. Regardless of what server hosts the
|
|
274
|
+
// Corresponding Source, you remain obligated to ensure that it is
|
|
275
|
+
// available for as long as needed to satisfy these requirements.
|
|
276
|
+
//
|
|
277
|
+
// e) Convey the object code using peer-to-peer transmission, provided
|
|
278
|
+
// you inform other peers where the object code and Corresponding
|
|
279
|
+
// Source of the work are being offered to the general public at no
|
|
280
|
+
// charge under subsection 6d.
|
|
281
|
+
//
|
|
282
|
+
// A separable portion of the object code, whose source code is excluded
|
|
283
|
+
// from the Corresponding Source as a System Library, need not be
|
|
284
|
+
// included in conveying the object code work.
|
|
285
|
+
//
|
|
286
|
+
// A "User Product" is either (1) a "consumer product", which means any
|
|
287
|
+
// tangible personal property which is normally used for personal, family,
|
|
288
|
+
// or household purposes, or (2) anything designed or sold for incorporation
|
|
289
|
+
// into a dwelling. In determining whether a product is a consumer product,
|
|
290
|
+
// doubtful cases shall be resolved in favor of coverage. For a particular
|
|
291
|
+
// product received by a particular user, "normally used" refers to a
|
|
292
|
+
// typical or common use of that class of product, regardless of the status
|
|
293
|
+
// of the particular user or of the way in which the particular user
|
|
294
|
+
// actually uses, or expects or is expected to use, the product. A product
|
|
295
|
+
// is a consumer product regardless of whether the product has substantial
|
|
296
|
+
// commercial, industrial or non-consumer uses, unless such uses represent
|
|
297
|
+
// the only significant mode of use of the product.
|
|
298
|
+
//
|
|
299
|
+
// "Installation Information" for a User Product means any methods,
|
|
300
|
+
// procedures, authorization keys, or other information required to install
|
|
301
|
+
// and execute modified versions of a covered work in that User Product from
|
|
302
|
+
// a modified version of its Corresponding Source. The information must
|
|
303
|
+
// suffice to ensure that the continued functioning of the modified object
|
|
304
|
+
// code is in no case prevented or interfered with solely because
|
|
305
|
+
// modification has been made.
|
|
306
|
+
//
|
|
307
|
+
// If you convey an object code work under this section in, or with, or
|
|
308
|
+
// specifically for use in, a User Product, and the conveying occurs as
|
|
309
|
+
// part of a transaction in which the right of possession and use of the
|
|
310
|
+
// User Product is transferred to the recipient in perpetuity or for a
|
|
311
|
+
// fixed term (regardless of how the transaction is characterized), the
|
|
312
|
+
// Corresponding Source conveyed under this section must be accompanied
|
|
313
|
+
// by the Installation Information. But this requirement does not apply
|
|
314
|
+
// if neither you nor any third party retains the ability to install
|
|
315
|
+
// modified object code on the User Product (for example, the work has
|
|
316
|
+
// been installed in ROM).
|
|
317
|
+
//
|
|
318
|
+
// The requirement to provide Installation Information does not include a
|
|
319
|
+
// requirement to continue to provide support service, warranty, or updates
|
|
320
|
+
// for a work that has been modified or installed by the recipient, or for
|
|
321
|
+
// the User Product in which it has been modified or installed. Access to a
|
|
322
|
+
// network may be denied when the modification itself materially and
|
|
323
|
+
// adversely affects the operation of the network or violates the rules and
|
|
324
|
+
// protocols for communication across the network.
|
|
325
|
+
//
|
|
326
|
+
// Corresponding Source conveyed, and Installation Information provided,
|
|
327
|
+
// in accord with this section must be in a format that is publicly
|
|
328
|
+
// documented (and with an implementation available to the public in
|
|
329
|
+
// source code form), and must require no special password or key for
|
|
330
|
+
// unpacking, reading or copying.
|
|
331
|
+
//
|
|
332
|
+
// 7. Additional Terms.
|
|
333
|
+
//
|
|
334
|
+
// "Additional permissions" are terms that supplement the terms of this
|
|
335
|
+
// License by making exceptions from one or more of its conditions.
|
|
336
|
+
// Additional permissions that are applicable to the entire Program shall
|
|
337
|
+
// be treated as though they were included in this License, to the extent
|
|
338
|
+
// that they are valid under applicable law. If additional permissions
|
|
339
|
+
// apply only to part of the Program, that part may be used separately
|
|
340
|
+
// under those permissions, but the entire Program remains governed by
|
|
341
|
+
// this License without regard to the additional permissions.
|
|
342
|
+
//
|
|
343
|
+
// When you convey a copy of a covered work, you may at your option
|
|
344
|
+
// remove any additional permissions from that copy, or from any part of
|
|
345
|
+
// it. (Additional permissions may be written to require their own
|
|
346
|
+
// removal in certain cases when you modify the work.) You may place
|
|
347
|
+
// additional permissions on material, added by you to a covered work,
|
|
348
|
+
// for which you have or can give appropriate copyright permission.
|
|
349
|
+
//
|
|
350
|
+
// Notwithstanding any other provision of this License, for material you
|
|
351
|
+
// add to a covered work, you may (if authorized by the copyright holders of
|
|
352
|
+
// that material) supplement the terms of this License with terms:
|
|
353
|
+
//
|
|
354
|
+
// a) Disclaiming warranty or limiting liability differently from the
|
|
355
|
+
// terms of sections 15 and 16 of this License; or
|
|
356
|
+
//
|
|
357
|
+
// b) Requiring preservation of specified reasonable legal notices or
|
|
358
|
+
// author attributions in that material or in the Appropriate Legal
|
|
359
|
+
// Notices displayed by works containing it; or
|
|
360
|
+
//
|
|
361
|
+
// c) Prohibiting misrepresentation of the origin of that material, or
|
|
362
|
+
// requiring that modified versions of such material be marked in
|
|
363
|
+
// reasonable ways as different from the original version; or
|
|
364
|
+
//
|
|
365
|
+
// d) Limiting the use for publicity purposes of names of licensors or
|
|
366
|
+
// authors of the material; or
|
|
367
|
+
//
|
|
368
|
+
// e) Declining to grant rights under trademark law for use of some
|
|
369
|
+
// trade names, trademarks, or service marks; or
|
|
370
|
+
//
|
|
371
|
+
// f) Requiring indemnification of licensors and authors of that
|
|
372
|
+
// material by anyone who conveys the material (or modified versions of
|
|
373
|
+
// it) with contractual assumptions of liability to the recipient, for
|
|
374
|
+
// any liability that these contractual assumptions directly impose on
|
|
375
|
+
// those licensors and authors.
|
|
376
|
+
//
|
|
377
|
+
// All other non-permissive additional terms are considered "further
|
|
378
|
+
// restrictions" within the meaning of section 10. If the Program as you
|
|
379
|
+
// received it, or any part of it, contains a notice stating that it is
|
|
380
|
+
// governed by this License along with a term that is a further
|
|
381
|
+
// restriction, you may remove that term. If a license document contains
|
|
382
|
+
// a further restriction but permits relicensing or conveying under this
|
|
383
|
+
// License, you may add to a covered work material governed by the terms
|
|
384
|
+
// of that license document, provided that the further restriction does
|
|
385
|
+
// not survive such relicensing or conveying.
|
|
386
|
+
//
|
|
387
|
+
// If you add terms to a covered work in accord with this section, you
|
|
388
|
+
// must place, in the relevant source files, a statement of the
|
|
389
|
+
// additional terms that apply to those files, or a notice indicating
|
|
390
|
+
// where to find the applicable terms.
|
|
391
|
+
//
|
|
392
|
+
// Additional terms, permissive or non-permissive, may be stated in the
|
|
393
|
+
// form of a separately written license, or stated as exceptions;
|
|
394
|
+
// the above requirements apply either way.
|
|
395
|
+
//
|
|
396
|
+
// 8. Termination.
|
|
397
|
+
//
|
|
398
|
+
// You may not propagate or modify a covered work except as expressly
|
|
399
|
+
// provided under this License. Any attempt otherwise to propagate or
|
|
400
|
+
// modify it is void, and will automatically terminate your rights under
|
|
401
|
+
// this License (including any patent licenses granted under the third
|
|
402
|
+
// paragraph of section 11).
|
|
403
|
+
//
|
|
404
|
+
// However, if you cease all violation of this License, then your
|
|
405
|
+
// license from a particular copyright holder is reinstated (a)
|
|
406
|
+
// provisionally, unless and until the copyright holder explicitly and
|
|
407
|
+
// finally terminates your license, and (b) permanently, if the copyright
|
|
408
|
+
// holder fails to notify you of the violation by some reasonable means
|
|
409
|
+
// prior to 60 days after the cessation.
|
|
410
|
+
//
|
|
411
|
+
// Moreover, your license from a particular copyright holder is
|
|
412
|
+
// reinstated permanently if the copyright holder notifies you of the
|
|
413
|
+
// violation by some reasonable means, this is the first time you have
|
|
414
|
+
// received notice of violation of this License (for any work) from that
|
|
415
|
+
// copyright holder, and you cure the violation prior to 30 days after
|
|
416
|
+
// your receipt of the notice.
|
|
417
|
+
//
|
|
418
|
+
// Termination of your rights under this section does not terminate the
|
|
419
|
+
// licenses of parties who have received copies or rights from you under
|
|
420
|
+
// this License. If your rights have been terminated and not permanently
|
|
421
|
+
// reinstated, you do not qualify to receive new licenses for the same
|
|
422
|
+
// material under section 10.
|
|
423
|
+
//
|
|
424
|
+
// 9. Acceptance Not Required for Having Copies.
|
|
425
|
+
//
|
|
426
|
+
// You are not required to accept this License in order to receive or
|
|
427
|
+
// run a copy of the Program. Ancillary propagation of a covered work
|
|
428
|
+
// occurring solely as a consequence of using peer-to-peer transmission
|
|
429
|
+
// to receive a copy likewise does not require acceptance. However,
|
|
430
|
+
// nothing other than this License grants you permission to propagate or
|
|
431
|
+
// modify any covered work. These actions infringe copyright if you do
|
|
432
|
+
// not accept this License. Therefore, by modifying or propagating a
|
|
433
|
+
// covered work, you indicate your acceptance of this License to do so.
|
|
434
|
+
//
|
|
435
|
+
// 10. Automatic Licensing of Downstream Recipients.
|
|
436
|
+
//
|
|
437
|
+
// Each time you convey a covered work, the recipient automatically
|
|
438
|
+
// receives a license from the original licensors, to run, modify and
|
|
439
|
+
// propagate that work, subject to this License. You are not responsible
|
|
440
|
+
// for enforcing compliance by third parties with this License.
|
|
441
|
+
//
|
|
442
|
+
// An "entity transaction" is a transaction transferring control of an
|
|
443
|
+
// organization, or substantially all assets of one, or subdividing an
|
|
444
|
+
// organization, or merging organizations. If propagation of a covered
|
|
445
|
+
// work results from an entity transaction, each party to that
|
|
446
|
+
// transaction who receives a copy of the work also receives whatever
|
|
447
|
+
// licenses to the work the party's predecessor in interest had or could
|
|
448
|
+
// give under the previous paragraph, plus a right to possession of the
|
|
449
|
+
// Corresponding Source of the work from the predecessor in interest, if
|
|
450
|
+
// the predecessor has it or can get it with reasonable efforts.
|
|
451
|
+
//
|
|
452
|
+
// You may not impose any further restrictions on the exercise of the
|
|
453
|
+
// rights granted or affirmed under this License. For example, you may
|
|
454
|
+
// not impose a license fee, royalty, or other charge for exercise of
|
|
455
|
+
// rights granted under this License, and you may not initiate litigation
|
|
456
|
+
// (including a cross-claim or counterclaim in a lawsuit) alleging that
|
|
457
|
+
// any patent claim is infringed by making, using, selling, offering for
|
|
458
|
+
// sale, or importing the Program or any portion of it.
|
|
459
|
+
//
|
|
460
|
+
// 11. Patents.
|
|
461
|
+
//
|
|
462
|
+
// A "contributor" is a copyright holder who authorizes use under this
|
|
463
|
+
// License of the Program or a work on which the Program is based. The
|
|
464
|
+
// work thus licensed is called the contributor's "contributor version".
|
|
465
|
+
//
|
|
466
|
+
// A contributor's "essential patent claims" are all patent claims
|
|
467
|
+
// owned or controlled by the contributor, whether already acquired or
|
|
468
|
+
// hereafter acquired, that would be infringed by some manner, permitted
|
|
469
|
+
// by this License, of making, using, or selling its contributor version,
|
|
470
|
+
// but do not include claims that would be infringed only as a
|
|
471
|
+
// consequence of further modification of the contributor version. For
|
|
472
|
+
// purposes of this definition, "control" includes the right to grant
|
|
473
|
+
// patent sublicenses in a manner consistent with the requirements of
|
|
474
|
+
// this License.
|
|
475
|
+
//
|
|
476
|
+
// Each contributor grants you a non-exclusive, worldwide, royalty-free
|
|
477
|
+
// patent license under the contributor's essential patent claims, to
|
|
478
|
+
// make, use, sell, offer for sale, import and otherwise run, modify and
|
|
479
|
+
// propagate the contents of its contributor version.
|
|
480
|
+
//
|
|
481
|
+
// In the following three paragraphs, a "patent license" is any express
|
|
482
|
+
// agreement or commitment, however denominated, not to enforce a patent
|
|
483
|
+
// (such as an express permission to practice a patent or covenant not to
|
|
484
|
+
// sue for patent infringement). To "grant" such a patent license to a
|
|
485
|
+
// party means to make such an agreement or commitment not to enforce a
|
|
486
|
+
// patent against the party.
|
|
487
|
+
//
|
|
488
|
+
// If you convey a covered work, knowingly relying on a patent license,
|
|
489
|
+
// and the Corresponding Source of the work is not available for anyone
|
|
490
|
+
// to copy, free of charge and under the terms of this License, through a
|
|
491
|
+
// publicly available network server or other readily accessible means,
|
|
492
|
+
// then you must either (1) cause the Corresponding Source to be so
|
|
493
|
+
// available, or (2) arrange to deprive yourself of the benefit of the
|
|
494
|
+
// patent license for this particular work, or (3) arrange, in a manner
|
|
495
|
+
// consistent with the requirements of this License, to extend the patent
|
|
496
|
+
// license to downstream recipients. "Knowingly relying" means you have
|
|
497
|
+
// actual knowledge that, but for the patent license, your conveying the
|
|
498
|
+
// covered work in a country, or your recipient's use of the covered work
|
|
499
|
+
// in a country, would infringe one or more identifiable patents in that
|
|
500
|
+
// country that you have reason to believe are valid.
|
|
501
|
+
//
|
|
502
|
+
// If, pursuant to or in connection with a single transaction or
|
|
503
|
+
// arrangement, you convey, or propagate by procuring conveyance of, a
|
|
504
|
+
// covered work, and grant a patent license to some of the parties
|
|
505
|
+
// receiving the covered work authorizing them to use, propagate, modify
|
|
506
|
+
// or convey a specific copy of the covered work, then the patent license
|
|
507
|
+
// you grant is automatically extended to all recipients of the covered
|
|
508
|
+
// work and works based on it.
|
|
509
|
+
//
|
|
510
|
+
// A patent license is "discriminatory" if it does not include within
|
|
511
|
+
// the scope of its coverage, prohibits the exercise of, or is
|
|
512
|
+
// conditioned on the non-exercise of one or more of the rights that are
|
|
513
|
+
// specifically granted under this License. You may not convey a covered
|
|
514
|
+
// work if you are a party to an arrangement with a third party that is
|
|
515
|
+
// in the business of distributing software, under which you make payment
|
|
516
|
+
// to the third party based on the extent of your activity of conveying
|
|
517
|
+
// the work, and under which the third party grants, to any of the
|
|
518
|
+
// parties who would receive the covered work from you, a discriminatory
|
|
519
|
+
// patent license (a) in connection with copies of the covered work
|
|
520
|
+
// conveyed by you (or copies made from those copies), or (b) primarily
|
|
521
|
+
// for and in connection with specific products or compilations that
|
|
522
|
+
// contain the covered work, unless you entered into that arrangement,
|
|
523
|
+
// or that patent license was granted, prior to 28 March 2007.
|
|
524
|
+
//
|
|
525
|
+
// Nothing in this License shall be construed as excluding or limiting
|
|
526
|
+
// any implied license or other defenses to infringement that may
|
|
527
|
+
// otherwise be available to you under applicable patent law.
|
|
528
|
+
//
|
|
529
|
+
// 12. No Surrender of Others' Freedom.
|
|
530
|
+
//
|
|
531
|
+
// If conditions are imposed on you (whether by court order, agreement or
|
|
532
|
+
// otherwise) that contradict the conditions of this License, they do not
|
|
533
|
+
// excuse you from the conditions of this License. If you cannot convey a
|
|
534
|
+
// covered work so as to satisfy simultaneously your obligations under this
|
|
535
|
+
// License and any other pertinent obligations, then as a consequence you may
|
|
536
|
+
// not convey it at all. For example, if you agree to terms that obligate you
|
|
537
|
+
// to collect a royalty for further conveying from those to whom you convey
|
|
538
|
+
// the Program, the only way you could satisfy both those terms and this
|
|
539
|
+
// License would be to refrain entirely from conveying the Program.
|
|
540
|
+
//
|
|
541
|
+
// 13. Remote Network Interaction; Use with the GNU General Public License.
|
|
542
|
+
//
|
|
543
|
+
// Notwithstanding any other provision of this License, if you modify the
|
|
544
|
+
// Program, your modified version must prominently offer all users
|
|
545
|
+
// interacting with it remotely through a computer network (if your version
|
|
546
|
+
// supports such interaction) an opportunity to receive the Corresponding
|
|
547
|
+
// Source of your version by providing access to the Corresponding Source
|
|
548
|
+
// from a network server at no charge, through some standard or customary
|
|
549
|
+
// means of facilitating copying of software. This Corresponding Source
|
|
550
|
+
// shall include the Corresponding Source for any work covered by version 3
|
|
551
|
+
// of the GNU General Public License that is incorporated pursuant to the
|
|
552
|
+
// following paragraph.
|
|
553
|
+
//
|
|
554
|
+
// Notwithstanding any other provision of this License, you have
|
|
555
|
+
// permission to link or combine any covered work with a work licensed
|
|
556
|
+
// under version 3 of the GNU General Public License into a single
|
|
557
|
+
// combined work, and to convey the resulting work. The terms of this
|
|
558
|
+
// License will continue to apply to the part which is the covered work,
|
|
559
|
+
// but the work with which it is combined will remain governed by version
|
|
560
|
+
// 3 of the GNU General Public License.
|
|
561
|
+
//
|
|
562
|
+
// 14. Revised Versions of this License.
|
|
563
|
+
//
|
|
564
|
+
// The Free Software Foundation may publish revised and/or new versions of
|
|
565
|
+
// the GNU Affero General Public License from time to time. Such new versions
|
|
566
|
+
// will be similar in spirit to the present version, but may differ in detail to
|
|
567
|
+
// address new problems or concerns.
|
|
568
|
+
//
|
|
569
|
+
// Each version is given a distinguishing version number. If the
|
|
570
|
+
// Program specifies that a certain numbered version of the GNU Affero General
|
|
571
|
+
// Public License "or any later version" applies to it, you have the
|
|
572
|
+
// option of following the terms and conditions either of that numbered
|
|
573
|
+
// version or of any later version published by the Free Software
|
|
574
|
+
// Foundation. If the Program does not specify a version number of the
|
|
575
|
+
// GNU Affero General Public License, you may choose any version ever published
|
|
576
|
+
// by the Free Software Foundation.
|
|
577
|
+
//
|
|
578
|
+
// If the Program specifies that a proxy can decide which future
|
|
579
|
+
// versions of the GNU Affero General Public License can be used, that proxy's
|
|
580
|
+
// public statement of acceptance of a version permanently authorizes you
|
|
581
|
+
// to choose that version for the Program.
|
|
582
|
+
//
|
|
583
|
+
// Later license versions may give you additional or different
|
|
584
|
+
// permissions. However, no additional obligations are imposed on any
|
|
585
|
+
// author or copyright holder as a result of your choosing to follow a
|
|
586
|
+
// later version.
|
|
587
|
+
//
|
|
588
|
+
// 15. Disclaimer of Warranty.
|
|
589
|
+
//
|
|
590
|
+
// THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
|
591
|
+
// APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
|
592
|
+
// HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
|
593
|
+
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
|
594
|
+
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
595
|
+
// PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
|
596
|
+
// IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
|
597
|
+
// ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
|
598
|
+
//
|
|
599
|
+
// 16. Limitation of Liability.
|
|
600
|
+
//
|
|
601
|
+
// IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
602
|
+
// WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
|
603
|
+
// THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
|
604
|
+
// GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
|
605
|
+
// USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
|
606
|
+
// DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
|
607
|
+
// PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
|
608
|
+
// EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
|
609
|
+
// SUCH DAMAGES.
|
|
610
|
+
//
|
|
611
|
+
// 17. Interpretation of Sections 15 and 16.
|
|
612
|
+
//
|
|
613
|
+
// If the disclaimer of warranty and limitation of liability provided
|
|
614
|
+
// above cannot be given local legal effect according to their terms,
|
|
615
|
+
// reviewing courts shall apply local law that most closely approximates
|
|
616
|
+
// an absolute waiver of all civil liability in connection with the
|
|
617
|
+
// Program, unless a warranty or assumption of liability accompanies a
|
|
618
|
+
// copy of the Program in return for a fee.
|
|
619
|
+
//
|
|
620
|
+
// END OF TERMS AND CONDITIONS
|
|
621
|
+
//
|
|
622
|
+
// How to Apply These Terms to Your New Programs
|
|
623
|
+
//
|
|
624
|
+
// If you develop a new program, and you want it to be of the greatest
|
|
625
|
+
// possible use to the public, the best way to achieve this is to make it
|
|
626
|
+
// free software which everyone can redistribute and change under these terms.
|
|
627
|
+
//
|
|
628
|
+
// To do so, attach the following notices to the program. It is safest
|
|
629
|
+
// to attach them to the start of each source file to most effectively
|
|
630
|
+
// state the exclusion of warranty; and each file should have at least
|
|
631
|
+
// the "copyright" line and a pointer to where the full notice is found.
|
|
632
|
+
//
|
|
633
|
+
// <one line to give the program's name and a brief idea of what it does.>
|
|
634
|
+
// Copyright (C) <year> <name of author>
|
|
635
|
+
//
|
|
636
|
+
// This program is free software: you can redistribute it and/or modify
|
|
637
|
+
// it under the terms of the GNU Affero General Public License as published
|
|
638
|
+
// by the Free Software Foundation, either version 3 of the License, or
|
|
639
|
+
// (at your option) any later version.
|
|
640
|
+
//
|
|
641
|
+
// This program is distributed in the hope that it will be useful,
|
|
642
|
+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
643
|
+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
644
|
+
// GNU Affero General Public License for more details.
|
|
645
|
+
//
|
|
646
|
+
// You should have received a copy of the GNU Affero General Public License
|
|
647
|
+
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
648
|
+
//
|
|
649
|
+
// Also add information on how to contact you by electronic and paper mail.
|
|
650
|
+
//
|
|
651
|
+
// If your software can interact with users remotely through a computer
|
|
652
|
+
// network, you should also make sure that it provides a way for users to
|
|
653
|
+
// get its source. For example, if your program is a web application, its
|
|
654
|
+
// interface could display a "Source" link that leads users to an archive
|
|
655
|
+
// of the code. There are many ways you could offer source, and different
|
|
656
|
+
// solutions will be better for different programs; see section 13 for the
|
|
657
|
+
// specific requirements.
|
|
658
|
+
//
|
|
659
|
+
// You should also get your employer (if you work as a programmer) or school,
|
|
660
|
+
// if any, to sign a "copyright disclaimer" for the program, if necessary.
|
|
661
|
+
// For more information on this, and how to apply and follow the GNU AGPL, see
|
|
662
|
+
// <https://www.gnu.org/licenses/>.
|
|
663
|
+
//
|
|
664
|
+
// React
|
|
665
|
+
// MIT License
|
|
666
|
+
//
|
|
667
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
668
|
+
//
|
|
669
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
670
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
671
|
+
// in the Software without restriction, including without limitation the rights
|
|
672
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
673
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
674
|
+
// furnished to do so, subject to the following conditions:
|
|
675
|
+
//
|
|
676
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
677
|
+
// copies or substantial portions of the Software.
|
|
678
|
+
//
|
|
679
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
680
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
681
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
682
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
683
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
684
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
685
|
+
// SOFTWARE.
|
|
686
|
+
//
|
|
687
|
+
// ReactDOM
|
|
688
|
+
// MIT License
|
|
689
|
+
//
|
|
690
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
691
|
+
//
|
|
692
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
693
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
694
|
+
// in the Software without restriction, including without limitation the rights
|
|
695
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
696
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
697
|
+
// furnished to do so, subject to the following conditions:
|
|
698
|
+
//
|
|
699
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
700
|
+
// copies or substantial portions of the Software.
|
|
701
|
+
//
|
|
702
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
703
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
704
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
705
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
706
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
707
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
708
|
+
// SOFTWARE.
|
|
709
|
+
//
|
|
710
|
+
// Scheduler
|
|
711
|
+
// MIT License
|
|
712
|
+
//
|
|
713
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
714
|
+
//
|
|
715
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
716
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
717
|
+
// in the Software without restriction, including without limitation the rights
|
|
718
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
719
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
720
|
+
// furnished to do so, subject to the following conditions:
|
|
721
|
+
//
|
|
722
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
723
|
+
// copies or substantial portions of the Software.
|
|
724
|
+
//
|
|
725
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
726
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
727
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
728
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
729
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
730
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
731
|
+
// SOFTWARE.
|
|
732
|
+
//
|
|
733
|
+
// Lucide
|
|
734
|
+
// ISC License
|
|
735
|
+
//
|
|
736
|
+
// Copyright (c) 2026 Lucide Icons and Contributors
|
|
737
|
+
//
|
|
738
|
+
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
739
|
+
//
|
|
740
|
+
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
741
|
+
//
|
|
742
|
+
// Feather icons incorporated in Lucide are distributed under the MIT License.
|
|
743
|
+
//
|
|
744
|
+
// Copyright (c) 2013-present Cole Bemis
|
|
745
|
+
//
|
|
746
|
+
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
747
|
+
// of this software and associated documentation files (the "Software"), to deal
|
|
748
|
+
// in the Software without restriction, including without limitation the rights
|
|
749
|
+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
750
|
+
// copies of the Software, and to permit persons to whom the Software is
|
|
751
|
+
// furnished to do so, subject to the following conditions:
|
|
752
|
+
//
|
|
753
|
+
// The above copyright notice and this permission notice shall be included in all
|
|
754
|
+
// copies or substantial portions of the Software.
|
|
755
|
+
//
|
|
756
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
757
|
+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
758
|
+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
759
|
+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
760
|
+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
761
|
+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
762
|
+
// SOFTWARE.
|
|
763
|
+
//
|
|
764
|
+
// Source
|
|
765
|
+
// K-Plex Web 0.0.6 (pack 0.4.6)
|
|
766
|
+
// Copyright K-Plex contributors. Distributed under AGPL-3.0-only.
|
|
767
|
+
// Corresponding source: https://github.com/zsviczian/kplex/tree/1b2559404a4fbb0561c2f53a038795a3908ac8b8
|
|
768
|
+
// Use the source for the exact release that supplied this runtime. When redistributing a custom build, make its exact corresponding source available.
|
|
769
|
+
//
|
|
770
|
+
(()=>{var d1=Object.create;var Om=Object.defineProperty;var m1=Object.getOwnPropertyDescriptor;var h1=Object.getOwnPropertyNames;var p1=Object.getPrototypeOf,g1=Object.prototype.hasOwnProperty;var Dn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var y1=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of h1(t))!g1.call(e,l)&&l!==n&&Om(e,l,{get:()=>t[l],enumerable:!(i=m1(t,l))||i.enumerable});return e};var X=(e,t,n)=>(n=e!=null?d1(p1(e)):{},y1(t||!e||!e.__esModule?Om(n,"default",{value:e,enumerable:!0}):n,e));var Fm=Dn(He=>{"use strict";function Wc(e,t){var n=e.length;e.push(t);e:for(;0<n;){var i=n-1>>>1,l=e[i];if(0<zr(l,t))e[i]=t,e[n]=l,n=i;else break e}}function Hn(e){return e.length===0?null:e[0]}function Dr(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var i=0,l=e.length,a=l>>>1;i<a;){var o=2*(i+1)-1,r=e[o],u=o+1,c=e[u];if(0>zr(r,n))u<l&&0>zr(c,r)?(e[i]=c,e[u]=n,i=u):(e[i]=r,e[o]=n,i=o);else if(u<l&&0>zr(c,n))e[i]=c,e[u]=n,i=u;else break e}}return t}function zr(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}He.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(Ym=performance,He.unstable_now=function(){return Ym.now()}):(Jc=Date,qm=Jc.now(),He.unstable_now=function(){return Jc.now()-qm});var Ym,Jc,qm,ai=[],Ni=[],L1=1,an=null,gt=3,es=!1,eo=!1,to=!1,ts=!1,Km=typeof setTimeout=="function"?setTimeout:null,Qm=typeof clearTimeout=="function"?clearTimeout:null,jm=typeof setImmediate<"u"?setImmediate:null;function Or(e){for(var t=Hn(Ni);t!==null;){if(t.callback===null)Dr(Ni);else if(t.startTime<=e)Dr(Ni),t.sortIndex=t.expirationTime,Wc(ai,t);else break;t=Hn(Ni)}}function ns(e){if(to=!1,Or(e),!eo)if(Hn(ai)!==null)eo=!0,Yl||(Yl=!0,Gl());else{var t=Hn(Ni);t!==null&&is(ns,t.startTime-e)}}var Yl=!1,no=-1,Zm=5,Im=-1;function Jm(){return ts?!0:!(He.unstable_now()-Im<Zm)}function Fc(){if(ts=!1,Yl){var e=He.unstable_now();Im=e;var t=!0;try{e:{eo=!1,to&&(to=!1,Qm(no),no=-1),es=!0;var n=gt;try{t:{for(Or(e),an=Hn(ai);an!==null&&!(an.expirationTime>e&&Jm());){var i=an.callback;if(typeof i=="function"){an.callback=null,gt=an.priorityLevel;var l=i(an.expirationTime<=e);if(e=He.unstable_now(),typeof l=="function"){an.callback=l,Or(e),t=!0;break t}an===Hn(ai)&&Dr(ai),Or(e)}else Dr(ai);an=Hn(ai)}if(an!==null)t=!0;else{var a=Hn(Ni);a!==null&&is(ns,a.startTime-e),t=!1}}break e}finally{an=null,gt=n,es=!1}t=void 0}}finally{t?Gl():Yl=!1}}}var Gl;typeof jm=="function"?Gl=function(){jm(Fc)}:typeof MessageChannel<"u"?($c=new MessageChannel,Xm=$c.port2,$c.port1.onmessage=Fc,Gl=function(){Xm.postMessage(null)}):Gl=function(){Km(Fc,0)};var $c,Xm;function is(e,t){no=Km(function(){e(He.unstable_now())},t)}He.unstable_IdlePriority=5;He.unstable_ImmediatePriority=1;He.unstable_LowPriority=4;He.unstable_NormalPriority=3;He.unstable_Profiling=null;He.unstable_UserBlockingPriority=2;He.unstable_cancelCallback=function(e){e.callback=null};He.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Zm=0<e?Math.floor(1e3/e):5};He.unstable_getCurrentPriorityLevel=function(){return gt};He.unstable_next=function(e){switch(gt){case 1:case 2:case 3:var t=3;break;default:t=gt}var n=gt;gt=t;try{return e()}finally{gt=n}};He.unstable_requestPaint=function(){ts=!0};He.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=gt;gt=e;try{return t()}finally{gt=n}};He.unstable_scheduleCallback=function(e,t,n){var i=He.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?i+n:i):n=i,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=n+l,e={id:L1++,callback:t,priorityLevel:e,startTime:n,expirationTime:l,sortIndex:-1},n>i?(e.sortIndex=n,Wc(Ni,e),Hn(ai)===null&&e===Hn(Ni)&&(to?(Qm(no),no=-1):to=!0,is(ns,n-i))):(e.sortIndex=l,Wc(ai,e),eo||es||(eo=!0,Yl||(Yl=!0,Gl()))),e};He.unstable_shouldYield=Jm;He.unstable_wrapCallback=function(e){var t=gt;return function(){var n=gt;gt=t;try{return e.apply(this,arguments)}finally{gt=n}}}});var Wm=Dn((BM,$m)=>{"use strict";$m.exports=Fm()});var dh=Dn($=>{"use strict";var os=Symbol.for("react.transitional.element"),_1=Symbol.for("react.portal"),H1=Symbol.for("react.fragment"),U1=Symbol.for("react.strict_mode"),P1=Symbol.for("react.profiler"),k1=Symbol.for("react.consumer"),V1=Symbol.for("react.context"),B1=Symbol.for("react.forward_ref"),G1=Symbol.for("react.suspense"),Y1=Symbol.for("react.memo"),lh=Symbol.for("react.lazy"),q1=Symbol.for("react.activity"),j1=Symbol.for("react.view_transition"),eh=Symbol.iterator;function X1(e){return e===null||typeof e!="object"?null:(e=eh&&e[eh]||e["@@iterator"],typeof e=="function"?e:null)}var ah={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oh=Object.assign,rh={};function jl(e,t,n){this.props=e,this.context=t,this.refs=rh,this.updater=n||ah}jl.prototype.isReactComponent={};jl.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};jl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function uh(){}uh.prototype=jl.prototype;function rs(e,t,n){this.props=e,this.context=t,this.refs=rh,this.updater=n||ah}var us=rs.prototype=new uh;us.constructor=rs;oh(us,jl.prototype);us.isPureReactComponent=!0;var th=Array.isArray;function as(){}var Ce={H:null,A:null,T:null,S:null},ch=Object.prototype.hasOwnProperty;function cs(e,t,n){var i=n.ref;return{$$typeof:os,type:e,key:t,ref:i!==void 0?i:null,props:n}}function K1(e,t){return cs(e.type,t,e.props)}function ss(e){return typeof e=="object"&&e!==null&&e.$$typeof===os}function Q1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var nh=/\/+/g;function ls(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Q1(""+e.key):t.toString(36)}function Z1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(as,as):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ql(e,t,n,i,l){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case os:case _1:o=!0;break;case lh:return o=e._init,ql(o(e._payload),t,n,i,l)}}if(o)return l=l(e),o=i===""?"."+ls(e,0):i,th(l)?(n="",o!=null&&(n=o.replace(nh,"$&/")+"/"),ql(l,t,n,"",function(c){return c})):l!=null&&(ss(l)&&(l=K1(l,n+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(nh,"$&/")+"/")+o)),t.push(l)),1;o=0;var r=i===""?".":i+":";if(th(e))for(var u=0;u<e.length;u++)i=e[u],a=r+ls(i,u),o+=ql(i,t,n,a,l);else if(u=X1(e),typeof u=="function")for(e=u.call(e),u=0;!(i=e.next()).done;)i=i.value,a=r+ls(i,u++),o+=ql(i,t,n,a,l);else if(a==="object"){if(typeof e.then=="function")return ql(Z1(e),t,n,i,l);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return o}function Lr(e,t,n){if(e==null)return e;var i=[],l=0;return ql(e,i,"","",function(a){return t.call(n,a,l++)}),i}function I1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(i){(e._status===0||e._status===-1)&&(e._status=1,e._result=i,n.status===void 0&&(n.status="fulfilled",n.value=i))},function(i){(e._status===0||e._status===-1)&&(e._status=2,e._result=i,n.status===void 0&&(n.status="rejected",n.reason=i))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ih=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function sh(e){var t=Ce.T,n={};n.types=t!==null?t.types:null,Ce.T=n;try{var i=e(),l=Ce.S;l!==null&&l(n,i),typeof i=="object"&&i!==null&&typeof i.then=="function"&&i.then(as,ih)}catch(a){ih(a)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ce.T=t}}function fh(e){var t=Ce.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else sh(fh.bind(null,e))}var J1={map:Lr,forEach:function(e,t,n){Lr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Lr(e,function(){t++}),t},toArray:function(e){return Lr(e,function(t){return t})||[]},only:function(e){if(!ss(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Activity=q1;$.Children=J1;$.Component=jl;$.Fragment=H1;$.Profiler=P1;$.PureComponent=rs;$.StrictMode=U1;$.Suspense=G1;$.ViewTransition=j1;$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ce;$.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ce.H.useMemoCache(e)}};$.addTransitionType=fh;$.cache=function(e){return function(){return e.apply(null,arguments)}};$.cacheSignal=function(){return null};$.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var i=oh({},e.props),l=e.key;if(t!=null)for(a in t.key!==void 0&&(l=""+t.key),t)!ch.call(t,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&t.ref===void 0||(i[a]=t[a]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var o=Array(a),r=0;r<a;r++)o[r]=arguments[r+2];i.children=o}return cs(e.type,l,i)};$.createContext=function(e){return e={$$typeof:V1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:k1,_context:e},e};$.createElement=function(e,t,n){var i,l={},a=null;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)ch.call(t,i)&&i!=="key"&&i!=="__self"&&i!=="__source"&&(l[i]=t[i]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var r=Array(o),u=0;u<o;u++)r[u]=arguments[u+2];l.children=r}if(e&&e.defaultProps)for(i in o=e.defaultProps,o)l[i]===void 0&&(l[i]=o[i]);return cs(e,a,l)};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:B1,render:e}};$.isValidElement=ss;$.lazy=function(e){return{$$typeof:lh,_payload:{_status:-1,_result:e},_init:I1}};$.memo=function(e,t){return{$$typeof:Y1,type:e,compare:t===void 0?null:t}};$.startTransition=sh;$.unstable_useCacheRefresh=function(){return Ce.H.useCacheRefresh()};$.use=function(e){return Ce.H.use(e)};$.useActionState=function(e,t,n){return Ce.H.useActionState(e,t,n)};$.useCallback=function(e,t){return Ce.H.useCallback(e,t)};$.useContext=function(e){return Ce.H.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e,t){return Ce.H.useDeferredValue(e,t)};$.useEffect=function(e,t){return Ce.H.useEffect(e,t)};$.useEffectEvent=function(e){return Ce.H.useEffectEvent(e)};$.useId=function(){return Ce.H.useId()};$.useImperativeHandle=function(e,t,n){return Ce.H.useImperativeHandle(e,t,n)};$.useInsertionEffect=function(e,t){return Ce.H.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return Ce.H.useLayoutEffect(e,t)};$.useMemo=function(e,t){return Ce.H.useMemo(e,t)};$.useOptimistic=function(e,t){return Ce.H.useOptimistic(e,t)};$.useReducer=function(e,t,n){return Ce.H.useReducer(e,t,n)};$.useRef=function(e){return Ce.H.useRef(e)};$.useState=function(e){return Ce.H.useState(e)};$.useSyncExternalStore=function(e,t,n){return Ce.H.useSyncExternalStore(e,t,n)};$.useTransition=function(){return Ce.H.useTransition()};$.version="19.3.0"});var nt=Dn((YM,mh)=>{"use strict";mh.exports=dh()});var gh=Dn(yt=>{"use strict";var F1=nt();function ph(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Ri(){}var Nt={d:{f:Ri,r:function(){throw Error(ph(522))},D:Ri,C:Ri,L:Ri,m:Ri,X:Ri,S:Ri,M:Ri},p:0,findDOMNode:null},$1=Symbol.for("react.portal"),W1=Symbol.for("react.recoverable"),hh=Symbol.for("react.optimistic_key");function eS(e,t,n){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$1,key:i==null?null:i===hh?hh:""+i,children:e,containerInfo:t,implementation:n}}var io=F1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function _r(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Nt;yt.browser=function(e){return{$$typeof:W1,_reason:e}};yt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(ph(299));return eS(e,t,null,n)};yt.flushSync=function(e){var t=io.T,n=Nt.p;try{if(io.T=null,Nt.p=2,e)return e()}finally{io.T=t,Nt.p=n,Nt.d.f()}};yt.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Nt.d.C(e,t))};yt.prefetchDNS=function(e){typeof e=="string"&&Nt.d.D(e)};yt.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,i=_r(n,t.crossOrigin),l=typeof t.integrity=="string"?t.integrity:void 0,a=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Nt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:i,integrity:l,fetchPriority:a}):n==="script"&&Nt.d.X(e,{crossOrigin:i,integrity:l,fetchPriority:a,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yt.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=_r(t.as,t.crossOrigin);Nt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&Nt.d.M(e)};yt.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,i=_r(n,t.crossOrigin);Nt.d.L(e,n,{crossOrigin:i,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yt.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=_r(t.as,t.crossOrigin);Nt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else Nt.d.m(e)};yt.requestFormReset=function(e){Nt.d.r(e)};yt.unstable_batchedUpdates=function(e,t){return e(t)};yt.useFormState=function(e,t,n){return io.H.useFormState(e,t,n)};yt.useFormStatus=function(){return io.H.useHostTransitionStatus()};yt.version="19.3.0"});var Hr=Dn((jM,bh)=>{"use strict";function yh(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yh)}catch(e){console.error(e)}}yh(),bh.exports=gh()});var l0=Dn(gc=>{"use strict";var Fe=Wm(),ig=nt(),tS=Hr();function R(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function lg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xo(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function ag(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function og(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vh(e){if(Xo(e)!==e)throw Error(R(188))}function nS(e){var t=e.alternate;if(!t){if(t=Xo(e),t===null)throw Error(R(188));return t!==e?null:e}for(var n=e,i=t;;){var l=n.return;if(l===null)break;var a=l.alternate;if(a===null){if(i=l.return,i!==null){n=i;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return vh(l),e;if(a===i)return vh(l),t;a=a.sibling}throw Error(R(188))}if(n.return!==i.return)n=l,i=a;else{for(var o=!1,r=l.child;r;){if(r===n){o=!0,n=l,i=a;break}if(r===i){o=!0,i=l,n=a;break}r=r.sibling}if(!o){for(r=a.child;r;){if(r===n){o=!0,n=a,i=l;break}if(r===i){o=!0,i=a,n=l;break}r=r.sibling}if(!o)throw Error(R(189))}}if(n.alternate!==i)throw Error(R(190))}if(n.tag!==3)throw Error(R(188));return n.stateNode.current===n?e:t}function rg(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=rg(e),t!==null)return t;e=e.sibling}return null}function Vt(e,t,n,i,l,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,i,l,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&Vt(e.child,t,n,i,l,a))return!0;e=e.sibling}return!1}function Ol(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Sh(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function ug(e){var t=[null,null],n=Ol(e);return n===null||cg(t,e,n.child,{foundSelf:!1}),t}function cg(e,t,n,i){for(;n!==null;){if(n===t)i.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(i.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&cg(e,t,n.child,i))return!0;n=n.sibling}return!1}function Je(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(R(559))}}var Fl=null,Ys=null;function iS(e,t,n){return e===n?!0:e===t?(Fl=e,!0):!1}function lS(e,t,n){return e===n?(Ys=e,!1):e===t?(Ys!==null&&(Fl=e),!0):!1}function xh(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function qs(e,t,n){for(var i=0,l=e;l;l=n(l))i++;l=0;for(var a=t;a;a=n(a))l++;for(;0<i-l;)e=n(e),i--;for(;0<l-i;)t=n(t),l--;for(;i--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var Re=Object.assign,aS=Symbol.for("react.element"),Ur=Symbol.for("react.transitional.element"),so=Symbol.for("react.portal"),$l=Symbol.for("react.fragment"),sg=Symbol.for("react.strict_mode"),js=Symbol.for("react.profiler"),fg=Symbol.for("react.consumer"),Gn=Symbol.for("react.context"),ed=Symbol.for("react.forward_ref"),Xs=Symbol.for("react.suspense"),Ks=Symbol.for("react.suspense_list"),td=Symbol.for("react.memo"),Oi=Symbol.for("react.lazy");Symbol.for("react.scope");var Qs=Symbol.for("react.activity"),oS=Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var rS=Symbol.for("react.memo_cache_sentinel"),Zs=Symbol.for("react.view_transition"),uS=Symbol.for("react.recoverable"),wh=Symbol.iterator;function lo(e){return e===null||typeof e!="object"?null:(e=wh&&e[wh]||e["@@iterator"],typeof e=="function"?e:null)}var cS=Symbol.for("react.client.reference");function Is(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===cS?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $l:return"Fragment";case js:return"Profiler";case sg:return"StrictMode";case Xs:return"Suspense";case Ks:return"SuspenseList";case Qs:return"Activity";case Zs:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case so:return"Portal";case Gn:return e.displayName||"Context";case fg:return(e._context.displayName||"Context")+".Consumer";case ed:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case td:return t=e.displayName||null,t!==null?t:Is(e.type)||"Memo";case Oi:t=e._payload,e=e._init;try{return Is(e(t))}catch{}}return null}var fo=Array.isArray,Q=ig.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=tS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bl={pending:!1,data:null,method:null,action:null},Js=[],Wl=-1;function Zn(e){return{current:e}}function st(e){0>Wl||(e.current=Js[Wl],Js[Wl]=null,Wl--)}function Oe(e,t){Wl++,Js[Wl]=e.current,e.current=t}var Xn=Zn(null),Ao=Zn(null),Bi=Zn(null),wu=Zn(null);function Mu(e,t){switch(Oe(Bi,t),Oe(Ao,e),Oe(Xn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Up(t),e=Lb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}st(Xn),Oe(Xn,e)}function va(){st(Xn),st(Ao),st(Bi)}function Fs(e){var t=e.memoizedState;t!==null&&(Aa._currentValue=t.memoizedState,Oe(wu,e)),t=Xn.current;var n=Lb(t,e.type);t!==n&&(Oe(Ao,e),Oe(Xn,n))}function Eu(e){Ao.current===e&&(st(Xn),st(Ao)),wu.current===e&&(st(wu),Aa._currentValue=bl)}var fs,Mh;function Ai(e){if(fs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);fs=t&&t[1]||"",Mh=-1<n.stack.indexOf(`
|
|
759
771
|
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
760
|
-
`+
|
|
772
|
+
`+fs+e+Mh}var ds=!1;function ms(e,t){if(!e||ds)return"";ds=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var p=function(){throw Error()};if(Object.defineProperty(p.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(p,[])}catch(S){var s=S}Reflect.construct(e,[],p)}else{try{p.call()}catch(S){s=S}p=!1;try{var h=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),p=!0,new e}finally{p&&(h!==void 0?Object.defineProperty(e.prototype,"props",h):delete e.prototype.props)}}}else{try{throw Error()}catch(S){s=S}(p=e())&&typeof p.catch=="function"&&p.catch(function(){})}}catch(S){if(S&&s&&typeof S.stack=="string")return[S.stack,s.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=i.DetermineComponentFrameRoot(),o=a[0],r=a[1];if(o&&r){var u=o.split(`
|
|
761
773
|
`),c=r.split(`
|
|
762
|
-
`);for(
|
|
763
|
-
`+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=
|
|
774
|
+
`);for(l=i=0;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;for(;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;if(i===u.length||l===c.length)for(i=u.length-1,l=c.length-1;1<=i&&0<=l&&u[i]!==c[l];)l--;for(;1<=i&&0<=l;i--,l--)if(u[i]!==c[l]){if(i!==1||l!==1)do if(i--,l--,0>l||u[i]!==c[l]){var f=`
|
|
775
|
+
`+u[i].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=i&&0<=l);break}}}finally{ds=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ai(n):""}function sS(e,t){switch(e.tag){case 26:case 27:case 5:return Ai(e.type);case 16:return Ai("Lazy");case 13:return e.child!==t&&t!==null?Ai("Suspense Fallback"):Ai("Suspense");case 19:return Ai("SuspenseList");case 0:case 15:return ms(e.type,!1);case 11:return ms(e.type.render,!1);case 1:return ms(e.type,!0);case 31:return Ai("Activity");case 30:return Ai("ViewTransition");default:return""}}function Eh(e){try{var t="",n=null;do t+=sS(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
|
764
776
|
Error generating stack: `+i.message+`
|
|
765
|
-
`+i.stack}}var Vs=Object.prototype.hasOwnProperty,Xf=Je.unstable_scheduleCallback,as=Je.unstable_cancelCallback,W1=Je.unstable_shouldYield,$1=Je.unstable_requestPaint,Ft=Je.unstable_now,eS=Je.unstable_getCurrentPriorityLevel,tg=Je.unstable_ImmediatePriority,ng=Je.unstable_UserBlockingPriority,fu=Je.unstable_NormalPriority,tS=Je.unstable_LowPriority,ig=Je.unstable_IdlePriority,nS=Je.log,iS=Je.unstable_setDisableYieldValue,Pl=null,Jt=null;function Mi(e){if(typeof nS=="function"&&iS(e),Jt&&typeof Jt.setStrictMode=="function")try{Jt.setStrictMode(Pl,e)}catch{}}var Wt=Math.clz32?Math.clz32:lS,aS=Math.log,oS=Math.LN2;function lS(e){return e>>>=0,e===0?32:31-(aS(e)/oS|0)|0}var xr=256,Tr=262144,Nr=4194304;function ia(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ku(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var a=0,o=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~o,i!==0?a=ia(i):(l&=r,l!==0?a=ia(l):n||(n=r&~e,n!==0&&(a=ia(n))))):(r=i&~o,r!==0?a=ia(r):l!==0?a=ia(l):n||(n=i&~e,n!==0&&(a=ia(n)))),a===0?0:t!==0&&t!==a&&(t&o)===0&&(o=a&-a,n=t&-t,o>=n||o===32&&(n&4194048)!==0)?t:a}function Il(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ag(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Wt(n),a=1<<i;t|=e[i],n&=~a}return t}function rS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function og(){var e=Nr;return Nr<<=1,(Nr&62914560)===0&&(Nr=4194304),e}function os(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uS(e,t,n,i,a,o){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=l&~n;0<n;){var f=31-Wt(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var m=s[f];m!==null&&(m.lane&=-536870913)}n&=~p}i!==0&&lg(e,i,0),o!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=o&~(l&~t))}function lg(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function rg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Wt(n),a=1<<i;a&t|e[i]&t&&(e[i]|=t),n&=~a}}function ug(e,t){var n=t&-t;return n=(n&42)!==0?1:Kf(n),(n&(e.suspendedLanes|t))!==0?0:n}function Kf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Qf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function cg(){var e=ge.p;return e!==0?e:(e=window.event,e===void 0?32:qb(e.type))}function mm(e,t){var n=ge.p;try{return ge.p=e,t()}finally{ge.p=n}}var hi=Math.random().toString(36).slice(2),ut="__reactFiber$"+hi,Gt="__reactProps$"+hi,Ao="__reactContainer$"+hi,pm="__reactEvents$"+hi,cS="__reactListeners$"+hi,sS="__reactHandles$"+hi,gm="__reactResources$"+hi,Gl="__reactMarker$"+hi,du="__reactLoad$"+hi;function Pu(e){delete e[ut],delete e[Gt],delete e[cS],delete e[sS]}function la(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Ao]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Dp(e);e!==null;){if(n=e[ut])return n;e=Dp(e)}return t}e=n,n=e.parentNode}return null}function Co(e){if(e=e[ut]||e[Ao]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ol(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(A(33))}function ao(e){var t=e[gm];return t||(t=e[gm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Gl]=!0}function sg(e){e[du]=void 0}var fg=new Set,dg={};function Ea(e,t){go(e,t),go(e+"Capture",t)}function go(e,t){for(dg[e]=t,e=0;e<t.length;e++)fg.add(t[e])}var fS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ym={},bm={};function dS(e){return Vs.call(bm,e)?!0:Vs.call(ym,e)?!1:fS.test(e)?bm[e]=!0:(ym[e]=!0,!1)}var me=!1;function vm(){var e=me;return me=!1,e}function Yr(e,t,n){if(dS(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Mr(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function ti(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hS(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var a=i.get,o=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(l){n=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ys(e){if(!e._valueTracker){var t=hg(e)?"checked":"value";e._valueTracker=hS(e,t,""+e[t])}}function mg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=hg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var mS=/[\n"\\]/g;function cn(e){return e.replace(mS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function qs(e,t,n,i,a,o,l,r){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?l==="number"&&e.value==t?ls(e,Xt(e.value)):ls(e,Xt(t)):n!=null?ls(e,Xt(n)):i!=null&&e.removeAttribute("value"),a==null&&o!=null&&(e.defaultChecked=!!o),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Xt(r):e.removeAttribute("name")}function pg(e,t,n,i,a,o,l,r){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.type=o),t!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||t!=null)){Ys(e);return}n=n!=null?""+Xt(n):"",t=t!=null?""+Xt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??a,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),Ys(e)}function ls(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function oo(e,t,n,i){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Xt(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,i&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function gg(e,t,n){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Xt(n):""}function yg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(A(92));if(al(i)){if(1<i.length)throw Error(A(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Xt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Ys(e)}function yo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var pS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Sm(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||pS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function bg(e,t,n){if(t!=null&&typeof t!="object")throw Error(A(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",me=!0);for(var a in t)i=t[a],t.hasOwnProperty(a)&&n[a]!==i&&(Sm(e,a,i),me=!0)}else for(var o in t)t.hasOwnProperty(o)&&Sm(e,o,t[o])}function Zf(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),yS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function qr(e){return yS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Bn(){}var js=null;function Ff(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Za=null,lo=null;function wm(e){var t=Co(e);if(t&&(e=t.stateNode)){var n=e[Gt]||null;e:switch(e=t.stateNode,t.type){case"input":if(qs(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+cn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=i[Gt]||null;if(!a)throw Error(A(90));qs(i,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&mg(i)}break e;case"textarea":gg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&oo(e,!!n.multiple,t,!1)}}}var rs=!1;function vg(e,t,n){if(rs)return e(t,n);rs=!0;try{var i=e(t);return i}finally{if(rs=!1,(Za!==null||lo!==null)&&(Wu(),Za&&(t=Za,e=lo,lo=Za=null,wm(t),e)))for(t=0;t<e.length;t++)wm(e[t])}}function El(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Gt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(A(231,t,typeof n));return n}var ri=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xs=!1;if(ri)try{Ba={},Object.defineProperty(Ba,"passive",{get:function(){Xs=!0}}),window.addEventListener("test",Ba,Ba),window.removeEventListener("test",Ba,Ba)}catch{Xs=!1}var Ba,Ri=null,Jf=null,jr=null;function Sg(){if(jr)return jr;var e,t=Jf,n=t.length,i,a="value"in Ri?Ri.value:Ri.textContent,o=a.length;for(e=0;e<n&&t[e]===a[e];e++);var l=n-e;for(i=1;i<=l&&t[n-i]===a[o-i];i++);return jr=a.slice(e,1<i?1-i:void 0)}function Xr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Rr(){return!0}function Em(){return!1}function Rt(e){function t(n,i,a,o,l){this._reactName=n,this._targetInst=a,this.type=i,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(o):o[r]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Rr:Em,this.isPropagationStopped=Em,this}return Ne(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Rr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Rr)},persist:function(){},isPersistent:Rr}),t}var Ki={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Iu=Rt(Ki),Vl=Ne({},Ki,{view:0,detail:0}),bS=Rt(Vl),us,cs,Wo,Bu=Ne({},Vl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wo&&(Wo&&e.type==="mousemove"?(us=e.screenX-Wo.screenX,cs=e.screenY-Wo.screenY):cs=us=0,Wo=e),us)},movementY:function(e){return"movementY"in e?e.movementY:cs}}),xm=Rt(Bu),vS=Ne({},Bu,{dataTransfer:0}),SS=Rt(vS),wS=Ne({},Vl,{relatedTarget:0}),ss=Rt(wS),ES=Ne({},Ki,{animationName:0,elapsedTime:0,pseudoElement:0}),xS=Rt(ES),TS=Ne({},Ki,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NS=Rt(TS),MS=Ne({},Ki,{data:0}),Tm=Rt(MS),RS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},AS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},CS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=CS[e])?!!t[e]:!1}function Wf(){return OS}var LS=Ne({},Vl,{key:function(e){if(e.key){var t=RS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?AS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wf,charCode:function(e){return e.type==="keypress"?Xr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zS=Rt(LS),DS=Ne({},Bu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nm=Rt(DS),HS=Ne({},Ki,{submitter:0}),_S=Rt(HS),US=Ne({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wf}),kS=Rt(US),PS=Ne({},Ki,{propertyName:0,elapsedTime:0,pseudoElement:0}),IS=Rt(PS),BS=Ne({},Bu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),GS=Rt(BS),VS=Ne({},Ki,{newState:0,oldState:0,source:0}),YS=Rt(VS),qS=[9,13,27,32],$f=ri&&"CompositionEvent"in window,ul=null;ri&&"documentMode"in document&&(ul=document.documentMode);var jS=ri&&"TextEvent"in window&&!ul,wg=ri&&(!$f||ul&&8<ul&&11>=ul),Mm=" ",Rm=!1;function Eg(e,t){switch(e){case"keyup":return qS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fa=!1;function XS(e,t){switch(e){case"compositionend":return xg(t);case"keypress":return t.which!==32?null:(Rm=!0,Mm);case"textInput":return e=t.data,e===Mm&&Rm?null:e;default:return null}}function KS(e,t){if(Fa)return e==="compositionend"||!$f&&Eg(e,t)?(e=Sg(),jr=Jf=Ri=null,Fa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wg&&t.locale!=="ko"?null:t.data;default:return null}}var QS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Am(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!QS[e.type]:t==="textarea"}function Tg(e,t,n,i){Za?lo?lo.push(i):lo=[i]:Za=i,t=Hu(t,"onChange"),0<t.length&&(n=new Iu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var cl=null,xl=null;function ZS(e){vb(e,0)}function Gu(e){var t=ol(e);if(mg(t))return e}function Cm(e,t){if(e==="change")return t}var Ng=!1;ri&&(ri?(Cr="oninput"in document,Cr||(fs=document.createElement("div"),fs.setAttribute("oninput","return;"),Cr=typeof fs.oninput=="function"),Ar=Cr):Ar=!1,Ng=Ar&&(!document.documentMode||9<document.documentMode));var Ar,Cr,fs;function Om(){cl&&(cl.detachEvent("onpropertychange",Mg),xl=cl=null)}function Mg(e){if(e.propertyName==="value"&&Gu(xl)){var t=[];Tg(t,xl,e,Ff(e)),vg(ZS,t)}}function FS(e,t,n){e==="focusin"?(Om(),cl=t,xl=n,cl.attachEvent("onpropertychange",Mg)):e==="focusout"&&Om()}function JS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Gu(xl)}function WS(e,t){if(e==="click")return Gu(t)}function $S(e,t){if(e==="input"||e==="change")return Gu(t)}function ew(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:ew;function Tl(e,t){if(en(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var a=n[i];if(!Vs.call(t,a)||!en(e[a],t[a]))return!1}return!0}function Ks(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zm(e,t){var n=Lm(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Lm(n)}}function Rg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Rg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ag(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ks(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ks(e.document)}return t}function ed(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var tw=ri&&"documentMode"in document&&11>=document.documentMode,Ja=null,Qs=null,sl=null,Zs=!1;function Dm(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zs||Ja==null||Ja!==Ks(i)||(i=Ja,"selectionStart"in i&&ed(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),sl&&Tl(sl,i)||(sl=i,i=Hu(Qs,"onSelect"),0<i.length&&(t=new Iu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=Ja)))}function ta(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wa={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionrun:ta("Transition","TransitionRun"),transitionstart:ta("Transition","TransitionStart"),transitioncancel:ta("Transition","TransitionCancel"),transitionend:ta("Transition","TransitionEnd")},ds={},Cg={};ri&&(Cg=document.createElement("div").style,"AnimationEvent"in window||(delete Wa.animationend.animation,delete Wa.animationiteration.animation,delete Wa.animationstart.animation),"TransitionEvent"in window||delete Wa.transitionend.transition);function xa(e){if(ds[e])return ds[e];if(!Wa[e])return e;var t=Wa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Cg)return ds[e]=t[n];return e}var Og=xa("animationend"),Lg=xa("animationiteration"),zg=xa("animationstart"),nw=xa("transitionrun"),iw=xa("transitionstart"),aw=xa("transitioncancel"),Dg=xa("transitionend"),Hg=new Map,Fs="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Fs.push("scrollEnd");function En(e,t){Hg.set(e,t),Ea(t,[e])}var ow=0;function ui(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=wn.identifierPrefix;var n=ow++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Hm(e){if(e==null||typeof e=="string")return e;var t=null,n=mo;if(n!==null)for(var i=0;i<n.length;i++){var a=e[n[i]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function mi(e,t){return e=Hm(e),t=Hm(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var hu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],$a=0,td=0;function Vu(){for(var e=$a,t=td=$a=0;t<e;){var n=ln[t];ln[t++]=null;var i=ln[t];ln[t++]=null;var a=ln[t];ln[t++]=null;var o=ln[t];if(ln[t++]=null,i!==null&&a!==null){var l=i.pending;l===null?a.next=a:(a.next=l.next,l.next=a),i.pending=a}o!==0&&_g(n,a,o)}}function Yu(e,t,n,i){ln[$a++]=e,ln[$a++]=t,ln[$a++]=n,ln[$a++]=i,td|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function nd(e,t,n,i){return Yu(e,t,n,i),mu(e)}function Ta(e,t){return Yu(e,null,null,t),mu(e)}function _g(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var a=!1,o=e.return;o!==null;)o.childLanes|=n,i=o.alternate,i!==null&&(i.childLanes|=n),o.tag===22&&(e=o.stateNode,e===null||e._visibility&1||(a=!0)),e=o,o=o.return;return e.tag===3?(o=e.stateNode,a&&t!==null&&(a=31-Wt(n),e=o.hiddenUpdates,i=e[a],i===null?e[a]=[t]:i.push(t),t.lane=n|536870912),o):null}function mu(e){if(50<Sl)throw Sl=0,nu=null,Error(A(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var eo={};function lw(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new lw(e,t,n,i)}function id(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oi(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Ug(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Kr(e,t,n,i,a,o){var l=0;if(i=e,typeof i=="function")id(i)&&(l=1);else if(typeof i=="string")l=zE(e,n,Yn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case ks:return e=Pt(31,n,t,a),e.elementType=ks,e.lanes=o,e;case Ka:return ca(n.children,a,o,t);case $p:l=8,a|=24;break;case Hs:return e=Pt(12,n,t,a|2),e.elementType=Hs,e.lanes=o,e;case _s:return e=Pt(13,n,t,a),e.elementType=_s,e.lanes=o,e;case Us:return e=Pt(19,n,t,a),e.elementType=Us,e.lanes=o,e;case K1:case Ps:return e=a|32,e=Pt(30,n,t,e),e.elementType=Ps,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case In:l=10;break e;case eg:l=9;break e;case qf:l=11;break e;case jf:l=14;break e;case xi:l=16,i=null;break e}l=29,n=Error(A(130,e===null?"null":typeof e,"")),i=null}return t=Pt(l,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function ca(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function hs(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function kg(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function ms(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _m=new WeakMap;function sn(e,t){if(typeof e=="object"&&e!==null){var n=_m.get(e);return n!==void 0?n:(t={value:e,source:t,stack:hm(t)},_m.set(e,t),t)}return{value:e,source:t,stack:hm(t)}}var to=[],no=0,pu=null,Nl=0,rn=[],un=0,Vi=null,Gn=1,Vn="";function ii(e,t){to[no++]=Nl,to[no++]=pu,pu=e,Nl=t}function Pg(e,t,n){rn[un++]=Gn,rn[un++]=Vn,rn[un++]=Vi,Vi=e;var i=Gn;e=Vn;var a=32-Wt(i)-1;i&=~(1<<a),n+=1;var o=32-Wt(t)+a;if(30<o){var l=a-a%5;o=(i&(1<<l)-1).toString(32),i>>=l,a-=l,Gn=1<<32-Wt(t)+a|n<<a|i,Vn=o+e}else Gn=1<<o|n<<a|i,Vn=e}function qu(e){e.return!==null&&(ii(e,1),Pg(e,1,0))}function ad(e){for(;e===pu;)pu=to[--no],to[no]=null,Nl=to[--no],to[no]=null;for(;e===Vi;)Vi=rn[--un],rn[un]=null,Vn=rn[--un],rn[un]=null,Gn=rn[--un],rn[un]=null}function Ig(e,t){rn[un++]=Gn,rn[un++]=Vn,rn[un++]=Vi,Gn=t.id,Vn=t.overflow,Vi=e}var ot=null,Ce=null,oe=!1,Di=null,fn=!1,Js=Error(A(519));function Yi(e){var t=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ml(sn(t,e)),Js}function Um(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Gt]=i,n){case"dialog":re("cancel",t),re("close",t);break;case"iframe":case"object":case"embed":re("load",t);break;case"video":case"audio":for(n=0;n<Ol.length;n++)re(Ol[n],t);break;case"source":re("error",t);break;case"img":case"image":case"link":re("error",t),re("load",t);break;case"details":re("toggle",t);break;case"input":re("invalid",t),pg(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":re("invalid",t);break;case"textarea":re("invalid",t),yg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||wb(t.textContent,n)?(i.popover!=null&&(re("beforetoggle",t),re("toggle",t)),i.onScroll!=null&&re("scroll",t),i.onScrollEnd!=null&&re("scrollend",t),i.onClick!=null&&(t.onclick=Bn),t=!0):t=!1,t||Yi(e,!0)}function gu(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:fn=!1;return;case 27:case 3:fn=!0;return;default:ot=ot.return}}function Ga(e){if(e!==ot)return!1;if(!oe)return gu(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Uf(e.type,e.memoizedProps)),n=!n),n&&Ce&&Yi(e),gu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Ce=zp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));Ce=zp(e)}else t===27?(t=Ce,Qi(e.type)?(e=Bf,Bf=null,Ce=e):Ce=t):Ce=ot?dn(e.stateNode.nextSibling):null;return!0}function ha(){Ce=ot=null,oe=!1}function ps(){var e=Di;return e!==null&&(Ut===null?Ut=e:Ut.push.apply(Ut,e),Di=null),e}function Ml(e){Di===null?Di=[e]:Di.push(e)}var Ws=Xn(null),Na=null,ai=null;function Ai(e,t,n){Oe(Ws,t._currentValue),t._currentValue=n}function li(e){e._currentValue=Ws.current,st(Ws)}function Qr(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function $s(e,t,n,i){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var l=a.child;o=o.firstContext;e:for(;o!==null;){var r=o;o=a;for(var u=0;u<t.length;u++)if(r.context===t[u]){o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),Qr(o.return,n,e),i||(l=null);break e}o=r.next}}else if(a.tag===18){if(l=a.return,l===null)throw Error(A(341));l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),Qr(l,n,e),l=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Qr(a.return,n,e),l=a.child,l=l!==null?l.sibling:null):l=a.child;if(l!==null)l.return=a;else for(l=a;l!==null;){if(l===e){l=null;break}if(a=l.sibling,a!==null){a.return=l.return,l=a;break}l=l.return}a=l}}function ma(e,t,n,i){e=null;for(var a=t,o=!1;a!==null;){if(!o){if((a.flags&524288)!==0)o=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var l=a.alternate;if(l===null)throw Error(A(387));if(l=l.memoizedProps,l!==null){var r=a.type;en(a.pendingProps.value,l.value)||(e!==null?e.push(r):e=[r])}}else if(a===uu.current){if(l=a.alternate,l===null)throw Error(A(387));l.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(No):e=[No])}a=a.return}return e!==null&&$s(t,e,n,i),t.flags|=262144,e!==null}function yu(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function pa(e){Na=e,ai=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Bg(Na,e)}function Or(e,t){return Na===null&&pa(e),Bg(e,t)}function Bg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ai===null){if(e===null)throw Error(A(308));ai=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ai=ai.next=t;return n}var rw=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},uw=Je.unstable_scheduleCallback,cw=Je.unstable_NormalPriority,Xe={$$typeof:In,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function od(){return{controller:new rw,data:new Map,refCount:0}}function Yl(e){e.refCount--,e.refCount===0&&uw(cw,function(){e.controller.abort()})}function km(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var ll=null;function sw(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var fl=null,ef=0,ga=0,ro=null;function fw(e,t){if(fl===null){var n=fl=[];ef=0,ga=Dd(),ro={status:"pending",value:void 0,then:function(i){n.push(i)}}}return ef++,t.then(Pm,Pm),t}function Pm(){if(--ef===0&&(ll=null,fl!==null)){ro!==null&&(ro.status="fulfilled");var e=fl;fl=null,ga=0,ro=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function dw(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(i.status="rejected",i.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),i}var Im=Q.S;Q.S=function(e,t){if(ab=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&fw(e,t),ll!==null)for(var n=Eo;n!==null;)km(n,ll),n=n.next;if(n=e.types,n!==null){for(var i=Eo;i!==null;)km(i,n),i=i.next;if(ga!==0){i=ll,i===null&&(i=ll=[]);for(var a=0;a<n.length;a++){var o=n[a];i.indexOf(o)===-1&&i.push(o)}}}Im!==null&&Im(e,t)};var sa=Xn(null);function ld(){var e=sa.current;return e!==null?e:Te.pooledCache}function Zr(e,t){t===null?Oe(sa,sa.current):Oe(sa,t.pool)}function Gg(){var e=ld();return e===null?null:{parent:Xe._currentValue,pool:e}}var Oo=Error(A(460)),rd=Error(A(474)),ju=Error(A(542)),bu={then:function(){}};function Bm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Vg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Bn,Bn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vm(e),e===void 0&&!("reason"in t)?Error(A(600)):e;default:if(typeof t.status=="string")t.then(Bn,Bn);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(A(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=i}},function(i){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vm(e),e}throw fa=t,Oo}}function aa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(fa=n,Oo):n}}var fa=null;function Gm(){if(fa===null)throw Error(A(459));var e=fa;return fa=null,e}function Vm(e){if(e===Oo||e===ju)throw Error(A(483))}var uo=null,Rl=0;function Lr(e){var t=Rl;return Rl+=1,uo===null&&(uo=[]),Vg(uo,e,t)}function Si(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function zr(e,t){throw t.$$typeof===X1?Error(A(525)):(e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Yg(e){function t(d,h){if(e){var g=d.deletions;g===null?(d.deletions=[h],d.flags|=16):g.push(h)}}function n(d,h){if(!e)return null;for(;h!==null;)t(d,h),h=h.sibling;return null}function i(d){for(var h=new Map;d!==null;)d.key===null?h.set(d.index,d):h.set(d.key,d),d=d.sibling;return h}function a(d,h){return d=oi(d,h),d.index=0,d.sibling=null,d}function o(d,h,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<h?(d.flags|=2,h):g):(d.flags|=134217730,h)):(d.flags|=1048576,h)}function l(d){return e&&d.alternate===null&&(d.flags|=134217730),d}function r(d,h,g,S){return h===null||h.tag!==6?(h=hs(g,d.mode,S),h.return=d,h):(h=a(h,g),h.return=d,h)}function u(d,h,g,S){var x=g.type;return x===Ka?(d=f(d,h,g.props.children,S,g.key),Si(d,g),d):h!==null&&(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&aa(x)===h.type)?(h=a(h,g.props),Si(h,g),h.return=d,h):(h=Kr(g.type,g.key,g.props,null,d.mode,S),Si(h,g),h.return=d,h)}function c(d,h,g,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=ms(g,d.mode,S),h.return=d,h):(h=a(h,g.children||[]),h.return=d,h)}function f(d,h,g,S,x){return h===null||h.tag!==7?(h=ca(g,d.mode,S,x),h.return=d,h):(h=a(h,g),h.return=d,h)}function p(d,h,g){if(typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint")return h=hs(""+h,d.mode,g),h.return=d,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Er:return g=Kr(h.type,h.key,h.props,null,d.mode,g),Si(g,h),g.return=d,g;case il:return h=ms(h,d.mode,g),h.return=d,h;case xi:return h=aa(h),p(d,h,g)}if(al(h)||Jo(h))return h=ca(h,d.mode,g,null),h.return=d,h;if(typeof h.then=="function")return p(d,Lr(h),g);if(h.$$typeof===In)return p(d,Or(d,h),g);zr(d,h)}return null}function s(d,h,g,S){var x=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return x!==null?null:r(d,h,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Er:return g.key===x?u(d,h,g,S):null;case il:return g.key===x?c(d,h,g,S):null;case xi:return g=aa(g),s(d,h,g,S)}if(al(g)||Jo(g))return x!==null?null:f(d,h,g,S,null);if(typeof g.then=="function")return s(d,h,Lr(g),S);if(g.$$typeof===In)return s(d,h,Or(d,g),S);zr(d,g)}return null}function m(d,h,g,S,x){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return d=d.get(g)||null,r(h,d,""+S,x);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Er:return d=d.get(S.key===null?g:S.key)||null,u(h,d,S,x);case il:return d=d.get(S.key===null?g:S.key)||null,c(h,d,S,x);case xi:return S=aa(S),m(d,h,g,S,x)}if(al(S)||Jo(S))return d=d.get(g)||null,f(h,d,S,x,null);if(typeof S.then=="function")return m(d,h,g,Lr(S),x);if(S.$$typeof===In)return m(d,h,g,Or(h,S),x);zr(h,S)}return null}function y(d,h,g,S){for(var x=null,M=null,E=h,N=h=0,R=null;E!==null&&N<g.length;N++){E.index>N?(R=E,E=null):R=E.sibling;var O=s(d,E,g[N],S);if(O===null){E===null&&(E=R);break}e&&E&&O.alternate===null&&t(d,E),h=o(O,h,N),M===null?x=O:M.sibling=O,M=O,E=R}if(N===g.length)return n(d,E),oe&&ii(d,N),x;if(E===null){for(;N<g.length;N++)E=p(d,g[N],S),E!==null&&(h=o(E,h,N),M===null?x=E:M.sibling=E,M=E);return oe&&ii(d,N),x}for(E=i(E);N<g.length;N++)R=m(E,d,N,g[N],S),R!==null&&(e&&(O=R.alternate,O!==null&&E.delete(O.key===null?N:O.key)),h=o(R,h,N),M===null?x=R:M.sibling=R,M=R);return e&&E.forEach(function(D){return t(d,D)}),oe&&ii(d,N),x}function b(d,h,g,S){if(g==null)throw Error(A(151));for(var x=null,M=null,E=h,N=h=0,R=null,O=g.next();E!==null&&!O.done;N++,O=g.next()){E.index>N?(R=E,E=null):R=E.sibling;var D=s(d,E,O.value,S);if(D===null){E===null&&(E=R);break}e&&E&&D.alternate===null&&t(d,E),h=o(D,h,N),M===null?x=D:M.sibling=D,M=D,E=R}if(O.done)return n(d,E),oe&&ii(d,N),x;if(E===null){for(;!O.done;N++,O=g.next())O=p(d,O.value,S),O!==null&&(h=o(O,h,N),M===null?x=O:M.sibling=O,M=O);return oe&&ii(d,N),x}for(E=i(E);!O.done;N++,O=g.next())O=m(E,d,N,O.value,S),O!==null&&(e&&(R=O.alternate,R!==null&&E.delete(R.key===null?N:R.key)),h=o(O,h,N),M===null?x=O:M.sibling=O,M=O);return e&&E.forEach(function(I){return t(d,I)}),oe&&ii(d,N),x}function w(d,h,g,S){if(typeof g=="object"&&g!==null&&g.type===Ka&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Er:e:{for(var x=g.key;h!==null;){if(h.key===x){if(x=g.type,x===Ka){if(h.tag===7){n(d,h.sibling),S=a(h,g.props.children),Si(S,g),S.return=d,d=S;break e}}else if(h.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===xi&&aa(x)===h.type){n(d,h.sibling),S=a(h,g.props),Si(S,g),S.return=d,d=S;break e}n(d,h);break}else t(d,h);h=h.sibling}g.type===Ka?(S=ca(g.props.children,d.mode,S,g.key),Si(S,g),S.return=d,d=S):(S=Kr(g.type,g.key,g.props,null,d.mode,S),Si(S,g),S.return=d,d=S)}return l(d);case il:e:{for(x=g.key;h!==null;){if(h.key===x)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){n(d,h.sibling),S=a(h,g.children||[]),S.return=d,d=S;break e}else{n(d,h);break}else t(d,h);h=h.sibling}S=ms(g,d.mode,S),S.return=d,d=S}return l(d);case xi:return g=aa(g),w(d,h,g,S)}if(al(g))return y(d,h,g,S);if(Jo(g)){if(x=Jo(g),typeof x!="function")throw Error(A(150));return g=x.call(g),b(d,h,g,S)}if(typeof g.then=="function")return w(d,h,Lr(g),S);if(g.$$typeof===In)return w(d,h,Or(d,g),S);zr(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,h!==null&&h.tag===6?(n(d,h.sibling),S=a(h,g),S.return=d,d=S):(n(d,h),S=hs(g,d.mode,S),S.return=d,d=S),l(d)):n(d,h)}return function(d,h,g,S){try{Rl=0;var x=w(d,h,g,S);return uo=null,x}catch(E){if(E===Oo||E===ju)throw E;var M=Pt(29,E,null,d.mode);return M.lanes=S,M.return=d,M}finally{}}}var ya=Yg(!0),qg=Yg(!1),Ti=!1;function ud(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Hi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _i(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(pe&2)!==0){var a=i.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),i.pending=t,t=mu(e),_g(e,null,n),t}return Yu(e,i,t,n),mu(e)}function dl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,rg(e,n)}}function gs(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var a=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?a=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?a=o=t:o=o.next=t}else a=o=t;n={baseState:i.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var nf=!1;function hl(){if(nf){var e=ro;if(e!==null)throw e}}function ml(e,t,n,i){nf=!1;var a=e.updateQueue;Ti=!1;var o=a.firstBaseUpdate,l=a.lastBaseUpdate,r=a.shared.pending;if(r!==null){a.shared.pending=null;var u=r,c=u.next;u.next=null,l===null?o=c:l.next=c,l=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==l&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(o!==null){var p=a.baseState;l=0,f=c=u=null,r=o;do{var s=r.lane&-536870913,m=s!==r.lane;if(m?(se&s)===s:(i&s)===s){s!==0&&s===ga&&(nf=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var y=e,b=r;s=t;var w=n;switch(b.tag){case 1:if(y=b.payload,typeof y=="function"){p=y.call(w,p,s);break e}p=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,s=typeof y=="function"?y.call(w,p,s):y,s==null)break e;p=Ne({},p,s);break e;case 2:Ti=!0}}s=r.callback,s!==null&&(e.flags|=64,m&&(e.flags|=8192),m=a.callbacks,m===null?a.callbacks=[s]:m.push(s))}else m={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=m,u=p):f=f.next=m,l|=s;if(r=r.next,r===null){if(r=a.shared.pending,r===null)break;m=r,r=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(!0);f===null&&(u=p),a.baseState=u,a.firstBaseUpdate=c,a.lastBaseUpdate=f,o===null&&(a.shared.lanes=0),Xi|=l,e.lanes=l,e.memoizedState=p}}function jg(e,t){if(typeof e!="function")throw Error(A(191,e));e.call(t)}function Xg(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)jg(n[e],t)}var qi=Xn(null),vu=Xn(0);function Ym(e,t){e=di,Oe(vu,e),Oe(qi,t),di=e|t.baseLanes}function af(){Oe(vu,di),Oe(qi,qi.current)}function cd(){di=vu.current,st(qi),st(vu)}var ht=Xn(null),bt=null;function Ui(e){var t=e.alternate;Oe(ft,ft.current&1),Oe(ht,e),bt===null&&(t===null||qi.current!==null||t.memoizedState!==null)&&(bt=e)}function of(e){Oe(ft,ft.current),Oe(ht,e),bt===null&&(bt=e)}function Kg(e){e.tag===22?(Oe(ft,ft.current),Oe(ht,e),bt===null&&(bt=e)):ki()}function ki(){Oe(ft,ft.current),Oe(ht,ht.current)}function Kt(e){st(ht),bt===e&&(bt=null),st(ft)}var ft=Xn(0);function Al(e,t){Oe(ht,ht.current),Oe(ft,t)}function sd(e){st(ft),st(ht),bt===e&&(bt=null)}function Su(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||If(n)||kd(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ci=0,ee=null,xe=null,je=null,wu=!1,co=!1,ba=!1,Eu=0,Cl=0,so=null,hw=0;function Be(){throw Error(A(321))}function fd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!en(e[n],t[n]))return!1;return!0}function dd(e,t,n,i,a,o){return ci=o,ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?Ty:Ny,ba=!1,o=n(i,a),ba=!1,co&&(o=Zg(t,n,i,a)),Qg(e),o}function Qg(e){Q.H=xu;var t=xe!==null&&xe.next!==null;if(ci=0,je=xe=ee=null,wu=!1,Cl=0,so=null,t)throw Error(A(300));e===null||Ke||(e=e.dependencies,e!==null&&yu(e)&&(Ke=!0))}function Zg(e,t,n,i){ee=e;var a=0;do{if(co&&(so=null),Cl=0,co=!1,25<=a)throw Error(A(301));if(a+=1,je=xe=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}Q.H=ww,o=t(n,i)}while(co);return o}function mw(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?ql(t):t,e=e.useState()[0],(xe!==null?xe.memoizedState:null)!==e&&(ee.flags|=1024),t}function hd(){var e=Eu!==0;return Eu=0,e}function md(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function pd(e){if(wu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wu=!1}ci=0,je=xe=ee=null,co=!1,Cl=Eu=0,so=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return je===null?ee.memoizedState=je=e:je=je.next=e,je}function Ve(){if(xe===null){var e=ee.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=je===null?ee.memoizedState:je.next;if(t!==null)je=t,xe=e;else{if(e===null)throw ee.alternate===null?Error(A(467)):Error(A(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},je===null?ee.memoizedState=je=e:je=je.next=e}return je}function Xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ql(e){var t=Cl;return Cl+=1,so===null&&(so=[]),e=Vg(so,e,t),t=ee,(je===null?t.memoizedState:je.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?Ty:Ny),e}function Ku(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ql(e);if(e.$$typeof===Z1)return;if(e.$$typeof===In)return ct(e)}throw Error(A(438,String(e)))}function gd(e){var t=null,n=ee.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ee.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Xu(),ee.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=Q1;return t.index++,n}function si(e,t){return typeof t=="function"?t(e):t}function Fr(e){var t=Ve();return yd(t,xe,e)}function yd(e,t,n){var i=e.queue;if(i===null)throw Error(A(311));i.lastRenderedReducer=n;var a=e.baseQueue,o=i.pending;if(o!==null){if(a!==null){var l=a.next;a.next=o.next,o.next=l}t.baseQueue=a=o,i.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var r=l=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(se&p)===p:(ci&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===ga&&(f=!0);else if((ci&s)===s){c=c.next,s===ga&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,l=o):u=u.next=p,ee.lanes|=s,Xi|=s;p=c.action,ba&&n(o,p),o=c.hasEagerState?c.eagerState:n(o,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,l=o):u=u.next=s,ee.lanes|=p,Xi|=p;c=c.next}while(c!==null&&c!==t);if(u===null?l=o:u.next=r,!en(o,e.memoizedState)&&(Ke=!0,f&&(n=ro,n!==null)))throw n;e.memoizedState=o,e.baseState=l,e.baseQueue=u,i.lastRenderedState=o}return a===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ys(e){var t=Ve(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var l=a=a.next;do o=e(o,l.action),l=l.next;while(l!==a);en(o,t.memoizedState)||(Ke=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Fg(e,t,n){var i=ee,a=Ve(),o=oe;if(o){if(n===void 0)throw Error(A(407));n=n()}else n=t();var l=!en((xe||a).memoizedState,n);if(l&&(a.memoizedState=n,Ke=!0),a=a.queue,bd($g.bind(null,i,a,e),[e]),e=a.getSnapshot!==t||l||je!==null&&(je.memoizedState.tag&1)!==0,bo(e?9:8,{destroy:void 0},Wg.bind(null,i,a,n,t),null),e){if(i.flags|=2048,Te===null)throw Error(A(349));o||(ci&127)!==0||Jg(i,t,n)}return n}function Jg(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ee.updateQueue,t===null?(t=Xu(),ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wg(e,t,n,i){t.value=n,t.getSnapshot=i,ey(t)&&ty(e)}function $g(e,t,n){return n(function(){ey(t)&&ty(e)})}function ey(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!en(e,n)}catch{return!0}}function ty(e){var t=Ta(e,2);t!==null&&It(t,e,2)}function lf(e){var t=Mt();if(typeof e=="function"){var n=e;if(e=n(),ba){Mi(!0);try{n()}finally{Mi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:e},t}function ny(e,t,n,i){return e.baseState=n,yd(e,xe,typeof i=="function"?i:si)}function pw(e,t,n,i,a){if(Zu(e))throw Error(A(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){o.listeners.push(l)}};Q.T!==null?n(!0):o.isTransition=!1,i(o),n=t.pending,n===null?(o.next=t.pending=o,iy(t,o)):(o.next=n.next,t.pending=n.next=o)}}function iy(e,t){var n=t.action,i=t.payload,a=e.state;if(t.isTransition){var o=Q.T,l={};l.types=o!==null?o.types:null,Q.T=l;try{var r=n(a,i),u=Q.S;u!==null&&u(l,r),qm(e,t,r)}catch(c){rf(e,t,c)}finally{o!==null&&l.types!==null&&(o.types=l.types),Q.T=o}}else try{o=n(a,i),qm(e,t,o)}catch(c){rf(e,t,c)}}function qm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){jm(e,t,i)},function(i){return rf(e,t,i)}):jm(e,t,n)}function jm(e,t,n){t.status="fulfilled",t.value=n,ay(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,iy(e,n)))}function rf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,ay(t),t=t.next;while(t!==i)}e.action=null}function ay(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oy(e,t){return t}function Xm(e,t){if(oe){var n=Te.formState;if(n!==null){e:{var i=ee;if(oe){if(Ce){t:{for(var a=Ce,o=fn;a.nodeType!==8;){if(!o){a=null;break t}if(a=dn(a.nextSibling),a===null){a=null;break t}}o=a.data,a=o==="F!"||o==="F"?a:null}if(a){Ce=dn(a.nextSibling),i=a.data==="F!";break e}}Yi(i)}i=!1}i&&(t=n[0])}}return n=Mt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oy,lastRenderedState:t},n.queue=i,n=wy.bind(null,ee,i),i.dispatch=n,i=lf(!1),o=Ed.bind(null,ee,!1,i.queue),i=Mt(),a={state:t,dispatch:null,action:e,pending:null},i.queue=a,n=pw.bind(null,ee,a,o,n),a.dispatch=n,i.memoizedState=e,[t,n,!1]}function Km(e){var t=Ve();return ly(t,xe,e)}function ly(e,t,n){if(t=yd(e,t,oy)[0],e=Fr(si)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ql(t)}catch(l){throw l===Oo?ju:l}else i=t;t=Ve();var a=t.queue,o=a.dispatch;return n!==t.memoizedState&&(ee.flags|=2048,bo(9,{destroy:void 0},gw.bind(null,a,n),null)),[i,o,e]}function gw(e,t){e.action=t}function Qm(e){var t=Ve(),n=xe;if(n!==null)return ly(t,n,e);Ve(),t=t.memoizedState,n=Ve();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function bo(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ee.updateQueue,t===null&&(t=Xu(),ee.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function ry(){return Ve().memoizedState}function Jr(e,t,n,i){var a=Mt();ee.flags|=e,a.memoizedState=bo(1|t,{destroy:void 0},n,i===void 0?null:i)}function Qu(e,t,n,i){var a=Ve();i=i===void 0?null:i;var o=a.memoizedState.inst;xe!==null&&i!==null&&fd(i,xe.memoizedState.deps)?a.memoizedState=bo(t,o,n,i):(ee.flags|=e,a.memoizedState=bo(1|t,o,n,i))}function Zm(e,t){Jr(8390656,8,e,t)}function bd(e,t){Qu(2048,8,e,t)}function yw(e){ee.flags|=4;var t=ee.updateQueue;if(t===null)t=Xu(),ee.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function uy(e){var t=Ve().memoizedState;return yw({ref:t,nextImpl:e}),function(){if((pe&2)!==0)throw Error(A(440));return t.impl.apply(void 0,arguments)}}function cy(e,t){return Qu(4,2,e,t)}function sy(e,t){return Qu(4,4,e,t)}function fy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dy(e,t,n){n=n!=null?n.concat([e]):null,Qu(4,4,fy.bind(null,t,e),n)}function vd(){}function hy(e,t){var n=Ve();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&fd(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function my(e,t){var n=Ve();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&fd(t,i[1]))return i[0];if(i=e(),ba){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[i,t],i}function Sd(e,t,n){return n===void 0||(ci&1073741824)!==0&&(se&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=lb(),ee.lanes|=e,Xi|=e,n)}function py(e,t,n,i){return en(n,t)?n:qi.current!==null?(e=Sd(e,n,i),en(e,t)||(Ke=!0),e):(ci&106)===0||(ci&1073741824)!==0&&(se&261930)===0?(Ke=!0,e.memoizedState=n):(e=lb(),ee.lanes|=e,Xi|=e,t)}function gy(e,t,n,i,a){var o=ge.p;ge.p=o!==0&&8>o?o:8;var l=Q.T,r={};r.types=l!==null?l.types:null,Q.T=r,Ed(e,!1,t,n);try{var u=a(),c=Q.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=dw(u,i);pl(e,t,f,$t(e))}else pl(e,t,i,$t(e))}catch(p){pl(e,t,{then:function(){},status:"rejected",reason:p},$t())}finally{ge.p=o,l!==null&&r.types!==null&&(l.types=r.types),Q.T=l}}function bw(){}function uf(e,t,n,i){if(e.tag!==5)throw Error(A(476));var a=yy(e).queue;gy(e,a,t,ua,n===null?bw:function(){return by(e),n(i)})}function yy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ua,baseState:ua,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:ua},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function by(e){var t=yy(e);t.next===null&&(t=e.alternate.memoizedState),pl(e,t.next.queue,{},$t())}function wd(){return ct(No)}function vy(){return Ve().memoizedState}function Sy(){return Ve().memoizedState}function vw(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$t();e=Hi(n);var i=_i(t,e,n);i!==null&&(It(i,t,n),dl(i,t,n)),t={cache:od()},e.payload=t;return}t=t.return}}function Sw(e,t,n){var i=$t();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Zu(e)?Ey(t,n):(n=nd(e,t,n,i),n!==null&&(It(n,e,i),xy(n,t,i)))}function wy(e,t,n){var i=$t();pl(e,t,n,i)}function pl(e,t,n,i){var a={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zu(e))Ey(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,r=o(l,n);if(a.hasEagerState=!0,a.eagerState=r,en(r,l))return Yu(e,t,a,0),Te===null&&Vu(),!1}catch{}finally{}if(n=nd(e,t,a,i),n!==null)return It(n,e,i),xy(n,t,i),!0}return!1}function Ed(e,t,n,i){if(i={lane:2,revertLane:Dd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Zu(e)){if(t)throw Error(A(479))}else t=nd(e,n,i,2),t!==null&&It(t,e,2)}function Zu(e){var t=e.alternate;return e===ee||t!==null&&t===ee}function Ey(e,t){co=wu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xy(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,rg(e,n)}}var xu={readContext:ct,use:Ku,useCallback:Be,useContext:Be,useEffect:Be,useImperativeHandle:Be,useLayoutEffect:Be,useInsertionEffect:Be,useMemo:Be,useReducer:Be,useRef:Be,useState:Be,useDebugValue:Be,useDeferredValue:Be,useTransition:Be,useSyncExternalStore:Be,useId:Be,useHostTransitionStatus:Be,useFormState:Be,useActionState:Be,useOptimistic:Be,useMemoCache:Be,useCacheRefresh:Be,useEffectEvent:Be},Ty={readContext:ct,use:Ku,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:Zm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Jr(4194308,4,fy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jr(4194308,4,e,t)},useInsertionEffect:function(e,t){Jr(4,2,e,t)},useMemo:function(e,t){var n=Mt();t=t===void 0?null:t;var i=e();if(ba){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=Mt();if(n!==void 0){var a=n(t);if(ba){Mi(!0);try{n(t)}finally{Mi(!1)}}}else a=t;return i.memoizedState=i.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},i.queue=e,e=e.dispatch=Sw.bind(null,ee,e),[i.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=lf(e);var t=e.queue,n=wy.bind(null,ee,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vd,useDeferredValue:function(e,t){var n=Mt();return Sd(n,e,t)},useTransition:function(){var e=lf(!1);return e=gy.bind(null,ee,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ee,a=Mt();if(oe){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),Te===null)throw Error(A(349));(se&127)!==0||Jg(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Zm($g.bind(null,i,o,e),[e]),i.flags|=2048,bo(9,{destroy:void 0},Wg.bind(null,i,o,n,t),null),n},useId:function(){var e=Mt(),t=Te.identifierPrefix;if(oe){var n=Vn,i=Gn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Eu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=hw++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:wd,useFormState:Xm,useActionState:Xm,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ed.bind(null,ee,!0,n),n.dispatch=t,[e,t]},useMemoCache:gd,useCacheRefresh:function(){return Mt().memoizedState=vw.bind(null,ee)},useEffectEvent:function(e){var t=Mt(),n={impl:e};return t.memoizedState=n,function(){if((pe&2)!==0)throw Error(A(440));return n.impl.apply(void 0,arguments)}}},Ny={readContext:ct,use:Ku,useCallback:hy,useContext:ct,useEffect:bd,useImperativeHandle:dy,useInsertionEffect:cy,useLayoutEffect:sy,useMemo:my,useReducer:Fr,useRef:ry,useState:function(){return Fr(si)},useDebugValue:vd,useDeferredValue:function(e,t){var n=Ve();return py(n,xe.memoizedState,e,t)},useTransition:function(){var e=Fr(si)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ql(e),t]},useSyncExternalStore:Fg,useId:vy,useHostTransitionStatus:wd,useFormState:Km,useActionState:Km,useOptimistic:function(e,t){var n=Ve();return ny(n,xe,e,t)},useMemoCache:gd,useCacheRefresh:Sy,useEffectEvent:uy},ww={readContext:ct,use:Ku,useCallback:hy,useContext:ct,useEffect:bd,useImperativeHandle:dy,useInsertionEffect:cy,useLayoutEffect:sy,useMemo:my,useReducer:ys,useRef:ry,useState:function(){return ys(si)},useDebugValue:vd,useDeferredValue:function(e,t){var n=Ve();return xe===null?Sd(n,e,t):py(n,xe.memoizedState,e,t)},useTransition:function(){var e=ys(si)[0],t=Ve().memoizedState;return[typeof e=="boolean"?e:ql(e),t]},useSyncExternalStore:Fg,useId:vy,useHostTransitionStatus:wd,useFormState:Qm,useActionState:Qm,useOptimistic:function(e,t){var n=Ve();return xe!==null?ny(n,xe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:gd,useCacheRefresh:Sy,useEffectEvent:uy};function bs(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Ne({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cf={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=$t(),a=Hi(i);a.payload=t,n!=null&&(a.callback=n),t=_i(e,a,i),t!==null&&(It(t,e,i),dl(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=$t(),a=Hi(i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=_i(e,a,i),t!==null&&(It(t,e,i),dl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$t(),i=Hi(n);i.tag=2,t!=null&&(i.callback=t),t=_i(e,i,n),t!==null&&(It(t,e,n),dl(t,e,n))}};function Fm(e,t,n,i,a,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,o,l):t.prototype&&t.prototype.isPureReactComponent?!Tl(n,i)||!Tl(a,o):!0}function Jm(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&cf.enqueueReplaceState(t,t.state,null)}function va(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Ne({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function My(e){hu(e)}function Ry(e){console.error(e)}function Ay(e){hu(e)}function Tu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Wm(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function sf(e,t,n){return n=Hi(n),n.tag=3,n.payload={element:null},n.callback=function(){Tu(e,t)},n}function Cy(e){return e=Hi(e),e.tag=3,e}function Oy(e,t,n,i){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var o=i.value;e.payload=function(){return a(o)},e.callback=function(){Wm(t,n,i)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Wm(t,n,i),typeof a!="function"&&(Pi===null?Pi=new Set([this]):Pi.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function Ew(e,t,n,i,a){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&ma(t,n,a,!0),n=ht.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?zu():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=a,i===bu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Ns(e,i,a)),!1;case 22:return n.flags|=65536,i===bu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Ns(e,i,a)),!1}throw Error(A(435,n.tag))}return Ns(e,i,a),zu(),!1}if(oe)return t=ht.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,i!==Js&&(e=Error(A(422),{cause:i}),Ml(sn(e,n)))):(i!==Js&&(t=Error(A(423),{cause:i}),Ml(sn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,i=sn(i,n),a=sf(e.stateNode,i,a),gs(e,a),Ge!==4&&(Ge=2)),!1;var o=Error(A(520),{cause:i});if(o=sn(o,n),vl===null?vl=[o]:vl.push(o),Ge!==4&&(Ge=2),t===null)return!0;i=sn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=sf(n.stateNode,i,e),gs(n,e),!1;case 1:if(t=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(Pi===null||!Pi.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Cy(a),Oy(a,e,n,i),gs(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var xd=Error(A(461)),Ke=!1;function Ze(e,t,n,i){t.child=e===null?qg(t,null,n,i):ya(t,e.child,n,i)}function $m(e,t,n,i,a){n=n.render;var o=t.ref;if("ref"in i){var l={};for(var r in i)r!=="ref"&&(l[r]=i[r])}else l=i;return pa(t),i=dd(e,t,n,l,o,a),r=hd(),e!==null&&!Ke?(md(e,t,a),fi(e,t,a)):(oe&&r&&qu(t),t.flags|=1,Ze(e,t,i,a),t.child)}function ep(e,t,n,i,a){if(e===null){var o=n.type;return typeof o=="function"&&!id(o)&&o.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=o,Ly(e,t,o,i,a)):(e=Kr(n.type,null,i,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!Nd(e,a)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Tl,n(l,i)&&e.ref===t.ref)return fi(e,t,a)}return t.flags|=1,e=oi(o,i),e.ref=t.ref,e.return=t,t.child=e}function Ly(e,t,n,i,a){if(e!==null){var o=e.memoizedProps;if(Tl(o,i)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=i=o,Nd(e,a))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,fi(e,t,a)}return ff(e,t,n,i,a)}function zy(e,t,n,i){var a=i.children,o=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(o=o!==null?o.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;i=a&~o}else i=0,t.child=null;return tp(e,t,o,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zr(t,o!==null?o.cachePool:null),o!==null?Ym(t,o):af(),Kg(t);else return i=t.lanes=536870912,tp(e,t,o!==null?o.baseLanes|n:n,n,i)}else o!==null?(Zr(t,o.cachePool),Ym(t,o),ki(),t.memoizedState=null):(e!==null&&Zr(t,null),af(),ki());return Ze(e,t,a,n),t.child}function gl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function tp(e,t,n,i,a){var o=ld();return o=o===null?null:{parent:Xe._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},e!==null&&Zr(t,null),af(),Kg(t),e!==null&&ma(e,t,i,!0),t.childLanes=a,null}function Wr(e,t){return t=Fu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function np(e,t,n){return ya(t,e.child,null,n),e=Wr(t,t.pendingProps),e.flags|=2,Kt(t),t.memoizedState=null,e}function xw(e,t,n){var i=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=Wr(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},gl(null,e);if(of(t),(e=Ce)?(e=zb(e,fn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi!==null?{id:Gn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},n=kg(e),n.return=t,t.child=n,ot=t,Ce=null)):e=null,e===null)throw Yi(t);return t.lanes=536870912,null}return Wr(t,i)}var o=e.memoizedState;if(o!==null){var l=o.dehydrated;if(of(t),a)if(t.flags&256)t.flags&=-257,t=np(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(A(558));else if(Ke||ma(e,t,n,!1),a=(n&e.childLanes)!==0,Ke||a){if(qi.current===null){if(i=Te,i!==null&&(l=ug(i,n),l!==0&&l!==o.retryLane))throw o.retryLane=l,Ta(e,l),It(i,e,l),xd;zu()}t=np(e,t,n)}else e=o.treeContext,Ce=dn(l.nextSibling),ot=t,oe=!0,Di=null,fn=!1,e!==null&&Ig(t,e),t=Wr(t,i),t.flags|=134221824;return t}return e=oi(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ya(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(A(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ff(e,t,n,i,a){return pa(t),n=dd(e,t,n,i,void 0,a),i=hd(),e!==null&&!Ke?(md(e,t,a),fi(e,t,a)):(oe&&i&&qu(t),t.flags|=1,Ze(e,t,n,a),t.child)}function ip(e,t,n,i,a,o){return pa(t),t.updateQueue=null,n=Zg(t,i,n,a),Qg(e),i=hd(),e!==null&&!Ke?(md(e,t,o),fi(e,t,o)):(oe&&i&&qu(t),t.flags|=1,Ze(e,t,n,o),t.child)}function ap(e,t,n,i,a){if(pa(t),t.stateNode===null){var o=eo,l=n.contextType;typeof l=="object"&&l!==null&&(o=ct(l)),o=new n(i,o),t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=cf,t.stateNode=o,o._reactInternals=t,o=t.stateNode,o.props=i,o.state=t.memoizedState,o.refs={},ud(t),l=n.contextType,o.context=typeof l=="object"&&l!==null?ct(l):eo,o.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(bs(t,n,l,i),o.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(l=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),l!==o.state&&cf.enqueueReplaceState(o,o.state,null),ml(t,i,o,a),hl(),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){o=t.stateNode;var r=t.memoizedProps,u=va(n,r);o.props=u;var c=o.context,f=n.contextType;l=eo,typeof f=="object"&&f!==null&&(l=ct(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(r||c!==l)&&Jm(t,o,i,l),Ti=!1;var s=t.memoizedState;o.state=s,ml(t,i,o,a),hl(),c=t.memoizedState,r||s!==c||Ti?(typeof p=="function"&&(bs(t,n,p,i),c=t.memoizedState),(u=Ti||Fm(t,n,u,i,s,c,l))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),o.props=i,o.state=c,o.context=l,i=u):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,tf(e,t),l=t.memoizedProps,f=va(n,l),o.props=f,p=t.pendingProps,s=o.context,c=n.contextType,u=eo,typeof c=="object"&&c!==null&&(u=ct(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||s!==u)&&Jm(t,o,i,u),Ti=!1,s=t.memoizedState,o.state=s,ml(t,i,o,a),hl();var m=t.memoizedState;l!==p||s!==m||Ti||e!==null&&e.dependencies!==null&&yu(e.dependencies)?(typeof r=="function"&&(bs(t,n,r,i),m=t.memoizedState),(f=Ti||Fm(t,n,f,i,s,m,u)||e!==null&&e.dependencies!==null&&yu(e.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=m),o.props=i,o.state=m,o.context=u,i=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return o=i,Ya(e,t),i=(t.flags&128)!==0,o||i?(o=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:o.render(),t.flags|=1,e!==null&&i?(t.child=ya(t,e.child,null,a),t.child=ya(t,null,n,a)):Ze(e,t,n,a),t.memoizedState=o.state,e=t.child):e=fi(e,t,a),e}function op(e,t,n,i){return ha(),t.flags|=256,Ze(e,t,n,i),t.child}var df={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hf(e){return{baseLanes:e,cachePool:Gg()}}function mf(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Zt),e}function Dy(e,t,n){var i=t.pendingProps,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),l&&(a=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(a?Ui(t):ki(),(e=Ce)?(e=zb(e,fn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Vi!==null?{id:Gn,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},n=kg(e),n.return=t,t.child=n,ot=t,Ce=null)):e=null,e===null)throw Yi(t);return kd(e)?t.lanes=32:t.lanes=536870912,null}return o=i.children,i=i.fallback,a?(ki(),a=t.mode,o=Fu({mode:"hidden",children:o},a),i=ca(i,a,n,null),o.return=t,i.return=t,o.sibling=i,t.child=o,i=t.child,i.memoizedState=hf(n),i.childLanes=mf(e,l,n),t.memoizedState=df,gl(null,i)):(Ui(t),Td(t,o))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return Tw(e,t,o,l,i,u,r,n)}return a?(ki(),a=i.fallback,o=t.mode,r=e.child,u=r.sibling,i=oi(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?a=oi(u,a):(a=ca(a,o,n,null),a.flags|=2),a.return=t,i.return=t,i.sibling=a,t.child=i,gl(null,i),i=t.child,a=e.child.memoizedState,a===null?a=hf(n):(o=a.cachePool,o!==null?(r=Xe._currentValue,o=o.parent!==r?{parent:r,pool:r}:o):o=Gg(),a={baseLanes:a.baseLanes|n,cachePool:o}),i.memoizedState=a,i.childLanes=mf(e,l,n),t.memoizedState=df,gl(e.child,i)):(Ui(t),n=e.child,e=n.sibling,n=oi(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function Td(e,t){return t=Fu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fu(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Dr(e,t,n){return ya(t,e.child,null,n),e=Td(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tw(e,t,n,i,a,o,l,r){if(n)return t.flags&256?(Ui(t),t.flags&=-257,Dr(e,t,r)):t.memoizedState!==null?(ki(),t.child=e.child,t.flags|=128,null):(ki(),o=a.fallback,l=t.mode,a=Fu({mode:"visible",children:a.children},l),o=ca(o,l,r,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,ya(t,e.child,null,r),a=t.child,a.memoizedState=hf(r),a.childLanes=mf(e,i,r),t.memoizedState=df,gl(null,a));if(Ui(t),kd(o)){if(i=o.nextSibling&&o.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(a=Error(A(419)),a.stack="",a.digest=i,Ml({value:a,source:null,stack:null})),Dr(e,t,r)}if(Ke||ma(e,t,r,!1),i=(r&e.childLanes)!==0,Ke||i){if(qi.current!==null)return Dr(e,t,r);if(i=Te,i!==null&&(a=ug(i,r),a!==0&&a!==l.retryLane))throw l.retryLane=a,Ta(e,a),It(i,e,a),xd;return If(o)||zu(),Dr(e,t,r)}return If(o)?(t.flags|=192,t.child=e.child,null):(e=l.treeContext,Ce=dn(o.nextSibling),ot=t,oe=!0,Di=null,fn=!1,e!==null&&Ig(t,e),t=Td(t,a.children),t.flags|=134221824,t)}function lp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Qr(e.return,t,n)}function rp(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Su(n)===null&&(t=e),e=e.sibling}return t}function Hr(e,t,n,i,a,o){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:a,treeForkCount:o}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=i,l.tail=n,l.tailMode=a,l.treeForkCount=o)}function vs(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function pf(e,t,n){var i=t.pendingProps,a=i.revealOrder,o=i.tail;i=i.children;var l=ft.current;if(t.flags&128)return Al(t,l),null;var r=(l&2)!==0;if(r?(l=l&1|2,t.flags|=128):l&=1,Al(t,l),a==="backwards"&&e!==null?(vs(e),Ze(e,t,i,n),vs(e)):Ze(e,t,i,n),i=oe?Nl:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lp(e,n,t);else if(e.tag===19)lp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":n=rp(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,vs(t)),Hr(t,!0,a,null,o,i);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Su(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Hr(t,!0,n,null,o,i);break;case"together":Hr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=rp(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Hr(t,!1,a,n,o,i)}return t.child}function up(e,t,n){var i=t.pendingProps;return Ai(t,t.type,i.value),Ze(e,t,i.children,n),t.child}function fi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xi|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ma(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Nd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&yu(e)))}function Nw(e,t,n){switch(t.tag){case 3:cu(t,t.stateNode.containerInfo),Ai(t,Xe,e.memoizedState.cache),ha();break;case 27:case 5:Gs(t);break;case 4:cu(t,t.stateNode.containerInfo);break;case 10:Ai(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,of(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return Ui(t),t.flags|=128,null;i=ma(e,t,n,!1);var a=t.child.childLanes;return i||(n&a)!==0?Dy(e,t,n):(Ui(t),e=fi(e,t,n),e!==null?e.sibling:null)}Ui(t);break;case 19:if(t.flags&128)return pf(e,t,n);if(a=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(ma(e,t,n,!1),i=(n&t.childLanes)!==0),a){if(i)return pf(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Al(t,ft.current),i)break;return null;case 22:return t.lanes=0,zy(e,t,n,t.pendingProps);case 24:Ai(t,Xe,e.memoizedState.cache)}return fi(e,t,n)}function Hy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!Nd(e,n)&&(t.flags&128)===0)return Ke=!1,Nw(e,t,n);Ke=(e.flags&131072)!==0}else Ke=!1,oe&&(t.flags&1048576)!==0&&Pg(t,Nl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=aa(t.elementType),t.type=e,typeof e=="function")id(e)?(i=va(e,i),t.tag=1,t=ap(null,t,e,i,n)):(t.tag=0,t=ff(null,t,e,i,n));else{if(e!=null){var a=e.$$typeof;if(a===qf){t.tag=11,t=$m(null,t,e,i,n);break e}else if(a===jf){t.tag=14,t=ep(null,t,e,i,n);break e}else if(a===In){t.tag=10,t.type=e,t=up(null,t,n);break e}}throw t=Is(e)||e,Error(A(306,t,""))}}return t;case 0:return ff(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,a=va(i,t.pendingProps),ap(e,t,i,a,n);case 3:e:{if(cu(t,t.stateNode.containerInfo),e===null)throw Error(A(387));i=t.pendingProps;var o=t.memoizedState;a=o.element,tf(e,t),ml(t,i,null,n);var l=t.memoizedState;if(i=l.cache,Ai(t,Xe,i),i!==o.cache&&$s(t,[Xe],n,!0),hl(),i=l.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=op(e,t,i,n);break e}else if(i!==a){a=sn(Error(A(424)),t),Ml(a),t=op(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ce=dn(e.firstChild),ot=t,oe=!0,Di=null,fn=!0,n=qg(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ha(),i===a){t=fi(e,t,n);break e}Ze(e,t,i,n)}t=t.child}return t;case 26:return Ya(e,t),e===null?(n=_p(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=xb(t.type,t.pendingProps,zi.current,t)):t.memoizedState=_p(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Gs(t),e===null&&oe&&(i=t.stateNode=Db(t.type,t.pendingProps,zi.current),ot=t,fn=!0,a=Ce,Qi(t.type)?(Bf=a,Ce=dn(i.firstChild)):Ce=a),Ze(e,t,t.pendingProps.children,n),Ya(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((a=i=Ce)&&(i=yE(i,t.type,t.pendingProps,fn),i!==null?(t.stateNode=i,ot=t,Ce=dn(i.firstChild),fn=!1,a=!0):a=!1),a||Yi(t)),Gs(t),a=t.type,o=t.pendingProps,l=e!==null?e.memoizedProps:null,i=o.children,Uf(a,o)?i=null:l!==null&&Uf(a,l)&&(t.flags|=32),t.memoizedState!==null&&(a=dd(e,t,mw,null,null,n),No._currentValue=a),Ya(e,t),Ze(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=Ce)&&(n=bE(n,t.pendingProps,fn),n!==null?(t.stateNode=n,ot=t,Ce=null,e=!0):e=!1),e||Yi(t)),null;case 13:return Dy(e,t,n);case 4:return cu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=ya(t,null,i,n):Ze(e,t,i,n),t.child;case 11:return $m(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Ya(e,t),Ze(e,t,i,n),t.child;case 8:return Ze(e,t,t.pendingProps.children,n),t.child;case 12:return Ze(e,t,t.pendingProps.children,n),t.child;case 10:return up(e,t,n);case 9:return a=t.type._context,i=t.pendingProps.children,pa(t),a=ct(a),i=i(a),t.flags|=1,Ze(e,t,i,n),t.child;case 14:return ep(e,t,t.type,t.pendingProps,n);case 15:return Ly(e,t,t.type,t.pendingProps,n);case 19:return pf(e,t,n);case 31:return xw(e,t,n);case 22:return zy(e,t,n,t.pendingProps);case 24:return pa(t),i=ct(Xe),e===null?(a=ld(),a===null&&(a=Te,o=od(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:i,cache:a},ud(t),Ai(t,Xe,a)):((e.lanes&n)!==0&&(tf(e,t),ml(t,null,null,n),hl()),a=e.memoizedState,o=t.memoizedState,a.parent!==i?(a={parent:i,cache:i},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ai(t,Xe,i)):(i=o.cache,Ai(t,Xe,i),i!==a.cache&&$s(t,[Xe],n,!0))),Ze(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&qu(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Ya(e,t),Ze(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(A(156,t.tag))}function ni(e){e.flags|=4}function Ss(e,t,n,i,a){var o;if((o=(e.mode&32)!==0)&&(o=n===null?Pp(t,i):Pp(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),o){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(cb())e.flags|=8192;else throw fa=bu,rd}else e.flags&=-16777217}function cp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!kb(t))if(cb())e.flags|=8192;else throw fa=bu,rd}function _r(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?og():536870912,e.lanes|=t,vo|=t)}function $o(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags&1206910976,i|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,i|=a.subtreeFlags,i|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Mw(e,t,n){var i=t.pendingProps;switch(ad(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),li(Xe),po(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ga(t)?ni(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ps())),Ae(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ni(t),o!==null?(Ae(t),cp(t,o)):(Ae(t),Ss(t,a,null,i,n))):o?o!==e.memoizedState?(ni(t),Ae(t),cp(t,o)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ni(t),Ae(t),Ss(t,a,e,i,n)),null;case 27:if(su(t),n=zi.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ni(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=Yn.current,Ga(t)?Um(t,e):(e=Db(a,i,n),t.stateNode=e,ni(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(su(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ni(t);else{if(!i){if(t.stateNode===null)throw Error(A(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(o=Yn.current,Ga(t))Um(t,o);else{var l=zl(zi.current);switch(o){case 1:o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":o=l.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":o=l.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":o=l.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof i.is=="string"?l.createElement("select",{is:i.is}):l.createElement("select"),i.multiple?o.multiple=!0:i.size&&(o.size=i.size);break;default:o=typeof i.is=="string"?l.createElement(a,{is:i.is}):l.createElement(a)}}o[ut]=t,o[Gt]=i;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)o.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=o;e:switch(dt(o,a,i),a){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ni(t)}}return Ae(t),t.subtreeFlags&=-33554433,Ss(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ni(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(A(166));if(e=zi.current,Ga(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,a=ot,a!==null)switch(a.tag){case 27:case 5:i=a.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||wb(e.nodeValue,n)),e||Yi(t,!0)}else e=zl(e).createTextNode(i),e[ut]=t,t.stateNode=e}return Ae(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Ga(t),n!==null){if(e===null){if(!i)throw Error(A(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(557));e[ut]=t}else ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Kt(t),t):(Kt(t),null);if((t.flags&128)!==0)throw Error(A(558))}return Ae(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ga(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(A(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(A(317));a[ut]=t}else ha(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),a=!1}else a=ps(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Kt(t),t):(Kt(t),null)}return Kt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,a=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(a=i.alternate.memoizedState.cachePool.pool),o=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),o!==a&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_r(t,t.updateQueue),Ae(t),null);case 4:return po(),e===null&&Hd(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return li(t.type),Ae(t),null;case 19:if(sd(t),i=t.memoizedState,i===null)return Ae(t),null;if(a=(t.flags&128)!==0,o=i.rendering,o===null)if(a)$o(i,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(o=Su(e),o!==null){for(t.flags|=128,$o(i,!1),e=o.updateQueue,t.updateQueue=e,_r(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Ug(n,e),n=n.sibling;return Al(t,ft.current&1|2),oe&&ii(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>Ou&&(t.flags|=128,a=!0,$o(i,!1),t.lanes=4194304)}else{if(!a)if(e=Su(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_r(t,e),$o(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!o.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>Ou&&n!==536870912&&(t.flags|=128,a=!0,$o(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ft(),e.sibling=null,o=ft.current,o=a?o&1|2:o&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||oe?Al(t,o):(n=o,Oe(ht,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ii(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Kt(t),cd(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),n=t.updateQueue,n!==null&&_r(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&st(sa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),li(Xe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(A(156,t.tag))}function Rw(e,t){switch(ad(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return li(Xe),po(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return su(t),null;case 31:if(t.memoizedState!==null){if(Kt(t),t.alternate===null)throw Error(A(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return sd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return po(),null;case 10:return li(t.type),null;case 22:case 23:return Kt(t),cd(),e!==null&&st(sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return li(Xe),null;case 25:return null;default:return null}}function _y(e,t){switch(ad(t),t.tag){case 3:li(Xe),po();break;case 26:case 27:case 5:su(t);break;case 4:po();break;case 31:t.memoizedState!==null&&Kt(t);break;case 13:Kt(t);break;case 19:sd(t);break;case 10:li(t.type);break;case 22:case 23:Kt(t),cd(),e!==null&&st(sa);break;case 24:li(Xe)}}function jl(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var a=i.next;n=a;do{if((n.tag&e)===e){i=void 0;var o=n.create,l=n.inst;i=o(),l.destroy=i}n=n.next}while(n!==a)}}catch(r){Ee(t,t.return,r)}}function ji(e,t,n){try{var i=t.updateQueue,a=i!==null?i.lastEffect:null;if(a!==null){var o=a.next;i=o;do{if((i.tag&e)===e){var l=i.inst,r=l.destroy;if(r!==void 0){l.destroy=void 0,a=t;var u=n,c=r;try{c()}catch(f){Ee(a,u,f)}}}i=i.next}while(i!==o)}}catch(f){Ee(t,t.return,f)}}function Uy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Xg(t,n)}catch(i){Ee(e,e.return,i)}}}function ky(e,t,n){n.props=va(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Ee(e,t,i)}}function kn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var a=e.stateNode,o=ui(e.memoizedProps,a);(a.ref===null||a.ref.name!==o)&&(a.ref=Rb(o)),i=a.ref;break;case 7:if(e.stateNode===null){var l=new tn(e);Bt(e.child,!1,pE,l,void 0,void 0),e.stateNode=l}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Ee(e,t,r)}}function rt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(a){Ee(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ee(e,t,a)}else n.current=null}function Nu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Lb(e.stateNode,t[n])}function sp(e){for(var t=e.return;t!==null&&(Rd(t)&&Lb(e.stateNode,t.stateNode),!Md(t));)t=t.return}function yl(e){for(var t=e.return;t!==null&&(Rd(t)&&gE(e.stateNode,t.stateNode),!Md(t));)t=t.return}function Md(e){return e.tag===5||e.tag===3||e.tag===27}function Rd(e){return e&&e.tag===7&&e.stateNode!==null}function gf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(a){Ee(e,e.return,a)}}function ws(e,t,n){try{var i=e.stateNode;Jw(i,e.type,n,t),i[Gt]=t}catch(a){Ee(e,e.return,a)}}function Py(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Qi(e.type)||e.tag===4}function Es(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Py(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Qi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yf(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Bn)),Nu(e,i),me=!0;else if(a!==4&&(a===27&&(Nu(e,i),i=null,Qi(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(yf(e,t,n,i),e=e.sibling;e!==null;)yf(e,t,n,i),e=e.sibling}function Mu(e,t,n,i){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),Nu(e,i),me=!0;else if(a!==4&&(a===27&&(Nu(e,i),i=null,Qi(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Mu(e,t,n,i),e=e.sibling;e!==null;)Mu(e,t,n,i),e=e.sibling}function Iy(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);dt(t,i,n),t[ut]=e,t[Gt]=n}catch(o){Ee(e,e.return,o)}}var Ru=!1,Qt=null;function fp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Ru=!0)}var Pn=null;function dp(){var e=Pn;return Pn=null,e}var kt=0;function Lo(e,t,n,i,a){return kt=0,By(e.child,t,n,i,a)}function By(e,t,n,i,a){for(var o=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(i!==null){var r=kf(l);i.push(r),r.view&&(o=!0)}else o||kf(l).view&&(o=!0);Ru=!0,Tb(l,kt===0?t:t+"_"+kt,n),kt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||By(e.child,t,n,i,a)&&(o=!0));e=e.sibling}return o}function jn(e,t){for(;e!==null;)e.tag===5?Nb(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||jn(e.child,t)),e=e.sibling}function $r(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&($r(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(A(544));var n=t.name;t=mi(t.default,t.share),t!=="none"&&(Lo(e,n,t,null,!1)||jn(e.child,!1))}e=e.sibling}}function bf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,a=ui(i,n),o=mi(i.default,n.paired?i.share:i.enter);o!=="none"?Lo(e,a,o,null,!1)?($r(e),n.paired||t||So(e,i.onEnter)):jn(e.child,!1):$r(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)bf(e,t),e=e.sibling;else $r(e)}function vf(e){if(Qt!==null&&Qt.size!==0){var t=Qt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var a=t.get(i);if(a!==void 0){var o=mi(n.default,n.share);if(o!=="none"&&(Lo(e,i,o,null,!1)?(o=e.stateNode,a.paired=o,o.paired=a,So(e,n.onShare)):jn(e.child,!1)),t.delete(i),t.size===0)break}}}vf(e)}e=e.sibling}}}function Sf(e){if(e.tag===30){var t=e.memoizedProps,n=ui(t,e.stateNode),i=Qt!==null?Qt.get(n):void 0,a=mi(t.default,i!==void 0?t.share:t.exit);a!=="none"&&(Lo(e,n,a,null,!1)?i!==void 0?(a=e.stateNode,i.paired=a,a.paired=i,Qt.delete(n),So(e,t.onShare)):So(e,t.onExit):jn(e.child,!1)),Qt!==null&&vf(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Sf(e),e=e.sibling;else Qt!==null&&vf(e)}function Gy(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ui(t,e.stateNode);t=mi(t.default,t.update),e.flags&=-5,t!=="none"&&Lo(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&Gy(e);e=e.sibling}}function wf(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,jn(e.child,!1))}wf(e)}e=e.sibling}}function eu(e){if(e.tag===30)e.stateNode.paired=null,jn(e.child,!1),wf(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)eu(e),e=e.sibling;else wf(e)}function Vy(e){for(e=e.child;e!==null;)e.tag===30?jn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Vy(e),e=e.sibling}function Ad(e,t,n,i,a,o,l){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(o!==null&&kt<o.length){var c=o[kt],f=kf(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Tb(u,kt===0?n:n+"_"+kt,a),r&&(e.flags&4)!==0||(Pn===null&&(Pn=[]),Pn.push(u,kt===0?i:i+"_"+kt,t.memoizedProps)),kt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l?e.flags|=t.flags&32:Ad(e,t.child,n,i,a,o,l)&&(r=!0));t=t.sibling}return r}function Yy(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,a=ui(n,i),o=mi(n.default,n.update);if(t){i=i.clones;var l=i===null?null:i.map(iE)}else l=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;kt=0,a=Ad(i,r,a,a,o,l,!1),(e.flags&4)!==0&&a&&(t||So(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Yy(e,t);e=e.sibling}}var nt=!1,be=!1,Hn=!1,xs=!1,hp=typeof WeakSet=="function"?WeakSet:Set,it=null,_n=!1,rl=!1,Au=!1,Ef=!1;function Aw(e,t,n){if(e=e.containerInfo,Hf=Mo,e=Ag(e),ed(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var a=i.getSelection&&i.getSelection();if(a&&a.rangeCount!==0){i=a.anchorNode;var o=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{i.nodeType,l.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,m=null;t:for(;;){for(var y;s!==i||o!==0&&s.nodeType!==3||(u=r+o),s!==l||a!==0&&s.nodeType!==3||(c=r+a),s.nodeType===3&&(r+=s.nodeValue.length),(y=s.firstChild)!==null;)m=s,s=y;for(;;){if(s===e)break t;if(m===i&&++f===o&&(u=r),m===l&&++p===a&&(c=r),(y=s.nextSibling)!==null)break;s=m,m=s.parentNode}s=y}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(_f={focusedElem:e,selectionRange:i},Mo=!1,n=(n&335544064)===n,it=t,t=n?9270:1024;it!==null;){if(e=it,n&&(i=e.deletions,i!==null))for(o=0;o<i.length;o++)n&&Sf(i[o]);if(e.alternate===null&&(e.flags&2)!==0)n&&fp(e),Ur(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&Sf(i),Ur(n);continue}else if(i!==null&&i.memoizedState!==null){n&&fp(e),Ur(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,it=i):(n&&Gy(e),Ur(n))}}Qt=null}function Ur(e){for(;it!==null;){var t=it,n=e,i=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&i!==null){n=void 0,a=i.memoizedProps,i=i.memoizedState;var o=t.stateNode;try{var l=va(t.type,a);n=o.getSnapshotBeforeUpdate(l,i),o.__reactInternalSnapshotBeforeUpdate=n}catch(r){Ee(t,t.return,r)}}break;case 3:if((a&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)Pf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Pf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=ui(i.memoizedProps,i.stateNode),a=t.memoizedProps,a=mi(a.default,a.update),a!=="none"&&Lo(i,n,a,i.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(A(163))}if(i=t.sibling,i!==null){i.return=t.return,it=i;break}it=t.return}}function qy(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),i&4&&jl(5,n);break;case 1:if(Un(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){Ee(n,n.return,l)}else{var a=va(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){Ee(n,n.return,l)}}i&64&&Uy(n),i&512&&kn(n,n.return);break;case 3:if(Un(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Xg(e,t)}catch(l){Ee(n,n.return,l)}}break;case 27:t===null&&i&4&&Iy(n);case 26:case 5:Un(e,n),t===null&&i&4&&gf(n),i&512&&kn(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),i&4&&Qy(e,n);break;case 13:Un(e,n),i&4&&Zy(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Bw.bind(null,n),vE(e,n))));break;case 22:if(i=n.memoizedState!==null||nt,!i){var o=t!==null&&t.memoizedState!==null||be;t=nt,a=be,nt=i,(be=o)&&!a?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),bn(e,n,i)):Un(e,n),nt=t,be=a}break;case 30:Un(e,n),i&512&&kn(n,n.return);break;case 7:i&512&&kn(n,n.return);default:Un(e,n)}}function xf(e,t){for(e=e.child;e!==null;)jy(e,t),e=e.sibling}function jy(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var a=e.stateNode,o=e.memoizedProps.style,l=o!=null&&o.hasOwnProperty("display")?o.display:null;a.style.display=l==null||typeof l=="boolean"?"":(""+l).trim()}}catch(u){Ee(e,e.return,u)}Tf(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,me=!0}catch(u){Ee(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Cp(r,!0):Cp(e.stateNode,!1)}catch(u){Ee(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&xf(e,t);break;default:xf(e,t)}}function Tf(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:jy(n,i);break e;case 22:n.memoizedState===null&&Tf(n,i);break e;default:Tf(n,i)}}e=e.sibling}}function Xy(e){var t=e.alternate;t!==null&&(e.alternate=null,Xy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,_t=!1;function yn(e,t,n){for(n=n.child;n!==null;)Ky(e,t,n),n=n.sibling}function Ky(e,t,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(Pl,n)}catch{}switch(n.tag){case 26:be||rt(n,t),yn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:be||rt(n,t),yl(n);var i=Ue,a=_t;Qi(n.type)&&(Ue=n.stateNode,_t=!1),yn(e,t,n),Hb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=a;break;case 5:be||rt(n,t),yl(n);case 6:if(n.tag===6&&yl(n),i=Ue,a=_t,Ue=null,yn(e,t,n),Ue=i,_t=a,Ue!==null)if(_t)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),me=!0}catch(o){Ee(n,t,o)}else try{Ue.removeChild(n.stateNode),me=!0}catch(o){Ee(n,t,o)}break;case 18:Ue!==null&&(_t?(e=Ue,Ap(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ro(e)):Ap(Ue,n.stateNode));break;case 4:i=Ue,a=_t,Ue=n.stateNode.containerInfo,_t=!0,yn(e,t,n),Ue=i,_t=a;break;case 0:case 11:case 14:case 15:ji(2,n,t),be||ji(4,n,t),yn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&ky(n,t,i)),yn(e,t,n);break;case 21:yn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,yn(e,t,n),be=i;break;case 30:rt(n,t),yn(e,t,n);break;case 7:be||rt(n,t),yn(e,t,n);break;default:yn(e,t,n)}}function Qy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ro(e)}catch(n){Ee(t,t.return,n)}}}function Zy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ro(e)}catch(n){Ee(t,t.return,n)}}function Cw(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hp),t;default:throw Error(A(435,e.tag))}}function kr(e,t){var n=Cw(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var a=Gw.bind(null,e,i);i.then(a,a)}})}function Tt(e,t,n){var i=t.deletions;if(i!==null)for(var a=0;a<i.length;a++){var o=i[a],l=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(Qi(u.type)){Ue=u.stateNode,_t=!1;break e}break;case 5:Ue=u.stateNode,_t=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,_t=!0;break e}u=u.return}if(Ue===null)throw Error(A(160));Ky(l,r,o),Ue=null,_t=!1,l=o.alternate,l!==null&&(l.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Fy(t,e,n),t=t.sibling}var vn=null;function Fy(e,t,n){var i=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var o=0;o<i.length;o++){var l=i[o];l.ref.impl=l.nextImpl}Tt(t,e,n),Nt(e),a&4&&(ji(3,e,e.return),jl(3,e),ji(5,e,e.return));break;case 1:Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),a&64&&nt&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=vn,Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),a&4)if(a=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(nt)e.stateNode=xb(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;t:switch(t){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Gl]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(t),a.head.insertBefore(i,a.querySelector("head > title"))),dt(i,t,n),i[ut]=e,at(i),t=i;break e;case"link":if(o=kp("link","href",a).get(t+(n.href||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(t),dt(i,t,n),a.head.appendChild(i);break;case"meta":if(o=kp("meta","content",a).get(t+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(t),dt(i,t,n),a.head.appendChild(i);break;default:throw Error(A(468,t))}i[ut]=e,at(i),t=i}e.stateNode=t}else nt||Gf(o,e.type,e.stateNode);else e.stateNode=Up(o,n,e.memoizedProps);else a!==n?(a===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):a.count--,n===null?nt||Gf(o,e.type,e.stateNode):Up(o,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ws(e,e.memoizedProps,i.memoizedProps);break;case 27:Tt(t,e,n),Nt(e),a&512&&(be||i===null||rt(i,i.return)),i!==null&&a&4&&ws(e,e.memoizedProps,i.memoizedProps);break;case 5:if(o=Hn,Hn=!1,Tt(t,e,n),Hn=o,Nt(e),a&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{yo(t,""),me=!0}catch(f){Ee(e,e.return,f)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,ws(e,t,i!==null?i.memoizedProps:t)),a&1024&&(xs=!0);break;case 6:if(Tt(t,e,n),Nt(e),a&4){if(e.stateNode===null)throw Error(A(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,me=!0}catch(f){Ee(e,e.return,f)}}break;case 3:if(me=!1,au=null,o=vn,vn=Dl(t.containerInfo),Tt(t,e,n),vn=o,Nt(e),a&4&&i!==null&&i.memoizedState.isDehydrated)try{Ro(t.containerInfo)}catch(f){Ee(e,e.return,f)}xs&&(xs=!1,Jy(e)),me=!1;break;case 4:a=Hn,Hn=nt,i=vm(),o=vn,vn=Dl(e.stateNode.containerInfo),Tt(t,e,n),Nt(e),vn=o,me&&rl&&(Au=!0),me=i,Hn=a;break;case 12:Tt(t,e,n),Nt(e);break;case 31:Tt(t,e,n),Nt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,kr(e,t)));break;case 13:Tt(t,e,n),Nt(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Ju=Ft()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,kr(e,t)));break;case 22:o=e.memoizedState!==null,l=i!==null&&i.memoizedState!==null;var r=nt,u=be,c=Hn;nt=r||o,Hn=c||o,be=u||l,Tt(t,e,n),be=u,Hn=c,nt=r,Nt(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||i===null||l||nt||be||(t=l||be,n=nt,i=be,nt=o||nt,be=t,Ei(e,2),nt=n,be=i),!o&&Hn||xf(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,kr(e,n))));break;case 19:Tt(t,e,n),Nt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,kr(e,t)));break;case 30:a&512&&(be||i===null||rt(i,i.return)),a=vm(),o=rl,l=(n&335544064)===n,r=e.memoizedProps,rl=l&&mi(r.default,r.update)!=="none",Tt(t,e,n),Nt(e),l&&i!==null&&me&&(e.flags|=4),rl=o,me=a;break;case 21:break;case 7:a&512&&(be||i===null||rt(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Tt(t,e,n),Nt(e)}}function Nt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Py(i)){n=i;break}i=i.return}i=null;for(var a=e.return;a!==null;){if(Rd(a)){var o=a.stateNode;i===null?i=[o]:i.push(o)}if(Md(a))break;a=a.return}var l=i;if(n==null)throw Error(A(160));switch(n.tag){case 27:var r=n.stateNode,u=Es(e);Mu(e,u,r,l);break;case 5:var c=n.stateNode;n.flags&32&&(yo(c,""),n.flags&=-33);var f=Es(e);Mu(e,f,c,l);break;case 3:case 4:var p=n.stateNode.containerInfo,s=Es(e);yf(e,s,p,l);break;default:throw Error(A(161))}}catch(m){Ee(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Jy(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Mo=!0,t.reset(),Mo=!1),e=e.sibling}}function Va(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Wy(t,e),t=t.sibling;else Yy(t,!1)}function Wy(e,t){var n=e.alternate;if(n===null)bf(e,!1);else switch(e.tag){case 3:if(Ef=_n=!1,dp(),Va(t,e),!_n&&!Au){if(e=Pn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var a=e[i+1];Nb(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Ef=!0}Pn=null;break;case 5:Va(t,e);break;case 4:i=_n,_n=!1,Va(t,e),_n&&(Au=!0),_n=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?bf(e,!1):Va(t,e));break;case 30:i=_n,a=dp(),_n=!1,Va(t,e),_n&&(e.flags|=4);var o=e.memoizedProps,l=e.stateNode;t=ui(o,l),l=ui(n.memoizedProps,l);var r=mi(o.default,o.update);r==="none"?t=!1:(o=n.memoizedState,n.memoizedState=null,n=e.child,kt=0,t=Ad(e,n,t,l,r,o,!0),kt!==(o===null?0:o.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(So(e,e.memoizedProps.onUpdate),Pn=a):a!==null&&(a.push.apply(a,Pn),Pn=a),_n=(e.flags&32)!==0?!0:i;break;default:Va(t,e)}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)qy(e,t.alternate,t),t=t.sibling}function Ei(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:ji(4,n,n.return),Ei(n,i);break;case 1:rt(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&ky(n,n.return,a),Ei(n,i);break;case 27:(i&2)!==0&&Hb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||yl(n),Ei(n,i);break;case 6:yl(n);break;case 26:rt(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||be||a.parentNode.removeChild(a),Ei(n,i);break;case 22:n.memoizedState===null&&Ei(n,i);break;case 30:rt(n,n.return),Ei(n,i);break;case 7:rt(n,n.return);default:Ei(n,i)}e=e.sibling}}function bn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,a=e,o=t,l=o.flags,r=(n&1)!==0;switch(o.tag){case 0:case 11:case 15:bn(a,o,n),jl(4,o);break;case 1:if(bn(a,o,n),i=o,a=i.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(f){Ee(i,i.return,f)}if(i=o,a=i.updateQueue,a!==null){var u=i.stateNode;try{var c=a.shared.hiddenCallbacks;if(c!==null)for(a.shared.hiddenCallbacks=null,a=0;a<c.length;a++)jg(c[a],u)}catch(f){Ee(i,i.return,f)}}r&&l&64&&Uy(o),kn(o,o.return);break;case 27:(n&2)!==0&&Iy(o);case 5:o.tag!==5&&o.tag!==27||sp(o),bn(a,o,n),r&&i===null&&l&4&&gf(o),kn(o,o.return);break;case 6:sp(o);break;case 26:u=o.stateNode,o.memoizedState!==null||u===null||nt||Gf(Dl(u.ownerDocument),o.type,u),bn(a,o,n),r&&i===null&&l&4&&gf(o),kn(o,o.return);break;case 12:bn(a,o,n);break;case 31:bn(a,o,n),r&&l&4&&Qy(a,o);break;case 13:bn(a,o,n),r&&l&4&&Zy(a,o);break;case 22:o.memoizedState===null&&bn(a,o,n),kn(o,o.return);break;case 30:bn(a,o,n),kn(o,o.return);break;case 7:kn(o,o.return);default:bn(a,o,n)}t=t.sibling}}function Cd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Yl(n))}function Od(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yl(e))}function on(e,t,n,i){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)$y(e,t,n,i),t=t.sibling;else a&&Vy(t)}function $y(e,t,n,i){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&eu(t);var o=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),o&2048&&jl(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),a&&Ef&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),o&2048&&(o=null,t.alternate!==null&&(o=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==o&&(t.refCount++,o!=null&&Yl(o)));break;case 12:if(o&2048){on(e,t,n,i),o=t.stateNode;try{var l=t.memoizedProps,r=l.id,u=l.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(c){Ee(t,t.return,c)}}else on(e,t,n,i);break;case 31:on(e,t,n,i);break;case 13:on(e,t,n,i);break;case 23:break;case 22:l=t.stateNode,r=t.alternate,t.memoizedState!==null?(a&&r!==null&&r.memoizedState===null&&eu(r),l._visibility&2?on(e,t,n,i):bl(e,t)):(a&&r!==null&&r.memoizedState!==null&&eu(t),l._visibility&2?on(e,t,n,i):(l._visibility|=2,qa(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),o&2048&&Cd(r,t);break;case 24:on(e,t,n,i),o&2048&&Od(t.alternate,t);break;case 30:a&&(o=t.alternate,o!==null&&(jn(o.child,!0),jn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function qa(e,t,n,i,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var o=e,l=t,r=n,u=i,c=l.flags;switch(l.tag){case 0:case 11:case 15:qa(o,l,r,u,a),jl(8,l);break;case 23:break;case 22:var f=l.stateNode;l.memoizedState!==null?f._visibility&2?qa(o,l,r,u,a):bl(o,l):(f._visibility|=2,qa(o,l,r,u,a)),a&&c&2048&&Cd(l.alternate,l);break;case 24:qa(o,l,r,u,a),a&&c&2048&&Od(l.alternate,l);break;default:qa(o,l,r,u,a)}t=t.sibling}}function bl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,a=i.flags;switch(i.tag){case 22:bl(n,i),a&2048&&Cd(i.alternate,i);break;case 24:bl(n,i),a&2048&&Od(i.alternate,i);break;default:bl(n,i)}t=t.sibling}}var oa=8192;function na(e,t,n){if(e.subtreeFlags&oa)for(e=e.child;e!==null;)eb(e,t,n),e=e.sibling}function eb(e,t,n){switch(e.tag){case 26:na(e,t,n),e.flags&oa&&(e.memoizedState!==null?DE(n,vn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Ip(n,e)));break;case 5:na(e,t,n),e.flags&oa&&(e=e.stateNode,(t&335544128)===t&&Ip(n,e));break;case 3:case 4:var i=vn;vn=Dl(e.stateNode.containerInfo),na(e,t,n),vn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=oa,oa=16777216,na(e,t,n),oa=i):na(e,t,n));break;case 30:if((e.flags&oa)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var a=e.stateNode;a.paired=null,Qt===null&&(Qt=new Map),Qt.set(i,a)}na(e,t,n);break;default:na(e,t,n)}}function tb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function el(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];it=i,ib(i,e)}tb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)nb(e),e=e.sibling}function nb(e){switch(e.tag){case 0:case 11:case 15:el(e),e.flags&2048&&ji(9,e,e.return);break;case 3:el(e);break;case 12:el(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,tu(e)):el(e);break;default:el(e)}}function tu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];it=i,ib(i,e)}tb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ji(8,t,t.return),tu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,tu(t));break;default:tu(t)}e=e.sibling}}function ib(e,t){for(;it!==null;){var n=it;switch(n.tag){case 0:case 11:case 15:ji(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Yl(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,it=i;else e:for(n=e;it!==null;){i=it;var a=i.sibling,o=i.return;if(Xy(i),i===n){it=null;break e}if(a!==null){a.return=o,it=a;break e}it=o}}}var Ow={getCacheForType:function(e){var t=ct(Xe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Xe).controller.signal}},Lw=typeof WeakMap=="function"?WeakMap:Map,pe=0,Te=null,ue=null,se=0,Se=0,jt=null,Ci=!1,zo=!1,Ld=!1,di=0,Ge=0,Xi=0,da=0,Cu=0,Zt=0,vo=0,vl=null,Ut=null,Nf=!1,Ju=0,ab=0,Ou=1/0,Lu=null,Pi=null,Ie=0,wn=null,Sa=null,qn=0,Mf=0,Rf=null,ob=null,fo=null,ho=null,mo=null,Sl=0,nu=null;function $t(){return(pe&2)!==0&&se!==0?se&-se:Q.T!==null?Dd():cg()}function lb(){if(Zt===0)if((se&536870912)===0||oe){var e=Tr;Tr<<=1,(Tr&3932160)===0&&(Tr=262144),Zt=e}else Zt=536870912;return e=ht.current,e!==null&&(e.flags|=32),Zt}function So(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=Rb(ui(e.memoizedProps,n))),ho===null&&(ho=[]),ho.push(t.bind(null,i))}}function It(e,t,n){(e===Te&&(Se===2||Se===9)||e.cancelPendingCommit!==null)&&(wo(e,0),Oi(e,se,Zt,!1)),Bl(e,n),((pe&2)===0||e!==Te)&&(e===Te&&((pe&2)===0&&(da|=n),Ge===4&&Oi(e,se,Zt,!1)),Kn(e))}function rb(e,t,n){if((pe&6)!==0)throw Error(A(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Il(e,t),a=i?Hw(e,t):Ts(e,t,!0),o=i;do{if(a===0){zo&&!i&&Oi(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!zw(n)){a=Ts(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var r=e;a=vl;var u=r.current.memoizedState.isDehydrated;if(u&&(wo(r,l).flags|=256),l=Ts(r,l,!1),l!==2&&l!==6){if(Ld&&!u){r.errorRecoveryDisabledLanes|=o,da|=o,a=4;break e}o=Ut,Ut=a,o!==null&&(Ut===null?Ut=o:Ut.push.apply(Ut,o))}a=l}if(o=!1,a!==2)continue}}if(a===1){wo(e,0),Oi(e,t,0,!0);break}e:{switch(i=e,o=a,o){case 0:case 1:throw Error(A(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Oi(i,t,Zt,!Ci);break e;case 2:Ut=null;break;case 3:case 5:break;default:throw Error(A(329))}if((t&62914560)===t&&(a=Ju+300-Ft(),10<a)){if(Oi(i,t,Zt,!Ci),ku(i,0,!0)!==0)break e;qn=t,i.timeoutHandle=_d(mp.bind(null,i,n,Ut,Lu,Nf,t,Zt,da,vo,Ci,o,"Throttled",-0,0),a);break e}mp(i,n,Ut,Lu,Nf,t,Zt,da,vo,Ci,o,null,-0,0)}}break}while(!0);Kn(e)}function mp(e,t,n,i,a,o,l,r,u,c,f,p,s,m){e.timeoutHandle=-1;var y=t.subtreeFlags,b=(o&335544064)===o;if(p=null,(b||y&8192||(y&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bn},Qt=null,eb(t,o,p),b&&(y=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(y.count++,y.waitingForViewTransition=!0,y=Hl.bind(y),b.finished.then(y,y))),y=(o&62914560)===o?Ju-Ft():(o&4194048)===o?ab-Ft():0,y=HE(p,y),y!==null)){qn=o,e.cancelPendingCommit=y(gp.bind(null,e,t,o,n,i,a,l,r,u,c,f,p,null,s,m)),Oi(e,o,l,!c);return}gp(e,t,o,n,i,a,l,r,u,c,f,p)}function zw(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var a=n[i],o=a.getSnapshot;a=a.value;try{if(!en(o(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Oi(e,t,n,i){t=ag(e,t),t&=~Cu,t&=~da,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var a=t;0<a;){var o=31-Wt(a),l=1<<o;i[o]=-1,a&=~l}n!==0&&lg(e,n,t)}function Wu(){return(pe&6)===0?(Xl(0,!1),!1):!0}function zd(){if(ue!==null){if(Se===0)var e=ue.return;else e=ue,ai=Na=null,pd(e),uo=null,Rl=0,e=ue;for(;e!==null;)_y(e.alternate,e),e=e.return;ue=null}}function wo(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,eE(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),qn=0,zd(),Te=e,ue=n=oi(e.current,null),se=t,Se=0,jt=null,Ci=!1,zo=Il(e,t),Ld=!1,vo=Zt=Cu=da=Xi=Ge=0,Ut=vl=null,Nf=!1,di=ag(e,t),Vu(),n}function ub(e,t){ee=null,Q.H=xu,t===Oo||t===ju?(t=Gm(),Se=3):t===rd?(t=Gm(),Se=4):Se=t===xd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,jt=t,ue===null&&(Ge=1,Tu(e,sn(t,e.current)))}function cb(){var e=ht.current;return e===null?!0:(se&4194048)===se?bt===null:(se&62914560)===se||(se&536870912)!==0?e===bt:!1}function sb(){var e=Q.H;return Q.H=xu,e===null?xu:e}function fb(){var e=Q.A;return Q.A=Ow,e}function zu(){Ge=4,Ci||(se&4194048)!==se&&ht.current!==null||(zo=!0),(Xi&134217727)===0&&(da&134217727)===0||Te===null||Oi(Te,se,Zt,!1)}function Ts(e,t,n){var i=pe;pe|=2;var a=sb(),o=fb();(Te!==e||se!==t)&&(Lu=null,wo(e,t)),t=!1;var l=Ge;e:do try{if(Se!==0&&ue!==null){var r=ue,u=jt;switch(Se){case 8:zd(),l=6;break e;case 3:case 2:case 9:case 6:ht.current===null&&(t=!0);var c=Se;if(Se=0,jt=null,io(e,r,u,c),n&&zo){l=0;break e}break;default:c=Se,Se=0,jt=null,io(e,r,u,c)}}Dw(),l=Ge;break}catch(f){ub(e,f)}while(!0);return t&&e.shellSuspendCounter++,ai=Na=null,pe=i,Q.H=a,Q.A=o,ue===null&&(Te=null,se=0,Vu()),l}function Dw(){for(;ue!==null;)db(ue)}function Hw(e,t){var n=pe;pe|=2;var i=sb(),a=fb();Te!==e||se!==t?(Lu=null,Ou=Ft()+500,wo(e,t)):zo=Il(e,t);e:do try{if(Se!==0&&ue!==null){t=ue;var o=jt;t:switch(Se){case 1:Se=0,jt=null,io(e,t,o,1);break;case 2:case 9:if(Bm(o)){Se=0,jt=null,pp(t);break}t=function(){Se!==2&&Se!==9||Te!==e||(Se=7),Kn(e)},o.then(t,t);break e;case 3:Se=7;break e;case 4:Se=5;break e;case 7:Bm(o)?(Se=0,jt=null,pp(t)):(Se=0,jt=null,io(e,t,o,7));break;case 5:var l=null;switch(ue.tag){case 26:l=ue.memoizedState;case 5:case 27:var r=ue;if(l?kb(l):r.stateNode.complete){Se=0,jt=null;var u=r.sibling;if(u!==null)ue=u;else{var c=r.return;c!==null?(ue=c,$u(c)):ue=null}break t}}Se=0,jt=null,io(e,t,o,5);break;case 6:Se=0,jt=null,io(e,t,o,6);break;case 8:zd(),Ge=6;break e;default:throw Error(A(462))}}_w();break}catch(f){ub(e,f)}while(!0);return ai=Na=null,Q.H=i,Q.A=a,pe=n,ue!==null?0:(Te=null,se=0,Vu(),Ge)}function _w(){for(;ue!==null&&!W1();)db(ue)}function db(e){var t=Hy(e.alternate,e,di);e.memoizedProps=e.pendingProps,t===null?$u(e):ue=t}function pp(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ip(n,t,t.pendingProps,t.type,void 0,se);break;case 11:t=ip(n,t,t.pendingProps,t.type.render,t.ref,se);break;case 5:pd(t);var i=t;i===ot&&(oe?(gu(i),i.tag===5&&i.stateNode!=null&&(Ce=i.stateNode)):(gu(i),oe=!0));default:_y(n,t),t=ue=Ug(t,di),t=Hy(n,t,di)}e.memoizedProps=e.pendingProps,t===null?$u(e):ue=t}function io(e,t,n,i){ai=Na=null,pd(t),uo=null,Rl=0;var a=t.return;try{if(Ew(e,a,t,n,se)){Ge=1,Tu(e,sn(n,e.current)),ue=null;return}}catch(o){if(a!==null)throw ue=a,o;Ge=1,Tu(e,sn(n,e.current)),ue=null;return}t.flags&32768?(oe||i===1?e=!0:zo||(se&536870912)!==0?e=!1:(Ci=e=!0,(i===2||i===9||i===3||i===6)&&(i=ht.current,i!==null&&i.tag===13&&(i.flags|=16384))),hb(t,e)):$u(t)}function $u(e){var t=e;do{if((t.flags&32768)!==0){hb(t,Ci);return}e=t.return;var n=Mw(t.alternate,t,di);if(n!==null){ue=n;return}if(t=t.sibling,t!==null){ue=t;return}ue=t=e}while(t!==null);Ge===0&&(Ge=5)}function hb(e,t){do{var n=Rw(e.alternate,e);if(n!==null){n.flags&=32767,ue=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ue=e;return}ue=e=n}while(e!==null);Ge=6,ue=null}function gp(e,t,n,i,a,o,l,r,u,c,f,p){e.cancelPendingCommit=null;do ec();while(Ie!==0);if((pe&6)!==0)throw Error(A(327));if(t!==null){if(t===e.current)throw Error(A(177));e===Te&&(ue=Te=null,se=0),Sa=t,wn=e,qn=n,Rf=a,ob=i,Uw(e,t,n,l,r,u,p)}}function Uw(e,t,n,i,a,o,l){var r=t.lanes|t.childLanes;if(Mf=r,r|=td,uS(e,n,r,i,a,o),ho=null,(n&335544064)===n?(mo=sw(e),i=10262):(mo=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,Vw(fu,function(){return Lf(),null})):(e.callbackNode=null,e.callbackPriority=0),Ru=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null,a=ge.p,ge.p=2,o=pe,pe|=4;try{Aw(e,t,n)}finally{pe=o,ge.p=a,Q.T=i}}Ie=1,Ru?fo=lE(l,e.containerInfo,mo,Af,Cf,Pw,Of,Lf,kw,null,null):(Af(),Cf(),Of())}function kw(e){if(Ie!==0){var t=wn.onRecoverableError;t(e,{componentStack:null})}}function Pw(){Ie===3&&(Ie=0,Wy(Sa,wn),Ie=4)}function Af(){if(Ie===1){Ie=0;var e=wn,t=Sa,n=qn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var a=ge.p;ge.p=2;var o=pe;pe|=4;try{rl=Au=!1,Fy(t,e,n),n=_f;var l=Ag(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(l!==r&&r&&r.ownerDocument&&Rg(r.ownerDocument.documentElement,r)){if(u!==null&&ed(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var m=s.getSelection(),y=r.textContent.length,b=Math.min(u.start,y),w=u.end===void 0?b:Math.min(u.end,y);!m.extend&&b>w&&(l=w,w=b,b=l);var d=zm(r,b),h=zm(r,w);if(d&&h&&(m.rangeCount!==1||m.anchorNode!==d.node||m.anchorOffset!==d.offset||m.focusNode!==h.node||m.focusOffset!==h.offset)){var g=p.createRange();g.setStart(d.node,d.offset),m.removeAllRanges(),b>w?(m.addRange(g),m.extend(h.node,h.offset)):(g.setEnd(h.node,h.offset),m.addRange(g))}}}}for(p=[],m=r;m=m.parentNode;)m.nodeType===1&&p.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var S=p[r];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}Mo=!!Hf,_f=Hf=null}finally{pe=o,ge.p=a,Q.T=i}}e.current=t,Ie=2}}function Cf(){if(Ie===2){Ie=0;var e=wn,t=Sa,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var i=ge.p;ge.p=2;var a=pe;pe|=4;try{qy(e,t.alternate,t)}finally{pe=a,ge.p=i,Q.T=n}}Ie=3}}function Of(){if(Ie===4||Ie===3){Ie=0;var e=fo;fo=null,$1();var t=wn,n=Sa,i=qn,a=ob,o=(i&335544064)===i?10262:10256;if((n.subtreeFlags&o)!==0||(n.flags&o)!==0?Ie=5:(Ie=0,Sa=wn=null,mb(t,t.pendingLanes)),o=t.pendingLanes,o===0&&(Pi=null),Qf(i),n=n.stateNode,Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(Pl,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=Q.T,o=ge.p,ge.p=2,Q.T=null;try{for(var l=t.onRecoverableError,r=0;r<a.length;r++){var u=a[r];l(u.value,{componentStack:u.stack})}}finally{Q.T=n,ge.p=o}}if(a=ho,l=mo,mo=null,a!==null&&(ho=null,l===null&&(l=[]),e!==null))for(u=0;u<a.length;u++)n=(0,a[u])(l),n!==void 0&&e.finished.finally(n);(qn&3)!==0&&ec(),Kn(t),o=t.pendingLanes,(i&261930)!==0&&(o&42)!==0?t===nu?Sl++:(Sl=0,nu=t):(Sl=0,nu=null),Xl(0,!1)}}function mb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yl(t)))}function ec(){return fo!==null&&(fo.skipTransition(),fo=null),Af(),Cf(),Of(),Lf()}function Lf(){if(Ie!==5)return!1;var e=wn,t=Mf;Mf=0;var n=Qf(qn),i=Q.T,a=ge.p;try{ge.p=32>n?32:n,Q.T=null,n=Rf,Rf=null;var o=wn,l=qn;if(Ie=0,Sa=wn=null,qn=0,(pe&6)!==0)throw Error(A(331));var r=pe;if(pe|=4,nb(o.current),$y(o,o.current,l,n),pe=r,Xl(0,!1),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(Pl,o)}catch{}return!0}finally{ge.p=a,Q.T=i,mb(e,t)}}function yp(e,t,n){t=sn(n,t),t=sf(e.stateNode,t,2),e=_i(e,t,2),e!==null&&(Bl(e,2),Kn(e))}function Ee(e,t,n){if(e.tag===3)yp(e,e,n);else for(;t!==null;){if(t.tag===3){yp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Pi===null||!Pi.has(i))){e=sn(n,e),n=Cy(2),i=_i(t,n,2),i!==null&&(Oy(n,i,t,e),Bl(i,2),Kn(i));break}}t=t.return}}function Ns(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Lw;var a=new Set;i.set(t,a)}else a=i.get(t),a===void 0&&(a=new Set,i.set(t,a));a.has(n)||(Ld=!0,a.add(n),e=Iw.bind(null,e,t,n),t.then(e,e))}function Iw(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Te===e&&(se&n)===n&&((Ge===4||Ge===3&&(se&62914560)===se&&300>Ft()-Ju)&&(pe&2)===0?wo(e,0):Cu|=n,vo===se&&(vo=0)),Kn(e)}function pb(e,t){t===0&&(t=og()),e=Ta(e,t),e!==null&&(Bl(e,t),Kn(e))}function Bw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),pb(e,n)}function Gw(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(A(314))}i!==null&&i.delete(t),pb(e,n)}function Vw(e,t){return Xf(e,t)}var Eo=null,ja=null,zf=!1,Du=!1,Ms=!1,Li=0;function Kn(e){e!==ja&&e.next===null&&(ja===null?Eo=ja=e:ja=ja.next=e),Du=!0,zf||(zf=!0,qw())}function Xl(e,t){if(!Ms&&Du){Ms=!0;do for(var n=!1,i=Eo;i!==null;){if(!t)if(e!==0){var a=i.pendingLanes;if(a===0)var o=0;else{var l=i.suspendedLanes,r=i.pingedLanes;o=(1<<31-Wt(42|e)+1)-1,o&=a&~(l&~r),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,bp(i,o))}else o=se,o=ku(i,i===Te?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(o&3)===0||Il(i,o)||(n=!0,bp(i,o));i=i.next}while(n);Ms=!1}}function Yw(){gb()}function gb(){Du=zf=!1;var e=0;Li!==0&&$w()&&(e=Li);for(var t=Ft(),n=null,i=Eo;i!==null;){var a=i.next,o=yb(i,t);o===0?(i.next=null,n===null?Eo=a:n.next=a,a===null&&(ja=n)):(n=i,(e!==0||(o&3)!==0)&&(Du=!0)),i=a}Ie!==0&&Ie!==5||Xl(e,!1),Li!==0&&(Li=0)}function yb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes&-62914561;0<o;){var l=31-Wt(o),r=1<<l,u=a[l];u===-1?((r&n)===0||(r&i)!==0)&&(a[l]=rS(r,t)):u<=t&&(e.expiredLanes|=r),o&=~r}if(t=Te,n=se,n=ku(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Se===2||Se===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&as(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Il(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&as(i),Qf(n)){case 2:case 8:n=ng;break;case 32:n=fu;break;case 268435456:n=ig;break;default:n=fu}return i=bb.bind(null,e),n=Xf(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&as(i),e.callbackPriority=2,e.callbackNode=null,2}function bb(e,t){if(Ie!==0&&Ie!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(ec()&&e.callbackNode!==n)return null;var i=se;return i=ku(e,e===Te?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(rb(e,i,t),yb(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?bb.bind(null,e):null)}function bp(e,t){if(ec())return null;rb(e,t,!0)}function qw(){tE(function(){(pe&6)!==0?Xf(tg,Yw):gb()})}function Dd(){if(Li===0){var e=ga;e===0&&(e=xr,xr<<=1,(xr&261888)===0&&(xr=256)),Li=e}return Li}function vp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qr(e)}function jw(e,t,n,i,a){if(t==="submit"&&n&&n.stateNode===a){var o=vp((a[Gt]||null).action),l=i.submitter;l&&(t=(t=l[Gt]||null)?vp(t.formAction):l.getAttribute("formAction"),t!==null&&(o=t,l=null));var r=new Iu("action","action",null,i,a);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Li!==0){var u=new FormData(a,l);uf(n,{pending:!0,data:u,method:a.method,action:o},null,u)}}else typeof o=="function"&&(r.preventDefault(),u=new FormData(a,l),uf(n,{pending:!0,data:u,method:a.method,action:o},o,u))},currentTarget:a}]})}}for(Pr=0;Pr<Fs.length;Pr++)Ir=Fs[Pr],Sp=Ir.toLowerCase(),wp=Ir[0].toUpperCase()+Ir.slice(1),En(Sp,"on"+wp);var Ir,Sp,wp,Pr;En(Og,"onAnimationEnd");En(Lg,"onAnimationIteration");En(zg,"onAnimationStart");En("dblclick","onDoubleClick");En("focusin","onFocus");En("focusout","onBlur");En(nw,"onTransitionRun");En(iw,"onTransitionStart");En(aw,"onTransitionCancel");En(Dg,"onTransitionEnd");go("onMouseEnter",["mouseout","mouseover"]);go("onMouseLeave",["mouseout","mouseover"]);go("onPointerEnter",["pointerout","pointerover"]);go("onPointerLeave",["pointerout","pointerover"]);Ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ea("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ol="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ol));function vb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],a=i.event;i=i.listeners;e:{var o=void 0;if(t)for(var l=i.length-1;0<=l;l--){var r=i[l],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(f){hu(f)}a.currentTarget=null,o=u}else for(l=0;l<i.length;l++){if(r=i[l],u=r.instance,c=r.currentTarget,r=r.listener,u!==o&&a.isPropagationStopped())break e;o=r,a.currentTarget=c;try{o(a)}catch(f){hu(f)}a.currentTarget=null,o=u}}}}function re(e,t){var n=t[pm];n===void 0&&(n=t[pm]=new Set);var i=e+"__bubble";n.has(i)||(Sb(t,e,2,!1),n.add(i))}function Rs(e,t,n){var i=0;t&&(i|=4),Sb(n,e,i,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Hd(e){if(!e[Br]){e[Br]=!0,fg.forEach(function(n){n!=="selectionchange"&&(Xw.has(n)||Rs(n,!1,e),Rs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Br]||(t[Br]=!0,Rs("selectionchange",!1,t))}}function Sb(e,t,n,i){switch(qb(t)){case 2:var a=PE;break;case 8:a=IE;break;default:a=Gd}n=a.bind(null,t,n,e),a=void 0,!Xs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),i?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function As(e,t,n,i,a){var o=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var l=i.tag;if(l===3||l===4){var r=i.stateNode.containerInfo;if(r===a)break;if(l===4)for(l=i.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===a)return;l=l.return}for(;r!==null;){if(l=la(r),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){i=o=l;continue e}r=r.parentNode}}i=i.return}vg(function(){var c=o,f=Ff(n),p=[];e:{var s=Hg.get(e);if(s!==void 0){var m=Iu,y=e;switch(e){case"keypress":if(Xr(n)===0)break e;case"keydown":case"keyup":m=zS;break;case"focusin":y="focus",m=ss;break;case"focusout":y="blur",m=ss;break;case"beforeblur":case"afterblur":m=ss;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=xm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=SS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=kS;break;case Og:case Lg:case zg:m=xS;break;case Dg:m=IS;break;case"scroll":case"scrollend":m=bS;break;case"wheel":m=GS;break;case"copy":case"cut":case"paste":m=NS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=Nm;break;case"submit":m=_S;break;case"toggle":case"beforetoggle":m=YS}var b=(t&4)!==0,w=!b&&(e==="scroll"||e==="scrollend"),d=b?s!==null?s+"Capture":null:s;b=[];for(var h=c,g;h!==null;){var S=h;if(g=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||g===null||d===null||(S=El(h,d),S!=null&&b.push(Ll(h,S,g))),w)break;h=h.return}0<b.length&&(s=new m(s,y,null,n,f),p.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(m=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",m&&n!==js&&(y=n.relatedTarget||n.fromElement)&&(la(y)||y[Ao]))break e;(s||m)&&(y=f.window===f?f:(m=f.ownerDocument)?m.defaultView||m.parentWindow:window,s?(m=n.relatedTarget||n.toElement,s=c,m=m?la(m):null,m!==null&&(w=kl(m),b=m.tag,m!==w||b!==5&&b!==27&&b!==6)&&(m=null)):(s=null,m=c),s!==m&&(b=xm,S="onMouseLeave",d="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(b=Nm,S="onPointerLeave",d="onPointerEnter",h="pointer"),w=s==null?y:ol(s),g=m==null?y:ol(m),y=new b(S,h+"leave",s,n,f),y.target=w,y.relatedTarget=g,S=null,la(f)===c&&(b=new b(d,h+"enter",m,n,f),b.target=g,b.relatedTarget=w,S=b),w=S,b=s&&m?Ds(s,m,Kw):null,s!==null&&Ep(p,y,s,b,!1),m!==null&&w!==null&&Ep(p,w,m,b,!0)))}e:{if(s=c?ol(c):window,m=s.nodeName&&s.nodeName.toLowerCase(),m==="select"||m==="input"&&s.type==="file")var x=Cm;else if(Am(s))if(Ng)x=$S;else{x=JS;var M=FS}else m=s.nodeName,!m||m.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&Zf(c.elementType)&&(x=Cm):x=WS;if(x&&(x=x(e,c))){Tg(p,x,n,f);break e}M&&M(e,s,c)}switch(M=c?ol(c):window,e){case"focusin":(Am(M)||M.contentEditable==="true")&&(Ja=M,Qs=c,sl=null);break;case"focusout":sl=Qs=Ja=null;break;case"mousedown":Zs=!0;break;case"contextmenu":case"mouseup":case"dragend":Zs=!1,Dm(p,n,f);break;case"selectionchange":if(tw)break;case"keydown":case"keyup":Dm(p,n,f)}var E;if($f)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Fa?Eg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(wg&&n.locale!=="ko"&&(Fa||N!=="onCompositionStart"?N==="onCompositionEnd"&&Fa&&(E=Sg()):(Ri=f,Jf="value"in Ri?Ri.value:Ri.textContent,Fa=!0)),M=Hu(c,N),0<M.length&&(N=new Tm(N,e,null,n,f),p.push({event:N,listeners:M}),E?N.data=E:(E=xg(n),E!==null&&(N.data=E)))),(E=jS?XS(e,n):KS(e,n))&&(N=Hu(c,"onBeforeInput"),0<N.length&&(M=new Tm("onBeforeInput","beforeinput",null,n,f),p.push({event:M,listeners:N}),M.data=E)),jw(p,e,c,n,f)}vb(p,t)})}function Ll(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hu(e,t){for(var n=t+"Capture",i=[];e!==null;){var a=e,o=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||o===null||(a=El(e,n),a!=null&&i.unshift(Ll(e,a,o)),a=El(e,t),a!=null&&i.push(Ll(e,a,o))),e.tag===3)return i;e=e.return}return[]}function Kw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ep(e,t,n,i,a){for(var o=t._reactName,l=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,a?(c=El(n,o),c!=null&&l.unshift(Ll(n,c,u))):a||(c=El(n,o),c!=null&&l.push(Ll(n,c,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var Qw=/\r\n?/g,Zw=/\u0000|\uFFFD/g;function xp(e){return(typeof e=="string"?e:""+e).replace(Qw,`
|
|
766
|
-
`).replace(Zw,"")}function wb(e,t){return t=xp(t),xp(e)===t}function we(e,t,n,i,a,o){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||yo(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&yo(e,""+i);else return;break;case"className":Mr(e,"class",i);break;case"tabIndex":Mr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Mr(e,n,i);break;case"style":bg(e,i,o);return;case"data":if(t!=="object"){Mr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=qr(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(t!=="input"&&we(e,t,"name",a.name,a,null),we(e,t,"formEncType",a.formEncType,a,null),we(e,t,"formMethod",a.formMethod,a,null),we(e,t,"formTarget",a.formTarget,a,null)):(we(e,t,"encType",a.encType,a,null),we(e,t,"method",a.method,a,null),we(e,t,"target",a.target,a,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=qr(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Bn);return;case"onScroll":i!=null&&re("scroll",e);return;case"onScrollEnd":i!=null&&re("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=qr(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":re("beforetoggle",e),re("toggle",e),Yr(e,"popover",i);break;case"xlinkActuate":ti(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ti(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ti(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ti(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ti(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ti(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ti(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ti(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ti(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Yr(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=gS.get(n)||n,Yr(e,n,i);else return}me=!0}function Df(e,t,n,i,a,o){switch(n){case"style":bg(e,i,o);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(A(61));if(n=i.__html,n!=null){if(a.children!=null)throw Error(A(60));o?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")yo(e,i);else if(typeof i=="number"||typeof i=="bigint")yo(e,""+i);else return;break;case"onScroll":i!=null&&re("scroll",e);return;case"onScrollEnd":i!=null&&re("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Bn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!dg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),o=n.slice(2,a?n.length-7:void 0),t=e[Gt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(o,t,a),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,i,a);break e}me=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):Yr(e,n,i)}return}me=!0}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":re("error",e),re("load",e);var i=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var l=n[o];if(l!=null)switch(o){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,o,l,n,null)}}a&&we(e,t,"srcSet",n.srcSet,n,null),i&&we(e,t,"src",n.src,n,null);return;case"input":re("invalid",e);var r=o=l=a=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":a=f;break;case"type":l=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":o=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(A(137,t));break;default:we(e,t,i,f,n,null)}}pg(e,o,r,u,c,l,a,!1);return;case"select":re("invalid",e),i=l=o=null;for(a in n)if(n.hasOwnProperty(a)&&(r=n[a],r!=null))switch(a){case"value":o=r;break;case"defaultValue":l=r;break;case"multiple":i=r;default:we(e,t,a,r,n,null)}t=o,n=l,e.multiple=!!i,t!=null?oo(e,!!i,t,!1):n!=null&&oo(e,!!i,n,!0);return;case"textarea":re("invalid",e),o=a=i=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":i=r;break;case"defaultValue":a=r;break;case"children":o=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(A(91));break;default:we(e,t,l,r,n,null)}yg(e,i,a,o);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:we(e,t,u,i,n,null)}return;case"dialog":re("beforetoggle",e),re("toggle",e),re("cancel",e),re("close",e);break;case"iframe":case"object":re("load",e);break;case"video":case"audio":for(i=0;i<Ol.length;i++)re(Ol[i],e);break;case"image":re("error",e),re("load",e);break;case"details":re("toggle",e);break;case"embed":case"source":case"link":re("error",e),re("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:we(e,t,c,i,n,null)}return;default:if(Zf(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&Df(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&we(e,t,r,i,n,null))}var Fw={};function Jw(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,o=null,l=null,r=null,u=null,c=null,f=null;for(m in n){var p=n[m];if(n.hasOwnProperty(m)&&p!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(m)||we(e,t,m,null,i,p)}}for(var s in i){var m=i[s];if(p=n[s],i.hasOwnProperty(s)&&(m!=null||p!=null))switch(s){case"type":m!==p&&(me=!0),o=m;break;case"name":m!==p&&(me=!0),a=m;break;case"checked":m!==p&&(me=!0),c=m;break;case"defaultChecked":m!==p&&(me=!0),f=m;break;case"value":m!==p&&(me=!0),l=m;break;case"defaultValue":m!==p&&(me=!0),r=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(A(137,t));break;default:m!==p&&we(e,t,s,m,i,p)}}qs(e,l,r,u,c,f,o,a);return;case"select":m=l=r=s=null;for(o in n)if(u=n[o],n.hasOwnProperty(o)&&u!=null)switch(o){case"value":break;case"multiple":m=u;default:i.hasOwnProperty(o)||we(e,t,o,null,i,u)}for(a in i)if(o=i[a],u=n[a],i.hasOwnProperty(a)&&(o!=null||u!=null))switch(a){case"value":o!==u&&(me=!0),s=o;break;case"defaultValue":o!==u&&(me=!0),r=o;break;case"multiple":o!==u&&(me=!0),l=o;default:o!==u&&we(e,t,a,o,i,u)}t=r,n=l,i=m,s!=null?oo(e,!!n,s,!1):!!i!=!!n&&(t!=null?oo(e,!!n,t,!0):oo(e,!!n,n?[]:"",!1));return;case"textarea":m=s=null;for(r in n)if(a=n[r],n.hasOwnProperty(r)&&a!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:we(e,t,r,null,i,a)}for(l in i)if(a=i[l],o=n[l],i.hasOwnProperty(l)&&(a!=null||o!=null))switch(l){case"value":a!==o&&(me=!0),s=a;break;case"defaultValue":a!==o&&(me=!0),m=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(A(91));break;default:a!==o&&we(e,t,l,a,i,o)}gg(e,s,m);return;case"option":for(var y in n)if(s=n[y],n.hasOwnProperty(y)&&s!=null&&!i.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:we(e,t,y,null,i,s)}for(u in i)if(s=i[u],m=n[u],i.hasOwnProperty(u)&&s!==m&&(s!=null||m!=null))switch(u){case"selected":s!==m&&(me=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:we(e,t,u,s,i,m)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b)&&we(e,t,b,null,i,s);for(c in i)if(s=i[c],m=n[c],i.hasOwnProperty(c)&&s!==m&&(s!=null||m!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(A(137,t));break;default:we(e,t,c,s,i,m)}return;default:if(Zf(t)){for(var w in n)s=n[w],n.hasOwnProperty(w)&&s!==void 0&&!i.hasOwnProperty(w)&&Df(e,t,w,void 0,i,s);for(f in i)s=i[f],m=n[f],!i.hasOwnProperty(f)||s===m||s===void 0&&m===void 0||Df(e,t,f,s,i,m);return}}for(var d in n)s=n[d],n.hasOwnProperty(d)&&s!=null&&!i.hasOwnProperty(d)&&we(e,t,d,null,i,s);for(p in i)s=i[p],m=n[p],!i.hasOwnProperty(p)||s===m||s==null&&m==null||we(e,t,p,s,i,m)}function Tp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ww(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var a=n[i],o=a.transferSize,l=a.initiatorType,r=a.duration;if(o&&r&&Tp(l)){for(l=0,r=a.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&Tp(p)&&(u=u.responseEnd,l+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(o+l)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Hf=null,_f=null;function zl(e){return e.nodeType===9?e:e.ownerDocument}function Np(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Eb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function xb(e,t,n,i){return n=zl(n).createElement(e),n[ut]=i,n[Gt]=t,dt(n,e,t),at(n),n}function Uf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cs=null;function $w(){var e=window.event;return e&&e.type==="popstate"?e===Cs?!1:(Cs=e,!0):(Cs=null,!1)}var _d=typeof setTimeout=="function"?setTimeout:void 0,eE=typeof clearTimeout=="function"?clearTimeout:void 0,Mp=typeof Promise=="function"?Promise:void 0,Rp=typeof requestAnimationFrame=="function"?requestAnimationFrame:_d,tE=typeof queueMicrotask=="function"?queueMicrotask:typeof Mp<"u"?function(e){return Mp.resolve(null).then(e).catch(nE)}:_d;function nE(e){setTimeout(function(){throw e})}function Qi(e){return e==="head"}function Ap(e,t){var n=t,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(a),Ro(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Ls(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ls(n);for(var o=n.firstChild;o;){var l=o.nextSibling,r=o.nodeName;o[Gl]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=l}}else n==="body"&&Ls(e.ownerDocument.body);n=a}while(n);Ro(t)}function Cp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Tb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var a=i=0;a<t.length;a++){var o=t[a];0<o.width&&0<o.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Nb(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Mb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function kf(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Mb(t,n,e)}function iE(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Mb(t,n,e)}function aE(e){return e.documentElement.clientHeight}function oE(e){this.addEventListener("load",e),this.addEventListener("error",e)}function lE(e,t,n,i,a,o,l,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,m=s.navigation&&s.navigation.transition,y=c.fonts.status;i();var b=[];if(y==="loaded"&&(aE(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),y=b.length,e!==null)for(var w=e.suspenseyImages,d=0,h=0;h<w.length;h++){var g=w[h];if(!g.complete){var S=g.getBoundingClientRect();if(0<S.bottom&&0<S.right&&S.top<s.innerHeight&&S.left<s.innerWidth){if(d+=Pb(g),d>ou){b.length=y;break}g=new Promise(oE.bind(g)),b.push(g)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(x){return setTimeout(x,500)})]).then(a,a),(m?Promise.allSettled([m.finished,s]):s).then(o,o);if(a(),m)return m.finished.then(o,o);o()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),m=0;m<s.length;m++){var y=s[m],b=y.effect,w=b.pseudoElement;if(w!=null&&w.startsWith("::view-transition")){p.push(y),y=b.getKeyframes();for(var d=w=void 0,h=!0,g=0;g<y.length;g++){var S=y[g],x=S.width;if(w===void 0)w=x;else if(w!==x){h=!1;break}if(x=S.height,d===void 0)d=x;else if(d!==x){h=!1;break}delete S.width,delete S.height,S.transform==="none"&&delete S.transform}h&&w!==void 0&&d!==void 0&&(b.setKeyframes(y),h=getComputedStyle(b.target,b.pseudoElement),h.width!==w||h.height!==d)&&(h=y[0],h.width=w,h.height=d,h=y[y.length-1],h.width=w,h.height=d,b.setKeyframes(y))}}l()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),a(),l()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),a(),l(),null}}function ra(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}ra.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Ne({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};ra.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],a=0;a<n.length;a++){var o=n[a].effect;o!==null&&o.target===e&&o.pseudoElement===t&&i.push(n[a])}return i};ra.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Rb(e){return{name:e,group:new ra("group",e),imagePair:new ra("image-pair",e),old:new ra("old",e),new:new ra("new",e)}}function tn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}tn.prototype.addEventListener=function(e,t,n){var i=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var o=this._eventListeners;if(Ab(o,e,t,n)===-1){var l=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){l.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(a=l.removeEventListener.bind(l,e,t,n),i.addEventListener("abort",a,{once:!0}),a=i.removeEventListener.bind(i,"abort",a)),i=xo(n),o.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:a}),Bt(this._fragmentFiber.child,!1,rE,e,r,i)}this._eventListeners=o}};function rE(e,t,n,i){return Fe(e).addEventListener(t,n,i),!1}tn.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Ab(i,e,t,n),t!==-1)){var a=i[t];n=a.attachedListener;var o=a.cleanup;a=xo(a.optionsOrUseCapture),Bt(this._fragmentFiber.child,!1,uE,e,n,a),i.splice(t,1),o!==null&&o()}};function uE(e,t,n,i){return Fe(e).removeEventListener(t,n,i),!1}function xo(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Op(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Ab(e,t,n,i){if(e.length===0)return-1;i=Op(i);for(var a=0;a<e.length;a++){var o=e[a];if(o.type===t&&o.listener===n&&Op(o.optionsOrUseCapture)===i)return a}return-1}tn.prototype.dispatchEvent=function(e){var t=wa(this._fragmentFiber);if(t===null)return!0;t=Fe(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var o=n[a];i.addEventListener(o.type,o.attachedListener,xo(o.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(a=0;a<n.length;a++)o=n[a],i.removeEventListener(o.type,o.attachedListener,xo(o.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};tn.prototype.focus=function(e){Bt(this._fragmentFiber.child,!0,Cb,e,void 0,void 0)};function Cb(e,t){return e.tag===6?!1:(e=Fe(e),SE(e,t))}tn.prototype.focusLast=function(e){var t=[];Bt(this._fragmentFiber.child,!0,Ud,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Cb(t[n],e);n--);};function Ud(e,t){return t.push(e),!1}tn.prototype.blur=function(){var e=wa(this._fragmentFiber);e!==null&&(e=Fe(e),e=zl(e).activeElement,e!==null&&Bt(this._fragmentFiber.child,!1,cE,e,void 0,void 0))};function cE(e,t){return e.tag===6?!1:(e=Fe(e),e===t||e.contains(t)?(t.blur(),!0):!1)}tn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Bt(this._fragmentFiber.child,!1,sE,e,void 0,void 0)};function sE(e,t){return e.tag===6||(e=Fe(e),t.observe(e)),!1}tn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Bt(this._fragmentFiber.child,!1,fE,e,void 0,void 0);for(var n=t=0;n<Sn.length;n++){var i=Sn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):Sn[t++]=i}Sn.length=t}};function fE(e,t){return e.tag===6||(e=Fe(e),t.unobserve(e)),!1}var Sn=[],Os=!1;function dE(e,t,n){Sn.push({fragmentInstance:e,observer:t,instance:n}),Os||(Os=!0,wE(function(){Os=!1;var i=Sn;Sn=[];for(var a=0;a<i.length;a++){var o=i[a];o.observer.unobserve(o.instance)}}))}tn.prototype.getClientRects=function(){var e=[];return Bt(this._fragmentFiber.child,!1,hE,e,void 0,void 0),e};function hE(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Fe(e),t.push.apply(t,e.getClientRects());return!1}tn.prototype.getRootNode=function(e){var t=wa(this._fragmentFiber);return t===null?this:Fe(t).getRootNode(e)};tn.prototype.compareDocumentPosition=function(e){var t=wa(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Bt(this._fragmentFiber.child,!1,Ud,n,void 0,void 0);var i=Fe(t);if(n.length===0){if(n=i,cm(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=i=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Jp(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=Fe(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Fe(n[0]),a=Fe(n[n.length-1]);var o=cm(this._fragmentFiber)?t.parentElement:i;if(o==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=o.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,o=o.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var l=t.compareDocumentPosition(e),r=a.compareDocumentPosition(e),u=l&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&o&&l&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||o&&a===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!o&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:l,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||mE(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function mE(e,t,n,i,a){var o=la(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!o)e:{for(;o!==null;){if(o.tag===7&&(o===t||o.alternate===t)){n=!0;break e}o=o.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(o===null)return o=a.ownerDocument,a===o||a===o.documentElement||a===o.body;e:{for(o=t,t=wa(t);o!==null;){if(!(o.tag!==5&&o.tag!==3&&o.tag!==27||o!==t&&o.alternate!==t)){o=!0;break e}o=o.return}o=!1}return o}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!o)&&!(t=o===n)&&(t=Ds(n,o,sm),t===null?t=!1:(Bt(t,!0,q1,o,n),o=Xa,Xa=null,t=o!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!o)&&!(t=o===i)&&(t=Ds(i,o,sm),t===null?t=!1:(Bt(t,!0,j1,o,i),o=Xa,zs=Xa=null,t=o!==null)),t):!1}function Lp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}tn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(A(566));var t=[];Bt(this._fragmentFiber.child,!1,Ud,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=Jp(this._fragmentFiber);if(i=n?i[1]||i[0]||wa(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Fe(i),Lp(e,n);return}if(i=Fe(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var a=t[i];a.tag===6?(a=Fe(a),Lp(a,n)):Fe(a).scrollIntoView(e),i+=n?-1:1}};function pE(e,t){return e=Fe(e),Ob(e,t),!1}function Ob(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Lb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.addEventListener(a.type,a.attachedListener,xo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){for(var l=0,r=0;r<Sn.length;r++){var u=Sn[r];(u.fragmentInstance!==t||u.observer!==o||u.instance!==e)&&(Sn[l++]=u)}Sn.length=l,o.observe(e)}),Ob(e,t))}function gE(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];e.removeEventListener(a.type,a.attachedListener,xo(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(o){typeof o.rootMargin=="string"?dE(t,o,e):o.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Pf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Pf(n),Pu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function yE(e,t,n,i){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Gl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(o=e.getAttribute("rel"),o==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(o!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(o=e.getAttribute("src"),(o!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var o=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===o)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function bE(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=dn(e.nextSibling),e===null))return null;return e}function zb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dn(e.nextSibling),e===null))return null;return e}function If(e){return e.data==="$?"||e.data==="$~"}function kd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function vE(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Bf=null;function zp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return dn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Dp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function SE(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function wE(e){Rp(function(){Rp(function(t){return e(t)})})}function Db(e,t,n){switch(t=zl(n),e){case"html":if(e=t.documentElement,!e)throw Error(A(452));return e;case"head":if(e=t.head,!e)throw Error(A(453));return e;case"body":if(e=t.body,!e)throw Error(A(454));return e;default:throw Error(A(451))}}function Hb(e,t,n){for(var i in n){var a=n[i];n.hasOwnProperty(i)&&a!=null&&we(e,t,i,null,Fw,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Bn&&(e.onclick=null),Pu(e)}function Ls(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pu(e)}var hn=new Map,Hp=new Set;function Dl(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var pi=ge.d;ge.d={f:EE,r:xE,D:TE,C:NE,L:ME,m:RE,X:CE,S:AE,M:OE};function EE(){var e=pi.f(),t=Wu();return e||t}function xE(e){var t=Co(e);t!==null&&t.tag===5&&t.type==="form"?by(t):pi.r(e)}var Do=typeof document>"u"?null:document;function _b(e,t,n){var i=Do;if(i&&typeof t=="string"&&t){var a=cn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Hp.has(a)||(Hp.add(a),e={rel:e,crossOrigin:n,href:t},i.querySelector(a)===null&&(t=i.createElement("link"),dt(t,"link",e),at(t),i.head.appendChild(t)))}}function TE(e){pi.D(e),_b("dns-prefetch",e,null)}function NE(e,t){pi.C(e,t),_b("preconnect",e,t)}function ME(e,t,n){pi.L(e,t,n);var i=Do;if(i&&e&&t){var a='link[rel="preload"][as="'+cn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+cn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+cn(n.imageSizes)+'"]')):a+='[href="'+cn(e)+'"]';var o=a;switch(t){case"style":o=To(e);break;case"script":o=Ho(e)}if(!(hn.has(o)||(e=Ne({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hn.set(o,e),i.querySelector(a)!==null||t==="style"&&i.querySelector(Kl(o))||t==="script"&&i.querySelector(Ql(o))))){var l=i.createElement("link");dt(l,"link",e),t==="style"&&(l[du]=!0,l.onload=l.onerror=function(){sg(l)}),at(l),i.head.appendChild(l)}}}function RE(e,t){pi.m(e,t);var n=Do;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+cn(i)+'"][href="'+cn(e)+'"]',o=a;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Ho(e)}if(!hn.has(o)&&(e=Ne({rel:"modulepreload",href:e},t),hn.set(o,e),n.querySelector(a)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ql(o)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function AE(e,t,n){pi.S(e,t,n);var i=Do;if(i&&e){var a=ao(i).hoistableStyles,o=To(e);t=t||"default";var l=a.get(o);if(!l){var r={loading:0,preload:null};if(l=i.querySelector(Kl(o)))r.loading=5;else{e=Ne({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(o))&&Pd(e,n);var u=l=i.createElement("link");at(u),dt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,iu(l,t,i)}l={type:"stylesheet",instance:l,count:1,state:r},a.set(o,l)}}}function CE(e,t){pi.X(e,t);var n=Do;if(n&&e){var i=ao(n).hoistableScripts,a=Ho(e),o=i.get(a);o||(o=n.querySelector(Ql(a)),o||(e=Ne({src:e,async:!0},t),(t=hn.get(a))&&Id(e,t),o=n.createElement("script"),at(o),dt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function OE(e,t){pi.M(e,t);var n=Do;if(n&&e){var i=ao(n).hoistableScripts,a=Ho(e),o=i.get(a);o||(o=n.querySelector(Ql(a)),o||(e=Ne({src:e,async:!0,type:"module"},t),(t=hn.get(a))&&Id(e,t),o=n.createElement("script"),at(o),dt(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},i.set(a,o))}}function _p(e,t,n,i){var a=(a=zi.current)?Dl(a):null;if(!a)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=To(n.href),t=ao(a).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=To(n.href);var o=ao(a).hoistableStyles,l=o.get(e);if(l||(a=a.ownerDocument||a,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(e,l),(o=a.querySelector(Kl(e)))?o._p||(l.instance=o,l.state.loading=5):(o=hn.get(e),o||(o={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hn.set(e,o)),LE(a,e,o,l.state))),t&&i===null)throw Error(A(528,""));return l}if(t&&i!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=Ho(n),t=ao(a).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function To(e){return'href="'+cn(e)+'"'}function Kl(e){return'link[rel="stylesheet"]['+e+"]"}function Ub(e){return Ne({},e,{"data-precedence":e.precedence,precedence:null})}function LE(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[du]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[du]=!0,t.onload=t.onerror=sg.bind(null,t),dt(t,"link",n),at(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function Ho(e){return'[src="'+cn(e)+'"]'}function Ql(e){return"script[async]"+e}function Up(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+cn(n.href)+'"]');if(i)return t.instance=i,at(i),i;var a=Ne({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),at(i),dt(i,"style",a),iu(i,n.precedence,e),t.instance=i;case"stylesheet":a=To(n.href);var o=e.querySelector(Kl(a));if(o)return t.state.loading|=4,t.instance=o,at(o),o;i=Ub(n),(a=hn.get(a))&&Pd(i,a),o=(e.ownerDocument||e).createElement("link"),at(o);var l=o;return l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),dt(o,"link",i),t.state.loading|=4,iu(o,n.precedence,e),t.instance=o;case"script":return o=Ho(n.src),(a=e.querySelector(Ql(o)))?(t.instance=a,at(a),a):(i=n,(a=hn.get(o))&&(i=Ne({},n),Id(i,a)),e=e.ownerDocument||e,a=e.createElement("script"),at(a),dt(a,"link",i),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,iu(i,n.precedence,e));return t.instance}function iu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=i.length?i[i.length-1]:null,o=a,l=0;l<i.length;l++){var r=i[l];if(r.dataset.precedence===t)o=r;else if(o!==a)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Pd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var au=null;function kp(e,t,n){if(au===null){var i=new Map,a=au=new Map;a.set(n,i)}else a=au,i=a.get(n),i||(i=new Map,a.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var o=n[a];if(!(o[Gl]||o[ut]||e==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var l=o.getAttribute(t)||"";l=e+l;var r=i.get(l);r?r.push(o):i.set(l,[o])}}return i}function Gf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function zE(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Pp(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function kb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Pb(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Ip(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Pb(t),e.suspenseyImages.push(t)),e=_E.bind(e),t.decode().then(e,e))}function DE(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=To(i.href),o=t.querySelector(Kl(a));if(o){t=o._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Hl.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,at(o);return}o=t.ownerDocument||t,i=Ub(i),(a=hn.get(a))&&Pd(i,a),o=o.createElement("link"),at(o);var l=o;l._p=new Promise(function(r,u){l.onload=r,l.onerror=u}),dt(o,"link",i),n.instance=o}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Hl.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var ou=0;function HE(e,t){return e.stylesheets&&e.count===0&&lu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&lu(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4+t);0<e.imgBytes&&ou===0&&(ou=62500*Ww());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&lu(e,e.stylesheets),e.unsuspend)){var o=e.unsuspend;e.unsuspend=null,o()}},(e.imgBytes>ou?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(a)}}:null}function Ib(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)lu(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Hl(){this.count--,Ib(this)}function _E(){this.imgCount--,Ib(this)}var _u=null;function lu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_u=new Map,t.forEach(UE,e),_u=null,Hl.call(e))}function UE(e,t){if(!(t.state.loading&4)){var n=_u.get(e);if(n)var i=n.get(null);else{n=new Map,_u.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<a.length;o++){var l=a[o];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),i=l)}i&&n.set(null,i)}a=t.instance,l=a.getAttribute("data-precedence"),o=n.get(l)||i,o===i&&n.set(null,a),n.set(l,a),this.count++,i=Hl.bind(this),a.addEventListener("load",i),a.addEventListener("error",i),o?o.parentNode.insertBefore(a,o.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var No={$$typeof:In,Provider:null,Consumer:null,_currentValue:ua,_currentValue2:ua,_threadCount:0};function kE(e,t,n,i,a,o,l,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=os(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=os(0),this.hiddenUpdates=os(null),this.identifierPrefix=i,this.onUncaughtError=a,this.onCaughtError=o,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Bb(e,t,n,i,a,o,l,r,u,c,f,p){return e=new kE(e,t,n,l,u,c,f,p,r),t=1,o===!0&&(t|=24),o=Pt(3,null,null,t),e.current=o,o.stateNode=e,t=od(),t.refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:i,isDehydrated:n,cache:t},ud(o),e}function Gb(e){return e?(e=eo,e):eo}function Vb(e,t,n,i,a,o){a=Gb(a),i.context===null?i.context=a:i.pendingContext=a,i=Hi(t),i.payload={element:n},o=o===void 0?null:o,o!==null&&(i.callback=o),n=_i(e,i,t),n!==null&&(It(n,e,t),dl(n,e,t))}function Bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Bd(e,t){Bp(e,t),(e=e.alternate)&&Bp(e,t)}function Yb(e){if(e.tag===13||e.tag===31){var t=Ta(e,67108864);t!==null&&It(t,e,67108864),Bd(e,67108864)}}function Gp(e){if(e.tag===13||e.tag===31){var t=$t();t=Kf(t);var n=Ta(e,t);n!==null&&It(n,e,t),Bd(e,t)}}var Mo=!0;function PE(e,t,n,i){var a=Q.T;Q.T=null;var o=ge.p;try{ge.p=2,Gd(e,t,n,i)}finally{ge.p=o,Q.T=a}}function IE(e,t,n,i){var a=Q.T;Q.T=null;var o=ge.p;try{ge.p=8,Gd(e,t,n,i)}finally{ge.p=o,Q.T=a}}function Gd(e,t,n,i){if(Mo){var a=Vf(i);if(a===null)As(e,t,i,Uu,n),Vp(e,i);else if(GE(a,e,t,n,i))i.stopPropagation();else if(Vp(e,i),t&4&&-1<BE.indexOf(e)){for(;a!==null;){var o=Co(a);if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var l=ia(o.pendingLanes);if(l!==0){var r=o;for(r.pendingLanes|=2,r.entangledLanes|=2;l;){var u=1<<31-Wt(l);r.entanglements[1]|=u,l&=~u}Kn(o),(pe&6)===0&&(Ou=Ft()+500,Xl(0,!1))}}break;case 31:case 13:r=Ta(o,2),r!==null&&It(r,o,2),Wu(),Bd(o,2)}if(o=Vf(i),o===null&&As(e,t,i,Uu,n),o===a)break;a=o}a!==null&&i.stopPropagation()}else As(e,t,i,null,n)}}function Vf(e){return e=Ff(e),Vd(e)}var Uu=null;function Vd(e){if(Uu=null,e=la(e),e!==null){var t=kl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=Qp(t),e!==null)return e;e=null}else if(n===31){if(e=Zp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Uu=e,null}function qb(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(eS()){case tg:return 2;case ng:return 8;case fu:case tS:return 32;case ig:return 268435456;default:return 32}default:return 32}}var Yf=!1,Ii=null,Bi=null,Gi=null,_l=new Map,Ul=new Map,Ni=[],BE="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Vp(e,t){switch(e){case"focusin":case"focusout":Ii=null;break;case"dragenter":case"dragleave":Bi=null;break;case"mouseover":case"mouseout":Gi=null;break;case"pointerover":case"pointerout":_l.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(t.pointerId)}}function tl(e,t,n,i,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Co(t),t!==null&&Yb(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function GE(e,t,n,i,a){switch(t){case"focusin":return Ii=tl(Ii,e,t,n,i,a),!0;case"dragenter":return Bi=tl(Bi,e,t,n,i,a),!0;case"mouseover":return Gi=tl(Gi,e,t,n,i,a),!0;case"pointerover":var o=a.pointerId;return _l.set(o,tl(_l.get(o)||null,e,t,n,i,a)),!0;case"gotpointercapture":return o=a.pointerId,Ul.set(o,tl(Ul.get(o)||null,e,t,n,i,a)),!0}return!1}function jb(e){var t=la(e.target);if(t!==null){var n=kl(t);if(n!==null){if(t=n.tag,t===13){if(t=Qp(n),t!==null){e.blockedOn=t,mm(e.priority,function(){Gp(n)});return}}else if(t===31){if(t=Zp(n),t!==null){e.blockedOn=t,mm(e.priority,function(){Gp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);js=i,n.target.dispatchEvent(i),js=null}else return t=Co(n),t!==null&&Yb(t),e.blockedOn=n,!1;t.shift()}return!0}function Yp(e,t,n){ru(e)&&n.delete(t)}function VE(){Yf=!1,Ii!==null&&ru(Ii)&&(Ii=null),Bi!==null&&ru(Bi)&&(Bi=null),Gi!==null&&ru(Gi)&&(Gi=null),_l.forEach(Yp),Ul.forEach(Yp)}function Gr(e,t){e.blockedOn===t&&(e.blockedOn=null,Yf||(Yf=!0,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,VE)))}var Vr=null;function qp(e){Vr!==e&&(Vr=e,Je.unstable_scheduleCallback(Je.unstable_NormalPriority,function(){Vr===e&&(Vr=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],a=e[t+2];if(typeof i!="function"){if(Vd(i||n)===null)continue;break}var o=Co(n);o!==null&&(e.splice(t,3),t-=3,uf(o,{pending:!0,data:a,method:n.method,action:i},i,a))}}))}function Ro(e){function t(u){return Gr(u,e)}Ii!==null&&Gr(Ii,e),Bi!==null&&Gr(Bi,e),Gi!==null&&Gr(Gi,e),_l.forEach(t),Ul.forEach(t);for(var n=0;n<Ni.length;n++){var i=Ni[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ni.length&&(n=Ni[0],n.blockedOn===null);)jb(n),n.blockedOn===null&&Ni.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var a=n[i],o=n[i+1],l=a[Gt]||null;if(typeof o=="function")l||qp(n);else if(l){var r=null;if(o&&o.hasAttribute("formAction")){if(a=o,l=o[Gt]||null)r=l.formAction;else if(Vd(a)!==null)continue}else r=l.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),qp(n)}}}function Xb(){function e(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(l){return a=l})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function Yd(e){this._internalRoot=e}tc.prototype.render=Yd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));var n=t.current,i=$t();Vb(n,i,e,t,null,null)};tc.prototype.unmount=Yd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vb(e.current,2,null,e,null,null),Wu(),t[Ao]=null}};function tc(e){this._internalRoot=e}tc.prototype.unstable_scheduleHydration=function(e){if(e){var t=cg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ni.length&&t!==0&&t<Ni[n].priority;n++);Ni.splice(n,0,e),n===0&&jb(e)}};var jp=Xp.version;if(jp!=="19.3.0")throw Error(A(527,jp,"19.3.0"));ge.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=Y1(t),e=e!==null?Fp(e):null,e=e===null?null:e.stateNode,e};var YE={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(nl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!nl.isDisabled&&nl.supportsFiber))try{Pl=nl.inject(YE),Jt=nl}catch{}var nl;nc.createRoot=function(e,t){if(!Kp(e))throw Error(A(299));var n=!1,i="",a=My,o=Ry,l=Ay;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(o=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Bb(e,1,!1,null,null,n,i,null,a,o,l,Xb),e[Ao]=t.current,Hd(e),new Yd(t)};nc.hydrateRoot=function(e,t,n){if(!Kp(e))throw Error(A(299));var i=!1,a="",o=My,l=Ry,r=Ay,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Bb(e,1,!0,t,n??null,i,a,u,o,l,r,Xb),t.context=Gb(null),n=t.current,i=$t(),i=Kf(i),a=Hi(i),a.callback=null,_i(n,a,i),n=i,t.current.lanes=n,Bl(t,n),Kn(t),e[Ao]=t.current,Hd(e),new tc(t)};nc.version="19.3.0"});var Fb=Ln((YT,Zb)=>{"use strict";T();function Qb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qb)}catch(e){console.error(e)}}Qb(),Zb.exports=Kb()});var lv=Ln(cc=>{"use strict";T();var jE=Symbol.for("react.transitional.element"),XE=Symbol.for("react.fragment");function ov(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:jE,type:e,key:i,ref:t!==void 0?t:null,props:n}}cc.Fragment=XE;cc.jsx=ov;cc.jsxs=ov});var ye=Ln((TN,rv)=>{"use strict";T();rv.exports=lv()});T();T();T();T();var o1=["path","circle","ellipse","line","polyline","polygon","rect","g"],l1={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},r1=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Eh=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,xh=1024;function zc(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function wh(e){let t=zc(e),n={};for(let[i,a]of Object.entries(l1)){let o=t[i],l=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof o=="string"&&o.length<=l&&a.test(o)&&(n[i]=o)}for(let i of r1){let a=t[i];typeof a=="string"&&a.length<=32&&Eh.test(a)&&Math.abs(Number(a))<=1e5&&(n[i]=a)}return n}function Th(e){let{viewBox:t,attrs:n,shapes:i}=zc(e);if(typeof t!="string"||t.length>100)return;let a=t.trim().split(/[\s,]+/);if(a.length!==4||!a.every(u=>Eh.test(u)&&Math.abs(Number(u))<=1e5)||Number(a[2])<=0||Number(a[3])<=0)return;let o=64;function l(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(o--<=0)break;let{tag:s,attrs:m,shapes:y}=zc(p),b=o1.find(w=>w===s);b&&f.push({tag:b,attrs:wh(m),shapes:b==="g"?l(y,c+1):[]})}return f}let r=l(i,0);return r.length?{viewBox:a.join(" "),attrs:wh(n),shapes:r}:void 0}T();var Nh=["siblings","ontology","crosslinks","sidecar"],Dc={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},cr=["view",...Nh,"dock","theme"],Hc={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function sr(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=Dc.view.find(l=>l===t.view),a=Dc.dock.find(l=>l===t.dock),o=Dc.theme.find(l=>l===t.theme);i&&(n.view=i),a&&(n.dock=a),o&&(n.theme=o);for(let l of Nh){let r=t[l];typeof r=="boolean"&&(n[l]=r)}return Object.keys(n).length?n:void 0}var dr=1e4,u1=25e4,c1=256*1024*1024,Uc=24*1024*1024,hr="data/search.json",mr="theme/publication.css",pr=48*1024,kc=["parent","child","left","right","previous","next"],s1=["document","drawing","attachment","folder","tag","url"],f1=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,d1=/^[a-f0-9]{64}$/,Mh=["none","arrow","triangle","bar","dot"],h1=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,m1=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Pc(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function $n(e){return typeof e=="string"&&m1.test(e)}function Ic(e){if(!$n(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function _a(e){return typeof e=="string"&&e.length<=180&&f1.test(e)}function p1(e){return _a(e)&&(e.startsWith("notes/")||e.startsWith("assets/")||e===hr||e===mr)}function Ah(e){if(!p1(e))throw new Error("Invalid offline publication resource");return`local/${e}.css`}function gn(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function ea(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function zn(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function Ch(e,t){return zn(e,0,t-1)&&Number.isInteger(e)}function fr(e,t){let n=gn(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:a,gateRadius:o,icon:l}=n;if(a!==void 0&&!zn(a,6,96))throw new Error("Invalid publication font size");if(o!==void 0&&!zn(o,0,40))throw new Error("Invalid publication gate radius");if(l!=null&&!Ch(l,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:a,gateRadius:o,...l===void 0?{}:{icon:l}}}function g1(e,t){let{center:n,sibling:i,inferred:a}=gn(e);return{center:n===void 0?void 0:fr(n,t),sibling:i===void 0?void 0:fr(i,t),inferred:a===void 0?void 0:fr(a,t)}}function y1(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:o,endHead:l,labelColor:r,labelSize:u}=gn(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!zn(n,.25,20)||i!==void 0&&typeof i!="boolean"||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication link style");let c=Mh.find(p=>p===o),f=Mh.find(p=>p===l);if(o!==void 0&&!c||l!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!zn(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:a,startHead:c,endHead:f,labelColor:r,labelSize:u}}function b1(e){let t=gn(e),n={};if(t.maximum!==void 0){if(!zn(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=gn(t.geometry),a={},o=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let l of o){let r=i[l];if(r!==void 0){if(!zn(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(a,{[l]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...a,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}=gn(t.typography);if(i!==void 0&&!zn(i,6,48)||o!==void 0&&!zn(o,6,48)||a!==void 0&&typeof a!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:a,propertyFontSize:o}}return n}function v1(e){let t=Object.entries(gn(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,a]of t){if(!ea(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(ea(a,1e3)||typeof a=="boolean"||typeof a=="number"&&Number.isFinite(a))n.set(i,a);else if(Array.isArray(a)&&a.length<=48&&a.every(o=>ea(o,1e3)))n.set(i,[...a]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function Oh(e){let t=gn(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!h1.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!$n(t.id)||!$n(t.entry)||!ea(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>dr||!Array.isArray(t.relations)||t.relations.length>u1||!Array.isArray(t.resources)||t.resources.length>dr*4)throw new Error("Invalid publication manifest");let i=0,a=new Set,o=t.resources.map(b=>{let{path:w,bytes:d,sha256:h}=gn(b);if(!_a(w)||a.has(w)||!zn(d,0,32*1024*1024)||!Number.isInteger(d)||typeof h!="string"||!d1.test(h))throw new Error("Invalid publication resource");if(a.add(w),i+=d,i>c1)throw new Error("Publication exceeds package limit");return{path:w,bytes:d,sha256:h}}),l;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>xh)throw new Error("Invalid publication icons");l=t.icons.map(b=>{let w=Th(b);if(!w)throw new Error("Invalid publication icon");return w})}let r=l?.length??0,u=new Set,c=new Set,f=t.nodes.map(b=>{let w=gn(b),{id:d,title:h,aliases:g,asset:S,url:x,trailIcon:M}=w,E=s1.find(N=>N===w.kind);if(!$n(d)||u.has(d)||!ea(h,512)||!E)throw new Error("Invalid publication node");if(u.add(d),E==="document"||E==="drawing"){let N=Ic(d);if(!a.has(N))throw new Error("Missing publication note resource");c.add(N)}if(S!==void 0&&(typeof S!="string"||!S.startsWith("assets/")||!a.has(S)))throw new Error("Missing publication asset");if(x!==void 0&&(E!=="url"||!Pc(x)))throw new Error("Invalid publication web link");if(M!==void 0&&!Ch(M,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>ea(N,512))))throw new Error("Invalid publication aliases");return{id:d,title:h,kind:E,...g===void 0?{}:{aliases:[...g]},...S===void 0?{}:{asset:S},...x===void 0?{}:{url:x},...M===void 0?{}:{trailIcon:M},...w.style===void 0?{}:{style:fr(w.style,r)},...w.roleStyles===void 0?{}:{roleStyles:g1(w.roleStyles,r)},...w.properties===void 0?{}:{properties:v1(w.properties)}}});if(!u.has(t.entry)||[...a].some(b=>b.startsWith("notes/")&&!c.has(b))||t.fullText!==a.has(hr))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(w=>typeof w=="string"&&u.has(w)))throw new Error("Invalid publication pins");p=b.slice()}let s=new Set,m=t.relations.map(b=>{let{source:w,target:d,relationType:h,direction:g,definition:S,role:x,style:M}=gn(b),E=kc.find(R=>R===x);if(typeof w!="string"||typeof d!="string"||w===d||!u.has(w)||!u.has(d)||!E||h!==1&&h!==2||g!==null&&g!==1&&g!==2&&g!==3||S!==void 0&&!ea(S,192))throw new Error("Invalid publication relationship");let N=`${w}/${d}/${E}`;if(s.has(N))throw new Error("Duplicate publication relationship");return s.add(N),{source:w,target:d,role:E,relationType:h,direction:g,...S===void 0?{}:{definition:S},...M===void 0?{}:{style:y1(M)}}}),y=sr(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:m,resources:o,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...y&&{canvasDefaults:y},...l===void 0?{}:{icons:l},...t.appearance===void 0?{}:{appearance:b1(t.appearance)}}}T();var L={licenses:"Runtime licenses",about:"About K-Plex and runtime licenses",close:"Close",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find a thought",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",darkMode:"Dark mode",lightMode:"Light mode",systemTheme:"System theme",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"};T();var X0=K(Fb(),1);T();var te=K(tt(),1);T();var xn=e=>e;T();var Zl={key:"F4"};T();T();T();function Jb(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(a,o)=>o<=8&&(!a||typeof a!="object"||Object.values(a).every(l=>i(l,o+1)));return i(n,0)?n:null}catch{return null}}T();var mt={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},ic={min:.1,max:4,step:.05};function _o(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var ac={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:_o(96,40,240),verticalSpacing:_o(24,12,80),parentColumns:_o(2,1,3),initialGenerations:_o(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=ic.min&&e<=ic.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=ic.min&&e<=ic.max},maximumDepth:_o(10,1,mt.depth),maximumOccurrences:_o(500,16,mt.occurrences)}};function oc(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=a=>Object.prototype.hasOwnProperty.call(t,a)?t[a]:ac.fields[a].defaultValue;for(let[a,o]of Object.entries(ac.fields))if(!o.validate(n(a)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var qd={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},lc={version:0,unavailable:!0};function Ma(e){return typeof e=="string"&&e.length>0&&e.length<=mt.occurrenceCharacters}function Zi(e){if(e==null)return{...qd,expanded:[],collapsed:[],sides:{}};let t=Jb(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return lc;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),a=Reflect.get(t,"expanded"),o=Reflect.get(t,"collapsed"),l=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ma(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(a)||!Array.isArray(o)||a.length>256||o.length>256||!a.every(Ma)||!o.every(Ma)||!l||typeof l!="object"||Array.isArray(l)||Object.keys(l).length>256)return lc;let r=[];for(let[c,f]of Object.entries(l)){let p=f;if(!Ma(c)||p!==-1&&p!==1)return lc;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:xn(n),initialGenerations:i,expanded:[...new Set(a)].sort(),collapsed:[...new Set(o)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=mt.stateCharacters?u:lc}function Wb(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function Fl(e){let t=Zi(e);return t.version===1?t:null}function rc(e,t,n){let i=Zi(e),a=i.version===1&&i.scope===t.layoutRoot?i:Zi(t.stateSuggestion);if(a.version!==1||a.scope!==t.layoutRoot)return null;let o=new Set(a.expanded),l=new Set(a.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(l.delete(u.id),o.add(u.id)):(o.delete(u.id),l.add(u.id));return Fl({...a,expanded:[...o],collapsed:[...l]})}T();var uc=class{constructor(t,n,i,a=750,o){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=a;this.modifierFeedback=o;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function $b(e,t){let n=e.ownerDocument,i=n.defaultView,a=r=>t.modifier(r.altKey,r.isTrusted),o=()=>t.clear(),l=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",a),i.addEventListener("keyup",a),i.addEventListener("blur",o),n.addEventListener("visibilitychange",l),()=>{i.removeEventListener("keydown",a),i.removeEventListener("keyup",a),i.removeEventListener("blur",o),n.removeEventListener("visibilitychange",l),t.clear()}}T();T();T();T();T();var jd={min:8,max:20,step:1,default:12};function Xd(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(jd.min,Math.min(jd.max,e)):jd.default}var Jl=(e,t,n)=>Math.max(t,Math.min(n,e));function ev(e){return Math.max(5,(e.gateRadius??5)*1.05)}function Kd(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function Wl(e,t,n=12.4){return(t?Jl(e*.72,13,24):Jl(e*.62,10,16))*Jl(Number.isFinite(n)?n:12.4,8,28)/12.4}function qE(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((a,o)=>a+(o.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function tv(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function nv(e,t){return e.reduce((n,i)=>Math.max(n,32+qE(i,t)),0)}function iv(e,t,n,i=!1,a=30,o,l=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,Kd(a,i)),f=i?180:112,s=Math.max(f,o??(i?370:286)),m=i?Wl(t,!0,n.baseFontSize)*.55:t*u*.29,y=Jl(70+c*Math.max(4.8,m),f,s),b=(i?16:8)+2*Math.max(0,l),w=Wl(t,i,n.baseFontSize),d=Math.max(i?48:26,Math.ceil(w*1.6+b)),h=Math.ceil(Math.max(t*u,w)*2.4+w*.4+b),g=n.wrapNodeLabels?Math.max(d,h):d,S=Xd(n.propertyFontSize),x=nv(r,S);return{width:r.length?Jl(Math.max(y,x),f,s):y,height:g+tv(r,S)}}function av(e,t,n,i,a=1,o=[]){if(t===1)return e;let l=Xd(i.propertyFontSize),r=nv(o,l),u=Wl(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,a))+tv(o,l))}}var Ye=K(ye(),1);function uv({bounds:e,semanticRole:t,className:n,style:i,...a}){return(0,Ye.jsx)("div",{...a,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function cv({label:e,maximum:t,center:n}){let i=Kd(t??30,n),a=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,Ye.jsx)("span",{className:"kplex-thought-text",title:e,children:a})}function sv({wrap:e,children:t}){return(0,Ye.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function fv({side:e,connected:t,highlighted:n,disabled:i,count:a,...o}){return(0,Ye.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,Ye.jsx)("span",{...o,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),a!==null&&(0,Ye.jsx)("span",{className:"kplex-gate-count",children:a})]})}function dv(e){return(0,Ye.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function hv({label:e,midpoint:t,fontSize:n,color:i,background:a,opacity:o}){if(!e)return null;let l=n??10,r=Math.max(20,e.length*l*.58+10),u=l+6;return(0,Ye.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:o,children:[(0,Ye.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:a}),(0,Ye.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:l,children:e})]})}function Qd(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function mv({prefix:e="kplex"}){return(0,Ye.jsxs)("defs",{children:[(0,Ye.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,Ye.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,Ye.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,Ye.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,Ye.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,Ye.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}T();var pv={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function $l(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function gv(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=$l(e,n);return i.length===1&&i[0]===t?n:void 0}function Zd(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Uo(e){return typeof e=="string"&&e.trim().length>0}function KE(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(pv,e)!==void 0}function yv(e){let t=Zd(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return QE(Oh(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Uo(t.title)||!Uo(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,a=Object.freeze([]);for(let u of t.nodes){let c=Zd(u);if(!c||!Uo(c.id)||!Uo(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=xn(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:a,tags:a,styleTags:a,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let o=n.get(t.entry)?.id;if(!o)throw new Error("Missing publication entry node");let l=new Map,r=new Set;for(let u of t.relations){let c=Zd(u);if(!c||!Uo(c.source)||!Uo(c.target)||!KE(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=pv[c.role],m=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(m))throw new Error("Invalid or duplicate publication relationship");r.add(m),r.add(JSON.stringify([p.id,s,f.id])),Fd(l,f,p,c.role,1,1,c.label),Fd(l,p,f,s,1,2,c.label)}return{title:t.title,entry:o,read:bv(n,l),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function Fd(e,t,n,i,a,o,l){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:a,direction:o,definition:l}))}function QE(e){let t=new Map,n=new Map,i=new Map,a=new Map,o=new Map;for(let l of e.nodes){let r=xn(l.id),u=l.id.slice(0,8),c=a.get(u);c?c.push(r):a.set(u,[r]);let f=l.kind==="folder"?"container":l.kind==="drawing"?"document":l.kind;t.set(r,Object.freeze({id:r,name:l.title,kind:f,resolution:"resolved",url:l.url??null,aliases:l.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,l)}for(let l of e.relations)Fd(i,t.get(l.source),t.get(l.target),l.role,l.relationType,l.direction,l.definition),l.style&&o.set(`${l.source}/${l.target}/${l.role}`,l.style);return{title:e.title,entry:xn(e.entry),read:bv(t,i),nodes:t,shortIds:a,manifest:e,published:n,body:()=>{},linkStyle:(l,r,u)=>o.get(`${l}/${r}/${u}`)}}function bv(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(o,l)=>n.compare(o.name,l.name)||(o.id<l.id?-1:o.id>l.id?1:0);for(let o of t.values())for(let l of o.values())Object.freeze(l.sort((r,u)=>i(r.node,u.node)));let a=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:o=>e.get(o)??null,scope:o=>({coverage:e.has(o)?"local":"unavailable",complete:e.has(o),prepared:e.has(o),pending:!1}),relations(o,l,r){if(!e.has(o))return{items:a,coverage:"unavailable",truncated:!1};let u=t.get(o)?.get(l)??a,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}T();var Ra=K(tt(),1);T();function vv(e,t){let n=cr.map(i=>{let a=t?.get(i)??e.get(i);return[i,a==="1"?!0:a==="0"?!1:a]});return sr(Object.fromEntries(n))??{}}function Jd(e,t){for(let n of cr){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function Wd(e,t){return cr.every(n=>e?.[n]===t?.[n])}var ZE=80;function sc(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-ZE)}function eh(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function er(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),a=i===null?[]:$l(e,i),o=a.length===1?a[0]:void 0,l=eh(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=vv(t.searchParams,n);return{location:{id:o??e.entry,fragment:o||i===null?l:void 0,canvas:r},addressProblem:i===null||o?void 0:a.length?"ambiguous":"missing",matches:a}}function th(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),Jd(i,n),`#${i}`}function Sv(e,t,n,i){try{let a=new URL(e,t);if(a.origin!==t.origin||a.pathname!==t.pathname&&a.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=er(n,a);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:eh(a.hash)};if(!(a.searchParams.get("node")??a.searchParams.get("node-id")))return;let{location:l,addressProblem:r}=er(n,a);return r?void 0:l}catch{return}}function ko(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=th(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),Jd(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function wv(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let a=o=>o.endsWith("/")?o+"index.html":o;return a(i.pathname)!==a(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:er(n,i)}catch{return}}function $d(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function Ev(e,t,n){let i=(0,Ra.useRef)(n);i.current=n;let a=e.manifest?.id,[o,l]=(0,Ra.useState)(()=>{let y=t?er(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&a?$d(t.history.state,a)??{position:0,last:0}:void 0;return{entries:[y.location],index:0,addressProblem:y.addressProblem,browser:b,visits:[y.location]}}),r=o.entries[o.index],u=(0,Ra.useRef)(o.browser?.last??0);(0,Ra.useEffect)(()=>{if(!t||!a)return;let y=t.history,b=d=>{let{location:h,addressProblem:g}=er(e,new URL(t.location.href)),S=$d(d.state,a),x=S?{...S,last:Math.max(S.position,u.current)}:{position:0,last:0};u.current=x.last,y.replaceState({kplexPublication:a,...x},""),i.current(h.id),l(M=>({entries:[h],index:0,addressProblem:g,browser:x,visits:sc(M.visits,h)}))},w=$d(y.state,a)??{position:0,last:0};return y.replaceState({kplexPublication:a,...w},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,a]);function c(y){let b={...y,canvas:{...r.canvas,...y.canvas}};if(!e.nodes.has(b.id)||!o.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&Wd(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&a&&o.browser){let d=o.browser.position+1,h={position:d,last:d};return t.history.pushState({kplexPublication:a,...h},"",ko(new URL(t.location.href),b)),u.current=d,l({entries:[b],index:0,browser:h,visits:sc(o.visits,b)}),!0}let w=o.index+1;return l({entries:[...o.entries.slice(0,w),b],index:w,visits:sc(o.visits,b)}),!0}function f(y){let b={...r.canvas,...y};if(Wd(r.canvas,b))return;let w={...r,canvas:b};t&&a&&o.browser&&t.history.replaceState(t.history.state,"",ko(new URL(t.location.href),w));let d=[...o.entries];d[o.index]=w,l({...o,entries:d})}let p=o.browser?o.browser.position>0:o.index>0,s=o.browser?o.browser.position<o.browser.last:o.index+1<o.entries.length;function m(y){if(y===-1?p:s)if(t&&o.browser)t.history.go(y);else{let b=o.index+y,w=o.entries[b];i.current(w.id),l({...o,index:b,addressProblem:void 0,visits:sc(o.visits,w)})}}return{attention:r,activate:c,changeCanvas:f,move:m,visits:o.visits,addressProblem:o.addressProblem,canGoBack:p,canGoForward:s}}T();var Fi=K(tt(),1);T();var Po=K(tt(),1),Nv=K(wr(),1);T();var FE="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function JE(){}function WE(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function $E(e,t){let i=WE(e)?.closest(FE)??null;return!!(i&&t.contains(i))}function xv(e,t,n,i,a){let o=t+a,l=Math.max(o,t+n-i-a);return Math.min(l,Math.max(o,e))}function ex(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function Tv({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let a=e.ownerDocument,o=a.defaultView;if(!o||t.ownerDocument!==a)return JE;let l=null,r=!1,u=!1,c=!1,f=o.visualViewport,p=(x,M)=>{let E=e.getBoundingClientRect(),N=ex(o),R=xv(x,N.left,N.width,E.width,n),O=xv(M,N.top,N.height,E.height,n);e.style.setProperty("--kplex-dialog-left",`${R}px`),e.style.setProperty("--kplex-dialog-top",`${O}px`),e.classList.add("is-positioned"),u=!0,i?.({left:R,top:O})},s=()=>{if(!u||c)return;let x=e.getBoundingClientRect();p(x.left,x.top)},m=()=>{a.removeEventListener("pointermove",b,!0),a.removeEventListener("pointerup",w,!0),a.removeEventListener("pointercancel",w,!0)},y=()=>{if(!l)return;let x=l.pointerId;l=null,r=!1,m(),t.hasPointerCapture(x)&&t.releasePointerCapture(x),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(x){let M=l;if(!M||x.pointerId!==M.pointerId)return;x.preventDefault(),x.stopPropagation();let E=x.clientX-M.startClientX,N=x.clientY-M.startClientY;if(!r){if(Math.hypot(E,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(M.startLeft+E,M.startTop+N)}function w(x){!l||x.pointerId!==l.pointerId||(x.preventDefault(),x.stopPropagation(),y())}let d=x=>{l?.pointerId===x.pointerId&&y()},h=()=>{y()},g=x=>{if(c||l||x.button!==0||$E(x.target,t))return;let M=e.getBoundingClientRect();l={pointerId:x.pointerId,startClientX:x.clientX,startClientY:x.clientY,startLeft:M.left,startTop:M.top},a.addEventListener("pointermove",b,!0),a.addEventListener("pointerup",w,!0),a.addEventListener("pointercancel",w,!0);try{t.setPointerCapture(x.pointerId)}catch{}x.preventDefault(),x.stopPropagation()},S=()=>{c||(c=!0,y(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",d),o.removeEventListener("blur",h),o.removeEventListener("resize",s),o.removeEventListener("pagehide",S),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",d),o.addEventListener("blur",h),o.addEventListener("resize",s),o.addEventListener("pagehide",S),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),S}function tx(e,t){let n=e.target,i=e.composedPath();return t.some(a=>a?i.includes(a)?!0:n?a.contains(n):!1:!1)}function fc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:a,insideRoots:o,onDismiss:l,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,m]=(0,Po.useState)({}),y=(0,Po.useRef)({insideRoots:o,onDismiss:l,handleEscape:u});y.current={insideRoots:o,onDismiss:l,handleEscape:u};let b=t.current,w=b?.ownerDocument??null,d=b?.closest("[data-floating-layer-boundary]")??null,h=e&&w?d??c(w):null,g=n?.x,S=n?.y;return(0,Po.useLayoutEffect)(()=>{if(!e)return;let x=t.current;if(!x)return;let M=x.ownerDocument,E=M.defaultView;if(!E)return;let N=!1,R=null,O=()=>{if(N)return;let P=t.current;if(!P||P.ownerDocument!==M)return;let C=P.getBoundingClientRect();if(r&&(!P.getClientRects().length||!C.width||!C.height)){y.current.onDismiss("anchor-hidden");return}let B=E.visualViewport,H=d?.getBoundingClientRect(),X=H&&d?H.left+d.clientLeft-d.scrollLeft:0,ie=H&&d?H.top+d.clientTop-d.scrollTop:0,J=Math.max(B?.offsetLeft??0,H?.left??0),k=Math.max(B?.offsetTop??0,H?.top??0),Z=Math.min((B?.offsetLeft??0)+Math.min(E.innerWidth,B?.width??E.innerWidth),H?.right??1/0),fe=Math.min((B?.offsetTop??0)+Math.min(E.innerHeight,B?.height??E.innerHeight),H?.bottom??1/0),he=Math.min(f.viewportMargin,Math.max(0,(Z-J)/2)),nn=g??C.left,ze=S??C.top,Vt=S??C.bottom,ke=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),Z-J-he*2)),Zn=Math.max(J+he,Math.min(R?.left??nn,Z-ke-he)),lt=fe-Vt-f.anchorGap-he,Ot=ze-k-f.anchorGap-he,St=lt<f.minimumMaxHeight&&Ot>lt?ze-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,Ot):Vt+f.anchorGap,Lt=Math.max(k+he,Math.min(R?.top??St,fe-Math.min(f.minimumMaxHeight,Math.max(0,fe-k-he*2))-he));m({position:d?"absolute":"fixed",left:Zn-X,top:Lt-ie,width:ke,maxHeight:Math.max(0,fe-Lt-he)})},D=P=>{tx(P,y.current.insideRoots())||y.current.onDismiss("outside-pointer")},I=P=>{if(P.key!=="Escape"||y.current.handleEscape?.(P)===!1)return;P.preventDefault(),P.stopPropagation(),y.current.onDismiss("escape");let C=t.current;C?.ownerDocument===M&&C.isConnected&&C.focus({preventScroll:!0})},G=E.ResizeObserver,j=G?new G(O):null;j?.observe(x),d&&j?.observe(d),i.current&&j?.observe(i.current),E.addEventListener("resize",O),E.visualViewport?.addEventListener("resize",O),E.visualViewport?.addEventListener("scroll",O),M.addEventListener("scroll",O,!0),M.addEventListener("pointerdown",D,!0),M.addEventListener("keydown",I,!0);let q=i.current,le=a?.current,ne=q&&le?Tv({modalEl:q,handleEl:le,viewportMargin:f.viewportMargin,onPositionChange:P=>{R=P,O()}}):void 0,de=()=>{N||(N=!0,ne?.(),j?.disconnect(),E.removeEventListener("resize",O),E.visualViewport?.removeEventListener("resize",O),E.visualViewport?.removeEventListener("scroll",O),M.removeEventListener("scroll",O,!0),M.removeEventListener("pointerdown",D,!0),M.removeEventListener("keydown",I,!0),E.removeEventListener("pagehide",de))};return E.addEventListener("pagehide",de),O(),de},[e,r,t,g,S,i,a,w,d,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),h?(0,Nv.createPortal)(p(s),h):null}var Tn=K(ye(),1),nx={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function Mv({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:a}){let o=(0,Fi.useRef)(e),l=(0,Fi.useRef)(null),r=(0,Fi.useRef)(!0),[u,c]=(0,Fi.useState)();o.current=e,(0,Fi.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let m=e.ownerDocument.defaultView?.navigator.clipboard;if(!m)throw new Error("Clipboard unavailable");await m.writeText(s),r.current&&(a(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[m,y]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?m:s.key==="End"||s.target===m?y:m;s.preventDefault(),b?.focus()}return(0,Tn.jsx)(fc,{open:!0,anchorRef:o,panelRef:l,insideRoots:()=>[l.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:nx,children:s=>(0,Tn.jsx)("div",{ref:l,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":L.copyAddress,onKeyDown:p,children:u?(0,Tn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":L.address,value:u,onFocus:m=>m.currentTarget.select()}):(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:L.copyShortAddress}),(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:L.copyFullAddress}),!n&&(0,Tn.jsx)("p",{children:L.ambiguousAddress})]})})})}T();var Ji=K(tt(),1);var Nn=K(ye(),1),ix={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180};function Rv({anchor:e,point:t,choices:n,onDismiss:i}){let a=(0,Ji.useRef)(e),o=(0,Ji.useRef)(null),l=(0,Ji.useRef)(null),[r,u]=(0,Ji.useState)(null);a.current=e;function c(){let m=l.current;(m?.querySelector("[aria-checked=true]")??m?.querySelector("button"))?.focus()}(0,Ji.useLayoutEffect)(()=>{r&&c()},[r]);function f(){u(null),o.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function p(m){if(m.key==="Tab"){i();return}let y=m.target,b=y.closest("[role=menu]");if(b){if(m.key==="ArrowRight"&&y.getAttribute("aria-haspopup")==="menu")r?c():y.click();else if(m.key==="ArrowLeft"&&b!==o.current)f();else if(["ArrowDown","ArrowUp","Home","End"].includes(m.key)){let w=Array.from(b.querySelectorAll("button")).filter(g=>g.closest("[role=menu]")===b),d=w.indexOf(y),h=m.key==="Home"?0:m.key==="End"?w.length-1:(d+(m.key==="ArrowDown"?1:-1)+w.length)%w.length;w[h]?.focus()}else return;m.preventDefault(),m.stopPropagation()}}function s({label:m,kind:y,checked:b,select:w},d,h=!1){return(0,Nn.jsxs)("button",{type:"button",role:y,"aria-checked":b,autoFocus:h&&d===0,onClick:()=>{w(),i(),e.focus({preventScroll:!0})},children:[(0,Nn.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:b?"✓":""}),m]},m)}return(0,Nn.jsx)(fc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:ix,handleEscape:m=>r?(m.preventDefault(),m.stopPropagation(),f(),!1):!0,children:m=>(0,Nn.jsx)("div",{ref:o,style:m,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":L.graphOptions,onKeyDown:p,children:n.map((y,b)=>"choices"in y?(0,Nn.jsxs)("div",{role:"none",children:[(0,Nn.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":r===y.label,onClick:()=>r===y.label?f():u(y.label),children:[(0,Nn.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),y.label,(0,Nn.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),r===y.label&&(0,Nn.jsx)("div",{ref:l,role:"menu","aria-label":y.label,children:y.choices.map((w,d)=>s(w,d))})]},y.label):s(y,b,!0))})})}T();var Av=K(tt(),1),Cv=K(ye(),1);function nh({icon:e,size:t,className:n}){function i(a,o){return(0,Av.createElement)(a.tag,{...a.attrs,key:o},a.shapes.length?a.shapes.map(i):void 0)}return(0,Cv.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}T();var dc=K(tt(),1);var Qe=K(ye(),1);function Ov(){let e=(0,dc.useRef)(null),t=(0,dc.useId)(),n=typeof _>"u"?[]:_;return n.length?(0,Qe.jsxs)(Qe.Fragment,{children:[(0,Qe.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":L.about,"aria-haspopup":"dialog",onClick:()=>e.current?.showModal(),children:(0,Qe.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Qe.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,Qe.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,Qe.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,Qe.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,Qe.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,Qe.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),(0,Qe.jsxs)("dialog",{className:"kplex-publication-license-dialog",ref:e,"aria-labelledby":t,onKeyDown:i=>i.stopPropagation(),children:[(0,Qe.jsxs)("div",{className:"kplex-publication-license-heading",children:[(0,Qe.jsx)("h2",{id:t,children:L.licenses}),(0,Qe.jsx)("button",{type:"button",autoFocus:!0,onClick:()=>e.current?.close(),children:L.close})]}),n.map(([i,a])=>(0,Qe.jsxs)("section",{children:[(0,Qe.jsx)("h3",{children:i}),(0,Qe.jsx)("pre",{children:a})]},i))]})]}):null}T();var nr=K(tt(),1);T();T();function Lv(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let a=e[i],o=e[i-1];if(n>a.offset&&i<e.length-1)continue;let l=a.offset>o.offset?(n-o.offset)/(a.offset-o.offset):1,r=(u,c)=>u+(c-u)*l;return{offset:n,x:r(o.x,a.x),y:r(o.y,a.y),scaleX:r(o.scaleX,a.scaleX),scaleY:r(o.scaleY,a.scaleY),originX:r(o.originX,a.originX),originY:r(o.originY,a.originY)}}return null}var hc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,a){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let o=t.animate(n,{...i,fill:"none"});if(!o)return null;this.animations.set(t,o),a&&this.poses.set(t,{animation:o,frames:a});let l=()=>{this.animations.get(t)===o&&(this.animations.delete(t),this.poses.delete(t))};return o.finished.then(l,l),o}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?Lv(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};T();function zv(e,t,n,i){let a=Math.max(.01,n),o=(e.left-t.left)/a,l=(e.top-t.top)/a,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(o,l),f=Math.min(24/a,c*.08),p=c?-l/c:0,s=c?o/c:0;return[0,.35,.65,.85,1].map(m=>{let y=m===0||m===1?0:Math.sin(Math.PI*m),b=o*(1-m)+p*f*y,w=l*(1-m)+s*f*y,d=1+.055*y;return i?.push({offset:m,x:b,y:w,scaleX:(r+(1-r)*m)*d,scaleY:(u+(1-u)*m)*d,originX:0,originY:0}),{offset:m,transformOrigin:"0 0",transform:`translate(${b}px, ${w}px) scale(${(r+(1-r)*m)*d}, ${(u+(1-u)*m)*d})`,opacity:1}})}T();var tr=K(tt(),1),mc=K(ye(),1),Aa="[data-publication-strip-scroll]";function Dv({id:e,label:t,panel:n,start:i,onScroll:a,children:o}){let l=(0,tr.useRef)(null),r=(0,tr.useRef)(i);return(0,tr.useLayoutEffect)(()=>{l.current&&(l.current.scrollTop=r.current)},[]),(0,mc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,mc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:l,role:"region","aria-label":t,tabIndex:0,onScroll:u=>a(u.currentTarget.scrollTop),children:(0,mc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:o})})})}var pc={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function Hv(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(Aa),a=>[a,a.getBoundingClientRect()])),i=[];for(let a of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let o=a.getBoundingClientRect(),l=a.closest(Aa),r=l?n.get(l)??t:t;o.left>=Math.min(t.right,r.right)||o.right<=Math.max(t.left,r.left)||o.top>=Math.min(t.bottom,r.bottom)||o.bottom<=Math.max(t.top,r.top)||i.push({element:a,id:a.dataset.publicationNode,occurrence:a.dataset.publicationOccurrence,rect:o,clipped:r!==t&&(o.top<r.top||o.bottom>r.bottom)})}return i}function ax(e,t){let n=new Set(e),i=new Map(e.map(l=>[l.occurrence,l])),a=new Map;for(let l of e){let r=a.get(l.id);r?r.push(l):a.set(l.id,[l])}let o=new Map;for(let l of t){let r=i.get(l.occurrence);r?.id===l.id&&(o.set(l,r),n.delete(r))}for(let l of t){if(o.has(l))continue;let r,u=1/0;for(let c of a.get(l.id)??[]){if(!n.has(c))continue;let f=Math.hypot(l.rect.x-c.rect.x,l.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(o.set(l,r),n.delete(r))}return{pairs:o,remaining:n}}function _v(e,t){let n=(0,nr.useRef)(new hc).current,i=(0,nr.useRef)(null);function a(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,nr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",a),()=>{r?.removeEventListener("change",a),a()}},[]);function o(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){a();return}i.current={id:r,cards:Hv(u)}}}function l(r,u){let c=e.current,f=t.current,p=i.current;if(a(),!c||!f||p?.id!==r)return;let s=Hv(c),{pairs:m,remaining:y}=ax(p.cards,s);for(let d of s){let h=m.get(d)?.rect;h?(Math.abs(h.left-d.rect.left)>.5||Math.abs(h.top-d.rect.top)>.5||Math.abs(h.width-d.rect.width)>.5||Math.abs(h.height-d.rect.height)>.5)&&n.play(d.element,zv(h,d.rect,u),pc):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],pc)}let b=f.getBoundingClientRect();for(let d of y){if(d.clipped||d.element.isConnected)continue;let h=d.element.cloneNode(!0);h.removeAttribute("role"),h.removeAttribute("tabindex"),h.removeAttribute("data-publication-node"),h.removeAttribute("data-publication-occurrence"),h.removeAttribute("data-publication-center"),h.style.left=`${d.rect.left-b.left}px`,h.style.top=`${d.rect.top-b.top}px`;let g=d.rect.width/parseFloat(h.style.width),S=d.rect.height/parseFloat(h.style.height);f.append(h);let x=n.play(h,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${S})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${S*.95})`}],{...pc,duration:200});x?x.finished.then(()=>h.remove(),()=>h.remove()):h.remove()}let w=c.querySelector(".kplex-links");w&&n.play(w,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],pc)}return{capture:o,play:l,cancel:a}}T();var At=K(tt(),1);T();var ir=K(ye(),1);function Uv({label:e,controlId:t,children:n,layout:i="stacked",actions:a,className:o=""}){return(0,ir.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${a?" has-actions":""} ${o}`,children:[(0,ir.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,a?(0,ir.jsx)("div",{className:"kplex-field-actions",children:a}):null]})}T();var gc=K(tt(),1);T();var Le=K(tt(),1),Pv=K(wr(),1),vt=K(ye(),1);function ox(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),a=i.indexOf(n);if(a>=0)return new Set(Array.from({length:n.length},(r,u)=>a+u));let o=new Set,l=0;for(let r of n){let u=i.indexOf(r,l);if(u<0)return new Set;o.add(u),l=u+1}return o}function kv(e,t){let n=ox(e,t);if(!n.size)return e;let i=[],a=0,o=n.has(0);for(let l=1;l<=e.length;l+=1){let r=l<e.length&&n.has(l);if(l<e.length&&r===o)continue;let u=e.slice(a,l);i.push(o?(0,vt.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${a}:m`):(0,vt.jsx)("span",{children:u},`${a}:t`)),a=l,o=r}return(0,vt.jsx)(vt.Fragment,{children:i})}function Iv({value:e,onChange:t,results:n,getResults:i,onChoose:a,getKey:o,getLabel:l,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:m=!1,disabled:y=!1,floating:b=!1,floatingMode:w="app",portalSelector:d,appTopbarSelector:h,maxFloatingHeight:g=440,minFloatingWidth:S=0,resultsClassName:x="",matchingQuery:M,resultsOwnerId:E,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:R,onEnterWithoutResult:O,onCtrlEnter:D,openResultsOnFocus:I=!0,onFocusChange:G,onDismiss:j,focusRequest:q,inputTitle:le,inputKeyShortcuts:ne,className:de="",highlightMatches:P=!0,closeOnChoose:C=!0,closeOnBlur:B=!1,combobox:H=!1,advanceOnChoose:X=!1,disclosure:ie}){let J=(0,Le.useId)(),[k,Z]=(0,Le.useState)(!1),[fe,he]=(0,Le.useState)(!1),[nn,ze]=(0,Le.useState)(!1),[Vt,ke]=(0,Le.useState)(!1),[Zn,lt]=(0,Le.useState)(0),[Ot,St]=(0,Le.useState)(null),Lt=(0,Le.useRef)(null),Fn=(0,Le.useRef)(null),Rn=(0,Le.useRef)(null),An=k&&!nn&&(Vt||I||fe&&e.trim().length>0),ve=(0,Le.useMemo)(()=>An?i?.(e)??n??[]:[],[An,i,n,e]),et=ve.length?Math.max(0,Math.min(ve.length-1,Zn)):0,wt=Lt.current?.ownerDocument??null,De=wt?.defaultView??null,Cn=b?w==="viewport"?wt?.body??null:d?Lt.current?.closest(d)??null:null:null,Yt=k&&ve.length>0&&(!b||!!(Cn&&Ot)),mn=()=>{ke(!1),ze(!0),lt(0),j?.()},qt=()=>{ie&&(ie.onOpen(),Rn.current?.focus({preventScroll:!0}),Z(!0),ke(!0),ze(!1),lt(0))},Oa=U=>{ke(!1),Z(!U),he(!1),ze(!U),lt(0);let ae=Rn.current;U&&ae&&ae.ownerDocument.activeElement===ae&&ae.blur(),G?.(!1)},yi=()=>Oa(!0),pn=U=>{if(a(U),C){Oa(!H);return}X&&ve.length>0&<(ae=>(Math.max(0,Math.min(ve.length-1,ae))+1)%ve.length)};(0,Le.useEffect)(()=>{lt(0)},[e]);let Pe=(0,Le.useCallback)(()=>{let U=Rn.current;U&&(Z(!0),he(!1),ze(!1),U.focus({preventScroll:!0}),G?.(!0))},[G]);(0,Le.useEffect)(()=>{m&&Pe()},[m,Pe]),(0,Le.useEffect)(()=>{q&&Pe()},[q,Pe]),(0,Le.useEffect)(()=>{let U=Lt.current;if(!U)return;let ae=()=>mn();return U.addEventListener("kplex-dismiss-suggestions",ae),()=>U.removeEventListener("kplex-dismiss-suggestions",ae)},[j]),(0,Le.useEffect)(()=>{if(!k||!wt||!De)return;let U=Lt.current;if(!U)return;let ae=zt=>{let Dt=zt.target;Dt&&(U.contains(Dt)||Fn.current?.contains(Dt))||yi()},qe=()=>wt.removeEventListener("pointerdown",ae,!0);return wt.addEventListener("pointerdown",ae,!0),De.addEventListener("pagehide",qe,{once:!0}),()=>{qe(),De.removeEventListener("pagehide",qe)}},[k,wt,De]),(0,Le.useLayoutEffect)(()=>{if(!b||!k||!ve.length){St(null);return}let U=Lt.current;if(!U||!De)return;let ae=De.visualViewport,qe=()=>{let Wn=U.getBoundingClientRect(),Ht=8,Da=6;if(w==="viewport"){let On=ae?.offsetLeft??0,Vo=ae?.offsetTop??0,Yo=ae?.width??De.innerWidth,qo=Vo+(ae?.height??De.innerHeight),jo=Math.min(Math.max(Wn.width,S),Math.max(0,Yo-Ht*2)),ur=Math.max(On+Ht,Math.min(Wn.left,On+Yo-Ht-jo)),Xo=Math.max(Wn.bottom+Da,Vo+Ht),yh=Math.min(Wn.top-Da,qo-Ht),Oc=Math.max(0,qo-Ht-Xo),bh=Math.max(0,yh-Vo-Ht),vh=Oc>=Math.min(180,g)||Oc>=bh,F0=Math.max(0,Math.min(g,vh?Oc:bh)),Lc={position:"fixed",left:ur,width:jo,maxHeight:F0,zIndex:1e4};vh?Lc.top=Xo:Lc.bottom=De.innerHeight-yh,St(Lc);return}let Ha=d?U.closest(d)??null:null,rr=h?U.closest(h)??null:null;if(!Ha||!rr)return;let v=Ha.getBoundingClientRect(),z=rr.getBoundingClientRect(),Y=Math.max(0,v.width-Ht*2),$=Math.min(780,Math.max(Wn.width,Math.min(620,Y)),Y),ce=Ht,F=Math.max(ce,v.width-Ht-$),He=Math.min(F,Math.max(ce,Wn.left-v.left)),pt=Math.max(0,z.bottom-v.top+Da),Et=Math.max(0,Math.min(g,v.height-pt-Ht));St({left:He,top:pt,width:$,maxHeight:Et})};qe();let zt=De.ResizeObserver,Dt=zt?new zt(qe):null,$i=w==="app"&&d?U.closest(d):null,lr=w==="app"&&h?U.closest(h):null;$i&&Dt?.observe($i),lr&&Dt?.observe(lr),Dt?.observe(U);let za=()=>{Dt?.disconnect(),De.removeEventListener("resize",qe),De.removeEventListener("scroll",qe,!0),ae?.removeEventListener("resize",qe),ae?.removeEventListener("scroll",qe)};return De.addEventListener("resize",qe),De.addEventListener("scroll",qe,!0),ae?.addEventListener("resize",qe),ae?.addEventListener("scroll",qe),De.addEventListener("pagehide",za,{once:!0}),()=>{za(),De.removeEventListener("pagehide",za)}},[h,b,w,k,ve.length,g,S,wt,De,d]),(0,Le.useEffect)(()=>{let U=Fn.current;!U||!ve.length||U.querySelector(`[data-kplex-fuzzy-index="${et}"]`)?.scrollIntoView({block:"nearest"})},[et,ve.length]);let Jn=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){mn(),Z(!1),G?.(!1);return}if(U.key==="Escape"){ve.length&&(U.preventDefault(),U.stopPropagation(),mn());return}if(H&&ie&&U.key==="ArrowDown"&&!ve.length){U.preventDefault(),qt();return}if(U.key==="ArrowDown"&&ve.length){U.preventDefault(),lt(ae=>Math.min(ve.length-1,ae+1));return}if(U.key==="ArrowUp"&&ve.length){U.preventDefault(),lt(ae=>Math.max(0,ae-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&ve.length&&(!(U.ctrlKey||U.metaKey)||N)){U.preventDefault(),U.stopPropagation();let ae=ve[et];ae&&pn(ae);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&D){U.preventDefault(),U.stopPropagation(),D();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!D)&&U.key==="Enter"){U.preventDefault();let ae=ve[et];ae?pn(ae):O?.()}}},La=k&&ve.length>0?(0,vt.jsx)("div",{ref:Fn,id:H?J:void 0,role:H?"listbox":void 0,"aria-labelledby":H?p:void 0,"aria-label":H&&!p?c:void 0,"data-fuzzy-owner":E,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${x?` ${x}`:""}`,style:b?Ot??void 0:void 0,children:ve.map((U,ae)=>{let qe=l(U),zt=r?.(U),Dt=P?M??e:"";return(0,vt.jsxs)("button",{id:H?`${J}-option-${ae}`:void 0,role:H?"option":void 0,"aria-selected":H?ae===et:void 0,tabIndex:H?-1:void 0,"data-kplex-fuzzy-index":ae,className:`kplex-search-result${R?" has-prefix":""}${ae===et?" is-selected":""}`,"aria-label":zt?`${qe}
|
|
767
|
-
${zt}`:qe,onMouseDown:$i=>$i.preventDefault(),onMouseEnter:()=>lt(ae),onClick:()=>pn(U),children:[R?(0,vt.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:R(U)}):null,(0,vt.jsx)("span",{children:kv(qe,Dt)}),zt?(0,vt.jsx)("small",{children:kv(zt,Dt)}):null]},o(U))})}):null,Cc=b&&Cn&&Ot&&La?(0,Pv.createPortal)(La,Cn):b?null:La;return(0,vt.jsxs)("div",{ref:Lt,className:`kplex-search-shell kplex-fuzzy-search${de?` ${de}`:""}`,children:[s?(0,vt.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,vt.jsx)("input",{ref:Rn,type:"text",role:H?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:y,onChange:U=>{ke(!1),he(!0),ze(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),he(!1),ze(!1),G?.(!0)},onBlur:B?yi:void 0,onKeyDown:Jn,placeholder:u,"aria-label":p?void 0:c,title:le,"aria-keyshortcuts":ne,"aria-labelledby":p,"aria-expanded":H?Yt:k&&ve.length>0,"aria-haspopup":H?"listbox":void 0,"aria-autocomplete":H?"list":void 0,"aria-controls":H&&Yt?J:void 0,"aria-activedescendant":H&&Yt?`${J}-option-${et}`:void 0,autoComplete:"off"}),ie?(0,vt.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:H?-1:void 0,disabled:y,"aria-label":ie.label,"aria-expanded":H?Yt:k&&ve.length>0,"aria-haspopup":H?"listbox":void 0,"aria-controls":H&&Yt?J:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(k&&Vt&&!nn){mn();return}qt()},children:ie.icon}):null,Cc]})}var Gv=K(ye(),1);function Bv({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:a,revision:o,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:m}){let[y,b]=(0,gc.useState)(""),w=(0,gc.useCallback)(d=>e.search(d,24),[e,o]);return(0,Gv.jsx)(Iv,{value:y,onChange:b,getResults:w,onChoose:d=>{a(d.node.id),p&&b("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:m,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:l,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}T();T();var lx=1e5,rx=8*1024*1024,Vv=1e6,ux=/[\p{L}\p{N}]+/gu,cx=/^[\p{L}\p{N}]{1,128}$/u;function Yv(e){return[...new Set(e.normalize("NFC").toLowerCase().match(ux))].filter(t=>t.length<=128)}function sx(e,t){if(!Array.isArray(e)||e.length>dr)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(a=>{if(!a||typeof a!="object"||!("id"in a)||!$n(a.id)||n.has(a.id)||t&&!t.has(a.id)||!("text"in a)||typeof a.text!="string"||a.text.length>lx)throw new Error("Invalid publication search row");if(n.add(a.id),i+=a.text.length,i>rx)throw new Error("Publication search exceeds its text budget");return{id:a.id,text:a.text}})}function qv(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>Vv)throw new Error("Invalid publication search index");let n=sx(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let a="",o=0,l=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!cx.test(u)||u!==u.normalize("NFC").toLowerCase()||a>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(a=u,o+=c.length,o>Vv)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:l}}function Ca(e){return e.trim().normalize("NFC").toLowerCase()}function jv(e,t){let n=new Set([...t.published.values()].filter(a=>a.kind==="document"||a.kind==="drawing").map(a=>a.id)),i=qv(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:a},o)=>[a,o])),postings:new Map(i.terms)}}function fx(e,t){let n=Math.max(0,Ca(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function Xv(e,t){let n=new Map,i=[...e.nodes.values()].map(o=>{let l=Ca(o.name),r=o.aliases.map(Ca),u=Object.values(e.published.get(o.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Ca);for(let c of[l,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(o.id)}return{node:o,title:l,aliases:r,properties:u}});return{graph:{search(o,l){let r=Ca(o.slice(0,128));if(!r)return[];let u=Yv(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:m,properties:y})=>{let b=t?.positions.get(p.id),w=s===r?1:m.includes(r)?2:s.startsWith(r)?3:m.some(d=>d.startsWith(r))?4:s.includes(r)?5:m.some(d=>d.includes(r))||y.some(d=>d.includes(r))?6:b!==void 0&&f?.every(d=>d.has(b))?7:0;return w?[{score:w,node:p,position:b,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,l).map(({score:p,node:s,position:m,title:y})=>{let b=p===7&&m!==void 0?t?.rows[m]?.text:void 0,w=b&&c?fx(b,c):n.get(y).size>1?s.id:s.aliases.find(d=>Ca(d).includes(r))??"";return{node:s,label:s.name,detail:w}})}},address(o){let l=Ca(o),r=$l(e,l);return r.length?r:[...n.get(l)??[]]}}}var We=K(ye(),1);function Kv({publication:e,resources:t,page:n,searchFocus:i,onChoose:a}){let o=(0,At.useRef)(null),l=(0,At.useId)(),[r,u]=(0,At.useState)(""),[c,f]=(0,At.useState)([]),[p,s]=(0,At.useState)(!1),[m,y]=(0,At.useState)(!1),[b,w]=(0,At.useState)(null),[d,h]=(0,At.useState)(!1),g=(0,At.useMemo)(()=>Xv(e,m?b:null),[e,m,b]);(0,At.useEffect)(()=>{let x=o.current?.ownerDocument.defaultView;if(!m||!x||b)return;let M=new x.AbortController,E=M.signal;return h(!1),t.text(hr,E).then(N=>{E.aborted||w(jv(JSON.parse(N),e))}).catch(()=>{E.aborted||h(!0)}),()=>M.abort()},[m,e,t,b]);function S(x){x.preventDefault();let M=wv(r.trim(),n(),e),E=M?M.matches:g.address(r);if(E.length!==1){f(E),s(!E.length);return}f([]),s(!1),a(M?.location??{id:E[0]})}return(0,We.jsxs)("div",{className:"kplex-publication-tools",ref:o,children:[(0,We.jsx)(Bv,{graph:g.graph,revision:b&&m?1:0,onActivate:x=>a({id:x}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:L.find,ariaLabel:L.find,focusRequest:i,inputTitle:`${L.find} (${Zl.key})`,inputKeyShortcuts:Zl.key}),e.manifest?.fullText&&(0,We.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,We.jsx)("button",{type:"button","aria-pressed":m,onClick:()=>y(x=>!x),children:L.fullText}),d&&m?(0,We.jsx)("span",{role:"status",children:L.searchUnavailable}):m&&!b?(0,We.jsx)("span",{role:"status",children:L.searchLoading}):null]}),(0,We.jsxs)("form",{className:"kplex-publication-address",onSubmit:S,children:[(0,We.jsx)(Uv,{label:L.address,layout:"inline",controlId:l,actions:(0,We.jsx)("button",{type:"submit",children:L.open}),children:(0,We.jsx)("input",{id:l,type:"text",autoComplete:"off",maxLength:512,value:r,onChange:x=>{u(x.currentTarget.value),f([]),s(!1)}})}),p&&(0,We.jsx)("span",{role:"status",children:L.nodeUnavailable}),c.length>1&&(0,We.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,We.jsx)("p",{children:L.chooseNote}),(0,We.jsx)("ul",{children:c.slice(0,24).map(x=>(0,We.jsx)("li",{children:(0,We.jsxs)("button",{type:"button",onClick:()=>{f([]),a({id:x})},children:[e.nodes.get(x)?.name," · ",x]})},x))}),c.length>24&&(0,We.jsx)("p",{children:L.chooseAddress})]})]})]})}T();var Ct=K(tt(),1);T();var dx="https://api.github.com",hx="https://github.com",mx=/^[a-z\d][a-z\d-]{0,38}$/i,px=/^[a-z\d_.-]{1,100}$/i;function Qv(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function Zv(e){if(!Pc(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,a="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let o;try{o=a.slice(1).replace(/\/$/,"").split("/").map(m=>decodeURIComponent(m))}catch{return{}}let[l,r,u,...c]=o;if(!l||!r||!mx.test(l)||!px.test(r)||r==="."||r==="..")return{};let f=`${l}/${r}`,p=`${dx}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let m=s.split("...");if(m.length===2&&m.every(Qv))return{repository:f,preview:{api:`${p}/compare/${m.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let m=c.slice(1).join("/");if(Qv(m))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(m)}`,caption:m,comparison:!1}}}return{repository:f}}function ih(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ah(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function Fv(e,t,n){let i=ih(n);if(!t.comparison)return{title:ah(i.title??i.name??i.full_name,240)??t.caption,description:ah(i.body??i.description,16e3)};let a=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(o=>{let{sha:l,commit:r}=ih(o);if(typeof l!="string"||!/^[a-f\d]{40}$/i.test(l))return[];let u=ah(ih(r).message,240);return[{sha:l.slice(0,7),title:u?.split(/\r?\n/,1)[0]??l.slice(0,7),href:`${hx}/${e}/commit/${l}`}]}):[];return{title:t.caption,commits:a,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=a.length?i.total_commits:a.length}}T();var yc="http://www.w3.org/1999/xhtml",Io="http://www.w3.org/2000/svg",gx="http://www.w3.org/1999/xlink",Jv="http://www.w3.org/XML/1998/namespace",yx=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),bx=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),vx=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),Sx=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),wx=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),Wv=/^[-a-z0-9_]{1,96}$/i,Ex=/^[\d\s+.,%()a-z-]+$/i,xx=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,Tx=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,Nx=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,Mx=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,$v=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,e0=4*1024*1024;function bc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function Rx(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function Ax(e,t=""){if(!$n(e)||t&&!bc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function t0(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!$n(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!bc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let a=Ax(n[1],i);return t.siteURL?new URL(a,t.siteURL).href:a}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return bc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return n0(e,t)??(t.allowExternalLinks===!1?null:Rx(e))}function n0(e,t){let n=e.slice(2);return!Mx.test(e)||!_a(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function Cx(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let a=i.getAttribute("id");a&&/^[a-z0-9_.:-]{1,160}$/i.test(a)&&!n.has(a)&&n.set(a,`${t}-${n.size+1}`)}return n}function i0(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function a0(e,t,n,i){let a=n0(n,i);a&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,a))}function Ox(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let a=`data-publication-${i}`,o=e.getAttribute(a)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(o)&&(t.setAttribute(a,o),t.style.setProperty(`--kplex-published-drawing-${i}`,o.endsWith("%")?o:`${o}px`))}}function Lx(e,t,n){let i=e.localName,a=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(a&&bc(a)&&(t.id=n.idPrefix?`${n.idPrefix}-${a}`:a,t.setAttribute("data-publication-fragment",a)),i==="a"&&i0(t,t0(e.getAttribute("href")??"",n)),i==="figure"&&Ox(e,t),i==="img"||i==="audio"||i==="video"){let o=e.getAttribute("src")??"";(i==="img"?$v:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(o)&&a0(t,"src",o,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let o=e.getAttribute("data-callout");o&&Wv.test(o)&&t.setAttribute("data-callout",o)}if(i==="ol"){let o=e.getAttribute("start");o&&/^\d{1,7}$/.test(o)&&t.setAttribute("start",o)}}var zx=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,Dx=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,Hx=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,_x=new Set(["text","tspan","textPath"]),Ux={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},kx=512*1024;function Px(e,t){let n=new Map,i=[],a=0;for(let o of Array.from(e.children))if(!(o.namespaceURI!==Io||o.localName!=="defs"))for(let l of Array.from(o.children)){if(l.namespaceURI!==Io||l.localName!=="style"||l.childElementCount)continue;let r=l.textContent??"";if(a+=r.length,a>kx)return{families:new Map,rules:[]};for(let u of r.matchAll(zx)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(Ux[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let m=new Map;for(let b of u[6].split(";")){let[w,d]=b.split(":").map(h=>h.trim().toLowerCase());d&&(w==="unicode-range"&&d.length<=8192&&Hx.test(d)||w==="font-weight"&&Dx.test(d)||w==="font-style"&&/^(?:normal|italic|oblique)$/.test(d))&&m.set(w,d)}let y=[...m].map(([b,w])=>`${b}:${w};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${y}}`)}}return{families:n,rules:i}}function Ix(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function Bx(e,t,n,i,a){for(let o of Array.from(e.attributes)){let{localName:l,value:r}=o;if(!(r.length>65536)){if(_x.has(e.localName)&&(l==="style"&&!o.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||l==="space"&&o.namespaceURI===Jv&&r==="preserve")){t.setAttributeNS(Jv,"xml:space","preserve");continue}if(l==="href"&&(o.namespaceURI===null||o.namespaceURI===gx)){if(e.localName==="a")i0(t,t0(r,i));else if(e.localName==="image"&&$v.test(r))a0(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!o.namespaceURI)if(l==="id"){let u=n.get(r);u&&t.setAttribute(l,u)}else if(wx.has(l)){let u=Nx.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(l,`url(#${c})`):Tx.test(r)&&t.setAttribute(l,r)}else vx.has(l)&&Ex.test(r)?t.setAttribute(l,r):Sx.has(l)&&xx.test(r)&&t.setAttribute(l,l==="font-family"?Ix(r,a?.families):r)}}}function Gx(e,t,n){if(n.idPrefix&&!Wv.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=n.siteURL?t:t.implementation.createDocument(null,null),o=a.adoptNode(new i.DocumentFragment),l=0,r=0,u=0,c=new Set,f=(p,s,m,y,b)=>{if(++l>1e5||m>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let d=p.nodeValue??"";if(u+=d.length,u>e0)throw new Error("Publication content too large");s.appendChild(a.createTextNode(d));return}if(p.nodeType!==1)return;let w=p;if(w.namespaceURI===Io&&bx.has(w.localName)){if(w.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;y=Cx(w,g),b=n.allowDrawingFonts?Px(w,g):void 0}if(!y)return;let d=a.createElementNS(Io,w.localName);Bx(w,d,y,n,b);let h=d.getAttribute("id");if(h&&c.has(h)?d.removeAttribute("id"):h&&c.add(h),s.appendChild(d),w.localName==="svg"&&b?.rules.length){let g=a.createElementNS(Io,"defs"),S=a.createElementNS(Io,"style");S.textContent=b.rules.join(`
|
|
768
|
-
`),g.appendChild(S),d.appendChild(g)}for(let g of Array.from(w.childNodes))f(g,d,m+1,y,b)}else if(!y&&w.namespaceURI===yc&&yx.has(w.localName)){if(n.drawingMode&&w.localName==="figure"&&w.getAttribute("data-publication-drawing")==="true"){let h=w.getAttribute("data-publication-drawing-mode");if((h==="light"||h==="dark")&&h!==n.drawingMode)return}let d=a.createElementNS(yc,w.localName);Lx(w,d,n),s.appendChild(d);for(let h of Array.from(w.childNodes))f(h,d,m+1,null)}};for(let p of e)f(p,o,0,null);return o}function o0(e,t,n){if(e.length>e0||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let a=new i.DOMParser().parseFromString(`<article xmlns="${yc}">${e}</article>`,"application/xhtml+xml");if(a.documentElement.namespaceURI!==yc||a.querySelector("parsererror"))throw new Error("Invalid publication markup");return Gx(Array.from(a.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}T();var Bo=K(tt(),1);T();async function l0(e,t,n,i){let a=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),o=a.body?.getReader();if(!a.ok||!o||Number(a.headers.get("Content-Length"))>n)throw await o?.cancel(),new Error("Publication resource unavailable");let l=[],r=0;try{for(;;){let f=await o.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");l.push(f.value)}}catch(f){throw await o.cancel().catch(()=>{}),f}finally{o.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of l)u.set(f,c),c+=f.byteLength;return u}async function r0(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await l0(e,t,n,i)))}function vc(e,t,n,i,a){let o=new URL("./",t),l=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...l.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=l.get(c),s=new URL(c,o);if(!p||s.origin!==o.origin||s.pathname!==`${o.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let m=i?await i(c,p.bytes,f):await l0(e,s,p.bytes,f);if(m.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let y=await e.crypto.subtle.digest("SHA-256",m);if(f.throwIfAborted(),Array.from(new Uint8Array(y),w=>w.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return m}return{siteURL:o,assetPaths:r,bytes:u,nodeAddress:a,has:c=>l.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var $e=K(ye(),1);function u0({page:e}){let t=(0,Bo.useRef)(null),[n,i]=(0,Bo.useState)(),{repository:a,preview:o}=e;return(0,Bo.useEffect)(()=>{let l=t.current?.ownerDocument.defaultView;if(!l||!a||!o)return;let r=new l.AbortController;return r0(l,new l.URL(o.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(Fv(a,o,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[a,o]),(0,$e.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:o?n===void 0?(0,$e.jsx)("p",{role:"status",children:L.githubLoading}):n===null?(0,$e.jsx)("p",{role:"status",children:L.githubPreviewUnavailable}):(0,$e.jsxs)($e.Fragment,{children:[(0,$e.jsx)("h3",{children:n.title}),n.description&&(0,$e.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,$e.jsxs)($e.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,$e.jsx)("p",{children:L.githubCommitCount(n.commits.length,n.total)}),(0,$e.jsx)("ol",{children:n.commits.map(l=>(0,$e.jsx)("li",{children:(0,$e.jsxs)("a",{href:l.href,target:"_blank",rel:"noopener noreferrer",children:[(0,$e.jsx)("code",{children:l.sha})," ",l.title]})},l.href))})]}):(0,$e.jsx)("p",{children:L.githubNoCommits}))]}):(0,$e.jsx)("p",{children:L.githubOpenOriginal})})}var Me=K(ye(),1),c0="http://www.w3.org/2000/svg",Vx={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function oh(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function s0({publication:e,resources:t,location:n,id:i,contentScope:a,colorMode:o,onClose:l,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,Ct.useRef)(null),p=(0,Ct.useRef)(null),s=(0,Ct.useRef)(!1),m=(0,Ct.useRef)(n.fragment);m.current=n.fragment;let[y,b]=(0,Ct.useState)(0),[w,d]=(0,Ct.useState)("loading"),[h,g]=(0,Ct.useState)(0),S=e.published.get(n.id),x=S.kind==="url"?S.url:void 0,M=(0,Ct.useMemo)(()=>Zv(x),[x]);(0,Ct.useEffect)(()=>{let N=f.current,R=N?.ownerDocument.defaultView;if(!N||!R||x)return;let O=new R.AbortController,D=O.signal,I=new Map;g(0),N.replaceChildren();let G=async q=>{let le=I.get(q);if(le)return le;let ne=Vx[q.slice(q.lastIndexOf(".")+1)];if(!ne)throw new Error("Unsupported publication media");let de=await t.bytes(q,D);D.throwIfAborted();let P=R.URL.createObjectURL(new R.Blob([de],{type:ne}));return I.set(q,P),P},j=async()=>{if(S.kind!=="document"&&S.kind!=="drawing"){if(!S.asset){d("unavailable");return}let P=await G(S.asset);D.throwIfAborted();let C=N.ownerDocument.createElement("a");C.href=P,C.download=S.asset.slice(7),C.textContent=L.downloadAsset,N.replaceChildren(C),d("ready");return}let q=await t.text(Ic(S.id),D),le=o0(q,N.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:a,deferMedia:!0,drawingMode:o}),ne=Array.from(le.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),de=new URL("./assets/",t.siteURL);for(let P of Array.from(le.querySelectorAll("a[href]"))){let C=new URL(P.getAttribute("href"),t.siteURL);if(C.origin!==de.origin||!C.pathname.startsWith(de.pathname))continue;let B=C.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==c0&&t.assetPaths.has(B)&&ne.push({element:P,path:B,download:!0})}D.throwIfAborted(),N.replaceChildren(le),d("ready"),oh(N,m.current)?.scrollIntoView({block:"start"});for(let{element:P,path:C,download:B}of ne)try{let H=await G(C);D.throwIfAborted(),P.setAttribute(B||P.namespaceURI===c0?"href":"src",H),B&&P.setAttribute("download",C.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(D.aborted)return;g(H=>H+1)}};return d("loading"),j().catch(()=>{D.aborted||d("failed")}),()=>{O.abort(),N.replaceChildren();for(let q of I.values())R.URL.revokeObjectURL(q)}},[y,S,e,t,a,o,x]),(0,Ct.useEffect)(()=>{f.current&&oh(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,Ct.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function E(N){if(N.defaultPrevented||N.metaKey||N.ctrlKey||N.shiftKey||N.altKey)return;let R=N.target;if(!(R instanceof N.currentTarget.ownerDocument.defaultView.Element))return;let O=R.closest("a")?.getAttribute("href");if(!O)return;let D=Sv(O,t.siteURL,e,n.id);if(!D)return;N.preventDefault();let I=O.startsWith("#")&&D.id===n.id&&f.current?oh(f.current,D.fragment):null;s.current=N.detail===0&&D.id!==n.id,r(I?{...D,fragment:I.getAttribute("data-publication-fragment")??void 0}:D)}return(0,Me.jsxs)("aside",{id:i,className:`kplex-publication-note${x?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Me.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Me.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:S.title}),(0,Me.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Me.jsx)("button",{type:"button",onClick:c,children:u==="bottom"?L.dockSidecarRight:L.dockSidecarBottom}),(0,Me.jsx)("button",{type:"button",onClick:l,"aria-label":L.closeSidecar,children:"×"})]})]}),x?(0,Me.jsxs)(Me.Fragment,{children:[(0,Me.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Me.jsx)("a",{href:x,target:"_blank",rel:"noopener noreferrer",children:L.openWebsite}),!M&&(0,Me.jsx)("p",{children:L.webFrameHelp})]}),M?(0,Me.jsx)(u0,{page:M},x):(0,Me.jsx)("iframe",{className:"kplex-publication-web-frame",title:S.title,src:x,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},x)]}):(0,Me.jsxs)(Me.Fragment,{children:[w==="loading"&&(0,Me.jsx)("p",{role:"status",children:L.loadingNote}),w==="failed"&&(0,Me.jsxs)("div",{role:"alert",children:[(0,Me.jsx)("p",{children:L.noteUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(N=>N+1),children:L.retry})]}),w==="unavailable"&&(0,Me.jsx)("p",{children:L.noDocument}),(0,Me.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":w==="loading",onClick:E}),h>0&&(0,Me.jsxs)("div",{role:"status",children:[(0,Me.jsx)("p",{children:L.mediaUnavailable}),(0,Me.jsx)("button",{type:"button",onClick:()=>b(N=>N+1),children:L.retry})]})]})]})}T();var Qn=K(tt(),1);var gi=K(ye(),1),Yx=736,f0=20;function qx({dock:e,sidecarId:t,size:n,minimum:i,maximum:a,onSize:o}){let l=(0,Qn.useRef)(null),r=(0,Qn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(h){return u?h.clientX:h.clientY}function p(h){o(Math.max(i,Math.min(a,Math.round(h))))}function s(h,g){r.current?.pointer===g&&(r.current=null,h.hasPointerCapture(g)&&h.releasePointerCapture(g))}(0,Qn.useLayoutEffect)(()=>{let h=l.current;return()=>{h&&r.current&&s(h,r.current.pointer)}},[e]);function m(h){h.button!==0||r.current||(h.preventDefault(),h.currentTarget.focus({preventScroll:!0}),h.currentTarget.setPointerCapture(h.pointerId),r.current={pointer:h.pointerId,origin:f(h),size:n})}function y(h){let g=r.current;g?.pointer===h.pointerId&&p(g.size+c*(f(h)-g.origin))}function b(h){y(h),s(h.currentTarget,h.pointerId)}function w(h){s(h.currentTarget,h.pointerId)}function d(h){if(h.altKey||h.ctrlKey||h.metaKey)return;let[g,S]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],x=h.shiftKey?1:10,M;if(h.key==="Home")M=i;else if(h.key==="End")M=a;else if(h.key===g)M=n+x;else if(h.key===S)M=n-x;else return;h.preventDefault(),p(M)}return(0,gi.jsx)("div",{ref:l,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":L.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":n,onPointerDown:m,onPointerMove:y,onPointerUp:b,onPointerCancel:w,onLostPointerCapture:w,onKeyDown:d})}function d0({canvas:e,sidecarId:t,sidecarOpen:n,preferredDock:i,onDock:a,renderSidecar:o}){let l=(0,Qn.useRef)(null),[r,u]=(0,Qn.useState)({width:0,height:0}),[c,f]=(0,Qn.useState)({}),p=r.width>=Yx,s=p?i:"bottom",m=s!=="bottom",y=m?r.width:r.height,b=Math.max(0,y-(m?260:160)-f0),w=Math.min(b,m?240:120),d=c[s]??Math.round(y*(m?.34:.43)),h=Math.max(w,Math.min(b,d)),g=n?{"--kplex-publication-sidecar-size":`${h}px`,"--kplex-publication-divider-size":`${f0}px`}:void 0;(0,Qn.useLayoutEffect)(()=>{let M=l.current,E=M?.ownerDocument.defaultView;if(!M||!E)return;let N=M;function R(){let D=N.clientWidth,I=N.clientHeight;u(G=>G.width===D&&G.height===I?G:{width:D,height:I})}let O=new E.ResizeObserver(R);return O.observe(M),R(),()=>O.disconnect()},[]);function S(M){f(E=>E[s]===M?E:{...E,[s]:M})}function x(){a(s==="bottom"?"right":"bottom")}return(0,gi.jsxs)("div",{ref:l,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?s:void 0,style:g,children:[e,n?(0,gi.jsxs)(gi.Fragment,{children:[(0,gi.jsx)(qx,{dock:s,sidecarId:t,size:h,minimum:w,maximum:b,onSize:S}),o(s,p?x:void 0)]}):(0,gi.jsx)("div",{id:t,hidden:!0})]})}T();T();function Sc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function h0(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function jx(e,t,n,i,a){let o=1-a,l=o*o,r=a*a;return{x:l*o*e.x+3*l*a*t.x+3*o*r*n.x+r*a*i.x,y:l*o*e.y+3*l*a*t.y+3*o*r*n.y+r*a*i.y}}function lh(e,t,n,i,a){if(a==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let o=Math.hypot(t.x-e.x,t.y-e.y),l=Math.max(20,Math.min(108,o*.2)),r=h0(n),u=h0(i),c={x:e.x+r.x*l,y:e.y+r.y*l},f={x:t.x+u.x*l,y:t.y+u.y*l};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:jx(e,c,f,t,.5)}}T();T();var rh=["parent","child","left","right","previous","next"];function m0(e,t,n,i){let a=t.neighbours(e,"parent").slice(0,n),o=t.neighbours(e,"child").slice(0,n),l=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...a,...o,...l,...r].map(p=>t.identity(p.page))]),c=new Map([...a,...o,...l,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of rh)for(let m of t.neighbours(p,s)){let y=t.identity(m.page);if(u.has(y))continue;let b=f.get(y);(!b||b.relationType!==1)&&f.set(y,{...m,role:"sibling"})}return{center:e,parents:a,children:o,leftFriends:l,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}T();var Wi=(e,t,n)=>Math.max(t,Math.min(n,e));function b0(e){return e.horizontalCompactingFactor??e.compactingFactor}function Xx(e){let t=e.compactView?.82:1;return{horizontal:Wi(1.35/b0(e),.38,1.35)*t,vertical:Wi(1.35/e.compactingFactor,.38,1.35)*t,spacing:Wi(e.minLinkLength/18,.72,1.7)}}function p0(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function xc(e){return Wi(e.siblingRelativeSize/100,.3,.85)}function g0(e,t){let n=Wi(b0(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*Wi(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function wc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function Ec(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function Mn(e,t,n=!1){let i=[...e];for(let a of e){let o=t.mini(a,n);o&&i.push({...a,width:o.width,height:o.viewportHeight,y:a.y+a.height/2+o.topGap+o.viewportHeight/2})}return i}function y0(e,t,n,i,a,o,l){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let m=r.slice(s,s+i);u.push({nodes:m,height:Math.max(...m.map(y=>y.height)),reserve:Math.max(0,...m.map(y=>l.reserve(y)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,m)=>{let y;if(m===0){let h=Math.max(0,s.height-26)/2;y=n===-1?t-s.reserve-h:t+h}else n===1?y=c+f/2+p+o+s.height/2:y=c-f/2-o-s.reserve-s.height/2;let b=s.nodes.map(h=>l.width(h)),d=-(b.reduce((h,g)=>h+g,0)+a*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((h,g)=>{let S=b[g];h.x=d+S/2,h.y=y,d+=S+a}),c=y,f=s.height,p=s.reserve}),r}function uh(e,t,n,i){let a=e;return v0(a,t,n,i),a}function v0(e,t,n,i){if(!e.length)return;let a=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+a[c-1]+n+p.height/2}let o=e[0].y-e[0].height/2,l=e.length-1,r=e[l].y+e[l].height/2+a[l],u=-(o+r)/2;for(let c of e)c.y+=u}function ch(e,t,n,i,a="center"){if(!e.length)return;let o=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-o,u=Math.max(1,n-t),f=(r>u?t:a==="midline"?Wi(o,t,n-r):a==="bottom"?n-r:a==="top"?t:t+(u-r)/2)-o;for(let p of e)p.y+=f}function ar(e,t,n,i,a,o,l){let c=a.centerX-a.width/2,f=a.centerX+a.width/2,p=a.fixedEdgeY,s=a.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),s=Math.max(...t.map(b=>b.y+b.height/2)));let m=l!==void 0&&o!==void 0?Math.max(72,o-l):Math.max(72,n),y=l!==void 0&&o!==void 0?l:i==="top"?(t.length?s+16:a.fixedEdgeY)-m:t.length?p-16:a.fixedEdgeY;return{key:e,left:c,top:y,width:f-c,height:m,resizeEdge:i}}function or(e,t,n,i,a,o){if(!t.length)return null;let l=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,m=p+r,y=m-s,b=o!==void 0&&a!==void 0?Math.max(72,a-o):a===void 0?Number.POSITIVE_INFINITY:Math.max(72,a-s),w=Math.min(y,Math.max(72,n),b);if(y<=w+.5)return null;let d=s,h=0;return o!==void 0&&a!==void 0?(d=o,h=Math.max(0,d-s)):a!==void 0?(d=a-w,h=Math.max(0,d-s)):(i==="bottom"?d=m-w:i==="center"&&(d=Wi(-w/2,s,m-w)),h=Math.max(0,d-s)),{key:e,left:u-l,top:d,width:c-u+l*2,height:w,contentTop:s,contentHeight:y,initialScrollTop:h}}function S0(e,t,n,i=!1){let a=Pe=>Math.max(0,...Pe.filter(Jn=>Jn.editor).map(Jn=>Jn.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(Pe=>Pe.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,a(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,a(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,a([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,a(e.siblings))});let o=e.center,{horizontal:l,vertical:r,spacing:u}=Xx(t),c=50*l*u,f=36*r*u,p=66*r*u,s=18*r*u,m=26,y=-(o.height/2+m/2+p),b=Math.max(42,52*r*u),w=o.height/2+m/2+p+b,d=y0(e.parents,y,-1,p0(t,"parent"),c,f,n),h=y0(e.children,w,1,p0(t,"child"),c,f,n),g=o.width/2,S=g+205*l*u,x=uh(e.leftFriends,-S,s,n),M=t.lateralArrangement==="left",E=uh(e.rightFriends,M?-S:S,s,n),N=M?[...x,...E]:x;M&&v0(N,-S,s,n);let R=!M&&E.length>0,O=R?Math.max(...E.map(Pe=>Pe.x+Pe.width/2)):g,D=R?285:205,I=R?190:120,G=Math.max(S+D*l*u,O+I*l*u),j=uh(e.siblings,G,s,n),q=h.length?Math.min(...h.map(Pe=>Pe.y-Pe.height/2)):o.height/2+p+b+12,le=Math.max(30,36*r*u),ne=Math.max(120,t.friendMaxHeight),de=Math.max(120,t.siblingMaxHeight),P=i?M?Math.min(ne/2,q-le):ne/2:q-le,C=P-ne,B=C,H=P,X=C,ie=P;ch(N,B,H,n,"midline"),M||ch(E,X,ie,n,"midline");let J=Math.max(58,72*r*u),k=t.alignSiblingsToFirstParent?d[0]:void 0,Z=i?de/2:k?k.y+k.height/2:P-J,fe=i?-de/2:Z-de;ch(j,fe,Z,n,i?"midline":"center");let he=Mn(d,n,!0),nn=Mn(j,n,!0),ze=d.length?wc(he,o.width/2+24):170,Vt=Ec(he,o.width/2),ke=Math.max(wc(Mn(x,n,!0),115,-S),wc(Mn(E,n,!0),115,M?-S:S)),Zn=Math.max(Ec(Mn(x,n,!0),0,-S),Ec(Mn(E,n,!0),0,M?-S:S)),lt=wc(nn,110,G),Ot=Ec(nn,0,G),St=M?Math.max(0,g0(t,ze*2)):g0(t,ze*2);d.length&&(S=ze+ke+St),S=Math.max(S,Vt+Zn+4);for(let Pe of x)Pe.x=-S;for(let Pe of E)Pe.x=M?-S:S;(d.length||R)&&(G=R?S+ke+lt+Math.max(0,St):ze+lt+St),G=Math.max(G,Vt+Ot+4,R?S+Zn+Ot+4:0);for(let Pe of j)Pe.x=G;let Lt=Mn(d,n),Fn=Mn(h,n),Rn=Mn(N,n),An=Mn(M?[]:E,n),ve=Mn(j,n),et={},wt=or("parent",Lt,t.parentMaxHeight,"bottom"),De=or("child",Fn,t.childMaxHeight,"top"),Cn=or("left",Rn,t.friendMaxHeight,"top",H,B),Yt=or("right",An,t.friendMaxHeight,"top",ie,X),mn=or("sibling",ve,t.siblingMaxHeight,"top",Z,fe);wt&&(wt.left=-ze,wt.width=ze*2,et.parent=wt),De&&(et.child=De),Cn&&(et.left=Cn),Yt&&(et.right=Yt),mn&&(et.sibling=mn);let qt={},Oa=y+m/2+16,yi=w-m/2-16;qt.parent=ar("parent",Lt,t.parentMaxHeight,"top",{centerX:0,width:ze*2,fixedEdgeY:Oa}),qt.child=ar("child",Fn,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:yi}),qt.left=ar("left",Rn,t.friendMaxHeight,"top",{centerX:-S,width:ke*2,fixedEdgeY:H},H,B),M||(qt.right=ar("right",An,t.friendMaxHeight,"top",{centerX:S,width:ke*2,fixedEdgeY:ie},ie,X)),qt.sibling=ar("sibling",ve,t.siblingMaxHeight,"top",{centerX:G,width:lt*2,fixedEdgeY:Z},Z,fe);let pn=[o,...d,...h,...x,...E,...j];return t.flipEastWest&&Kx(pn,qt,et),{nodes:pn,zoneViewports:et,zoneAreas:qt}}function Kx(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}T();var w0={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Tc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function Nc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function E0(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var Qx={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var Zx={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function Fx(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(a=>{let o=Reflect.get(e,a);return typeof o=="number"&&Number.isFinite(o)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var x0={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:w0,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,a=(f,p)=>{let s=JSON.stringify([f.id,p]),m=i.get(s)??e.read.relations(f.id,p);return i.set(s,m),n||=m.truncated||m.coverage==="unavailable",m.items.map(y=>({page:y.node,role:y.role,relationType:y.relationType,value:y}))},o=m0(t,{identity:f=>f.id,neighbours:a,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),l=Tc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...l?{ports:Nc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,m)=>{let y=JSON.stringify([p,s.page.id,m]),b=E0(p,Tc(e.configuration));r.push({id:y,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...l?{ports:Nc(!0)}:{}}),p!=="sibling"&&u.push({id:y,kind:"semantic",source:"attention",target:y,sourceNode:t.id,targetNode:s.page.id,sourcePort:b.source,targetPort:b.target,relation:s.value})});c(o.parents,"parent"),c(o.children,"child"),c(o.leftFriends,"left"),c(o.rightFriends,"right"),c(o.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=rh.flatMap(m=>a(p,m));for(let m of r.filter(y=>y.role==="sibling")){let y=s.find(w=>w.page.id===m.nodeId),b=y?E0(y.role,l):null;y&&b&&u.push({id:JSON.stringify([f.id,m.id]),kind:"semantic",source:f.id,target:m.id,sourceNode:f.nodeId,targetNode:y.page.id,sourcePort:b.source,targetPort:b.target,relation:y.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[o.parents,o.children,o.leftFriends,o.rightFriends,o.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,a){if(!Fx(n))throw new Error("Missing Classic geometry preferences");let o={...n,flipEastWest:n.flipEastWest??Tc(a?.configuration)},l=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let m=l.get(s.id);if(!m)throw new Error("Missing occurrence measurement");return{...m,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(m=>m.areaId===s),f=S0({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},o,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?xc(o):1),width:s=>s.expandedWidth,mini:(s,m)=>s[m?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let m=Zx[s.key];return{id:s.key,labelKey:Qx[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:m.key,minimum:m.min,maximum:m.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};T();var Jx={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function N0(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,a])=>a===i)?.[0]}function T0(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function M0(e,t,n,i,a,o){let l=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(T0(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],l)){if(++u>16384||c>=4096)return!0;let m=i(s),y=e.get(m);if(!y||m===f)continue;let b=T0(f,m);if(r.has(b))continue;let w,d=1/0;for(let h of p)for(let g of y){if(++u>16384)return!0;let S=a(h,s.role),x=a(g,Jx[s.role]);if(!S||!x)continue;let M=(h.x-g.x)**2+(h.y-g.y)**2;M<d&&(w={source:h,target:g,sourcePort:S,targetPort:x},d=M)}w&&(r.add(b),c++,o(w,s))}}return!1}T();T();T();function Go(e){let t=e.length===1?"root":JSON.stringify(e);return Ma(t)?t:null}function R0(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let a=JSON.parse(i.occurrenceId);if(!Array.isArray(a)||a.length<2||a.length>mt.depth+1||!a.every(Ma)||a[0]!==t||a[a.length-1]!==i.nodeId||Go(a.map(xn))!==i.occurrenceId)continue;n.set(i.occurrenceId,a.map(xn))}catch{}}return n}function A0(e){let t=oc(e.configuration),n=Zi(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let a=Fl(Wb(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!a)return null;let o=a,l=Math.min(t.maximumOccurrences,mt.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(o.expanded),u=new Set(o.collapsed),c=R0(e,i),f=new Set,p=new Map,s=new Set;for(let E of c.values())for(let N=1;N<=E.length;N++){let R=Go(E.slice(0,N));if(R&&(f.add(R),N<E.length)){let O=p.get(R)??new Set;O.add(E[N]),p.set(R,O),N>1&&s.add(E[N-1])}}let m=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(E=>E!==i)),y=new Set,b=new Set,w=[],d=[],h=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,S=(E,N,R)=>{let D=(R?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(G=>e.read.relations(E,G,N)),I=new Map;for(let G of D)for(let j of G.items)I.has(j.node.id)||I.set(j.node.id,j);return{items:[...I.values()],truncated:D.some(G=>G.truncated),coverage:D.some(G=>G.coverage==="unavailable")?"unavailable":D.every(G=>G.coverage==="local")?"local":"cached"}},x=E=>{if(E===i||y.has(E))return!0;if(y.size>=mt.scopes)return!1;let N=[...m].filter(R=>!y.has(R)&&R!==E).length;return!m.has(E)&&y.size+N>=mt.scopes?!1:(y.add(E),!0)};for(;h.length&&w.length<l;){let E=h.shift(),N=E.lineage[E.lineage.length-1];if(b.has(E.id))continue;b.add(E.id);let R=e.read.node(N);if(!R||R.id!==N||!e.read.isCurrent())return null;let O=E.lineage.slice(0,-1).includes(N),D=p.has(E.id)?Math.max(t.maximumDepth,E.depth+1):t.maximumDepth,I=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},G=O?{items:[],truncated:!1,coverage:"cached"}:S(N,1,E.depth===0),j=!O&&E.depth<D&&!u.has(E.id)&&(r.has(E.id)||E.depth<o.initialGenerations),q=!O&&E.depth<D&&!(I.complete&&G.coverage!=="unavailable"&&G.items.length===0&&!G.truncated),le=j&&q&&x(N),ne=le?S(N,Math.min(e.maximum,128),E.depth===0):G,de=O||!j?"ready":I.pending?"loading":ne.coverage==="unavailable"?"unavailable":I.complete?"ready":I.prepared||ne.items.length>0?"partial":"unavailable";(j&&q&&!le||le&&ne.truncated||!O&&E.depth>=D&&(ne.items.length>0||!I.complete))&&(de="limited",g=!0);let P=[];if(le){let X=new Map(ne.items.map(k=>[k.node.id,k]));for(let k of p.get(E.id)??[])if(!X.has(k)){let fe=(E.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(he=>e.read.relation?.(N,k,he)?.items??[]).find(he=>he.node.id===k);fe&&e.read.isCurrent()&&X.set(k,fe)}if(E.depth===0&&I.complete&&!ne.truncated&&ne.coverage!=="unavailable"){let k=new Set([...X.keys()].map(Z=>Go([i,Z])));o={...o,sides:Object.fromEntries(Object.entries(o.sides).filter(([Z])=>k.has(Z)))}}let ie=[...X.values()].map(k=>{let Z=[...E.lineage,k.node.id],fe=Go(Z);return fe?{id:fe,lineage:Z,relation:k}:(g=!0,de="limited",null)}).filter(k=>k!==null);ie.sort((k,Z)=>Number(f.has(Z.id))-Number(f.has(k.id))||e.read.compare(k.relation.node,Z.relation.node));let J=l-w.length-1-h.length;for(let k of ie){let Z=[...f].filter(fe=>fe!==E.id&&!b.has(fe)&&!h.some(he=>he.id===fe)&&!P.some(he=>he.id===fe)&&fe!==k.id).length;if(J<=0||!f.has(k.id)&&J<=Z){g=!0,de="limited";continue}if(E.depth===0&&k.relation.role==="child"&&o.sides[k.id]===void 0){let fe=[...X.keys()].flatMap(ze=>{let Vt=Go([i,ze]),ke=Vt?o.sides[Vt]:void 0;return ke===-1||ke===1?[ke]:[]}),he=fe.filter(ze=>ze===-1).length<fe.filter(ze=>ze===1).length?-1:1,nn=Fl({...o,sides:{...o.sides,[k.id]:he}});if(!nn){g=!0,de="limited";continue}o=nn}P.push(k),J--}P.sort((k,Z)=>e.read.compare(k.relation.node,Z.relation.node))}let C={parent:E.parent,depth:E.depth,side:E.side,expanded:le,canExpand:q,reference:O,status:de},B=E.depth===0||E.side===-1?"left":"right";w.push({id:E.id,nodeId:N,areaId:E.areaId,representation:"thought",role:E.relation?.role,relation:E.relation,branch:C,ports:E.depth===0?{top:"parent",bottom:"child",left:"left"}:E.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:B,count:new Set(ne.items.filter(X=>["left","right","previous","next"].includes(X.role)).map(X=>X.node.id)).size,complete:I.complete&&ne.coverage!=="unavailable"&&!ne.truncated&&!O},...!le&&!O&&E.parent?{groupingPartition:JSON.stringify([E.parent,E.side])}:{}}),E.parent&&E.relation&&d.push({id:E.id,kind:"semantic",source:E.parent,target:E.id,sourceNode:E.lineage[E.lineage.length-2],targetNode:N,relation:E.relation,sourcePort:E.relation.role==="child"?"bottom":E.relation.role==="parent"?"top":E.side===1?"right":"left",targetPort:E.parent==="root"&&E.relation.role==="parent"?"bottom":E.side===1?"left":"right"});let H=0;for(let X of P){let ie=X.relation.role==="parent"&&t.parentColumns>1&&H++%t.parentColumns===0?-1:1,J=E.depth?E.side:X.relation.role==="parent"?ie:X.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:o.sides[X.id],k=E.depth?E.areaId:X.relation.role==="parent"?"parent":X.relation.role==="child"?J===-1?"child-left":"child-right":"left";h.push({...X,parent:E.id,depth:E.depth+1,side:J,areaId:k})}}if(!e.read.isCurrent())return null;g||=h.length>0;let M=JSON.stringify(o)===JSON.stringify(n)?void 0:o;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:w,edges:d,truncated:g,coverage:e.read.coverage,preparation:{parents:[...y]},stateSuggestion:M}}T();T();function Wx(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let a=i.insets?.top??0,o=i.insets?.right??0,l=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[a,o,l,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:a,right:o,bottom:l,left:r,width:i.width+r+o,height:i.height+a+l})}return n}function $x(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function C0(e,t,n,i,a=24,o=42,l=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,a,o,l].every(w=>Number.isFinite(w)&&w>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=Wx(e),u=Math.min(t,e.length),c=$x(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let w=0;w<r.length;w++)f[Math.floor(w/u)]=Math.max(f[Math.floor(w/u)],r[w].height);let p=[],s=[],m=a,y=o;for(let w of c)p.push(m+w/2),m+=w+n;for(let w of f)s.push(y+w/2),y+=w+i;let b=new Map;for(let w=0;w<r.length;w++){let d=r[w];b.set(d.item.id,{x:p[w%u]+(d.left-d.right)/2,y:s[Math.floor(w/u)]+(d.top-d.bottom)/2,width:d.item.width,height:d.item.height})}return{positions:b,width:m-n+a,height:y-i+l}}function O0(e,t,n,i={}){let a=n.horizontalSpacing/n.horizontalDensity,o=n.verticalSpacing/n.verticalDensity,l=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,B)=>C?c.get(C)?.controlReserve?.[B]??0:0;if(r.length>mt.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let B=c.get(C.id);if(!B||![B.width,B.height].every(ie=>Number.isFinite(ie)&&ie>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(B.controlReserve&&![B.controlReserve.right,B.controlReserve.bottom].every(ie=>Number.isFinite(ie)&&ie>=0&&ie<=64))throw new Error("Invalid measured control reserve");if(C.id===l){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let H=C.branch.parent;if(!H||!c.has(H))throw new Error("Missing hierarchy parent");let X=p.get(H)??[];X.push(C),p.set(H,X)}let s=new Map,m=new Set,y=(C,B)=>{let H=s.get(C);if(H!==void 0)return H;if(B>mt.depth||m.has(C))throw new Error("Invalid hierarchy ancestry");m.add(C);let X=p.get(C)??[],ie=X.reduce((k,Z)=>k+y(Z.id,B+1),0)+Math.max(0,X.length-1)*o,J=Math.max(c.get(C).height+f(C,"bottom"),ie);return m.delete(C),s.set(C,J),J};for(let C of r)y(C.id,0);let b=c.get(l);if(!b)throw new Error("Missing hierarchy root");let w=new Map([[l,{x:0,y:0,width:b.width,height:b.height}]]),d=(C,B,H,X)=>{let ie=C.reduce((k,Z)=>k+s.get(Z.id),0)+Math.max(0,C.length-1)*o,J=B.y+f(X,"bottom")/2-ie/2;for(let k of C){let Z=c.get(k.id),fe=s.get(k.id),he={width:Z.width,height:Z.height,x:B.x+H*(B.width/2+a+Z.width/2+f(H===1?X:k.id,"right")),y:J+fe/2-f(k.id,"bottom")/2};if(w.has(k.id))throw new Error("Repeated hierarchy parent");w.set(k.id,he),d(p.get(k.id)??[],he,H,k.id),J+=fe+o}},h=p.get(l)??[],g=h.filter(C=>C.role==="parent"),S=h.filter(C=>C.role!=="parent"),x=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?a+Math.max(...p.get(C).map(B=>x(B.id))):0),M=g.filter(C=>C.branch.side===-1),E=g.filter(C=>C.branch.side===1),N=n.parentColumns,R=[];for(;M.length||E.length;)for(let C=0;C<N;C++)R.push(N>1&&C===0?M.shift():E.shift()??(N===1?M.shift():void 0));let O=C0(R.map((C,B)=>C?{id:C.id,width:x(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${B}`,width:1,height:1}),n.parentColumns,a,o),D=u.map(C=>{let B=c.get(C.id);if(!B)throw new Error("Missing measured section");return B}),I=Math.max(b.width+f(l,"right")*2,O.width,...D.map(C=>C.width)),G=Math.max(140,Math.min(800,i.parentHeight??300)),j=Math.max(G,O.height),q={x:-I/2,y:-b.height/2-o-j,width:I,height:j};if(!Number.isFinite(j))throw new Error("Invalid parent area height");for(let C of g){let B=O.positions.get(C.id),H=c.get(C.id),X=N===1?1:C.branch.side,ie={x:q.x+(I-O.width)/2+B.x+X*(-B.width/2+H.width/2)-(X===-1?f(C.id,"right"):0),y:q.y+j-O.height+B.y-f(C.id,"bottom")/2,width:H.width,height:H.height};w.set(C.id,ie),d(p.get(C.id)??[],ie,X,C.id)}let le={...w.get(l),width:I};for(let C of[-1,1]){let B=S.filter(H=>H.branch?.side===C);d([...B.filter(H=>H.role!=="child"),...B.filter(H=>H.role==="child")],le,C)}if(w.size!==r.length)throw new Error("Disconnected hierarchy");let ne=b.height/2+f(l,"bottom")+Math.min(24,o);for(let C of D)w.set(C.id,{x:0,y:ne+C.height/2,width:C.width,height:C.height}),ne+=C.height+Math.min(24,o);let de=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...q,height:j},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:G},dropRole:"parent",viewport:{...q,height:j,contentTop:q.y,contentHeight:j,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:a,rowGap:o,filterLayout:"keep"}}],P=Math.min(8,o/4,a/4);for(let[C,B]of[["child-left","child"],["child-right","child"],["left","left"]]){let H=r.filter(J=>J.areaId===C).map(J=>{let k=w.get(J.id),Z=f(J.id,"right"),fe=f(J.id,"bottom");return{...k,x:k.x+Z/2,y:k.y+fe/2,width:k.width+Z,height:k.height+fe}});if(!H.length)continue;let X=Math.min(...H.map(J=>J.x-J.width/2))-P,ie=Math.min(...H.map(J=>J.y-J.height/2))-P;de.push({id:C,labelKey:B==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:B,bounds:{x:X,y:ie,width:Math.max(...H.map(J=>J.x+J.width/2))+P-X,height:Math.max(...H.map(J=>J.y+J.height/2))+P-ie}})}return{positions:w,areas:de}}T();function eT(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function tT(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let a=new Map(e.rows.map(c=>[c.id,c])),o=new Set(e.visible),l=c=>{let f=[];for(let p=0;c&&p<256;p++)o.has(c)&&f.push(c),c=a.get(c)?.parent??"";return f},r=i.map(c=>l(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function L0(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!eT(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let a=new Set(t.visible),o=t.rows.filter(r=>a.has(r.id)),l=o.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...l],truncated:e.truncated||l.length<o.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=tT(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var z0={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:qd,hierarchy:{maximumScopes:mt.scopes,maximumDepth:mt.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:rc},configuration:ac,restoreState:Zi,project(e){let t=A0(e);return t&&e.sections?.status==="available"?L0(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,a){let o=oc(a?.configuration);if(!o)throw new Error("Mind Map configuration unavailable");return O0(e,t,o,a?.areaHeights)}};var nT={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},sh={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function D0(e){return e==="left"||e==="right"||e==="sibling"}function _0(e,t,n=!0,i="compass",a,o=!1){let{read:l}=e,r=e.manifest?.appearance,u=r?.flip??!1,c={...nT,...r?.geometry,flipEastWest:u};e.manifest&&(c.siblingMaxHeight+=72);let f={baseFontSize:r?.typography?.baseFontSize??sh.baseFontSize,wrapNodeLabels:r?.typography?.wrapNodeLabels??sh.wrapNodeLabels,propertyFontSize:r?.typography?.propertyFontSize??sh.propertyFontSize},p=Nc(u),s=i==="mindmap",m=s?z0:x0,y=m.project({attention:t,read:l,maximum:r?.maximum??100,...s?{layoutRoot:t,state:a}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:u}}}});if(!y)throw new Error("Publication attention is unavailable");let b=y.occurrences.map(R=>{let O=R.nodeId&&l.node(R.nodeId);if(!O)throw new Error("Publication occurrence is unavailable");let D=R.id===y.entry,I=R.role==="sibling",G=I?xc(c):1,j=e.published.get(O.id),q=j?.roleStyles,le=R.relation?.relationType===2?q?.inferred:void 0,ne=D?q?.center:I?q?.sibling:void 0,de={...j?.style,...le,...ne},P=ne?.fontSize??le?.fontSize??j?.style?.fontSize??(D?30:I?15:20),C=ne?.gateRadius??le?.gateRadius??j?.style?.gateRadius??5,B=Wl(P*G,D,f.baseFontSize)*(I&&e.manifest?.7:1),H=iv(O.name,P,f,D,O.maxLabelLength);de.icon!=null&&(H.width+=D?22:17);let X=av(H,G,P*G,f);return{occurrence:R,node:O,center:D,fontSize:B,style:de,gateSize:ev({gateRadius:C*G}),measurement:{id:R.id,...X,expandedWidth:X.width,expandedReserve:0,mini:null,envelope:null,controlReserve:R.branch?.canExpand?{right:0,bottom:23}:void 0}}}),w=m.layout(y,b.map(R=>R.measurement),{...c,alignSiblingsToFirstParent:!!e.manifest},!1),d=[],h=!1;if(o){let R=new Map;for(let{node:D,occurrence:I,center:G}of b){if(!s&&G)continue;let j=R.get(D.id)??[];j.push({...w.positions.get(I.id),node:D.id,occurrence:I}),R.set(D.id,j)}let O=y.edges.flatMap(D=>D.kind==="semantic"?[[D.sourceNode,D.targetNode]]:[]);h=M0(R,O,function*(D){for(let I of kc)yield*l.relations(D.node,I).items},D=>D.node.id,(D,I)=>N0(s?D.occurrence.ports:p,D.occurrence.peerPort?.side,I),({source:D,target:I,sourcePort:G,targetPort:j},q)=>{d.push({id:JSON.stringify(["cross",D.occurrence.id,I.occurrence.id]),kind:"semantic",source:D.occurrence.id,target:I.occurrence.id,sourceNode:D.node,targetNode:I.node,sourcePort:G,targetPort:j,relation:q})})}let g=[...y.edges,...d],S=new Map;if(s){let R=(O,D)=>{let I=S.get(O)??new Map;I.set(D,(I.get(D)??0)+1),S.set(O,I)};for(let O of g)R(O.source,O.sourcePort),R(O.target,O.targetPort)}let x=new Map;if(!s)for(let{id:R,viewport:O}of w.areas)O&&D0(R)&&x.set(R,O);let M=b.map(({occurrence:R,node:O,center:D,fontSize:I,gateSize:G,style:j})=>{let q=R.areaId==="right"&&c.lateralArrangement==="left"?"left":R.areaId;return{id:R.id,node:O,center:D,fontSize:I,gateSize:G,style:j,role:R.role??"center",bounds:w.positions.get(R.id),branch:R.branch,strip:D0(q)&&x.has(q)?q:void 0,gates:s?[...S.get(R.id)??[]].map(([le,ne])=>({side:le,count:ne})):Object.keys(p).map(le=>{let ne=p[le],de=ne==="left"?"previous":ne==="right"?"next":null,P=l.relations(O.id,ne).items,C=de?new Set([...P,...l.relations(O.id,de).items].map(B=>B.node.id)).size:P.length;return{side:le,count:C}})}}),E=new Map(M.map(R=>[R.id,R])),N=g.map((R,O)=>{let D=E.get(R.source),I=E.get(R.target),G=lh(Sc(D.bounds,R.sourcePort,D.gateSize),Sc(I.bounds,R.targetPort,I.gateSize),R.sourcePort,R.targetPort,"bezier"),j=R.kind==="semantic"?R.relation.direction:null,q=R.kind==="semantic"?e.linkStyle(R.sourceNode,R.targetNode,R.relation.role):void 0,le=R.kind==="semantic"?R.relation.definition??null:null;return{id:R.id,source:R.source,target:R.target,route:G,label:le,labelSize:q?.labelSize,labelColor:q?.labelColor,crossLink:O>=y.edges.length,sourcePort:R.sourcePort,targetPort:R.targetPort,stroke:q?.stroke,strokeWidth:q?.width,startHead:q?.startHead??(q?.arrowStart??(j===2||j===3)?"arrow":void 0),endHead:q?.endHead??(q?.arrowEnd??(j===1||j===3)?"arrow":void 0)}});return{cards:M,cardById:E,edges:N,strips:x,wrap:f.wrapNodeLabels,truncated:y.truncated||h,projection:y}}function Mc(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function H0(e,t,n,i){let a=Sc(Mc(e,t,i),n,t.gateSize);if(!t.strip)return a;let{y:o,height:l}=e.strips.get(t.strip);return a.y>=o&&a.y<=o+l?a:null}function U0(e,t,n){let i=e.cardById.get(t.source),a=e.cardById.get(t.target);if(!i.strip&&!a.strip)return t.route;let o=H0(e,i,t.sourcePort,n),l=H0(e,a,t.targetPort,n);return o&&l?lh(o,l,t.sourcePort,t.targetPort,"bezier"):null}T();T();function Rc(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function Ac(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),a=i.includes(","),o=a?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(o.length<3||o.length>4||a&&i.includes("/")||!a&&o.length===4&&!i.includes("/"))return null;let l=Rc(o[0],255),r=Rc(o[1],255),u=Rc(o[2],255),c=o.length===4?Rc(o[3],1):1;return l===null||r===null||u===null||c===null?null:{red:l,green:r,blue:u,alpha:c}}T();function dh(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(a,o)=>(a*e.alpha+o*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function fh(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function k0(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=dh(e,t),i=l=>.2126*fh(l.red)+.7152*fh(l.green)+.0722*fh(l.blue),a=i(n),o=i(t);return(Math.max(a,o)+.05)/(Math.min(a,o)+.05)}T();var iT=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),aT=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),oT=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function lT(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let a=i.trim(),o=/^(['"])(.*?)\1$/u.exec(a),l=o?.[2]??a;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(l)&&l!=="-apple-system"||oT.has(l.toLowerCase()))return;n.push(!o&&aT.has(l.toLowerCase())?l.toLowerCase():JSON.stringify(l))}return n.join(", ")}function P0(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function I0(e,t){let n=t.trim();if(!(!n||n.length>320))switch(iT.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return lT(n);case"length":return P0(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):P0(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var hh=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function B0(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){hh.lastIndex=i;let a=hh.exec(e);if(!a)throw new Error("Unsupported publication theme");i=hh.lastIndex;let o=(a[1]??a[3]).split(";").map(u=>u.trim()).filter(Boolean),l=o.filter(u=>u.startsWith("color-scheme"));if(l.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(l[0])?.[1];if(!u||l.length!==1||a[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=l.length?"author":a[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of o){if(u===l[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&I0(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function G0(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,a=e??{},o=Ac(a[n+"text-normal"]),l=Ac(a[n+"background-secondary"]??a[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(a)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(o&&(f==="interactive-normal"||f==="interactive-hover")&&c===a[i+f]){let p=Ac(c),s=p&&k0(o,l?dh(p,l):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var V=K(ye(),1),V0={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},mh={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},rT={left:L.friends,right:L.challengers,sibling:L.siblings},uT=[["system",L.systemTheme],["light",L.lightMode],["dark",L.darkMode]],cT=[["right",L.sidecarRight],["left",L.sidecarLeft],["bottom",L.sidecarBottom]],Y0={};function ph(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(Aa))}function q0(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function j0({publication:e,markerPrefix:t,resources:n,browser:i}){let a=(0,te.useRef)(null),o=(0,te.useRef)(null),l=_v(a,o),r=Ev(e,i,l.capture),u=r.attention.id,c={...Hc,crosslinks:e.manifest?.appearance?.showCrossLinks??Hc.crosslinks,...e.manifest?.canvasDefaults,...r.attention.canvas},{view:f,siblings:p,crosslinks:s,ontology:m,sidecar:y}=c,[b,w]=(0,te.useState)(),[d,h]=(0,te.useState)(null),g=(0,te.useRef)(null),S=(0,te.useMemo)(()=>_0(e,u,p,f,b,s),[e,u,p,f,b,s]),x=f==="mindmap"?L.mindMap:L.view,M=S.cards.find(v=>v.center),[E,N]=(0,te.useState)(),R=E?.attention===u?E.offsets:Y0,O=(0,te.useRef)(null),D=(0,te.useRef)({x:0,y:0,scale:1}),I=(0,te.useRef)(!1),G=(0,te.useRef)({points:new Map,origin:null,moved:!1}),j=(0,te.useRef)(!1),q=(0,te.useId)(),le=(0,te.useRef)(null),[ne,de]=(0,te.useState)(0),[P,C]=(0,te.useState)(null),[B,H]=(0,te.useState)(null),[X,ie]=(0,te.useState)(!1),J=(0,te.useRef)(()=>{}),k=(0,te.useRef)(null),[Z,fe]=(0,te.useState)(),[he,nn]=(0,te.useState)(!1),[ze,Vt]=(0,te.useState)("light"),ke=e.manifest?.colorMode,Zn=e.manifest?.pins,lt=Z?.colorScheme==="dark"?"dark":Z?.colorScheme==="light"?"light":void 0,Ot=ke==="both"?c.theme:ke??lt??"system",St=Ot==="system"?ze:Ot,Lt=()=>r.changeCanvas({theme:St==="dark"?"light":"dark"}),Fn=()=>r.changeCanvas({sidecar:!y}),Rn=(0,te.useMemo)(()=>S.edges.flatMap(v=>{let z=U0(S,v,R);return z?[{edge:v,route:z}]:[]}),[S,R]),An=new Set,ve=new Set;if(d)for(let{edge:v}of Rn)(v.source===d.occurrence&&(!d.port||v.sourcePort===d.port)||v.target===d.occurrence&&(!d.port||v.targetPort===d.port))&&(An.add(v.id),ve.add(v.source),ve.add(v.target));let et=v=>v?" is-highlighted":An.size?" is-dimmed":"";(0,te.useLayoutEffect)(()=>{let v=a.current,z=v?.ownerDocument.defaultView;if(!v||!z)return;let Y=new uc(z,!0,h);g.current=Y;let $=$b(v,Y);return()=>{g.current=null,$()}},[]),(0,te.useLayoutEffect)(()=>{g.current?.clear()},[S]),(0,te.useEffect)(()=>{let v=a.current?.ownerDocument.defaultView;if(!X||!v)return;let z=v.setTimeout(()=>ie(!1),3500);return()=>v.clearTimeout(z)},[X]),J.current=v=>{if(v.defaultPrevented||v.isComposing||v.ctrlKey||v.metaKey)return;if(n&&v.key===Zl.key&&!v.altKey&&!v.shiftKey){v.preventDefault(),v.repeat||de(Y=>Y+1);return}let z=v.target;!v.altKey||z?.isContentEditable||z?.closest?.("input,textarea,select")||(n&&v.shiftKey&&(v.code==="KeyS"||v.key.toLowerCase()==="s")?(v.preventDefault(),v.repeat||Fn()):!v.shiftKey&&(v.key==="ArrowLeft"||v.key==="ArrowRight")&&(v.preventDefault(),v.repeat||r.move(v.key==="ArrowLeft"?-1:1)))},(0,te.useEffect)(()=>{if(!i)return;let v=z=>J.current(z);return i.addEventListener("keydown",v),()=>i.removeEventListener("keydown",v)},[i]),(0,te.useLayoutEffect)(()=>{let v=k.current;v&&(v.scrollLeft=v.scrollWidth)},[r.visits]),(0,te.useEffect)(()=>{let v=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!v)return;let z=()=>Vt(v.matches?"dark":"light");return z(),v.addEventListener("change",z),()=>v.removeEventListener("change",z)},[]),(0,te.useEffect)(()=>{let v=a.current?.ownerDocument.defaultView;if(!v||!n?.has(mr))return;let z=new v.AbortController,Y=z.signal;return n.text(mr,Y).then($=>{Y.aborted||fe(B0($))}).catch(()=>{Y.aborted||nn(!0)}),()=>z.abort()},[n]);function wt(v){D.current=v,O.current&&(O.current.style.transform=`translate(${v.x}px, ${v.y}px) scale(${v.scale})`)}function De(){let v=a.current;if(!v)return;let z=0,Y=0;for(let{bounds:ce,strip:F}of S.cards)F||(z=Math.max(z,Math.abs(ce.x-M.bounds.x)+ce.width/2),Y=Math.max(Y,Math.abs(ce.y-M.bounds.y)+ce.height/2));for(let{x:ce,y:F,width:He,height:pt}of S.strips.values())z=Math.max(z,Math.abs(ce+He/2-M.bounds.x)+He/2),Y=Math.max(Y,Math.abs(F+pt/2-M.bounds.y)+pt/2);let $=Math.max(.25,Math.min(1,(v.clientWidth/2-22)/z,(v.clientHeight/2-22)/Y));I.current=!1,wt({x:-M.bounds.x*$,y:-M.bounds.y*$,scale:$})}function Cn(v,z,Y){l.cancel(),g.current?.clear();let{x:$,y:ce,scale:F}=D.current,He=Math.max(.25,Math.min(3,F*Y));I.current=!0,wt({x:z.x-(v.x-$)*He/F,y:z.y-(v.y-ce)*He/F,scale:He})}function Yt(v){Cn({x:0,y:0},{x:0,y:0},v)}function mn(v,z,Y){let $=v.getBoundingClientRect();return{x:z-$.left-$.width/2,y:Y-$.top-$.height/2}}(0,te.useLayoutEffect)(()=>{let v=a.current;if(!v)return;De(),l.play(u,D.current.scale),j.current&&(v.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),j.current=!1);let z=ce=>{if(ph(ce,v))return;ce.preventDefault();let F=mn(v,ce.clientX,ce.clientY),He=ce.deltaY*(ce.deltaMode===1?16:ce.deltaMode===2?v.clientHeight:1);Cn(F,F,Math.exp(-Math.max(-200,Math.min(200,He))/350))},Y=v.ownerDocument.defaultView,$=Y?new Y.ResizeObserver(()=>{I.current||De()}):null;return $?.observe(v),v.addEventListener("wheel",z,{passive:!1}),()=>{$?.disconnect(),v.removeEventListener("wheel",z)}},[e,u,f,p,b]);function qt(v,z){let Y=e.published.get(v)?.url?{sidecar:!0}:void 0;r.activate({id:v,canvas:Y})&&v!==u&&(j.current=z)}function Oa(){r.changeCanvas({sidecar:!1}),le.current?.focus()}function yi(v){r.activate(v)}function pn(){let v=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!v)throw new Error("Publication address unavailable");let z=new URL(v);return z.search="",z.hash="",z}function Pe(v,z){H(null),ie(!1),C({id:v,anchor:z})}function Jn(v,z){C(null),g.current?.clear(),H({anchor:v,point:z})}function La(v,z,Y=!1){return(0,V.jsxs)("nav",{className:`kplex-publication-trail ${Y?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":z,children:[(0,V.jsx)("span",{children:z}),(0,V.jsx)("ol",{ref:Y?k:void 0,children:v.map($=>{let ce=e.published.get($.id),F=ce?.style,He=F?.icon??ce?.trailIcon,pt=He===void 0?void 0:e.manifest?.icons?.[He];return(0,V.jsx)("li",{children:(0,V.jsxs)("a",{href:ko(pn(),{...$,canvas:{...r.attention.canvas,...$.canvas}}).href,"aria-current":$.id===u?"location":void 0,style:{backgroundColor:F?.fill,color:F?.color,"--kplex-publication-trail-border":F?.stroke},onClick:Et=>{Et.altKey||Et.ctrlKey||Et.metaKey||Et.shiftKey||(Et.preventDefault(),yi($))},children:[pt&&(0,V.jsx)(nh,{icon:pt,size:12}),(0,V.jsx)("span",{children:e.nodes.get($.id)?.name})]})},$.id)})})]})}function Cc(v){if(!v.altKey){if(v.target===v.currentTarget&&(v.key==="ContextMenu"||v.shiftKey&&v.key==="F10")){v.preventDefault();let{left:z,top:Y}=v.currentTarget.getBoundingClientRect();Jn(v.currentTarget,{x:z+12,y:Y+12});return}if(!(v.target.matches?.(Aa)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(v.key))){if(v.key==="Home"||v.key==="0")l.cancel(),De();else if(v.key==="+"||v.key==="=")Yt(1.25);else if(v.key==="-")Yt(.8);else if(Object.prototype.hasOwnProperty.call(V0,v.key)){let[z,Y]=V0[v.key],$=Array.from(v.currentTarget.querySelectorAll("[data-publication-node]")),ce=$.find(On=>On===v.target)?.dataset.publicationOccurrence,F=Mc(S,ce?S.cardById.get(ce)??M:M,R),He=-1,pt=1/0;for(let[On,Vo]of $.entries()){let Yo=Mc(S,S.cardById.get(Vo.dataset.publicationOccurrence),R),qo=Yo.x-F.x,jo=Yo.y-F.y,ur=qo*z+jo*Y,Xo=ur+2*Math.abs(qo*Y-jo*z);ur>0&&Xo<pt&&(He=On,pt=Xo)}let Et=$[He];Et?.focus({preventScroll:!Et.closest(Aa)})}else return;v.preventDefault()}}}function U(v){let z=v.currentTarget.ownerDocument.defaultView?.Element;if(!z||!(v.target instanceof z)||G.current.points.size)return;let Y=v.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),$=v.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;Y?g.current?.enter({occurrence:Y,port:$},v):g.current?.clear()}function ae(v){if(v.button!==0||(B&&H(null),P&&C(null),ph(v,v.currentTarget)))return;let z=G.current;if(z.points.size>=2)return;let Y={...mn(v.currentTarget,v.clientX,v.clientY),id:v.pointerId};z.points.size===0&&(z.origin=Y,z.moved=!1),z.points.set(v.pointerId,Y)}function qe(v){let z=G.current;if(!z.points.has(v.pointerId))return;let[Y,$]=z.points.values(),ce=q0(Y,$),F={...mn(v.currentTarget,v.clientX,v.clientY),id:v.pointerId};z.points.set(v.pointerId,F);let[He,pt]=z.points.values(),Et=q0(He,pt);if(!(!z.moved&&!pt&&z.origin&&Math.hypot(F.x-z.origin.x,F.y-z.origin.y)<5)){if(z.moved)v.currentTarget.hasPointerCapture(v.pointerId)||v.currentTarget.setPointerCapture(v.pointerId);else{z.moved=!0;for(let On of z.points.keys())v.currentTarget.setPointerCapture(On)}Cn(ce,Et,Et.distance/ce.distance)}}function zt(v){G.current.points.delete(v.pointerId)}let Dt=e.body(u),$i=()=>r.changeCanvas({siblings:!p}),lr=(0,V.jsx)("button",{type:"button","data-publication-siblings-toggle":!0,"aria-pressed":p,onClick:$i,children:p?L.hideSiblings:L.showSiblings}),za=(0,V.jsxs)(V.Fragment,{children:[f==="compass"&&lr,(0,V.jsx)("button",{type:"button",onClick:()=>Yt(.8),"aria-label":L.zoomOut,children:"−"}),(0,V.jsx)("button",{type:"button",onClick:()=>Yt(1.25),"aria-label":L.zoomIn,children:"+"}),(0,V.jsx)("button",{type:"button","aria-label":L.fit,onClick:()=>{l.cancel(),De()},children:L.fit}),(0,V.jsx)("button",{type:"button","aria-label":L.graphOptions,"aria-haspopup":"menu","aria-expanded":!!B,onClick:v=>Jn(v.currentTarget),children:"⋯"})]});function Wn(v,z){let Y=z?{...v.bounds,x:v.bounds.x-z.x,y:v.bounds.y-z.contentTop}:v.bounds,$=e.manifest?.icons,ce=v.style?.icon!=null?$?.[v.style.icon]:void 0;return(0,V.jsxs)(te.Fragment,{children:[(0,V.jsxs)(uv,{bounds:Y,semanticRole:v.role,className:et(ve.has(v.id)).trim(),"data-publication-node":v.node.id,"data-publication-occurrence":v.id,"data-publication-center":v.center||void 0,role:"button",tabIndex:0,"aria-label":v.node.name,"aria-current":v.center||void 0,style:{fontSize:v.fontSize,backgroundColor:v.style?.fill,borderColor:v.style?.stroke,color:v.style?.color,"--kplex-gate-size":`${v.gateSize}px`,"--kplex-gate-fill":v.style?.gate},onClick:F=>qt(v.node.id,F.detail===0),onContextMenu:F=>{n&&(F.preventDefault(),Pe(v.node.id,F.currentTarget))},onKeyDown:F=>{n&&(F.key==="ContextMenu"||F.shiftKey&&F.key==="F10")?(F.preventDefault(),Pe(v.node.id,F.currentTarget)):(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),qt(v.node.id,!0))},children:[(0,V.jsxs)(sv,{wrap:S.wrap,children:[ce&&(0,V.jsx)(nh,{icon:ce,size:v.center?18:v.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,V.jsx)(cv,{label:v.node.name,maximum:v.node.maxLabelLength,center:v.center})]}),v.gates.map(({side:F,count:He})=>(0,V.jsx)(fv,{side:F,connected:He>0,count:He?String(He):null,highlighted:An.size>0&&d?.occurrence===v.id&&d.port===F,"aria-hidden":"true"},F))]}),v.branch?.canExpand&&(0,V.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":v.branch.expanded,"aria-label":`${v.branch.expanded?L.collapseBranch:L.expandBranch} · ${v.node.name}`,style:{left:Y.x+16,top:Y.y+Y.height/2+3},onClick:()=>w(F=>rc(F,S.projection,{kind:"toggle",occurrenceId:v.id})??F),children:v.branch.expanded?"−":"+"})]},`${v.id}:${v.node.id}`)}let Ht=(0,V.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":x,tabIndex:0,onKeyDown:Cc,onPointerOver:U,onPointerDown:ae,onPointerMove:qe,onPointerUp:zt,onPointerCancel:zt,onLostPointerCapture:zt,onContextMenu:v=>{v.defaultPrevented||(v.preventDefault(),Jn(v.currentTarget,{x:v.clientX,y:v.clientY}))},onPointerLeave:v=>{g.current?.clear(),v.currentTarget.hasPointerCapture(v.pointerId)||zt(v)},onClickCapture:v=>{v.detail&&G.current.moved&&!ph(v,v.currentTarget)&&(v.stopPropagation(),G.current.moved=!1)},children:[(0,V.jsxs)("div",{className:"kplex-camera",ref:O,children:[(0,V.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,V.jsx)(mv,{prefix:t}),Rn.map(({edge:v,route:z})=>{let{id:Y,source:$,target:ce,label:F,stroke:He,strokeWidth:pt,startHead:Et,endHead:On}=v;return(0,V.jsxs)("g",{className:`kplex-edge${et(An.has(Y))}`,"data-publication-source":$,"data-publication-target":ce,"data-publication-crosslink":v.crossLink||void 0,children:[(0,V.jsx)(dv,{d:z.d,stroke:He??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:Qd(Et,t),markerEnd:Qd(On,t)}),m&&(0,V.jsx)(hv,{label:F,midpoint:z.midpoint,fontSize:v.labelSize,color:v.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},Y)})]}),(0,V.jsx)("div",{className:"kplex-nodes",children:S.cards.map(v=>v.strip?null:Wn(v))}),[...S.strips].map(([v,z])=>(0,V.jsx)(Dv,{id:v,panel:z,start:R[v]??z.initialScrollTop,label:v==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?L.lateral:rT[v],onScroll:Y=>N($=>{let ce=$?.attention===u?$.offsets:Y0;return ce[v]===Y?$:{attention:u,offsets:{...ce,[v]:Y}}}),children:S.cards.map(Y=>Y.strip===v?Wn(Y,z):null)},JSON.stringify([u,v])))]}),(0,V.jsx)("div",{className:"kplex-publication-exits",ref:o,"aria-hidden":"true"})]}),Da=P?gv(e,P.id):void 0,Ha=P&&{id:P.id,canvas:{...c,theme:Ot}},rr=ke==="both"?G0(Z,St):ke?{...Z,colorScheme:St}:Z;return(0,V.jsxs)("main",{className:`kplex-publication${n?" kplex-publication-production":""}`,style:rr,onKeyDown:i?void 0:v=>J.current(v.nativeEvent),children:[(0,V.jsxs)("header",{className:"kplex-publication-header",children:[(0,V.jsxs)("div",{className:"kplex-publication-heading",children:[(0,V.jsx)(Ov,{}),(0,V.jsx)("h1",{children:e.title})]}),(0,V.jsxs)("div",{className:"kplex-publication-controls",children:[(0,V.jsx)("button",{type:"button",onClick:()=>r.move(-1),disabled:!r.canGoBack,"aria-label":L.back,"aria-keyshortcuts":mh.back,title:L.backTooltip,children:"←"}),(0,V.jsx)("button",{type:"button",onClick:()=>r.move(1),disabled:!r.canGoForward,"aria-label":L.forward,"aria-keyshortcuts":mh.forward,title:L.forwardTooltip,children:"→"}),n?(0,V.jsx)("button",{type:"button",ref:le,"aria-expanded":y,"aria-controls":`sidecar-${q}`,"aria-keyshortcuts":mh.sidecar,title:y?L.hideSidecarTooltip:L.showSidecarTooltip,onClick:Fn,children:y?L.hideSidecar:L.showSidecar}):za,ke==="both"&&(0,V.jsx)("button",{type:"button","aria-pressed":St==="dark",onClick:Lt,children:L.darkMode})]}),n&&(0,V.jsx)(Kv,{publication:e,resources:n,page:pn,searchFocus:ne,onChoose:yi}),n&&Zn?.length?La(Zn.map(v=>({id:xn(v)})),L.pins):null]}),n?(0,V.jsx)(d0,{sidecarId:`sidecar-${q}`,sidecarOpen:y,preferredDock:c.dock,onDock:v=>r.changeCanvas({dock:v}),canvas:(0,V.jsxs)("div",{className:"kplex-publication-canvas",children:[Ht,(0,V.jsx)("div",{className:"kplex-publication-controls kplex-publication-camera-actions",children:za}),(0,V.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[r.addressProblem&&(0,V.jsx)("p",{children:r.addressProblem==="ambiguous"?L.ambiguousAddress:L.nodeUnavailable}),S.truncated&&(0,V.jsx)("p",{children:L.sceneLimited}),he&&(0,V.jsx)("p",{children:L.themeUnavailable}),X&&(0,V.jsx)("p",{children:L.addressCopied})]})]}),renderSidecar:(v,z)=>(0,V.jsx)(s0,{publication:e,resources:n,id:`sidecar-${q}`,contentScope:`${t}-document`,location:r.attention,colorMode:St,onClose:Oa,onNavigate:yi,dock:v,onSwitchDock:z})}):(0,V.jsxs)(V.Fragment,{children:[Ht,(0,V.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":q,"aria-live":"polite",children:[(0,V.jsx)("h2",{id:q,children:M.node.name}),Dt&&(0,V.jsx)("p",{children:Dt})]})]}),n&&r.visits.length>1&&La(r.visits,L.history,!0),B&&(0,V.jsx)(Rv,{anchor:B.anchor,point:B.point,onDismiss:()=>H(null),choices:[{label:L.view,kind:"menuitemradio",checked:f==="compass",select:()=>r.changeCanvas({view:"compass"})},{label:L.mindMap,kind:"menuitemradio",checked:f==="mindmap",select:()=>r.changeCanvas({view:"mindmap"})},{label:L.crossLinks,kind:"menuitemcheckbox",checked:s,select:()=>r.changeCanvas({crosslinks:!s})},...f==="compass"?[{label:L.showSiblings,kind:"menuitemcheckbox",checked:p,select:$i}]:[],{label:L.linkOntology,kind:"menuitemcheckbox",checked:m,select:()=>r.changeCanvas({ontology:!m})},...n?[{label:L.sidecar,choices:[{label:L.sidecarHide,kind:"menuitemradio",checked:!y,select:()=>r.changeCanvas({sidecar:!1})},...cT.map(([v,z])=>({label:z,kind:"menuitemradio",checked:y&&c.dock===v,select:()=>r.changeCanvas({dock:v,sidecar:!0})}))]}]:[],...ke==="both"?uT.map(([v,z])=>({label:z,kind:"menuitemradio",checked:Ot===v,select:()=>r.changeCanvas({theme:v})})):[]]}),n&&P&&Ha&&(0,V.jsx)(Mv,{anchor:P.anchor,address:ko(pn(),Ha).href,shortAddress:Da&&ko(pn(),Ha,Da).href,onDismiss:v=>{C(null),v&&P.anchor.isConnected&&P.anchor.focus({preventScroll:!0})},onCopied:()=>ie(!0)},P.id)]})}var Q0=K(ye(),1),gh=new WeakSet,sT=0;function K0(e,t,n){return fT(e,t,void 0,!0,n)}function fT(e,t,n,i=!1,a){let o=e.ownerDocument.defaultView,l=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=y=>{let b=yv(y);if(b.manifest&&(!o?.crypto.subtle||!a&&l.origin!==o.location.origin))throw new Error("Secure publication context unavailable");let w=b.manifest&&o?a?.(b.manifest)??vc(o,l,b.manifest):void 0;return{publication:b,resources:w}},u=r(t);if(gh.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++sT}`,f=(0,X0.createRoot)(e,{identifierPrefix:c});gh.add(e);let p=0,s=!1,m=({publication:y,resources:b})=>{i&&(e.ownerDocument.title=y.title),f.render((0,Q0.jsx)(j0,{publication:y,markerPrefix:c,resources:b,browser:i&&b&&o?o:void 0},p++))};return m(u),{update(y){if(s)throw new Error("Publication mount has been disposed");m(r(y))},dispose(){if(!s){s=!0;try{f.unmount()}finally{gh.delete(e)}}}}}var Z0=document.querySelector("[data-kplex-demo]");Z0&&dT(Z0);function dT(e){let t=e.ownerDocument,n=t.defaultView;if(n)try{let i=e.hasAttribute("data-kplex-local-folder"),a=new Map;for(let u of Array.from(t.querySelectorAll('script[type="application/octet-stream"][data-kplex-resource]'))){let c=u.dataset.kplexResource;if(!_a(c)&&c!=="publication.json"||a.has(c)||a.size>=4e4)throw new Error("Invalid offline publication resource");a.set(c,u)}let o=(u,c)=>{let f=a.get(u)?.textContent;if(f==null||f.length>Math.ceil(c/3)*4)throw new Error("Offline resource unavailable");let p=n.atob(f);if(p.length>c)throw new Error("Offline resource exceeds its declared size");let s=new Uint8Array(p.length);for(let m=0;m<p.length;m++)s[m]=p.charCodeAt(m);return s},l=JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(o("publication.json",Uc))),r=K0(e,l,u=>vc(n,new URL(n.location.href),u,async(c,f,p)=>(p.throwIfAborted(),i?hT(t,c,f,p):o(c,f)),n.location.protocol==="file:"?th:void 0));n.addEventListener("pagehide",function u(c){c.persisted||(n.removeEventListener("pagehide",u),r.dispose())})}catch{let i=t.createElement("p");i.className="kplex-publication-opening",i.setAttribute("role","alert"),i.textContent=L.loadFailed,e.replaceChildren(i)}}async function hT(e,t,n,i){let a=e.defaultView;if(!a)throw new Error("Offline publication window is unavailable");i.throwIfAborted();let o=e.createElement("div"),l=e.createElement("div"),r=e.createElement("span");o.hidden=!0;let u=l.attachShadow({mode:"closed"}),c=e.createElement("link");r.setAttribute("data-kplex-local-bytes",t),c.rel="stylesheet",c.href=new URL(Ah(t),a.location.href).href,u.append(r,c),o.append(l);let f=()=>new Promise((p,s)=>{let m=w=>{a.clearTimeout(b),i.removeEventListener("abort",y),c.onload=c.onerror=null,w?s(w):p()},y=()=>m(new Error("Offline resource load cancelled")),b=a.setTimeout(()=>m(new Error("Offline resource did not load")),3e4);i.addEventListener("abort",y,{once:!0}),c.onload=()=>m(),c.onerror=()=>m(new Error("Offline resource unavailable")),e.body.append(o)});try{await f(),i.throwIfAborted();let p=a.getComputedStyle(r),s=new Uint8Array(n);for(let m=0;m<n;m+=pr){let y=Math.min(pr,n-m),b=p.getPropertyValue(`--kplex-file-${m/pr}`).trim();if(!b.startsWith('"')||!b.endsWith('"')||b.length!==Math.ceil(y/3)*4+2)throw new Error("Invalid offline resource data block");let w=a.atob(b.slice(1,-1));if(w.length!==y)throw new Error("Offline resource data block size mismatch");for(let d=0;d<y;d++)s[m+d]=w.charCodeAt(d)}return s}finally{o.remove()}}})();
|
|
777
|
+
`+i.stack}}var $s=Object.prototype.hasOwnProperty,nd=Fe.unstable_scheduleCallback,hs=Fe.unstable_cancelCallback,fS=Fe.unstable_shouldYield,dS=Fe.unstable_requestPaint,Ft=Fe.unstable_now,mS=Fe.unstable_getCurrentPriorityLevel,dg=Fe.unstable_ImmediatePriority,mg=Fe.unstable_UserBlockingPriority,Tu=Fe.unstable_NormalPriority,hS=Fe.unstable_LowPriority,hg=Fe.unstable_IdlePriority,pS=Fe.log,gS=Fe.unstable_setDisableYieldValue,Ko=null,$t=null;function _i(e){if(typeof pS=="function"&&gS(e),$t&&typeof $t.setStrictMode=="function")try{$t.setStrictMode(Ko,e)}catch{}}var Wt=Math.clz32?Math.clz32:vS,yS=Math.log,bS=Math.LN2;function vS(e){return e>>>=0,e===0?32:31-(yS(e)/bS|0)|0}var Pr=256,kr=262144,Vr=4194304;function ml(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Fu(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var l=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var r=i&134217727;return r!==0?(i=r&~a,i!==0?l=ml(i):(o&=r,o!==0?l=ml(o):n||(n=r&~e,n!==0&&(l=ml(n))))):(r=i&~a,r!==0?l=ml(r):o!==0?l=ml(o):n||(n=i&~e,n!==0&&(l=ml(n)))),l===0?0:t!==0&&t!==l&&(t&a)===0&&(a=l&-l,n=t&-t,a>=n||a===32&&(n&4194048)!==0)?t:l}function Qo(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pg(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var i=31-Wt(n),l=1<<i;t|=e[i],n&=~l}return t}function SS(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gg(){var e=Vr;return Vr<<=1,(Vr&62914560)===0&&(Vr=4194304),e}function ps(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Zo(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xS(e,t,n,i,l,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var r=e.entanglements,u=e.expirationTimes,c=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Wt(n),p=1<<f;r[f]=0,u[f]=-1;var s=c[f];if(s!==null)for(c[f]=null,f=0;f<s.length;f++){var h=s[f];h!==null&&(h.lane&=-536870913)}n&=~p}i!==0&&yg(e,i,0),a!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function yg(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function bg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Wt(n),l=1<<i;l&t|e[i]&t&&(e[i]|=t),n&=~l}}function vg(e,t){var n=t&-t;return n=(n&42)!==0?1:id(n),(n&(e.suspendedLanes|t))!==0?0:n}function id(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ld(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sg(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:t0(e.type))}function Th(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var bi=Math.random().toString(36).slice(2),ut="__reactFiber$"+bi,Bt="__reactProps$"+bi,Da="__reactContainer$"+bi,Nh="__reactEvents$"+bi,wS="__reactListeners$"+bi,MS="__reactHandles$"+bi,Rh="__reactResources$"+bi,Io="__reactMarker$"+bi,Nu="__reactLoad$"+bi;function $u(e){delete e[ut],delete e[Bt],delete e[wS],delete e[MS]}function gl(e){var t;if(t=e[ut])return t;for(var n=e.parentNode;n;){if(t=n[Da]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jp(e);e!==null;){if(n=e[ut])return n;e=jp(e)}return t}e=n,n=e.parentNode}return null}function La(e){if(e=e[ut]||e[Da]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function mo(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(R(33))}function ca(e){var t=e[Rh];return t||(t=e[Rh]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[Io]=!0}function xg(e){e[Nu]=void 0}var wg=new Set,Mg={};function Dl(e,t){Sa(e,t),Sa(e+"Capture",t)}function Sa(e,t){for(Mg[e]=t,e=0;e<t.length;e++)wg.add(t[e])}var ES=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Ch={},Ah={};function TS(e){return $s.call(Ah,e)?!0:$s.call(Ch,e)?!1:ES.test(e)?Ah[e]=!0:(Ch[e]=!0,!1)}var pe=!1;function zh(){var e=pe;return pe=!1,e}function iu(e,t,n){if(TS(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Br(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function oi(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,i)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function NS(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var l=i.get,a=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ws(e){if(!e._valueTracker){var t=Eg(e)?"checked":"value";e._valueTracker=NS(e,t,""+e[t])}}function Tg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=Eg(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}var RS=/[\n"\\]/g;function sn(e){return e.replace(RS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ef(e,t,n,i,l,a,o,r){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?o==="number"&&e.value==t?gs(e,Qt(e.value)):gs(e,Qt(t)):n!=null?gs(e,Qt(n)):i!=null&&e.removeAttribute("value"),l==null&&a!=null&&(e.defaultChecked=!!a),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?e.name=""+Qt(r):e.removeAttribute("name")}function Ng(e,t,n,i,l,a,o,r){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null)){Ws(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,r||t===e.value||(e.value=t),e.defaultValue=t}i=i??l,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=r?e.checked:!!i,e.defaultChecked=!!i,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Ws(e)}function gs(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function sa(e,t,n,i){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,l=0;l<e.length;l++){if(e[l].value===n){e[l].selected=!0,i&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Rg(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function Cg(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(R(92));if(fo(i)){if(1<i.length)throw Error(R(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Ws(e)}function xa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var CS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Oh(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||CS.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Ag(e,t,n){if(t!=null&&typeof t!="object")throw Error(R(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="",pe=!0);for(var l in t)i=t[l],t.hasOwnProperty(l)&&n[l]!==i&&(Oh(e,l,i),pe=!0)}else for(var a in t)t.hasOwnProperty(a)&&Oh(e,a,t[a])}function ad(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var AS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function lu(e){return zS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Yn(){}var tf=null;function od(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ea=null,fa=null;function Dh(e){var t=La(e);if(t&&(e=t.stateNode)){var n=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ef(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+sn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var l=i[Bt]||null;if(!l)throw Error(R(90));ef(i,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Tg(i)}break e;case"textarea":Rg(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&sa(e,!!n.multiple,t,!1)}}}var ys=!1;function zg(e,t,n){if(ys)return e(t,n);ys=!0;try{var i=e(t);return i}finally{if(ys=!1,(ea!==null||fa!==null)&&(dc(),ea&&(t=ea,e=fa,fa=ea=null,Dh(t),e)))for(t=0;t<e.length;t++)Dh(e[t])}}function zo(e,t){var n=e.stateNode;if(n===null)return null;var i=n[Bt]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(R(231,t,typeof n));return n}var di=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nf=!1;if(di)try{Xl={},Object.defineProperty(Xl,"passive",{get:function(){nf=!0}}),window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{nf=!1}var Xl,Hi=null,rd=null,au=null;function Og(){if(au)return au;var e,t=rd,n=t.length,i,l="value"in Hi?Hi.value:Hi.textContent,a=l.length;for(e=0;e<n&&t[e]===l[e];e++);var o=n-e;for(i=1;i<=o&&t[n-i]===l[a-i];i++);return au=l.slice(e,1<i?1-i:void 0)}function ou(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Gr(){return!0}function Lh(){return!1}function zt(e){function t(n,i,l,a,o){this._reactName=n,this._targetInst=l,this.type=i,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var r in e)e.hasOwnProperty(r)&&(n=e[r],this[r]=n?n(a):a[r]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Gr:Lh,this.isPropagationStopped=Lh,this}return Re(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gr)},persist:function(){},isPersistent:Gr}),t}var tl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wu=zt(tl),Jo=Re({},tl,{view:0,detail:0}),OS=zt(Jo),bs,vs,ao,ec=Re({},Jo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ud,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ao&&(ao&&e.type==="mousemove"?(bs=e.screenX-ao.screenX,vs=e.screenY-ao.screenY):vs=bs=0,ao=e),bs)},movementY:function(e){return"movementY"in e?e.movementY:vs}}),_h=zt(ec),DS=Re({},ec,{dataTransfer:0}),LS=zt(DS),_S=Re({},Jo,{relatedTarget:0}),Ss=zt(_S),HS=Re({},tl,{animationName:0,elapsedTime:0,pseudoElement:0}),US=zt(HS),PS=Re({},tl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),kS=zt(PS),VS=Re({},tl,{data:0}),Hh=zt(VS),BS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},YS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=YS[e])?!!t[e]:!1}function ud(){return qS}var jS=Re({},Jo,{key:function(e){if(e.key){var t=BS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ou(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?GS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ud,charCode:function(e){return e.type==="keypress"?ou(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ou(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),XS=zt(jS),KS=Re({},ec,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uh=zt(KS),QS=Re({},tl,{submitter:0}),ZS=zt(QS),IS=Re({},Jo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ud}),JS=zt(IS),FS=Re({},tl,{propertyName:0,elapsedTime:0,pseudoElement:0}),$S=zt(FS),WS=Re({},ec,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ex=zt(WS),tx=Re({},tl,{newState:0,oldState:0,source:0}),nx=zt(tx),ix=[9,13,27,32],cd=di&&"CompositionEvent"in window,go=null;di&&"documentMode"in document&&(go=document.documentMode);var lx=di&&"TextEvent"in window&&!go,Dg=di&&(!cd||go&&8<go&&11>=go),Ph=" ",kh=!1;function Lg(e,t){switch(e){case"keyup":return ix.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _g(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ta=!1;function ax(e,t){switch(e){case"compositionend":return _g(t);case"keypress":return t.which!==32?null:(kh=!0,Ph);case"textInput":return e=t.data,e===Ph&&kh?null:e;default:return null}}function ox(e,t){if(ta)return e==="compositionend"||!cd&&Lg(e,t)?(e=Og(),au=rd=Hi=null,ta=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dg&&t.locale!=="ko"?null:t.data;default:return null}}var rx={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rx[e.type]:t==="textarea"}function Hg(e,t,n,i){ea?fa?fa.push(i):fa=[i]:ea=i,t=Zu(t,"onChange"),0<t.length&&(n=new Wu("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var yo=null,Oo=null;function ux(e){zb(e,0)}function tc(e){var t=mo(e);if(Tg(t))return e}function Bh(e,t){if(e==="change")return t}var Ug=!1;di&&(di?(qr="oninput"in document,qr||(xs=document.createElement("div"),xs.setAttribute("oninput","return;"),qr=typeof xs.oninput=="function"),Yr=qr):Yr=!1,Ug=Yr&&(!document.documentMode||9<document.documentMode));var Yr,qr,xs;function Gh(){yo&&(yo.detachEvent("onpropertychange",Pg),Oo=yo=null)}function Pg(e){if(e.propertyName==="value"&&tc(Oo)){var t=[];Hg(t,Oo,e,od(e)),zg(ux,t)}}function cx(e,t,n){e==="focusin"?(Gh(),yo=t,Oo=n,yo.attachEvent("onpropertychange",Pg)):e==="focusout"&&Gh()}function sx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return tc(Oo)}function fx(e,t){if(e==="click")return tc(t)}function dx(e,t){if(e==="input"||e==="change")return tc(t)}function mx(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:mx;function Do(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var l=n[i];if(!$s.call(t,l)||!tn(e[l],t[l]))return!1}return!0}function lf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qh(e,t){var n=Yh(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Yh(n)}}function kg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=lf(e.document)}return t}function sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var hx=di&&"documentMode"in document&&11>=document.documentMode,na=null,af=null,bo=null,of=!1;function jh(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;of||na==null||na!==lf(i)||(i=na,"selectionStart"in i&&sd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),bo&&Do(bo,i)||(bo=i,i=Zu(af,"onSelect"),0<i.length&&(t=new Wu("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=na)))}function fl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ia={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionrun:fl("Transition","TransitionRun"),transitionstart:fl("Transition","TransitionStart"),transitioncancel:fl("Transition","TransitionCancel"),transitionend:fl("Transition","TransitionEnd")},ws={},Bg={};di&&(Bg=document.createElement("div").style,"AnimationEvent"in window||(delete ia.animationend.animation,delete ia.animationiteration.animation,delete ia.animationstart.animation),"TransitionEvent"in window||delete ia.transitionend.transition);function Ll(e){if(ws[e])return ws[e];if(!ia[e])return e;var t=ia[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Bg)return ws[e]=t[n];return e}var Gg=Ll("animationend"),Yg=Ll("animationiteration"),qg=Ll("animationstart"),px=Ll("transitionrun"),gx=Ll("transitionstart"),yx=Ll("transitioncancel"),jg=Ll("transitionend"),Xg=new Map,rf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");rf.push("scrollEnd");function Mn(e,t){Xg.set(e,t),Dl(t,[e])}var bx=0;function mi(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=wn.identifierPrefix;var n=bx++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Xh(e){if(e==null||typeof e=="string")return e;var t=null,n=ba;if(n!==null)for(var i=0;i<n.length;i++){var l=e[n[i]];if(l!=null){if(l==="none")return"none";t=t==null?l:t+(" "+l)}}return t??e.default}function vi(e,t){return e=Xh(e),t=Xh(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var Ru=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},rn=[],la=0,fd=0;function nc(){for(var e=la,t=fd=la=0;t<e;){var n=rn[t];rn[t++]=null;var i=rn[t];rn[t++]=null;var l=rn[t];rn[t++]=null;var a=rn[t];if(rn[t++]=null,i!==null&&l!==null){var o=i.pending;o===null?l.next=l:(l.next=o.next,o.next=l),i.pending=l}a!==0&&Kg(n,l,a)}}function ic(e,t,n,i){rn[la++]=e,rn[la++]=t,rn[la++]=n,rn[la++]=i,fd|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function dd(e,t,n,i){return ic(e,t,n,i),Cu(e)}function _l(e,t){return ic(e,null,null,t),Cu(e)}function Kg(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var l=!1,a=e.return;a!==null;)a.childLanes|=n,i=a.alternate,i!==null&&(i.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(l=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,l&&t!==null&&(l=31-Wt(n),e=a.hiddenUpdates,i=e[l],i===null?e[l]=[t]:i.push(t),t.lane=n|536870912),a):null}function Cu(e){if(50<Co)throw Co=0,gu=null,Error(R(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var aa={};function vx(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,t,n,i){return new vx(e,t,n,i)}function md(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var n=e.alternate;return n===null?(n=Pt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Qg(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ru(e,t,n,i,l,a){var o=0;if(i=e,typeof i=="function")md(i)&&(o=1);else if(typeof i=="string")o=Xw(e,n,Xn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(i){case Qs:return e=Pt(31,n,t,l),e.elementType=Qs,e.lanes=a,e;case $l:return vl(n.children,l,a,t);case sg:o=8,l|=24;break;case js:return e=Pt(12,n,t,l|2),e.elementType=js,e.lanes=a,e;case Xs:return e=Pt(13,n,t,l),e.elementType=Xs,e.lanes=a,e;case Ks:return e=Pt(19,n,t,l),e.elementType=Ks,e.lanes=a,e;case oS:case Zs:return e=l|32,e=Pt(30,n,t,e),e.elementType=Zs,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Gn:o=10;break e;case fg:o=9;break e;case ed:o=11;break e;case td:o=14;break e;case Oi:o=16,i=null;break e}o=29,n=Error(R(130,e===null?"null":typeof e,"")),i=null}return t=Pt(o,n,t,l),t.elementType=e,t.type=i,t.lanes=a,t}function vl(e,t,n,i){return e=Pt(7,e,i,t),e.lanes=n,e}function Ms(e,t,n){return e=Pt(6,e,null,t),e.lanes=n,e}function Zg(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Es(e,t,n){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Kh=new WeakMap;function fn(e,t){if(typeof e=="object"&&e!==null){var n=Kh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Eh(t)},Kh.set(e,t),t)}return{value:e,source:t,stack:Eh(t)}}var oa=[],ra=0,Au=null,Lo=0,un=[],cn=0,Ji=null,qn=1,jn="";function ui(e,t){oa[ra++]=Lo,oa[ra++]=Au,Au=e,Lo=t}function Ig(e,t,n){un[cn++]=qn,un[cn++]=jn,un[cn++]=Ji,Ji=e;var i=qn;e=jn;var l=32-Wt(i)-1;i&=~(1<<l),n+=1;var a=32-Wt(t)+l;if(30<a){var o=l-l%5;a=(i&(1<<o)-1).toString(32),i>>=o,l-=o,qn=1<<32-Wt(t)+l|n<<l|i,jn=a+e}else qn=1<<a|n<<l|i,jn=e}function lc(e){e.return!==null&&(ui(e,1),Ig(e,1,0))}function hd(e){for(;e===Au;)Au=oa[--ra],oa[ra]=null,Lo=oa[--ra],oa[ra]=null;for(;e===Ji;)Ji=un[--cn],un[cn]=null,jn=un[--cn],un[cn]=null,qn=un[--cn],un[cn]=null}function Jg(e,t){un[cn++]=qn,un[cn++]=jn,un[cn++]=Ji,qn=t.id,jn=t.overflow,Ji=e}var ot=null,ze=null,oe=!1,Gi=null,dn=!1,uf=Error(R(519));function Fi(e){var t=Error(R(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _o(fn(t,e)),uf}function Qh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ut]=e,t[Bt]=i,n){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(n=0;n<ko.length;n++)ce(ko[n],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Ng(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),Cg(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||Db(t.textContent,n)?(i.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),i.onScroll!=null&&ce("scroll",t),i.onScrollEnd!=null&&ce("scrollend",t),i.onClick!=null&&(t.onclick=Yn),t=!0):t=!1,t||Fi(e,!0)}function zu(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:dn=!1;return;case 27:case 3:dn=!0;return;default:ot=ot.return}}function Kl(e){if(e!==ot)return!1;if(!oe)return zu(e),oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Kf(e.type,e.memoizedProps)),n=!n),n&&ze&&Fi(e),zu(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=qp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(317));ze=qp(e)}else t===27?(t=ze,nl(e.type)?(e=Jf,Jf=null,ze=e):ze=t):ze=ot?mn(e.stateNode.nextSibling):null;return!0}function Ml(){ze=ot=null,oe=!1}function Ts(){var e=Gi;return e!==null&&(Ht===null?Ht=e:Ht.push.apply(Ht,e),Gi=null),e}function _o(e){Gi===null?Gi=[e]:Gi.push(e)}var cf=Zn(null),Hl=null,ci=null;function Ui(e,t,n){Oe(cf,t._currentValue),t._currentValue=n}function fi(e){e._currentValue=cf.current,st(cf)}function uu(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function sf(e,t,n,i){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var a=l.dependencies;if(a!==null){var o=l.child;a=a.firstContext;e:for(;a!==null;){var r=a;a=l;for(var u=0;u<t.length;u++)if(r.context===t[u]){a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),uu(a.return,n,e),i||(o=null);break e}a=r.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(R(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),uu(o,n,e),o=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=n,o=l.alternate,o!==null&&(o.lanes|=n),uu(l.return,n,e),o=l.child,o=o!==null?o.sibling:null):o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===e){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function El(e,t,n,i){e=null;for(var l=t,a=!1;l!==null;){if(!a){if((l.flags&524288)!==0)a=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(R(387));if(o=o.memoizedProps,o!==null){var r=l.type;tn(l.pendingProps.value,o.value)||(e!==null?e.push(r):e=[r])}}else if(l===wu.current){if(o=l.alternate,o===null)throw Error(R(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(Aa):e=[Aa])}l=l.return}return e!==null&&sf(t,e,n,i),t.flags|=262144,e!==null}function Ou(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Tl(e){Hl=e,ci=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Fg(Hl,e)}function jr(e,t){return Hl===null&&Tl(e),Fg(e,t)}function Fg(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ci===null){if(e===null)throw Error(R(308));ci=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ci=ci.next=t;return n}var Sx=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},xx=Fe.unstable_scheduleCallback,wx=Fe.unstable_NormalPriority,Qe={$$typeof:Gn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pd(){return{controller:new Sx,data:new Map,refCount:0}}function Fo(e){e.refCount--,e.refCount===0&&xx(wx,function(){e.controller.abort()})}function Zh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var i=t[e];n.indexOf(i)===-1&&n.push(i)}}}var ho=null;function Mx(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var vo=null,ff=0,Nl=0,da=null;function Ex(e,t){if(vo===null){var n=vo=[];ff=0,Nl=qd(),da={status:"pending",value:void 0,then:function(i){n.push(i)}}}return ff++,t.then(Ih,Ih),t}function Ih(){if(--ff===0&&(ho=null,vo!==null)){da!==null&&(da.status="fulfilled");var e=vo;vo=null,Nl=0,da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Tx(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var l=0;l<n.length;l++)(0,n[l])(t)},function(l){for(i.status="rejected",i.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),i}var Jh=Q.S;Q.S=function(e,t){if(pb=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ex(e,t),ho!==null)for(var n=Na;n!==null;)Zh(n,ho),n=n.next;if(n=e.types,n!==null){for(var i=Na;i!==null;)Zh(i,n),i=i.next;if(Nl!==0){i=ho,i===null&&(i=ho=[]);for(var l=0;l<n.length;l++){var a=n[l];i.indexOf(a)===-1&&i.push(a)}}}Jh!==null&&Jh(e,t)};var Sl=Zn(null);function gd(){var e=Sl.current;return e!==null?e:Ne.pooledCache}function cu(e,t){t===null?Oe(Sl,Sl.current):Oe(Sl,t.pool)}function $g(){var e=gd();return e===null?null:{parent:Qe._currentValue,pool:e}}var _a=Error(R(460)),yd=Error(R(474)),ac=Error(R(542)),Du={then:function(){}};function Fh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Wg(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Yn,Yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wh(e),e===void 0&&!("reason"in t)?Error(R(600)):e;default:if(typeof t.status=="string")t.then(Yn,Yn);else{if(e=Ne,e!==null&&100<e.shellSuspendCounter)throw Error(R(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var l=t;l.status="fulfilled",l.value=i}},function(i){if(t.status==="pending"){var l=t;l.status="rejected",l.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wh(e),e}throw xl=t,_a}}function hl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(xl=n,_a):n}}var xl=null;function $h(){if(xl===null)throw Error(R(459));var e=xl;return xl=null,e}function Wh(e){if(e===_a||e===ac)throw Error(R(483))}var ma=null,Ho=0;function Xr(e){var t=Ho;return Ho+=1,ma===null&&(ma=[]),Wg(ma,e,t)}function Ci(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Kr(e,t){throw t.$$typeof===aS?Error(R(525)):(e=Object.prototype.toString.call(t),Error(R(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ey(e){function t(d,m){if(e){var g=d.deletions;g===null?(d.deletions=[m],d.flags|=16):g.push(m)}}function n(d,m){if(!e)return null;for(;m!==null;)t(d,m),m=m.sibling;return null}function i(d){for(var m=new Map;d!==null;)d.key===null?m.set(d.index,d):m.set(d.key,d),d=d.sibling;return m}function l(d,m){return d=si(d,m),d.index=0,d.sibling=null,d}function a(d,m,g){return d.index=g,e?(g=d.alternate,g!==null?(g=g.index,g<m?(d.flags|=2,m):g):(d.flags|=134217730,m)):(d.flags|=1048576,m)}function o(d){return e&&d.alternate===null&&(d.flags|=134217730),d}function r(d,m,g,x){return m===null||m.tag!==6?(m=Ms(g,d.mode,x),m.return=d,m):(m=l(m,g),m.return=d,m)}function u(d,m,g,x){var M=g.type;return M===$l?(d=f(d,m,g.props.children,x,g.key),Ci(d,g),d):m!==null&&(m.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Oi&&hl(M)===m.type)?(m=l(m,g.props),Ci(m,g),m.return=d,m):(m=ru(g.type,g.key,g.props,null,d.mode,x),Ci(m,g),m.return=d,m)}function c(d,m,g,x){return m===null||m.tag!==4||m.stateNode.containerInfo!==g.containerInfo||m.stateNode.implementation!==g.implementation?(m=Es(g,d.mode,x),m.return=d,m):(m=l(m,g.children||[]),m.return=d,m)}function f(d,m,g,x,M){return m===null||m.tag!==7?(m=vl(g,d.mode,x,M),m.return=d,m):(m=l(m,g),m.return=d,m)}function p(d,m,g){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Ms(""+m,d.mode,g),m.return=d,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ur:return g=ru(m.type,m.key,m.props,null,d.mode,g),Ci(g,m),g.return=d,g;case so:return m=Es(m,d.mode,g),m.return=d,m;case Oi:return m=hl(m),p(d,m,g)}if(fo(m)||lo(m))return m=vl(m,d.mode,g,null),m.return=d,m;if(typeof m.then=="function")return p(d,Xr(m),g);if(m.$$typeof===Gn)return p(d,jr(d,m),g);Kr(d,m)}return null}function s(d,m,g,x){var M=m!==null?m.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return M!==null?null:r(d,m,""+g,x);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Ur:return g.key===M?u(d,m,g,x):null;case so:return g.key===M?c(d,m,g,x):null;case Oi:return g=hl(g),s(d,m,g,x)}if(fo(g)||lo(g))return M!==null?null:f(d,m,g,x,null);if(typeof g.then=="function")return s(d,m,Xr(g),x);if(g.$$typeof===Gn)return s(d,m,jr(d,g),x);Kr(d,g)}return null}function h(d,m,g,x,M){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return d=d.get(g)||null,r(m,d,""+x,M);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Ur:return d=d.get(x.key===null?g:x.key)||null,u(m,d,x,M);case so:return d=d.get(x.key===null?g:x.key)||null,c(m,d,x,M);case Oi:return x=hl(x),h(d,m,g,x,M)}if(fo(x)||lo(x))return d=d.get(g)||null,f(m,d,x,M,null);if(typeof x.then=="function")return h(d,m,g,Xr(x),M);if(x.$$typeof===Gn)return h(d,m,g,jr(m,x),M);Kr(m,x)}return null}function S(d,m,g,x){for(var M=null,T=null,w=m,N=m=0,V=null;w!==null&&N<g.length;N++){w.index>N?(V=w,w=null):V=w.sibling;var E=s(d,w,g[N],x);if(E===null){w===null&&(w=V);break}e&&w&&E.alternate===null&&t(d,w),m=a(E,m,N),T===null?M=E:T.sibling=E,T=E,w=V}if(N===g.length)return n(d,w),oe&&ui(d,N),M;if(w===null){for(;N<g.length;N++)w=p(d,g[N],x),w!==null&&(m=a(w,m,N),T===null?M=w:T.sibling=w,T=w);return oe&&ui(d,N),M}for(w=i(w);N<g.length;N++)V=h(w,d,N,g[N],x),V!==null&&(e&&(E=V.alternate,E!==null&&w.delete(E.key===null?N:E.key)),m=a(V,m,N),T===null?M=V:T.sibling=V,T=V);return e&&w.forEach(function(k){return t(d,k)}),oe&&ui(d,N),M}function b(d,m,g,x){if(g==null)throw Error(R(151));for(var M=null,T=null,w=m,N=m=0,V=null,E=g.next();w!==null&&!E.done;N++,E=g.next()){w.index>N?(V=w,w=null):V=w.sibling;var k=s(d,w,E.value,x);if(k===null){w===null&&(w=V);break}e&&w&&k.alternate===null&&t(d,w),m=a(k,m,N),T===null?M=k:T.sibling=k,T=k,w=V}if(E.done)return n(d,w),oe&&ui(d,N),M;if(w===null){for(;!E.done;N++,E=g.next())E=p(d,E.value,x),E!==null&&(m=a(E,m,N),T===null?M=E:T.sibling=E,T=E);return oe&&ui(d,N),M}for(w=i(w);!E.done;N++,E=g.next())E=h(w,d,N,E.value,x),E!==null&&(e&&(V=E.alternate,V!==null&&w.delete(V.key===null?N:V.key)),m=a(E,m,N),T===null?M=E:T.sibling=E,T=E);return e&&w.forEach(function(L){return t(d,L)}),oe&&ui(d,N),M}function v(d,m,g,x){if(typeof g=="object"&&g!==null&&g.type===$l&&g.key===null&&g.props.ref===void 0&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Ur:e:{for(var M=g.key;m!==null;){if(m.key===M){if(M=g.type,M===$l){if(m.tag===7){n(d,m.sibling),x=l(m,g.props.children),Ci(x,g),x.return=d,d=x;break e}}else if(m.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Oi&&hl(M)===m.type){n(d,m.sibling),x=l(m,g.props),Ci(x,g),x.return=d,d=x;break e}n(d,m);break}else t(d,m);m=m.sibling}g.type===$l?(x=vl(g.props.children,d.mode,x,g.key),Ci(x,g),x.return=d,d=x):(x=ru(g.type,g.key,g.props,null,d.mode,x),Ci(x,g),x.return=d,d=x)}return o(d);case so:e:{for(M=g.key;m!==null;){if(m.key===M)if(m.tag===4&&m.stateNode.containerInfo===g.containerInfo&&m.stateNode.implementation===g.implementation){n(d,m.sibling),x=l(m,g.children||[]),x.return=d,d=x;break e}else{n(d,m);break}else t(d,m);m=m.sibling}x=Es(g,d.mode,x),x.return=d,d=x}return o(d);case Oi:return g=hl(g),v(d,m,g,x)}if(fo(g))return S(d,m,g,x);if(lo(g)){if(M=lo(g),typeof M!="function")throw Error(R(150));return g=M.call(g),b(d,m,g,x)}if(typeof g.then=="function")return v(d,m,Xr(g),x);if(g.$$typeof===Gn)return v(d,m,jr(d,g),x);Kr(d,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,m!==null&&m.tag===6?(n(d,m.sibling),x=l(m,g),x.return=d,d=x):(n(d,m),x=Ms(g,d.mode,x),x.return=d,d=x),o(d)):n(d,m)}return function(d,m,g,x){try{Ho=0;var M=v(d,m,g,x);return ma=null,M}catch(w){if(w===_a||w===ac)throw w;var T=Pt(29,w,null,d.mode);return T.lanes=x,T.return=d,T}finally{}}}var Rl=ey(!0),ty=ey(!1),Di=!1;function bd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function df(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Yi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function qi(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ge&2)!==0){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,t=Cu(e),Kg(e,null,n),t}return ic(e,i,t,n),Cu(e)}function So(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,bg(e,n)}}function Ns(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?l=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?l=a=t:a=a.next=t}else l=a=t;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var mf=!1;function xo(){if(mf){var e=da;if(e!==null)throw e}}function wo(e,t,n,i){mf=!1;var l=e.updateQueue;Di=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,r=l.shared.pending;if(r!==null){l.shared.pending=null;var u=r,c=u.next;u.next=null,o===null?a=c:o.next=c,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,r=f.lastBaseUpdate,r!==o&&(r===null?f.firstBaseUpdate=c:r.next=c,f.lastBaseUpdate=u))}if(a!==null){var p=l.baseState;o=0,f=c=u=null,r=a;do{var s=r.lane&-536870913,h=s!==r.lane;if(h?(de&s)===s:(i&s)===s){s!==0&&s===Nl&&(mf=!0),f!==null&&(f=f.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var S=e,b=r;s=t;var v=n;switch(b.tag){case 1:if(S=b.payload,typeof S=="function"){p=S.call(v,p,s);break e}p=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=b.payload,s=typeof S=="function"?S.call(v,p,s):S,s==null)break e;p=Re({},p,s);break e;case 2:Di=!0}}s=r.callback,s!==null&&(e.flags|=64,h&&(e.flags|=8192),h=l.callbacks,h===null?l.callbacks=[s]:h.push(s))}else h={lane:s,tag:r.tag,payload:r.payload,callback:r.callback,next:null},f===null?(c=f=h,u=p):f=f.next=h,o|=s;if(r=r.next,r===null){if(r=l.shared.pending,r===null)break;h=r,r=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);f===null&&(u=p),l.baseState=u,l.firstBaseUpdate=c,l.lastBaseUpdate=f,a===null&&(l.shared.lanes=0),el|=o,e.lanes=o,e.memoizedState=p}}function ny(e,t){if(typeof e!="function")throw Error(R(191,e));e.call(t)}function iy(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ny(n[e],t)}var $i=Zn(null),Lu=Zn(0);function ep(e,t){e=yi,Oe(Lu,e),Oe($i,t),yi=e|t.baseLanes}function hf(){Oe(Lu,yi),Oe($i,$i.current)}function vd(){yi=Lu.current,st($i),st(Lu)}var mt=Zn(null),bt=null;function ji(e){var t=e.alternate;Oe(ft,ft.current&1),Oe(mt,e),bt===null&&(t===null||$i.current!==null||t.memoizedState!==null)&&(bt=e)}function pf(e){Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)}function ly(e){e.tag===22?(Oe(ft,ft.current),Oe(mt,e),bt===null&&(bt=e)):Xi()}function Xi(){Oe(ft,ft.current),Oe(mt,mt.current)}function Zt(e){st(mt),bt===e&&(bt=null),st(ft)}var ft=Zn(0);function Uo(e,t){Oe(mt,mt.current),Oe(ft,t)}function Sd(e){st(ft),st(mt),bt===e&&(bt=null)}function _u(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||If(n)||Qd(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hi=0,ne=null,Me=null,Ke=null,Hu=!1,ha=!1,Cl=!1,Uu=0,Po=0,pa=null,Nx=0;function Ve(){throw Error(R(321))}function xd(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!tn(e[n],t[n]))return!1;return!0}function wd(e,t,n,i,l,a){return hi=a,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Q.H=e===null||e.memoizedState===null?Hy:Uy,Cl=!1,a=n(i,l),Cl=!1,ha&&(a=oy(t,n,i,l)),ay(e),a}function ay(e){Q.H=Pu;var t=Me!==null&&Me.next!==null;if(hi=0,Ke=Me=ne=null,Hu=!1,Po=0,pa=null,t)throw Error(R(300));e===null||Ze||(e=e.dependencies,e!==null&&Ou(e)&&(Ze=!0))}function oy(e,t,n,i){ne=e;var l=0;do{if(ha&&(pa=null),Po=0,ha=!1,25<=l)throw Error(R(301));if(l+=1,Ke=Me=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Q.H=_x,a=t(n,i)}while(ha);return a}function Rx(){var e=Q.H,t=e.useState()[0];return t=typeof t.then=="function"?$o(t):t,e=e.useState()[0],(Me!==null?Me.memoizedState:null)!==e&&(ne.flags|=1024),t}function Md(){var e=Uu!==0;return Uu=0,e}function Ed(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Td(e){if(Hu){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Hu=!1}hi=0,Ke=Me=ne=null,ha=!1,Po=Uu=0,pa=null}function At(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Ye(){if(Me===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ke===null?ne.memoizedState:Ke.next;if(t!==null)Ke=t,Me=e;else{if(e===null)throw ne.alternate===null?Error(R(467)):Error(R(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ke===null?ne.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function oc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $o(e){var t=Po;return Po+=1,pa===null&&(pa=[]),e=Wg(pa,e,t),t=ne,(Ke===null?t.memoizedState:Ke.next)===null&&(t=t.alternate,Q.H=t===null||t.memoizedState===null?Hy:Uy),e}function rc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return $o(e);if(e.$$typeof===uS)return;if(e.$$typeof===Gn)return ct(e)}throw Error(R(438,String(e)))}function Nd(e){var t=null,n=ne.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=ne.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=oc(),ne.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=rS;return t.index++,n}function pi(e,t){return typeof t=="function"?t(e):t}function su(e){var t=Ye();return Rd(t,Me,e)}function Rd(e,t,n){var i=e.queue;if(i===null)throw Error(R(311));i.lastRenderedReducer=n;var l=e.baseQueue,a=i.pending;if(a!==null){if(l!==null){var o=l.next;l.next=a.next,a.next=o}t.baseQueue=l=a,i.pending=null}if(a=e.baseState,l===null)e.memoizedState=a;else{t=l.next;var r=o=null,u=null,c=t,f=!1;do{var p=c.lane&-536870913;if(p!==c.lane?(de&p)===p:(hi&p)===p){var s=c.revertLane;if(s===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),p===Nl&&(f=!0);else if((hi&s)===s){c=c.next,s===Nl&&(f=!0);continue}else p={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=p,o=a):u=u.next=p,ne.lanes|=s,el|=s;p=c.action,Cl&&n(a,p),a=c.hasEagerState?c.eagerState:n(a,p)}else s={lane:p,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},u===null?(r=u=s,o=a):u=u.next=s,ne.lanes|=p,el|=p;c=c.next}while(c!==null&&c!==t);if(u===null?o=a:u.next=r,!tn(a,e.memoizedState)&&(Ze=!0,f&&(n=da,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=u,i.lastRenderedState=a}return l===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Rs(e){var t=Ye(),n=t.queue;if(n===null)throw Error(R(311));n.lastRenderedReducer=e;var i=n.dispatch,l=n.pending,a=t.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do a=e(a,o.action),o=o.next;while(o!==l);tn(a,t.memoizedState)||(Ze=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,i]}function ry(e,t,n){var i=ne,l=Ye(),a=oe;if(a){if(n===void 0)throw Error(R(407));n=n()}else n=t();var o=!tn((Me||l).memoizedState,n);if(o&&(l.memoizedState=n,Ze=!0),l=l.queue,Cd(sy.bind(null,i,l,e),[e]),e=l.getSnapshot!==t||o||Ke!==null&&(Ke.memoizedState.tag&1)!==0,wa(e?9:8,{destroy:void 0},cy.bind(null,i,l,n,t),null),e){if(i.flags|=2048,Ne===null)throw Error(R(349));a||(hi&127)!==0||uy(i,t,n)}return n}function uy(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ne.updateQueue,t===null?(t=oc(),ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cy(e,t,n,i){t.value=n,t.getSnapshot=i,fy(t)&&dy(e)}function sy(e,t,n){return n(function(){fy(t)&&dy(e)})}function fy(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!tn(e,n)}catch{return!0}}function dy(e){var t=_l(e,2);t!==null&&kt(t,e,2)}function gf(e){var t=At();if(typeof e=="function"){var n=e;if(e=n(),Cl){_i(!0);try{n()}finally{_i(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:e},t}function my(e,t,n,i){return e.baseState=n,Rd(e,Me,typeof i=="function"?i:pi)}function Cx(e,t,n,i,l){if(cc(e))throw Error(R(485));if(e=t.action,e!==null){var a={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){a.listeners.push(o)}};Q.T!==null?n(!0):a.isTransition=!1,i(a),n=t.pending,n===null?(a.next=t.pending=a,hy(t,a)):(a.next=n.next,t.pending=n.next=a)}}function hy(e,t){var n=t.action,i=t.payload,l=e.state;if(t.isTransition){var a=Q.T,o={};o.types=a!==null?a.types:null,Q.T=o;try{var r=n(l,i),u=Q.S;u!==null&&u(o,r),tp(e,t,r)}catch(c){yf(e,t,c)}finally{a!==null&&o.types!==null&&(a.types=o.types),Q.T=a}}else try{a=n(l,i),tp(e,t,a)}catch(c){yf(e,t,c)}}function tp(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){np(e,t,i)},function(i){return yf(e,t,i)}):np(e,t,n)}function np(e,t,n){t.status="fulfilled",t.value=n,py(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,hy(e,n)))}function yf(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,py(t),t=t.next;while(t!==i)}e.action=null}function py(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gy(e,t){return t}function ip(e,t){if(oe){var n=Ne.formState;if(n!==null){e:{var i=ne;if(oe){if(ze){t:{for(var l=ze,a=dn;l.nodeType!==8;){if(!a){l=null;break t}if(l=mn(l.nextSibling),l===null){l=null;break t}}a=l.data,l=a==="F!"||a==="F"?l:null}if(l){ze=mn(l.nextSibling),i=l.data==="F!";break e}}Fi(i)}i=!1}i&&(t=n[0])}}return n=At(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gy,lastRenderedState:t},n.queue=i,n=Dy.bind(null,ne,i),i.dispatch=n,i=gf(!1),a=Dd.bind(null,ne,!1,i.queue),i=At(),l={state:t,dispatch:null,action:e,pending:null},i.queue=l,n=Cx.bind(null,ne,l,a,n),l.dispatch=n,i.memoizedState=e,[t,n,!1]}function lp(e){var t=Ye();return yy(t,Me,e)}function yy(e,t,n){if(t=Rd(e,t,gy)[0],e=su(pi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=$o(t)}catch(o){throw o===_a?ac:o}else i=t;t=Ye();var l=t.queue,a=l.dispatch;return n!==t.memoizedState&&(ne.flags|=2048,wa(9,{destroy:void 0},Ax.bind(null,l,n),null)),[i,a,e]}function Ax(e,t){e.action=t}function ap(e){var t=Ye(),n=Me;if(n!==null)return yy(t,n,e);Ye(),t=t.memoizedState,n=Ye();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function wa(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=ne.updateQueue,t===null&&(t=oc(),ne.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function by(){return Ye().memoizedState}function fu(e,t,n,i){var l=At();ne.flags|=e,l.memoizedState=wa(1|t,{destroy:void 0},n,i===void 0?null:i)}function uc(e,t,n,i){var l=Ye();i=i===void 0?null:i;var a=l.memoizedState.inst;Me!==null&&i!==null&&xd(i,Me.memoizedState.deps)?l.memoizedState=wa(t,a,n,i):(ne.flags|=e,l.memoizedState=wa(1|t,a,n,i))}function op(e,t){fu(8390656,8,e,t)}function Cd(e,t){uc(2048,8,e,t)}function zx(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=oc(),ne.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function vy(e){var t=Ye().memoizedState;return zx({ref:t,nextImpl:e}),function(){if((ge&2)!==0)throw Error(R(440));return t.impl.apply(void 0,arguments)}}function Sy(e,t){return uc(4,2,e,t)}function xy(e,t){return uc(4,4,e,t)}function wy(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function My(e,t,n){n=n!=null?n.concat([e]):null,uc(4,4,wy.bind(null,t,e),n)}function Ad(){}function Ey(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&xd(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Ty(e,t){var n=Ye();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&xd(t,i[1]))return i[0];if(i=e(),Cl){_i(!0);try{e()}finally{_i(!1)}}return n.memoizedState=[i,t],i}function zd(e,t,n){return n===void 0||(hi&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=yb(),ne.lanes|=e,el|=e,n)}function Ny(e,t,n,i){return tn(n,t)?n:$i.current!==null?(e=zd(e,n,i),tn(e,t)||(Ze=!0),e):(hi&106)===0||(hi&1073741824)!==0&&(de&261930)===0?(Ze=!0,e.memoizedState=n):(e=yb(),ne.lanes|=e,el|=e,t)}function Ry(e,t,n,i,l){var a=ye.p;ye.p=a!==0&&8>a?a:8;var o=Q.T,r={};r.types=o!==null?o.types:null,Q.T=r,Dd(e,!1,t,n);try{var u=l(),c=Q.S;if(c!==null&&c(r,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var f=Tx(u,i);Mo(e,t,f,en(e))}else Mo(e,t,i,en(e))}catch(p){Mo(e,t,{then:function(){},status:"rejected",reason:p},en())}finally{ye.p=a,o!==null&&r.types!==null&&(o.types=r.types),Q.T=o}}function Ox(){}function bf(e,t,n,i){if(e.tag!==5)throw Error(R(476));var l=Cy(e).queue;Ry(e,l,t,bl,n===null?Ox:function(){return Ay(e),n(i)})}function Cy(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:bl,baseState:bl,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:bl},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ay(e){var t=Cy(e);t.next===null&&(t=e.alternate.memoizedState),Mo(e,t.next.queue,{},en())}function Od(){return ct(Aa)}function zy(){return Ye().memoizedState}function Oy(){return Ye().memoizedState}function Dx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=en();e=Yi(n);var i=qi(t,e,n);i!==null&&(kt(i,t,n),So(i,t,n)),t={cache:pd()},e.payload=t;return}t=t.return}}function Lx(e,t,n){var i=en();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},cc(e)?Ly(t,n):(n=dd(e,t,n,i),n!==null&&(kt(n,e,i),_y(n,t,i)))}function Dy(e,t,n){var i=en();Mo(e,t,n,i)}function Mo(e,t,n,i){var l={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(cc(e))Ly(t,l);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,r=a(o,n);if(l.hasEagerState=!0,l.eagerState=r,tn(r,o))return ic(e,t,l,0),Ne===null&&nc(),!1}catch{}finally{}if(n=dd(e,t,l,i),n!==null)return kt(n,e,i),_y(n,t,i),!0}return!1}function Dd(e,t,n,i){if(i={lane:2,revertLane:qd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},cc(e)){if(t)throw Error(R(479))}else t=dd(e,n,i,2),t!==null&&kt(t,e,2)}function cc(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function Ly(e,t){ha=Hu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _y(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,bg(e,n)}}var Pu={readContext:ct,use:rc,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve,useEffectEvent:Ve},Hy={readContext:ct,use:rc,useCallback:function(e,t){return At().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:op,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,fu(4194308,4,wy.bind(null,t,e),n)},useLayoutEffect:function(e,t){return fu(4194308,4,e,t)},useInsertionEffect:function(e,t){fu(4,2,e,t)},useMemo:function(e,t){var n=At();t=t===void 0?null:t;var i=e();if(Cl){_i(!0);try{e()}finally{_i(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=At();if(n!==void 0){var l=n(t);if(Cl){_i(!0);try{n(t)}finally{_i(!1)}}}else l=t;return i.memoizedState=i.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},i.queue=e,e=e.dispatch=Lx.bind(null,ne,e),[i.memoizedState,e]},useRef:function(e){var t=At();return e={current:e},t.memoizedState=e},useState:function(e){e=gf(e);var t=e.queue,n=Dy.bind(null,ne,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ad,useDeferredValue:function(e,t){var n=At();return zd(n,e,t)},useTransition:function(){var e=gf(!1);return e=Ry.bind(null,ne,e.queue,!0,!1),At().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=ne,l=At();if(oe){if(n===void 0)throw Error(R(407));n=n()}else{if(n=t(),Ne===null)throw Error(R(349));(de&127)!==0||uy(i,t,n)}l.memoizedState=n;var a={value:n,getSnapshot:t};return l.queue=a,op(sy.bind(null,i,a,e),[e]),i.flags|=2048,wa(9,{destroy:void 0},cy.bind(null,i,a,n,t),null),n},useId:function(){var e=At(),t=Ne.identifierPrefix;if(oe){var n=jn,i=qn;n=(i&~(1<<32-Wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Uu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Nx++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Od,useFormState:ip,useActionState:ip,useOptimistic:function(e){var t=At();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Dd.bind(null,ne,!0,n),n.dispatch=t,[e,t]},useMemoCache:Nd,useCacheRefresh:function(){return At().memoizedState=Dx.bind(null,ne)},useEffectEvent:function(e){var t=At(),n={impl:e};return t.memoizedState=n,function(){if((ge&2)!==0)throw Error(R(440));return n.impl.apply(void 0,arguments)}}},Uy={readContext:ct,use:rc,useCallback:Ey,useContext:ct,useEffect:Cd,useImperativeHandle:My,useInsertionEffect:Sy,useLayoutEffect:xy,useMemo:Ty,useReducer:su,useRef:by,useState:function(){return su(pi)},useDebugValue:Ad,useDeferredValue:function(e,t){var n=Ye();return Ny(n,Me.memoizedState,e,t)},useTransition:function(){var e=su(pi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:$o(e),t]},useSyncExternalStore:ry,useId:zy,useHostTransitionStatus:Od,useFormState:lp,useActionState:lp,useOptimistic:function(e,t){var n=Ye();return my(n,Me,e,t)},useMemoCache:Nd,useCacheRefresh:Oy,useEffectEvent:vy},_x={readContext:ct,use:rc,useCallback:Ey,useContext:ct,useEffect:Cd,useImperativeHandle:My,useInsertionEffect:Sy,useLayoutEffect:xy,useMemo:Ty,useReducer:Rs,useRef:by,useState:function(){return Rs(pi)},useDebugValue:Ad,useDeferredValue:function(e,t){var n=Ye();return Me===null?zd(n,e,t):Ny(n,Me.memoizedState,e,t)},useTransition:function(){var e=Rs(pi)[0],t=Ye().memoizedState;return[typeof e=="boolean"?e:$o(e),t]},useSyncExternalStore:ry,useId:zy,useHostTransitionStatus:Od,useFormState:ap,useActionState:ap,useOptimistic:function(e,t){var n=Ye();return Me!==null?my(n,Me,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Nd,useCacheRefresh:Oy,useEffectEvent:vy};function Cs(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:Re({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vf={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=en(),l=Yi(i);l.payload=t,n!=null&&(l.callback=n),t=qi(e,l,i),t!==null&&(kt(t,e,i),So(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=en(),l=Yi(i);l.tag=1,l.payload=t,n!=null&&(l.callback=n),t=qi(e,l,i),t!==null&&(kt(t,e,i),So(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=en(),i=Yi(n);i.tag=2,t!=null&&(i.callback=t),t=qi(e,i,n),t!==null&&(kt(t,e,n),So(t,e,n))}};function rp(e,t,n,i,l,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,a,o):t.prototype&&t.prototype.isPureReactComponent?!Do(n,i)||!Do(l,a):!0}function up(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&vf.enqueueReplaceState(t,t.state,null)}function Al(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=Re({},n));for(var l in e)n[l]===void 0&&(n[l]=e[l])}return n}function Py(e){Ru(e)}function ky(e){console.error(e)}function Vy(e){Ru(e)}function ku(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function cp(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Sf(e,t,n){return n=Yi(n),n.tag=3,n.payload={element:null},n.callback=function(){ku(e,t)},n}function By(e){return e=Yi(e),e.tag=3,e}function Gy(e,t,n,i){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var a=i.value;e.payload=function(){return l(a)},e.callback=function(){cp(t,n,i)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){cp(t,n,i),typeof l!="function"&&(Ki===null?Ki=new Set([this]):Ki.add(this));var r=i.stack;this.componentDidCatch(i.value,{componentStack:r!==null?r:""})})}function Hx(e,t,n,i,l){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&El(t,n,l,!0),n=mt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return bt===null?Ku():n.alternate===null&&Be===0&&(Be=3),n.flags&=-257,n.flags|=65536,n.lanes=l,i===Du?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Hs(e,i,l)),!1;case 22:return n.flags|=65536,i===Du?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Hs(e,i,l)),!1}throw Error(R(435,n.tag))}return Hs(e,i,l),Ku(),!1}if(oe)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,i!==uf&&(e=Error(R(422),{cause:i}),_o(fn(e,n)))):(i!==uf&&(t=Error(R(423),{cause:i}),_o(fn(t,n))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,i=fn(i,n),l=Sf(e.stateNode,i,l),Ns(e,l),Be!==4&&(Be=2)),!1;var a=Error(R(520),{cause:i});if(a=fn(a,n),Ro===null?Ro=[a]:Ro.push(a),Be!==4&&(Be=2),t===null)return!0;i=fn(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=l&-l,n.lanes|=e,e=Sf(n.stateNode,i,e),Ns(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(Ki===null||!Ki.has(a))))return n.flags|=65536,l&=-l,n.lanes|=l,l=By(l),Gy(l,e,n,i),Ns(n,l),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ld=Error(R(461)),Ze=!1;function Ie(e,t,n,i){t.child=e===null?ty(t,null,n,i):Rl(t,e.child,n,i)}function sp(e,t,n,i,l){n=n.render;var a=t.ref;if("ref"in i){var o={};for(var r in i)r!=="ref"&&(o[r]=i[r])}else o=i;return Tl(t),i=wd(e,t,n,o,a,l),r=Md(),e!==null&&!Ze?(Ed(e,t,l),gi(e,t,l)):(oe&&r&&lc(t),t.flags|=1,Ie(e,t,i,l),t.child)}function fp(e,t,n,i,l){if(e===null){var a=n.type;return typeof a=="function"&&!md(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Yy(e,t,a,i,l)):(e=ru(n.type,null,i,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Hd(e,l)){var o=a.memoizedProps;if(n=n.compare,n=n!==null?n:Do,n(o,i)&&e.ref===t.ref)return gi(e,t,l)}return t.flags|=1,e=si(a,i),e.ref=t.ref,e.return=t,t.child=e}function Yy(e,t,n,i,l){if(e!==null){var a=e.memoizedProps;if(Do(a,i)&&e.ref===t.ref)if(Ze=!1,t.pendingProps=i=a,Hd(e,l))(e.flags&131072)!==0&&(Ze=!0);else return t.lanes=e.lanes,gi(e,t,l)}return xf(e,t,n,i,l)}function qy(e,t,n,i){var l=i.children,a=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(a=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,l=0;i!==null;)l=l|i.lanes|i.childLanes,i=i.sibling;i=l&~a}else i=0,t.child=null;return dp(e,t,a,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cu(t,a!==null?a.cachePool:null),a!==null?ep(t,a):hf(),ly(t);else return i=t.lanes=536870912,dp(e,t,a!==null?a.baseLanes|n:n,n,i)}else a!==null?(cu(t,a.cachePool),ep(t,a),Xi(),t.memoizedState=null):(e!==null&&cu(t,null),hf(),Xi());return Ie(e,t,l,n),t.child}function Eo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dp(e,t,n,i,l){var a=gd();return a=a===null?null:{parent:Qe._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&cu(t,null),hf(),ly(t),e!==null&&El(e,t,i,!0),t.childLanes=l,null}function du(e,t){return t=sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mp(e,t,n){return Rl(t,e.child,null,n),e=du(t,t.pendingProps),e.flags|=2,Zt(t),t.memoizedState=null,e}function Ux(e,t,n){var i=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(oe){if(i.mode==="hidden")return e=du(t,i),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Eo(null,e);if(pf(t),(e=ze)?(e=qb(e,dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji!==null?{id:qn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},n=Zg(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return du(t,i)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(pf(t),l)if(t.flags&256)t.flags&=-257,t=mp(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(R(558));else if(Ze||El(e,t,n,!1),l=(n&e.childLanes)!==0,Ze||l){if($i.current===null){if(i=Ne,i!==null&&(o=vg(i,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,_l(e,o),kt(i,e,o),Ld;Ku()}t=mp(e,t,n)}else e=a.treeContext,ze=mn(o.nextSibling),ot=t,oe=!0,Gi=null,dn=!1,e!==null&&Jg(t,e),t=du(t,i),t.flags|=134221824;return t}return e=si(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Zl(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(R(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function xf(e,t,n,i,l){return Tl(t),n=wd(e,t,n,i,void 0,l),i=Md(),e!==null&&!Ze?(Ed(e,t,l),gi(e,t,l)):(oe&&i&&lc(t),t.flags|=1,Ie(e,t,n,l),t.child)}function hp(e,t,n,i,l,a){return Tl(t),t.updateQueue=null,n=oy(t,i,n,l),ay(e),i=Md(),e!==null&&!Ze?(Ed(e,t,a),gi(e,t,a)):(oe&&i&&lc(t),t.flags|=1,Ie(e,t,n,a),t.child)}function pp(e,t,n,i,l){if(Tl(t),t.stateNode===null){var a=aa,o=n.contextType;typeof o=="object"&&o!==null&&(a=ct(o)),a=new n(i,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vf,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=i,a.state=t.memoizedState,a.refs={},bd(t),o=n.contextType,a.context=typeof o=="object"&&o!==null?ct(o):aa,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Cs(t,n,o,i),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(o=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),o!==a.state&&vf.enqueueReplaceState(a,a.state,null),wo(t,i,a,l),xo(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){a=t.stateNode;var r=t.memoizedProps,u=Al(n,r);a.props=u;var c=a.context,f=n.contextType;o=aa,typeof f=="object"&&f!==null&&(o=ct(f));var p=n.getDerivedStateFromProps;f=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function",r=t.pendingProps!==r,f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(r||c!==o)&&up(t,a,i,o),Di=!1;var s=t.memoizedState;a.state=s,wo(t,i,a,l),xo(),c=t.memoizedState,r||s!==c||Di?(typeof p=="function"&&(Cs(t,n,p,i),c=t.memoizedState),(u=Di||rp(t,n,u,i,s,c,o))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=c),a.props=i,a.state=c,a.context=o,i=u):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{a=t.stateNode,df(e,t),o=t.memoizedProps,f=Al(n,o),a.props=f,p=t.pendingProps,s=a.context,c=n.contextType,u=aa,typeof c=="object"&&c!==null&&(u=ct(c)),r=n.getDerivedStateFromProps,(c=typeof r=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o!==p||s!==u)&&up(t,a,i,u),Di=!1,s=t.memoizedState,a.state=s,wo(t,i,a,l),xo();var h=t.memoizedState;o!==p||s!==h||Di||e!==null&&e.dependencies!==null&&Ou(e.dependencies)?(typeof r=="function"&&(Cs(t,n,r,i),h=t.memoizedState),(f=Di||rp(t,n,f,i,s,h,u)||e!==null&&e.dependencies!==null&&Ou(e.dependencies))?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(i,h,u),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(i,h,u)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=h),a.props=i,a.state=h,a.context=u,i=f):(typeof a.componentDidUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&s===e.memoizedState||(t.flags|=1024),i=!1)}return a=i,Zl(e,t),i=(t.flags&128)!==0,a||i?(a=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&i?(t.child=Rl(t,e.child,null,l),t.child=Rl(t,null,n,l)):Ie(e,t,n,l),t.memoizedState=a.state,e=t.child):e=gi(e,t,l),e}function gp(e,t,n,i){return Ml(),t.flags|=256,Ie(e,t,n,i),t.child}var wf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Mf(e){return{baseLanes:e,cachePool:$g()}}function Ef(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Jt),e}function jy(e,t,n){var i=t.pendingProps,l=!1,a=(t.flags&128)!==0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(oe){if(l?ji(t):Xi(),(e=ze)?(e=qb(e,dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ji!==null?{id:qn,overflow:jn}:null,retryLane:536870912,hydrationErrors:null},n=Zg(e),n.return=t,t.child=n,ot=t,ze=null)):e=null,e===null)throw Fi(t);return Qd(e)?t.lanes=32:t.lanes=536870912,null}return a=i.children,i=i.fallback,l?(Xi(),l=t.mode,a=sc({mode:"hidden",children:a},l),i=vl(i,l,n,null),a.return=t,i.return=t,a.sibling=i,t.child=a,i=t.child,i.memoizedState=Mf(n),i.childLanes=Ef(e,o,n),t.memoizedState=wf,Eo(null,i)):(ji(t),_d(t,a))}var r=e.memoizedState;if(r!==null){var u=r.dehydrated;if(u!==null)return Px(e,t,a,o,i,u,r,n)}return l?(Xi(),l=i.fallback,a=t.mode,r=e.child,u=r.sibling,i=si(r,{mode:"hidden",children:i.children}),i.subtreeFlags=r.subtreeFlags&1206910976,u!==null?l=si(u,l):(l=vl(l,a,n,null),l.flags|=2),l.return=t,i.return=t,i.sibling=l,t.child=i,Eo(null,i),i=t.child,l=e.child.memoizedState,l===null?l=Mf(n):(a=l.cachePool,a!==null?(r=Qe._currentValue,a=a.parent!==r?{parent:r,pool:r}:a):a=$g(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=Ef(e,o,n),t.memoizedState=wf,Eo(e.child,i)):(ji(t),n=e.child,e=n.sibling,n=si(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function _d(e,t){return t=sc({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function sc(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Qr(e,t,n){return Rl(t,e.child,null,n),e=_d(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Px(e,t,n,i,l,a,o,r){if(n)return t.flags&256?(ji(t),t.flags&=-257,Qr(e,t,r)):t.memoizedState!==null?(Xi(),t.child=e.child,t.flags|=128,null):(Xi(),a=l.fallback,o=t.mode,l=sc({mode:"visible",children:l.children},o),a=vl(a,o,r,null),a.flags|=2,l.return=t,a.return=t,l.sibling=a,t.child=l,Rl(t,e.child,null,r),l=t.child,l.memoizedState=Mf(r),l.childLanes=Ef(e,i,r),t.memoizedState=wf,Eo(null,l));if(ji(t),Qd(a)){if(i=a.nextSibling&&a.nextSibling.dataset,i)var u=i.dgst;return i=u,i!==""&&(l=Error(R(419)),l.stack="",l.digest=i,_o({value:l,source:null,stack:null})),Qr(e,t,r)}if(Ze||El(e,t,r,!1),i=(r&e.childLanes)!==0,Ze||i){if($i.current!==null)return Qr(e,t,r);if(i=Ne,i!==null&&(l=vg(i,r),l!==0&&l!==o.retryLane))throw o.retryLane=l,_l(e,l),kt(i,e,l),Ld;return If(a)||Ku(),Qr(e,t,r)}return If(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,ze=mn(a.nextSibling),ot=t,oe=!0,Gi=null,dn=!1,e!==null&&Jg(t,e),t=_d(t,l.children),t.flags|=134221824,t)}function yp(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),uu(e.return,t,n)}function bp(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&_u(n)===null&&(t=e),e=e.sibling}return t}function Zr(e,t,n,i,l,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:l,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=i,o.tail=n,o.tailMode=l,o.treeForkCount=a)}function As(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Tf(e,t,n){var i=t.pendingProps,l=i.revealOrder,a=i.tail;i=i.children;var o=ft.current;if(t.flags&128)return Uo(t,o),null;var r=(o&2)!==0;if(r?(o=o&1|2,t.flags|=128):o&=1,Uo(t,o),l==="backwards"&&e!==null?(As(e),Ie(e,t,i,n),As(e)):Ie(e,t,i,n),i=oe?Lo:0,!r&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&yp(e,n,t);else if(e.tag===19)yp(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"backwards":n=bp(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null,As(t)),Zr(t,!0,l,null,a,i);break;case"unstable_legacy-backwards":for(n=null,l=t.child,t.child=null;l!==null;){if(e=l.alternate,e!==null&&_u(e)===null){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Zr(t,!0,n,null,a,i);break;case"together":Zr(t,!1,null,null,void 0,i);break;case"independent":t.memoizedState=null;break;default:n=bp(t.child),n===null?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Zr(t,!1,l,n,a,i)}return t.child}function vp(e,t,n){var i=t.pendingProps;return Ui(t,t.type,i.value),Ie(e,t,i.children,n),t.child}function gi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),el|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(El(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(R(153));if(t.child!==null){for(e=t.child,n=si(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=si(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ou(e)))}function kx(e,t,n){switch(t.tag){case 3:Mu(t,t.stateNode.containerInfo),Ui(t,Qe,e.memoizedState.cache),Ml();break;case 27:case 5:Fs(t);break;case 4:Mu(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,pf(t),null;break;case 13:var i=t.memoizedState;if(i!==null){if(i.dehydrated!==null)return ji(t),t.flags|=128,null;i=El(e,t,n,!1);var l=t.child.childLanes;return i||(n&l)!==0?jy(e,t,n):(ji(t),e=gi(e,t,n),e!==null?e.sibling:null)}ji(t);break;case 19:if(t.flags&128)return Tf(e,t,n);if(l=(e.flags&128)!==0,i=(n&t.childLanes)!==0,i||(El(e,t,n,!1),i=(n&t.childLanes)!==0),l){if(i)return Tf(e,t,n);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Uo(t,ft.current),i)break;return null;case 22:return t.lanes=0,qy(e,t,n,t.pendingProps);case 24:Ui(t,Qe,e.memoizedState.cache)}return gi(e,t,n)}function Xy(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ze=!0;else{if(!Hd(e,n)&&(t.flags&128)===0)return Ze=!1,kx(e,t,n);Ze=(e.flags&131072)!==0}else Ze=!1,oe&&(t.flags&1048576)!==0&&Ig(t,Lo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=hl(t.elementType),t.type=e,typeof e=="function")md(e)?(i=Al(e,i),t.tag=1,t=pp(null,t,e,i,n)):(t.tag=0,t=xf(null,t,e,i,n));else{if(e!=null){var l=e.$$typeof;if(l===ed){t.tag=11,t=sp(null,t,e,i,n);break e}else if(l===td){t.tag=14,t=fp(null,t,e,i,n);break e}else if(l===Gn){t.tag=10,t.type=e,t=vp(null,t,n);break e}}throw t=Is(e)||e,Error(R(306,t,""))}}return t;case 0:return xf(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,l=Al(i,t.pendingProps),pp(e,t,i,l,n);case 3:e:{if(Mu(t,t.stateNode.containerInfo),e===null)throw Error(R(387));i=t.pendingProps;var a=t.memoizedState;l=a.element,df(e,t),wo(t,i,null,n);var o=t.memoizedState;if(i=o.cache,Ui(t,Qe,i),i!==a.cache&&sf(t,[Qe],n,!0),xo(),i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=gp(e,t,i,n);break e}else if(i!==l){l=fn(Error(R(424)),t),_o(l),t=gp(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ze=mn(e.firstChild),ot=t,oe=!0,Gi=null,dn=!0,n=ty(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ml(),i===l){t=gi(e,t,n);break e}Ie(e,t,i,n)}t=t.child}return t;case 26:return Zl(e,t),e===null?(n=Kp(t.type,null,t.pendingProps,null))?t.memoizedState=n:oe||(t.stateNode=_b(t.type,t.pendingProps,Bi.current,t)):t.memoizedState=Kp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Fs(t),e===null&&oe&&(i=t.stateNode=jb(t.type,t.pendingProps,Bi.current),ot=t,dn=!0,l=ze,nl(t.type)?(Jf=l,ze=mn(i.firstChild)):ze=l),Ie(e,t,t.pendingProps.children,n),Zl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&oe&&((l=i=ze)&&(i=zw(i,t.type,t.pendingProps,dn),i!==null?(t.stateNode=i,ot=t,ze=mn(i.firstChild),dn=!1,l=!0):l=!1),l||Fi(t)),Fs(t),l=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,i=a.children,Kf(l,a)?i=null:o!==null&&Kf(l,o)&&(t.flags|=32),t.memoizedState!==null&&(l=wd(e,t,Rx,null,null,n),Aa._currentValue=l),Zl(e,t),Ie(e,t,i,n),t.child;case 6:return e===null&&oe&&((e=n=ze)&&(n=Ow(n,t.pendingProps,dn),n!==null?(t.stateNode=n,ot=t,ze=null,e=!0):e=!1),e||Fi(t)),null;case 13:return jy(e,t,n);case 4:return Mu(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Rl(t,null,i,n):Ie(e,t,i,n),t.child;case 11:return sp(e,t,t.type,t.pendingProps,n);case 7:return i=t.pendingProps,Zl(e,t),Ie(e,t,i,n),t.child;case 8:return Ie(e,t,t.pendingProps.children,n),t.child;case 12:return Ie(e,t,t.pendingProps.children,n),t.child;case 10:return vp(e,t,n);case 9:return l=t.type._context,i=t.pendingProps.children,Tl(t),l=ct(l),i=i(l),t.flags|=1,Ie(e,t,i,n),t.child;case 14:return fp(e,t,t.type,t.pendingProps,n);case 15:return Yy(e,t,t.type,t.pendingProps,n);case 19:return Tf(e,t,n);case 31:return Ux(e,t,n);case 22:return qy(e,t,n,t.pendingProps);case 24:return Tl(t),i=ct(Qe),e===null?(l=gd(),l===null&&(l=Ne,a=pd(),l.pooledCache=a,a.refCount++,a!==null&&(l.pooledCacheLanes|=n),l=a),t.memoizedState={parent:i,cache:l},bd(t),Ui(t,Qe,l)):((e.lanes&n)!==0&&(df(e,t),wo(t,null,null,n),xo()),l=e.memoizedState,a=t.memoizedState,l.parent!==i?(l={parent:i,cache:i},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),Ui(t,Qe,i)):(i=a.cache,Ui(t,Qe,i),i!==l.cache&&sf(t,[Qe],n,!0))),Ie(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),i=t.pendingProps,i.name!=null&&i.name!=="auto"?t.flags|=e===null?18882560:18874368:oe&&lc(t),e!==null&&e.memoizedProps.name!==i.name?t.flags|=4194816:Zl(e,t),Ie(e,t,i.children,n),t.child;case 29:throw t.pendingProps}throw Error(R(156,t.tag))}function ri(e){e.flags|=4}function zs(e,t,n,i,l){var a;if((a=(e.mode&32)!==0)&&(a=n===null?Ip(t,i):Ip(t,i)&&(i.src!==n.src||i.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(Sb())e.flags|=8192;else throw xl=Du,yd}else e.flags&=-16777217}function Sp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Zb(t))if(Sb())e.flags|=8192;else throw xl=Du,yd}function Ir(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gg():536870912,e.lanes|=t,Ma|=t)}function oo(e,t){if(!oe)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ae(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags&1206910976,i|=l.flags&1206910976,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)n|=l.lanes|l.childLanes,i|=l.subtreeFlags,i|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Vx(e,t,n){var i=t.pendingProps;switch(hd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ae(t),null;case 1:return Ae(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fi(Qe),va(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?ri(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ts())),Ae(t),null;case 26:var l=t.type,a=t.memoizedState;return e===null?(ri(t),a!==null?(Ae(t),Sp(t,a)):(Ae(t),zs(t,l,null,i,n))):a?a!==e.memoizedState?(ri(t),Ae(t),Sp(t,a)):(Ae(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ri(t),Ae(t),zs(t,l,e,i,n)),null;case 27:if(Eu(t),n=Bi.current,l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ri(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}e=Xn.current,Kl(t)?Qh(t,e):(e=jb(l,i,n),t.stateNode=e,ri(t))}return Ae(t),t.subtreeFlags&=-33554433,null;case 5:if(Eu(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ri(t);else{if(!i){if(t.stateNode===null)throw Error(R(166));return Ae(t),t.subtreeFlags&=-33554433,null}if(a=Xn.current,Kl(t))Qh(t,a);else{var o=Bo(Bi.current);switch(a){case 1:a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=o.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof i.is=="string"?o.createElement("select",{is:i.is}):o.createElement("select"),i.multiple?a.multiple=!0:i.size&&(a.size=i.size);break;default:a=typeof i.is=="string"?o.createElement(l,{is:i.is}):o.createElement(l)}}a[ut]=t,a[Bt]=i;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;e:switch(dt(a,l,i),l){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ri(t)}}return Ae(t),t.subtreeFlags&=-33554433,zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ri(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(R(166));if(e=Bi.current,Kl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,l=ot,l!==null)switch(l.tag){case 27:case 5:i=l.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||Db(e.nodeValue,n)),e||Fi(t,!0)}else e=Bo(e).createTextNode(i),e[ut]=t,t.stateNode=e}return Ae(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Kl(t),n!==null){if(e===null){if(!i)throw Error(R(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(R(557));e[ut]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),e=!1}else n=Ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Zt(t),t):(Zt(t),null);if((t.flags&128)!==0)throw Error(R(558))}return Ae(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Kl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!l)throw Error(R(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(R(317));l[ut]=t}else Ml(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ae(t),l=!1}else l=Ts(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return t.flags&256?(Zt(t),t):(Zt(t),null)}return Zt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,l=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(l=i.alternate.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==l&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ir(t,t.updateQueue),Ae(t),null);case 4:return va(),e===null&&jd(t.stateNode.containerInfo),t.flags|=67108864,Ae(t),null;case 10:return fi(t.type),Ae(t),null;case 19:if(Sd(t),i=t.memoizedState,i===null)return Ae(t),null;if(l=(t.flags&128)!==0,a=i.rendering,a===null)if(l)oo(i,!1);else{if(Be!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=_u(e),a!==null){for(t.flags|=128,oo(i,!1),e=a.updateQueue,t.updateQueue=e,Ir(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Qg(n,e),n=n.sibling;return Uo(t,ft.current&1|2),oe&&ui(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Ft()>ju&&(t.flags|=128,l=!0,oo(i,!1),t.lanes=4194304)}else{if(!l)if(e=_u(a),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Ir(t,e),oo(i,!0),i.tail===null&&i.tailMode!=="collapsed"&&i.tailMode!=="visible"&&!a.alternate&&!oe)return Ae(t),null}else 2*Ft()-i.renderingStartTime>ju&&n!==536870912&&(t.flags|=128,l=!0,oo(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}if(i.tail!==null){e=i.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Ft(),e.sibling=null,a=ft.current,a=l?a&1|2:a&1,i.tailMode==="visible"||i.tailMode==="collapsed"||!n||oe?Uo(t,a):(n=a,Oe(mt,t),Oe(ft,n),bt===null&&(bt=t)),oe&&ui(t,i.treeForkCount),e}return Ae(t),null;case 22:case 23:return Zt(t),vd(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ae(t),t.subtreeFlags&6&&(t.flags|=8192)):Ae(t),n=t.updateQueue,n!==null&&Ir(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&st(Sl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fi(Qe),Ae(t),null;case 25:return null;case 30:return t.flags|=33554432,Ae(t),null}throw Error(R(156,t.tag))}function Bx(e,t){switch(hd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fi(Qe),va(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Eu(t),null;case 31:if(t.memoizedState!==null){if(Zt(t),t.alternate===null)throw Error(R(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(R(340));Ml()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Sd(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return va(),null;case 10:return fi(t.type),null;case 22:case 23:return Zt(t),vd(),e!==null&&st(Sl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fi(Qe),null;case 25:return null;default:return null}}function Ky(e,t){switch(hd(t),t.tag){case 3:fi(Qe),va();break;case 26:case 27:case 5:Eu(t);break;case 4:va();break;case 31:t.memoizedState!==null&&Zt(t);break;case 13:Zt(t);break;case 19:Sd(t);break;case 10:fi(t.type);break;case 22:case 23:Zt(t),vd(),e!==null&&st(Sl);break;case 24:fi(Qe)}}function Wo(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var l=i.next;n=l;do{if((n.tag&e)===e){i=void 0;var a=n.create,o=n.inst;i=a(),o.destroy=i}n=n.next}while(n!==l)}}catch(r){xe(t,t.return,r)}}function Wi(e,t,n){try{var i=t.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var a=l.next;i=a;do{if((i.tag&e)===e){var o=i.inst,r=o.destroy;if(r!==void 0){o.destroy=void 0,l=t;var u=n,c=r;try{c()}catch(f){xe(l,u,f)}}}i=i.next}while(i!==a)}}catch(f){xe(t,t.return,f)}}function Qy(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{iy(t,n)}catch(i){xe(e,e.return,i)}}}function Zy(e,t,n){n.props=Al(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){xe(e,t,i)}}function Vn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:var l=e.stateNode,a=mi(e.memoizedProps,l);(l.ref===null||l.ref.name!==a)&&(l.ref=kb(a)),i=l.ref;break;case 7:if(e.stateNode===null){var o=new nn(e);Vt(e.child,!1,Cw,o,void 0,void 0),e.stateNode=o}i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){xe(e,t,r)}}function rt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(l){xe(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){xe(e,t,l)}else n.current=null}function Vu(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Yb(e.stateNode,t[n])}function xp(e){for(var t=e.return;t!==null&&(Pd(t)&&Yb(e.stateNode,t.stateNode),!Ud(t));)t=t.return}function To(e){for(var t=e.return;t!==null&&(Pd(t)&&Aw(e.stateNode,t.stateNode),!Ud(t));)t=t.return}function Ud(e){return e.tag===5||e.tag===3||e.tag===27}function Pd(e){return e&&e.tag===7&&e.stateNode!==null}function Nf(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(l){xe(e,e.return,l)}}function Os(e,t,n){try{var i=e.stateNode;sw(i,e.type,n,t),i[Bt]=t}catch(l){xe(e,e.return,l)}}function Iy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nl(e.type)||e.tag===4}function Ds(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Iy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&nl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rf(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(l,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(l),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Yn)),Vu(e,i),pe=!0;else if(l!==4&&(l===27&&(Vu(e,i),i=null,nl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Rf(e,t,n,i),e=e.sibling;e!==null;)Rf(e,t,n,i),e=e.sibling}function Bu(e,t,n,i){var l=e.tag;if(l===5||l===6)l=e.stateNode,t?n.insertBefore(l,t):n.appendChild(l),Vu(e,i),pe=!0;else if(l!==4&&(l===27&&(Vu(e,i),i=null,nl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Bu(e,t,n,i),e=e.sibling;e!==null;)Bu(e,t,n,i),e=e.sibling}function Jy(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,l=t.attributes;l.length;)t.removeAttributeNode(l[0]);dt(t,i,n),t[ut]=e,t[Bt]=n}catch(a){xe(e,e.return,a)}}var Gu=!1,It=null;function wp(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Gu=!0)}var Bn=null;function Mp(){var e=Bn;return Bn=null,e}var Ut=0;function Ha(e,t,n,i,l){return Ut=0,Fy(e.child,t,n,i,l)}function Fy(e,t,n,i,l){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(i!==null){var r=Qf(o);i.push(r),r.view&&(a=!0)}else a||Qf(o).view&&(a=!0);Gu=!0,Hb(o,Ut===0?t:t+"_"+Ut,n),Ut++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&l||Fy(e.child,t,n,i,l)&&(a=!0));e=e.sibling}return a}function Qn(e,t){for(;e!==null;)e.tag===5?Ub(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Qn(e.child,t)),e=e.sibling}function mu(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(mu(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(R(544));var n=t.name;t=vi(t.default,t.share),t!=="none"&&(Ha(e,n,t,null,!1)||Qn(e.child,!1))}e=e.sibling}}function Cf(e,t){if(e.tag===30){var n=e.stateNode,i=e.memoizedProps,l=mi(i,n),a=vi(i.default,n.paired?i.share:i.enter);a!=="none"?Ha(e,l,a,null,!1)?(mu(e),n.paired||t||Ea(e,i.onEnter)):Qn(e.child,!1):mu(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Cf(e,t),e=e.sibling;else mu(e)}function Af(e){if(It!==null&&It.size!==0){var t=It;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,i=n.name;if(i!=null&&i!=="auto"){var l=t.get(i);if(l!==void 0){var a=vi(n.default,n.share);if(a!=="none"&&(Ha(e,i,a,null,!1)?(a=e.stateNode,l.paired=a,a.paired=l,Ea(e,n.onShare)):Qn(e.child,!1)),t.delete(i),t.size===0)break}}}Af(e)}e=e.sibling}}}function zf(e){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode),i=It!==null?It.get(n):void 0,l=vi(t.default,i!==void 0?t.share:t.exit);l!=="none"&&(Ha(e,n,l,null,!1)?i!==void 0?(l=e.stateNode,i.paired=l,l.paired=i,It.delete(n),Ea(e,t.onShare)):Ea(e,t.onExit):Qn(e.child,!1)),It!==null&&Af(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)zf(e),e=e.sibling;else It!==null&&Af(e)}function $y(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode);t=vi(t.default,t.update),e.flags&=-5,t!=="none"&&Ha(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&$y(e);e=e.sibling}}function Of(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,Qn(e.child,!1))}Of(e)}e=e.sibling}}function hu(e){if(e.tag===30)e.stateNode.paired=null,Qn(e.child,!1),Of(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)hu(e),e=e.sibling;else Of(e)}function Wy(e){for(e=e.child;e!==null;)e.tag===30?Qn(e.child,!1):(e.subtreeFlags&33554432)!==0&&Wy(e),e=e.sibling}function kd(e,t,n,i,l,a,o){for(var r=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(a!==null&&Ut<a.length){var c=a[Ut],f=Qf(u);(c.view||f.view)&&(r=!0);var p;if(p=(e.flags&4)===0)if(f.clip)p=!0;else{p=c.rect;var s=f.rect;p=p.y!==s.y||p.x!==s.x||p.height!==s.height||p.width!==s.width}p&&(e.flags|=4),f.abs?f=!c.abs:(c=c.rect,f=f.rect,f=c.height!==f.height||c.width!==f.width),f&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Hb(u,Ut===0?n:n+"_"+Ut,l),r&&(e.flags&4)!==0||(Bn===null&&(Bn=[]),Bn.push(u,Ut===0?i:i+"_"+Ut,t.memoizedProps)),Ut++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:kd(e,t.child,n,i,l,a,o)&&(r=!0));t=t.sibling}return r}function eb(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,i=e.stateNode,l=mi(n,i),a=vi(n.default,n.update);if(t){i=i.clones;var o=i===null?null:i.map(gw)}else o=e.memoizedState,e.memoizedState=null;i=e;var r=e.child;Ut=0,l=kd(i,r,l,l,a,o,!1),(e.flags&4)!==0&&l&&(t||Ea(e,n.onUpdate))}else(e.subtreeFlags&33554432)!==0&&eb(e,t);e=e.sibling}}var it=!1,be=!1,Un=!1,Ls=!1,Ep=typeof WeakSet=="function"?WeakSet:Set,lt=null,Pn=!1,po=!1,Yu=!1,Df=!1;function Gx(e,t,n){if(e=e.containerInfo,jf=za,e=Vg(e),sd(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var a=l.anchorOffset,o=l.focusNode;l=l.focusOffset;try{i.nodeType,o.nodeType}catch{i=null;break e}var r=0,u=-1,c=-1,f=0,p=0,s=e,h=null;t:for(;;){for(var S;s!==i||a!==0&&s.nodeType!==3||(u=r+a),s!==o||l!==0&&s.nodeType!==3||(c=r+l),s.nodeType===3&&(r+=s.nodeValue.length),(S=s.firstChild)!==null;)h=s,s=S;for(;;){if(s===e)break t;if(h===i&&++f===a&&(u=r),h===o&&++p===l&&(c=r),(S=s.nextSibling)!==null)break;s=h,h=s.parentNode}s=S}i=u===-1||c===-1?null:{start:u,end:c}}else i=null}i=i||{start:0,end:0}}else i=null;for(Xf={focusedElem:e,selectionRange:i},za=!1,n=(n&335544064)===n,lt=t,t=n?9270:1024;lt!==null;){if(e=lt,n&&(i=e.deletions,i!==null))for(a=0;a<i.length;a++)n&&zf(i[a]);if(e.alternate===null&&(e.flags&2)!==0)n&&wp(e),Jr(n);else{if(e.tag===22){if(i=e.alternate,e.memoizedState!==null){i!==null&&i.memoizedState===null&&n&&zf(i),Jr(n);continue}else if(i!==null&&i.memoizedState!==null){n&&wp(e),Jr(n);continue}}i=e.child,(e.subtreeFlags&t)!==0&&i!==null?(i.return=e,lt=i):(n&&$y(e),Jr(n))}}It=null}function Jr(e){for(;lt!==null;){var t=lt,n=e,i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((l&1024)!==0&&i!==null){n=void 0,l=i.memoizedProps,i=i.memoizedState;var a=t.stateNode;try{var o=Al(t.type,l);n=a.getSnapshotBeforeUpdate(o,i),a.__reactInternalSnapshotBeforeUpdate=n}catch(r){xe(t,t.return,r)}}break;case 3:if((l&1024)!==0){if(i=t.stateNode.containerInfo,n=i.nodeType,n===9)Zf(i);else if(n===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Zf(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&i!==null&&(n=mi(i.memoizedProps,i.stateNode),l=t.memoizedProps,l=vi(l.default,l.update),l!=="none"&&Ha(i,n,l,i.memoizedState=[],!0));break;default:if((l&1024)!==0)throw Error(R(163))}if(i=t.sibling,i!==null){i.return=t.return,lt=i;break}lt=t.return}}function tb(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:kn(e,n),i&4&&Wo(5,n);break;case 1:if(kn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){xe(n,n.return,o)}else{var l=Al(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(l,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){xe(n,n.return,o)}}i&64&&Qy(n),i&512&&Vn(n,n.return);break;case 3:if(kn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{iy(e,t)}catch(o){xe(n,n.return,o)}}break;case 27:t===null&&i&4&&Jy(n);case 26:case 5:kn(e,n),t===null&&i&4&&Nf(n),i&512&&Vn(n,n.return);break;case 12:kn(e,n);break;case 31:kn(e,n),i&4&&ab(e,n);break;case 13:kn(e,n),i&4&&ob(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Wx.bind(null,n),Dw(e,n))));break;case 22:if(i=n.memoizedState!==null||it,!i){var a=t!==null&&t.memoizedState!==null||be;t=it,l=be,it=i,(be=a)&&!l?(i=2,(n.subtreeFlags&8772)!==0&&(i|=1),vn(e,n,i)):kn(e,n),it=t,be=l}break;case 30:kn(e,n),i&512&&Vn(n,n.return);break;case 7:i&512&&Vn(n,n.return);default:kn(e,n)}}function Lf(e,t){for(e=e.child;e!==null;)nb(e,t),e=e.sibling}function nb(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var i=n.style;typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}else{var l=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null;l.style.display=o==null||typeof o=="boolean"?"":(""+o).trim()}}catch(u){xe(e,e.return,u)}_f(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,pe=!0}catch(u){xe(e,e.return,u)}break;case 18:try{var r=e.stateNode;t?Bp(r,!0):Bp(e.stateNode,!1)}catch(u){xe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Lf(e,t);break;default:Lf(e,t)}}function _f(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,i=t;switch(n.tag){case 4:nb(n,i);break e;case 22:n.memoizedState===null&&_f(n,i);break e;default:_f(n,i)}}e=e.sibling}}function ib(e){var t=e.alternate;t!==null&&(e.alternate=null,ib(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$u(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,_t=!1;function bn(e,t,n){for(n=n.child;n!==null;)lb(e,t,n),n=n.sibling}function lb(e,t,n){if($t&&typeof $t.onCommitFiberUnmount=="function")try{$t.onCommitFiberUnmount(Ko,n)}catch{}switch(n.tag){case 26:be||rt(n,t),bn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!be&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:be||rt(n,t),To(n);var i=Ue,l=_t;nl(n.type)&&(Ue=n.stateNode,_t=!1),bn(e,t,n),Xb(n.stateNode,n.type,n.memoizedProps),Ue=i,_t=l;break;case 5:be||rt(n,t),To(n);case 6:if(n.tag===6&&To(n),i=Ue,l=_t,Ue=null,bn(e,t,n),Ue=i,_t=l,Ue!==null)if(_t)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}else try{Ue.removeChild(n.stateNode),pe=!0}catch(a){xe(n,t,a)}break;case 18:Ue!==null&&(_t?(e=Ue,Vp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Oa(e)):Vp(Ue,n.stateNode));break;case 4:i=Ue,l=_t,Ue=n.stateNode.containerInfo,_t=!0,bn(e,t,n),Ue=i,_t=l;break;case 0:case 11:case 14:case 15:Wi(2,n,t),be||Wi(4,n,t),bn(e,t,n);break;case 1:be||(rt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&Zy(n,t,i)),bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:be=(i=be)||n.memoizedState!==null,bn(e,t,n),be=i;break;case 30:rt(n,t),bn(e,t,n);break;case 7:be||rt(n,t),bn(e,t,n);break;default:bn(e,t,n)}}function ab(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Oa(e)}catch(n){xe(t,t.return,n)}}}function ob(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Oa(e)}catch(n){xe(t,t.return,n)}}function Yx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ep),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ep),t;default:throw Error(R(435,e.tag))}}function Fr(e,t){var n=Yx(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var l=ew.bind(null,e,i);i.then(l,l)}})}function Rt(e,t,n){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var a=i[l],o=e,r=t,u=r;e:for(;u!==null;){switch(u.tag){case 27:if(nl(u.type)){Ue=u.stateNode,_t=!1;break e}break;case 5:Ue=u.stateNode,_t=!1;break e;case 3:case 4:Ue=u.stateNode.containerInfo,_t=!0;break e}u=u.return}if(Ue===null)throw Error(R(160));lb(o,r,a),Ue=null,_t=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)rb(t,e,n),t=t.sibling}var Sn=null;function rb(e,t,n){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(l&4&&(i=e.updateQueue,i=i!==null?i.events:null,i!==null))for(var a=0;a<i.length;a++){var o=i[a];o.ref.impl=o.nextImpl}Rt(t,e,n),Ct(e),l&4&&(Wi(3,e,e.return),Wo(3,e),Wi(5,e,e.return));break;case 1:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&64&&it&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(a=Sn,Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),l&4)if(l=i!==null?i.memoizedState:null,n=e.memoizedState,i===null)if(n===null)if(e.stateNode===null)if(it)e.stateNode=_b(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,l=a.ownerDocument||a;t:switch(t){case"title":i=l.getElementsByTagName("title")[0],(!i||i[Io]||i[ut]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=l.createElement(t),l.head.insertBefore(i,l.querySelector("head > title"))),dt(i,t,n),i[ut]=e,at(i),t=i;break e;case"link":if(a=Zp("link","href",l).get(t+(n.href||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;case"meta":if(a=Zp("meta","content",l).get(t+(n.content||""))){for(o=0;o<a.length;o++)if(i=a[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(o,1);break t}}i=l.createElement(t),dt(i,t,n),l.head.appendChild(i);break;default:throw Error(R(468,t))}i[ut]=e,at(i),t=i}e.stateNode=t}else it||Ff(a,e.type,e.stateNode);else e.stateNode=Qp(a,n,e.memoizedProps);else l!==n?(l===null?(t=i.stateNode,t===null||be||t.parentNode.removeChild(t)):l.count--,n===null?it||Ff(a,e.type,e.stateNode):Qp(a,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Os(e,e.memoizedProps,i.memoizedProps);break;case 27:Rt(t,e,n),Ct(e),l&512&&(be||i===null||rt(i,i.return)),i!==null&&l&4&&Os(e,e.memoizedProps,i.memoizedProps);break;case 5:if(a=Un,Un=!1,Rt(t,e,n),Un=a,Ct(e),l&512&&(be||i===null||rt(i,i.return)),e.flags&32){t=e.stateNode;try{xa(t,""),pe=!0}catch(f){xe(e,e.return,f)}}l&4&&e.stateNode!=null&&(t=e.memoizedProps,Os(e,t,i!==null?i.memoizedProps:t)),l&1024&&(Ls=!0);break;case 6:if(Rt(t,e,n),Ct(e),l&4){if(e.stateNode===null)throw Error(R(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,pe=!0}catch(f){xe(e,e.return,f)}}break;case 3:if(pe=!1,bu=null,a=Sn,Sn=Go(t.containerInfo),Rt(t,e,n),Sn=a,Ct(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Oa(t.containerInfo)}catch(f){xe(e,e.return,f)}Ls&&(Ls=!1,ub(e)),pe=!1;break;case 4:l=Un,Un=it,i=zh(),a=Sn,Sn=Go(e.stateNode.containerInfo),Rt(t,e,n),Ct(e),Sn=a,pe&&po&&(Yu=!0),pe=i,Un=l;break;case 12:Rt(t,e,n),Ct(e);break;case 31:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fr(e,t)));break;case 13:Rt(t,e,n),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(fc=Ft()),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fr(e,t)));break;case 22:a=e.memoizedState!==null,o=i!==null&&i.memoizedState!==null;var r=it,u=be,c=Un;it=r||a,Un=c||a,be=u||o,Rt(t,e,n),be=u,Un=c,it=r,Ct(e),l&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||i===null||o||it||be||(t=o||be,n=it,i=be,it=a||it,be=t,zi(e,2),it=n,be=i),!a&&Un||Lf(e,a)),l&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Fr(e,n))));break;case 19:Rt(t,e,n),Ct(e),l&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Fr(e,t)));break;case 30:l&512&&(be||i===null||rt(i,i.return)),l=zh(),a=po,o=(n&335544064)===n,r=e.memoizedProps,po=o&&vi(r.default,r.update)!=="none",Rt(t,e,n),Ct(e),o&&i!==null&&pe&&(e.flags|=4),po=a,pe=l;break;case 21:break;case 7:l&512&&(be||i===null||rt(i,i.return)),i&&i.stateNode!==null&&(i.stateNode._fragmentFiber=e);default:Rt(t,e,n),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(Iy(i)){n=i;break}i=i.return}i=null;for(var l=e.return;l!==null;){if(Pd(l)){var a=l.stateNode;i===null?i=[a]:i.push(a)}if(Ud(l))break;l=l.return}var o=i;if(n==null)throw Error(R(160));switch(n.tag){case 27:var r=n.stateNode,u=Ds(e);Bu(e,u,r,o);break;case 5:var c=n.stateNode;n.flags&32&&(xa(c,""),n.flags&=-33);var f=Ds(e);Bu(e,f,c,o);break;case 3:case 4:var p=n.stateNode.containerInfo,s=Ds(e);Rf(e,s,p,o);break;default:throw Error(R(161))}}catch(h){xe(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ub(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ub(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,za=!0,t.reset(),za=!1),e=e.sibling}}function Ql(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)cb(t,e),t=t.sibling;else eb(t,!1)}function cb(e,t){var n=e.alternate;if(n===null)Cf(e,!1);else switch(e.tag){case 3:if(Df=Pn=!1,Mp(),Ql(t,e),!Pn&&!Yu){if(e=Bn,e!==null)for(var i=0;i<e.length;i+=3){n=e[i];var l=e[i+1];Ub(n,e[i+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Df=!0}Bn=null;break;case 5:Ql(t,e);break;case 4:i=Pn,Pn=!1,Ql(t,e),Pn&&(Yu=!0),Pn=i;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?Cf(e,!1):Ql(t,e));break;case 30:i=Pn,l=Mp(),Pn=!1,Ql(t,e),Pn&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=mi(a,o),o=mi(n.memoizedProps,o);var r=vi(a.default,a.update);r==="none"?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ut=0,t=kd(e,n,t,o,r,a,!0),Ut!==(a===null?0:a.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ea(e,e.memoizedProps.onUpdate),Bn=l):l!==null&&(l.push.apply(l,Bn),Bn=l),Pn=(e.flags&32)!==0?!0:i;break;default:Ql(t,e)}}function kn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)tb(e,t.alternate,t),t=t.sibling}function zi(e,t){for(e=e.child;e!==null;){var n=e,i=t;switch(n.tag){case 0:case 11:case 14:case 15:Wi(4,n,n.return),zi(n,i);break;case 1:rt(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&Zy(n,n.return,l),zi(n,i);break;case 27:(i&2)!==0&&Xb(n.stateNode,n.type,n.memoizedProps);case 5:rt(n,n.return),n.tag!==5&&n.tag!==27||To(n),zi(n,i);break;case 6:To(n);break;case 26:rt(n,n.return),l=n.stateNode,n.memoizedState!==null||l===null||be||l.parentNode.removeChild(l),zi(n,i);break;case 22:n.memoizedState===null&&zi(n,i);break;case 30:rt(n,n.return),zi(n,i);break;case 7:rt(n,n.return);default:zi(n,i)}e=e.sibling}}function vn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var i=t.alternate,l=e,a=t,o=a.flags,r=(n&1)!==0;switch(a.tag){case 0:case 11:case 15:vn(l,a,n),Wo(4,a);break;case 1:if(vn(l,a,n),i=a,l=i.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(f){xe(i,i.return,f)}if(i=a,l=i.updateQueue,l!==null){var u=i.stateNode;try{var c=l.shared.hiddenCallbacks;if(c!==null)for(l.shared.hiddenCallbacks=null,l=0;l<c.length;l++)ny(c[l],u)}catch(f){xe(i,i.return,f)}}r&&o&64&&Qy(a),Vn(a,a.return);break;case 27:(n&2)!==0&&Jy(a);case 5:a.tag!==5&&a.tag!==27||xp(a),vn(l,a,n),r&&i===null&&o&4&&Nf(a),Vn(a,a.return);break;case 6:xp(a);break;case 26:u=a.stateNode,a.memoizedState!==null||u===null||it||Ff(Go(u.ownerDocument),a.type,u),vn(l,a,n),r&&i===null&&o&4&&Nf(a),Vn(a,a.return);break;case 12:vn(l,a,n);break;case 31:vn(l,a,n),r&&o&4&&ab(l,a);break;case 13:vn(l,a,n),r&&o&4&&ob(l,a);break;case 22:a.memoizedState===null&&vn(l,a,n),Vn(a,a.return);break;case 30:vn(l,a,n),Vn(a,a.return);break;case 7:Vn(a,a.return);default:vn(l,a,n)}t=t.sibling}}function Vd(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Fo(n))}function Bd(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fo(e))}function on(e,t,n,i){var l=(n&335544064)===n;if(t.subtreeFlags&(l?10262:10256))for(t=t.child;t!==null;)sb(e,t,n,i),t=t.sibling;else l&&Wy(t)}function sb(e,t,n,i){var l=(n&335544064)===n;l&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&hu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:on(e,t,n,i),a&2048&&Wo(9,t);break;case 1:on(e,t,n,i);break;case 3:on(e,t,n,i),l&&Df&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&Fo(a)));break;case 12:if(a&2048){on(e,t,n,i),a=t.stateNode;try{var o=t.memoizedProps,r=o.id,u=o.onPostCommit;typeof u=="function"&&u(r,t.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(c){xe(t,t.return,c)}}else on(e,t,n,i);break;case 31:on(e,t,n,i);break;case 13:on(e,t,n,i);break;case 23:break;case 22:o=t.stateNode,r=t.alternate,t.memoizedState!==null?(l&&r!==null&&r.memoizedState===null&&hu(r),o._visibility&2?on(e,t,n,i):No(e,t)):(l&&r!==null&&r.memoizedState!==null&&hu(t),o._visibility&2?on(e,t,n,i):(o._visibility|=2,Il(e,t,n,i,(t.subtreeFlags&10256)!==0||!1))),a&2048&&Vd(r,t);break;case 24:on(e,t,n,i),a&2048&&Bd(t.alternate,t);break;case 30:l&&(a=t.alternate,a!==null&&(Qn(a.child,!0),Qn(t.child,!0))),on(e,t,n,i);break;default:on(e,t,n,i)}}function Il(e,t,n,i,l){for(l=l&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var a=e,o=t,r=n,u=i,c=o.flags;switch(o.tag){case 0:case 11:case 15:Il(a,o,r,u,l),Wo(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Il(a,o,r,u,l):No(a,o):(f._visibility|=2,Il(a,o,r,u,l)),l&&c&2048&&Vd(o.alternate,o);break;case 24:Il(a,o,r,u,l),l&&c&2048&&Bd(o.alternate,o);break;default:Il(a,o,r,u,l)}t=t.sibling}}function No(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,l=i.flags;switch(i.tag){case 22:No(n,i),l&2048&&Vd(i.alternate,i);break;case 24:No(n,i),l&2048&&Bd(i.alternate,i);break;default:No(n,i)}t=t.sibling}}var pl=8192;function dl(e,t,n){if(e.subtreeFlags&pl)for(e=e.child;e!==null;)fb(e,t,n),e=e.sibling}function fb(e,t,n){switch(e.tag){case 26:dl(e,t,n),e.flags&pl&&(e.memoizedState!==null?Kw(n,Sn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Jp(n,e)));break;case 5:dl(e,t,n),e.flags&pl&&(e=e.stateNode,(t&335544128)===t&&Jp(n,e));break;case 3:case 4:var i=Sn;Sn=Go(e.stateNode.containerInfo),dl(e,t,n),Sn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=pl,pl=16777216,dl(e,t,n),pl=i):dl(e,t,n));break;case 30:if((e.flags&pl)!==0&&(i=e.memoizedProps.name,i!=null&&i!=="auto")){var l=e.stateNode;l.paired=null,It===null&&(It=new Map),It.set(i,l)}dl(e,t,n);break;default:dl(e,t,n)}}function db(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ro(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,hb(i,e)}db(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)mb(e),e=e.sibling}function mb(e){switch(e.tag){case 0:case 11:case 15:ro(e),e.flags&2048&&Wi(9,e,e.return);break;case 3:ro(e);break;case 12:ro(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,pu(e)):ro(e);break;default:ro(e)}}function pu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];lt=i,hb(i,e)}db(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wi(8,t,t.return),pu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,pu(t));break;default:pu(t)}e=e.sibling}}function hb(e,t){for(;lt!==null;){var n=lt;switch(n.tag){case 0:case 11:case 15:Wi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Fo(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,lt=i;else e:for(n=e;lt!==null;){i=lt;var l=i.sibling,a=i.return;if(ib(i),i===n){lt=null;break e}if(l!==null){l.return=a,lt=l;break e}lt=a}}}var qx={getCacheForType:function(e){var t=ct(Qe),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ct(Qe).controller.signal}},jx=typeof WeakMap=="function"?WeakMap:Map,ge=0,Ne=null,se=null,de=0,ve=0,Kt=null,Pi=!1,Ua=!1,Gd=!1,yi=0,Be=0,el=0,wl=0,qu=0,Jt=0,Ma=0,Ro=null,Ht=null,Hf=!1,fc=0,pb=0,ju=1/0,Xu=null,Ki=null,ke=0,wn=null,zl=null,Kn=0,Uf=0,Pf=null,gb=null,ga=null,ya=null,ba=null,Co=0,gu=null;function en(){return(ge&2)!==0&&de!==0?de&-de:Q.T!==null?qd():Sg()}function yb(){if(Jt===0)if((de&536870912)===0||oe){var e=kr;kr<<=1,(kr&3932160)===0&&(kr=262144),Jt=e}else Jt=536870912;return e=mt.current,e!==null&&(e.flags|=32),Jt}function Ea(e,t){if(t!=null){var n=e.stateNode,i=n.ref;i===null&&(i=n.ref=kb(mi(e.memoizedProps,n))),ya===null&&(ya=[]),ya.push(t.bind(null,i))}}function kt(e,t,n){(e===Ne&&(ve===2||ve===9)||e.cancelPendingCommit!==null)&&(Ta(e,0),ki(e,de,Jt,!1)),Zo(e,n),((ge&2)===0||e!==Ne)&&(e===Ne&&((ge&2)===0&&(wl|=n),Be===4&&ki(e,de,Jt,!1)),In(e))}function bb(e,t,n){if((ge&6)!==0)throw Error(R(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Qo(e,t),l=i?Qx(e,t):_s(e,t,!0),a=i;do{if(l===0){Ua&&!i&&ki(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!Xx(n)){l=_s(e,t,!1),a=!1;continue}if(l===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var r=e;l=Ro;var u=r.current.memoizedState.isDehydrated;if(u&&(Ta(r,o).flags|=256),o=_s(r,o,!1),o!==2&&o!==6){if(Gd&&!u){r.errorRecoveryDisabledLanes|=a,wl|=a,l=4;break e}a=Ht,Ht=l,a!==null&&(Ht===null?Ht=a:Ht.push.apply(Ht,a))}l=o}if(a=!1,l!==2)continue}}if(l===1){Ta(e,0),ki(e,t,0,!0);break}e:{switch(i=e,a=l,a){case 0:case 1:throw Error(R(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:ki(i,t,Jt,!Pi);break e;case 2:Ht=null;break;case 3:case 5:break;default:throw Error(R(329))}if((t&62914560)===t&&(l=fc+300-Ft(),10<l)){if(ki(i,t,Jt,!Pi),Fu(i,0,!0)!==0)break e;Kn=t,i.timeoutHandle=Xd(Tp.bind(null,i,n,Ht,Xu,Hf,t,Jt,wl,Ma,Pi,a,"Throttled",-0,0),l);break e}Tp(i,n,Ht,Xu,Hf,t,Jt,wl,Ma,Pi,a,null,-0,0)}}break}while(!0);In(e)}function Tp(e,t,n,i,l,a,o,r,u,c,f,p,s,h){e.timeoutHandle=-1;var S=t.subtreeFlags,b=(a&335544064)===a;if(p=null,(b||S&8192||(S&16785408)===16785408)&&(p={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yn},It=null,fb(t,a,p),b&&(S=p,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(S.count++,S.waitingForViewTransition=!0,S=Yo.bind(S),b.finished.then(S,S))),S=(a&62914560)===a?fc-Ft():(a&4194048)===a?pb-Ft():0,S=Qw(p,S),S!==null)){Kn=a,e.cancelPendingCommit=S(Rp.bind(null,e,t,a,n,i,l,o,r,u,c,f,p,null,s,h)),ki(e,a,o,!c);return}Rp(e,t,a,n,i,l,o,r,u,c,f,p)}function Xx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var l=n[i],a=l.getSnapshot;l=l.value;try{if(!tn(a(),l))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ki(e,t,n,i){t=pg(e,t),t&=~qu,t&=~wl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var l=t;0<l;){var a=31-Wt(l),o=1<<a;i[a]=-1,l&=~o}n!==0&&yg(e,n,t)}function dc(){return(ge&6)===0?(er(0,!1),!1):!0}function Yd(){if(se!==null){if(ve===0)var e=se.return;else e=se,ci=Hl=null,Td(e),ma=null,Ho=0,e=se;for(;e!==null;)Ky(e.alternate,e),e=e.return;se=null}}function Ta(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,mw(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Kn=0,Yd(),Ne=e,se=n=si(e.current,null),de=t,ve=0,Kt=null,Pi=!1,Ua=Qo(e,t),Gd=!1,Ma=Jt=qu=wl=el=Be=0,Ht=Ro=null,Hf=!1,yi=pg(e,t),nc(),n}function vb(e,t){ne=null,Q.H=Pu,t===_a||t===ac?(t=$h(),ve=3):t===yd?(t=$h(),ve=4):ve=t===Ld?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,se===null&&(Be=1,ku(e,fn(t,e.current)))}function Sb(){var e=mt.current;return e===null?!0:(de&4194048)===de?bt===null:(de&62914560)===de||(de&536870912)!==0?e===bt:!1}function xb(){var e=Q.H;return Q.H=Pu,e===null?Pu:e}function wb(){var e=Q.A;return Q.A=qx,e}function Ku(){Be=4,Pi||(de&4194048)!==de&&mt.current!==null||(Ua=!0),(el&134217727)===0&&(wl&134217727)===0||Ne===null||ki(Ne,de,Jt,!1)}function _s(e,t,n){var i=ge;ge|=2;var l=xb(),a=wb();(Ne!==e||de!==t)&&(Xu=null,Ta(e,t)),t=!1;var o=Be;e:do try{if(ve!==0&&se!==null){var r=se,u=Kt;switch(ve){case 8:Yd(),o=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var c=ve;if(ve=0,Kt=null,ua(e,r,u,c),n&&Ua){o=0;break e}break;default:c=ve,ve=0,Kt=null,ua(e,r,u,c)}}Kx(),o=Be;break}catch(f){vb(e,f)}while(!0);return t&&e.shellSuspendCounter++,ci=Hl=null,ge=i,Q.H=l,Q.A=a,se===null&&(Ne=null,de=0,nc()),o}function Kx(){for(;se!==null;)Mb(se)}function Qx(e,t){var n=ge;ge|=2;var i=xb(),l=wb();Ne!==e||de!==t?(Xu=null,ju=Ft()+500,Ta(e,t)):Ua=Qo(e,t);e:do try{if(ve!==0&&se!==null){t=se;var a=Kt;t:switch(ve){case 1:ve=0,Kt=null,ua(e,t,a,1);break;case 2:case 9:if(Fh(a)){ve=0,Kt=null,Np(t);break}t=function(){ve!==2&&ve!==9||Ne!==e||(ve=7),In(e)},a.then(t,t);break e;case 3:ve=7;break e;case 4:ve=5;break e;case 7:Fh(a)?(ve=0,Kt=null,Np(t)):(ve=0,Kt=null,ua(e,t,a,7));break;case 5:var o=null;switch(se.tag){case 26:o=se.memoizedState;case 5:case 27:var r=se;if(o?Zb(o):r.stateNode.complete){ve=0,Kt=null;var u=r.sibling;if(u!==null)se=u;else{var c=r.return;c!==null?(se=c,mc(c)):se=null}break t}}ve=0,Kt=null,ua(e,t,a,5);break;case 6:ve=0,Kt=null,ua(e,t,a,6);break;case 8:Yd(),Be=6;break e;default:throw Error(R(462))}}Zx();break}catch(f){vb(e,f)}while(!0);return ci=Hl=null,Q.H=i,Q.A=l,ge=n,se!==null?0:(Ne=null,de=0,nc(),Be)}function Zx(){for(;se!==null&&!fS();)Mb(se)}function Mb(e){var t=Xy(e.alternate,e,yi);e.memoizedProps=e.pendingProps,t===null?mc(e):se=t}function Np(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=hp(n,t,t.pendingProps,t.type,void 0,de);break;case 11:t=hp(n,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:Td(t);var i=t;i===ot&&(oe?(zu(i),i.tag===5&&i.stateNode!=null&&(ze=i.stateNode)):(zu(i),oe=!0));default:Ky(n,t),t=se=Qg(t,yi),t=Xy(n,t,yi)}e.memoizedProps=e.pendingProps,t===null?mc(e):se=t}function ua(e,t,n,i){ci=Hl=null,Td(t),ma=null,Ho=0;var l=t.return;try{if(Hx(e,l,t,n,de)){Be=1,ku(e,fn(n,e.current)),se=null;return}}catch(a){if(l!==null)throw se=l,a;Be=1,ku(e,fn(n,e.current)),se=null;return}t.flags&32768?(oe||i===1?e=!0:Ua||(de&536870912)!==0?e=!1:(Pi=e=!0,(i===2||i===9||i===3||i===6)&&(i=mt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Eb(t,e)):mc(t)}function mc(e){var t=e;do{if((t.flags&32768)!==0){Eb(t,Pi);return}e=t.return;var n=Vx(t.alternate,t,yi);if(n!==null){se=n;return}if(t=t.sibling,t!==null){se=t;return}se=t=e}while(t!==null);Be===0&&(Be=5)}function Eb(e,t){do{var n=Bx(e.alternate,e);if(n!==null){n.flags&=32767,se=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){se=e;return}se=e=n}while(e!==null);Be=6,se=null}function Rp(e,t,n,i,l,a,o,r,u,c,f,p){e.cancelPendingCommit=null;do hc();while(ke!==0);if((ge&6)!==0)throw Error(R(327));if(t!==null){if(t===e.current)throw Error(R(177));e===Ne&&(se=Ne=null,de=0),zl=t,wn=e,Kn=n,Pf=l,gb=i,Ix(e,t,n,o,r,u,p)}}function Ix(e,t,n,i,l,a,o){var r=t.lanes|t.childLanes;if(Uf=r,r|=fd,xS(e,n,r,i,l,a),ya=null,(n&335544064)===n?(ba=Mx(e),i=10262):(ba=null,i=10256),(t.subtreeFlags&i)!==0||(t.flags&i)!==0?(e.callbackNode=null,e.callbackPriority=0,tw(Tu,function(){return Gf(),null})):(e.callbackNode=null,e.callbackPriority=0),Gu=!1,i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null,l=ye.p,ye.p=2,a=ge,ge|=4;try{Gx(e,t,n)}finally{ge=a,ye.p=l,Q.T=i}}ke=1,Gu?ga=vw(o,e.containerInfo,ba,kf,Vf,Fx,Bf,Gf,Jx,null,null):(kf(),Vf(),Bf())}function Jx(e){if(ke!==0){var t=wn.onRecoverableError;t(e,{componentStack:null})}}function Fx(){ke===3&&(ke=0,cb(zl,wn),ke=4)}function kf(){if(ke===1){ke=0;var e=wn,t=zl,n=Kn,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=Q.T,Q.T=null;var l=ye.p;ye.p=2;var a=ge;ge|=4;try{po=Yu=!1,rb(t,e,n),n=Xf;var o=Vg(e.containerInfo),r=n.focusedElem,u=n.selectionRange;if(o!==r&&r&&r.ownerDocument&&kg(r.ownerDocument.documentElement,r)){if(u!==null&&sd(r)){var c=u.start,f=u.end;if(f===void 0&&(f=c),"selectionStart"in r)r.selectionStart=c,r.selectionEnd=Math.min(f,r.value.length);else{var p=r.ownerDocument||document,s=p&&p.defaultView||window;if(s.getSelection){var h=s.getSelection(),S=r.textContent.length,b=Math.min(u.start,S),v=u.end===void 0?b:Math.min(u.end,S);!h.extend&&b>v&&(o=v,v=b,b=o);var d=qh(r,b),m=qh(r,v);if(d&&m&&(h.rangeCount!==1||h.anchorNode!==d.node||h.anchorOffset!==d.offset||h.focusNode!==m.node||h.focusOffset!==m.offset)){var g=p.createRange();g.setStart(d.node,d.offset),h.removeAllRanges(),b>v?(h.addRange(g),h.extend(m.node,m.offset)):(g.setEnd(m.node,m.offset),h.addRange(g))}}}}for(p=[],h=r;h=h.parentNode;)h.nodeType===1&&p.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<p.length;r++){var x=p[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}za=!!jf,Xf=jf=null}finally{ge=a,ye.p=l,Q.T=i}}e.current=t,ke=2}}function Vf(){if(ke===2){ke=0;var e=wn,t=zl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=Q.T,Q.T=null;var i=ye.p;ye.p=2;var l=ge;ge|=4;try{tb(e,t.alternate,t)}finally{ge=l,ye.p=i,Q.T=n}}ke=3}}function Bf(){if(ke===4||ke===3){ke=0;var e=ga;ga=null,dS();var t=wn,n=zl,i=Kn,l=gb,a=(i&335544064)===i?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?ke=5:(ke=0,zl=wn=null,Tb(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Ki=null),ld(i),n=n.stateNode,$t&&typeof $t.onCommitFiberRoot=="function")try{$t.onCommitFiberRoot(Ko,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=Q.T,a=ye.p,ye.p=2,Q.T=null;try{for(var o=t.onRecoverableError,r=0;r<l.length;r++){var u=l[r];o(u.value,{componentStack:u.stack})}}finally{Q.T=n,ye.p=a}}if(l=ya,o=ba,ba=null,l!==null&&(ya=null,o===null&&(o=[]),e!==null))for(u=0;u<l.length;u++)n=(0,l[u])(o),n!==void 0&&e.finished.finally(n);(Kn&3)!==0&&hc(),In(t),a=t.pendingLanes,(i&261930)!==0&&(a&42)!==0?t===gu?Co++:(Co=0,gu=t):(Co=0,gu=null),er(0,!1)}}function Tb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fo(t)))}function hc(){return ga!==null&&(ga.skipTransition(),ga=null),kf(),Vf(),Bf(),Gf()}function Gf(){if(ke!==5)return!1;var e=wn,t=Uf;Uf=0;var n=ld(Kn),i=Q.T,l=ye.p;try{ye.p=32>n?32:n,Q.T=null,n=Pf,Pf=null;var a=wn,o=Kn;if(ke=0,zl=wn=null,Kn=0,(ge&6)!==0)throw Error(R(331));var r=ge;if(ge|=4,mb(a.current),sb(a,a.current,o,n),ge=r,er(0,!1),$t&&typeof $t.onPostCommitFiberRoot=="function")try{$t.onPostCommitFiberRoot(Ko,a)}catch{}return!0}finally{ye.p=l,Q.T=i,Tb(e,t)}}function Cp(e,t,n){t=fn(n,t),t=Sf(e.stateNode,t,2),e=qi(e,t,2),e!==null&&(Zo(e,2),In(e))}function xe(e,t,n){if(e.tag===3)Cp(e,e,n);else for(;t!==null;){if(t.tag===3){Cp(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ki===null||!Ki.has(i))){e=fn(n,e),n=By(2),i=qi(t,n,2),i!==null&&(Gy(n,i,t,e),Zo(i,2),In(i));break}}t=t.return}}function Hs(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new jx;var l=new Set;i.set(t,l)}else l=i.get(t),l===void 0&&(l=new Set,i.set(t,l));l.has(n)||(Gd=!0,l.add(n),e=$x.bind(null,e,t,n),t.then(e,e))}function $x(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ne===e&&(de&n)===n&&((Be===4||Be===3&&(de&62914560)===de&&300>Ft()-fc)&&(ge&2)===0?Ta(e,0):qu|=n,Ma===de&&(Ma=0)),In(e)}function Nb(e,t){t===0&&(t=gg()),e=_l(e,t),e!==null&&(Zo(e,t),In(e))}function Wx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nb(e,n)}function ew(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(R(314))}i!==null&&i.delete(t),Nb(e,n)}function tw(e,t){return nd(e,t)}var Na=null,Jl=null,Yf=!1,Qu=!1,Us=!1,Vi=0;function In(e){e!==Jl&&e.next===null&&(Jl===null?Na=Jl=e:Jl=Jl.next=e),Qu=!0,Yf||(Yf=!0,iw())}function er(e,t){if(!Us&&Qu){Us=!0;do for(var n=!1,i=Na;i!==null;){if(!t)if(e!==0){var l=i.pendingLanes;if(l===0)var a=0;else{var o=i.suspendedLanes,r=i.pingedLanes;a=(1<<31-Wt(42|e)+1)-1,a&=l&~(o&~r),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Ap(i,a))}else a=de,a=Fu(i,i===Ne?a:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(a&3)===0||Qo(i,a)||(n=!0,Ap(i,a));i=i.next}while(n);Us=!1}}function nw(){Rb()}function Rb(){Qu=Yf=!1;var e=0;Vi!==0&&dw()&&(e=Vi);for(var t=Ft(),n=null,i=Na;i!==null;){var l=i.next,a=Cb(i,t);a===0?(i.next=null,n===null?Na=l:n.next=l,l===null&&(Jl=n)):(n=i,(e!==0||(a&3)!==0)&&(Qu=!0)),i=l}ke!==0&&ke!==5||er(e,!1),Vi!==0&&(Vi=0)}function Cb(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Wt(a),r=1<<o,u=l[o];u===-1?((r&n)===0||(r&i)!==0)&&(l[o]=SS(r,t)):u<=t&&(e.expiredLanes|=r),a&=~r}if(t=Ne,n=de,n=Fu(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(ve===2||ve===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&hs(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Qo(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&hs(i),ld(n)){case 2:case 8:n=mg;break;case 32:n=Tu;break;case 268435456:n=hg;break;default:n=Tu}return i=Ab.bind(null,e),n=nd(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&hs(i),e.callbackPriority=2,e.callbackNode=null,2}function Ab(e,t){if(ke!==0&&ke!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(hc()&&e.callbackNode!==n)return null;var i=de;return i=Fu(e,e===Ne?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(bb(e,i,t),Cb(e,Ft()),e.callbackNode!=null&&e.callbackNode===n?Ab.bind(null,e):null)}function Ap(e,t){if(hc())return null;bb(e,t,!0)}function iw(){hw(function(){(ge&6)!==0?nd(dg,nw):Rb()})}function qd(){if(Vi===0){var e=Nl;e===0&&(e=Pr,Pr<<=1,(Pr&261888)===0&&(Pr=256)),Vi=e}return Vi}function zp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:lu(e)}function lw(e,t,n,i,l){if(t==="submit"&&n&&n.stateNode===l){var a=zp((l[Bt]||null).action),o=i.submitter;o&&(t=(t=o[Bt]||null)?zp(t.formAction):o.getAttribute("formAction"),t!==null&&(a=t,o=null));var r=new Wu("action","action",null,i,l);e.push({event:r,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Vi!==0){var u=new FormData(l,o);bf(n,{pending:!0,data:u,method:l.method,action:a},null,u)}}else typeof a=="function"&&(r.preventDefault(),u=new FormData(l,o),bf(n,{pending:!0,data:u,method:l.method,action:a},a,u))},currentTarget:l}]})}}for($r=0;$r<rf.length;$r++)Wr=rf[$r],Op=Wr.toLowerCase(),Dp=Wr[0].toUpperCase()+Wr.slice(1),Mn(Op,"on"+Dp);var Wr,Op,Dp,$r;Mn(Gg,"onAnimationEnd");Mn(Yg,"onAnimationIteration");Mn(qg,"onAnimationStart");Mn("dblclick","onDoubleClick");Mn("focusin","onFocus");Mn("focusout","onBlur");Mn(px,"onTransitionRun");Mn(gx,"onTransitionStart");Mn(yx,"onTransitionCancel");Mn(jg,"onTransitionEnd");Sa("onMouseEnter",["mouseout","mouseover"]);Sa("onMouseLeave",["mouseout","mouseover"]);Sa("onPointerEnter",["pointerout","pointerover"]);Sa("onPointerLeave",["pointerout","pointerover"]);Dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Dl("onBeforeInput",["compositionend","keypress","textInput","paste"]);Dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ko="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),aw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ko));function zb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],l=i.event;i=i.listeners;e:{var a=void 0;if(t)for(var o=i.length-1;0<=o;o--){var r=i[o],u=r.instance,c=r.currentTarget;if(r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){Ru(f)}l.currentTarget=null,a=u}else for(o=0;o<i.length;o++){if(r=i[o],u=r.instance,c=r.currentTarget,r=r.listener,u!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=c;try{a(l)}catch(f){Ru(f)}l.currentTarget=null,a=u}}}}function ce(e,t){var n=t[Nh];n===void 0&&(n=t[Nh]=new Set);var i=e+"__bubble";n.has(i)||(Ob(t,e,2,!1),n.add(i))}function Ps(e,t,n){var i=0;t&&(i|=4),Ob(n,e,i,t)}var eu="_reactListening"+Math.random().toString(36).slice(2);function jd(e){if(!e[eu]){e[eu]=!0,wg.forEach(function(n){n!=="selectionchange"&&(aw.has(n)||Ps(n,!1,e),Ps(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[eu]||(t[eu]=!0,Ps("selectionchange",!1,t))}}function Ob(e,t,n,i){switch(t0(t)){case 2:var l=Fw;break;case 8:l=$w;break;default:l=Fd}n=l.bind(null,t,n,e),l=void 0,!nf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),i?l!==void 0?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):l!==void 0?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function ks(e,t,n,i,l){var a=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var r=i.stateNode.containerInfo;if(r===l)break;if(o===4)for(o=i.return;o!==null;){var u=o.tag;if((u===3||u===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;r!==null;){if(o=gl(r),o===null)return;if(u=o.tag,u===5||u===6||u===26||u===27){i=a=o;continue e}r=r.parentNode}}i=i.return}zg(function(){var c=a,f=od(n),p=[];e:{var s=Xg.get(e);if(s!==void 0){var h=Wu,S=e;switch(e){case"keypress":if(ou(n)===0)break e;case"keydown":case"keyup":h=XS;break;case"focusin":S="focus",h=Ss;break;case"focusout":S="blur",h=Ss;break;case"beforeblur":case"afterblur":h=Ss;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=_h;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=LS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=JS;break;case Gg:case Yg:case qg:h=US;break;case jg:h=$S;break;case"scroll":case"scrollend":h=OS;break;case"wheel":h=ex;break;case"copy":case"cut":case"paste":h=kS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Uh;break;case"submit":h=ZS;break;case"toggle":case"beforetoggle":h=nx}var b=(t&4)!==0,v=!b&&(e==="scroll"||e==="scrollend"),d=b?s!==null?s+"Capture":null:s;b=[];for(var m=c,g;m!==null;){var x=m;if(g=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||g===null||d===null||(x=zo(m,d),x!=null&&b.push(Vo(m,x,g))),v)break;m=m.return}0<b.length&&(s=new h(s,S,null,n,f),p.push({event:s,listeners:b}))}}if((t&7)===0){e:{if(h=e==="mouseover"||e==="pointerover",s=e==="mouseout"||e==="pointerout",h&&n!==tf&&(S=n.relatedTarget||n.fromElement)&&(gl(S)||S[Da]))break e;(s||h)&&(S=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,s?(h=n.relatedTarget||n.toElement,s=c,h=h?gl(h):null,h!==null&&(v=Xo(h),b=h.tag,h!==v||b!==5&&b!==27&&b!==6)&&(h=null)):(s=null,h=c),s!==h&&(b=_h,x="onMouseLeave",d="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=Uh,x="onPointerLeave",d="onPointerEnter",m="pointer"),v=s==null?S:mo(s),g=h==null?S:mo(h),S=new b(x,m+"leave",s,n,f),S.target=v,S.relatedTarget=g,x=null,gl(f)===c&&(b=new b(d,m+"enter",h,n,f),b.target=g,b.relatedTarget=v,x=b),v=x,b=s&&h?qs(s,h,ow):null,s!==null&&Lp(p,S,s,b,!1),h!==null&&v!==null&&Lp(p,v,h,b,!0)))}e:{if(s=c?mo(c):window,h=s.nodeName&&s.nodeName.toLowerCase(),h==="select"||h==="input"&&s.type==="file")var M=Bh;else if(Vh(s))if(Ug)M=dx;else{M=sx;var T=cx}else h=s.nodeName,!h||h.toLowerCase()!=="input"||s.type!=="checkbox"&&s.type!=="radio"?c&&ad(c.elementType)&&(M=Bh):M=fx;if(M&&(M=M(e,c))){Hg(p,M,n,f);break e}T&&T(e,s,c)}switch(T=c?mo(c):window,e){case"focusin":(Vh(T)||T.contentEditable==="true")&&(na=T,af=c,bo=null);break;case"focusout":bo=af=na=null;break;case"mousedown":of=!0;break;case"contextmenu":case"mouseup":case"dragend":of=!1,jh(p,n,f);break;case"selectionchange":if(hx)break;case"keydown":case"keyup":jh(p,n,f)}var w;if(cd)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else ta?Lg(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(Dg&&n.locale!=="ko"&&(ta||N!=="onCompositionStart"?N==="onCompositionEnd"&&ta&&(w=Og()):(Hi=f,rd="value"in Hi?Hi.value:Hi.textContent,ta=!0)),T=Zu(c,N),0<T.length&&(N=new Hh(N,e,null,n,f),p.push({event:N,listeners:T}),w?N.data=w:(w=_g(n),w!==null&&(N.data=w)))),(w=lx?ax(e,n):ox(e,n))&&(N=Zu(c,"onBeforeInput"),0<N.length&&(T=new Hh("onBeforeInput","beforeinput",null,n,f),p.push({event:T,listeners:N}),T.data=w)),lw(p,e,c,n,f)}zb(p,t)})}function Vo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zu(e,t){for(var n=t+"Capture",i=[];e!==null;){var l=e,a=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||a===null||(l=zo(e,n),l!=null&&i.unshift(Vo(e,l,a)),l=zo(e,t),l!=null&&i.push(Vo(e,l,a))),e.tag===3)return i;e=e.return}return[]}function ow(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Lp(e,t,n,i,l){for(var a=t._reactName,o=[];n!==null&&n!==i;){var r=n,u=r.alternate,c=r.stateNode;if(r=r.tag,u!==null&&u===i)break;r!==5&&r!==26&&r!==27||c===null||(u=c,l?(c=zo(n,a),c!=null&&o.unshift(Vo(n,c,u))):l||(c=zo(n,a),c!=null&&o.push(Vo(n,c,u)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var rw=/\r\n?/g,uw=/\u0000|\uFFFD/g;function _p(e){return(typeof e=="string"?e:""+e).replace(rw,`
|
|
778
|
+
`).replace(uw,"")}function Db(e,t){return t=_p(t),_p(e)===t}function Se(e,t,n,i,l,a){switch(n){case"children":if(typeof i=="string")t==="body"||t==="textarea"&&i===""||xa(e,i);else if(typeof i=="number"||typeof i=="bigint")t!=="body"&&xa(e,""+i);else return;break;case"className":Br(e,"class",i);break;case"tabIndex":Br(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Br(e,n,i);break;case"style":Ag(e,i,a);return;case"data":if(t!=="object"){Br(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=lu(i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Se(e,t,"name",l.name,l,null),Se(e,t,"formEncType",l.formEncType,l,null),Se(e,t,"formMethod",l.formMethod,l,null),Se(e,t,"formTarget",l.formTarget,l,null)):(Se(e,t,"encType",l.encType,l,null),Se(e,t,"method",l.method,l,null),Se(e,t,"target",l.target,l,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=lu(i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Yn);return;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=lu(i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":ce("beforetoggle",e),ce("toggle",e),iu(e,"popover",i);break;case"xlinkActuate":oi(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":oi(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":oi(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":oi(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":oi(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":oi(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":oi(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":oi(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":oi(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":iu(e,"is",i);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=AS.get(n)||n,iu(e,n,i);else return}pe=!0}function qf(e,t,n,i,l,a){switch(n){case"style":Ag(e,i,a);return;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(R(61));if(n=i.__html,n!=null){if(l.children!=null)throw Error(R(60));a?.__html!==n&&(e.innerHTML=n)}}break;case"children":if(typeof i=="string")xa(e,i);else if(typeof i=="number"||typeof i=="bigint")xa(e,""+i);else return;break;case"onScroll":i!=null&&ce("scroll",e);return;case"onScrollEnd":i!=null&&ce("scrollend",e);return;case"onClick":i!=null&&(e.onclick=Yn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Mg.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),a=n.slice(2,l?n.length-7:void 0),t=e[Bt]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(a,t,l),typeof i=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,i,l);break e}pe=!0,n in e?e[n]=i:i===!0?e.setAttribute(n,""):iu(e,n,i)}return}pe=!0}function dt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var i=!1,l=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case"src":i=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,a,o,n,null)}}l&&Se(e,t,"srcSet",n.srcSet,n,null),i&&Se(e,t,"src",n.src,n,null);return;case"input":ce("invalid",e);var r=a=o=l=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var f=n[i];if(f!=null)switch(i){case"name":l=f;break;case"type":o=f;break;case"checked":u=f;break;case"defaultChecked":c=f;break;case"value":a=f;break;case"defaultValue":r=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(R(137,t));break;default:Se(e,t,i,f,n,null)}}Ng(e,a,r,u,c,o,l,!1);return;case"select":ce("invalid",e),i=o=a=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":a=r;break;case"defaultValue":o=r;break;case"multiple":i=r;default:Se(e,t,l,r,n,null)}t=a,n=o,e.multiple=!!i,t!=null?sa(e,!!i,t,!1):n!=null&&sa(e,!!i,n,!0);return;case"textarea":ce("invalid",e),a=l=i=null;for(o in n)if(n.hasOwnProperty(o)&&(r=n[o],r!=null))switch(o){case"value":i=r;break;case"defaultValue":l=r;break;case"children":a=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(R(91));break;default:Se(e,t,o,r,n,null)}Cg(e,i,l,a);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(i=n[u],i!=null))switch(u){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Se(e,t,u,i,n,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(i=0;i<ko.length;i++)ce(ko[i],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(i=n[c],i!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(R(137,t));default:Se(e,t,c,i,n,null)}return;default:if(ad(t)){for(f in n)n.hasOwnProperty(f)&&(i=n[f],i!==void 0&&qf(e,t,f,i,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(i=n[r],i!=null&&Se(e,t,r,i,n,null))}var cw={};function sw(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,o=null,r=null,u=null,c=null,f=null;for(h in n){var p=n[h];if(n.hasOwnProperty(h)&&p!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=p;default:i.hasOwnProperty(h)||Se(e,t,h,null,i,p)}}for(var s in i){var h=i[s];if(p=n[s],i.hasOwnProperty(s)&&(h!=null||p!=null))switch(s){case"type":h!==p&&(pe=!0),a=h;break;case"name":h!==p&&(pe=!0),l=h;break;case"checked":h!==p&&(pe=!0),c=h;break;case"defaultChecked":h!==p&&(pe=!0),f=h;break;case"value":h!==p&&(pe=!0),o=h;break;case"defaultValue":h!==p&&(pe=!0),r=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(R(137,t));break;default:h!==p&&Se(e,t,s,h,i,p)}}ef(e,o,r,u,c,f,a,l);return;case"select":h=o=r=s=null;for(a in n)if(u=n[a],n.hasOwnProperty(a)&&u!=null)switch(a){case"value":break;case"multiple":h=u;default:i.hasOwnProperty(a)||Se(e,t,a,null,i,u)}for(l in i)if(a=i[l],u=n[l],i.hasOwnProperty(l)&&(a!=null||u!=null))switch(l){case"value":a!==u&&(pe=!0),s=a;break;case"defaultValue":a!==u&&(pe=!0),r=a;break;case"multiple":a!==u&&(pe=!0),o=a;default:a!==u&&Se(e,t,l,a,i,u)}t=r,n=o,i=h,s!=null?sa(e,!!n,s,!1):!!i!=!!n&&(t!=null?sa(e,!!n,t,!0):sa(e,!!n,n?[]:"",!1));return;case"textarea":h=s=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null&&!i.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:Se(e,t,r,null,i,l)}for(o in i)if(l=i[o],a=n[o],i.hasOwnProperty(o)&&(l!=null||a!=null))switch(o){case"value":l!==a&&(pe=!0),s=l;break;case"defaultValue":l!==a&&(pe=!0),h=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(R(91));break;default:l!==a&&Se(e,t,o,l,i,a)}Rg(e,s,h);return;case"option":for(var S in n)if(s=n[S],n.hasOwnProperty(S)&&s!=null&&!i.hasOwnProperty(S))switch(S){case"selected":e.selected=!1;break;default:Se(e,t,S,null,i,s)}for(u in i)if(s=i[u],h=n[u],i.hasOwnProperty(u)&&s!==h&&(s!=null||h!=null))switch(u){case"selected":s!==h&&(pe=!0),e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Se(e,t,u,s,i,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)s=n[b],n.hasOwnProperty(b)&&s!=null&&!i.hasOwnProperty(b)&&Se(e,t,b,null,i,s);for(c in i)if(s=i[c],h=n[c],i.hasOwnProperty(c)&&s!==h&&(s!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(s!=null)throw Error(R(137,t));break;default:Se(e,t,c,s,i,h)}return;default:if(ad(t)){for(var v in n)s=n[v],n.hasOwnProperty(v)&&s!==void 0&&!i.hasOwnProperty(v)&&qf(e,t,v,void 0,i,s);for(f in i)s=i[f],h=n[f],!i.hasOwnProperty(f)||s===h||s===void 0&&h===void 0||qf(e,t,f,s,i,h);return}}for(var d in n)s=n[d],n.hasOwnProperty(d)&&s!=null&&!i.hasOwnProperty(d)&&Se(e,t,d,null,i,s);for(p in i)s=i[p],h=n[p],!i.hasOwnProperty(p)||s===h||s==null&&h==null||Se(e,t,p,s,i,h)}function Hp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var l=n[i],a=l.transferSize,o=l.initiatorType,r=l.duration;if(a&&r&&Hp(o)){for(o=0,r=l.responseEnd,i+=1;i<n.length;i++){var u=n[i],c=u.startTime;if(c>r)break;var f=u.transferSize,p=u.initiatorType;f&&Hp(p)&&(u=u.responseEnd,o+=f*(u<r?1:(r-c)/(u-c)))}if(--i,t+=8*(a+o)/(l.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var jf=null,Xf=null;function Bo(e){return e.nodeType===9?e:e.ownerDocument}function Up(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Lb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function _b(e,t,n,i){return n=Bo(n).createElement(e),n[ut]=i,n[Bt]=t,dt(n,e,t),at(n),n}function Kf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Vs=null;function dw(){var e=window.event;return e&&e.type==="popstate"?e===Vs?!1:(Vs=e,!0):(Vs=null,!1)}var Xd=typeof setTimeout=="function"?setTimeout:void 0,mw=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,kp=typeof requestAnimationFrame=="function"?requestAnimationFrame:Xd,hw=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp<"u"?function(e){return Pp.resolve(null).then(e).catch(pw)}:Xd;function pw(e){setTimeout(function(){throw e})}function nl(e){return e==="head"}function Vp(e,t){var n=t,i=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(l),Oa(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Gs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Gs(n);for(var a=n.firstChild;a;){var o=a.nextSibling,r=a.nodeName;a[Io]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=o}}else n==="body"&&Gs(e.ownerDocument.body);n=l}while(n);Oa(t)}function Bp(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Hb(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var i=1;else for(var l=i=0;l<t.length;l++){var a=t[l];0<a.width&&0<a.height&&i++}i===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Ub(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Pb(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Qf(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Pb(t,n,e)}function gw(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Pb(t,n,e)}function yw(e){return e.documentElement.clientHeight}function bw(e){this.addEventListener("load",e),this.addEventListener("error",e)}function vw(e,t,n,i,l,a,o,r,u){var c=t.nodeType===9?t:t.ownerDocument;try{var f=c.startViewTransition({update:function(){var s=c.defaultView,h=s.navigation&&s.navigation.transition,S=c.fonts.status;i();var b=[];if(S==="loaded"&&(yw(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),S=b.length,e!==null)for(var v=e.suspenseyImages,d=0,m=0;m<v.length;m++){var g=v[m];if(!g.complete){var x=g.getBoundingClientRect();if(0<x.bottom&&0<x.right&&x.top<s.innerHeight&&x.left<s.innerWidth){if(d+=Ib(g),d>vu){b.length=S;break}g=new Promise(bw.bind(g)),b.push(g)}}}if(0<b.length)return s=Promise.race([Promise.all(b),new Promise(function(M){return setTimeout(M,500)})]).then(l,l),(h?Promise.allSettled([h.finished,s]):s).then(a,a);if(l(),h)return h.finished.then(a,a);a()},types:n});c.__reactViewTransition=f;var p=[];return f.ready.then(function(){for(var s=c.documentElement.getAnimations({subtree:!0}),h=0;h<s.length;h++){var S=s[h],b=S.effect,v=b.pseudoElement;if(v!=null&&v.startsWith("::view-transition")){p.push(S),S=b.getKeyframes();for(var d=v=void 0,m=!0,g=0;g<S.length;g++){var x=S[g],M=x.width;if(v===void 0)v=M;else if(v!==M){m=!1;break}if(M=x.height,d===void 0)d=M;else if(d!==M){m=!1;break}delete x.width,delete x.height,x.transform==="none"&&delete x.transform}m&&v!==void 0&&d!==void 0&&(b.setKeyframes(S),m=getComputedStyle(b.target,b.pseudoElement),m.width!==v||m.height!==d)&&(m=S[0],m.width=v,m.height=d,m=S[S.length-1],m.width=v,m.height=d,b.setKeyframes(S))}}o()},function(s){c.__reactViewTransition===f&&(c.__reactViewTransition=null);try{if(typeof s=="object"&&s!==null)switch(s.name){case"InvalidStateError":(s.message==="View transition was skipped because document visibility state is hidden."||s.message==="Skipping view transition because document visibility state has become hidden."||s.message==="Skipping view transition because viewport size changed."||s.message==="Transition was aborted because of invalid state")&&(s=null)}s!==null&&u(s)}finally{i(),l(),o()}}),f.finished.finally(function(){for(var s=0;s<p.length;s++)p[s].cancel();c.__reactViewTransition===f&&(c.__reactViewTransition=null),r()}),f}catch{return i(),l(),o(),null}}function yl(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}yl.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:Re({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};yl.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),i=[],l=0;l<n.length;l++){var a=n[l].effect;a!==null&&a.target===e&&a.pseudoElement===t&&i.push(n[l])}return i};yl.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function kb(e){return{name:e,group:new yl("group",e),imagePair:new yl("image-pair",e),old:new yl("old",e),new:new yl("new",e)}}function nn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}nn.prototype.addEventListener=function(e,t,n){var i=null,l=null;if(!(n!=null&&typeof n!="boolean"&&(i=n.signal||null,i!==null&&i.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Vb(a,e,t,n)===-1){var o=this,r=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(u){o.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),i!==null&&(l=o.removeEventListener.bind(o,e,t,n),i.addEventListener("abort",l,{once:!0}),l=i.removeEventListener.bind(i,"abort",l)),i=Ra(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:r,cleanup:l}),Vt(this._fragmentFiber.child,!1,Sw,e,r,i)}this._eventListeners=a}};function Sw(e,t,n,i){return Je(e).addEventListener(t,n,i),!1}nn.prototype.removeEventListener=function(e,t,n){var i=this._eventListeners;if(i!==null&&(t=Vb(i,e,t,n),t!==-1)){var l=i[t];n=l.attachedListener;var a=l.cleanup;l=Ra(l.optionsOrUseCapture),Vt(this._fragmentFiber.child,!1,xw,e,n,l),i.splice(t,1),a!==null&&a()}};function xw(e,t,n,i){return Je(e).removeEventListener(t,n,i),!1}function Ra(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Gp(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Vb(e,t,n,i){if(e.length===0)return-1;i=Gp(i);for(var l=0;l<e.length;l++){var a=e[l];if(a.type===t&&a.listener===n&&Gp(a.optionsOrUseCapture)===i)return l}return-1}nn.prototype.dispatchEvent=function(e){var t=Ol(this._fragmentFiber);if(t===null)return!0;t=Je(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var i=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var l=0;l<n.length;l++){var a=n[l];i.addEventListener(a.type,a.attachedListener,Ra(a.optionsOrUseCapture))}if(t.appendChild(i),e=i.dispatchEvent(e),n)for(l=0;l<n.length;l++)a=n[l],i.removeEventListener(a.type,a.attachedListener,Ra(a.optionsOrUseCapture));return t.removeChild(i),e}return t.dispatchEvent(e)};nn.prototype.focus=function(e){Vt(this._fragmentFiber.child,!0,Bb,e,void 0,void 0)};function Bb(e,t){return e.tag===6?!1:(e=Je(e),Lw(e,t))}nn.prototype.focusLast=function(e){var t=[];Vt(this._fragmentFiber.child,!0,Kd,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Bb(t[n],e);n--);};function Kd(e,t){return t.push(e),!1}nn.prototype.blur=function(){var e=Ol(this._fragmentFiber);e!==null&&(e=Je(e),e=Bo(e).activeElement,e!==null&&Vt(this._fragmentFiber.child,!1,ww,e,void 0,void 0))};function ww(e,t){return e.tag===6?!1:(e=Je(e),e===t||e.contains(t)?(t.blur(),!0):!1)}nn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),Vt(this._fragmentFiber.child,!1,Mw,e,void 0,void 0)};function Mw(e,t){return e.tag===6||(e=Je(e),t.observe(e)),!1}nn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),Vt(this._fragmentFiber.child,!1,Ew,e,void 0,void 0);for(var n=t=0;n<xn.length;n++){var i=xn[n];i.fragmentInstance===this&&i.observer===e?e.unobserve(i.instance):xn[t++]=i}xn.length=t}};function Ew(e,t){return e.tag===6||(e=Je(e),t.unobserve(e)),!1}var xn=[],Bs=!1;function Tw(e,t,n){xn.push({fragmentInstance:e,observer:t,instance:n}),Bs||(Bs=!0,_w(function(){Bs=!1;var i=xn;xn=[];for(var l=0;l<i.length;l++){var a=i[l];a.observer.unobserve(a.instance)}}))}nn.prototype.getClientRects=function(){var e=[];return Vt(this._fragmentFiber.child,!1,Nw,e,void 0,void 0),e};function Nw(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Je(e),t.push.apply(t,e.getClientRects());return!1}nn.prototype.getRootNode=function(e){var t=Ol(this._fragmentFiber);return t===null?this:Je(t).getRootNode(e)};nn.prototype.compareDocumentPosition=function(e){var t=Ol(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Vt(this._fragmentFiber.child,!1,Kd,n,void 0,void 0);var i=Je(t);if(n.length===0){if(n=i,Sh(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var l=i=n.compareDocumentPosition(e);return n===e?l=Node.DOCUMENT_POSITION_CONTAINS:i&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=ug(t)[1],n===null?l=Node.DOCUMENT_POSITION_PRECEDING:(e=Je(n).compareDocumentPosition(e),l=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Je(n[0]),l=Je(n[n.length-1]);var a=Sh(this._fragmentFiber)?t.parentElement:i;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;i=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),r=l.compareDocumentPosition(e),u=o&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=i&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,t=i&&t===e||a&&l===e||u||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!i&&t===e||!a&&l===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Rw(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Rw(e,t,n,i,l){var a=gl(l);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break e}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=l.ownerDocument,l===a||l===a.documentElement||l===a.body;e:{for(a=t,t=Ol(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break e}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=qs(n,a,xh),t===null?t=!1:(Vt(t,!0,iS,a,n),a=Fl,Fl=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===i)&&(t=qs(i,a,xh),t===null?t=!1:(Vt(t,!0,lS,a,i),a=Fl,Ys=Fl=null,t=a!==null)),t):!1}function Yp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}nn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(R(566));var t=[];Vt(this._fragmentFiber.child,!1,Kd,t,void 0,void 0);var n=e!==!1;if(t.length===0){var i=ug(this._fragmentFiber);if(i=n?i[1]||i[0]||Ol(this._fragmentFiber):i[0]||i[1],i===null)return;if(i.tag===6){e=Je(i),Yp(e,n);return}if(i=Je(i),i.nodeType!==9){if(i.nodeType===11){n="host"in i?i.host:null,n!==null&&n.scrollIntoView(e);return}i.scrollIntoView(e)}}for(i=n?t.length-1:0;i!==(n?-1:t.length);){var l=t[i];l.tag===6?(l=Je(l),Yp(l,n)):Je(l).scrollIntoView(e),i+=n?-1:1}};function Cw(e,t){return e=Je(e),Gb(e,t),!1}function Gb(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Yb(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.addEventListener(l.type,l.attachedListener,Ra(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){for(var o=0,r=0;r<xn.length;r++){var u=xn[r];(u.fragmentInstance!==t||u.observer!==a||u.instance!==e)&&(xn[o++]=u)}xn.length=o,a.observe(e)}),Gb(e,t))}function Aw(e,t){var n=t._eventListeners;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];e.removeEventListener(l.type,l.attachedListener,Ra(l.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(a){typeof a.rootMargin=="string"?Tw(t,a,e):a.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Zf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Zf(n),$u(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zw(e,t,n,i){for(;e.nodeType===1;){var l=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Io])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=mn(e.nextSibling),e===null)break}return null}function Ow(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=mn(e.nextSibling),e===null))return null;return e}function qb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mn(e.nextSibling),e===null))return null;return e}function If(e){return e.data==="$?"||e.data==="$~"}function Qd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Dw(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function mn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Jf=null;function qp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return mn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function jp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Lw(e,t){function n(){i=!0}if(e.ownerDocument.activeElement===e)return!0;var i=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return i}function _w(e){kp(function(){kp(function(t){return e(t)})})}function jb(e,t,n){switch(t=Bo(n),e){case"html":if(e=t.documentElement,!e)throw Error(R(452));return e;case"head":if(e=t.head,!e)throw Error(R(453));return e;case"body":if(e=t.body,!e)throw Error(R(454));return e;default:throw Error(R(451))}}function Xb(e,t,n){for(var i in n){var l=n[i];n.hasOwnProperty(i)&&l!=null&&Se(e,t,i,null,cw,l)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Yn&&(e.onclick=null),$u(e)}function Gs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$u(e)}var hn=new Map,Xp=new Set;function Go(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Si=ye.d;ye.d={f:Hw,r:Uw,D:Pw,C:kw,L:Vw,m:Bw,X:Yw,S:Gw,M:qw};function Hw(){var e=Si.f(),t=dc();return e||t}function Uw(e){var t=La(e);t!==null&&t.tag===5&&t.type==="form"?Ay(t):Si.r(e)}var Pa=typeof document>"u"?null:document;function Kb(e,t,n){var i=Pa;if(i&&typeof t=="string"&&t){var l=sn(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),Xp.has(l)||(Xp.add(l),e={rel:e,crossOrigin:n,href:t},i.querySelector(l)===null&&(t=i.createElement("link"),dt(t,"link",e),at(t),i.head.appendChild(t)))}}function Pw(e){Si.D(e),Kb("dns-prefetch",e,null)}function kw(e,t){Si.C(e,t),Kb("preconnect",e,t)}function Vw(e,t,n){Si.L(e,t,n);var i=Pa;if(i&&e&&t){var l='link[rel="preload"][as="'+sn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+sn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+sn(n.imageSizes)+'"]')):l+='[href="'+sn(e)+'"]';var a=l;switch(t){case"style":a=Ca(e);break;case"script":a=ka(e)}if(!(hn.has(a)||(e=Re({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),hn.set(a,e),i.querySelector(l)!==null||t==="style"&&i.querySelector(tr(a))||t==="script"&&i.querySelector(nr(a))))){var o=i.createElement("link");dt(o,"link",e),t==="style"&&(o[Nu]=!0,o.onload=o.onerror=function(){xg(o)}),at(o),i.head.appendChild(o)}}}function Bw(e,t){Si.m(e,t);var n=Pa;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",l='link[rel="modulepreload"][as="'+sn(i)+'"][href="'+sn(e)+'"]',a=l;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=ka(e)}if(!hn.has(a)&&(e=Re({rel:"modulepreload",href:e},t),hn.set(a,e),n.querySelector(l)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(nr(a)))return}i=n.createElement("link"),dt(i,"link",e),at(i),n.head.appendChild(i)}}}function Gw(e,t,n){Si.S(e,t,n);var i=Pa;if(i&&e){var l=ca(i).hoistableStyles,a=Ca(e);t=t||"default";var o=l.get(a);if(!o){var r={loading:0,preload:null};if(o=i.querySelector(tr(a)))r.loading=5;else{e=Re({rel:"stylesheet",href:e,"data-precedence":t},n),(n=hn.get(a))&&Zd(e,n);var u=o=i.createElement("link");at(u),dt(u,"link",e),u._p=new Promise(function(c,f){u.onload=c,u.onerror=f}),u.addEventListener("load",function(){r.loading|=1}),u.addEventListener("error",function(){r.loading|=2}),r.loading|=4,yu(o,t,i)}o={type:"stylesheet",instance:o,count:1,state:r},l.set(a,o)}}}function Yw(e,t){Si.X(e,t);var n=Pa;if(n&&e){var i=ca(n).hoistableScripts,l=ka(e),a=i.get(l);a||(a=n.querySelector(nr(l)),a||(e=Re({src:e,async:!0},t),(t=hn.get(l))&&Id(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function qw(e,t){Si.M(e,t);var n=Pa;if(n&&e){var i=ca(n).hoistableScripts,l=ka(e),a=i.get(l);a||(a=n.querySelector(nr(l)),a||(e=Re({src:e,async:!0,type:"module"},t),(t=hn.get(l))&&Id(e,t),a=n.createElement("script"),at(a),dt(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},i.set(l,a))}}function Kp(e,t,n,i){var l=(l=Bi.current)?Go(l):null;if(!l)throw Error(R(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Ca(n.href),t=ca(l).hoistableStyles,i=t.get(n),i||(i={type:"style",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Ca(n.href);var a=ca(l).hoistableStyles,o=a.get(e);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=l.querySelector(tr(e)))?a._p||(o.instance=a,o.state.loading=5):(a=hn.get(e),a||(a={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},hn.set(e,a)),jw(l,e,a,o.state))),t&&i===null)throw Error(R(528,""));return o}if(t&&i!==null)throw Error(R(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=ka(n),t=ca(l).hoistableScripts,i=t.get(n),i||(i={type:"script",instance:null,count:0,state:null},t.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(R(444,e))}}function Ca(e){return'href="'+sn(e)+'"'}function tr(e){return'link[rel="stylesheet"]['+e+"]"}function Qb(e){return Re({},e,{"data-precedence":e.precedence,precedence:null})}function jw(e,t,n,i){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Nu]!==!0){i.loading=1;return}}else t=e.createElement("link"),t[Nu]=!0,t.onload=t.onerror=xg.bind(null,t),dt(t,"link",n),at(t),e.head.appendChild(t);i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2})}function ka(e){return'[src="'+sn(e)+'"]'}function nr(e){return"script[async]"+e}function Qp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+sn(n.href)+'"]');if(i)return t.instance=i,at(i),i;var l=Re({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),at(i),dt(i,"style",l),yu(i,n.precedence,e),t.instance=i;case"stylesheet":l=Ca(n.href);var a=e.querySelector(tr(l));if(a)return t.state.loading|=4,t.instance=a,at(a),a;i=Qb(n),(l=hn.get(l))&&Zd(i,l),a=(e.ownerDocument||e).createElement("link"),at(a);var o=a;return o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),t.state.loading|=4,yu(a,n.precedence,e),t.instance=a;case"script":return a=ka(n.src),(l=e.querySelector(nr(a)))?(t.instance=l,at(l),l):(i=n,(l=hn.get(a))&&(i=Re({},n),Id(i,l)),e=e.ownerDocument||e,l=e.createElement("script"),at(l),dt(l,"link",i),e.head.appendChild(l),t.instance=l);case"void":return null;default:throw Error(R(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,yu(i,n.precedence,e));return t.instance}function yu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=i.length?i[i.length-1]:null,a=l,o=0;o<i.length;o++){var r=i[o];if(r.dataset.precedence===t)a=r;else if(a!==l)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var bu=null;function Zp(e,t,n){if(bu===null){var i=new Map,l=bu=new Map;l.set(n,i)}else l=bu,i=l.get(n),i||(i=new Map,l.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),l=0;l<n.length;l++){var a=n[l];if(!(a[Io]||a[ut]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var o=a.getAttribute(t)||"";o=e+o;var r=i.get(o);r?r.push(a):i.set(o,[a])}}return i}function Ff(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Xw(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ip(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Zb(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Ib(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Jp(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Ib(t),e.suspenseyImages.push(t)),e=Zw.bind(e),t.decode().then(e,e))}function Kw(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var l=Ca(i.href),a=t.querySelector(tr(l));if(a){t=a._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Yo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,at(a);return}a=t.ownerDocument||t,i=Qb(i),(l=hn.get(l))&&Zd(i,l),a=a.createElement("link"),at(a);var o=a;o._p=new Promise(function(r,u){o.onload=r,o.onerror=u}),dt(a,"link",i),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Yo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var vu=0;function Qw(e,t){return e.stylesheets&&e.count===0&&Su(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend){var a=e.unsuspend;e.unsuspend=null,a()}},6e4+t);0<e.imgBytes&&vu===0&&(vu=62500*fw());var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Su(e,e.stylesheets),e.unsuspend)){var a=e.unsuspend;e.unsuspend=null,a()}},(e.imgBytes>vu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(l)}}:null}function Jb(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Su(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function Yo(){this.count--,Jb(this)}function Zw(){this.imgCount--,Jb(this)}var Iu=null;function Su(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Iu=new Map,t.forEach(Iw,e),Iu=null,Yo.call(e))}function Iw(e,t){if(!(t.state.loading&4)){var n=Iu.get(e);if(n)var i=n.get(null);else{n=new Map,Iu.set(e,n);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var o=l[a];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),i=o)}i&&n.set(null,i)}l=t.instance,o=l.getAttribute("data-precedence"),a=n.get(o)||i,a===i&&n.set(null,l),n.set(o,l),this.count++,i=Yo.bind(this),l.addEventListener("load",i),l.addEventListener("error",i),a?a.parentNode.insertBefore(l,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=4}}var Aa={$$typeof:Gn,Provider:null,Consumer:null,_currentValue:bl,_currentValue2:bl,_threadCount:0};function Jw(e,t,n,i,l,a,o,r,u){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ps(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ps(0),this.hiddenUpdates=ps(null),this.identifierPrefix=i,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function Fb(e,t,n,i,l,a,o,r,u,c,f,p){return e=new Jw(e,t,n,o,u,c,f,p,r),t=1,a===!0&&(t|=24),a=Pt(3,null,null,t),e.current=a,a.stateNode=e,t=pd(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:i,isDehydrated:n,cache:t},bd(a),e}function $b(e){return e?(e=aa,e):aa}function Wb(e,t,n,i,l,a){l=$b(l),i.context===null?i.context=l:i.pendingContext=l,i=Yi(t),i.payload={element:n},a=a===void 0?null:a,a!==null&&(i.callback=a),n=qi(e,i,t),n!==null&&(kt(n,e,t),So(n,e,t))}function Fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Jd(e,t){Fp(e,t),(e=e.alternate)&&Fp(e,t)}function e0(e){if(e.tag===13||e.tag===31){var t=_l(e,67108864);t!==null&&kt(t,e,67108864),Jd(e,67108864)}}function $p(e){if(e.tag===13||e.tag===31){var t=en();t=id(t);var n=_l(e,t);n!==null&&kt(n,e,t),Jd(e,t)}}var za=!0;function Fw(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=2,Fd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function $w(e,t,n,i){var l=Q.T;Q.T=null;var a=ye.p;try{ye.p=8,Fd(e,t,n,i)}finally{ye.p=a,Q.T=l}}function Fd(e,t,n,i){if(za){var l=$f(i);if(l===null)ks(e,t,i,Ju,n),Wp(e,i);else if(e2(l,e,t,n,i))i.stopPropagation();else if(Wp(e,i),t&4&&-1<Ww.indexOf(e)){for(;l!==null;){var a=La(l);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=ml(a.pendingLanes);if(o!==0){var r=a;for(r.pendingLanes|=2,r.entangledLanes|=2;o;){var u=1<<31-Wt(o);r.entanglements[1]|=u,o&=~u}In(a),(ge&6)===0&&(ju=Ft()+500,er(0,!1))}}break;case 31:case 13:r=_l(a,2),r!==null&&kt(r,a,2),dc(),Jd(a,2)}if(a=$f(i),a===null&&ks(e,t,i,Ju,n),a===l)break;l=a}l!==null&&i.stopPropagation()}else ks(e,t,i,null,n)}}function $f(e){return e=od(e),$d(e)}var Ju=null;function $d(e){if(Ju=null,e=gl(e),e!==null){var t=Xo(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=ag(t),e!==null)return e;e=null}else if(n===31){if(e=og(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ju=e,null}function t0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(mS()){case dg:return 2;case mg:return 8;case Tu:case hS:return 32;case hg:return 268435456;default:return 32}default:return 32}}var Wf=!1,Qi=null,Zi=null,Ii=null,qo=new Map,jo=new Map,Li=[],Ww="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Wp(e,t){switch(e){case"focusin":case"focusout":Qi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Ii=null;break;case"pointerover":case"pointerout":qo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jo.delete(t.pointerId)}}function uo(e,t,n,i,l,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:a,targetContainers:[l]},t!==null&&(t=La(t),t!==null&&e0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e)}function e2(e,t,n,i,l){switch(t){case"focusin":return Qi=uo(Qi,e,t,n,i,l),!0;case"dragenter":return Zi=uo(Zi,e,t,n,i,l),!0;case"mouseover":return Ii=uo(Ii,e,t,n,i,l),!0;case"pointerover":var a=l.pointerId;return qo.set(a,uo(qo.get(a)||null,e,t,n,i,l)),!0;case"gotpointercapture":return a=l.pointerId,jo.set(a,uo(jo.get(a)||null,e,t,n,i,l)),!0}return!1}function n0(e){var t=gl(e.target);if(t!==null){var n=Xo(t);if(n!==null){if(t=n.tag,t===13){if(t=ag(n),t!==null){e.blockedOn=t,Th(e.priority,function(){$p(n)});return}}else if(t===31){if(t=og(n),t!==null){e.blockedOn=t,Th(e.priority,function(){$p(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=$f(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);tf=i,n.target.dispatchEvent(i),tf=null}else return t=La(n),t!==null&&e0(t),e.blockedOn=n,!1;t.shift()}return!0}function eg(e,t,n){xu(e)&&n.delete(t)}function t2(){Wf=!1,Qi!==null&&xu(Qi)&&(Qi=null),Zi!==null&&xu(Zi)&&(Zi=null),Ii!==null&&xu(Ii)&&(Ii=null),qo.forEach(eg),jo.forEach(eg)}function tu(e,t){e.blockedOn===t&&(e.blockedOn=null,Wf||(Wf=!0,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,t2)))}var nu=null;function tg(e){nu!==e&&(nu=e,Fe.unstable_scheduleCallback(Fe.unstable_NormalPriority,function(){nu===e&&(nu=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],l=e[t+2];if(typeof i!="function"){if($d(i||n)===null)continue;break}var a=La(n);a!==null&&(e.splice(t,3),t-=3,bf(a,{pending:!0,data:l,method:n.method,action:i},i,l))}}))}function Oa(e){function t(u){return tu(u,e)}Qi!==null&&tu(Qi,e),Zi!==null&&tu(Zi,e),Ii!==null&&tu(Ii,e),qo.forEach(t),jo.forEach(t);for(var n=0;n<Li.length;n++){var i=Li[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Li.length&&(n=Li[0],n.blockedOn===null);)n0(n),n.blockedOn===null&&Li.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var l=n[i],a=n[i+1],o=l[Bt]||null;if(typeof a=="function")o||tg(n);else if(o){var r=null;if(a&&a.hasAttribute("formAction")){if(l=a,o=a[Bt]||null)r=o.formAction;else if($d(l)!==null)continue}else r=o.action;typeof r=="function"?n[i+1]=r:(n.splice(i,3),i-=3),tg(n)}}}function i0(){function e(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Wd(e){this._internalRoot=e}pc.prototype.render=Wd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(R(409));var n=t.current,i=en();Wb(n,i,e,t,null,null)};pc.prototype.unmount=Wd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Wb(e.current,2,null,e,null,null),dc(),t[Da]=null}};function pc(e){this._internalRoot=e}pc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sg();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Li.length&&t!==0&&t<Li[n].priority;n++);Li.splice(n,0,e),n===0&&n0(e)}};var ng=ig.version;if(ng!=="19.3.0")throw Error(R(527,ng,"19.3.0"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(R(188)):(e=Object.keys(e).join(","),Error(R(268,e)));return e=nS(t),e=e!==null?rg(e):null,e=e===null?null:e.stateNode,e};var n2={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(co=__REACT_DEVTOOLS_GLOBAL_HOOK__,!co.isDisabled&&co.supportsFiber))try{Ko=co.inject(n2),$t=co}catch{}var co;gc.createRoot=function(e,t){if(!lg(e))throw Error(R(299));var n=!1,i="",l=Py,a=ky,o=Vy;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Fb(e,1,!1,null,null,n,i,null,l,a,o,i0),e[Da]=t.current,jd(e),new Wd(t)};gc.hydrateRoot=function(e,t,n){if(!lg(e))throw Error(R(299));var i=!1,l="",a=Py,o=ky,r=Vy,u=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=Fb(e,1,!0,t,n??null,i,l,u,a,o,r,i0),t.context=$b(null),n=t.current,i=en(),i=id(i),l=Yi(i),l.callback=null,qi(n,l,i),n=i,t.current.lanes=n,Zo(t,n),In(t),e[Da]=t.current,jd(e),new pc(t)};gc.version="19.3.0"});var r0=Dn((KM,o0)=>{"use strict";function a0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a0)}catch(e){console.error(e)}}a0(),o0.exports=l0()});var y0=Dn(Mc=>{"use strict";var l2=Symbol.for("react.transitional.element"),a2=Symbol.for("react.fragment");function g0(e,t,n){var i=null;if(n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),"key"in t){n={};for(var l in t)l!=="key"&&(n[l]=t[l])}else n=t;return t=n.ref,{$$typeof:l2,type:e,key:i,ref:t!==void 0?t:null,props:n}}Mc.Fragment=a2;Mc.jsx=g0;Mc.jsxs=g0});var me=Dn((hE,b0)=>{"use strict";b0.exports=y0()});var b1=["path","circle","ellipse","line","polyline","polygon","rect","g"],v1={fill:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,stroke:/^(?:none|currentColor|#[0-9a-f]{3,8})$/i,strokeWidth:/^[\d.]+$/,strokeLinecap:/^(?:butt|round|square)$/,strokeLinejoin:/^(?:miter|round|bevel)$/,fillRule:/^(?:nonzero|evenodd)$/,opacity:/^[\d.]+$/,fillOpacity:/^[\d.]+$/,strokeOpacity:/^[\d.]+$/,transform:/^(?:(?:matrix|translate|scale|rotate|skewX|skewY)\([\deE+.,\s-]+\)[,\s]*)+$/,d:/^[mMlLhHvVcCsSqQtTaAzZeE\d+.,\s-]+$/,points:/^[\deE+.,\s-]+$/},S1=["x","y","x1","y1","x2","y2","cx","cy","r","rx","ry","width","height"],Lm=/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,_m=1024;function Yc(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function Dm(e){let t=Yc(e),n={};for(let[i,l]of Object.entries(v1)){let a=t[i],o=i==="d"||i==="points"?4096:i==="transform"?128:32;typeof a=="string"&&a.length<=o&&l.test(a)&&(n[i]=a)}for(let i of S1){let l=t[i];typeof l=="string"&&l.length<=32&&Lm.test(l)&&Math.abs(Number(l))<=1e5&&(n[i]=l)}return n}function Hm(e){let{viewBox:t,attrs:n,shapes:i}=Yc(e);if(typeof t!="string"||t.length>100)return;let l=t.trim().split(/[\s,]+/);if(l.length!==4||!l.every(u=>Lm.test(u)&&Math.abs(Number(u))<=1e5)||Number(l[2])<=0||Number(l[3])<=0)return;let a=64;function o(u,c){if(!Array.isArray(u)||c>6)return[];let f=[];for(let p of u){if(a--<=0)break;let{tag:s,attrs:h,shapes:S}=Yc(p),b=b1.find(v=>v===s);b&&f.push({tag:b,attrs:Dm(h),shapes:b==="g"?o(S,c+1):[]})}return f}let r=o(i,0);return r.length?{viewBox:l.join(" "),attrs:Dm(n),shapes:r}:void 0}var Um=["siblings","ontology","crosslinks","sidecar"],qc={view:["compass","mindmap"],dock:["left","right","bottom"],theme:["system","light","dark"]},Mr=["view",...Um,"dock","theme"],jc={view:"compass",siblings:!0,ontology:!0,crosslinks:!1,sidecar:!0,dock:"right",theme:"system"};function Er(e){if(!e||typeof e!="object"||Array.isArray(e))return;let t=e,n={},i=qc.view.find(o=>o===t.view),l=qc.dock.find(o=>o===t.dock),a=qc.theme.find(o=>o===t.theme);i&&(n.view=i),l&&(n.dock=l),a&&(n.theme=a);for(let o of Um){let r=t[o];typeof r=="boolean"&&(n[o]=r)}return Object.keys(n).length?n:void 0}var Nr=1e4,x1=25e4,w1=256*1024*1024,Kc=24*1024*1024,Rr="data/search.json",Cr="theme/publication.css",Ar=48*1024,Qc=["parent","child","left","right","previous","next"],M1=["document","drawing","attachment","folder","tag","url"],E1=/^(?:index\.html|\.nojekyll|data\/search\.json|theme\/publication\.css|notes\/[a-f0-9-]{36}\.html|assets\/[a-f0-9]{64}\.(?:png|jpe?g|gif|webp|avif|svg|mp3|ogg|wav|mp4|webm|pdf)|runtime\/(?:compass\.css|(?:compass|demo|chunk(?:-[a-zA-Z0-9]+)?)\.js(?:\.LEGAL\.txt)?)|LICENSES\/(?:K-Plex|React|ReactDOM|Scheduler|Lucide|Source)\.txt)$/,T1=/^[a-f0-9]{64}$/,Pm=["none","arrow","triangle","bar","dot"],N1=/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/,R1=/^[a-f0-9]{8}-[a-f0-9]{4}-[1-8][a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}$/;function Zc(e){return typeof e=="string"&&e.length<=2048&&!/[\s\\<>"\p{Cc}]/u.test(e)&&/^https?:\/\/(?:[a-z0-9._-]+|\[[a-f0-9:.]+\])(?::\d{1,5})?(?:[/?#]|$)/i.test(e)}function li(e){return typeof e=="string"&&R1.test(e)}function Ic(e){if(!li(e))throw new Error("Invalid public note ID");return`notes/${e}.html`}function Bl(e){return typeof e=="string"&&e.length<=180&&E1.test(e)}function C1(e){return Bl(e)&&(e.startsWith("notes/")||e.startsWith("assets/")||e===Rr||e===Cr)}function Vm(e){if(!C1(e))throw new Error("Invalid offline publication resource");return`local/${e}.css`}function yn(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Invalid publication record");return e}function sl(e,t){return typeof e=="string"&&e.length<=t&&e.trim().length>0&&!/\p{Cc}/u.test(e)}function Ln(e,t,n){return typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=n}function Bm(e,t){return Ln(e,0,t-1)&&Number.isInteger(e)}function Tr(e,t){let n=yn(e),i={};for(let r of["fill","stroke","color","gate"]){let u=n[r];if(u!==void 0){if(typeof u!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(u))throw new Error("Invalid publication color");i[r]=u}}let{fontSize:l,gateRadius:a,icon:o}=n;if(l!==void 0&&!Ln(l,6,96))throw new Error("Invalid publication font size");if(a!==void 0&&!Ln(a,0,40))throw new Error("Invalid publication gate radius");if(o!=null&&!Bm(o,t))throw new Error("Invalid publication icon reference");return{...i,fontSize:l,gateRadius:a,...o===void 0?{}:{icon:o}}}function A1(e,t){let{center:n,sibling:i,inferred:l}=yn(e);return{center:n===void 0?void 0:Tr(n,t),sibling:i===void 0?void 0:Tr(i,t),inferred:l===void 0?void 0:Tr(l,t)}}function z1(e){let{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:a,endHead:o,labelColor:r,labelSize:u}=yn(e);if(t!==void 0&&(typeof t!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(t))||n!==void 0&&!Ln(n,.25,20)||i!==void 0&&typeof i!="boolean"||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication link style");let c=Pm.find(p=>p===a),f=Pm.find(p=>p===o);if(a!==void 0&&!c||o!==void 0&&!f)throw new Error("Invalid publication arrow type");if(r!==void 0&&(typeof r!="string"||!/^#[0-9a-f]{6}(?:[0-9a-f]{2})?$/i.test(r))||u!==void 0&&!Ln(u,6,96))throw new Error("Invalid publication link label");return{stroke:t,width:n,arrowStart:i,arrowEnd:l,startHead:c,endHead:f,labelColor:r,labelSize:u}}function O1(e){let t=yn(e),n={};if(t.maximum!==void 0){if(!Ln(t.maximum,1,400)||!Number.isInteger(t.maximum))throw new Error("Invalid publication scene limit");n.maximum=t.maximum}if(t.flip!==void 0){if(typeof t.flip!="boolean")throw new Error("Invalid publication orientation");n.flip=t.flip}if(t.showCrossLinks!==void 0){if(typeof t.showCrossLinks!="boolean")throw new Error("Invalid publication crosslinks preference");n.showCrossLinks=t.showCrossLinks}if(t.geometry!==void 0){let i=yn(t.geometry),l={},a=["compactingFactor","horizontalCompactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"];for(let o of a){let r=i[o];if(r!==void 0){if(!Ln(r,.1,4e3))throw new Error("Invalid publication geometry");Object.assign(l,{[o]:r})}}if(i.compactView!==void 0&&typeof i.compactView!="boolean")throw new Error("Invalid publication compact mode");if(i.lateralArrangement!==void 0&&i.lateralArrangement!=="split"&&i.lateralArrangement!=="left")throw new Error("Invalid publication side layout");n.geometry={...l,...i.compactView===void 0?{}:{compactView:i.compactView},...i.lateralArrangement===void 0?{}:{lateralArrangement:i.lateralArrangement}}}if(t.typography!==void 0){let{baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}=yn(t.typography);if(i!==void 0&&!Ln(i,6,48)||a!==void 0&&!Ln(a,6,48)||l!==void 0&&typeof l!="boolean")throw new Error("Invalid publication typography");n.typography={baseFontSize:i,wrapNodeLabels:l,propertyFontSize:a}}return n}function D1(e){let t=Object.entries(yn(e));if(t.length>64)throw new Error("Too many publication properties");let n=new Map;for(let[i,l]of t){if(!sl(i,192)||["__proto__","constructor","prototype"].includes(i))throw new Error("Invalid publication property name");if(sl(l,1e3)||typeof l=="boolean"||typeof l=="number"&&Number.isFinite(l))n.set(i,l);else if(Array.isArray(l)&&l.length<=48&&l.every(a=>sl(a,1e3)))n.set(i,[...l]);else throw new Error("Invalid publication property value")}return Object.fromEntries(n)}function Gm(e){let t=yn(e);if(t.version!==2||typeof t.runtimeVersion!="string"||!N1.test(t.runtimeVersion))throw new Error("Unsupported publication version");let{colorMode:n}=t;if(n!==void 0&&n!=="light"&&n!=="dark"&&n!=="both")throw new Error("Invalid publication color mode");if(!li(t.id)||!li(t.entry)||!sl(t.title,240)||typeof t.fullText!="boolean"||!Array.isArray(t.nodes)||!t.nodes.length||t.nodes.length>Nr||!Array.isArray(t.relations)||t.relations.length>x1||!Array.isArray(t.resources)||t.resources.length>Nr*4)throw new Error("Invalid publication manifest");let i=0,l=new Set,a=t.resources.map(b=>{let{path:v,bytes:d,sha256:m}=yn(b);if(!Bl(v)||l.has(v)||!Ln(d,0,32*1024*1024)||!Number.isInteger(d)||typeof m!="string"||!T1.test(m))throw new Error("Invalid publication resource");if(l.add(v),i+=d,i>w1)throw new Error("Publication exceeds package limit");return{path:v,bytes:d,sha256:m}}),o;if(t.icons!==void 0){if(!Array.isArray(t.icons)||t.icons.length>_m)throw new Error("Invalid publication icons");o=t.icons.map(b=>{let v=Hm(b);if(!v)throw new Error("Invalid publication icon");return v})}let r=o?.length??0,u=new Set,c=new Set,f=t.nodes.map(b=>{let v=yn(b),{id:d,title:m,aliases:g,asset:x,url:M,trailIcon:T}=v,w=M1.find(N=>N===v.kind);if(!li(d)||u.has(d)||!sl(m,512)||!w)throw new Error("Invalid publication node");if(u.add(d),w==="document"||w==="drawing"){let N=Ic(d);if(!l.has(N))throw new Error("Missing publication note resource");c.add(N)}if(x!==void 0&&(typeof x!="string"||!x.startsWith("assets/")||!l.has(x)))throw new Error("Missing publication asset");if(M!==void 0&&(w!=="url"||!Zc(M)))throw new Error("Invalid publication web link");if(T!==void 0&&!Bm(T,r))throw new Error("Invalid publication trail icon");if(g!==void 0&&(!Array.isArray(g)||g.length>64||!g.every(N=>sl(N,512))))throw new Error("Invalid publication aliases");return{id:d,title:m,kind:w,...g===void 0?{}:{aliases:[...g]},...x===void 0?{}:{asset:x},...M===void 0?{}:{url:M},...T===void 0?{}:{trailIcon:T},...v.style===void 0?{}:{style:Tr(v.style,r)},...v.roleStyles===void 0?{}:{roleStyles:A1(v.roleStyles,r)},...v.properties===void 0?{}:{properties:D1(v.properties)}}});if(!u.has(t.entry)||[...l].some(b=>b.startsWith("notes/")&&!c.has(b))||t.fullText!==l.has(Rr))throw new Error("Invalid publication document catalogue");let p;if(t.pins!==void 0){if(!Array.isArray(t.pins)||t.pins.length>u.size)throw new Error("Invalid publication pins");let b=t.pins;if(new Set(b).size!==b.length||!b.every(v=>typeof v=="string"&&u.has(v)))throw new Error("Invalid publication pins");p=b.slice()}let s=new Set,h=t.relations.map(b=>{let{source:v,target:d,relationType:m,direction:g,definition:x,role:M,style:T}=yn(b),w=Qc.find(V=>V===M);if(typeof v!="string"||typeof d!="string"||v===d||!u.has(v)||!u.has(d)||!w||m!==1&&m!==2||g!==null&&g!==1&&g!==2&&g!==3||x!==void 0&&!sl(x,192))throw new Error("Invalid publication relationship");let N=`${v}/${d}/${w}`;if(s.has(N))throw new Error("Duplicate publication relationship");return s.add(N),{source:v,target:d,role:w,relationType:m,direction:g,...x===void 0?{}:{definition:x},...T===void 0?{}:{style:z1(T)}}}),S=Er(t.canvasDefaults);return{version:2,runtimeVersion:t.runtimeVersion,id:t.id,title:t.title,entry:t.entry,fullText:t.fullText,nodes:f,relations:h,resources:a,...n===void 0?{}:{colorMode:n},...p===void 0?{}:{pins:p},...S&&{canvasDefaults:S},...o===void 0?{}:{icons:o},...t.appearance===void 0?{}:{appearance:O1(t.appearance)}}}var z={licenses:"Runtime licenses",mindMap:"Mind Map",expandBranch:"Expand branch",collapseBranch:"Collapse branch",graphOptions:"Graph options",crossLinks:"Show crosslinks",linkOntology:"Show link ontology",view:"Compass",back:"History back",forward:"History forward",zoomIn:"Zoom in",zoomOut:"Zoom out",fit:"Fit graph",loadFailed:"Could not open this publication",retry:"Retry",loading:"Opening publication…",loadingNote:"Opening note…",find:"Find note",fullText:"Include note text",searchLoading:"Loading note search…",searchUnavailable:"Note search is unavailable",address:"Note address",open:"Open",nodeUnavailable:"That thought is unavailable in this publication",copyAddress:"Copy note address",addressCopied:"Note address copied",copyShortAddress:"Copy link (short ID)",copyFullAddress:"Copy link (full ID)",ambiguousAddress:"This short ID matches several notes. Use the full ID.",pins:"Pins",history:"Session history",backTooltip:"History back (Alt + ←)",forwardTooltip:"History forward (Alt + →)",showSidecarTooltip:"Show Sidecar (Alt + Shift + S)",hideSidecarTooltip:"Hide Sidecar (Alt + Shift + S)",chooseNote:"Choose a matching thought",chooseAddress:"Enter a note ID to select another match",showSidecar:"Show Sidecar",hideSidecar:"Hide Sidecar",closeSidecar:"Close Sidecar",showSiblings:"Show siblings",hideSiblings:"Hide siblings",siblings:"Siblings",friends:"Friends / Previous",challengers:"Challengers / Next",lateral:"Friends, challengers, and sequence",theme:"Theme",about:"About",sidecar:"Sidecar",sidecarHide:"Hide",sidecarLeft:"Left",sidecarRight:"Right",sidecarBottom:"Bottom",openWebsite:"Open original in a new tab",webFrameHelp:"If the page is blank or blocked, open the original.",githubLoading:"Loading GitHub preview…",githubPreviewUnavailable:"GitHub preview unavailable. Open the original to view the page.",githubOpenOriginal:"View this GitHub page in a browser tab.",githubNoCommits:"No commits in this comparison.",githubCommitCount:(e,t)=>`Showing ${e} of ${t} commits`,resizeSidecar:"Resize Sidecar",dockSidecarBottom:"Move Sidecar below",dockSidecarRight:"Move Sidecar right",noteUnavailable:"Could not open this note",mediaUnavailable:"Some media could not be opened",noDocument:"No document is available for this thought",downloadAsset:"Download file",sceneLimited:"Some connections are outside this view’s display limit",themeUnavailable:"Using the default colors",insecure:"Open this publication over HTTPS or through a local preview server"},Ti={label:"Color theme",light:"Light",dark:"Dark",auto:"Auto",system:"System",trigger:e=>`Color theme (${e})`},_n={label:"K-Plex resources",github:"K-Plex on GitHub",npm:"K-Plex Web Player on npm",community:"K-Plex in Obsidian Community Plugins",playlist:"K-Plex YouTube playlist",book:"Sketch Your Mind book"};var r1=X(r0(),1);var F=X(nt(),1);var En=e=>e;var ir={key:"F4"};function u0(e){try{let t=JSON.stringify(e);if(!t||t.length>16384)return null;let n=JSON.parse(t),i=(l,a)=>a<=8&&(!l||typeof l!="object"||Object.values(l).every(o=>i(o,a+1)));return i(n,0)?n:null}catch{return null}}var ht={occurrences:2e3,depth:20,scopes:8,stateCharacters:12e3,occurrenceCharacters:4096},yc={min:.1,max:4,step:.05};function Va(e,t,n){return{defaultValue:e,validate:i=>typeof i=="number"&&Number.isInteger(i)&&i>=t&&i<=n}}var bc={version:1,fields:{arrangement:{defaultValue:"right",validate:e=>e==="balanced"||e==="left"||e==="right"},horizontalSpacing:Va(96,40,240),verticalSpacing:Va(24,12,80),parentColumns:Va(2,1,3),initialGenerations:Va(1,1,3),horizontalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=yc.min&&e<=yc.max},verticalDensity:{defaultValue:1,validate:e=>typeof e=="number"&&Number.isFinite(e)&&e>=yc.min&&e<=yc.max},maximumDepth:Va(10,1,ht.depth),maximumOccurrences:Va(500,16,ht.occurrences)}};function vc(e){if(e?.status==="unavailable")return null;let t=e?.values??{},n=l=>Object.prototype.hasOwnProperty.call(t,l)?t[l]:bc.fields[l].defaultValue;for(let[l,a]of Object.entries(bc.fields))if(!a.validate(n(l)))return null;let i=n("arrangement");return i!=="balanced"&&i!=="left"&&i!=="right"?null:{arrangement:i,horizontalSpacing:Number(n("horizontalSpacing")),verticalSpacing:Number(n("verticalSpacing")),horizontalDensity:Number(n("horizontalDensity")),verticalDensity:Number(n("verticalDensity")),parentColumns:Number(n("parentColumns")),initialGenerations:Number(n("initialGenerations")),maximumDepth:Number(n("maximumDepth")),maximumOccurrences:Number(n("maximumOccurrences"))}}var em={version:1,scope:null,initialGenerations:null,expanded:[],collapsed:[],sides:{}},Sc={version:0,unavailable:!0};function Ul(e){return typeof e=="string"&&e.length>0&&e.length<=ht.occurrenceCharacters}function il(e){if(e==null)return{...em,expanded:[],collapsed:[],sides:{}};let t=u0(e);if(!t||typeof t!="object"||Array.isArray(t)||Reflect.get(t,"version")!==1)return Sc;let n=Reflect.get(t,"scope"),i=Reflect.get(t,"initialGenerations"),l=Reflect.get(t,"expanded"),a=Reflect.get(t,"collapsed"),o=Reflect.get(t,"sides");if(n===null!=(i===null)||n!==null&&!Ul(n)||i!==null&&(typeof i!="number"||!Number.isInteger(i)||i<1||i>3)||!Array.isArray(l)||!Array.isArray(a)||l.length>256||a.length>256||!l.every(Ul)||!a.every(Ul)||!o||typeof o!="object"||Array.isArray(o)||Object.keys(o).length>256)return Sc;let r=[];for(let[c,f]of Object.entries(o)){let p=f;if(!Ul(c)||p!==-1&&p!==1)return Sc;r.push([c,p])}r.sort(([c],[f])=>c<f?-1:c>f?1:0);let u={...t,version:1,scope:n===null?null:En(n),initialGenerations:i,expanded:[...new Set(l)].sort(),collapsed:[...new Set(a)].sort(),sides:Object.fromEntries(r)};return JSON.stringify(u).length<=ht.stateCharacters?u:Sc}function c0(e,t,n){return e.scope===t?e:{...e,scope:t,initialGenerations:n,expanded:[],collapsed:[],sides:{}}}function lr(e){let t=il(e);return t.version===1?t:null}function xc(e,t,n){let i=il(e),l=i.version===1&&i.scope===t.layoutRoot?i:il(t.stateSuggestion);if(l.version!==1||l.scope!==t.layoutRoot)return null;let a=new Set(l.expanded),o=new Set(l.collapsed),r=t.occurrences.filter(u=>u.branch?.canExpand&&!u.branch.reference);if(n.kind==="toggle")r=r.filter(u=>u.id===n.occurrenceId);else if(n.kind==="expand-generation"){let u=Math.min(...r.filter(c=>!c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>!c.branch.expanded&&c.branch.depth===u)}else{let u=Math.max(...r.filter(c=>c.branch.expanded).map(c=>c.branch.depth));r=r.filter(c=>c.branch.expanded&&c.branch.depth===u)}if(!r.length)return null;for(let u of r)n.kind==="expand-generation"||n.kind==="toggle"&&!u.branch.expanded?(o.delete(u.id),a.add(u.id)):(a.delete(u.id),o.add(u.id));return lr({...l,expanded:[...a],collapsed:[...o]})}var wc=class{constructor(t,n,i,l=750,a){this.owner=t;this.requireAlt=n;this.publish=i;this.delayMs=l;this.modifierFeedback=a;this.timer=null;this.candidate=null;this.alt=!1;this.enteredAt=0;this.modifierCandidate=!1}enter(t,n){if(n.pointerType==="touch"){this.modifierFeedback&&this.clear();return}this.clear(!1),this.candidate=t,this.alt=n.altKey,this.enteredAt=this.owner.performance.now(),this.modifierCandidate=n.pointerType==="mouse"&&n.isTrusted===!0&&this.modifierFeedback?.accepts(t)===!0,this.modifierFeedback?.publish(this.modifierCandidate&&this.alt?t:null),this.requireAlt||this.modifierCandidate&&this.alt?this.publish(this.alt?t:null):this.activateOrdinary()}modifier(t,n=!1){this.candidate===null||this.alt===t||!this.requireAlt&&!this.modifierCandidate||this.modifierCandidate&&!n||(this.alt=t,this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.modifierCandidate&&this.modifierFeedback?.publish(t?this.candidate:null),this.requireAlt||t?this.publish(t?this.candidate:null):(this.publish(null),this.activateOrdinary()))}activateOrdinary(){let t=this.candidate;if(t===null)return;let n=Math.max(0,this.delayMs-(this.owner.performance.now()-this.enteredAt));n===0?this.publish(t):this.timer=this.owner.setTimeout(()=>{this.timer=null,this.publish(t)},n)}clear(t=!0){this.timer!==null&&this.owner.clearTimeout(this.timer),this.timer=null,this.candidate=null,this.modifierCandidate=!1,this.modifierFeedback?.publish(null),t&&this.publish(null)}};function s0(e,t){let n=e.ownerDocument,i=n.defaultView,l=r=>t.modifier(r.altKey,r.isTrusted),a=()=>t.clear(),o=()=>{n.visibilityState==="hidden"&&t.clear()};return i.addEventListener("keydown",l),i.addEventListener("keyup",l),i.addEventListener("blur",a),n.addEventListener("visibilitychange",o),()=>{i.removeEventListener("keydown",l),i.removeEventListener("keyup",l),i.removeEventListener("blur",a),n.removeEventListener("visibilitychange",o),t.clear()}}var tm={min:8,max:20,step:1,default:12};function nm(e){return typeof e=="number"&&Number.isFinite(e)?Math.max(tm.min,Math.min(tm.max,e)):tm.default}var ar=(e,t,n)=>Math.max(t,Math.min(n,e));function f0(e){return Math.max(5,(e.gateRadius??5)*1.05)}function im(e=30,t=!1){let n=Math.round(Math.max(8,e));return Math.max(t?18:8,n+(t?8:0))}function or(e,t,n=12.4){return(t?ar(e*.72,13,24):ar(e*.62,10,16))*ar(Number.isFinite(n)?n:12.4,8,28)/12.4}function i2(e,t){if(e.measurement&&Number.isFinite(e.measurement.width)&&e.measurement.width>=0)return e.measurement.width;let n=i=>Array.from(i).reduce((l,a)=>l+(a.codePointAt(0)>11903?1:.55)*t,0);return n(e.text)+(e.label?n(`${e.label}:`)+4:0)+(e.icon?t+4:0)}function d0(e,t){return e.length?4+e.reduce((n,i)=>n+Math.ceil(i.measurement&&Number.isFinite(i.measurement.height)&&i.measurement.height>0?i.measurement.height:t*1.4),0):0}function m0(e,t){return e.reduce((n,i)=>Math.max(n,32+i2(i,t)),0)}function h0(e,t,n,i=!1,l=30,a,o=1,r=[]){let u=(n.baseFontSize??12.4)/12.4,c=Math.min(e.length,im(l,i)),f=i?180:112,s=Math.max(f,a??(i?370:286)),h=i?or(t,!0,n.baseFontSize)*.55:t*u*.29,S=ar(70+c*Math.max(4.8,h),f,s),b=(i?16:8)+2*Math.max(0,o),v=or(t,i,n.baseFontSize),d=Math.max(i?48:26,Math.ceil(v*1.6+b)),m=Math.ceil(Math.max(t*u,v)*2.4+v*.4+b),g=n.wrapNodeLabels?Math.max(d,m):d,x=nm(n.propertyFontSize),M=m0(r,x);return{width:r.length?ar(Math.max(S,M),f,s):S,height:g+d0(r,x)}}function p0(e,t,n,i,l=1,a=[]){if(t===1)return e;let o=nm(i.propertyFontSize),r=m0(a,o),u=or(n,!1,i.baseFontSize)*(i.wrapNodeLabels?2.8:1.6);return{width:Math.max(e.width*t,Math.min(e.width,r)),height:Math.max(e.height*t,Math.ceil(u+8+2*Math.max(0,l))+d0(a,o))}}var qe=X(me(),1);function v0({bounds:e,semanticRole:t,className:n,style:i,...l}){return(0,qe.jsx)("div",{...l,className:`kplex-thought kplex-role-${t}${n?" "+n:""}`,style:{left:e.x-e.width/2,top:e.y-e.height/2,width:e.width,height:e.height,...i}})}function S0({label:e,maximum:t,center:n}){let i=im(t??30,n),l=e.length>i?`${e.slice(0,Math.max(1,i-1))}…`:e;return(0,qe.jsx)("span",{className:"kplex-thought-text",title:e,children:l})}function x0({wrap:e,children:t}){return(0,qe.jsx)("span",{className:`kplex-thought-label${e?" is-two-line":""}`,children:t})}function w0({side:e,connected:t,highlighted:n,disabled:i,count:l,...a}){return(0,qe.jsxs)("span",{className:`kplex-gate-wrap gate-wrap-${e}${t?"":" is-empty"}`,children:[(0,qe.jsx)("span",{...a,"data-kplex-gate":e,className:`kplex-gate gate-${e}${t?" has-connections":" is-empty"}${n?" is-highlighted":""}${i?" is-link-disabled":""}`}),l!==null&&(0,qe.jsx)("span",{className:"kplex-gate-count",children:l})]})}function M0(e){return(0,qe.jsx)("path",{className:"kplex-edge-visible",fill:"none",vectorEffect:"non-scaling-stroke",...e})}function E0({label:e,midpoint:t,fontSize:n,color:i,background:l,opacity:a}){if(!e)return null;let o=n??10,r=Math.max(20,e.length*o*.58+10),u=o+6;return(0,qe.jsxs)("g",{className:"kplex-edge-label-wrap",pointerEvents:"none",opacity:a,children:[(0,qe.jsx)("rect",{x:t.x-r/2,y:t.y-u/2,width:r,height:u,rx:3,fill:l}),(0,qe.jsx)("text",{className:"kplex-edge-label",x:t.x,y:t.y,textAnchor:"middle",dominantBaseline:"central",fill:i,fontSize:o,children:e})]})}function lm(e,t="kplex"){if(!(!e||e==="none"))return`url(#${t}-${e==="triangle"||e==="dot"||e==="bar"?e:"arrow"})`}function T0({prefix:e="kplex"}){return(0,qe.jsxs)("defs",{children:[(0,qe.jsx)("marker",{id:`${e}-arrow`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M1,1 L8,4.5 L1,8",fill:"none",stroke:"context-stroke",strokeWidth:"1.4"})}),(0,qe.jsx)("marker",{id:`${e}-triangle`,markerWidth:"9",markerHeight:"9",refX:"8",refY:"4.5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M0,0 L9,4.5 L0,9 z",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-dot`,markerWidth:"8",markerHeight:"8",refX:"4",refY:"4",orient:"auto",markerUnits:"strokeWidth",children:(0,qe.jsx)("circle",{cx:"4",cy:"4",r:"2.6",fill:"context-stroke"})}),(0,qe.jsx)("marker",{id:`${e}-bar`,markerWidth:"8",markerHeight:"10",refX:"4",refY:"5",orient:"auto-start-reverse",markerUnits:"strokeWidth",children:(0,qe.jsx)("path",{d:"M4,1 L4,9",stroke:"context-stroke",strokeWidth:"1.8"})})]})}var N0={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous"};function rr(e,t){let n=t.toLowerCase(),i=e.nodes.get(n);return i?[i.id]:e.shortIds.get(n)??[]}function R0(e,t){if(!e.manifest)return;let n=t.slice(0,8),i=rr(e,n);return i.length===1&&i[0]===t?n:void 0}function am(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}function Ba(e){return typeof e=="string"&&e.trim().length>0}function o2(e){return typeof e=="string"&&Object.getOwnPropertyDescriptor(N0,e)!==void 0}function C0(e){let t=am(e);if(t?.version===2&&("runtimeVersion"in t||"resources"in t))return r2(Gm(e));if(t?.version!==1)throw new Error("Unsupported publication fixture version");if(!Ba(t.title)||!Ba(t.entry)||!Array.isArray(t.nodes)||!Array.isArray(t.relations))throw new Error("Invalid publication fixture");let n=new Map,i=new Map,l=Object.freeze([]);for(let u of t.nodes){let c=am(u);if(!c||!Ba(c.id)||!Ba(c.title)||n.has(c.id)||c.text!==void 0&&typeof c.text!="string")throw new Error("Invalid or duplicate publication node");let f=En(c.id);n.set(f,Object.freeze({id:f,name:c.title,kind:"document",resolution:"resolved",url:null,aliases:l,tags:l,styleTags:l,noteType:null,primaryStyleTag:null,maxLabelLength:30})),typeof c.text=="string"&&i.set(f,c.text)}let a=n.get(t.entry)?.id;if(!a)throw new Error("Missing publication entry node");let o=new Map,r=new Set;for(let u of t.relations){let c=am(u);if(!c||!Ba(c.source)||!Ba(c.target)||!o2(c.role)||c.label!==void 0&&typeof c.label!="string")throw new Error("Invalid publication relationship");let f=n.get(c.source),p=n.get(c.target);if(!f||!p)throw new Error("Missing publication relationship endpoint");let s=N0[c.role],h=JSON.stringify([f.id,c.role,p.id]);if(f===p||r.has(h))throw new Error("Invalid or duplicate publication relationship");r.add(h),r.add(JSON.stringify([p.id,s,f.id])),om(o,f,p,c.role,1,1,c.label),om(o,p,f,s,1,2,c.label)}return{title:t.title,entry:a,read:A0(n,o),nodes:n,shortIds:new Map,manifest:null,published:new Map,body:u=>i.get(u),linkStyle:()=>{}}}function om(e,t,n,i,l,a,o){let r=e.get(t.id);r||e.set(t.id,r=new Map);let u=r.get(i);u||r.set(i,u=[]),u.push(Object.freeze({node:n,role:i,relationType:l,direction:a,definition:o}))}function r2(e){let t=new Map,n=new Map,i=new Map,l=new Map,a=new Map;for(let o of e.nodes){let r=En(o.id),u=o.id.slice(0,8),c=l.get(u);c?c.push(r):l.set(u,[r]);let f=o.kind==="folder"?"container":o.kind==="drawing"?"document":o.kind;t.set(r,Object.freeze({id:r,name:o.title,kind:f,resolution:"resolved",url:o.url??null,aliases:o.aliases??[],tags:[],styleTags:[],noteType:null,primaryStyleTag:null,maxLabelLength:30})),n.set(r,o)}for(let o of e.relations)om(i,t.get(o.source),t.get(o.target),o.role,o.relationType,o.direction,o.definition),o.style&&a.set(`${o.source}/${o.target}/${o.role}`,o.style);return{title:e.title,entry:En(e.entry),read:A0(t,i),nodes:t,shortIds:l,manifest:e,published:n,body:()=>{},linkStyle:(o,r,u)=>a.get(`${o}/${r}/${u}`)}}function A0(e,t){let n=new Intl.Collator("en",{numeric:!0}),i=(a,o)=>n.compare(a.name,o.name)||(a.id<o.id?-1:a.id>o.id?1:0);for(let a of t.values())for(let o of a.values())Object.freeze(o.sort((r,u)=>i(r.node,u.node)));let l=Object.freeze([]);return{coverage:"local",isCurrent:()=>!0,node:a=>e.get(a)??null,scope:a=>({coverage:e.has(a)?"local":"unavailable",complete:e.has(a),prepared:e.has(a),pending:!1}),relations(a,o,r){if(!e.has(a))return{items:l,coverage:"unavailable",truncated:!1};let u=t.get(a)?.get(o)??l,c=r!==void 0&&u.length>r;return{items:c?u.slice(0,r):u,coverage:"local",truncated:c}},evidence:()=>({coverage:"unavailable",value:null}),compare:i,corpus:{available:!1,reason:"unsupported"}}}var Pl=X(nt(),1);function z0(e,t){let n=Mr.map(i=>{let l=t?.get(i)??e.get(i);return[i,l==="1"?!0:l==="0"?!1:l]});return Er(Object.fromEntries(n))??{}}function rm(e,t){for(let n of Mr){let i=t?.[n];i===void 0?e.delete(n):e.set(n,typeof i=="boolean"?i?"1":"0":i)}}function um(e,t){return Mr.every(n=>e?.[n]===t?.[n])}var u2=80;function Ec(e,t){return[...e.filter(n=>n.id!==t.id),t].slice(-u2)}function sm(e){try{let t=decodeURIComponent(e.replace(/^#/,""));return t.length<=200&&!/\p{Cc}/u.test(t)&&t||void 0}catch{return}}function ur(e,t){let n=t.protocol==="file:"&&t.hash.startsWith("#node=")?new URLSearchParams(t.hash.slice(1)):null,i=n?n.get("node"):t.searchParams.get("node")??t.searchParams.get("node-id"),l=i===null?[]:rr(e,i),a=l.length===1?l[0]:void 0,o=sm(n?encodeURIComponent(n.get("fragment")??""):t.hash),r=z0(t.searchParams,n);return{location:{id:a??e.entry,fragment:a||i===null?o:void 0,canvas:r},addressProblem:i===null||a?void 0:l.length?"ambiguous":"missing",matches:l}}function fm(e,t,n){let i=new URLSearchParams({node:e});return t&&i.set("fragment",t),rm(i,n),`#${i}`}function O0(e,t,n,i){try{let l=new URL(e,t);if(l.origin!==t.origin||l.pathname!==t.pathname&&l.pathname!==`${t.pathname}index.html`)return;if(e.startsWith("#node=")&&t.protocol==="file:"){let{location:u,addressProblem:c}=ur(n,l);return c?void 0:u}if(e.startsWith("#"))return{id:i,fragment:sm(l.hash)};if(!(l.searchParams.get("node")??l.searchParams.get("node-id")))return;let{location:o,addressProblem:r}=ur(n,l);return r?void 0:o}catch{return}}function Ga(e,t,n=t.id){let i=new URL(e);return i.protocol==="file:"?(i.hash=fm(n,t.fragment??"",t.canvas),i):(i.searchParams.delete("node-id"),i.searchParams.set("node",n),rm(i.searchParams,t.canvas),i.hash=t.fragment?encodeURIComponent(t.fragment):"",i)}function D0(e,t,n){try{let i=new URL(e,t);if(i.protocol!==t.protocol||i.origin!==t.origin||i.username||i.password)return;let l=a=>a.endsWith("/")?a+"index.html":a;return l(i.pathname)!==l(t.pathname)||!(i.searchParams.has("node")||i.searchParams.has("node-id")||i.protocol==="file:"&&i.hash.startsWith("#node="))?void 0:ur(n,i)}catch{return}}function cm(e,t){return!e||typeof e!="object"||!("kplexPublication"in e)||e.kplexPublication!==t||!("position"in e)||typeof e.position!="number"||!Number.isSafeInteger(e.position)||e.position<0||!("last"in e)||typeof e.last!="number"||!Number.isSafeInteger(e.last)||e.last<e.position?null:{position:e.position,last:e.last}}function L0(e,t,n){let i=(0,Pl.useRef)(n);i.current=n;let l=e.manifest?.id,[a,o]=(0,Pl.useState)(()=>{let S=t?ur(e,new URL(t.location.href)):{location:{id:e.entry},addressProblem:void 0},b=t&&l?cm(t.history.state,l)??{position:0,last:0}:void 0;return{entries:[S.location],index:0,addressProblem:S.addressProblem,browser:b,visits:[S.location]}}),r=a.entries[a.index],u=(0,Pl.useRef)(a.browser?.last??0);(0,Pl.useEffect)(()=>{if(!t||!l)return;let S=t.history,b=d=>{let{location:m,addressProblem:g}=ur(e,new URL(t.location.href)),x=cm(d.state,l),M=x?{...x,last:Math.max(x.position,u.current)}:{position:0,last:0};u.current=M.last,S.replaceState({kplexPublication:l,...M},""),i.current(m.id),o(T=>({entries:[m],index:0,addressProblem:g,browser:M,visits:Ec(T.visits,m)}))},v=cm(S.state,l)??{position:0,last:0};return S.replaceState({kplexPublication:l,...v},""),t.addEventListener("popstate",b),()=>t.removeEventListener("popstate",b)},[t,e,l]);function c(S){let b={...S,canvas:{...r.canvas,...S.canvas}};if(!e.nodes.has(b.id)||!a.addressProblem&&r.id===b.id&&r.fragment===b.fragment&&um(r.canvas,b.canvas))return!1;if(i.current(b.id),t&&l&&a.browser){let d=a.browser.position+1,m={position:d,last:d};return t.history.pushState({kplexPublication:l,...m},"",Ga(new URL(t.location.href),b)),u.current=d,o({entries:[b],index:0,browser:m,visits:Ec(a.visits,b)}),!0}let v=a.index+1;return o({entries:[...a.entries.slice(0,v),b],index:v,visits:Ec(a.visits,b)}),!0}function f(S){let b={...r.canvas,...S};if(um(r.canvas,b))return;let v={...r,canvas:b};t&&l&&a.browser&&t.history.replaceState(t.history.state,"",Ga(new URL(t.location.href),v));let d=[...a.entries];d[a.index]=v,o({...a,entries:d})}let p=a.browser?a.browser.position>0:a.index>0,s=a.browser?a.browser.position<a.browser.last:a.index+1<a.entries.length;function h(S){if(S===-1?p:s)if(t&&a.browser)t.history.go(S);else{let b=a.index+S,v=a.entries[b];i.current(v.id),o({...a,index:b,addressProblem:void 0,visits:Ec(a.visits,v)})}}return{attention:r,activate:c,changeCanvas:f,move:h,visits:a.visits,addressProblem:a.addressProblem,canGoBack:p,canGoForward:s}}var ll=X(nt(),1);var Ya=X(nt(),1),U0=X(Hr(),1);var c2="button, input, select, textarea, a[href], [contenteditable='true'], [role='button'], [role='link'], [data-kplex-no-dialog-drag]";function s2(){}function f2(e){return!e||typeof e!="object"||!("closest"in e)?null:e}function d2(e,t){let i=f2(e)?.closest(c2)??null;return!!(i&&t.contains(i))}function _0(e,t,n,i,l){let a=t+l,o=Math.max(a,t+n-i-l);return Math.min(o,Math.max(a,e))}function m2(e){let t=e.visualViewport;return{left:t?.offsetLeft??0,top:t?.offsetTop??0,width:t?.width??e.innerWidth,height:t?.height??e.innerHeight}}function H0({modalEl:e,handleEl:t,viewportMargin:n=8,onPositionChange:i}){let l=e.ownerDocument,a=l.defaultView;if(!a||t.ownerDocument!==l)return s2;let o=null,r=!1,u=!1,c=!1,f=a.visualViewport,p=(M,T)=>{let w=e.getBoundingClientRect(),N=m2(a),V=_0(M,N.left,N.width,w.width,n),E=_0(T,N.top,N.height,w.height,n);e.style.setProperty("--kplex-dialog-left",`${V}px`),e.style.setProperty("--kplex-dialog-top",`${E}px`),e.classList.add("is-positioned"),u=!0,i?.({left:V,top:E})},s=()=>{if(!u||c)return;let M=e.getBoundingClientRect();p(M.left,M.top)},h=()=>{l.removeEventListener("pointermove",b,!0),l.removeEventListener("pointerup",v,!0),l.removeEventListener("pointercancel",v,!0)},S=()=>{if(!o)return;let M=o.pointerId;o=null,r=!1,h(),t.hasPointerCapture(M)&&t.releasePointerCapture(M),e.classList.remove("is-dragging"),t.classList.remove("is-dragging")};function b(M){let T=o;if(!T||M.pointerId!==T.pointerId)return;M.preventDefault(),M.stopPropagation();let w=M.clientX-T.startClientX,N=M.clientY-T.startClientY;if(!r){if(Math.hypot(w,N)<3)return;r=!0,e.classList.add("is-dragging"),t.classList.add("is-dragging")}p(T.startLeft+w,T.startTop+N)}function v(M){!o||M.pointerId!==o.pointerId||(M.preventDefault(),M.stopPropagation(),S())}let d=M=>{o?.pointerId===M.pointerId&&S()},m=()=>{S()},g=M=>{if(c||o||M.button!==0||d2(M.target,t))return;let T=e.getBoundingClientRect();o={pointerId:M.pointerId,startClientX:M.clientX,startClientY:M.clientY,startLeft:T.left,startTop:T.top},l.addEventListener("pointermove",b,!0),l.addEventListener("pointerup",v,!0),l.addEventListener("pointercancel",v,!0);try{t.setPointerCapture(M.pointerId)}catch{}M.preventDefault(),M.stopPropagation()},x=()=>{c||(c=!0,S(),t.removeEventListener("pointerdown",g),t.removeEventListener("lostpointercapture",d),a.removeEventListener("blur",m),a.removeEventListener("resize",s),a.removeEventListener("pagehide",x),f?.removeEventListener("resize",s),f?.removeEventListener("scroll",s),e.classList.remove("kplex-draggable-dialog","is-positioned","is-dragging"),t.classList.remove("kplex-draggable-dialog-handle","is-dragging"),e.style.removeProperty("--kplex-dialog-left"),e.style.removeProperty("--kplex-dialog-top"))};return e.classList.add("kplex-draggable-dialog"),t.classList.add("kplex-draggable-dialog-handle"),t.addEventListener("pointerdown",g),t.addEventListener("lostpointercapture",d),a.addEventListener("blur",m),a.addEventListener("resize",s),a.addEventListener("pagehide",x),f?.addEventListener("resize",s),f?.addEventListener("scroll",s),x}function h2(e,t){let n=e.target,i=e.composedPath();return t.some(l=>l?i.includes(l)?!0:n?l.contains(n):!1:!1)}function Tc({open:e,anchorRef:t,anchorPoint:n,panelRef:i,dragHandleRef:l,insideRoots:a,onDismiss:o,dismissWhenAnchorHidden:r=!1,handleEscape:u,portalTarget:c,positioning:f,children:p}){let[s,h]=(0,Ya.useState)({}),S=(0,Ya.useRef)({insideRoots:a,onDismiss:o,handleEscape:u});S.current={insideRoots:a,onDismiss:o,handleEscape:u};let b=t.current,v=b?.ownerDocument??null,d=b?.closest("[data-floating-layer-boundary]")??null,m=e&&v?d??c(v):null,g=n?.x,x=n?.y;return(0,Ya.useLayoutEffect)(()=>{if(!e)return;let M=t.current;if(!M)return;let T=M.ownerDocument,w=T.defaultView;if(!w)return;let N=!1,V=null,E=()=>{if(N)return;let J=t.current;if(!J||J.ownerDocument!==T)return;let C=J.getBoundingClientRect();if(r&&(!J.getClientRects().length||!C.width||!C.height)){S.current.onDismiss("anchor-hidden");return}let P=w.visualViewport,O=d?.getBoundingClientRect(),Y=O&&d?O.left+d.clientLeft-d.scrollLeft:0,ee=O&&d?O.top+d.clientTop-d.scrollTop:0,te=Math.max(P?.offsetLeft??0,O?.left??0),H=Math.max(P?.offsetTop??0,O?.top??0),Z=Math.min((P?.offsetLeft??0)+Math.min(w.innerWidth,P?.width??w.innerWidth),O?.right??1/0),ue=Math.min((P?.offsetTop??0)+Math.min(w.innerHeight,P?.height??w.innerHeight),O?.bottom??1/0),fe=Math.min(f.viewportMargin,Math.max(0,(Z-te)/2)),wt=g??C.left,we=x??C.top,Mt=x??C.bottom,je=Math.max(0,Math.min(Math.max(f.minimumWidth,f.preferredWidth),Z-te-fe*2)),Rn=Math.max(te+fe,Math.min(V?.left??wt,Z-je-fe)),et=ue-Mt-f.anchorGap-fe,Et=we-H-f.anchorGap-fe,pn=et<f.minimumMaxHeight&&Et>et?we-f.anchorGap-Math.min(i.current?.scrollHeight||f.minimumMaxHeight,Et):Mt+f.anchorGap,Dt=Math.max(H+fe,Math.min(V?.top??pn,ue-Math.min(f.minimumMaxHeight,Math.max(0,ue-H-fe*2))-fe));h({position:d?"absolute":"fixed",left:Rn-Y,top:Dt-ee,width:je,maxHeight:Math.max(0,ue-Dt-fe)})},k=J=>{h2(J,S.current.insideRoots())||S.current.onDismiss("outside-pointer")},L=J=>{if(J.key!=="Escape"||S.current.handleEscape?.(J)===!1)return;J.preventDefault(),J.stopPropagation(),S.current.onDismiss("escape");let C=t.current;C?.ownerDocument===T&&C.isConnected&&C.focus({preventScroll:!0})},_=w.ResizeObserver,q=_?new _(E):null;q?.observe(M),d&&q?.observe(d),i.current&&q?.observe(i.current),w.addEventListener("resize",E),w.visualViewport?.addEventListener("resize",E),w.visualViewport?.addEventListener("scroll",E),T.addEventListener("scroll",E,!0),T.addEventListener("pointerdown",k,!0),T.addEventListener("keydown",L,!0);let W=i.current,ie=l?.current,I=W&&ie?H0({modalEl:W,handleEl:ie,viewportMargin:f.viewportMargin,onPositionChange:J=>{V=J,E()}}):void 0,ae=()=>{N||(N=!0,I?.(),q?.disconnect(),w.removeEventListener("resize",E),w.visualViewport?.removeEventListener("resize",E),w.visualViewport?.removeEventListener("scroll",E),T.removeEventListener("scroll",E,!0),T.removeEventListener("pointerdown",k,!0),T.removeEventListener("keydown",L,!0),w.removeEventListener("pagehide",ae))};return w.addEventListener("pagehide",ae),E(),ae},[e,r,t,g,x,i,l,v,d,f.anchorGap,f.minimumMaxHeight,f.minimumWidth,f.preferredWidth,f.viewportMargin]),m?(0,U0.createPortal)(p(s),m):null}var Tn=X(me(),1),p2={preferredWidth:250,minimumWidth:160,viewportMargin:8,anchorGap:5,minimumMaxHeight:55};function P0({anchor:e,address:t,shortAddress:n,onDismiss:i,onCopied:l}){let a=(0,ll.useRef)(e),o=(0,ll.useRef)(null),r=(0,ll.useRef)(!0),[u,c]=(0,ll.useState)();a.current=e,(0,ll.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[]);async function f(s){try{let h=e.ownerDocument.defaultView?.navigator.clipboard;if(!h)throw new Error("Clipboard unavailable");await h.writeText(s),r.current&&(l(),i(!0))}catch{r.current&&c(s)}}function p(s){if(!n||u||!["ArrowDown","ArrowUp","Home","End"].includes(s.key))return;let[h,S]=Array.from(s.currentTarget.querySelectorAll("[role=menuitem]")),b=s.key==="Home"?h:s.key==="End"||s.target===h?S:h;s.preventDefault(),b?.focus()}return(0,Tn.jsx)(Tc,{open:!0,anchorRef:a,panelRef:o,insideRoots:()=>[o.current],dismissWhenAnchorHidden:!0,onDismiss:s=>i(s==="escape"),portalTarget:()=>e.closest(".kplex-publication"),positioning:p2,children:s=>(0,Tn.jsx)("div",{ref:o,style:s,className:"kplex-publication-address-menu",role:u?"dialog":"menu","aria-label":z.copyAddress,onKeyDown:p,children:u?(0,Tn.jsx)("input",{autoFocus:!0,readOnly:!0,"aria-label":z.address,value:u,onFocus:h=>h.currentTarget.select()}):(0,Tn.jsxs)(Tn.Fragment,{children:[(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!!n,disabled:!n,onClick:()=>{n&&f(n)},children:z.copyShortAddress}),(0,Tn.jsx)("button",{type:"button",role:"menuitem",autoFocus:!n,onClick:()=>{f(t)},children:z.copyFullAddress}),!n&&(0,Tn.jsx)("p",{children:z.ambiguousAddress})]})})})}var k0=X(nt(),1);var al=X(nt(),1);var D=X(me(),1),g2={"arrow-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"m12 19-7-7 7-7"}),(0,D.jsx)("path",{d:"M19 12H5"})]}),"arrow-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"m12 5 7 7-7 7"})]}),"panel-right":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M15 3v18"})]}),"panel-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M9 3v18"})]}),"panel-bottom":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,D.jsx)("path",{d:"M3 15h18"})]}),sun:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"4"}),(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M12 20v2"}),(0,D.jsx)("path",{d:"m4.93 4.93 1.41 1.41"}),(0,D.jsx)("path",{d:"m17.66 17.66 1.41 1.41"}),(0,D.jsx)("path",{d:"M2 12h2"}),(0,D.jsx)("path",{d:"M20 12h2"}),(0,D.jsx)("path",{d:"m6.34 17.66-1.41 1.41"}),(0,D.jsx)("path",{d:"m19.07 4.93-1.41 1.41"})]}),moon:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z"})}),"sun-moon":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M12 2v2"}),(0,D.jsx)("path",{d:"M14.837 16.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715"}),(0,D.jsx)("path",{d:"M16 12a4 4 0 0 0-4-4"}),(0,D.jsx)("path",{d:"m19 5-1.256 1.256"}),(0,D.jsx)("path",{d:"M20 12h2"})]}),"file-search":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M14 2v4a2 2 0 0 0 2 2h4"}),(0,D.jsx)("path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"m9 18-1.5-1.5"}),(0,D.jsx)("circle",{cx:"5",cy:"14",r:"3"})]}),"corner-down-left":(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("polyline",{points:"9 10 4 15 9 20"}),(0,D.jsx)("path",{d:"M20 4v7a4 4 0 0 1-4 4H4"})]}),minus:(0,D.jsx)(D.Fragment,{children:(0,D.jsx)("path",{d:"M5 12h14"})}),plus:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M5 12h14"}),(0,D.jsx)("path",{d:"M12 5v14"})]}),maximize:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M8 3H5a2 2 0 0 0-2 2v3"}),(0,D.jsx)("path",{d:"M21 8V5a2 2 0 0 0-2-2h-3"}),(0,D.jsx)("path",{d:"M3 16v3a2 2 0 0 0 2 2h3"}),(0,D.jsx)("path",{d:"M16 21h3a2 2 0 0 0 2-2v-3"})]}),ellipsis:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("circle",{cx:"12",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"19",cy:"12",r:"1"}),(0,D.jsx)("circle",{cx:"5",cy:"12",r:"1"})]}),x:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("path",{d:"M18 6 6 18"}),(0,D.jsx)("path",{d:"m6 6 12 12"})]}),network:(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)("rect",{x:"16",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"2",y:"16",width:"6",height:"6",rx:"1"}),(0,D.jsx)("rect",{x:"9",y:"2",width:"6",height:"6",rx:"1"}),(0,D.jsx)("path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3"}),(0,D.jsx)("path",{d:"M12 12V8"})]})};function dm({icon:e}){return(0,D.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",children:g2[e]})}function vt({icon:e,label:t,title:n=t,type:i="button",...l}){return(0,D.jsx)("button",{...l,type:i,className:"kplex-publication-icon-control","aria-label":t,title:n,children:(0,D.jsx)(dm,{icon:e})})}var ln=X(me(),1),mm={preferredWidth:216,minimumWidth:160,viewportMargin:8,anchorGap:4,minimumMaxHeight:180},y2={...mm,preferredWidth:142,minimumWidth:112,minimumMaxHeight:138},b2={...mm,preferredWidth:280,minimumMaxHeight:235},v2={canvas:{label:z.graphOptions,positioning:mm},theme:{label:Ti.label,positioning:y2},brand:{label:_n.label,positioning:b2}};function S2(e){e?.focus({preventScroll:!0})}function cr({anchor:e,point:t,choices:n,onDismiss:i,variant:l="canvas"}){let a=(0,al.useRef)(e),o=(0,al.useRef)(null),r=(0,al.useRef)(null),[u,c]=(0,al.useState)(null),f=v2[l];a.current=e;function p(){let v=r.current;(v?.querySelector("[aria-checked=true]")??v?.querySelector("[role^=menuitem]"))?.focus()}(0,al.useLayoutEffect)(()=>{u&&p()},[u]);function s(){c(null),o.current?.querySelector("[aria-haspopup=menu][aria-expanded=true]")?.focus()}function h(){i(),e.focus({preventScroll:!0})}function S(v){if(v.key==="Tab"){h();return}let d=v.target,m=d.closest("[role=menu]");if(m){if(v.key==="ArrowRight"&&d.getAttribute("aria-haspopup")==="menu")d.getAttribute("aria-expanded")==="true"?p():d.click();else if(v.key==="ArrowLeft"&&m!==o.current)s();else if(["ArrowDown","ArrowUp","Home","End"].includes(v.key)){let g=Array.from(m.querySelectorAll("[role^=menuitem]")).filter(T=>T.closest("[role=menu]")===m),x=g.indexOf(d),M=v.key==="Home"?0:v.key==="End"?g.length-1:(x+(v.key==="ArrowDown"?1:-1)+g.length)%g.length;g[M]?.focus()}else return;v.preventDefault(),v.stopPropagation()}}function b(v,d=!1){if("href"in v)return(0,ln.jsx)("a",{role:"menuitem",ref:d?S2:void 0,href:v.href,target:"_blank",rel:"noopener noreferrer",onClick:h,children:v.label},v.href);let{label:m,icon:g,kind:x,checked:M,select:T}=v;return(0,ln.jsxs)("button",{type:"button",role:x,"aria-checked":M,autoFocus:d,onClick:()=>{h(),T()},children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true",children:M?"✓":""}),g&&(0,ln.jsx)(dm,{icon:g}),m]},m)}return(0,ln.jsx)(Tc,{open:!0,anchorRef:a,anchorPoint:t,panelRef:o,insideRoots:()=>[o.current,e],dismissWhenAnchorHidden:!0,onDismiss:i,portalTarget:()=>e.closest(".kplex-publication"),positioning:f.positioning,handleEscape:v=>u?(v.preventDefault(),v.stopPropagation(),s(),!1):!0,children:v=>(0,ln.jsx)("div",{ref:o,style:v,className:"kplex-publication-address-menu kplex-publication-canvas-menu",role:"menu","aria-label":f.label,onKeyDown:S,children:n.map((d,m)=>"choices"in d?(0,ln.jsxs)("div",{role:"none",children:[(0,ln.jsxs)("button",{type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":u===d.label,onClick:()=>u===d.label?s():c(d.label),children:[(0,ln.jsx)("span",{className:"kplex-publication-menu-check","aria-hidden":"true"}),d.label,(0,ln.jsx)("span",{className:"kplex-publication-submenu-arrow","aria-hidden":"true",children:"▸"})]}),u===d.label&&(0,ln.jsx)("div",{ref:r,role:"menu","aria-label":d.label,children:d.choices.map(g=>b(g))})]},d.label):b(d,l==="theme"?"checked"in d&&d.checked:m===0))})})}var Gt=X(me(),1),hm=[{label:_n.github,href:"https://github.com/zsviczian/kplex"},{label:_n.npm,href:"https://www.npmjs.com/package/@zsviczian/kplex-web"},{label:_n.community,href:"https://community.obsidian.md/plugins/k-plex"},{label:_n.playlist,href:"https://www.youtube.com/playlist?list=PLH_fBE-KxyiM"},{label:_n.book,href:"https://community.sketch-your-mind.com/sym"}];function V0(){let[e,t]=(0,k0.useState)(null);return(0,Gt.jsxs)(Gt.Fragment,{children:[(0,Gt.jsx)("button",{className:"kplex-publication-brand",type:"button","aria-label":_n.label,title:_n.label,"aria-haspopup":"menu","aria-expanded":!!e,onClick:n=>t(e?null:n.currentTarget),children:(0,Gt.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Gt.jsx)("path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z"}),(0,Gt.jsx)("path",{d:"M9 13a4.5 4.5 0 0 0 3-4M6.003 5.125A3 3 0 0 0 6.401 6.5M3.477 10.896a4 4 0 0 1 .585-.396M6 18a4 4 0 0 1-1.967-.516M12 13h4M12 18h6a2 2 0 0 1 2 2v1M12 8h8M16 8V5a2 2 0 0 1 2-2"}),(0,Gt.jsx)("circle",{cx:"16",cy:"13",r:".5"}),(0,Gt.jsx)("circle",{cx:"18",cy:"3",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"21",r:".5"}),(0,Gt.jsx)("circle",{cx:"20",cy:"8",r:".5"})]})}),e&&(0,Gt.jsx)(cr,{anchor:e,variant:"brand",choices:hm,onDismiss:()=>t(null)})]})}var B0=X(nt(),1),G0=X(me(),1);function pm({icon:e,size:t,className:n}){function i(l,a){return(0,B0.createElement)(l.tag,{...l.attrs,key:a},l.shapes.length?l.shapes.map(i):void 0)}return(0,G0.jsx)("svg",{...e.attrs,width:t,height:t,viewBox:e.viewBox,className:n,"aria-hidden":"true",focusable:"false",children:e.shapes.map(i)})}var fr=X(nt(),1);function Y0(e,t){if(!e.length||!Number.isFinite(t))return null;let n=Math.max(0,Math.min(1,t));if(e.length===1)return e[0];for(let i=1;i<e.length;i++){let l=e[i],a=e[i-1];if(n>l.offset&&i<e.length-1)continue;let o=l.offset>a.offset?(n-a.offset)/(l.offset-a.offset):1,r=(u,c)=>u+(c-u)*o;return{offset:n,x:r(a.x,l.x),y:r(a.y,l.y),scaleX:r(a.scaleX,l.scaleX),scaleY:r(a.scaleY,l.scaleY),originX:r(a.originX,l.originX),originY:r(a.originY,l.originY)}}return null}var Nc=class{constructor(){this.animations=new Map;this.poses=new Map}play(t,n,i,l){this.animations.get(t)?.cancel(),this.animations.delete(t),this.poses.delete(t);let a=t.animate(n,{...i,fill:"none"});if(!a)return null;this.animations.set(t,a),l&&this.poses.set(t,{animation:a,frames:l});let o=()=>{this.animations.get(t)===a&&(this.animations.delete(t),this.poses.delete(t))};return a.finished.then(o,o),a}isRunning(t){return t?this.animations.has(t):this.animations.size>0}sample(t){let n=this.poses.get(t);if(!n||this.animations.get(t)!==n.animation)return null;let i=n.animation.effect?.getComputedTiming().progress;return typeof i=="number"?Y0(n.frames,i):null}cancelAll(){for(let t of this.animations.values())t.cancel();this.animations.clear(),this.poses.clear()}};function q0(e,t,n,i){let l=Math.max(.01,n),a=(e.left-t.left)/l,o=(e.top-t.top)/l,r=t.width>0?e.width/t.width:1,u=t.height>0?e.height/t.height:1,c=Math.hypot(a,o),f=Math.min(24/l,c*.08),p=c?-o/c:0,s=c?a/c:0;return[0,.35,.65,.85,1].map(h=>{let S=h===0||h===1?0:Math.sin(Math.PI*h),b=a*(1-h)+p*f*S,v=o*(1-h)+s*f*S,d=1+.055*S;return i?.push({offset:h,x:b,y:v,scaleX:(r+(1-r)*h)*d,scaleY:(u+(1-u)*h)*d,originX:0,originY:0}),{offset:h,transformOrigin:"0 0",transform:`translate(${b}px, ${v}px) scale(${(r+(1-r)*h)*d}, ${(u+(1-u)*h)*d})`,opacity:1}})}var sr=X(nt(),1),Rc=X(me(),1),kl="[data-publication-strip-scroll]";function j0({id:e,label:t,panel:n,start:i,onScroll:l,children:a}){let o=(0,sr.useRef)(null),r=(0,sr.useRef)(i);return(0,sr.useLayoutEffect)(()=>{o.current&&(o.current.scrollTop=r.current)},[]),(0,Rc.jsx)("div",{className:"kplex-zone-panel",style:{left:n.x,top:n.y,width:n.width,height:n.height},children:(0,Rc.jsx)("div",{className:"kplex-zone-scroll kplex-publication-strip-scroll","data-publication-strip-scroll":e,ref:o,role:"region","aria-label":t,tabIndex:0,onScroll:u=>l(u.currentTarget.scrollTop),children:(0,Rc.jsx)("div",{className:"kplex-zone-content",style:{height:n.contentHeight},children:a})})})}var Cc={duration:320,easing:"cubic-bezier(.2,.72,.22,1)"};function X0(e){let t=e.getBoundingClientRect(),n=new Map(Array.from(e.querySelectorAll(kl),l=>[l,l.getBoundingClientRect()])),i=[];for(let l of Array.from(e.querySelectorAll("[data-publication-occurrence]"))){let a=l.getBoundingClientRect(),o=l.closest(kl),r=o?n.get(o)??t:t;a.left>=Math.min(t.right,r.right)||a.right<=Math.max(t.left,r.left)||a.top>=Math.min(t.bottom,r.bottom)||a.bottom<=Math.max(t.top,r.top)||i.push({element:l,id:l.dataset.publicationNode,occurrence:l.dataset.publicationOccurrence,rect:a,clipped:r!==t&&(a.top<r.top||a.bottom>r.bottom)})}return i}function x2(e,t){let n=new Set(e),i=new Map(e.map(o=>[o.occurrence,o])),l=new Map;for(let o of e){let r=l.get(o.id);r?r.push(o):l.set(o.id,[o])}let a=new Map;for(let o of t){let r=i.get(o.occurrence);r?.id===o.id&&(a.set(o,r),n.delete(r))}for(let o of t){if(a.has(o))continue;let r,u=1/0;for(let c of l.get(o.id)??[]){if(!n.has(c))continue;let f=Math.hypot(o.rect.x-c.rect.x,o.rect.y-c.rect.y);f<u&&(r=c,u=f)}r&&(a.set(o,r),n.delete(r))}return{pairs:a,remaining:n}}function K0(e,t){let n=(0,fr.useRef)(new Nc).current,i=(0,fr.useRef)(null);function l(){i.current=null,n.cancelAll(),t.current?.replaceChildren()}(0,fr.useEffect)(()=>{let r=e.current?.ownerDocument.defaultView?.matchMedia("(prefers-reduced-motion: reduce)");return r?.addEventListener("change",l),()=>{r?.removeEventListener("change",l),l()}},[]);function a(r){let u=e.current,c=u?.ownerDocument.defaultView;if(!(!u||!c)){if(u.querySelector("[data-publication-center]")?.dataset.publicationNode===r){i.current=null;return}if(u.ownerDocument.hidden||c.matchMedia("(prefers-reduced-motion: reduce)").matches||typeof u.animate!="function"){l();return}i.current={id:r,cards:X0(u)}}}function o(r,u){let c=e.current,f=t.current,p=i.current;if(l(),!c||!f||p?.id!==r)return;let s=X0(c),{pairs:h,remaining:S}=x2(p.cards,s);for(let d of s){let m=h.get(d)?.rect;m?(Math.abs(m.left-d.rect.left)>.5||Math.abs(m.top-d.rect.top)>.5||Math.abs(m.width-d.rect.width)>.5||Math.abs(m.height-d.rect.height)>.5)&&n.play(d.element,q0(m,d.rect,u),Cc):n.play(d.element,[{opacity:0,transform:"translateY(12px) scale(.94)"},{opacity:1,transform:"none"}],Cc)}let b=f.getBoundingClientRect();for(let d of S){if(d.clipped||d.element.isConnected)continue;let m=d.element.cloneNode(!0);m.removeAttribute("role"),m.removeAttribute("tabindex"),m.removeAttribute("data-publication-node"),m.removeAttribute("data-publication-occurrence"),m.removeAttribute("data-publication-center"),m.style.left=`${d.rect.left-b.left}px`,m.style.top=`${d.rect.top-b.top}px`;let g=d.rect.width/parseFloat(m.style.width),x=d.rect.height/parseFloat(m.style.height);f.append(m);let M=n.play(m,[{opacity:1,transformOrigin:"0 0",transform:`scale(${g}, ${x})`},{opacity:0,transformOrigin:"0 0",transform:`translateY(-8px) scale(${g*.95}, ${x*.95})`}],{...Cc,duration:200});M?M.finished.then(()=>m.remove(),()=>m.remove()):m.remove()}let v=c.querySelector(".kplex-links");v&&n.play(v,[{opacity:0,offset:0},{opacity:.12,offset:.45},{opacity:1,offset:1}],Cc)}return{capture:a,play:o,cancel:l}}var Ot=X(nt(),1);var dr=X(me(),1);function Q0({label:e,controlId:t,children:n,layout:i="stacked",actions:l,className:a=""}){return(0,dr.jsxs)("div",{className:`${i==="option"?"kplex-form-option":i==="inline"?"kplex-form-inline":"kplex-form-field kplex-react-field"}${l?" has-actions":""} ${a}`,children:[(0,dr.jsx)("label",{id:`${t}-label`,htmlFor:t,children:e}),n,l?(0,dr.jsx)("div",{className:"kplex-field-actions",children:l}):null]})}var Ac=X(nt(),1);var De=X(nt(),1),I0=X(Hr(),1),St=X(me(),1);function w2(e,t){let n=t.trim().toLocaleLowerCase();if(!n)return new Set;let i=e.toLocaleLowerCase(),l=i.indexOf(n);if(l>=0)return new Set(Array.from({length:n.length},(r,u)=>l+u));let a=new Set,o=0;for(let r of n){let u=i.indexOf(r,o);if(u<0)return new Set;a.add(u),o=u+1}return a}function Z0(e,t){let n=w2(e,t);if(!n.size)return e;let i=[],l=0,a=n.has(0);for(let o=1;o<=e.length;o+=1){let r=o<e.length&&n.has(o);if(o<e.length&&r===a)continue;let u=e.slice(l,o);i.push(a?(0,St.jsx)("mark",{className:"kplex-fuzzy-match",children:u},`${l}:m`):(0,St.jsx)("span",{children:u},`${l}:t`)),l=o,a=r}return(0,St.jsx)(St.Fragment,{children:i})}function J0({value:e,onChange:t,results:n,getResults:i,onChoose:l,getKey:a,getLabel:o,getDetail:r,placeholder:u,ariaLabel:c,inputId:f,labelledBy:p,icon:s,autoFocus:h=!1,disabled:S=!1,floating:b=!1,floatingMode:v="app",portalSelector:d,appTopbarSelector:m,maxFloatingHeight:g=440,minFloatingWidth:x=0,resultsClassName:M="",matchingQuery:T,resultsOwnerId:w,preferSuggestionOnModifiedEnter:N=!1,resultPrefix:V,onEnterWithoutResult:E,onCtrlEnter:k,openResultsOnFocus:L=!0,onFocusChange:_,onDismiss:q,focusRequest:W,inputTitle:ie,inputKeyShortcuts:I,className:ae="",highlightMatches:J=!0,closeOnChoose:C=!0,closeOnBlur:P=!1,combobox:O=!1,advanceOnChoose:Y=!1,disclosure:ee}){let te=(0,De.useId)(),[H,Z]=(0,De.useState)(!1),[ue,fe]=(0,De.useState)(!1),[wt,we]=(0,De.useState)(!1),[Mt,je]=(0,De.useState)(!1),[Rn,et]=(0,De.useState)(0),[Et,pn]=(0,De.useState)(null),Dt=(0,De.useRef)(null),wi=(0,De.useRef)(null),Fn=(0,De.useRef)(null),rl=H&&!wt&&(Mt||L||ue&&e.trim().length>0),he=(0,De.useMemo)(()=>rl?i?.(e)??n??[]:[],[rl,i,n,e]),tt=he.length?Math.max(0,Math.min(he.length-1,Rn)):0,Lt=Dt.current?.ownerDocument??null,Te=Lt?.defaultView??null,Cn=b?v==="viewport"?Lt?.body??null:d?Dt.current?.closest(d)??null:null:null,An=H&&he.length>0&&(!b||!!(Cn&&Et)),$n=()=>{je(!1),we(!0),et(0),q?.()},Yt=()=>{ee&&(ee.onOpen(),Fn.current?.focus({preventScroll:!0}),Z(!0),je(!0),we(!1),et(0))},ul=U=>{je(!1),Z(!U),fe(!1),we(!U),et(0);let le=Fn.current;U&&le&&le.ownerDocument.activeElement===le&&le.blur(),_?.(!1)},Wn=()=>ul(!0),zn=U=>{if(l(U),C){ul(!O);return}Y&&he.length>0&&et(le=>(Math.max(0,Math.min(he.length-1,le))+1)%he.length)};(0,De.useEffect)(()=>{et(0)},[e]);let Pe=(0,De.useCallback)(()=>{let U=Fn.current;U&&(Z(!0),fe(!1),we(!1),U.focus({preventScroll:!0}),_?.(!0))},[_]);(0,De.useEffect)(()=>{h&&Pe()},[h,Pe]),(0,De.useEffect)(()=>{W&&Pe()},[W,Pe]),(0,De.useEffect)(()=>{let U=Dt.current;if(!U)return;let le=()=>$n();return U.addEventListener("kplex-dismiss-suggestions",le),()=>U.removeEventListener("kplex-dismiss-suggestions",le)},[q]),(0,De.useEffect)(()=>{if(!H||!Lt||!Te)return;let U=Dt.current;if(!U)return;let le=gn=>{let Tt=gn.target;Tt&&(U.contains(Tt)||wi.current?.contains(Tt))||Wn()},Ge=()=>Lt.removeEventListener("pointerdown",le,!0);return Lt.addEventListener("pointerdown",le,!0),Te.addEventListener("pagehide",Ge,{once:!0}),()=>{Ge(),Te.removeEventListener("pagehide",Ge)}},[H,Lt,Te]),(0,De.useLayoutEffect)(()=>{if(!b||!H||!he.length){pn(null);return}let U=Dt.current;if(!U||!Te)return;let le=Te.visualViewport,Ge=()=>{let ni=U.getBoundingClientRect(),qt=8,Za=6;if(v==="viewport"){let xr=le?.offsetLeft??0,y=le?.offsetTop??0,A=le?.width??Te.innerWidth,B=y+(le?.height??Te.innerHeight),K=Math.min(Math.max(ni.width,x),Math.max(0,A-qt*2)),re=Math.max(xr+qt,Math.min(ni.left,xr+A-qt-K)),j=Math.max(ni.bottom+Za,y+qt),_e=Math.min(ni.top-Za,B-qt),pt=Math.max(0,B-qt-j),Xe=Math.max(0,_e-y-qt),Le=pt>=Math.min(180,g)||pt>=Xe,jt=Math.max(0,Math.min(g,Le?pt:Xe)),Xt={position:"fixed",left:re,width:K,maxHeight:jt,zIndex:1e4};Le?Xt.top=j:Xt.bottom=Te.innerHeight-_e,pn(Xt);return}let pr=d?U.closest(d)??null:null,gr=m?U.closest(m)??null:null;if(!pr||!gr)return;let On=pr.getBoundingClientRect(),yr=gr.getBoundingClientRect(),Ia=Math.max(0,On.width-qt*2),br=Math.min(780,Math.max(ni.width,Math.min(620,Ia)),Ia),Ja=qt,vr=Math.max(Ja,On.width-qt-br),Sr=Math.min(vr,Math.max(Ja,ni.left-On.left)),Fa=Math.max(0,yr.bottom-On.top+Za),$a=Math.max(0,Math.min(g,On.height-Fa-qt));pn({left:Sr,top:Fa,width:br,maxHeight:$a})};Ge();let gn=Te.ResizeObserver,Tt=gn?new gn(Ge):null,ti=v==="app"&&d?U.closest(d):null,Qa=v==="app"&&m?U.closest(m):null;ti&&Tt?.observe(ti),Qa&&Tt?.observe(Qa),Tt?.observe(U);let cl=()=>{Tt?.disconnect(),Te.removeEventListener("resize",Ge),Te.removeEventListener("scroll",Ge,!0),le?.removeEventListener("resize",Ge),le?.removeEventListener("scroll",Ge)};return Te.addEventListener("resize",Ge),Te.addEventListener("scroll",Ge,!0),le?.addEventListener("resize",Ge),le?.addEventListener("scroll",Ge),Te.addEventListener("pagehide",cl,{once:!0}),()=>{cl(),Te.removeEventListener("pagehide",cl)}},[m,b,v,H,he.length,g,x,Lt,Te,d]),(0,De.useEffect)(()=>{let U=wi.current;!U||!he.length||U.querySelector(`[data-kplex-fuzzy-index="${tt}"]`)?.scrollIntoView({block:"nearest"})},[tt,he.length]);let ei=U=>{if(!(U.nativeEvent.isComposing||U.key==="Dead"||U.getModifierState("AltGraph"))){if(U.key==="Tab"){$n(),Z(!1),_?.(!1);return}if(U.key==="Escape"){he.length&&(U.preventDefault(),U.stopPropagation(),$n());return}if(O&&ee&&U.key==="ArrowDown"&&!he.length){U.preventDefault(),Yt();return}if(U.key==="ArrowDown"&&he.length){U.preventDefault(),et(le=>Math.min(he.length-1,le+1));return}if(U.key==="ArrowUp"&&he.length){U.preventDefault(),et(le=>Math.max(0,le-1));return}if(U.key==="Enter"&&U.repeat){U.preventDefault(),U.stopPropagation();return}if(U.key==="Enter"&&he.length&&(!(U.ctrlKey||U.metaKey)||N)){U.preventDefault(),U.stopPropagation();let le=he[tt];le&&zn(le);return}if(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&k){U.preventDefault(),U.stopPropagation(),k();return}if(!(U.key==="Enter"&&(U.ctrlKey||U.metaKey)&&!k)&&U.key==="Enter"){U.preventDefault();let le=he[tt];le?zn(le):E?.()}}},Mi=H&&he.length>0?(0,St.jsx)("div",{ref:wi,id:O?te:void 0,role:O?"listbox":void 0,"aria-labelledby":O?p:void 0,"aria-label":O&&!p?c:void 0,"data-fuzzy-owner":w,"data-kplex-tooltip-scope":!0,className:`kplex-search-results${b?" kplex-fuzzy-floating-results":" kplex-fuzzy-inline-results"}${M?` ${M}`:""}`,style:b?Et??void 0:void 0,children:he.map((U,le)=>{let Ge=o(U),gn=r?.(U),Tt=J?T??e:"";return(0,St.jsxs)("button",{id:O?`${te}-option-${le}`:void 0,role:O?"option":void 0,"aria-selected":O?le===tt:void 0,tabIndex:O?-1:void 0,"data-kplex-fuzzy-index":le,className:`kplex-search-result${V?" has-prefix":""}${le===tt?" is-selected":""}`,"aria-label":gn?`${Ge}
|
|
779
|
+
${gn}`:Ge,onMouseDown:ti=>ti.preventDefault(),onMouseEnter:()=>et(le),onClick:()=>zn(U),children:[V?(0,St.jsx)("span",{className:"kplex-search-result-prefix","aria-hidden":"true",children:V(U)}):null,(0,St.jsx)("span",{children:Z0(Ge,Tt)}),gn?(0,St.jsx)("small",{children:Z0(gn,Tt)}):null]},a(U))})}):null,Ka=b&&Cn&&Et&&Mi?(0,I0.createPortal)(Mi,Cn):b?null:Mi;return(0,St.jsxs)("div",{ref:Dt,className:`kplex-search-shell kplex-fuzzy-search${ae?` ${ae}`:""}`,children:[s?(0,St.jsx)("div",{className:"kplex-search-icon",children:s}):null,(0,St.jsx)("input",{ref:Fn,type:"text",role:O?"combobox":void 0,id:f,className:"kplex-search",value:e,disabled:S,onChange:U=>{je(!1),fe(!0),we(!1),t(U.currentTarget.value)},onFocus:()=>{Z(!0),fe(!1),we(!1),_?.(!0)},onBlur:P?Wn:void 0,onKeyDown:ei,placeholder:u,"aria-label":p?void 0:c,title:ie,"aria-keyshortcuts":I,"aria-labelledby":p,"aria-expanded":O?An:H&&he.length>0,"aria-haspopup":O?"listbox":void 0,"aria-autocomplete":O?"list":void 0,"aria-controls":O&&An?te:void 0,"aria-activedescendant":O&&An?`${te}-option-${tt}`:void 0,autoComplete:"off"}),ee?(0,St.jsx)("button",{type:"button",className:"kplex-fuzzy-disclosure",tabIndex:O?-1:void 0,disabled:S,"aria-label":ee.label,"aria-expanded":O?An:H&&he.length>0,"aria-haspopup":O?"listbox":void 0,"aria-controls":O&&An?te:void 0,onMouseDown:U=>U.preventDefault(),onClick:()=>{if(H&&Mt&&!wt){$n();return}Yt()},children:ee.icon}):null,Ka]})}var $0=X(me(),1);function F0({graph:e,icon:t,portalSelector:n,appTopbarSelector:i,onActivate:l,revision:a,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,placeholder:c,ariaLabel:f,clearOnActivate:p=!0,repeatFind:s=!1,resultIcon:h}){let[S,b]=(0,Ac.useState)(""),v=(0,Ac.useCallback)(d=>e.search(d,24),[e,a]);return(0,$0.jsx)(J0,{value:S,onChange:b,getResults:v,onChoose:d=>{l(d.node.id),p&&b("")},getKey:d=>d.node.id,getLabel:d=>d.label,getDetail:d=>d.detail,resultPrefix:h,placeholder:c,ariaLabel:f,floating:!0,icon:t,portalSelector:n,appTopbarSelector:i,focusRequest:o,inputTitle:r,inputKeyShortcuts:u,closeOnChoose:!s,advanceOnChoose:s})}var M2=1e5,E2=8*1024*1024,W0=1e6,T2=/[\p{L}\p{N}]+/gu,N2=/^[\p{L}\p{N}]{1,128}$/u;function ev(e){return[...new Set(e.normalize("NFC").toLowerCase().match(T2))].filter(t=>t.length<=128)}function R2(e,t){if(!Array.isArray(e)||e.length>Nr)throw new Error("Invalid publication search rows");let n=new Set,i=0;return e.map(l=>{if(!l||typeof l!="object"||!("id"in l)||!li(l.id)||n.has(l.id)||t&&!t.has(l.id)||!("text"in l)||typeof l.text!="string"||l.text.length>M2)throw new Error("Invalid publication search row");if(n.add(l.id),i+=l.text.length,i>E2)throw new Error("Publication search exceeds its text budget");return{id:l.id,text:l.text}})}function tv(e,t){if(!e||typeof e!="object"||!("version"in e)||e.version!==1||!("rows"in e)||!("terms"in e)||!Array.isArray(e.terms)||e.terms.length>W0)throw new Error("Invalid publication search index");let n=R2(e.rows,t),i="";for(let{id:r}of n){if(i>=r)throw new Error("Unordered publication search rows");i=r}let l="",a=0,o=e.terms.map(r=>{if(!Array.isArray(r)||r.length!==2)throw new Error("Invalid publication search term");let[u,c]=r;if(typeof u!="string"||u.length>128||!N2.test(u)||u!==u.normalize("NFC").toLowerCase()||l>=u||!Array.isArray(c)||!c.length||c.length>n.length)throw new Error("Invalid publication search term");if(l=u,a+=c.length,a>W0)throw new Error("Publication search exceeds its posting budget");let f=-1;for(let p of c){if(typeof p!="number"||!Number.isInteger(p)||p<=f||p>=n.length)throw new Error("Invalid publication search reference");f=p}return[u,c]});return{version:1,rows:n,terms:o}}function Vl(e){return e.trim().normalize("NFC").toLowerCase()}function nv(e,t){let n=new Set([...t.published.values()].filter(l=>l.kind==="document"||l.kind==="drawing").map(l=>l.id)),i=tv(e,n);return{rows:i.rows,positions:new Map(i.rows.map(({id:l},a)=>[l,a])),postings:new Map(i.terms)}}function C2(e,t){let n=Math.max(0,Vl(e).indexOf(t)-35);return`${n?"…":""}${e.slice(n,n+90)}${e.length>n+90?"…":""}`}function iv(e,t){let n=new Map,i=[...e.nodes.values()].map(a=>{let o=Vl(a.name),r=a.aliases.map(Vl),u=Object.values(e.published.get(a.id)?.properties??{}).flatMap(c=>typeof c=="object"?[...c]:[String(c)]).map(Vl);for(let c of[o,...r]){let f=n.get(c);f||n.set(c,f=new Set),f.add(a.id)}return{node:a,title:o,aliases:r,properties:u}});return{graph:{search(a,o){let r=Vl(a.slice(0,128));if(!r)return[];let u=ev(r),c=u[0],f=t&&u.length?u.map(p=>new Set(t.postings.get(p))):null;return i.flatMap(({node:p,title:s,aliases:h,properties:S})=>{let b=t?.positions.get(p.id),v=s===r?1:h.includes(r)?2:s.startsWith(r)?3:h.some(d=>d.startsWith(r))?4:s.includes(r)?5:h.some(d=>d.includes(r))||S.some(d=>d.includes(r))?6:b!==void 0&&f?.every(d=>d.has(b))?7:0;return v?[{score:v,node:p,position:b,title:s}]:[]}).sort((p,s)=>p.score-s.score||e.read.compare(p.node,s.node)).slice(0,o).map(({score:p,node:s,position:h,title:S})=>{let b=p===7&&h!==void 0?t?.rows[h]?.text:void 0,v=b&&c?C2(b,c):n.get(S).size>1?s.id:s.aliases.find(d=>Vl(d).includes(r))??"";return{node:s,label:s.name,detail:v}})}},address(a){let o=Vl(a),r=rr(e,o);return r.length?r:[...n.get(o)??[]]}}}var $e=X(me(),1);function lv({publication:e,resources:t,page:n,searchFocus:i,onChoose:l}){let a=(0,Ot.useRef)(null),o=(0,Ot.useId)(),[r,u]=(0,Ot.useState)(""),[c,f]=(0,Ot.useState)([]),[p,s]=(0,Ot.useState)(!1),[h,S]=(0,Ot.useState)(!1),[b,v]=(0,Ot.useState)(null),[d,m]=(0,Ot.useState)(!1),g=(0,Ot.useMemo)(()=>iv(e,h?b:null),[e,h,b]);(0,Ot.useEffect)(()=>{let M=a.current?.ownerDocument.defaultView;if(!h||!M||b)return;let T=new M.AbortController,w=T.signal;return m(!1),t.text(Rr,w).then(N=>{w.aborted||v(nv(JSON.parse(N),e))}).catch(()=>{w.aborted||m(!0)}),()=>T.abort()},[h,e,t,b]);function x(M){M.preventDefault();let T=D0(r.trim(),n(),e),w=T?T.matches:g.address(r);if(w.length!==1){f(w),s(!w.length);return}f([]),s(!1),l(T?.location??{id:w[0]})}return(0,$e.jsxs)("div",{className:"kplex-publication-tools",ref:a,children:[(0,$e.jsxs)("div",{className:"kplex-publication-search",children:[(0,$e.jsx)(F0,{graph:g.graph,revision:b&&h?1:0,onActivate:M=>l({id:M}),portalSelector:".kplex-publication",appTopbarSelector:".kplex-publication-header",placeholder:z.find,ariaLabel:z.find,focusRequest:i,inputTitle:`${z.find} (${ir.key})`,inputKeyShortcuts:ir.key}),e.manifest?.fullText&&(0,$e.jsxs)("div",{className:"kplex-publication-search-options",children:[(0,$e.jsx)(vt,{icon:"file-search",label:z.fullText,"aria-pressed":h,onClick:()=>S(M=>!M)}),h&&(d||!b)&&(0,$e.jsx)("span",{role:"status",children:d?z.searchUnavailable:z.searchLoading})]})]}),(0,$e.jsxs)("form",{className:"kplex-publication-address",onSubmit:x,children:[(0,$e.jsx)(Q0,{label:z.address,layout:"inline",controlId:o,actions:(0,$e.jsx)(vt,{icon:"corner-down-left",label:z.open,type:"submit"}),children:(0,$e.jsx)("input",{id:o,type:"text",placeholder:z.address,autoComplete:"off",maxLength:512,value:r,onChange:M=>{u(M.currentTarget.value),f([]),s(!1)}})}),p&&(0,$e.jsx)("span",{role:"status",children:z.nodeUnavailable}),c.length>1&&(0,$e.jsxs)("div",{className:"kplex-publication-address-matches",children:[(0,$e.jsx)("p",{children:z.chooseNote}),(0,$e.jsx)("ul",{children:c.slice(0,24).map(M=>(0,$e.jsx)("li",{children:(0,$e.jsxs)("button",{type:"button",onClick:()=>{f([]),l({id:M})},children:[e.nodes.get(M)?.name," · ",M]})},M))}),c.length>24&&(0,$e.jsx)("p",{children:z.chooseAddress})]})]})]})}var xt=X(nt(),1);var A2="https://api.github.com",z2="https://github.com",O2=/^[a-z\d][a-z\d-]{0,38}$/i,D2=/^[a-z\d_.-]{1,100}$/i;function av(e){return e.length<=256&&/^[a-z\d_.:/-]+$/i.test(e)&&!e.endsWith(".")&&!e.includes("..")&&e.split("/").every(t=>!!t&&!t.startsWith(".")&&!t.endsWith(".lock"))}function ov(e){if(!Zc(e))return null;let t=/^(https?):\/\/(?:www\.)?github\.com(?::(\d{1,5}))?(\/[^?#]*)?(?:[?#]|$)/i.exec(e);if(!t)return null;let[,n,i,l="/"]=t;if(i&&Number(i)!==(n.toLowerCase()==="https"?443:80))return null;let a;try{a=l.slice(1).replace(/\/$/,"").split("/").map(h=>decodeURIComponent(h))}catch{return{}}let[o,r,u,...c]=a;if(!o||!r||!O2.test(o)||!D2.test(r)||r==="."||r==="..")return{};let f=`${o}/${r}`,p=`${A2}/repos/${f}`,s=c.join("/");if(!u)return{repository:f,preview:{api:p,caption:f,comparison:!1}};if((u==="pull"||u==="issues")&&/^[1-9]\d{0,14}$/.test(c[0]??""))return{repository:f,preview:{api:`${p}/${u==="pull"?"pulls":"issues"}/${c[0]}`,caption:`${f} #${c[0]}`,comparison:!1}};if(u==="compare"){let h=s.split("...");if(h.length===2&&h.every(av))return{repository:f,preview:{api:`${p}/compare/${h.map(encodeURIComponent).join("...")}?per_page=20`,caption:s,comparison:!0}}}if(u==="releases"&&c[0]==="tag"){let h=c.slice(1).join("/");if(av(h))return{repository:f,preview:{api:`${p}/releases/tags/${encodeURIComponent(h)}`,caption:h,comparison:!1}}}return{repository:f}}function gm(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function ym(e,t){return typeof e=="string"&&e.trim()?e.trim().slice(0,t):void 0}function rv(e,t,n){let i=gm(n);if(!t.comparison)return{title:ym(i.title??i.name??i.full_name,240)??t.caption,description:ym(i.body??i.description,16e3)};let l=Array.isArray(i.commits)?i.commits.slice(0,20).flatMap(a=>{let{sha:o,commit:r}=gm(a);if(typeof o!="string"||!/^[a-f\d]{40}$/i.test(o))return[];let u=ym(gm(r).message,240);return[{sha:o.slice(0,7),title:u?.split(/\r?\n/,1)[0]??o.slice(0,7),href:`${z2}/${e}/commit/${o}`}]}):[];return{title:t.caption,commits:l,total:typeof i.total_commits=="number"&&Number.isSafeInteger(i.total_commits)&&i.total_commits>=l.length?i.total_commits:l.length}}var zc="http://www.w3.org/1999/xhtml",qa="http://www.w3.org/2000/svg",L2="http://www.w3.org/1999/xlink",uv="http://www.w3.org/XML/1998/namespace",_2=new Set("a article aside audio b blockquote br caption code dd del div dl dt em figcaption figure h1 h2 h3 h4 h5 h6 hr i img li mark ol p pre s section span strong sub sup table tbody td th thead tr ul video".split(" ")),H2=new Set("svg a circle clipPath defs ellipse g image line linearGradient marker mask path pattern polygon polyline radialGradient rect stop symbol text textPath tspan use".split(" ")),U2=new Set("x y x1 x2 y1 y2 cx cy r rx ry fx fy fr d points width height viewBox markerWidth markerHeight refX refY startOffset stroke-width stroke-dasharray stroke-dashoffset font-size letter-spacing textLength pathLength transform gradientTransform patternTransform opacity fill-opacity stroke-opacity offset stop-opacity stroke-miterlimit".split(" ")),P2=new Set("stroke-linecap stroke-linejoin text-anchor dominant-baseline alignment-baseline font-weight font-style font-family fill-rule clip-rule gradientUnits spreadMethod markerUnits marker-start marker-end marker-mid patternUnits patternContentUnits clipPathUnits maskUnits maskContentUnits preserveAspectRatio orient vector-effect visibility lengthAdjust".split(" ")),k2=new Set(["fill","stroke","stop-color","clip-path","mask","marker-start","marker-end","marker-mid"]),cv=/^[-a-z0-9_]{1,96}$/i,V2=/^[\d\s+.,%()a-z-]+$/i,B2=/^[a-z0-9][a-z0-9 .,%'"-]{0,191}$/i,G2=/^(?:#[\da-f]{3,8}|[a-z]{1,32}|rgba?\([\d., %]+\)|hsla?\([\d., %+-]+\))$/i,Y2=/^url\(#([a-z0-9_.:-]{1,160})\)$/i,q2=/^\.\/assets\/[a-f0-9]{64}\.[a-z0-9]{2,5}$/,sv=/\.(?:png|jpe?g|gif|webp|avif|svg)$/,fv=4*1024*1024;function Oc(e){return/^[bh]-[\p{L}\p{N}_-]{1,80}$/u.test(e)}function j2(e){if(e.length>2048||!/^https?:\/\//i.test(e)||/[\p{Cc}\s\\]/u.test(e))return null;try{let t=new URL(e);return t.hostname&&!t.username&&!t.password?t.href:null}catch{return null}}function X2(e,t=""){if(!li(e)||t&&!Oc(t))throw new Error("Invalid public link");return`?node=${e}${t?`#${encodeURIComponent(t)}`:""}`}function dv(e,t){if(e.startsWith("?node=")){let n=/^\?node=([^#]+)(?:#(.+))?$/.exec(e);if(!n||!t.nodeIds.has(n[1])||!li(n[1]))return null;let i="";try{i=decodeURIComponent(n[2]??"")}catch{return null}if(i&&!Oc(i))return null;if(t.nodeAddress)return t.nodeAddress(n[1],i);let l=X2(n[1],i);return t.siteURL?new URL(l,t.siteURL).href:l}if(e.startsWith("#")){let n;try{n=decodeURIComponent(e.slice(1))}catch{return null}return Oc(n)?`#${encodeURIComponent(t.idPrefix?`${t.idPrefix}-${n}`:n)}`:null}return mv(e,t)??(t.allowExternalLinks===!1?null:j2(e))}function mv(e,t){let n=e.slice(2);return!q2.test(e)||!Bl(n)||!t.assetPaths.has(n)?null:t.siteURL?new URL(`./${n}`,t.siteURL).href:`./${n}`}function K2(e,t){let n=new Map;for(let i of Array.from(e.querySelectorAll("[id]"))){let l=i.getAttribute("id");l&&/^[a-z0-9_.:-]{1,160}$/i.test(l)&&!n.has(l)&&n.set(l,`${t}-${n.size+1}`)}return n}function hv(e,t){t&&(e.setAttribute("href",t),e.setAttribute("rel","noopener noreferrer"))}function pv(e,t,n,i){let l=mv(n,i);l&&(i.deferMedia?e.setAttribute("data-publication-asset",n.slice(2)):e.setAttribute(t,l))}function Q2(e,t){if(e.getAttribute("data-publication-drawing")!=="true")return;t.setAttribute("data-publication-drawing","true");let n=e.getAttribute("data-publication-drawing-mode");(n==="light"||n==="dark")&&t.setAttribute("data-publication-drawing-mode",n);for(let i of["width","height"]){let l=`data-publication-${i}`,a=e.getAttribute(l)??"";/^(?:0|[1-9]\d{0,4}%?)$/.test(a)&&(t.setAttribute(l,a),t.style.setProperty(`--kplex-published-drawing-${i}`,a.endsWith("%")?a:`${a}px`))}}function Z2(e,t,n){let i=e.localName,l=e.getAttribute("id")??e.getAttribute("data-publication-fragment");if(l&&Oc(l)&&(t.id=n.idPrefix?`${n.idPrefix}-${l}`:l,t.setAttribute("data-publication-fragment",l)),i==="a"&&hv(t,dv(e.getAttribute("href")??"",n)),i==="figure"&&Q2(e,t),i==="img"||i==="audio"||i==="video"){let a=e.getAttribute("src")??"";(i==="img"?sv:i==="audio"?/\.(?:mp3|ogg|wav)$/:/\.(?:mp4|webm)$/).test(a)&&pv(t,"src",a,n),i==="img"?(t.setAttribute("alt",(e.getAttribute("alt")??"").slice(0,512)),t.setAttribute("loading","lazy"),t.setAttribute("decoding","async")):(t.setAttribute("controls","controls"),t.setAttribute("preload","none"))}if(i==="aside"||i==="blockquote"){let a=e.getAttribute("data-callout");a&&cv.test(a)&&t.setAttribute("data-callout",a)}if(i==="ol"){let a=e.getAttribute("start");a&&/^\d{1,7}$/.test(a)&&t.setAttribute("start",a)}}var I2=/@font-face\s*\{\s*font-family:\s*(["']?)([a-z0-9][a-z0-9 _-]{0,95})\1\s*;\s*src:\s*url\(\s*(["']?)data:font\/(woff2|woff|ttf|otf);base64,([A-Za-z0-9+/]+={0,2})\3\s*\)\s*;([^{}]*)\}/gi,J2=/^(?:normal|bold|[1-9]\d{0,2}|1000)(?: (?:[1-9]\d{0,2}|1000))?$/i,F2=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?(?:\s*,\s*u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?)*$/i,$2=new Set(["text","tspan","textPath"]),W2={woff2:"wOF2",woff:"wOFF",ttf:"\0\0\0",otf:"OTTO"},eM=512*1024;function tM(e,t){let n=new Map,i=[],l=0;for(let a of Array.from(e.children))if(!(a.namespaceURI!==qa||a.localName!=="defs"))for(let o of Array.from(a.children)){if(o.namespaceURI!==qa||o.localName!=="style"||o.childElementCount)continue;let r=o.textContent??"";if(l+=r.length,l>eM)return{families:new Map,rules:[]};for(let u of r.matchAll(I2)){let c=u[2].trim().toLowerCase(),f=u[4].toLowerCase(),p=u[5];if(!(f==="woff2"||f==="woff"||f==="ttf"||f==="otf")||p.length<8||p.length%4||!atob(p.slice(0,8)).startsWith(W2[f]))continue;let s=n.get(c)??`${t}-font-${n.size+1}`;n.set(c,s);let h=new Map;for(let b of u[6].split(";")){let[v,d]=b.split(":").map(m=>m.trim().toLowerCase());d&&(v==="unicode-range"&&d.length<=8192&&F2.test(d)||v==="font-weight"&&J2.test(d)||v==="font-style"&&/^(?:normal|italic|oblique)$/.test(d))&&h.set(v,d)}let S=[...h].map(([b,v])=>`${b}:${v};`).join("");i.push(`@font-face{font-family:${s};src:url(data:font/${f};base64,${p});${S}}`)}}return{families:n,rules:i}}function nM(e,t){return e.split(",").map(n=>t?.get(n.trim().replace(/^["']|["']$/g,"").toLowerCase())??n).join(",")}function iM(e,t,n,i,l){for(let a of Array.from(e.attributes)){let{localName:o,value:r}=a;if(!(r.length>65536)){if($2.has(e.localName)&&(o==="style"&&!a.namespaceURI&&/(?:^|;)\s*white-space\s*:\s*pre\s*(?:;|$)/i.test(r)||o==="space"&&a.namespaceURI===uv&&r==="preserve")){t.setAttributeNS(uv,"xml:space","preserve");continue}if(o==="href"&&(a.namespaceURI===null||a.namespaceURI===L2)){if(e.localName==="a")hv(t,dv(r,i));else if(e.localName==="image"&&sv.test(r))pv(t,"href",r,i);else if((e.localName==="use"||e.localName==="textPath"||e.localName.endsWith("Gradient"))&&r.startsWith("#")){let u=n.get(r.slice(1));u&&t.setAttribute("href",`#${u}`)}continue}if(!a.namespaceURI)if(o==="id"){let u=n.get(r);u&&t.setAttribute(o,u)}else if(k2.has(o)){let u=Y2.exec(r),c=u&&n.get(u[1]);c?t.setAttribute(o,`url(#${c})`):G2.test(r)&&t.setAttribute(o,r)}else U2.has(o)&&V2.test(r)?t.setAttribute(o,r):P2.has(o)&&B2.test(r)&&t.setAttribute(o,o==="font-family"?nM(r,l?.families):r)}}}function lM(e,t,n){if(n.idPrefix&&!cv.test(n.idPrefix))throw new Error("Invalid publication fragment scope");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=n.siteURL?t:t.implementation.createDocument(null,null),a=l.adoptNode(new i.DocumentFragment),o=0,r=0,u=0,c=new Set,f=(p,s,h,S,b)=>{if(++o>1e5||h>64)throw new Error("Publication content too complex");if(p.nodeType===3||p.nodeType===4){let d=p.nodeValue??"";if(u+=d.length,u>fv)throw new Error("Publication content too large");s.appendChild(l.createTextNode(d));return}if(p.nodeType!==1)return;let v=p;if(v.namespaceURI===qa&&H2.has(v.localName)){if(v.localName==="svg"){let g=`${n.idPrefix??"svg"}-s${++r}`;S=K2(v,g),b=n.allowDrawingFonts?tM(v,g):void 0}if(!S)return;let d=l.createElementNS(qa,v.localName);iM(v,d,S,n,b);let m=d.getAttribute("id");if(m&&c.has(m)?d.removeAttribute("id"):m&&c.add(m),s.appendChild(d),v.localName==="svg"&&b?.rules.length){let g=l.createElementNS(qa,"defs"),x=l.createElementNS(qa,"style");x.textContent=b.rules.join(`
|
|
780
|
+
`),g.appendChild(x),d.appendChild(g)}for(let g of Array.from(v.childNodes))f(g,d,h+1,S,b)}else if(!S&&v.namespaceURI===zc&&_2.has(v.localName)){if(n.drawingMode&&v.localName==="figure"&&v.getAttribute("data-publication-drawing")==="true"){let m=v.getAttribute("data-publication-drawing-mode");if((m==="light"||m==="dark")&&m!==n.drawingMode)return}let d=l.createElementNS(zc,v.localName);Z2(v,d,n),s.appendChild(d);for(let m of Array.from(v.childNodes))f(m,d,h+1,null)}};for(let p of e)f(p,a,0,null);return a}function gv(e,t,n){if(e.length>fv||/<!\s*(?:doctype|entity)|<\?[^>]*\?>/i.test(e))throw new Error("Invalid publication content");let i=t.defaultView;if(!i)throw new Error("Publication document unavailable");let l=new i.DOMParser().parseFromString(`<article xmlns="${zc}">${e}</article>`,"application/xhtml+xml");if(l.documentElement.namespaceURI!==zc||l.querySelector("parsererror"))throw new Error("Invalid publication markup");return lM(Array.from(l.documentElement.childNodes),t,{...n,allowDrawingFonts:!0})}function yv(e){if(e.protocol!=="https:"&&e.protocol!=="http:")return null;let t=e.hostname.toLowerCase();if(!["youtube.com","www.youtube.com","m.youtube.com","youtu.be","www.youtube-nocookie.com"].includes(t))return null;let n=e.pathname.split("/").filter(Boolean),i=t==="youtu.be"?n[0]:["embed","shorts","live"].includes(n[0])?n[1]:e.searchParams.get("v");return i&&/^[A-Za-z0-9_-]{11}$/.test(i)?{id:i,portrait:n[0]==="shorts"}:null}function bv(e){let t;try{t=typeof e=="string"?new URL(e):e}catch{return null}let n=yv(t);if(!n)return null;let i=new URL(`https://www.youtube.com/embed/${n.id}`);i.searchParams.set("playsinline","1");let l=t.searchParams.get("start")??t.searchParams.get("t");return l&&/^\d+s?$/.test(l)&&i.searchParams.set("start",l.replace(/s$/,"")),{url:i.href,aspectRatio:n.portrait?9/16:16/9}}var ja=X(nt(),1);async function vv(e,t,n,i){let l=await e.fetch(t,{credentials:"omit",redirect:"error",referrerPolicy:"no-referrer",signal:i}),a=l.body?.getReader();if(!l.ok||!a||Number(l.headers.get("Content-Length"))>n)throw await a?.cancel(),new Error("Publication resource unavailable");let o=[],r=0;try{for(;;){let f=await a.read();if(f.done)break;if(r+=f.value.byteLength,r>n)throw new Error("Publication resource exceeds its declared size");o.push(f.value)}}catch(f){throw await a.cancel().catch(()=>{}),f}finally{a.releaseLock()}let u=new Uint8Array(r),c=0;for(let f of o)u.set(f,c),c+=f.byteLength;return u}async function Sv(e,t,n,i){return JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(await vv(e,t,n,i)))}function Dc(e,t,n,i,l){let a=new URL("./",t),o=new Map(n.resources.map(c=>[c.path,c])),r=new Set([...o.keys()].filter(c=>c.startsWith("assets/")));async function u(c,f){let p=o.get(c),s=new URL(c,a);if(!p||s.origin!==a.origin||s.pathname!==`${a.pathname}${c}`||!e.crypto.subtle)throw new Error("Publication resource unavailable");let h=i?await i(c,p.bytes,f):await vv(e,s,p.bytes,f);if(h.byteLength!==p.bytes)throw new Error("Publication resource size mismatch");let S=await e.crypto.subtle.digest("SHA-256",h);if(f.throwIfAborted(),Array.from(new Uint8Array(S),v=>v.toString(16).padStart(2,"0")).join("")!==p.sha256)throw new Error("Publication resource checksum mismatch");return h}return{siteURL:a,assetPaths:r,bytes:u,nodeAddress:l,has:c=>o.has(c),async text(c,f){return new TextDecoder("utf-8",{fatal:!0}).decode(await u(c,f))}}}var We=X(me(),1);function xv({page:e}){let t=(0,ja.useRef)(null),[n,i]=(0,ja.useState)(),{repository:l,preview:a}=e;return(0,ja.useEffect)(()=>{let o=t.current?.ownerDocument.defaultView;if(!o||!l||!a)return;let r=new o.AbortController;return Sv(o,new o.URL(a.api),8*1024*1024,r.signal).then(u=>{r.signal.aborted||i(rv(l,a,u))}).catch(()=>{r.signal.aborted||i(null)}),()=>r.abort()},[l,a]),(0,We.jsx)("div",{ref:t,className:"kplex-publication-github-preview",children:a?n===void 0?(0,We.jsx)("p",{role:"status",children:z.githubLoading}):n===null?(0,We.jsx)("p",{role:"status",children:z.githubPreviewUnavailable}):(0,We.jsxs)(We.Fragment,{children:[(0,We.jsx)("h3",{children:n.title}),n.description&&(0,We.jsx)("p",{className:"kplex-publication-github-description",children:n.description}),n.commits&&(n.commits.length?(0,We.jsxs)(We.Fragment,{children:[n.total!==void 0&&n.total>n.commits.length&&(0,We.jsx)("p",{children:z.githubCommitCount(n.commits.length,n.total)}),(0,We.jsx)("ol",{children:n.commits.map(o=>(0,We.jsx)("li",{children:(0,We.jsxs)("a",{href:o.href,target:"_blank",rel:"noopener noreferrer",children:[(0,We.jsx)("code",{children:o.sha})," ",o.title]})},o.href))})]}):(0,We.jsx)("p",{children:z.githubNoCommits}))]}):(0,We.jsx)("p",{children:z.githubOpenOriginal})})}var Ee=X(me(),1),wv="http://www.w3.org/2000/svg",aM={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",avif:"image/avif",svg:"image/svg+xml",mp3:"audio/mpeg",ogg:"audio/ogg",wav:"audio/wav",mp4:"video/mp4",webm:"video/webm",pdf:"application/pdf"};function bm(e,t){if(t)return Array.from(e.querySelectorAll("[data-publication-fragment]")).find(n=>n.id===t||n.getAttribute("data-publication-fragment")===t)}function Mv({publication:e,resources:t,location:n,id:i,contentScope:l,colorMode:a,onClose:o,onNavigate:r,dock:u,onSwitchDock:c}){let f=(0,xt.useRef)(null),p=(0,xt.useRef)(null),s=(0,xt.useRef)(!1),h=(0,xt.useRef)(n.fragment);h.current=n.fragment;let[S,b]=(0,xt.useState)(0),[v,d]=(0,xt.useState)("loading"),[m,g]=(0,xt.useState)(0),x=e.published.get(n.id),M=x.kind==="url"?x.url:void 0,T=(0,xt.useMemo)(()=>ov(M),[M]),w=(0,xt.useMemo)(()=>M?bv(M):null,[M]),N=w&&["https:","http:"].includes(t.siteURL.protocol)&&new URL(w.url).origin!==t.siteURL.origin;(0,xt.useEffect)(()=>{let E=f.current,k=E?.ownerDocument.defaultView;if(!E||!k||M)return;let L=new k.AbortController,_=L.signal,q=new Map;g(0),E.replaceChildren();let W=async I=>{let ae=q.get(I);if(ae)return ae;let J=aM[I.slice(I.lastIndexOf(".")+1)];if(!J)throw new Error("Unsupported publication media");let C=await t.bytes(I,_);_.throwIfAborted();let P=k.URL.createObjectURL(new k.Blob([C],{type:J}));return q.set(I,P),P},ie=async()=>{if(x.kind!=="document"&&x.kind!=="drawing"){if(!x.asset){d("unavailable");return}let P=await W(x.asset);_.throwIfAborted();let O=E.ownerDocument.createElement("a");O.href=P,O.download=x.asset.slice(7),O.textContent=z.downloadAsset,E.replaceChildren(O),d("ready");return}let I=await t.text(Ic(x.id),_),ae=gv(I,E.ownerDocument,{siteURL:t.siteURL,nodeAddress:t.nodeAddress,nodeIds:new Set(e.nodes.keys()),assetPaths:t.assetPaths,idPrefix:l,deferMedia:!0,drawingMode:a}),J=Array.from(ae.querySelectorAll("[data-publication-asset]"),P=>({element:P,path:P.getAttribute("data-publication-asset"),download:!1})),C=new URL("./assets/",t.siteURL);for(let P of Array.from(ae.querySelectorAll("a[href]"))){let O=new URL(P.getAttribute("href"),t.siteURL);if(O.origin!==C.origin||!O.pathname.startsWith(C.pathname))continue;let Y=O.pathname.slice(t.siteURL.pathname.length);P.removeAttribute("href"),P.namespaceURI!==wv&&t.assetPaths.has(Y)&&J.push({element:P,path:Y,download:!0})}_.throwIfAborted(),E.replaceChildren(ae),d("ready"),bm(E,h.current)?.scrollIntoView({block:"start"});for(let{element:P,path:O,download:Y}of J)try{let ee=await W(O);_.throwIfAborted(),P.setAttribute(Y||P.namespaceURI===wv?"href":"src",ee),Y&&P.setAttribute("download",O.slice(7)),P.removeAttribute("data-publication-asset")}catch{if(_.aborted)return;g(ee=>ee+1)}};return d("loading"),ie().catch(()=>{_.aborted||d("failed")}),()=>{L.abort(),E.replaceChildren();for(let I of q.values())k.URL.revokeObjectURL(I)}},[S,x,e,t,l,a,M]),(0,xt.useEffect)(()=>{f.current&&bm(f.current,n.fragment)?.scrollIntoView({block:"start"})},[n.fragment]),(0,xt.useEffect)(()=>{s.current&&(s.current=!1,p.current?.focus({preventScroll:!0}))},[n.id]);function V(E){if(E.defaultPrevented||E.metaKey||E.ctrlKey||E.shiftKey||E.altKey)return;let k=E.target;if(!(k instanceof E.currentTarget.ownerDocument.defaultView.Element))return;let L=k.closest("a")?.getAttribute("href");if(!L)return;let _=O0(L,t.siteURL,e,n.id);if(!_)return;E.preventDefault();let q=L.startsWith("#")&&_.id===n.id&&f.current?bm(f.current,_.fragment):null;s.current=E.detail===0&&_.id!==n.id,r(q?{..._,fragment:q.getAttribute("data-publication-fragment")??void 0}:_)}return(0,Ee.jsxs)("aside",{id:i,className:`kplex-publication-note${M?" kplex-publication-web-note":""}`,"aria-labelledby":`${i}-heading`,children:[(0,Ee.jsxs)("header",{className:"kplex-publication-sidecar-heading",children:[(0,Ee.jsx)("h2",{ref:p,id:`${i}-heading`,tabIndex:-1,children:x.title}),(0,Ee.jsxs)("div",{className:"kplex-publication-sidecar-actions",children:[c&&(0,Ee.jsx)(vt,{icon:u==="bottom"?"panel-right":"panel-bottom",onClick:c,label:u==="bottom"?z.dockSidecarRight:z.dockSidecarBottom}),(0,Ee.jsx)(vt,{icon:"x",onClick:o,label:z.closeSidecar})]})]}),M?(0,Ee.jsxs)(Ee.Fragment,{children:[(0,Ee.jsxs)("div",{className:"kplex-publication-web-source",children:[(0,Ee.jsx)("a",{href:M,target:"_blank",rel:"noopener noreferrer",children:z.openWebsite}),!T&&!w&&(0,Ee.jsx)("p",{children:z.webFrameHelp})]}),T?(0,Ee.jsx)(xv,{page:T},M):w?N&&(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame kplex-publication-video-frame",title:x.title,src:w.url,style:{aspectRatio:w.aspectRatio??void 0},sandbox:"allow-scripts allow-same-origin allow-presentation",referrerPolicy:"strict-origin-when-cross-origin",allow:"encrypted-media; picture-in-picture",allowFullScreen:!0},w.url):(0,Ee.jsx)("iframe",{className:"kplex-publication-web-frame",title:x.title,src:M,sandbox:"allow-scripts",referrerPolicy:"no-referrer"},M)]}):(0,Ee.jsxs)(Ee.Fragment,{children:[v==="loading"&&(0,Ee.jsx)("p",{role:"status",children:z.loadingNote}),v==="failed"&&(0,Ee.jsxs)("div",{role:"alert",children:[(0,Ee.jsx)("p",{children:z.noteUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:z.retry})]}),v==="unavailable"&&(0,Ee.jsx)("p",{children:z.noDocument}),(0,Ee.jsx)("div",{ref:f,className:"kplex-publication-note-content","aria-busy":v==="loading",onClick:V}),m>0&&(0,Ee.jsxs)("div",{role:"status",children:[(0,Ee.jsx)("p",{children:z.mediaUnavailable}),(0,Ee.jsx)("button",{type:"button",onClick:()=>b(E=>E+1),children:z.retry})]})]})]})}var Jn=X(nt(),1);var xi=X(me(),1),Tv=736,Ev=6;function oM({dock:e,sidecarId:t,size:n,minimum:i,maximum:l,onSize:a}){let o=(0,Jn.useRef)(null),r=(0,Jn.useRef)(null),u=e!=="bottom",c=e==="left"?1:-1;function f(m){return u?m.clientX:m.clientY}function p(m){a(Math.max(i,Math.min(l,Math.round(m))))}function s(m,g){r.current?.pointer===g&&(r.current=null,m.hasPointerCapture(g)&&m.releasePointerCapture(g))}(0,Jn.useLayoutEffect)(()=>{let m=o.current;return()=>{m&&r.current&&s(m,r.current.pointer)}},[e]);function h(m){m.button!==0||r.current||(m.preventDefault(),m.currentTarget.focus({preventScroll:!0}),m.currentTarget.setPointerCapture(m.pointerId),r.current={pointer:m.pointerId,origin:f(m),size:n})}function S(m){let g=r.current;g?.pointer===m.pointerId&&p(g.size+c*(f(m)-g.origin))}function b(m){S(m),s(m.currentTarget,m.pointerId)}function v(m){s(m.currentTarget,m.pointerId)}function d(m){if(m.altKey||m.ctrlKey||m.metaKey)return;let[g,x]=u?e==="left"?["ArrowRight","ArrowLeft"]:["ArrowLeft","ArrowRight"]:["ArrowUp","ArrowDown"],M=m.shiftKey?1:10,T;if(m.key==="Home")T=i;else if(m.key==="End")T=l;else if(m.key===g)T=n+M;else if(m.key===x)T=n-M;else return;m.preventDefault(),p(T)}return(0,xi.jsx)("div",{ref:o,className:"kplex-publication-divider",role:"separator",tabIndex:0,"aria-label":z.resizeSidecar,"aria-controls":t,"aria-orientation":u?"vertical":"horizontal","aria-valuemin":i,"aria-valuemax":l,"aria-valuenow":n,onPointerDown:h,onPointerMove:S,onPointerUp:b,onPointerCancel:v,onLostPointerCapture:v,onKeyDown:d})}function Nv({canvas:e,sidecarId:t,sidecarOpen:n,dock:i,canDockLaterally:l,onDock:a,renderSidecar:o}){let r=(0,Jn.useRef)(null),[u,c]=(0,Jn.useState)({width:0,height:0}),[f,p]=(0,Jn.useState)({}),s=i!=="bottom",h=s?u.width:u.height,S=Math.max(0,h-(s?260:160)-Ev),b=Math.min(S,s?240:120),v=f[i]??Math.round(h*(s?.34:.43)),d=Math.max(b,Math.min(S,v)),m=n?{"--kplex-publication-sidecar-size":`${d}px`,"--kplex-publication-divider-size":`${Ev}px`}:void 0;(0,Jn.useLayoutEffect)(()=>{let M=r.current,T=M?.ownerDocument.defaultView;if(!M||!T)return;let w=M;function N(){let E=w.clientWidth,k=w.clientHeight;c(L=>L.width===E&&L.height===k?L:{width:E,height:k})}let V=new T.ResizeObserver(N);return V.observe(M),N(),()=>V.disconnect()},[]);function g(M){p(T=>T[i]===M?T:{...T,[i]:M})}function x(){a(i==="bottom"?"right":"bottom")}return(0,xi.jsxs)("div",{ref:r,className:`kplex-publication-workspace${n?" is-sidecar-open":""}`,"data-sidecar-dock":n?i:void 0,style:m,children:[e,n?(0,xi.jsxs)(xi.Fragment,{children:[(0,xi.jsx)(oM,{dock:i,sidecarId:t,size:d,minimum:b,maximum:S,onSize:g}),o(i,l?x:void 0)]}):(0,xi.jsx)("div",{id:t,hidden:!0})]})}function Lc(e,t,n){let i=n/2;switch(t){case"top":return{x:e.x,y:e.y-e.height/2-3-i};case"bottom":return{x:e.x,y:e.y+e.height/2+3+i};case"left":return{x:e.x-e.width/2-3-i,y:e.y};case"right":return{x:e.x+e.width/2+3+i,y:e.y}}}function Rv(e){switch(e){case"top":return{x:0,y:-1};case"bottom":return{x:0,y:1};case"left":return{x:-1,y:0};case"right":return{x:1,y:0}}}function rM(e,t,n,i,l){let a=1-l,o=a*a,r=l*l;return{x:o*a*e.x+3*o*l*t.x+3*a*r*n.x+r*l*i.x,y:o*a*e.y+3*o*l*t.y+3*a*r*n.y+r*l*i.y}}function vm(e,t,n,i,l){if(l==="straight")return{d:`M ${e.x} ${e.y} L ${t.x} ${t.y}`,midpoint:{x:(e.x+t.x)/2,y:(e.y+t.y)/2}};let a=Math.hypot(t.x-e.x,t.y-e.y),o=Math.max(20,Math.min(108,a*.2)),r=Rv(n),u=Rv(i),c={x:e.x+r.x*o,y:e.y+r.y*o},f={x:t.x+u.x*o,y:t.y+u.y*o};return{d:`M ${e.x} ${e.y} C ${c.x} ${c.y}, ${f.x} ${f.y}, ${t.x} ${t.y}`,midpoint:rM(e,c,f,t,.5)}}var Sm=["parent","child","left","right","previous","next"];function Cv(e,t,n,i){let l=t.neighbours(e,"parent").slice(0,n),a=t.neighbours(e,"child").slice(0,n),o=[...t.neighbours(e,"left"),...t.neighbours(e,"previous")].slice(0,n),r=[...t.neighbours(e,"right"),...t.neighbours(e,"next")].slice(0,n),u=new Set([t.identity(e),...[...l,...a,...o,...r].map(p=>t.identity(p.page))]),c=new Map([...l,...a,...o,...r].map(p=>[t.identity(p.page),p.page])),f=new Map;if(i)for(let p of c.values())for(let s of Sm)for(let h of t.neighbours(p,s)){let S=t.identity(h.page);if(u.has(S))continue;let b=f.get(S);(!b||b.relationType!==1)&&f.set(S,{...h,role:"sibling"})}return{center:e,parents:l,children:a,leftFriends:o,rightFriends:r,siblings:t.sort([...f.values()]).slice(0,n)}}var ol=(e,t,n)=>Math.max(t,Math.min(n,e));function Dv(e){return e.horizontalCompactingFactor??e.compactingFactor}function uM(e){let t=e.compactView?.82:1;return{horizontal:ol(1.35/Dv(e),.38,1.35)*t,vertical:ol(1.35/e.compactingFactor,.38,1.35)*t,spacing:ol(e.minLinkLength/18,.72,1.7)}}function Av(e,t){return Math.max(1,Math.min(t==="parent"?3:7,Math.round(t==="parent"?e.parentColumns:e.childColumns)))}function Uc(e){return ol(e.siblingRelativeSize/100,.3,.85)}function zv(e,t){let n=ol(Dv(e),.75,4);return n>=3?-t*.05*(n-3):48*(3-n)*ol(e.minLinkLength/18,.72,1.7)*(e.compactView?.82:1)}function _c(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2+24))}function Hc(e,t,n=0){return Math.max(t,...e.map(i=>Math.abs(i.x-n)+i.width/2))}function Nn(e,t,n=!1){let i=[...e];for(let l of e){let a=t.mini(l,n);a&&i.push({...l,width:a.width,height:a.viewportHeight,y:l.y+l.height/2+a.topGap+a.viewportHeight/2})}return i}function Ov(e,t,n,i,l,a,o){let r=e;if(!r.length)return r;let u=[];for(let s=0;s<r.length;s+=i){let h=r.slice(s,s+i);u.push({nodes:h,height:Math.max(...h.map(S=>S.height)),reserve:Math.max(0,...h.map(S=>o.reserve(S)))})}let c=t,f=u[0].height,p=u[0].reserve;return u.forEach((s,h)=>{let S;if(h===0){let m=Math.max(0,s.height-26)/2;S=n===-1?t-s.reserve-m:t+m}else n===1?S=c+f/2+p+a+s.height/2:S=c-f/2-a-s.reserve-s.height/2;let b=s.nodes.map(m=>o.width(m)),d=-(b.reduce((m,g)=>m+g,0)+l*Math.max(0,s.nodes.length-1))/2;s.nodes.forEach((m,g)=>{let x=b[g];m.x=d+x/2,m.y=S,d+=x+l}),c=S,f=s.height,p=s.reserve}),r}function xm(e,t,n,i){let l=e;return Lv(l,t,n,i),l}function Lv(e,t,n,i){if(!e.length)return;let l=e.map(c=>i.verticalReserve(c));e[0].x=t,e[0].y=0;for(let c=1;c<e.length;c+=1){let f=e[c-1],p=e[c];p.x=t,p.y=f.y+f.height/2+l[c-1]+n+p.height/2}let a=e[0].y-e[0].height/2,o=e.length-1,r=e[o].y+e[o].height/2+l[o],u=-(a+r)/2;for(let c of e)c.y+=u}function wm(e,t,n,i,l="center"){if(!e.length)return;let a=Math.min(...e.map(p=>p.y-p.height/2)),r=Math.max(...e.map(p=>p.y+p.height/2+i.verticalReserve(p)))-a,u=Math.max(1,n-t),f=(r>u?t:l==="midline"?ol(a,t,n-r):l==="bottom"?n-r:l==="top"?t:t+(u-r)/2)-a;for(let p of e)p.y+=f}function mr(e,t,n,i,l,a,o){let c=l.centerX-l.width/2,f=l.centerX+l.width/2,p=l.fixedEdgeY,s=l.fixedEdgeY;t.length&&(c=Math.min(c,...t.map(b=>b.x-b.width/2-24)),f=Math.max(f,...t.map(b=>b.x+b.width/2+24)),p=Math.min(...t.map(b=>b.y-b.height/2)),s=Math.max(...t.map(b=>b.y+b.height/2)));let h=o!==void 0&&a!==void 0?Math.max(72,a-o):Math.max(72,n),S=o!==void 0&&a!==void 0?o:i==="top"?(t.length?s+16:l.fixedEdgeY)-h:t.length?p-16:l.fixedEdgeY;return{key:e,left:c,top:S,width:f-c,height:h,resizeEdge:i}}function hr(e,t,n,i,l,a){if(!t.length)return null;let o=24,r=16,u=Math.min(...t.map(g=>g.x-g.width/2)),c=Math.max(...t.map(g=>g.x+g.width/2)),f=Math.min(...t.map(g=>g.y-g.height/2)),p=Math.max(...t.map(g=>g.y+g.height/2)),s=f-r,h=p+r,S=h-s,b=a!==void 0&&l!==void 0?Math.max(72,l-a):l===void 0?Number.POSITIVE_INFINITY:Math.max(72,l-s),v=Math.min(S,Math.max(72,n),b);if(S<=v+.5)return null;let d=s,m=0;return a!==void 0&&l!==void 0?(d=a,m=Math.max(0,d-s)):l!==void 0?(d=l-v,m=Math.max(0,d-s)):(i==="bottom"?d=h-v:i==="center"&&(d=ol(-v/2,s,h-v)),m=Math.max(0,d-s)),{key:e,left:u-o,top:d,width:c-u+o*2,height:v,contentTop:s,contentHeight:S,initialScrollTop:m}}function _v(e,t,n,i=!1){let l=Pe=>Math.max(0,...Pe.filter(ei=>ei.editor).map(ei=>ei.height+72));[...e.parents,...e.children,...e.leftFriends,...e.rightFriends,...e.siblings].some(Pe=>Pe.editor)&&(t={...t,parentMaxHeight:Math.max(t.parentMaxHeight,l(e.parents)),childMaxHeight:Math.max(t.childMaxHeight,l(e.children)),friendMaxHeight:Math.max(t.friendMaxHeight,l([...e.leftFriends,...e.rightFriends])),siblingMaxHeight:Math.max(t.siblingMaxHeight,l(e.siblings))});let a=e.center,{horizontal:o,vertical:r,spacing:u}=uM(t),c=50*o*u,f=36*r*u,p=66*r*u,s=18*r*u,h=26,S=-(a.height/2+h/2+p),b=Math.max(42,52*r*u),v=a.height/2+h/2+p+b,d=Ov(e.parents,S,-1,Av(t,"parent"),c,f,n),m=Ov(e.children,v,1,Av(t,"child"),c,f,n),g=a.width/2,x=g+205*o*u,M=xm(e.leftFriends,-x,s,n),T=t.lateralArrangement==="left",w=xm(e.rightFriends,T?-x:x,s,n),N=T?[...M,...w]:M;T&&Lv(N,-x,s,n);let V=!T&&w.length>0,E=V?Math.max(...w.map(Pe=>Pe.x+Pe.width/2)):g,k=V?285:205,L=V?190:120,_=Math.max(x+k*o*u,E+L*o*u),q=xm(e.siblings,_,s,n),W=m.length?Math.min(...m.map(Pe=>Pe.y-Pe.height/2)):a.height/2+p+b+12,ie=Math.max(30,36*r*u),I=Math.max(120,t.friendMaxHeight),ae=Math.max(120,t.siblingMaxHeight),J=i?T?Math.min(I/2,W-ie):I/2:W-ie,C=J-I,P=C,O=J,Y=C,ee=J;wm(N,P,O,n,"midline"),T||wm(w,Y,ee,n,"midline");let te=Math.max(58,72*r*u),H=t.alignSiblingsToFirstParent?d[0]:void 0,Z=i?ae/2:H?H.y+H.height/2:J-te,ue=i?-ae/2:Z-ae;wm(q,ue,Z,n,i?"midline":"center");let fe=Nn(d,n,!0),wt=Nn(q,n,!0),we=d.length?_c(fe,a.width/2+24):170,Mt=Hc(fe,a.width/2),je=Math.max(_c(Nn(M,n,!0),115,-x),_c(Nn(w,n,!0),115,T?-x:x)),Rn=Math.max(Hc(Nn(M,n,!0),0,-x),Hc(Nn(w,n,!0),0,T?-x:x)),et=_c(wt,110,_),Et=Hc(wt,0,_),pn=T?Math.max(0,zv(t,we*2)):zv(t,we*2);d.length&&(x=we+je+pn),x=Math.max(x,Mt+Rn+4);for(let Pe of M)Pe.x=-x;for(let Pe of w)Pe.x=T?-x:x;(d.length||V)&&(_=V?x+je+et+Math.max(0,pn):we+et+pn),_=Math.max(_,Mt+Et+4,V?x+Rn+Et+4:0);for(let Pe of q)Pe.x=_;let Dt=Nn(d,n),wi=Nn(m,n),Fn=Nn(N,n),rl=Nn(T?[]:w,n),he=Nn(q,n),tt={},Lt=hr("parent",Dt,t.parentMaxHeight,"bottom"),Te=hr("child",wi,t.childMaxHeight,"top"),Cn=hr("left",Fn,t.friendMaxHeight,"top",O,P),An=hr("right",rl,t.friendMaxHeight,"top",ee,Y),$n=hr("sibling",he,t.siblingMaxHeight,"top",Z,ue);Lt&&(Lt.left=-we,Lt.width=we*2,tt.parent=Lt),Te&&(tt.child=Te),Cn&&(tt.left=Cn),An&&(tt.right=An),$n&&(tt.sibling=$n);let Yt={},ul=S+h/2+16,Wn=v-h/2-16;Yt.parent=mr("parent",Dt,t.parentMaxHeight,"top",{centerX:0,width:we*2,fixedEdgeY:ul}),Yt.child=mr("child",wi,t.childMaxHeight,"bottom",{centerX:0,width:440,fixedEdgeY:Wn}),Yt.left=mr("left",Fn,t.friendMaxHeight,"top",{centerX:-x,width:je*2,fixedEdgeY:O},O,P),T||(Yt.right=mr("right",rl,t.friendMaxHeight,"top",{centerX:x,width:je*2,fixedEdgeY:ee},ee,Y)),Yt.sibling=mr("sibling",he,t.siblingMaxHeight,"top",{centerX:_,width:et*2,fixedEdgeY:Z},Z,ue);let zn=[a,...d,...m,...M,...w,...q];return t.flipEastWest&&cM(zn,Yt,tt),{nodes:zn,zoneViewports:tt,zoneAreas:Yt}}function cM(e,t,n){for(let i of e)i.x=-i.x;for(let i of Object.values(t))i&&(i.left=-i.left-i.width);for(let i of Object.values(n))i&&(i.left=-i.left-i.width)}var Hv={version:1,fields:{flipEastWest:{defaultValue:!1,validate:e=>typeof e=="boolean"}}};function Pc(e){return e?.status!=="unavailable"&&e?.values.flipEastWest===!0}function kc(e){return{top:"parent",bottom:"child",left:e?"right":"left",right:e?"left":"right"}}function Uv(e,t=!1){return e==="parent"?{source:"top",target:"bottom"}:e==="child"?{source:"bottom",target:"top"}:(e==="left"||e==="previous")!==t?{source:"left",target:"right"}:{source:"right",target:"left"}}var sM={parent:"graph.zoneParents",child:"graph.zoneChildren",left:"graph.zoneFriendsPrevious",right:"graph.zoneChallengersNext",sibling:"graph.zoneSiblings"};var fM={parent:{key:"parentMaxHeight",min:140,max:800},child:{key:"childMaxHeight",min:160,max:900},left:{key:"friendMaxHeight",min:140,max:800},right:{key:"friendMaxHeight",min:140,max:800},sibling:{key:"siblingMaxHeight",min:120,max:700}};function dM(e){if(!e||typeof e!="object"||!["compactingFactor","minLinkLength","parentColumns","childColumns","siblingRelativeSize","parentMaxHeight","childMaxHeight","friendMaxHeight","siblingMaxHeight"].every(l=>{let a=Reflect.get(e,l);return typeof a=="number"&&Number.isFinite(a)}))return!1;let n=Reflect.get(e,"horizontalCompactingFactor"),i=Reflect.get(e,"lateralArrangement");return typeof Reflect.get(e,"compactView")=="boolean"&&(n===void 0||typeof n=="number"&&Number.isFinite(n))&&(i===void 0||i==="left"||i==="split")}var Pv={sectionSource:"attention",editorHosting:"occurrence",id:"classic",version:1,labelKey:"view.classic",icon:"brain-circuit",configuration:Hv,capabilities:{sections:!0,descendants:!0,editor:!0,compact:!1},defaultState:null,restoreState:()=>null,project(e){let t=e.read.node(e.attention);if(!t||!e.read.isCurrent())return null;let n=!1,i=new Map,l=(f,p)=>{let s=JSON.stringify([f.id,p]),h=i.get(s)??e.read.relations(f.id,p);return i.set(s,h),n||=h.truncated||h.coverage==="unavailable",h.items.map(S=>({page:S.node,role:S.role,relationType:S.relationType,value:S}))},a=Cv(t,{identity:f=>f.id,neighbours:l,sort:f=>f.sort((p,s)=>e.read.compare(p.page,s.page))},e.maximum,!e.state||typeof e.state!="object"||Reflect.get(e.state,"renderSiblings")!==!1),o=Pc(e.configuration),r=[{id:"attention",nodeId:t.id,representation:"thought",...o?{ports:kc(!0)}:{}}],u=[],c=(f,p)=>f.forEach((s,h)=>{let S=JSON.stringify([p,s.page.id,h]),b=Uv(p,Pc(e.configuration));r.push({id:S,nodeId:s.page.id,role:p,areaId:p,representation:"thought",relation:s.value,groupingPartition:p,...o?{ports:kc(!0)}:{}}),p!=="sibling"&&u.push({id:S,kind:"semantic",source:"attention",target:S,sourceNode:t.id,targetNode:s.page.id,sourcePort:b.source,targetPort:b.target,relation:s.value})});c(a.parents,"parent"),c(a.children,"child"),c(a.leftFriends,"left"),c(a.rightFriends,"right"),c(a.siblings,"sibling");for(let f of r.filter(p=>p.role&&p.role!=="sibling")){if(!f.nodeId)continue;let p=e.read.node(f.nodeId);if(!p)continue;let s=Sm.flatMap(h=>l(p,h));for(let h of r.filter(S=>S.role==="sibling")){let S=s.find(v=>v.page.id===h.nodeId),b=S?Uv(S.role,o):null;S&&b&&u.push({id:JSON.stringify([f.id,h.id]),kind:"semantic",source:f.id,target:h.id,sourceNode:f.nodeId,targetNode:S.page.id,sourcePort:b.source,targetPort:b.target,relation:S.value})}}return{attention:t.id,layoutRoot:t.id,entry:"attention",editor:"attention",frame:"attention",occurrences:r,edges:u,truncated:n||[a.parents,a.children,a.leftFriends,a.rightFriends,a.siblings].some(f=>f.length===e.maximum),coverage:e.read.coverage}},layout(e,t,n,i,l){if(!dM(n))throw new Error("Missing Classic geometry preferences");let a={...n,flipEastWest:n.flipEastWest??Pc(l?.configuration)},o=new Map(t.map(s=>[s.id,s])),r=e.occurrences.map(s=>{let h=o.get(s.id);if(!h)throw new Error("Missing occurrence measurement");return{...h,x:0,y:0,role:s.role??"center",areaId:s.areaId}}),u=r.find(s=>s.id===e.entry);if(!u)throw new Error("Missing Classic attention occurrence");let c=s=>r.filter(h=>h.areaId===s),f=_v({center:u,parents:c("parent"),children:c("child"),leftFriends:c("left"),rightFriends:c("right"),siblings:c("sibling")},a,{reserve:s=>s.expandedReserve,verticalReserve:s=>s.expandedReserve*(s.role==="sibling"?Uc(a):1),width:s=>s.expandedWidth,mini:(s,h)=>s[h?"envelope":"mini"]},i),p=Object.values(f.zoneAreas).map(s=>{let h=fM[s.key];return{id:s.key,labelKey:sM[s.key],bounds:{x:s.left,y:s.top,width:s.width,height:s.height},resizeEdge:s.resizeEdge,heightPreference:{key:h.key,minimum:h.min,maximum:h.max},...s.key==="sibling"?{}:{dropRole:s.key},...f.zoneViewports[s.key]?{viewport:{...f.zoneViewports[s.key],x:f.zoneViewports[s.key].left,y:f.zoneViewports[s.key].top}}:{}}});return{positions:new Map(f.nodes.map(s=>[s.id,{x:s.x,y:s.y,width:s.width,height:s.height}])),areas:p}}};var mM={parent:"child",child:"parent",left:"right",right:"left",previous:"next",next:"previous",sibling:"sibling"};function Vv(e,t,n){let i=n==="previous"?"left":n==="next"?"right":n;return t&&(i==="left"||i==="right")?t:Object.entries(e??{}).find(([,l])=>l===i)?.[0]}function kv(e,t){return JSON.stringify(e<t?[e,t]:[t,e])}function Bv(e,t,n,i,l,a){let o=new Set(e.keys()),r=new Set;for(let[f,p]of t)r.add(kv(f,p));let u=0,c=0;for(let[f,p]of e){if(++u>16384)return!0;for(let s of n(p[0],o)){if(++u>16384||c>=4096)return!0;let h=i(s),S=e.get(h);if(!S||h===f)continue;let b=kv(f,h);if(r.has(b))continue;let v,d=1/0;for(let m of p)for(let g of S){if(++u>16384)return!0;let x=l(m,s.role),M=l(g,mM[s.role]);if(!x||!M)continue;let T=(m.x-g.x)**2+(m.y-g.y)**2;T<d&&(v={source:m,target:g,sourcePort:x,targetPort:M},d=T)}v&&(r.add(b),c++,a(v,s))}}return!1}function Xa(e){let t=e.length===1?"root":JSON.stringify(e);return Ul(t)?t:null}function Gv(e,t){let n=new Map;for(let i of(e.editors??[]).slice(0,1)){if(i.occurrenceId==="root"&&i.nodeId===t){n.set("root",[t]);continue}try{let l=JSON.parse(i.occurrenceId);if(!Array.isArray(l)||l.length<2||l.length>ht.depth+1||!l.every(Ul)||l[0]!==t||l[l.length-1]!==i.nodeId||Xa(l.map(En))!==i.occurrenceId)continue;n.set(i.occurrenceId,l.map(En))}catch{}}return n}function Yv(e){let t=vc(e.configuration),n=il(e.state),i=e.layoutRoot;if(!t||n.version!==1||!i||!Number.isInteger(e.maximum)||e.maximum<1||e.read.node(i)?.id!==i||!e.read.isCurrent())return null;let l=lr(c0(n,i,Math.min(t.initialGenerations,t.maximumDepth)));if(!l)return null;let a=l,o=Math.min(t.maximumOccurrences,ht.occurrences,Math.max(1,e.maximum*8+1)),r=new Set(a.expanded),u=new Set(a.collapsed),c=Gv(e,i),f=new Set,p=new Map,s=new Set;for(let w of c.values())for(let N=1;N<=w.length;N++){let V=Xa(w.slice(0,N));if(V&&(f.add(V),N<w.length)){let E=p.get(V)??new Set;E.add(w[N]),p.set(V,E),N>1&&s.add(w[N-1])}}let h=new Set([...(e.retainedScopes??[]).slice(0,16),...s].filter(w=>w!==i)),S=new Set,b=new Set,v=[],d=[],m=[{id:"root",lineage:[i],depth:0,side:1}],g=!1,x=(w,N,V)=>{let k=(V?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).map(_=>e.read.relations(w,_,N)),L=new Map;for(let _ of k)for(let q of _.items)L.has(q.node.id)||L.set(q.node.id,q);return{items:[...L.values()],truncated:k.some(_=>_.truncated),coverage:k.some(_=>_.coverage==="unavailable")?"unavailable":k.every(_=>_.coverage==="local")?"local":"cached"}},M=w=>{if(w===i||S.has(w))return!0;if(S.size>=ht.scopes)return!1;let N=[...h].filter(V=>!S.has(V)&&V!==w).length;return!h.has(w)&&S.size+N>=ht.scopes?!1:(S.add(w),!0)};for(;m.length&&v.length<o;){let w=m.shift(),N=w.lineage[w.lineage.length-1];if(b.has(w.id))continue;b.add(w.id);let V=e.read.node(N);if(!V||V.id!==N||!e.read.isCurrent())return null;let E=w.lineage.slice(0,-1).includes(N),k=p.has(w.id)?Math.max(t.maximumDepth,w.depth+1):t.maximumDepth,L=e.read.scope?.(N)??{coverage:"unavailable",prepared:!1,complete:!1,pending:!1},_=E?{items:[],truncated:!1,coverage:"cached"}:x(N,1,w.depth===0),q=!E&&w.depth<k&&!u.has(w.id)&&(r.has(w.id)||w.depth<a.initialGenerations),W=!E&&w.depth<k&&!(L.complete&&_.coverage!=="unavailable"&&_.items.length===0&&!_.truncated),ie=q&&W&&M(N),I=ie?x(N,Math.min(e.maximum,128),w.depth===0):_,ae=E||!q?"ready":L.pending?"loading":I.coverage==="unavailable"?"unavailable":L.complete?"ready":L.prepared||I.items.length>0?"partial":"unavailable";(q&&W&&!ie||ie&&I.truncated||!E&&w.depth>=k&&(I.items.length>0||!L.complete))&&(ae="limited",g=!0);let J=[];if(ie){let Y=new Map(I.items.map(H=>[H.node.id,H]));for(let H of p.get(w.id)??[])if(!Y.has(H)){let ue=(w.depth===0?["parent","child","left","right","previous","next"]:["child","left","right","previous","next"]).flatMap(fe=>e.read.relation?.(N,H,fe)?.items??[]).find(fe=>fe.node.id===H);ue&&e.read.isCurrent()&&Y.set(H,ue)}if(w.depth===0&&L.complete&&!I.truncated&&I.coverage!=="unavailable"){let H=new Set([...Y.keys()].map(Z=>Xa([i,Z])));a={...a,sides:Object.fromEntries(Object.entries(a.sides).filter(([Z])=>H.has(Z)))}}let ee=[...Y.values()].map(H=>{let Z=[...w.lineage,H.node.id],ue=Xa(Z);return ue?{id:ue,lineage:Z,relation:H}:(g=!0,ae="limited",null)}).filter(H=>H!==null);ee.sort((H,Z)=>Number(f.has(Z.id))-Number(f.has(H.id))||e.read.compare(H.relation.node,Z.relation.node));let te=o-v.length-1-m.length;for(let H of ee){let Z=[...f].filter(ue=>ue!==w.id&&!b.has(ue)&&!m.some(fe=>fe.id===ue)&&!J.some(fe=>fe.id===ue)&&ue!==H.id).length;if(te<=0||!f.has(H.id)&&te<=Z){g=!0,ae="limited";continue}if(w.depth===0&&H.relation.role==="child"&&a.sides[H.id]===void 0){let ue=[...Y.keys()].flatMap(we=>{let Mt=Xa([i,we]),je=Mt?a.sides[Mt]:void 0;return je===-1||je===1?[je]:[]}),fe=ue.filter(we=>we===-1).length<ue.filter(we=>we===1).length?-1:1,wt=lr({...a,sides:{...a.sides,[H.id]:fe}});if(!wt){g=!0,ae="limited";continue}a=wt}J.push(H),te--}J.sort((H,Z)=>e.read.compare(H.relation.node,Z.relation.node))}let C={parent:w.parent,depth:w.depth,side:w.side,expanded:ie,canExpand:W,reference:E,status:ae},P=w.depth===0||w.side===-1?"left":"right";v.push({id:w.id,nodeId:N,areaId:w.areaId,representation:"thought",role:w.relation?.role,relation:w.relation,branch:C,ports:w.depth===0?{top:"parent",bottom:"child",left:"left"}:w.side===1?{left:"parent",bottom:"child",right:"left"}:{left:"left",bottom:"child",right:"parent"},peerPort:{side:P,count:new Set(I.items.filter(Y=>["left","right","previous","next"].includes(Y.role)).map(Y=>Y.node.id)).size,complete:L.complete&&I.coverage!=="unavailable"&&!I.truncated&&!E},...!ie&&!E&&w.parent?{groupingPartition:JSON.stringify([w.parent,w.side])}:{}}),w.parent&&w.relation&&d.push({id:w.id,kind:"semantic",source:w.parent,target:w.id,sourceNode:w.lineage[w.lineage.length-2],targetNode:N,relation:w.relation,sourcePort:w.relation.role==="child"?"bottom":w.relation.role==="parent"?"top":w.side===1?"right":"left",targetPort:w.parent==="root"&&w.relation.role==="parent"?"bottom":w.side===1?"left":"right"});let O=0;for(let Y of J){let ee=Y.relation.role==="parent"&&t.parentColumns>1&&O++%t.parentColumns===0?-1:1,te=w.depth?w.side:Y.relation.role==="parent"?ee:Y.relation.role!=="child"||t.arrangement==="left"?-1:t.arrangement==="right"?1:a.sides[Y.id],H=w.depth?w.areaId:Y.relation.role==="parent"?"parent":Y.relation.role==="child"?te===-1?"child-left":"child-right":"left";m.push({...Y,parent:w.id,depth:w.depth+1,side:te,areaId:H})}}if(!e.read.isCurrent())return null;g||=m.length>0;let T=JSON.stringify(a)===JSON.stringify(n)?void 0:a;return{attention:e.attention,layoutRoot:i,root:"root",entry:"root",frame:"root",occurrences:v,edges:d,truncated:g,coverage:e.read.coverage,preparation:{parents:[...S]},stateSuggestion:T}}function hM(e){if(e.length>2048)throw new Error("Invalid measured area size");let t=new Set,n=[];for(let i of e){if(typeof i.id!="string"||!i.id||t.has(i.id)||!Number.isFinite(i.width)||i.width<=0||!Number.isFinite(i.height)||i.height<=0)throw new Error("Invalid measured area item");let l=i.insets?.top??0,a=i.insets?.right??0,o=i.insets?.bottom??0,r=i.insets?.left??0;for(let u of[l,a,o,r])if(!Number.isFinite(u)||u<0||u>1e5)throw new Error("Invalid measured area inset");t.add(i.id),n.push({item:i,top:l,right:a,bottom:o,left:r,width:i.width+r+a,height:i.height+l+o})}return n}function pM(e,t){let n=Array(t).fill(0);for(let i=0;i<e.length;i++)n[i%t]=Math.max(n[i%t],e[i].width);return n}function qv(e,t,n,i,l=24,a=42,o=16){if(!Number.isInteger(t)||t<1||t>32||e.length>2048||![n,i,l,a,o].every(v=>Number.isFinite(v)&&v>=0))throw new Error("Invalid area grid policy");if(!e.length)return{positions:new Map,width:0,height:0};let r=hM(e),u=Math.min(t,e.length),c=pM(r,u),f=Array(Math.ceil(e.length/u)).fill(0);for(let v=0;v<r.length;v++)f[Math.floor(v/u)]=Math.max(f[Math.floor(v/u)],r[v].height);let p=[],s=[],h=l,S=a;for(let v of c)p.push(h+v/2),h+=v+n;for(let v of f)s.push(S+v/2),S+=v+i;let b=new Map;for(let v=0;v<r.length;v++){let d=r[v];b.set(d.item.id,{x:p[v%u]+(d.left-d.right)/2,y:s[Math.floor(v/u)]+(d.top-d.bottom)/2,width:d.item.width,height:d.item.height})}return{positions:b,width:h-n+l,height:S-i+o}}function jv(e,t,n,i={}){let l=n.horizontalSpacing/n.horizontalDensity,a=n.verticalSpacing/n.verticalDensity,o=e.entry,r=e.occurrences.filter(C=>!C.section),u=e.occurrences.filter(C=>C.section),c=new Map(t.map(C=>[C.id,C])),f=(C,P)=>C?c.get(C)?.controlReserve?.[P]??0:0;if(r.length>ht.occurrences||new Set(r.map(C=>C.id)).size!==r.length)throw new Error("Invalid hierarchy identity");let p=new Map;for(let C of r){let P=c.get(C.id);if(!P||![P.width,P.height].every(ee=>Number.isFinite(ee)&&ee>0)||!C.branch)throw new Error("Invalid measured hierarchy");if(P.controlReserve&&![P.controlReserve.right,P.controlReserve.bottom].every(ee=>Number.isFinite(ee)&&ee>=0&&ee<=64))throw new Error("Invalid measured control reserve");if(C.id===o){if(C.branch.parent)throw new Error("Root cannot have a parent");continue}let O=C.branch.parent;if(!O||!c.has(O))throw new Error("Missing hierarchy parent");let Y=p.get(O)??[];Y.push(C),p.set(O,Y)}let s=new Map,h=new Set,S=(C,P)=>{let O=s.get(C);if(O!==void 0)return O;if(P>ht.depth||h.has(C))throw new Error("Invalid hierarchy ancestry");h.add(C);let Y=p.get(C)??[],ee=Y.reduce((H,Z)=>H+S(Z.id,P+1),0)+Math.max(0,Y.length-1)*a,te=Math.max(c.get(C).height+f(C,"bottom"),ee);return h.delete(C),s.set(C,te),te};for(let C of r)S(C.id,0);let b=c.get(o);if(!b)throw new Error("Missing hierarchy root");let v=new Map([[o,{x:0,y:0,width:b.width,height:b.height}]]),d=(C,P,O,Y)=>{let ee=C.reduce((H,Z)=>H+s.get(Z.id),0)+Math.max(0,C.length-1)*a,te=P.y+f(Y,"bottom")/2-ee/2;for(let H of C){let Z=c.get(H.id),ue=s.get(H.id),fe={width:Z.width,height:Z.height,x:P.x+O*(P.width/2+l+Z.width/2+f(O===1?Y:H.id,"right")),y:te+ue/2-f(H.id,"bottom")/2};if(v.has(H.id))throw new Error("Repeated hierarchy parent");v.set(H.id,fe),d(p.get(H.id)??[],fe,O,H.id),te+=ue+a}},m=p.get(o)??[],g=m.filter(C=>C.role==="parent"),x=m.filter(C=>C.role!=="parent"),M=C=>c.get(C).width+f(C,"right")+(p.get(C)?.length??0?l+Math.max(...p.get(C).map(P=>M(P.id))):0),T=g.filter(C=>C.branch.side===-1),w=g.filter(C=>C.branch.side===1),N=n.parentColumns,V=[];for(;T.length||w.length;)for(let C=0;C<N;C++)V.push(N>1&&C===0?T.shift():w.shift()??(N===1?T.shift():void 0));let E=qv(V.map((C,P)=>C?{id:C.id,width:M(C.id),height:s.get(C.id)}:{id:`empty-parent-cell-${P}`,width:1,height:1}),n.parentColumns,l,a),k=u.map(C=>{let P=c.get(C.id);if(!P)throw new Error("Missing measured section");return P}),L=Math.max(b.width+f(o,"right")*2,E.width,...k.map(C=>C.width)),_=Math.max(140,Math.min(800,i.parentHeight??300)),q=Math.max(_,E.height),W={x:-L/2,y:-b.height/2-a-q,width:L,height:q};if(!Number.isFinite(q))throw new Error("Invalid parent area height");for(let C of g){let P=E.positions.get(C.id),O=c.get(C.id),Y=N===1?1:C.branch.side,ee={x:W.x+(L-E.width)/2+P.x+Y*(-P.width/2+O.width/2)-(Y===-1?f(C.id,"right"):0),y:W.y+q-E.height+P.y-f(C.id,"bottom")/2,width:O.width,height:O.height};v.set(C.id,ee),d(p.get(C.id)??[],ee,Y,C.id)}let ie={...v.get(o),width:L};for(let C of[-1,1]){let P=x.filter(O=>O.branch?.side===C);d([...P.filter(O=>O.role!=="child"),...P.filter(O=>O.role==="child")],ie,C)}if(v.size!==r.length)throw new Error("Disconnected hierarchy");let I=b.height/2+f(o,"bottom")+Math.min(24,a);for(let C of k)v.set(C.id,{x:0,y:I+C.height/2,width:C.width,height:C.height}),I+=C.height+Math.min(24,a);let ae=[{id:"parent",labelKey:"graph.zoneParents",bounds:{...W,height:q},resizeEdge:"top",heightPreference:{key:"parentHeight",minimum:140,maximum:800,value:_},dropRole:"parent",viewport:{...W,height:q,contentTop:W.y,contentHeight:q,initialScrollTop:0,scrollable:!1},reflow:{columns:n.parentColumns,columnGap:l,rowGap:a,filterLayout:"keep"}}],J=Math.min(8,a/4,l/4);for(let[C,P]of[["child-left","child"],["child-right","child"],["left","left"]]){let O=r.filter(te=>te.areaId===C).map(te=>{let H=v.get(te.id),Z=f(te.id,"right"),ue=f(te.id,"bottom");return{...H,x:H.x+Z/2,y:H.y+ue/2,width:H.width+Z,height:H.height+ue}});if(!O.length)continue;let Y=Math.min(...O.map(te=>te.x-te.width/2))-J,ee=Math.min(...O.map(te=>te.y-te.height/2))-J;ae.push({id:C,labelKey:P==="child"?"graph.zoneChildren":"graph.zoneFriendsChallengers",dropRole:P,bounds:{x:Y,y:ee,width:Math.max(...O.map(te=>te.x+te.width/2))+J-Y,height:Math.max(...O.map(te=>te.y+te.height/2))+J-ee}})}return{positions:v,areas:ae}}function gM(e){if(!e.documentId||typeof e.path!="string"||!e.path||!e.revision||e.revision.length>256||e.rows.length>256||e.provenance.length>4096||e.visible.length>e.rows.length)return!1;let t=new Map(e.rows.map(n=>[n.id,n]));if(t.size!==e.rows.length||new Set(e.visible).size!==e.visible.length||e.visible.some(n=>!t.has(n)))return!1;for(let n of e.rows)if(!n.id||n.id.length>4096||typeof n.label!="string"||n.label.length>4096||!Number.isInteger(n.level)||n.level<1||n.level>6||!Number.isInteger(n.line)||n.line<1||!Number.isInteger(n.start)||!Number.isInteger(n.end)||n.start<0||n.end<n.start||n.parent!==null&&(!t.has(n.parent)||t.get(n.parent).level>=n.level)||new Set(n.children).size!==n.children.length||n.children.some(i=>t.get(i)?.parent!==n.id)||n.parent&&!t.get(n.parent).children.includes(n.id))return!1;return e.provenance.every(n=>(n.sectionId===null||t.has(n.sectionId))&&!!n.target&&["parent","child","left","right","previous","next","sibling"].includes(n.role))}function yM(e,t,n){let i=e.provenance.filter(c=>c.target===t&&c.role===n);if(!i.length||i.some(c=>c.sectionId===null))return null;let l=new Map(e.rows.map(c=>[c.id,c])),a=new Set(e.visible),o=c=>{let f=[];for(let p=0;c&&p<256;p++)a.has(c)&&f.push(c),c=l.get(c)?.parent??"";return f},r=i.map(c=>o(c.sectionId)),u=r[0].find(c=>r.every(f=>f.includes(c)));return u?{documentId:e.documentId,revision:e.revision,sectionId:u}:null}function Xv(e,t,n){let i=e.occurrences.find(r=>r.id===(e.root??e.entry));if(!i?.nodeId||i.nodeId!==t.documentId||!gM(t)||!Number.isInteger(n)||n<e.occurrences.length||n>2048)throw new Error("Invalid central section projection");let l=new Set(t.visible),a=t.rows.filter(r=>l.has(r.id)),o=a.slice(0,n-e.occurrences.length).map(r=>({id:JSON.stringify(["section",r.id]),nodeId:t.documentId,representation:"thought",ports:{},section:{documentId:t.documentId,revision:t.revision,sectionId:r.id}}));return{...e,occurrences:[...e.occurrences,...o],truncated:e.truncated||o.length<a.length,edges:e.edges.map(r=>{if(r.kind!=="semantic"||r.source!==i.id)return r;let u=yM(t,r.targetNode,r.relation.role);return u?{...r,sourceSection:u}:r})}}var Kv={id:"mindmap",version:1,labelKey:"view.mindmap",icon:"network",navigation:"rooted",navigationEntry:"attention",editorHosting:"occurrence",capabilities:{sections:!0,descendants:!1,editor:!0,compact:!1},sectionSource:"layout-root",defaultState:em,hierarchy:{maximumScopes:ht.scopes,maximumDepth:ht.depth,primary:"center",controls:"measured",relations:"child-and-peer",reduce:xc},configuration:bc,restoreState:il,project(e){let t=Yv(e);return t&&e.sections?.status==="available"?Xv(t,e.sections.snapshot,Math.min(2048,e.maximum*8+1)):t},layout(e,t,n,i,l){let a=vc(l?.configuration);if(!a)throw new Error("Mind Map configuration unavailable");return jv(e,t,a,l?.areaHeights)}};var bM={compactingFactor:2,horizontalCompactingFactor:2,compactView:!1,minLinkLength:18,parentColumns:2,childColumns:5,siblingRelativeSize:85,parentMaxHeight:300,childMaxHeight:400,friendMaxHeight:350,siblingMaxHeight:250},Mm={baseFontSize:12.4,wrapNodeLabels:!1,propertyFontSize:10};function Qv(e){return e==="left"||e==="right"||e==="sibling"}function Iv(e,t,n=!0,i="compass",l,a=!1,o){let{read:r}=e,u=e.manifest?.appearance,c=u?.flip??!1,f={...bM,...u?.geometry,flipEastWest:c};o!==void 0&&(f.childColumns=Math.min(f.childColumns,o)),e.manifest&&(f.siblingMaxHeight+=72);let p={baseFontSize:u?.typography?.baseFontSize??Mm.baseFontSize,wrapNodeLabels:u?.typography?.wrapNodeLabels??Mm.wrapNodeLabels,propertyFontSize:u?.typography?.propertyFontSize??Mm.propertyFontSize},s=kc(c),h=i==="mindmap",S=h?Kv:Pv,b=S.project({attention:t,read:r,maximum:u?.maximum??100,...h?{layoutRoot:t,state:l}:{state:{renderSiblings:n},configuration:{status:"available",values:{flipEastWest:c}}}});if(!b)throw new Error("Publication attention is unavailable");let v=b.occurrences.map(E=>{let k=E.nodeId&&r.node(E.nodeId);if(!k)throw new Error("Publication occurrence is unavailable");let L=E.id===b.entry,_=E.role==="sibling",q=_?Uc(f):1,W=e.published.get(k.id),ie=W?.roleStyles,I=E.relation?.relationType===2?ie?.inferred:void 0,ae=L?ie?.center:_?ie?.sibling:void 0,J={...W?.style,...I,...ae},C=ae?.fontSize??I?.fontSize??W?.style?.fontSize??(L?30:_?15:20),P=ae?.gateRadius??I?.gateRadius??W?.style?.gateRadius??5,O=or(C*q,L,p.baseFontSize)*(_&&e.manifest?.7:1),Y=h0(k.name,C,p,L,k.maxLabelLength);J.icon!=null&&(Y.width+=L?22:17);let ee=p0(Y,q,C*q,p);return{occurrence:E,node:k,center:L,fontSize:O,style:J,gateSize:f0({gateRadius:P*q}),measurement:{id:E.id,...ee,expandedWidth:ee.width,expandedReserve:0,mini:null,envelope:null,controlReserve:E.branch?.canExpand?{right:0,bottom:23}:void 0}}}),d=S.layout(b,v.map(E=>E.measurement),{...f,alignSiblingsToFirstParent:!!e.manifest},!1),m=[],g=!1;if(a){let E=new Map;for(let{node:L,occurrence:_,center:q}of v){if(!h&&q)continue;let W=E.get(L.id)??[];W.push({...d.positions.get(_.id),node:L.id,occurrence:_}),E.set(L.id,W)}let k=b.edges.flatMap(L=>L.kind==="semantic"?[[L.sourceNode,L.targetNode]]:[]);g=Bv(E,k,function*(L){for(let _ of Qc)yield*r.relations(L.node,_).items},L=>L.node.id,(L,_)=>Vv(h?L.occurrence.ports:s,L.occurrence.peerPort?.side,_),({source:L,target:_,sourcePort:q,targetPort:W},ie)=>{m.push({id:JSON.stringify(["cross",L.occurrence.id,_.occurrence.id]),kind:"semantic",source:L.occurrence.id,target:_.occurrence.id,sourceNode:L.node,targetNode:_.node,sourcePort:q,targetPort:W,relation:ie})})}let x=[...b.edges,...m],M=new Map;if(h){let E=(k,L)=>{let _=M.get(k)??new Map;_.set(L,(_.get(L)??0)+1),M.set(k,_)};for(let k of x)E(k.source,k.sourcePort),E(k.target,k.targetPort)}let T=new Map;if(!h)for(let{id:E,viewport:k}of d.areas)k&&Qv(E)&&T.set(E,k);let w=v.map(({occurrence:E,node:k,center:L,fontSize:_,gateSize:q,style:W})=>{let ie=E.areaId==="right"&&f.lateralArrangement==="left"?"left":E.areaId;return{id:E.id,node:k,center:L,fontSize:_,gateSize:q,style:W,role:E.role??"center",bounds:d.positions.get(E.id),branch:E.branch,strip:Qv(ie)&&T.has(ie)?ie:void 0,gates:h?[...M.get(E.id)??[]].map(([I,ae])=>({side:I,count:ae})):Object.keys(s).map(I=>{let ae=s[I],J=ae==="left"?"previous":ae==="right"?"next":null,C=r.relations(k.id,ae).items,P=J?new Set([...C,...r.relations(k.id,J).items].map(O=>O.node.id)).size:C.length;return{side:I,count:P}})}}),N=new Map(w.map(E=>[E.id,E])),V=x.map((E,k)=>{let L=N.get(E.source),_=N.get(E.target),q=vm(Lc(L.bounds,E.sourcePort,L.gateSize),Lc(_.bounds,E.targetPort,_.gateSize),E.sourcePort,E.targetPort,"bezier"),W=E.kind==="semantic"?E.relation.direction:null,ie=E.kind==="semantic"?e.linkStyle(E.sourceNode,E.targetNode,E.relation.role):void 0,I=E.kind==="semantic"?E.relation.definition??null:null;return{id:E.id,source:E.source,target:E.target,route:q,label:I,labelSize:ie?.labelSize,labelColor:ie?.labelColor,crossLink:k>=b.edges.length,sourcePort:E.sourcePort,targetPort:E.targetPort,stroke:ie?.stroke,strokeWidth:ie?.width,startHead:ie?.startHead??(ie?.arrowStart??(W===2||W===3)?"arrow":void 0),endHead:ie?.endHead??(ie?.arrowEnd??(W===1||W===3)?"arrow":void 0)}});return{cards:w,cardById:N,edges:V,strips:T,wrap:p.wrapNodeLabels,truncated:b.truncated||g,projection:b}}function Vc(e,t,n){if(!t.strip)return t.bounds;let i=e.strips.get(t.strip);return{...t.bounds,y:t.bounds.y+i.y-i.contentTop-(n[t.strip]??i.initialScrollTop)}}function Zv(e,t,n,i){let l=Lc(Vc(e,t,i),n,t.gateSize);if(!t.strip)return l;let{y:a,height:o}=e.strips.get(t.strip);return l.y>=a&&l.y<=a+o?l:null}function Jv(e,t,n){let i=e.cardById.get(t.source),l=e.cardById.get(t.target);if(!i.strip&&!l.strip)return t.route;let a=Zv(e,i,t.sourcePort,n),o=Zv(e,l,t.targetPort,n);return a&&o?vm(a,o,t.sourcePort,t.targetPort,"bezier"):null}function Bc(e,t){if(!/^(?:\d+(?:\.\d*)?|\.\d+)%?$/.test(e))return null;let n=Number(e.replace(/%$/,"")),i=e.endsWith("%")?100:t;return n>=0&&n<=i?n/i*t:null}function Gc(e){if(typeof e!="string"||e.length>180)return null;let t=e.trim();if(t.toLowerCase()==="transparent")return{red:0,green:0,blue:0,alpha:0};if(/^#(?:[\da-f]{3}|[\da-f]{4}|[\da-f]{6}|[\da-f]{8})$/i.test(t)){let f=t.slice(1);return f.length<=4&&(f=[...f].map(p=>p+p).join("")),{red:parseInt(f.slice(0,2),16),green:parseInt(f.slice(2,4),16),blue:parseInt(f.slice(4,6),16),alpha:f.length===8?parseInt(f.slice(6),16)/255:1}}let n=/^rgba?\(\s*([^()]*)\s*\)$/i.exec(t);if(!n)return null;let i=n[1].trim(),l=i.includes(","),a=l?i.split(",").map(f=>f.trim()):i.split(/\s*\/\s*|\s+/);if(a.length<3||a.length>4||l&&i.includes("/")||!l&&a.length===4&&!i.includes("/"))return null;let o=Bc(a[0],255),r=Bc(a[1],255),u=Bc(a[2],255),c=a.length===4?Bc(a[3],1):1;return o===null||r===null||u===null||c===null?null:{red:o,green:r,blue:u,alpha:c}}function Tm(e,t){let n=e.alpha+t.alpha*(1-e.alpha);if(n===0)return{red:0,green:0,blue:0,alpha:0};let i=(l,a)=>(l*e.alpha+a*t.alpha*(1-e.alpha))/n;return{red:i(e.red,t.red),green:i(e.green,t.green),blue:i(e.blue,t.blue),alpha:n}}function Em(e){let t=Math.max(0,Math.min(1,e/255));return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Fv(e,t){if(t.alpha<1||![e.red,e.green,e.blue,e.alpha,t.red,t.green,t.blue,t.alpha].every(Number.isFinite))return null;let n=Tm(e,t),i=o=>.2126*Em(o.red)+.7152*Em(o.green)+.0722*Em(o.blue),l=i(n),a=i(t);return(Math.max(l,a)+.05)/(Math.min(l,a)+.05)}var vM=new Map([...["background-primary","background-secondary","background-modifier-border","background-modifier-hover","text-normal","text-muted","text-faint","interactive-accent","interactive-normal","interactive-hover","text-on-accent","kplex-publication-panel","kplex-publication-link","kplex-publication-canvas","link-color","link-color-hover","link-external-color","code-background","code-normal","blockquote-border-color","blockquote-color","table-border-color","table-header-background","text-highlight-bg","color-red","color-green","color-orange","color-blue","color-cyan","color-purple"].map(e=>[e,"color"]),...["font-interface","font-text","font-monospace","inline-title-font"].map(e=>[e,"font"]),...["font-ui-medium","font-text-size","p-spacing","heading-spacing","inline-title-size","input-radius","button-radius","callout-radius"].map(e=>[e,"length"]),["line-height-normal","line-height"],["inline-title-weight","weight"],["inline-title-color","color"],...[1,2,3,4,5,6].flatMap(e=>[["h"+e+"-color","color"],["h"+e+"-size","length"],["h"+e+"-weight","weight"],["h"+e+"-font","font"],["h"+e+"-line-height","line-height"],["h"+e+"-style","font-style"]])]),SM=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong","-apple-system"]),xM=new Set(["inherit","initial","revert","revert-layer","unset","default"]);function wM(e){let t=e.split(",");if(!t.length||t.length>10)return;let n=[];for(let i of t){let l=i.trim(),a=/^(['"])(.*?)\1$/u.exec(l),o=a?.[2]??l;if(!/^[\p{L}\p{N}][\p{L}\p{M}\p{N} _.-]{0,79}$/u.test(o)&&o!=="-apple-system"||xM.has(o.toLowerCase()))return;n.push(!a&&SM.has(o.toLowerCase())?o.toLowerCase():JSON.stringify(o))}return n.join(", ")}function $v(e){if(e==="0")return e;let t=/^(\d{1,3}(?:\.\d{1,4})?|\.\d{1,4})(px|rem|em)$/.exec(e);if(!t)return;let n=Number(t[1]),i=t[2];return n<=(i==="px"?160:8)?String(n)+i:void 0}function Wv(e,t){let n=t.trim();if(!(!n||n.length>320))switch(vM.get(e)){case"color":return/^#[\da-f]{6}(?:[\da-f]{2})?$/i.test(n)?n.toLowerCase():void 0;case"font":return wM(n);case"length":return $v(n);case"line-height":return/^(?:[1-3](?:\.\d{1,4})?|0\.[5-9]\d{0,3}|4(?:\.0{1,4})?)$/.test(n)?String(Number(n)):$v(n);case"weight":return n==="normal"||n==="bold"||/^(?:[1-9]\d{0,2}|1000)$/.test(n)?n:void 0;case"font-style":return/^(?:normal|italic|oblique)$/.test(n)?n:void 0;default:return}}var Nm=/\s*(?:\.kplex-publication\s*\{([^{}]*)\}|@media\s*\(\s*prefers-color-scheme:\s*(light|dark)\s*\)\s*\{\s*\.kplex-publication\s*\{([^{}]*)\}\s*\})\s*/yu;function e1(e){if(!e.length||e.length>16*1024)throw new Error("Unsupported publication theme");let t={},n=new Set,i=0;for(;i<e.length;){Nm.lastIndex=i;let l=Nm.exec(e);if(!l)throw new Error("Unsupported publication theme");i=Nm.lastIndex;let a=(l[1]??l[3]).split(";").map(u=>u.trim()).filter(Boolean),o=a.filter(u=>u.startsWith("color-scheme"));if(o.length){let u=/^color-scheme\s*:\s*(light|dark)$/.exec(o[0])?.[1];if(!u||o.length!==1||l[2]||n.has("author"))throw new Error("Unsupported publication mode");t.colorScheme=u}let r=o.length?"author":l[2]??"light";if(n.has(r))throw new Error("Duplicate publication theme mode");n.add(r);for(let u of a){if(u===o[0])continue;let c=/^--([a-z][a-z0-9-]*)\s*:\s*(.+)$/u.exec(u),f=c&&Wv(c[1],c[2]);if(!c||f===void 0||f===null)throw new Error("Unsupported publication theme token");t["--kplex-published-"+r+"-"+c[1]]=f}}return t}function t1(e,t){let n=`--kplex-published-${t}-`,i=`--kplex-published-${t==="dark"?"light":"dark"}-`,l=e??{},a=Gc(l[n+"text-normal"]),o=Gc(l[n+"background-secondary"]??l[n+"background-primary"]),r={colorScheme:t};for(let[u,c]of Object.entries(l)){if(!u.startsWith(n)||typeof c!="string")continue;let f=u.slice(n.length);if(a&&(f==="interactive-normal"||f==="interactive-hover")&&c===l[i+f]){let p=Gc(c),s=p&&Fv(a,o?Tm(p,o):p);if(s!==null&&s<3)continue}r["--kplex-published-author-"+f]=c}return r}var G=X(me(),1),n1={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]},Rm={back:"Alt+ArrowLeft",forward:"Alt+ArrowRight",sidecar:"Alt+Shift+S"},MM={left:z.friends,right:z.challengers,sibling:z.siblings},Cm=[["light",Ti.light,"sun"],["dark",Ti.dark,"moon"],["system",Ti.auto,"sun-moon"]],EM=[["right",z.sidecarRight],["left",z.sidecarLeft],["bottom",z.sidecarBottom]],TM={right:"panel-right",left:"panel-left",bottom:"panel-bottom"},i1=600,l1={};function Am(e,t){let n=t.ownerDocument.defaultView?.Element;return!!(n&&e.target instanceof n&&e.target.closest(kl))}function a1(e,t){return t?{x:(e.x+t.x)/2,y:(e.y+t.y)/2,distance:Math.max(1,Math.hypot(e.x-t.x,e.y-t.y))}:{...e,distance:1}}function o1({publication:e,markerPrefix:t,resources:n,browser:i}){let l=(0,F.useRef)(null),a=(0,F.useRef)(null),o=(0,F.useRef)(null),r=K0(a,o),u=L0(e,i,r.capture),c=u.attention.id,f={...jc,crosslinks:e.manifest?.appearance?.showCrossLinks??jc.crosslinks,...e.manifest?.canvasDefaults,...u.attention.canvas},{view:p,siblings:s,crosslinks:h,ontology:S,sidecar:b}=f,[v,d]=(0,F.useState)(),[m,g]=(0,F.useState)(null),x=(0,F.useRef)(null),[M,T]=(0,F.useState)(),[w,N]=(0,F.useState)(!0),V=w?f.dock:"bottom",E=(0,F.useMemo)(()=>Iv(e,c,s,p,v,h,M),[e,c,s,p,v,h,M]),k=p==="mindmap"?z.mindMap:z.view,L=E.cards.find(y=>y.center),[_,q]=(0,F.useState)(),W=_?.attention===c?_.offsets:l1,ie=(0,F.useRef)(null),I=(0,F.useRef)(null),ae=(0,F.useRef)({x:0,y:0,scale:1}),J=(0,F.useRef)(!1),C=(0,F.useRef)({points:new Map,origin:null,moved:!1}),P=(0,F.useRef)(!1),O=(0,F.useId)(),Y=(0,F.useRef)(null),[ee,te]=(0,F.useState)(0),[H,Z]=(0,F.useState)(null),[ue,fe]=(0,F.useState)(null),[wt,we]=(0,F.useState)(null),[Mt,je]=(0,F.useState)(!1),Rn=(0,F.useRef)(()=>{}),et=(0,F.useRef)(null),[Et,pn]=(0,F.useState)(),[Dt,wi]=(0,F.useState)(!1),[Fn,rl]=(0,F.useState)("light"),he=e.manifest?.colorMode,tt=e.manifest?.pins,Lt=Et?.colorScheme==="dark"?"dark":Et?.colorScheme==="light"?"light":void 0,Te=he==="both"?f.theme:he??Lt??"system",Cn=Te==="system"?Fn:Te,[,An,$n]=Cm.find(([y])=>y===Te),Yt=()=>u.changeCanvas({sidecar:!b}),ul=(0,F.useMemo)(()=>E.edges.flatMap(y=>{let A=Jv(E,y,W);return A?[{edge:y,route:A}]:[]}),[E,W]),Wn=new Set,zn=new Set;if(m)for(let{edge:y}of ul)(y.source===m.occurrence&&(!m.port||y.sourcePort===m.port)||y.target===m.occurrence&&(!m.port||y.targetPort===m.port))&&(Wn.add(y.id),zn.add(y.source),zn.add(y.target));let Pe=y=>y?" is-highlighted":Wn.size?" is-dimmed":"";(0,F.useLayoutEffect)(()=>{let y=l.current,A=a.current,B=y?.ownerDocument.defaultView;if(!y||!A||!B)return;let K=()=>{let j=A.clientWidth;N(y.clientWidth>=Tv),T(j<360?1:j<i1?2:j<880?3:void 0)},re=new B.ResizeObserver(K);return re.observe(y),re.observe(A),K(),()=>re.disconnect()},[]),(0,F.useLayoutEffect)(()=>{let y=a.current,A=y?.ownerDocument.defaultView;if(!y||!A)return;let B=new wc(A,!0,g);x.current=B;let K=s0(y,B);return()=>{x.current=null,K()}},[]),(0,F.useLayoutEffect)(()=>{x.current?.clear()},[E]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!Mt||!y)return;let A=y.setTimeout(()=>je(!1),3500);return()=>y.clearTimeout(A)},[Mt]),Rn.current=y=>{if(y.defaultPrevented||y.isComposing||y.ctrlKey||y.metaKey)return;if(n&&y.key===ir.key&&!y.altKey&&!y.shiftKey){y.preventDefault(),y.repeat||te(B=>B+1);return}let A=y.target;!y.altKey||A?.isContentEditable||A?.closest?.("input,textarea,select")||(n&&y.shiftKey&&(y.code==="KeyS"||y.key.toLowerCase()==="s")?(y.preventDefault(),y.repeat||Yt()):!y.shiftKey&&(y.key==="ArrowLeft"||y.key==="ArrowRight")&&(y.preventDefault(),y.repeat||u.move(y.key==="ArrowLeft"?-1:1)))},(0,F.useEffect)(()=>{if(!i)return;let y=A=>Rn.current(A);return i.addEventListener("keydown",y),()=>i.removeEventListener("keydown",y)},[i]),(0,F.useLayoutEffect)(()=>{let y=et.current;y&&(y.scrollLeft=y.scrollWidth)},[u.visits]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView?.matchMedia("(prefers-color-scheme: dark)");if(!y)return;let A=()=>rl(y.matches?"dark":"light");return A(),y.addEventListener("change",A),()=>y.removeEventListener("change",A)},[]),(0,F.useEffect)(()=>{let y=a.current?.ownerDocument.defaultView;if(!y||!n?.has(Cr))return;let A=new y.AbortController,B=A.signal;return n.text(Cr,B).then(K=>{B.aborted||pn(e1(K))}).catch(()=>{B.aborted||wi(!0)}),()=>A.abort()},[n]);function ei(y){ae.current=y,ie.current&&(ie.current.style.transform=`translate(${y.x}px, ${y.y}px) scale(${y.scale})`)}function Mi(){let y=a.current;if(!y)return;let A=1/0,B=-1/0,K=1/0,re=-1/0,j=(Le,jt,Xt,ii)=>{A=Math.min(A,Le),B=Math.max(B,Le+Xt),K=Math.min(K,jt),re=Math.max(re,jt+ii)};for(let{bounds:Le,strip:jt}of E.cards)jt||j(Le.x-Le.width/2,Le.y-Le.height/2,Le.width,Le.height);for(let{x:Le,y:jt,width:Xt,height:ii}of E.strips.values())j(Le,jt,Xt,ii);if(J.current=!1,y.clientWidth<i1){let Le=I.current?I.current.offsetHeight+10:0,jt=y.clientWidth-32,Xt=y.clientHeight-32-Le,ii=B-A,Wa=re-K,Ei=Math.max(.25,Math.min(1,jt/ii,Xt/Wa)),wr=ii*Ei<=jt?(A+B)/2:L.bounds.x,f1=Wa*Ei<=Xt?(K+re)/2:L.bounds.y;ei({x:-wr*Ei,y:-f1*Ei-Le/2,scale:Ei});return}let _e=Math.max(L.bounds.x-A,B-L.bounds.x),pt=Math.max(L.bounds.y-K,re-L.bounds.y),Xe=Math.max(.25,Math.min(1,(y.clientWidth/2-22)/_e,(y.clientHeight/2-22)/pt));ei({x:-L.bounds.x*Xe,y:-L.bounds.y*Xe,scale:Xe})}function Ka(y,A,B){r.cancel(),x.current?.clear();let{x:K,y:re,scale:j}=ae.current,_e=Math.max(.25,Math.min(3,j*B));J.current=!0,ei({x:A.x-(y.x-K)*_e/j,y:A.y-(y.y-re)*_e/j,scale:_e})}function U(y){Ka({x:0,y:0},{x:0,y:0},y)}function le(y,A,B){let K=y.getBoundingClientRect();return{x:A-K.left-K.width/2,y:B-K.top-K.height/2}}(0,F.useLayoutEffect)(()=>{let y=a.current;if(!y)return;Mi(),r.play(c,ae.current.scale),P.current&&(y.querySelector("[data-publication-center]")?.focus({preventScroll:!0}),P.current=!1);let A=re=>{if(Am(re,y))return;re.preventDefault();let j=le(y,re.clientX,re.clientY),_e=re.deltaY*(re.deltaMode===1?16:re.deltaMode===2?y.clientHeight:1);Ka(j,j,Math.exp(-Math.max(-200,Math.min(200,_e))/350))},B=y.ownerDocument.defaultView,K=B?new B.ResizeObserver(()=>{J.current||Mi()}):null;return K?.observe(y),y.addEventListener("wheel",A,{passive:!1}),()=>{K?.disconnect(),y.removeEventListener("wheel",A)}},[e,c,p,s,v,M]);function Ge(y,A){let B=e.published.get(y)?.url?{sidecar:!0}:void 0;u.activate({id:y,canvas:B})&&y!==c&&(P.current=A)}function gn(){u.changeCanvas({sidecar:!1}),Y.current?.focus()}function Tt(y){u.activate(y)}function ti(){let y=i?.location.href??(n&&new URL("index.html",n.siteURL).href);if(!y)throw new Error("Publication address unavailable");let A=new URL(y);return A.search="",A.hash="",A}function Qa(y,A){fe(null),we(null),je(!1),Z({id:y,anchor:A})}function cl(y,A){Z(null),we(null),x.current?.clear(),fe({anchor:y,point:A})}function ni(y,A,B=!1){return(0,G.jsxs)("nav",{className:`kplex-publication-trail ${B?"kplex-publication-history":"kplex-publication-pins"}`,"aria-label":A,children:[(0,G.jsx)("span",{children:A}),(0,G.jsx)("ol",{ref:B?et:void 0,children:y.map(K=>{let re=e.published.get(K.id),j=re?.style,_e=j?.icon??re?.trailIcon,pt=_e===void 0?void 0:e.manifest?.icons?.[_e];return(0,G.jsx)("li",{children:(0,G.jsxs)("a",{href:Ga(ti(),{...K,canvas:{...u.attention.canvas,...K.canvas}}).href,"aria-current":K.id===c?"location":void 0,style:{backgroundColor:j?.fill,color:j?.color,"--kplex-publication-trail-border":j?.stroke},onClick:Xe=>{Xe.altKey||Xe.ctrlKey||Xe.metaKey||Xe.shiftKey||(Xe.preventDefault(),Tt(K))},children:[pt&&(0,G.jsx)(pm,{icon:pt,size:12}),(0,G.jsx)("span",{children:e.nodes.get(K.id)?.name})]})},K.id)})})]})}function qt(y){if(!y.altKey){if(y.target===y.currentTarget&&(y.key==="ContextMenu"||y.shiftKey&&y.key==="F10")){y.preventDefault();let{left:A,top:B}=y.currentTarget.getBoundingClientRect();cl(y.currentTarget,{x:A+12,y:B+12});return}if(!(y.target.matches?.(kl)&&["ArrowUp","ArrowDown","PageUp","PageDown","Home","End"].includes(y.key))){if(y.key==="Home"||y.key==="0")r.cancel(),Mi();else if(y.key==="+"||y.key==="=")U(1.25);else if(y.key==="-")U(.8);else if(Object.prototype.hasOwnProperty.call(n1,y.key)){let[A,B]=n1[y.key],K=Array.from(y.currentTarget.querySelectorAll("[data-publication-node]")),re=K.find(Le=>Le===y.target)?.dataset.publicationOccurrence,j=Vc(E,re?E.cardById.get(re)??L:L,W),_e=-1,pt=1/0;for(let[Le,jt]of K.entries()){let Xt=Vc(E,E.cardById.get(jt.dataset.publicationOccurrence),W),ii=Xt.x-j.x,Wa=Xt.y-j.y,Ei=ii*A+Wa*B,wr=Ei+2*Math.abs(ii*B-Wa*A);Ei>0&&wr<pt&&(_e=Le,pt=wr)}let Xe=K[_e];Xe?.focus({preventScroll:!Xe.closest(kl)})}else return;y.preventDefault()}}}function Za(y){let A=y.currentTarget.ownerDocument.defaultView?.Element;if(!A||!(y.target instanceof A)||C.current.points.size)return;let B=y.target.closest("[data-publication-occurrence]")?.getAttribute("data-publication-occurrence"),K=y.target.closest("[data-kplex-gate]")?.getAttribute("data-kplex-gate")??void 0;B?x.current?.enter({occurrence:B,port:K},y):x.current?.clear()}function pr(y){if(y.button!==0||(ue&&fe(null),H&&Z(null),Am(y,y.currentTarget)))return;let A=C.current;if(A.points.size>=2)return;let B={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.size===0&&(A.origin=B,A.moved=!1),A.points.set(y.pointerId,B)}function gr(y){let A=C.current;if(!A.points.has(y.pointerId))return;let[B,K]=A.points.values(),re=a1(B,K),j={...le(y.currentTarget,y.clientX,y.clientY),id:y.pointerId};A.points.set(y.pointerId,j);let[_e,pt]=A.points.values(),Xe=a1(_e,pt);if(!(!A.moved&&!pt&&A.origin&&Math.hypot(j.x-A.origin.x,j.y-A.origin.y)<5)){if(A.moved)y.currentTarget.hasPointerCapture(y.pointerId)||y.currentTarget.setPointerCapture(y.pointerId);else{A.moved=!0;for(let Le of A.points.keys())y.currentTarget.setPointerCapture(Le)}Ka(re,Xe,Xe.distance/re.distance)}}function On(y){C.current.points.delete(y.pointerId)}let yr=e.body(c),Ia=()=>u.changeCanvas({siblings:!s}),br=(0,G.jsx)(vt,{icon:"network",label:z.showSiblings,"data-publication-siblings-toggle":!0,title:s?z.hideSiblings:z.showSiblings,"aria-pressed":s,onClick:Ia}),Ja=(0,G.jsxs)(G.Fragment,{children:[p==="compass"&&br,(0,G.jsx)(vt,{icon:"minus",label:z.zoomOut,onClick:()=>U(.8)}),(0,G.jsx)(vt,{icon:"plus",label:z.zoomIn,onClick:()=>U(1.25)}),(0,G.jsx)(vt,{icon:"maximize",label:z.fit,onClick:()=>{r.cancel(),Mi()}}),(0,G.jsx)(vt,{icon:"ellipsis",label:z.graphOptions,"aria-haspopup":"menu","aria-expanded":!!ue,onClick:y=>cl(y.currentTarget)})]});function vr(y,A){let B=A?{...y.bounds,x:y.bounds.x-A.x,y:y.bounds.y-A.contentTop}:y.bounds,K=e.manifest?.icons,re=y.style?.icon!=null?K?.[y.style.icon]:void 0;return(0,G.jsxs)(F.Fragment,{children:[(0,G.jsxs)(v0,{bounds:B,semanticRole:y.role,className:Pe(zn.has(y.id)).trim(),"data-publication-node":y.node.id,"data-publication-occurrence":y.id,"data-publication-center":y.center||void 0,role:"button",tabIndex:0,"aria-label":y.node.name,"aria-current":y.center||void 0,style:{fontSize:y.fontSize,backgroundColor:y.style?.fill,borderColor:y.style?.stroke,color:y.style?.color,"--kplex-gate-size":`${y.gateSize}px`,"--kplex-gate-fill":y.style?.gate},onClick:j=>Ge(y.node.id,j.detail===0),onContextMenu:j=>{n&&(j.preventDefault(),Qa(y.node.id,j.currentTarget))},onKeyDown:j=>{n&&(j.key==="ContextMenu"||j.shiftKey&&j.key==="F10")?(j.preventDefault(),Qa(y.node.id,j.currentTarget)):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),Ge(y.node.id,!0))},children:[(0,G.jsxs)(x0,{wrap:E.wrap,children:[re&&(0,G.jsx)(pm,{icon:re,size:y.center?18:y.role==="sibling"?9:13,className:"kplex-publication-node-icon"}),(0,G.jsx)(S0,{label:y.node.name,maximum:y.node.maxLabelLength,center:y.center})]}),y.gates.map(({side:j,count:_e})=>(0,G.jsx)(w0,{side:j,connected:_e>0,count:_e?String(_e):null,highlighted:Wn.size>0&&m?.occurrence===y.id&&m.port===j,"aria-hidden":"true"},j))]}),y.branch?.canExpand&&(0,G.jsx)("button",{type:"button",className:"kplex-publication-branch","aria-expanded":y.branch.expanded,"aria-label":`${y.branch.expanded?z.collapseBranch:z.expandBranch} · ${y.node.name}`,style:{left:B.x+16,top:B.y+B.height/2+3},onClick:()=>d(j=>xc(j,E.projection,{kind:"toggle",occurrenceId:y.id})??j),children:y.branch.expanded?"−":"+"})]},`${y.id}:${y.node.id}`)}let Sr=(0,G.jsxs)("div",{ref:a,className:"kplex-publication-viewport",role:"group","aria-label":k,tabIndex:0,onKeyDown:qt,onPointerOver:Za,onPointerDown:pr,onPointerMove:gr,onPointerUp:On,onPointerCancel:On,onLostPointerCapture:On,onContextMenu:y=>{y.defaultPrevented||(y.preventDefault(),cl(y.currentTarget,{x:y.clientX,y:y.clientY}))},onPointerLeave:y=>{x.current?.clear(),y.currentTarget.hasPointerCapture(y.pointerId)||On(y)},onClickCapture:y=>{y.detail&&C.current.moved&&!Am(y,y.currentTarget)&&(y.stopPropagation(),C.current.moved=!1)},children:[(0,G.jsxs)("div",{className:"kplex-camera",ref:ie,children:[(0,G.jsxs)("svg",{className:"kplex-links",width:"3200",height:"2400",viewBox:"-1600 -1200 3200 2400","aria-hidden":"true",children:[(0,G.jsx)(T0,{prefix:t}),ul.map(({edge:y,route:A})=>{let{id:B,source:K,target:re,label:j,stroke:_e,strokeWidth:pt,startHead:Xe,endHead:Le}=y;return(0,G.jsxs)("g",{className:`kplex-edge${Pe(Wn.has(B))}`,"data-publication-source":K,"data-publication-target":re,"data-publication-crosslink":y.crossLink||void 0,children:[(0,G.jsx)(M0,{d:A.d,stroke:_e??"var(--kplex-publication-link)",strokeWidth:pt??1.2,markerStart:lm(Xe,t),markerEnd:lm(Le,t)}),S&&(0,G.jsx)(E0,{label:j,midpoint:A.midpoint,fontSize:y.labelSize,color:y.labelColor??"var(--text-muted)",background:"var(--background-primary)"})]},B)})]}),(0,G.jsx)("div",{className:"kplex-nodes",children:E.cards.map(y=>y.strip?null:vr(y))}),[...E.strips].map(([y,A])=>(0,G.jsx)(j0,{id:y,panel:A,start:W[y]??A.initialScrollTop,label:y==="left"&&e.manifest?.appearance?.geometry?.lateralArrangement==="left"?z.lateral:MM[y],onScroll:B=>q(K=>{let re=K?.attention===c?K.offsets:l1;return re[y]===B?K:{attention:c,offsets:{...re,[y]:B}}}),children:E.cards.map(B=>B.strip===y?vr(B,A):null)},JSON.stringify([c,y])))]}),(0,G.jsx)("div",{className:"kplex-publication-exits",ref:o,"aria-hidden":"true"})]}),Fa=H?R0(e,H.id):void 0,$a=H&&{id:H.id,canvas:{...f,theme:Te}},xr=he==="both"?t1(Et,Cn):he?{...Et,colorScheme:Cn}:Et;return(0,G.jsxs)("main",{ref:l,className:`kplex-publication${n?" kplex-publication-production":""}`,style:xr,onKeyDown:i?void 0:y=>Rn.current(y.nativeEvent),children:[(0,G.jsxs)("header",{className:"kplex-publication-header",children:[(0,G.jsxs)("div",{className:"kplex-publication-heading",children:[(0,G.jsx)(V0,{}),(0,G.jsx)("h1",{children:e.title})]}),(0,G.jsxs)("div",{className:"kplex-publication-controls",children:[(0,G.jsx)(vt,{icon:"arrow-left",label:z.back,onClick:()=>u.move(-1),disabled:!u.canGoBack,"aria-keyshortcuts":Rm.back,title:z.backTooltip}),(0,G.jsx)(vt,{icon:"arrow-right",label:z.forward,onClick:()=>u.move(1),disabled:!u.canGoForward,"aria-keyshortcuts":Rm.forward,title:z.forwardTooltip}),n?(0,G.jsx)(vt,{ref:Y,icon:TM[V],label:b?z.hideSidecar:z.showSidecar,"aria-expanded":b,"aria-controls":`sidecar-${O}`,"aria-keyshortcuts":Rm.sidecar,title:b?z.hideSidecarTooltip:z.showSidecarTooltip,onClick:Yt}):Ja,he==="both"&&(0,G.jsx)(vt,{icon:$n,label:Ti.trigger(An),"aria-haspopup":"menu","aria-expanded":!!wt,onClick:y=>{fe(null),Z(null),we(wt?null:y.currentTarget)}})]}),n&&(0,G.jsx)(lv,{publication:e,resources:n,page:ti,searchFocus:ee,onChoose:Tt}),n&&tt?.length?ni(tt.map(y=>({id:En(y)})),z.pins):null]}),n?(0,G.jsx)(Nv,{sidecarId:`sidecar-${O}`,sidecarOpen:b,dock:V,canDockLaterally:w,onDock:y=>u.changeCanvas({dock:y}),canvas:(0,G.jsxs)("div",{className:"kplex-publication-canvas",children:[Sr,(0,G.jsx)("div",{ref:I,className:"kplex-publication-controls kplex-publication-camera-actions",children:Ja}),(0,G.jsxs)("div",{className:"kplex-publication-status","aria-live":"polite",children:[u.addressProblem&&(0,G.jsx)("p",{children:u.addressProblem==="ambiguous"?z.ambiguousAddress:z.nodeUnavailable}),E.truncated&&(0,G.jsx)("p",{children:z.sceneLimited}),Dt&&(0,G.jsx)("p",{children:z.themeUnavailable}),Mt&&(0,G.jsx)("p",{children:z.addressCopied})]})]}),renderSidecar:(y,A)=>(0,G.jsx)(Mv,{publication:e,resources:n,id:`sidecar-${O}`,contentScope:`${t}-document`,location:u.attention,colorMode:Cn,onClose:gn,onNavigate:Tt,dock:y,onSwitchDock:A})}):(0,G.jsxs)(G.Fragment,{children:[Sr,(0,G.jsxs)("section",{className:"kplex-publication-note","aria-labelledby":O,"aria-live":"polite",children:[(0,G.jsx)("h2",{id:O,children:L.node.name}),yr&&(0,G.jsx)("p",{children:yr})]})]}),n&&u.visits.length>1&&ni(u.visits,z.history,!0),wt&&(0,G.jsx)(cr,{anchor:wt,variant:"theme",onDismiss:()=>we(null),choices:Cm.map(([y,A,B])=>({label:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}),ue&&(0,G.jsx)(cr,{anchor:ue.anchor,point:ue.point,onDismiss:()=>fe(null),choices:[{label:z.view,kind:"menuitemradio",checked:p==="compass",select:()=>u.changeCanvas({view:"compass"})},{label:z.mindMap,kind:"menuitemradio",checked:p==="mindmap",select:()=>u.changeCanvas({view:"mindmap"})},{label:z.crossLinks,kind:"menuitemcheckbox",checked:h,select:()=>u.changeCanvas({crosslinks:!h})},...p==="compass"?[{label:z.showSiblings,kind:"menuitemcheckbox",checked:s,select:Ia}]:[],{label:z.linkOntology,kind:"menuitemcheckbox",checked:S,select:()=>u.changeCanvas({ontology:!S})},...n?[{label:z.sidecar,choices:[{label:z.sidecarHide,kind:"menuitemradio",checked:!b,select:()=>u.changeCanvas({sidecar:!1})},...EM.filter(([y])=>w||y==="bottom").map(([y,A])=>({label:A,kind:"menuitemradio",checked:b&&V===y,select:()=>u.changeCanvas(w?{dock:y,sidecar:!0}:{sidecar:!0})}))]}]:[],...he==="both"?[{label:z.theme,choices:Cm.map(([y,A,B])=>({label:y==="system"?Ti.system:A,icon:B,kind:"menuitemradio",checked:Te===y,select:()=>u.changeCanvas({theme:y})}))}]:[],{label:z.about,choices:hm}]}),n&&H&&$a&&(0,G.jsx)(P0,{anchor:H.anchor,address:Ga(ti(),$a).href,shortAddress:Fa&&Ga(ti(),$a,Fa).href,onDismiss:y=>{Z(null),y&&H.anchor.isConnected&&H.anchor.focus({preventScroll:!0})},onCopied:()=>je(!0)},H.id)]})}var c1=X(me(),1),zm=new WeakSet,NM=0;function u1(e,t,n){return RM(e,t,void 0,!0,n)}function RM(e,t,n,i=!1,l){let a=e.ownerDocument.defaultView,o=new URL(n??"./publication.json",e.ownerDocument.baseURI),r=S=>{let b=C0(S);if(b.manifest&&(!a?.crypto.subtle||!l&&o.origin!==a.location.origin))throw new Error("Secure publication context unavailable");let v=b.manifest&&a?l?.(b.manifest)??Dc(a,o,b.manifest):void 0;return{publication:b,resources:v}},u=r(t);if(zm.has(e))throw new Error("A publication is already mounted in this element");let c=`kplex-publication-${++NM}`,f=(0,r1.createRoot)(e,{identifierPrefix:c});zm.add(e);let p=0,s=!1,h=({publication:S,resources:b})=>{i&&(e.ownerDocument.title=S.title),f.render((0,c1.jsx)(o1,{publication:S,markerPrefix:c,resources:b,browser:i&&b&&a?a:void 0},p++))};return h(u),{update(S){if(s)throw new Error("Publication mount has been disposed");h(r(S))},dispose(){if(!s){s=!0;try{f.unmount()}finally{zm.delete(e)}}}}}var s1=document.querySelector("[data-kplex-demo]");s1&&CM(s1);function CM(e){let t=e.ownerDocument,n=t.defaultView;if(n)try{let i=e.hasAttribute("data-kplex-local-folder"),l=new Map;for(let u of Array.from(t.querySelectorAll('script[type="application/octet-stream"][data-kplex-resource]'))){let c=u.dataset.kplexResource;if(!Bl(c)&&c!=="publication.json"||l.has(c)||l.size>=4e4)throw new Error("Invalid offline publication resource");l.set(c,u)}let a=(u,c)=>{let f=l.get(u)?.textContent;if(f==null||f.length>Math.ceil(c/3)*4)throw new Error("Offline resource unavailable");let p=n.atob(f);if(p.length>c)throw new Error("Offline resource exceeds its declared size");let s=new Uint8Array(p.length);for(let h=0;h<p.length;h++)s[h]=p.charCodeAt(h);return s},o=JSON.parse(new TextDecoder("utf-8",{fatal:!0}).decode(a("publication.json",Kc))),r=u1(e,o,u=>Dc(n,new URL(n.location.href),u,async(c,f,p)=>(p.throwIfAborted(),i?AM(t,c,f,p):a(c,f)),n.location.protocol==="file:"?fm:void 0));n.addEventListener("pagehide",function u(c){c.persisted||(n.removeEventListener("pagehide",u),r.dispose())})}catch{let i=t.createElement("p");i.className="kplex-publication-opening",i.setAttribute("role","alert"),i.textContent=z.loadFailed,e.replaceChildren(i)}}async function AM(e,t,n,i){let l=e.defaultView;if(!l)throw new Error("Offline publication window is unavailable");i.throwIfAborted();let a=e.createElement("div"),o=e.createElement("div"),r=e.createElement("span");a.hidden=!0;let u=o.attachShadow({mode:"closed"}),c=e.createElement("link");r.setAttribute("data-kplex-local-bytes",t),c.rel="stylesheet",c.href=new URL(Vm(t),l.location.href).href,u.append(r,c),a.append(o);let f=()=>new Promise((p,s)=>{let h=v=>{l.clearTimeout(b),i.removeEventListener("abort",S),c.onload=c.onerror=null,v?s(v):p()},S=()=>h(new Error("Offline resource load cancelled")),b=l.setTimeout(()=>h(new Error("Offline resource did not load")),3e4);i.addEventListener("abort",S,{once:!0}),c.onload=()=>h(),c.onerror=()=>h(new Error("Offline resource unavailable")),e.body.append(a)});try{await f(),i.throwIfAborted();let p=l.getComputedStyle(r),s=new Uint8Array(n);for(let h=0;h<n;h+=Ar){let S=Math.min(Ar,n-h),b=p.getPropertyValue(`--kplex-file-${h/Ar}`).trim();if(!b.startsWith('"')||!b.endsWith('"')||b.length!==Math.ceil(S/3)*4+2)throw new Error("Invalid offline resource data block");let v=l.atob(b.slice(1,-1));if(v.length!==S)throw new Error("Offline resource data block size mismatch");for(let d=0;d<S;d++)s[h+d]=v.charCodeAt(d)}return s}finally{a.remove()}}})();
|