@micro-lc/preview 0.3.3 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -278,13 +278,14 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
278
278
  });
279
279
  let supportsJsonAssertions = false;
280
280
  let supportsCssAssertions = false;
281
- let supportsImportMaps = hasDocument && HTMLScriptElement.supports ? HTMLScriptElement.supports("importmap") : false;
282
- let supportsImportMeta = supportsImportMaps;
281
+ const supports = hasDocument && HTMLScriptElement.supports;
282
+ let supportsImportMaps = supports && supports.name === "supports" && supports("importmap");
283
+ let supportsImportMeta = supportsDynamicImport;
283
284
  const importMetaCheck = "import.meta";
284
285
  const cssModulesCheck = `import"x"assert{type:"css"}`;
285
286
  const jsonModulesCheck = `import"x"assert{type:"json"}`;
286
- const featureDetectionPromise = Promise.resolve(dynamicImportCheck).then(() => {
287
- if (!supportsDynamicImport || supportsImportMaps && !cssModulesEnabled && !jsonModulesEnabled)
287
+ let featureDetectionPromise = Promise.resolve(dynamicImportCheck).then(() => {
288
+ if (!supportsDynamicImport)
288
289
  return;
289
290
  if (!hasDocument)
290
291
  return Promise.all([
@@ -296,18 +297,25 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
296
297
  const iframe = document.createElement("iframe");
297
298
  iframe.style.display = "none";
298
299
  iframe.setAttribute("nonce", nonce);
299
- function cb({ data: [a3, b3, c3, d2] }) {
300
- supportsImportMaps = a3;
301
- supportsImportMeta = b3;
302
- supportsCssAssertions = c3;
303
- supportsJsonAssertions = d2;
300
+ function cb({ data }) {
301
+ if (Array.isArray(data)) {
302
+ supportsImportMaps = data[0];
303
+ supportsImportMeta = data[1];
304
+ supportsCssAssertions = data[2];
305
+ supportsJsonAssertions = data[3];
306
+ }
304
307
  resolve2();
305
308
  document.head.removeChild(iframe);
306
309
  window.removeEventListener("message", cb, false);
307
310
  }
308
311
  window.addEventListener("message", cb, false);
309
312
  const importMapTest = `<script nonce=${nonce || ""}>b=(s,type='text/javascript')=>URL.createObjectURL(new Blob([s],{type}));document.head.appendChild(Object.assign(document.createElement('script'),{type:'importmap',nonce:"${nonce}",innerText:\`{"imports":{"x":"\${b('')}"}}\`}));Promise.all([${supportsImportMaps ? "true,true" : `'x',b('${importMetaCheck}')`}, ${cssModulesEnabled ? `b('${cssModulesCheck}'.replace('x',b('','text/css')))` : "false"}, ${jsonModulesEnabled ? `b('${jsonModulesCheck}'.replace('x',b('{}','text/json')))` : "false"}].map(x =>typeof x==='string'?import(x).then(x =>!!x,()=>false):x)).then(a=>parent.postMessage(a,'*'))<${""}/script>`;
310
- iframe.onload = () => {
313
+ let readyForOnload = false, onloadCalledWhileNotReady = false;
314
+ function doOnload() {
315
+ if (!readyForOnload) {
316
+ onloadCalledWhileNotReady = true;
317
+ return;
318
+ }
311
319
  const doc = iframe.contentDocument;
312
320
  if (doc && doc.head.childNodes.length === 0) {
313
321
  const s3 = doc.createElement("script");
@@ -316,12 +324,16 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
316
324
  s3.innerHTML = importMapTest.slice(15 + (nonce ? nonce.length : 0), -9);
317
325
  doc.head.appendChild(s3);
318
326
  }
319
- };
327
+ }
328
+ iframe.onload = doOnload;
320
329
  document.head.appendChild(iframe);
330
+ readyForOnload = true;
321
331
  if ("srcdoc" in iframe)
322
332
  iframe.srcdoc = importMapTest;
323
333
  else
324
334
  iframe.contentDocument.write(importMapTest);
335
+ if (onloadCalledWhileNotReady)
336
+ doOnload();
325
337
  });
326
338
  });
327
339
  let e2, a2, r2, i2 = 2 << 19;
@@ -348,9 +360,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
348
360
  a2 = new ArrayBuffer(i2), s2(t2, new Uint16Array(a2, 16, 105)), e2 = function(e3, a3, r3) {
349
361
  ;
350
362
  var i3 = new e3.Int8Array(r3), s3 = new e3.Int16Array(r3), t3 = new e3.Int32Array(r3), c3 = new e3.Uint8Array(r3), f3 = new e3.Uint16Array(r3), n3 = 1024;
351
- function b3() {
352
- var e4 = 0, a4 = 0, r4 = 0, c4 = 0, b4 = 0, o4 = 0, w3 = 0;
353
- w3 = n3;
363
+ function b2() {
364
+ var e4 = 0, a4 = 0, r4 = 0, c4 = 0, b3 = 0, u5 = 0, w4 = 0;
365
+ w4 = n3;
354
366
  n3 = n3 + 10240 | 0;
355
367
  i3[795] = 1;
356
368
  s3[395] = 0;
@@ -359,8 +371,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
359
371
  i3[796] = 0;
360
372
  t3[66] = 0;
361
373
  i3[794] = 0;
362
- t3[68] = w3 + 2048;
363
- t3[69] = w3;
374
+ t3[68] = w4 + 2048;
375
+ t3[69] = w4;
364
376
  i3[797] = 0;
365
377
  e4 = (t3[3] | 0) + -2 | 0;
366
378
  t3[70] = e4;
@@ -371,7 +383,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
371
383
  r4 = e4 + 2 | 0;
372
384
  t3[70] = r4;
373
385
  if (e4 >>> 0 >= a4 >>> 0) {
374
- b4 = 18;
386
+ b3 = 18;
375
387
  break;
376
388
  }
377
389
  a:
@@ -386,22 +398,22 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
386
398
  break;
387
399
  case 101: {
388
400
  if ((((s3[396] | 0) == 0 ? H2(r4) | 0 : 0) ? (m2(e4 + 4 | 0, 16, 10) | 0) == 0 : 0) ? (l4(), (i3[795] | 0) == 0) : 0) {
389
- b4 = 9;
401
+ b3 = 9;
390
402
  break e;
391
403
  } else
392
- b4 = 17;
404
+ b3 = 17;
393
405
  break;
394
406
  }
395
407
  case 105: {
396
408
  if (H2(r4) | 0 ? (m2(e4 + 4 | 0, 26, 10) | 0) == 0 : 0) {
397
409
  k4();
398
- b4 = 17;
410
+ b3 = 17;
399
411
  } else
400
- b4 = 17;
412
+ b3 = 17;
401
413
  break;
402
414
  }
403
415
  case 59: {
404
- b4 = 17;
416
+ b3 = 17;
405
417
  break;
406
418
  }
407
419
  case 47:
@@ -415,46 +427,46 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
415
427
  break a;
416
428
  }
417
429
  default: {
418
- b4 = 16;
430
+ b3 = 16;
419
431
  break e;
420
432
  }
421
433
  }
422
434
  default: {
423
- b4 = 16;
435
+ b3 = 16;
424
436
  break e;
425
437
  }
426
438
  }
427
439
  } while (0);
428
- if ((b4 | 0) == 17) {
429
- b4 = 0;
440
+ if ((b3 | 0) == 17) {
441
+ b3 = 0;
430
442
  t3[67] = t3[70];
431
443
  }
432
444
  e4 = t3[70] | 0;
433
445
  a4 = t3[71] | 0;
434
446
  }
435
- if ((b4 | 0) == 9) {
447
+ if ((b3 | 0) == 9) {
436
448
  e4 = t3[70] | 0;
437
449
  t3[67] = e4;
438
- b4 = 19;
439
- } else if ((b4 | 0) == 16) {
450
+ b3 = 19;
451
+ } else if ((b3 | 0) == 16) {
440
452
  i3[795] = 0;
441
453
  t3[70] = e4;
442
- b4 = 19;
443
- } else if ((b4 | 0) == 18)
454
+ b3 = 19;
455
+ } else if ((b3 | 0) == 18)
444
456
  if (!(i3[794] | 0)) {
445
457
  e4 = r4;
446
- b4 = 19;
458
+ b3 = 19;
447
459
  } else
448
460
  e4 = 0;
449
461
  do {
450
- if ((b4 | 0) == 19) {
462
+ if ((b3 | 0) == 19) {
451
463
  e:
452
464
  while (1) {
453
465
  a4 = e4 + 2 | 0;
454
466
  t3[70] = a4;
455
467
  c4 = a4;
456
468
  if (e4 >>> 0 >= (t3[71] | 0) >>> 0) {
457
- b4 = 82;
469
+ b3 = 82;
458
470
  break;
459
471
  }
460
472
  a:
@@ -470,64 +482,64 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
470
482
  case 101: {
471
483
  if (((s3[396] | 0) == 0 ? H2(a4) | 0 : 0) ? (m2(e4 + 4 | 0, 16, 10) | 0) == 0 : 0) {
472
484
  l4();
473
- b4 = 81;
485
+ b3 = 81;
474
486
  } else
475
- b4 = 81;
487
+ b3 = 81;
476
488
  break;
477
489
  }
478
490
  case 105: {
479
491
  if (H2(a4) | 0 ? (m2(e4 + 4 | 0, 26, 10) | 0) == 0 : 0) {
480
492
  k4();
481
- b4 = 81;
493
+ b3 = 81;
482
494
  } else
483
- b4 = 81;
495
+ b3 = 81;
484
496
  break;
485
497
  }
486
498
  case 99: {
487
499
  if ((H2(a4) | 0 ? (m2(e4 + 4 | 0, 36, 8) | 0) == 0 : 0) ? V2(s3[e4 + 12 >> 1] | 0) | 0 : 0) {
488
500
  i3[797] = 1;
489
- b4 = 81;
501
+ b3 = 81;
490
502
  } else
491
- b4 = 81;
503
+ b3 = 81;
492
504
  break;
493
505
  }
494
506
  case 40: {
495
507
  c4 = t3[68] | 0;
496
508
  a4 = s3[396] | 0;
497
- b4 = a4 & 65535;
498
- t3[c4 + (b4 << 3) >> 2] = 1;
509
+ b3 = a4 & 65535;
510
+ t3[c4 + (b3 << 3) >> 2] = 1;
499
511
  r4 = t3[67] | 0;
500
512
  s3[396] = a4 + 1 << 16 >> 16;
501
- t3[c4 + (b4 << 3) + 4 >> 2] = r4;
502
- b4 = 81;
513
+ t3[c4 + (b3 << 3) + 4 >> 2] = r4;
514
+ b3 = 81;
503
515
  break;
504
516
  }
505
517
  case 41: {
506
518
  a4 = s3[396] | 0;
507
519
  if (!(a4 << 16 >> 16)) {
508
- b4 = 36;
520
+ b3 = 36;
509
521
  break e;
510
522
  }
511
523
  a4 = a4 + -1 << 16 >> 16;
512
524
  s3[396] = a4;
513
525
  r4 = s3[395] | 0;
514
- if (r4 << 16 >> 16 != 0 ? (o4 = t3[(t3[69] | 0) + ((r4 & 65535) + -1 << 2) >> 2] | 0, (t3[o4 + 20 >> 2] | 0) == (t3[(t3[68] | 0) + ((a4 & 65535) << 3) + 4 >> 2] | 0)) : 0) {
515
- a4 = o4 + 4 | 0;
526
+ if (r4 << 16 >> 16 != 0 ? (u5 = t3[(t3[69] | 0) + ((r4 & 65535) + -1 << 2) >> 2] | 0, (t3[u5 + 20 >> 2] | 0) == (t3[(t3[68] | 0) + ((a4 & 65535) << 3) + 4 >> 2] | 0)) : 0) {
527
+ a4 = u5 + 4 | 0;
516
528
  if (!(t3[a4 >> 2] | 0))
517
529
  t3[a4 >> 2] = c4;
518
- t3[o4 + 12 >> 2] = e4 + 4;
530
+ t3[u5 + 12 >> 2] = e4 + 4;
519
531
  s3[395] = r4 + -1 << 16 >> 16;
520
- b4 = 81;
532
+ b3 = 81;
521
533
  } else
522
- b4 = 81;
534
+ b3 = 81;
523
535
  break;
524
536
  }
525
537
  case 123: {
526
- b4 = t3[67] | 0;
538
+ b3 = t3[67] | 0;
527
539
  c4 = t3[61] | 0;
528
- e4 = b4;
540
+ e4 = b3;
529
541
  do {
530
- if ((s3[b4 >> 1] | 0) == 41 & (c4 | 0) != 0 ? (t3[c4 + 4 >> 2] | 0) == (b4 | 0) : 0) {
542
+ if ((s3[b3 >> 1] | 0) == 41 & (c4 | 0) != 0 ? (t3[c4 + 4 >> 2] | 0) == (b3 | 0) : 0) {
531
543
  a4 = t3[62] | 0;
532
544
  t3[61] = a4;
533
545
  if (!a4) {
@@ -541,38 +553,38 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
541
553
  } while (0);
542
554
  c4 = t3[68] | 0;
543
555
  r4 = s3[396] | 0;
544
- b4 = r4 & 65535;
545
- t3[c4 + (b4 << 3) >> 2] = (i3[797] | 0) == 0 ? 2 : 6;
556
+ b3 = r4 & 65535;
557
+ t3[c4 + (b3 << 3) >> 2] = (i3[797] | 0) == 0 ? 2 : 6;
546
558
  s3[396] = r4 + 1 << 16 >> 16;
547
- t3[c4 + (b4 << 3) + 4 >> 2] = e4;
559
+ t3[c4 + (b3 << 3) + 4 >> 2] = e4;
548
560
  i3[797] = 0;
549
- b4 = 81;
561
+ b3 = 81;
550
562
  break;
551
563
  }
552
564
  case 125: {
553
565
  e4 = s3[396] | 0;
554
566
  if (!(e4 << 16 >> 16)) {
555
- b4 = 49;
567
+ b3 = 49;
556
568
  break e;
557
569
  }
558
570
  c4 = t3[68] | 0;
559
- b4 = e4 + -1 << 16 >> 16;
560
- s3[396] = b4;
561
- if ((t3[c4 + ((b4 & 65535) << 3) >> 2] | 0) == 4) {
571
+ b3 = e4 + -1 << 16 >> 16;
572
+ s3[396] = b3;
573
+ if ((t3[c4 + ((b3 & 65535) << 3) >> 2] | 0) == 4) {
562
574
  h3();
563
- b4 = 81;
575
+ b3 = 81;
564
576
  } else
565
- b4 = 81;
577
+ b3 = 81;
566
578
  break;
567
579
  }
568
580
  case 39: {
569
581
  d3(39);
570
- b4 = 81;
582
+ b3 = 81;
571
583
  break;
572
584
  }
573
585
  case 34: {
574
586
  d3(34);
575
- b4 = 81;
587
+ b3 = 81;
576
588
  break;
577
589
  }
578
590
  case 47:
@@ -594,70 +606,70 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
594
606
  switch (c4 << 16 >> 16) {
595
607
  case 41:
596
608
  if (D(t3[(t3[68] | 0) + (f3[396] << 3) + 4 >> 2] | 0) | 0) {
597
- b4 = 69;
609
+ b3 = 69;
598
610
  break r;
599
611
  } else {
600
- b4 = 66;
612
+ b3 = 66;
601
613
  break r;
602
614
  }
603
615
  case 125:
604
616
  break;
605
617
  default: {
606
- b4 = 66;
618
+ b3 = 66;
607
619
  break r;
608
620
  }
609
621
  }
610
622
  a4 = t3[68] | 0;
611
623
  r4 = f3[396] | 0;
612
624
  if (!(p3(t3[a4 + (r4 << 3) + 4 >> 2] | 0) | 0) ? (t3[a4 + (r4 << 3) >> 2] | 0) != 6 : 0)
613
- b4 = 66;
625
+ b3 = 66;
614
626
  else
615
- b4 = 69;
627
+ b3 = 69;
616
628
  } else
617
629
  switch (c4 << 16 >> 16) {
618
630
  case 46:
619
631
  if (((s3[e4 + -2 >> 1] | 0) + -48 & 65535) < 10) {
620
- b4 = 66;
632
+ b3 = 66;
621
633
  break r;
622
634
  } else {
623
- b4 = 69;
635
+ b3 = 69;
624
636
  break r;
625
637
  }
626
638
  case 43:
627
639
  if ((s3[e4 + -2 >> 1] | 0) == 43) {
628
- b4 = 66;
640
+ b3 = 66;
629
641
  break r;
630
642
  } else {
631
- b4 = 69;
643
+ b3 = 69;
632
644
  break r;
633
645
  }
634
646
  case 45:
635
647
  if ((s3[e4 + -2 >> 1] | 0) == 45) {
636
- b4 = 66;
648
+ b3 = 66;
637
649
  break r;
638
650
  } else {
639
- b4 = 69;
651
+ b3 = 69;
640
652
  break r;
641
653
  }
642
654
  default: {
643
- b4 = 69;
655
+ b3 = 69;
644
656
  break r;
645
657
  }
646
658
  }
647
659
  } while (0);
648
660
  r:
649
661
  do {
650
- if ((b4 | 0) == 66) {
651
- b4 = 0;
652
- if (!(u4(e4) | 0)) {
662
+ if ((b3 | 0) == 66) {
663
+ b3 = 0;
664
+ if (!(o3(e4) | 0)) {
653
665
  switch (c4 << 16 >> 16) {
654
666
  case 0: {
655
- b4 = 69;
667
+ b3 = 69;
656
668
  break r;
657
669
  }
658
670
  case 47: {
659
671
  if (i3[796] | 0) {
660
- b4 = 69;
672
+ b3 = 69;
661
673
  break r;
662
674
  }
663
675
  break;
@@ -681,73 +693,73 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
681
693
  e4 = e4 + -2 | 0;
682
694
  t3[67] = e4;
683
695
  } while (F(s3[e4 >> 1] | 0) | 0);
684
- if (j(e4) | 0) {
696
+ if (j2(e4) | 0) {
685
697
  g2();
686
698
  i3[796] = 0;
687
- b4 = 81;
699
+ b3 = 81;
688
700
  break a;
689
701
  } else
690
702
  e4 = 1;
691
703
  } else
692
704
  e4 = 1;
693
705
  } else
694
- b4 = 69;
706
+ b3 = 69;
695
707
  }
696
708
  } while (0);
697
- if ((b4 | 0) == 69) {
709
+ if ((b3 | 0) == 69) {
698
710
  g2();
699
711
  e4 = 0;
700
712
  }
701
713
  i3[796] = e4;
702
- b4 = 81;
714
+ b3 = 81;
703
715
  break a;
704
716
  }
705
717
  }
706
718
  case 96: {
707
719
  c4 = t3[68] | 0;
708
720
  r4 = s3[396] | 0;
709
- b4 = r4 & 65535;
710
- t3[c4 + (b4 << 3) + 4 >> 2] = t3[67];
721
+ b3 = r4 & 65535;
722
+ t3[c4 + (b3 << 3) + 4 >> 2] = t3[67];
711
723
  s3[396] = r4 + 1 << 16 >> 16;
712
- t3[c4 + (b4 << 3) >> 2] = 3;
724
+ t3[c4 + (b3 << 3) >> 2] = 3;
713
725
  h3();
714
- b4 = 81;
726
+ b3 = 81;
715
727
  break;
716
728
  }
717
729
  default:
718
- b4 = 81;
730
+ b3 = 81;
719
731
  }
720
732
  } while (0);
721
- if ((b4 | 0) == 81) {
722
- b4 = 0;
733
+ if ((b3 | 0) == 81) {
734
+ b3 = 0;
723
735
  t3[67] = t3[70];
724
736
  }
725
737
  e4 = t3[70] | 0;
726
738
  }
727
- if ((b4 | 0) == 36) {
739
+ if ((b3 | 0) == 36) {
728
740
  T2();
729
741
  e4 = 0;
730
742
  break;
731
- } else if ((b4 | 0) == 49) {
743
+ } else if ((b3 | 0) == 49) {
732
744
  T2();
733
745
  e4 = 0;
734
746
  break;
735
- } else if ((b4 | 0) == 82) {
747
+ } else if ((b3 | 0) == 82) {
736
748
  e4 = (i3[794] | 0) == 0 ? (s3[395] | s3[396]) << 16 >> 16 == 0 : 0;
737
749
  break;
738
750
  }
739
751
  }
740
752
  } while (0);
741
- n3 = w3;
753
+ n3 = w4;
742
754
  return e4 | 0;
743
755
  }
744
756
  function l4() {
745
- var e4 = 0, a4 = 0, r4 = 0, c4 = 0, f4 = 0, n4 = 0, b4 = 0, l5 = 0, k5 = 0, u5 = 0, h4 = 0, A3 = 0, C3 = 0, g3 = 0;
757
+ var e4 = 0, a4 = 0, r4 = 0, c4 = 0, f4 = 0, n4 = 0, b3 = 0, l5 = 0, k5 = 0, o4 = 0, h4 = 0, A3 = 0, C3 = 0, g3 = 0;
746
758
  l5 = t3[70] | 0;
747
759
  k5 = t3[63] | 0;
748
760
  g3 = l5 + 12 | 0;
749
761
  t3[70] = g3;
750
- r4 = w2(1) | 0;
762
+ r4 = w3(1) | 0;
751
763
  e4 = t3[70] | 0;
752
764
  if (!((e4 | 0) == (g3 | 0) ? !(I2(r4) | 0) : 0))
753
765
  C3 = 3;
@@ -759,7 +771,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
759
771
  switch (r4 << 16 >> 16) {
760
772
  case 123: {
761
773
  t3[70] = e4 + 2;
762
- e4 = w2(1) | 0;
774
+ e4 = w3(1) | 0;
763
775
  r4 = t3[70] | 0;
764
776
  while (1) {
765
777
  if (W(e4) | 0) {
@@ -770,11 +782,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
770
782
  q(e4) | 0;
771
783
  e4 = t3[70] | 0;
772
784
  }
773
- w2(1) | 0;
785
+ w3(1) | 0;
774
786
  e4 = v2(r4, e4) | 0;
775
787
  if (e4 << 16 >> 16 == 44) {
776
788
  t3[70] = (t3[70] | 0) + 2;
777
- e4 = w2(1) | 0;
789
+ e4 = w3(1) | 0;
778
790
  }
779
791
  a4 = r4;
780
792
  r4 = t3[70] | 0;
@@ -805,7 +817,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
805
817
  }
806
818
  case 42: {
807
819
  t3[70] = e4 + 2;
808
- w2(1) | 0;
820
+ w3(1) | 0;
809
821
  g3 = t3[70] | 0;
810
822
  v2(g3, g3) | 0;
811
823
  break;
@@ -816,12 +828,12 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
816
828
  case 100: {
817
829
  l5 = e4 + 14 | 0;
818
830
  t3[70] = l5;
819
- switch ((w2(1) | 0) << 16 >> 16) {
831
+ switch ((w3(1) | 0) << 16 >> 16) {
820
832
  case 97: {
821
833
  a4 = t3[70] | 0;
822
834
  if ((m2(a4 + 2 | 0, 56, 8) | 0) == 0 ? (f4 = a4 + 10 | 0, F(s3[f4 >> 1] | 0) | 0) : 0) {
823
835
  t3[70] = f4;
824
- w2(0) | 0;
836
+ w3(0) | 0;
825
837
  C3 = 22;
826
838
  }
827
839
  break;
@@ -832,7 +844,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
832
844
  }
833
845
  case 99: {
834
846
  a4 = t3[70] | 0;
835
- if (((m2(a4 + 2 | 0, 36, 8) | 0) == 0 ? (c4 = a4 + 10 | 0, g3 = s3[c4 >> 1] | 0, V2(g3) | 0 | g3 << 16 >> 16 == 123) : 0) ? (t3[70] = c4, n4 = w2(1) | 0, n4 << 16 >> 16 != 123) : 0) {
847
+ if (((m2(a4 + 2 | 0, 36, 8) | 0) == 0 ? (c4 = a4 + 10 | 0, g3 = s3[c4 >> 1] | 0, V2(g3) | 0 | g3 << 16 >> 16 == 123) : 0) ? (t3[70] = c4, n4 = w3(1) | 0, n4 << 16 >> 16 != 123) : 0) {
836
848
  A3 = n4;
837
849
  C3 = 31;
838
850
  }
@@ -843,8 +855,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
843
855
  }
844
856
  r:
845
857
  do {
846
- if ((C3 | 0) == 22 ? (b4 = t3[70] | 0, (m2(b4 + 2 | 0, 64, 14) | 0) == 0) : 0) {
847
- r4 = b4 + 16 | 0;
858
+ if ((C3 | 0) == 22 ? (b3 = t3[70] | 0, (m2(b3 + 2 | 0, 64, 14) | 0) == 0) : 0) {
859
+ r4 = b3 + 16 | 0;
848
860
  a4 = s3[r4 >> 1] | 0;
849
861
  if (!(V2(a4) | 0))
850
862
  switch (a4 << 16 >> 16) {
@@ -855,10 +867,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
855
867
  break r;
856
868
  }
857
869
  t3[70] = r4;
858
- a4 = w2(1) | 0;
870
+ a4 = w3(1) | 0;
859
871
  if (a4 << 16 >> 16 == 42) {
860
872
  t3[70] = (t3[70] | 0) + 2;
861
- a4 = w2(1) | 0;
873
+ a4 = w3(1) | 0;
862
874
  }
863
875
  if (a4 << 16 >> 16 != 40) {
864
876
  A3 = a4;
@@ -866,8 +878,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
866
878
  }
867
879
  }
868
880
  } while (0);
869
- if ((C3 | 0) == 31 ? (u5 = t3[70] | 0, q(A3) | 0, h4 = t3[70] | 0, h4 >>> 0 > u5 >>> 0) : 0) {
870
- $2(e4, l5, u5, h4);
881
+ if ((C3 | 0) == 31 ? (o4 = t3[70] | 0, q(A3) | 0, h4 = t3[70] | 0, h4 >>> 0 > o4 >>> 0) : 0) {
882
+ $2(e4, l5, o4, h4);
871
883
  t3[70] = (t3[70] | 0) + -2;
872
884
  break e;
873
885
  }
@@ -877,7 +889,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
877
889
  }
878
890
  case 97: {
879
891
  t3[70] = e4 + 10;
880
- w2(0) | 0;
892
+ w3(0) | 0;
881
893
  e4 = t3[70] | 0;
882
894
  C3 = 35;
883
895
  break;
@@ -889,7 +901,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
889
901
  case 99: {
890
902
  if ((m2(e4 + 2 | 0, 36, 8) | 0) == 0 ? (a4 = e4 + 10 | 0, E2(s3[a4 >> 1] | 0) | 0) : 0) {
891
903
  t3[70] = a4;
892
- g3 = w2(1) | 0;
904
+ g3 = w3(1) | 0;
893
905
  C3 = t3[70] | 0;
894
906
  q(g3) | 0;
895
907
  g3 = t3[70] | 0;
@@ -909,10 +921,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
909
921
  }
910
922
  if ((C3 | 0) == 35) {
911
923
  t3[70] = e4 + 16;
912
- e4 = w2(1) | 0;
924
+ e4 = w3(1) | 0;
913
925
  if (e4 << 16 >> 16 == 42) {
914
926
  t3[70] = (t3[70] | 0) + 2;
915
- e4 = w2(1) | 0;
927
+ e4 = w3(1) | 0;
916
928
  }
917
929
  C3 = t3[70] | 0;
918
930
  q(e4) | 0;
@@ -927,7 +939,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
927
939
  r:
928
940
  while (1) {
929
941
  t3[70] = e4 + 2;
930
- g3 = w2(1) | 0;
942
+ g3 = w3(1) | 0;
931
943
  e4 = t3[70] | 0;
932
944
  switch ((q(g3) | 0) << 16 >> 16) {
933
945
  case 91:
@@ -940,7 +952,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
940
952
  if ((a4 | 0) == (e4 | 0))
941
953
  break e;
942
954
  $2(e4, a4, e4, a4);
943
- if ((w2(1) | 0) << 16 >> 16 != 44)
955
+ if ((w3(1) | 0) << 16 >> 16 != 44)
944
956
  break;
945
957
  e4 = t3[70] | 0;
946
958
  }
@@ -949,11 +961,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
949
961
  }
950
962
  }
951
963
  } while (0);
952
- g3 = (w2(1) | 0) << 16 >> 16 == 102;
964
+ g3 = (w3(1) | 0) << 16 >> 16 == 102;
953
965
  e4 = t3[70] | 0;
954
966
  if (g3 ? (m2(e4 + 2 | 0, 50, 6) | 0) == 0 : 0) {
955
967
  t3[70] = e4 + 8;
956
- o3(l5, w2(1) | 0);
968
+ u4(l5, w3(1) | 0);
957
969
  e4 = (k5 | 0) == 0 ? 232 : k5 + 16 | 0;
958
970
  while (1) {
959
971
  e4 = t3[e4 >> 2] | 0;
@@ -976,7 +988,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
976
988
  t3[70] = e4;
977
989
  e:
978
990
  do {
979
- switch ((w2(1) | 0) << 16 >> 16) {
991
+ switch ((w3(1) | 0) << 16 >> 16) {
980
992
  case 40: {
981
993
  a4 = t3[68] | 0;
982
994
  n4 = s3[396] | 0;
@@ -987,7 +999,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
987
999
  t3[a4 + (r4 << 3) + 4 >> 2] = e4;
988
1000
  if ((s3[t3[67] >> 1] | 0) != 46) {
989
1001
  t3[70] = e4 + 2;
990
- n4 = w2(1) | 0;
1002
+ n4 = w3(1) | 0;
991
1003
  A2(f4, t3[70] | 0, 0, e4);
992
1004
  a4 = t3[61] | 0;
993
1005
  r4 = t3[69] | 0;
@@ -1010,10 +1022,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1010
1022
  }
1011
1023
  e4 = (t3[70] | 0) + 2 | 0;
1012
1024
  t3[70] = e4;
1013
- switch ((w2(1) | 0) << 16 >> 16) {
1025
+ switch ((w3(1) | 0) << 16 >> 16) {
1014
1026
  case 44: {
1015
1027
  t3[70] = (t3[70] | 0) + 2;
1016
- w2(1) | 0;
1028
+ w3(1) | 0;
1017
1029
  f4 = t3[61] | 0;
1018
1030
  t3[f4 + 4 >> 2] = e4;
1019
1031
  n4 = t3[70] | 0;
@@ -1041,7 +1053,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1041
1053
  }
1042
1054
  case 46: {
1043
1055
  t3[70] = (t3[70] | 0) + 2;
1044
- if ((w2(1) | 0) << 16 >> 16 == 109 ? (a4 = t3[70] | 0, (m2(a4 + 2 | 0, 44, 6) | 0) == 0) : 0) {
1056
+ if ((w3(1) | 0) << 16 >> 16 == 109 ? (a4 = t3[70] | 0, (m2(a4 + 2 | 0, 44, 6) | 0) == 0) : 0) {
1045
1057
  e4 = t3[67] | 0;
1046
1058
  if (!(G(e4) | 0) ? (s3[e4 >> 1] | 0) == 46 : 0)
1047
1059
  break e;
@@ -1064,7 +1076,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1064
1076
  while (1) {
1065
1077
  if (e4 >>> 0 >= (t3[71] | 0) >>> 0)
1066
1078
  break;
1067
- e4 = w2(1) | 0;
1079
+ e4 = w3(1) | 0;
1068
1080
  if (!(W(e4) | 0)) {
1069
1081
  if (e4 << 16 >> 16 == 125) {
1070
1082
  c4 = 33;
@@ -1077,16 +1089,16 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1077
1089
  }
1078
1090
  if ((c4 | 0) == 33)
1079
1091
  t3[70] = (t3[70] | 0) + 2;
1080
- n4 = (w2(1) | 0) << 16 >> 16 == 102;
1092
+ n4 = (w3(1) | 0) << 16 >> 16 == 102;
1081
1093
  e4 = t3[70] | 0;
1082
1094
  if (n4 ? m2(e4 + 2 | 0, 50, 6) | 0 : 0) {
1083
1095
  T2();
1084
1096
  break e;
1085
1097
  }
1086
1098
  t3[70] = e4 + 8;
1087
- e4 = w2(1) | 0;
1099
+ e4 = w3(1) | 0;
1088
1100
  if (W(e4) | 0) {
1089
- o3(f4, e4);
1101
+ u4(f4, e4);
1090
1102
  break e;
1091
1103
  } else {
1092
1104
  T2();
@@ -1123,7 +1135,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1123
1135
  a4 = n4;
1124
1136
  }
1125
1137
  if ((c4 | 0) == 23) {
1126
- o3(f4, r4);
1138
+ u4(f4, r4);
1127
1139
  break;
1128
1140
  } else if ((c4 | 0) == 25) {
1129
1141
  T2();
@@ -1133,7 +1145,130 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1133
1145
  } while (0);
1134
1146
  return;
1135
1147
  }
1136
- function u4(e4) {
1148
+ function u4(e4, a4) {
1149
+ e4 = e4 | 0;
1150
+ a4 = a4 | 0;
1151
+ var r4 = 0, i4 = 0;
1152
+ r4 = (t3[70] | 0) + 2 | 0;
1153
+ switch (a4 << 16 >> 16) {
1154
+ case 39: {
1155
+ d3(39);
1156
+ i4 = 5;
1157
+ break;
1158
+ }
1159
+ case 34: {
1160
+ d3(34);
1161
+ i4 = 5;
1162
+ break;
1163
+ }
1164
+ default:
1165
+ T2();
1166
+ }
1167
+ do {
1168
+ if ((i4 | 0) == 5) {
1169
+ A2(e4, r4, t3[70] | 0, 1);
1170
+ t3[70] = (t3[70] | 0) + 2;
1171
+ a4 = w3(0) | 0;
1172
+ e4 = a4 << 16 >> 16 == 97;
1173
+ if (e4) {
1174
+ r4 = t3[70] | 0;
1175
+ if (m2(r4 + 2 | 0, 78, 10) | 0)
1176
+ i4 = 11;
1177
+ } else {
1178
+ r4 = t3[70] | 0;
1179
+ if (!(((a4 << 16 >> 16 == 119 ? (s3[r4 + 2 >> 1] | 0) == 105 : 0) ? (s3[r4 + 4 >> 1] | 0) == 116 : 0) ? (s3[r4 + 6 >> 1] | 0) == 104 : 0))
1180
+ i4 = 11;
1181
+ }
1182
+ if ((i4 | 0) == 11) {
1183
+ t3[70] = r4 + -2;
1184
+ break;
1185
+ }
1186
+ t3[70] = r4 + ((e4 ? 6 : 4) << 1);
1187
+ if ((w3(1) | 0) << 16 >> 16 != 123) {
1188
+ t3[70] = r4;
1189
+ break;
1190
+ }
1191
+ e4 = t3[70] | 0;
1192
+ a4 = e4;
1193
+ e:
1194
+ while (1) {
1195
+ t3[70] = a4 + 2;
1196
+ a4 = w3(1) | 0;
1197
+ switch (a4 << 16 >> 16) {
1198
+ case 39: {
1199
+ d3(39);
1200
+ t3[70] = (t3[70] | 0) + 2;
1201
+ a4 = w3(1) | 0;
1202
+ break;
1203
+ }
1204
+ case 34: {
1205
+ d3(34);
1206
+ t3[70] = (t3[70] | 0) + 2;
1207
+ a4 = w3(1) | 0;
1208
+ break;
1209
+ }
1210
+ default:
1211
+ a4 = q(a4) | 0;
1212
+ }
1213
+ if (a4 << 16 >> 16 != 58) {
1214
+ i4 = 20;
1215
+ break;
1216
+ }
1217
+ t3[70] = (t3[70] | 0) + 2;
1218
+ switch ((w3(1) | 0) << 16 >> 16) {
1219
+ case 39: {
1220
+ d3(39);
1221
+ break;
1222
+ }
1223
+ case 34: {
1224
+ d3(34);
1225
+ break;
1226
+ }
1227
+ default: {
1228
+ i4 = 24;
1229
+ break e;
1230
+ }
1231
+ }
1232
+ t3[70] = (t3[70] | 0) + 2;
1233
+ switch ((w3(1) | 0) << 16 >> 16) {
1234
+ case 125: {
1235
+ i4 = 29;
1236
+ break e;
1237
+ }
1238
+ case 44:
1239
+ break;
1240
+ default: {
1241
+ i4 = 28;
1242
+ break e;
1243
+ }
1244
+ }
1245
+ t3[70] = (t3[70] | 0) + 2;
1246
+ if ((w3(1) | 0) << 16 >> 16 == 125) {
1247
+ i4 = 29;
1248
+ break;
1249
+ }
1250
+ a4 = t3[70] | 0;
1251
+ }
1252
+ if ((i4 | 0) == 20) {
1253
+ t3[70] = r4;
1254
+ break;
1255
+ } else if ((i4 | 0) == 24) {
1256
+ t3[70] = r4;
1257
+ break;
1258
+ } else if ((i4 | 0) == 28) {
1259
+ t3[70] = r4;
1260
+ break;
1261
+ } else if ((i4 | 0) == 29) {
1262
+ i4 = t3[61] | 0;
1263
+ t3[i4 + 16 >> 2] = e4;
1264
+ t3[i4 + 12 >> 2] = (t3[70] | 0) + 2;
1265
+ break;
1266
+ }
1267
+ }
1268
+ } while (0);
1269
+ return;
1270
+ }
1271
+ function o3(e4) {
1137
1272
  e4 = e4 | 0;
1138
1273
  e:
1139
1274
  do {
@@ -1158,11 +1293,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1158
1293
  case 115:
1159
1294
  switch (s3[e4 + -4 >> 1] | 0) {
1160
1295
  case 108: {
1161
- e4 = B(e4 + -6 | 0, 101) | 0;
1296
+ e4 = B2(e4 + -6 | 0, 101) | 0;
1162
1297
  break e;
1163
1298
  }
1164
1299
  case 97: {
1165
- e4 = B(e4 + -6 | 0, 99) | 0;
1300
+ e4 = B2(e4 + -6 | 0, 99) | 0;
1166
1301
  break e;
1167
1302
  }
1168
1303
  default: {
@@ -1209,14 +1344,14 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1209
1344
  }
1210
1345
  case 110: {
1211
1346
  e4 = e4 + -2 | 0;
1212
- if (B(e4, 105) | 0)
1347
+ if (B2(e4, 105) | 0)
1213
1348
  e4 = 1;
1214
1349
  else
1215
1350
  e4 = O(e4, 142, 5) | 0;
1216
1351
  break;
1217
1352
  }
1218
1353
  case 111: {
1219
- e4 = B(e4 + -2 | 0, 100) | 0;
1354
+ e4 = B2(e4 + -2 | 0, 100) | 0;
1220
1355
  break;
1221
1356
  }
1222
1357
  case 114: {
@@ -1230,7 +1365,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1230
1365
  case 119:
1231
1366
  switch (s3[e4 + -2 >> 1] | 0) {
1232
1367
  case 101: {
1233
- e4 = B(e4 + -4 | 0, 110) | 0;
1368
+ e4 = B2(e4 + -4 | 0, 110) | 0;
1234
1369
  break e;
1235
1370
  }
1236
1371
  case 111: {
@@ -1248,119 +1383,6 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1248
1383
  } while (0);
1249
1384
  return e4 | 0;
1250
1385
  }
1251
- function o3(e4, a4) {
1252
- e4 = e4 | 0;
1253
- a4 = a4 | 0;
1254
- var r4 = 0, i4 = 0;
1255
- r4 = (t3[70] | 0) + 2 | 0;
1256
- switch (a4 << 16 >> 16) {
1257
- case 39: {
1258
- d3(39);
1259
- i4 = 5;
1260
- break;
1261
- }
1262
- case 34: {
1263
- d3(34);
1264
- i4 = 5;
1265
- break;
1266
- }
1267
- default:
1268
- T2();
1269
- }
1270
- do {
1271
- if ((i4 | 0) == 5) {
1272
- A2(e4, r4, t3[70] | 0, 1);
1273
- t3[70] = (t3[70] | 0) + 2;
1274
- i4 = (w2(0) | 0) << 16 >> 16 == 97;
1275
- a4 = t3[70] | 0;
1276
- if (i4 ? (m2(a4 + 2 | 0, 78, 10) | 0) == 0 : 0) {
1277
- t3[70] = a4 + 12;
1278
- if ((w2(1) | 0) << 16 >> 16 != 123) {
1279
- t3[70] = a4;
1280
- break;
1281
- }
1282
- e4 = t3[70] | 0;
1283
- r4 = e4;
1284
- e:
1285
- while (1) {
1286
- t3[70] = r4 + 2;
1287
- r4 = w2(1) | 0;
1288
- switch (r4 << 16 >> 16) {
1289
- case 39: {
1290
- d3(39);
1291
- t3[70] = (t3[70] | 0) + 2;
1292
- r4 = w2(1) | 0;
1293
- break;
1294
- }
1295
- case 34: {
1296
- d3(34);
1297
- t3[70] = (t3[70] | 0) + 2;
1298
- r4 = w2(1) | 0;
1299
- break;
1300
- }
1301
- default:
1302
- r4 = q(r4) | 0;
1303
- }
1304
- if (r4 << 16 >> 16 != 58) {
1305
- i4 = 16;
1306
- break;
1307
- }
1308
- t3[70] = (t3[70] | 0) + 2;
1309
- switch ((w2(1) | 0) << 16 >> 16) {
1310
- case 39: {
1311
- d3(39);
1312
- break;
1313
- }
1314
- case 34: {
1315
- d3(34);
1316
- break;
1317
- }
1318
- default: {
1319
- i4 = 20;
1320
- break e;
1321
- }
1322
- }
1323
- t3[70] = (t3[70] | 0) + 2;
1324
- switch ((w2(1) | 0) << 16 >> 16) {
1325
- case 125: {
1326
- i4 = 25;
1327
- break e;
1328
- }
1329
- case 44:
1330
- break;
1331
- default: {
1332
- i4 = 24;
1333
- break e;
1334
- }
1335
- }
1336
- t3[70] = (t3[70] | 0) + 2;
1337
- if ((w2(1) | 0) << 16 >> 16 == 125) {
1338
- i4 = 25;
1339
- break;
1340
- }
1341
- r4 = t3[70] | 0;
1342
- }
1343
- if ((i4 | 0) == 16) {
1344
- t3[70] = a4;
1345
- break;
1346
- } else if ((i4 | 0) == 20) {
1347
- t3[70] = a4;
1348
- break;
1349
- } else if ((i4 | 0) == 24) {
1350
- t3[70] = a4;
1351
- break;
1352
- } else if ((i4 | 0) == 25) {
1353
- i4 = t3[61] | 0;
1354
- t3[i4 + 16 >> 2] = e4;
1355
- t3[i4 + 12 >> 2] = (t3[70] | 0) + 2;
1356
- break;
1357
- }
1358
- }
1359
- t3[70] = a4 + -2;
1360
- }
1361
- } while (0);
1362
- return;
1363
- }
1364
1386
  function h3() {
1365
1387
  var e4 = 0, a4 = 0, r4 = 0, i4 = 0;
1366
1388
  a4 = t3[71] | 0;
@@ -1415,7 +1437,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1415
1437
  }
1416
1438
  return;
1417
1439
  }
1418
- function w2(e4) {
1440
+ function w3(e4) {
1419
1441
  e4 = e4 | 0;
1420
1442
  var a4 = 0, r4 = 0, i4 = 0;
1421
1443
  r4 = t3[70] | 0;
@@ -1479,7 +1501,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1479
1501
  a4 = (s3[a4 >> 1] | 0) == 10 ? a4 : r4;
1480
1502
  } else
1481
1503
  a4 = r4;
1482
- } else if (Z2(r4) | 0) {
1504
+ } else if (Z(r4) | 0) {
1483
1505
  a4 = 9;
1484
1506
  break;
1485
1507
  } else
@@ -1503,7 +1525,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1503
1525
  f4 = f4 ? 0 : a4;
1504
1526
  if (i4 << 16 >> 16 == 97) {
1505
1527
  t3[70] = r4 + 4;
1506
- r4 = w2(1) | 0;
1528
+ r4 = w3(1) | 0;
1507
1529
  e4 = t3[70] | 0;
1508
1530
  if (W(r4) | 0) {
1509
1531
  d3(r4);
@@ -1513,7 +1535,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1513
1535
  q(r4) | 0;
1514
1536
  a4 = t3[70] | 0;
1515
1537
  }
1516
- i4 = w2(1) | 0;
1538
+ i4 = w3(1) | 0;
1517
1539
  r4 = t3[70] | 0;
1518
1540
  }
1519
1541
  if ((r4 | 0) != (e4 | 0))
@@ -1661,7 +1683,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1661
1683
  if (c4 >>> 0 >= r4 >>> 0)
1662
1684
  break;
1663
1685
  i4 = s3[a4 >> 1] | 0;
1664
- if (!e4 ? Z2(i4) | 0 : 0)
1686
+ if (!e4 ? Z(i4) | 0 : 0)
1665
1687
  break;
1666
1688
  if (i4 << 16 >> 16 == 42 ? (s3[c4 + 4 >> 1] | 0) == 47 : 0) {
1667
1689
  f4 = 8;
@@ -1843,7 +1865,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1843
1865
  t3[s4 + 16 >> 2] = 0;
1844
1866
  return;
1845
1867
  }
1846
- function j(e4) {
1868
+ function j2(e4) {
1847
1869
  e4 = e4 | 0;
1848
1870
  switch (s3[e4 >> 1] | 0) {
1849
1871
  case 107: {
@@ -1862,7 +1884,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
1862
1884
  }
1863
1885
  return e4 | 0;
1864
1886
  }
1865
- function B(e4, a4) {
1887
+ function B2(e4, a4) {
1866
1888
  e4 = e4 | 0;
1867
1889
  a4 = a4 | 0;
1868
1890
  var r4 = 0;
@@ -2009,7 +2031,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2009
2031
  e4 = e4 - (t3[3] | 0) >> 1;
2010
2032
  return e4 | 0;
2011
2033
  }
2012
- function L() {
2034
+ function L2() {
2013
2035
  var e4 = 0;
2014
2036
  e4 = t3[(t3[60] | 0) + 8 >> 2] | 0;
2015
2037
  if (!e4)
@@ -2070,7 +2092,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2070
2092
  function Y() {
2071
2093
  return (t3[(t3[60] | 0) + 4 >> 2] | 0) - (t3[3] | 0) >> 1 | 0;
2072
2094
  }
2073
- function Z2(e4) {
2095
+ function Z(e4) {
2074
2096
  e4 = e4 | 0;
2075
2097
  return e4 << 16 >> 16 == 13 | e4 << 16 >> 16 == 10 | 0;
2076
2098
  }
@@ -2099,24 +2121,24 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2099
2121
  n3 = e4 + 992 + 15 & -16;
2100
2122
  return 992;
2101
2123
  }
2102
- return { su: te, ai: M2, e: se, ee: Y, ele: J, els: L, es: ee, f: ie, id: z2, ie: N2, ip: ae, is: _2, p: b3, re: R2, ri: Q, sa: S2, se: K, ses: re, ss: X };
2124
+ return { su: te, ai: M2, e: se, ee: Y, ele: J, els: L2, es: ee, f: ie, id: z2, ie: N2, ip: ae, is: _2, p: b2, re: R2, ri: Q, sa: S2, se: K, ses: re, ss: X };
2103
2125
  }("undefined" != typeof self ? self : commonjsGlobal, {}, a2), r2 = e2.su(i2 - (2 << 17));
2104
2126
  }
2105
2127
  const h2 = c$1.length + 1;
2106
2128
  e2.ses(r2), e2.sa(h2 - 1), s2(c$1, new Uint16Array(a2, r2, h2)), e2.p() || (n2 = e2.e(), o2());
2107
- const w = [], d2 = [];
2129
+ const w2 = [], d2 = [];
2108
2130
  for (; e2.ri(); ) {
2109
2131
  const a3 = e2.is(), r3 = e2.ie(), i3 = e2.ai(), s3 = e2.id(), t3 = e2.ss(), f3 = e2.se();
2110
2132
  let n3;
2111
- e2.ip() && (n3 = b2(-1 === s3 ? a3 : a3 + 1, c$1.charCodeAt(-1 === s3 ? a3 - 1 : a3))), w.push({ n: n3, s: a3, e: r3, ss: t3, se: f3, d: s3, a: i3 });
2133
+ e2.ip() && (n3 = b(-1 === s3 ? a3 : a3 + 1, c$1.charCodeAt(-1 === s3 ? a3 - 1 : a3))), w2.push({ n: n3, s: a3, e: r3, ss: t3, se: f3, d: s3, a: i3 });
2112
2134
  }
2113
2135
  for (; e2.re(); ) {
2114
2136
  const a3 = e2.es(), r3 = e2.ee(), i3 = e2.els(), s3 = e2.ele(), t3 = c$1.charCodeAt(a3), f3 = i3 >= 0 ? c$1.charCodeAt(i3) : -1;
2115
- d2.push({ s: a3, e: r3, ls: i3, le: s3, n: 34 === t3 || 39 === t3 ? b2(a3 + 1, t3) : c$1.slice(a3, r3), ln: i3 < 0 ? void 0 : 34 === f3 || 39 === f3 ? b2(i3 + 1, f3) : c$1.slice(i3, s3) });
2137
+ d2.push({ s: a3, e: r3, ls: i3, le: s3, n: 34 === t3 || 39 === t3 ? b(a3 + 1, t3) : c$1.slice(a3, r3), ln: i3 < 0 ? void 0 : 34 === f3 || 39 === f3 ? b(i3 + 1, f3) : c$1.slice(i3, s3) });
2116
2138
  }
2117
- return [w, d2, !!e2.f()];
2139
+ return [w2, d2, !!e2.f()];
2118
2140
  }
2119
- function b2(e3, a3) {
2141
+ function b(e3, a3) {
2120
2142
  n2 = e3;
2121
2143
  let r3 = "", i3 = n2;
2122
2144
  for (; ; ) {
@@ -2139,9 +2161,10 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2139
2161
  return String.fromCharCode(k2(2));
2140
2162
  case 117:
2141
2163
  return function() {
2142
- let e4;
2143
- 123 === c$1.charCodeAt(n2) ? (++n2, e4 = k2(c$1.indexOf("}", n2) - n2), ++n2, e4 > 1114111 && o2()) : e4 = k2(4);
2144
- return e4 <= 65535 ? String.fromCharCode(e4) : (e4 -= 65536, String.fromCharCode(55296 + (e4 >> 10), 56320 + (1023 & e4)));
2164
+ const e4 = c$1.charCodeAt(n2);
2165
+ let a3;
2166
+ 123 === e4 ? (++n2, a3 = k2(c$1.indexOf("}", n2) - n2), ++n2, a3 > 1114111 && o2()) : a3 = k2(4);
2167
+ return a3 <= 65535 ? String.fromCharCode(a3) : (a3 -= 65536, String.fromCharCode(55296 + (a3 >> 10), 56320 + (1023 & a3)));
2145
2168
  }();
2146
2169
  case 116:
2147
2170
  return " ";
@@ -2260,11 +2283,11 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2260
2283
  let importMap = { imports: {}, scopes: {} };
2261
2284
  let baselinePassthrough;
2262
2285
  const initPromise = featureDetectionPromise.then(() => {
2263
- baselinePassthrough = esmsInitOptions.polyfillEnable !== true && supportsDynamicImport && supportsImportMeta && supportsImportMaps && (!jsonModulesEnabled || supportsJsonAssertions) && (!cssModulesEnabled || supportsCssAssertions) && !importMapSrcOrLazy && true;
2286
+ baselinePassthrough = esmsInitOptions.polyfillEnable !== true && supportsDynamicImport && supportsImportMeta && supportsImportMaps && (!jsonModulesEnabled || supportsJsonAssertions) && (!cssModulesEnabled || supportsCssAssertions) && !importMapSrcOrLazy;
2264
2287
  if (hasDocument) {
2265
2288
  if (!supportsImportMaps) {
2266
- const supports = HTMLScriptElement.supports || ((type) => type === "classic" || type === "module");
2267
- HTMLScriptElement.supports = (type) => type === "importmap" || supports(type);
2289
+ const supports2 = HTMLScriptElement.supports || ((type) => type === "classic" || type === "module");
2290
+ HTMLScriptElement.supports = (type) => type === "importmap" || supports2(type);
2268
2291
  }
2269
2292
  if (shimMode || !baselinePassthrough) {
2270
2293
  new MutationObserver((mutations) => {
@@ -2323,7 +2346,7 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2323
2346
  lastLoad = void 0;
2324
2347
  resolveDeps(load, seen2);
2325
2348
  await lastStaticLoadPromise2;
2326
- if (source && !shimMode && !load.n && true) {
2349
+ if (source && !shimMode && !load.n) {
2327
2350
  if (nativelyLoaded)
2328
2351
  return;
2329
2352
  if (revokeBlobURLs)
@@ -2541,8 +2564,8 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2541
2564
  load.n = true;
2542
2565
  if (d2 !== -1 || !n3)
2543
2566
  return;
2544
- const { r: r3, b: b3 } = await resolve(n3, load.r || load.u);
2545
- if (b3 && (!supportsImportMaps || importMapSrcOrLazy))
2567
+ const { r: r3, b: b2 } = await resolve(n3, load.r || load.u);
2568
+ if (b2 && (!supportsImportMaps || importMapSrcOrLazy))
2546
2569
  load.n = true;
2547
2570
  if (d2 !== -1)
2548
2571
  return;
@@ -2582,8 +2605,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2582
2605
  let lastStaticLoadPromise = Promise.resolve();
2583
2606
  let domContentLoadedCnt = 1;
2584
2607
  function domContentLoadedCheck() {
2585
- if (--domContentLoadedCnt === 0 && !noLoadEventRetriggers && (shimMode || !baselinePassthrough))
2608
+ if (--domContentLoadedCnt === 0 && !noLoadEventRetriggers && (shimMode || !baselinePassthrough)) {
2586
2609
  document.dispatchEvent(new Event("DOMContentLoaded"));
2610
+ }
2587
2611
  }
2588
2612
  if (hasDocument) {
2589
2613
  document.addEventListener("DOMContentLoaded", async () => {
@@ -2593,8 +2617,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2593
2617
  }
2594
2618
  let readyStateCompleteCnt = 1;
2595
2619
  function readyStateCompleteCheck() {
2596
- if (--readyStateCompleteCnt === 0 && !noLoadEventRetriggers && (shimMode || !baselinePassthrough))
2620
+ if (--readyStateCompleteCnt === 0 && !noLoadEventRetriggers && (shimMode || !baselinePassthrough)) {
2597
2621
  document.dispatchEvent(new Event("readystatechange"));
2622
+ }
2598
2623
  }
2599
2624
  const hasNext = (script) => script.nextSibling || script.parentNode && hasNext(script.parentNode);
2600
2625
  const epCheck = (script, ready) => script.ep || !ready && (!script.src && !script.innerHTML || !hasNext(script)) || script.getAttribute("noshim") !== null || !(script.ep = true);
@@ -2629,8 +2654,9 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2629
2654
  if (isDomContentLoadedScript)
2630
2655
  domContentLoadedCnt++;
2631
2656
  const loadPromise = topLevelLoad(script.src || baseUrl, getFetchOpts(script), !script.src && script.innerHTML, !shimMode, isBlockingReadyScript && lastStaticLoadPromise).then(() => {
2632
- if (shimMode)
2657
+ if (shimMode) {
2633
2658
  script.dispatchEvent(new Event("load"));
2659
+ }
2634
2660
  }).catch(throwError);
2635
2661
  if (isBlockingReadyScript)
2636
2662
  lastStaticLoadPromise = loadPromise.then(readyStateCompleteCheck);
@@ -2647,24 +2673,24 @@ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof win
2647
2673
  fetchCache[link.href] = fetchModule(link.href, getFetchOpts(link));
2648
2674
  }
2649
2675
  })();
2650
- var extendStatics = function(d2, b2) {
2651
- extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
2652
- d3.__proto__ = b3;
2653
- } || function(d3, b3) {
2654
- for (var p2 in b3)
2655
- if (Object.prototype.hasOwnProperty.call(b3, p2))
2656
- d3[p2] = b3[p2];
2676
+ var extendStatics = function(d2, b) {
2677
+ extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b2) {
2678
+ d3.__proto__ = b2;
2679
+ } || function(d3, b2) {
2680
+ for (var p2 in b2)
2681
+ if (Object.prototype.hasOwnProperty.call(b2, p2))
2682
+ d3[p2] = b2[p2];
2657
2683
  };
2658
- return extendStatics(d2, b2);
2684
+ return extendStatics(d2, b);
2659
2685
  };
2660
- function __extends(d2, b2) {
2661
- if (typeof b2 !== "function" && b2 !== null)
2662
- throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
2663
- extendStatics(d2, b2);
2686
+ function __extends(d2, b) {
2687
+ if (typeof b !== "function" && b !== null)
2688
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
2689
+ extendStatics(d2, b);
2664
2690
  function __() {
2665
2691
  this.constructor = d2;
2666
2692
  }
2667
- d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
2693
+ d2.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2668
2694
  }
2669
2695
  function __awaiter(thisArg, _arguments, P2, generator) {
2670
2696
  function adopt(value) {
@@ -2828,8 +2854,8 @@ function __asyncGenerator(thisArg, _arguments, generator) {
2828
2854
  function verb(n2) {
2829
2855
  if (g2[n2])
2830
2856
  i2[n2] = function(v2) {
2831
- return new Promise(function(a2, b2) {
2832
- q.push([n2, v2, a2, b2]) > 1 || resume(n2, v2);
2857
+ return new Promise(function(a2, b) {
2858
+ q.push([n2, v2, a2, b]) > 1 || resume(n2, v2);
2833
2859
  });
2834
2860
  };
2835
2861
  }
@@ -2911,7 +2937,7 @@ var Subscription = function() {
2911
2937
  this._finalizers = null;
2912
2938
  }
2913
2939
  Subscription2.prototype.unsubscribe = function() {
2914
- var e_1, _a, e_2, _b;
2940
+ var e_1, _a2, e_2, _b;
2915
2941
  var errors;
2916
2942
  if (!this.closed) {
2917
2943
  this.closed = true;
@@ -2928,8 +2954,8 @@ var Subscription = function() {
2928
2954
  e_1 = { error: e_1_1 };
2929
2955
  } finally {
2930
2956
  try {
2931
- if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return))
2932
- _a.call(_parentage_1);
2957
+ if (_parentage_1_1 && !_parentage_1_1.done && (_a2 = _parentage_1.return))
2958
+ _a2.call(_parentage_1);
2933
2959
  } finally {
2934
2960
  if (e_1)
2935
2961
  throw e_1.error;
@@ -2982,7 +3008,7 @@ var Subscription = function() {
2982
3008
  }
2983
3009
  };
2984
3010
  Subscription2.prototype.add = function(teardown) {
2985
- var _a;
3011
+ var _a2;
2986
3012
  if (teardown && teardown !== this) {
2987
3013
  if (this.closed) {
2988
3014
  execFinalizer(teardown);
@@ -2993,7 +3019,7 @@ var Subscription = function() {
2993
3019
  }
2994
3020
  teardown._addParent(this);
2995
3021
  }
2996
- (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);
3022
+ (this._finalizers = (_a2 = this._finalizers) !== null && _a2 !== void 0 ? _a2 : []).push(teardown);
2997
3023
  }
2998
3024
  }
2999
3025
  };
@@ -3267,7 +3293,7 @@ var Observable = function() {
3267
3293
  var _this = this;
3268
3294
  var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error2, complete);
3269
3295
  errorContext(function() {
3270
- var _a = _this, operator = _a.operator, source = _a.source;
3296
+ var _a2 = _this, operator = _a2.operator, source = _a2.source;
3271
3297
  subscriber.add(operator ? operator.call(subscriber, source) : source ? _this._subscribe(subscriber) : _this._trySubscribe(subscriber));
3272
3298
  });
3273
3299
  return subscriber;
@@ -3299,8 +3325,8 @@ var Observable = function() {
3299
3325
  });
3300
3326
  };
3301
3327
  Observable2.prototype._subscribe = function(subscriber) {
3302
- var _a;
3303
- return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);
3328
+ var _a2;
3329
+ return (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber);
3304
3330
  };
3305
3331
  Observable2.prototype[observable] = function() {
3306
3332
  return this;
@@ -3332,8 +3358,8 @@ var Observable = function() {
3332
3358
  return Observable2;
3333
3359
  }();
3334
3360
  function getPromiseCtor(promiseCtor) {
3335
- var _a;
3336
- return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;
3361
+ var _a2;
3362
+ return (_a2 = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a2 !== void 0 ? _a2 : Promise;
3337
3363
  }
3338
3364
  function isObserver(value) {
3339
3365
  return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);
@@ -3395,11 +3421,11 @@ var OperatorSubscriber = function(_super) {
3395
3421
  return _this;
3396
3422
  }
3397
3423
  OperatorSubscriber2.prototype.unsubscribe = function() {
3398
- var _a;
3424
+ var _a2;
3399
3425
  if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
3400
3426
  var closed_1 = this.closed;
3401
3427
  _super.prototype.unsubscribe.call(this);
3402
- !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));
3428
+ !closed_1 && ((_a2 = this.onFinalize) === null || _a2 === void 0 ? void 0 : _a2.call(this));
3403
3429
  }
3404
3430
  };
3405
3431
  return OperatorSubscriber2;
@@ -3436,7 +3462,7 @@ var Subject = function(_super) {
3436
3462
  Subject2.prototype.next = function(value) {
3437
3463
  var _this = this;
3438
3464
  errorContext(function() {
3439
- var e_1, _a;
3465
+ var e_1, _a2;
3440
3466
  _this._throwIfClosed();
3441
3467
  if (!_this.isStopped) {
3442
3468
  if (!_this.currentObservers) {
@@ -3451,8 +3477,8 @@ var Subject = function(_super) {
3451
3477
  e_1 = { error: e_1_1 };
3452
3478
  } finally {
3453
3479
  try {
3454
- if (_c && !_c.done && (_a = _b.return))
3455
- _a.call(_b);
3480
+ if (_c && !_c.done && (_a2 = _b.return))
3481
+ _a2.call(_b);
3456
3482
  } finally {
3457
3483
  if (e_1)
3458
3484
  throw e_1.error;
@@ -3494,8 +3520,8 @@ var Subject = function(_super) {
3494
3520
  };
3495
3521
  Object.defineProperty(Subject2.prototype, "observed", {
3496
3522
  get: function() {
3497
- var _a;
3498
- return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;
3523
+ var _a2;
3524
+ return ((_a2 = this.observers) === null || _a2 === void 0 ? void 0 : _a2.length) > 0;
3499
3525
  },
3500
3526
  enumerable: false,
3501
3527
  configurable: true
@@ -3511,7 +3537,7 @@ var Subject = function(_super) {
3511
3537
  };
3512
3538
  Subject2.prototype._innerSubscribe = function(subscriber) {
3513
3539
  var _this = this;
3514
- var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;
3540
+ var _a2 = this, hasError = _a2.hasError, isStopped = _a2.isStopped, observers = _a2.observers;
3515
3541
  if (hasError || isStopped) {
3516
3542
  return EMPTY_SUBSCRIPTION;
3517
3543
  }
@@ -3523,7 +3549,7 @@ var Subject = function(_super) {
3523
3549
  });
3524
3550
  };
3525
3551
  Subject2.prototype._checkFinalizedStatuses = function(subscriber) {
3526
- var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;
3552
+ var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, isStopped = _a2.isStopped;
3527
3553
  if (hasError) {
3528
3554
  subscriber.error(thrownError);
3529
3555
  } else if (isStopped) {
@@ -3549,20 +3575,20 @@ var AnonymousSubject = function(_super) {
3549
3575
  return _this;
3550
3576
  }
3551
3577
  AnonymousSubject2.prototype.next = function(value) {
3552
- var _a, _b;
3553
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);
3578
+ var _a2, _b;
3579
+ (_b = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.next) === null || _b === void 0 ? void 0 : _b.call(_a2, value);
3554
3580
  };
3555
3581
  AnonymousSubject2.prototype.error = function(err) {
3556
- var _a, _b;
3557
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);
3582
+ var _a2, _b;
3583
+ (_b = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.error) === null || _b === void 0 ? void 0 : _b.call(_a2, err);
3558
3584
  };
3559
3585
  AnonymousSubject2.prototype.complete = function() {
3560
- var _a, _b;
3561
- (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);
3586
+ var _a2, _b;
3587
+ (_b = (_a2 = this.destination) === null || _a2 === void 0 ? void 0 : _a2.complete) === null || _b === void 0 ? void 0 : _b.call(_a2);
3562
3588
  };
3563
3589
  AnonymousSubject2.prototype._subscribe = function(subscriber) {
3564
- var _a, _b;
3565
- return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
3590
+ var _a2, _b;
3591
+ return (_b = (_a2 = this.source) === null || _a2 === void 0 ? void 0 : _a2.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;
3566
3592
  };
3567
3593
  return AnonymousSubject2;
3568
3594
  }(Subject);
@@ -3586,7 +3612,7 @@ var BehaviorSubject = function(_super) {
3586
3612
  return subscription;
3587
3613
  };
3588
3614
  BehaviorSubject2.prototype.getValue = function() {
3589
- var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value;
3615
+ var _a2 = this, hasError = _a2.hasError, thrownError = _a2.thrownError, _value = _a2._value;
3590
3616
  if (hasError) {
3591
3617
  throw thrownError;
3592
3618
  }
@@ -3628,7 +3654,7 @@ var ReplaySubject = function(_super) {
3628
3654
  return _this;
3629
3655
  }
3630
3656
  ReplaySubject2.prototype.next = function(value) {
3631
- var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime;
3657
+ var _a2 = this, isStopped = _a2.isStopped, _buffer = _a2._buffer, _infiniteTimeWindow = _a2._infiniteTimeWindow, _timestampProvider = _a2._timestampProvider, _windowTime = _a2._windowTime;
3632
3658
  if (!isStopped) {
3633
3659
  _buffer.push(value);
3634
3660
  !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);
@@ -3640,7 +3666,7 @@ var ReplaySubject = function(_super) {
3640
3666
  this._throwIfClosed();
3641
3667
  this._trimBuffer();
3642
3668
  var subscription = this._innerSubscribe(subscriber);
3643
- var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer;
3669
+ var _a2 = this, _infiniteTimeWindow = _a2._infiniteTimeWindow, _buffer = _a2._buffer;
3644
3670
  var copy = _buffer.slice();
3645
3671
  for (var i2 = 0; i2 < copy.length && !subscriber.closed; i2 += _infiniteTimeWindow ? 1 : 2) {
3646
3672
  subscriber.next(copy[i2]);
@@ -3649,7 +3675,7 @@ var ReplaySubject = function(_super) {
3649
3675
  return subscription;
3650
3676
  };
3651
3677
  ReplaySubject2.prototype._trimBuffer = function() {
3652
- var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow;
3678
+ var _a2 = this, _bufferSize = _a2._bufferSize, _timestampProvider = _a2._timestampProvider, _buffer = _a2._buffer, _infiniteTimeWindow = _a2._infiniteTimeWindow;
3653
3679
  var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;
3654
3680
  _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);
3655
3681
  if (!_infiniteTimeWindow) {
@@ -3701,7 +3727,7 @@ var AsyncAction = function(_super) {
3701
3727
  return _this;
3702
3728
  }
3703
3729
  AsyncAction2.prototype.schedule = function(state, delay) {
3704
- var _a;
3730
+ var _a2;
3705
3731
  if (delay === void 0) {
3706
3732
  delay = 0;
3707
3733
  }
@@ -3716,7 +3742,7 @@ var AsyncAction = function(_super) {
3716
3742
  }
3717
3743
  this.pending = true;
3718
3744
  this.delay = delay;
3719
- this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);
3745
+ this.id = (_a2 = this.id) !== null && _a2 !== void 0 ? _a2 : this.requestAsyncId(scheduler, this.id, delay);
3720
3746
  return this;
3721
3747
  };
3722
3748
  AsyncAction2.prototype.requestAsyncId = function(scheduler, _id, delay) {
@@ -3765,7 +3791,7 @@ var AsyncAction = function(_super) {
3765
3791
  };
3766
3792
  AsyncAction2.prototype.unsubscribe = function() {
3767
3793
  if (!this.closed) {
3768
- var _a = this, id = _a.id, scheduler = _a.scheduler;
3794
+ var _a2 = this, id = _a2.id, scheduler = _a2.scheduler;
3769
3795
  var actions = scheduler.actions;
3770
3796
  this.work = this.state = this.scheduler = null;
3771
3797
  this.pending = false;
@@ -3831,6 +3857,7 @@ var AsyncScheduler = function(_super) {
3831
3857
  return AsyncScheduler2;
3832
3858
  }(Scheduler);
3833
3859
  var asyncScheduler = new AsyncScheduler(AsyncAction);
3860
+ var async = asyncScheduler;
3834
3861
  var EMPTY = new Observable(function(subscriber) {
3835
3862
  return subscriber.complete();
3836
3863
  });
@@ -3870,7 +3897,7 @@ function isIterable(input) {
3870
3897
  }
3871
3898
  function readableStreamLikeToAsyncGenerator(readableStream) {
3872
3899
  return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
3873
- var reader, _a, value, done;
3900
+ var reader, _a2, value, done;
3874
3901
  return __generator(this, function(_b) {
3875
3902
  switch (_b.label) {
3876
3903
  case 0:
@@ -3882,7 +3909,7 @@ function readableStreamLikeToAsyncGenerator(readableStream) {
3882
3909
  case 2:
3883
3910
  return [4, __await(reader.read())];
3884
3911
  case 3:
3885
- _a = _b.sent(), value = _a.value, done = _a.done;
3912
+ _a2 = _b.sent(), value = _a2.value, done = _a2.done;
3886
3913
  if (!done)
3887
3914
  return [3, 5];
3888
3915
  return [4, __await(void 0)];
@@ -3966,7 +3993,7 @@ function fromPromise(promise) {
3966
3993
  }
3967
3994
  function fromIterable(iterable) {
3968
3995
  return new Observable(function(subscriber) {
3969
- var e_1, _a;
3996
+ var e_1, _a2;
3970
3997
  try {
3971
3998
  for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
3972
3999
  var value = iterable_1_1.value;
@@ -3979,8 +4006,8 @@ function fromIterable(iterable) {
3979
4006
  e_1 = { error: e_1_1 };
3980
4007
  } finally {
3981
4008
  try {
3982
- if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return))
3983
- _a.call(iterable_1);
4009
+ if (iterable_1_1 && !iterable_1_1.done && (_a2 = iterable_1.return))
4010
+ _a2.call(iterable_1);
3984
4011
  } finally {
3985
4012
  if (e_1)
3986
4013
  throw e_1.error;
@@ -4001,7 +4028,7 @@ function fromReadableStreamLike(readableStream) {
4001
4028
  }
4002
4029
  function process(asyncIterable, subscriber) {
4003
4030
  var asyncIterable_1, asyncIterable_1_1;
4004
- var e_2, _a;
4031
+ var e_2, _a2;
4005
4032
  return __awaiter(this, void 0, void 0, function() {
4006
4033
  var value, e_2_1;
4007
4034
  return __generator(this, function(_b) {
@@ -4031,9 +4058,9 @@ function process(asyncIterable, subscriber) {
4031
4058
  return [3, 11];
4032
4059
  case 6:
4033
4060
  _b.trys.push([6, , 9, 10]);
4034
- if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)))
4061
+ if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a2 = asyncIterable_1.return)))
4035
4062
  return [3, 8];
4036
- return [4, _a.call(asyncIterable_1)];
4063
+ return [4, _a2.call(asyncIterable_1)];
4037
4064
  case 7:
4038
4065
  _b.sent();
4039
4066
  _b.label = 8;
@@ -4129,11 +4156,11 @@ function scheduleIterable(input, scheduler) {
4129
4156
  executeSchedule(subscriber, scheduler, function() {
4130
4157
  iterator$1 = input[iterator]();
4131
4158
  executeSchedule(subscriber, scheduler, function() {
4132
- var _a;
4159
+ var _a2;
4133
4160
  var value;
4134
4161
  var done;
4135
4162
  try {
4136
- _a = iterator$1.next(), value = _a.value, done = _a.done;
4163
+ _a2 = iterator$1.next(), value = _a2.value, done = _a2.done;
4137
4164
  } catch (err) {
4138
4165
  subscriber.error(err);
4139
4166
  return;
@@ -4236,6 +4263,9 @@ function lastValueFrom(source, config2) {
4236
4263
  });
4237
4264
  });
4238
4265
  }
4266
+ function isValidDate(value) {
4267
+ return value instanceof Date && !isNaN(value);
4268
+ }
4239
4269
  function map(project, thisArg) {
4240
4270
  return operate(function(source, subscriber) {
4241
4271
  var index = 0;
@@ -4308,8 +4338,8 @@ function mergeMap(project, resultSelector, concurrent) {
4308
4338
  }
4309
4339
  if (isFunction(resultSelector)) {
4310
4340
  return mergeMap(function(a2, i2) {
4311
- return map(function(b2, ii) {
4312
- return resultSelector(a2, b2, i2, ii);
4341
+ return map(function(b, ii) {
4342
+ return resultSelector(a2, b, i2, ii);
4313
4343
  })(innerFrom(project(a2, i2)));
4314
4344
  }, concurrent);
4315
4345
  } else if (typeof resultSelector === "number") {
@@ -4319,6 +4349,39 @@ function mergeMap(project, resultSelector, concurrent) {
4319
4349
  return mergeInternals(source, subscriber, project, concurrent);
4320
4350
  });
4321
4351
  }
4352
+ function timer(dueTime, intervalOrScheduler, scheduler) {
4353
+ if (dueTime === void 0) {
4354
+ dueTime = 0;
4355
+ }
4356
+ if (scheduler === void 0) {
4357
+ scheduler = async;
4358
+ }
4359
+ var intervalDuration = -1;
4360
+ if (intervalOrScheduler != null) {
4361
+ if (isScheduler(intervalOrScheduler)) {
4362
+ scheduler = intervalOrScheduler;
4363
+ } else {
4364
+ intervalDuration = intervalOrScheduler;
4365
+ }
4366
+ }
4367
+ return new Observable(function(subscriber) {
4368
+ var due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;
4369
+ if (due < 0) {
4370
+ due = 0;
4371
+ }
4372
+ var n2 = 0;
4373
+ return scheduler.schedule(function() {
4374
+ if (!subscriber.closed) {
4375
+ subscriber.next(n2++);
4376
+ if (0 <= intervalDuration) {
4377
+ this.schedule(void 0, intervalDuration);
4378
+ } else {
4379
+ subscriber.complete();
4380
+ }
4381
+ }
4382
+ }, due);
4383
+ });
4384
+ }
4322
4385
  function filter(predicate, thisArg) {
4323
4386
  return operate(function(source, subscriber) {
4324
4387
  var index = 0;
@@ -4328,12 +4391,12 @@ function filter(predicate, thisArg) {
4328
4391
  });
4329
4392
  }
4330
4393
  function bufferTime(bufferTimeSpan) {
4331
- var _a, _b;
4394
+ var _a2, _b;
4332
4395
  var otherArgs = [];
4333
4396
  for (var _i = 1; _i < arguments.length; _i++) {
4334
4397
  otherArgs[_i - 1] = arguments[_i];
4335
4398
  }
4336
- var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler;
4399
+ var scheduler = (_a2 = popScheduler(otherArgs)) !== null && _a2 !== void 0 ? _a2 : asyncScheduler;
4337
4400
  var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;
4338
4401
  var maxBufferSize = otherArgs[1] || Infinity;
4339
4402
  return operate(function(source, subscriber) {
@@ -4368,7 +4431,7 @@ function bufferTime(bufferTimeSpan) {
4368
4431
  }
4369
4432
  startBuffer();
4370
4433
  var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function(value) {
4371
- var e_1, _a2;
4434
+ var e_1, _a3;
4372
4435
  var recordsCopy = bufferRecords.slice();
4373
4436
  try {
4374
4437
  for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
@@ -4381,8 +4444,8 @@ function bufferTime(bufferTimeSpan) {
4381
4444
  e_1 = { error: e_1_1 };
4382
4445
  } finally {
4383
4446
  try {
4384
- if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a2 = recordsCopy_1.return))
4385
- _a2.call(recordsCopy_1);
4447
+ if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a3 = recordsCopy_1.return))
4448
+ _a3.call(recordsCopy_1);
4386
4449
  } finally {
4387
4450
  if (e_1)
4388
4451
  throw e_1.error;
@@ -4401,6 +4464,9 @@ function bufferTime(bufferTimeSpan) {
4401
4464
  source.subscribe(bufferTimeSubscriber);
4402
4465
  });
4403
4466
  }
4467
+ function concatMap(project, resultSelector) {
4468
+ return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);
4469
+ }
4404
4470
  function take(count) {
4405
4471
  return count <= 0 ? function() {
4406
4472
  return EMPTY;
@@ -4428,6 +4494,66 @@ function pairwise() {
4428
4494
  }));
4429
4495
  });
4430
4496
  }
4497
+ function tap(observerOrNext, error2, complete) {
4498
+ var tapObserver = isFunction(observerOrNext) || error2 || complete ? { next: observerOrNext, error: error2, complete } : observerOrNext;
4499
+ return tapObserver ? operate(function(source, subscriber) {
4500
+ var _a2;
4501
+ (_a2 = tapObserver.subscribe) === null || _a2 === void 0 ? void 0 : _a2.call(tapObserver);
4502
+ var isUnsub = true;
4503
+ source.subscribe(createOperatorSubscriber(subscriber, function(value) {
4504
+ var _a3;
4505
+ (_a3 = tapObserver.next) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver, value);
4506
+ subscriber.next(value);
4507
+ }, function() {
4508
+ var _a3;
4509
+ isUnsub = false;
4510
+ (_a3 = tapObserver.complete) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver);
4511
+ subscriber.complete();
4512
+ }, function(err) {
4513
+ var _a3;
4514
+ isUnsub = false;
4515
+ (_a3 = tapObserver.error) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver, err);
4516
+ subscriber.error(err);
4517
+ }, function() {
4518
+ var _a3, _b;
4519
+ if (isUnsub) {
4520
+ (_a3 = tapObserver.unsubscribe) === null || _a3 === void 0 ? void 0 : _a3.call(tapObserver);
4521
+ }
4522
+ (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);
4523
+ }));
4524
+ }) : identity;
4525
+ }
4526
+ const DEFAULT_LANGUAGE = "en";
4527
+ const localizeText = (input, lang = DEFAULT_LANGUAGE) => {
4528
+ if (typeof input === "string") {
4529
+ return input;
4530
+ }
4531
+ return input == null ? void 0 : input[lang];
4532
+ };
4533
+ function translateObject(obj) {
4534
+ return Object.entries(obj).reduce((out, [key, value]) => {
4535
+ out[key] = localizeText(value);
4536
+ return out;
4537
+ }, {});
4538
+ }
4539
+ const noop = (..._args) => {
4540
+ };
4541
+ const toArray$1 = (input) => Array.isArray(input) ? input : [input];
4542
+ const urlMakerFactory = ({ document: { baseURI }, location: { href } }) => (input) => new URL(input, new URL(baseURI, href));
4543
+ const toURL = (urlMaker, info) => {
4544
+ let url = info;
4545
+ if (!(info instanceof URL)) {
4546
+ url = urlMaker(typeof info === "string" ? info : info.url);
4547
+ }
4548
+ return url;
4549
+ };
4550
+ const trimLocationOrigin = (origin, url) => {
4551
+ const { href, origin: linkOrigin } = url;
4552
+ if (origin === linkOrigin) {
4553
+ return href.substring(origin.length);
4554
+ }
4555
+ return href;
4556
+ };
4431
4557
  const getElement = (document2, context, nth = 0) => {
4432
4558
  const { selectors } = context;
4433
4559
  return document2.querySelector(selectors[nth]);
@@ -4435,54 +4561,83 @@ const getElement = (document2, context, nth = 0) => {
4435
4561
  function getElementBySelector(selector) {
4436
4562
  return document.querySelector(selector);
4437
4563
  }
4438
- const unfocus = (element, map2) => {
4439
- const originalStyle = map2.get(element);
4564
+ const unfocus = (element, mapping) => {
4565
+ const originalStyle = mapping.get(element);
4440
4566
  if (originalStyle) {
4441
4567
  const { css, rest, subscription } = originalStyle;
4442
4568
  rest.forEach((el) => {
4443
- var _a;
4444
- return (_a = el.__unfocus_handler) == null ? void 0 : _a.call(el);
4569
+ var _a2;
4570
+ return (_a2 = el.__unfocus_handler) == null ? void 0 : _a2.call(el);
4445
4571
  });
4446
4572
  subscription.unsubscribe();
4447
- Object.assign(originalStyle.elementToFocus.style, css);
4573
+ originalStyle.elementToFocus.forEach((el, idx) => {
4574
+ Object.assign(el.style, css[idx]);
4575
+ });
4448
4576
  }
4449
- map2.delete(element);
4577
+ mapping.delete(element);
4450
4578
  };
4579
+ const noUndefined = (input) => input !== void 0;
4451
4580
  function focus(document2, obs$, mode$) {
4452
4581
  const stylesMap = /* @__PURE__ */ new Map();
4453
4582
  const getBySelector = getElementBySelector.bind(document2);
4454
- const subscription = obs$.pipe(pairwise()).subscribe(([current, next]) => {
4455
- var _a, _b, _c;
4456
- if (current !== void 0) {
4457
- const prev = getElement(document2, current);
4458
- if (prev !== null) {
4459
- (_a = prev.__unfocus_handler) == null ? void 0 : _a.call(prev);
4460
- unfocus(prev, stylesMap);
4583
+ const subscription = obs$.pipe(
4584
+ pairwise(),
4585
+ tap(([current]) => {
4586
+ var _a2;
4587
+ if (current !== void 0) {
4588
+ const prev = getElement(document2, current);
4589
+ if (prev !== null) {
4590
+ (_a2 = prev.__unfocus_handler) == null ? void 0 : _a2.call(prev);
4591
+ unfocus(prev, stylesMap);
4592
+ }
4461
4593
  }
4462
- }
4463
- if (next !== void 0) {
4594
+ }),
4595
+ map(([, next]) => next),
4596
+ filter(noUndefined),
4597
+ map((next) => {
4464
4598
  const [first, ...rest] = next.selectors;
4465
4599
  const otherElements = rest.reduce((arr, selector) => {
4466
4600
  var _a2;
4467
4601
  const el = getBySelector(selector);
4468
- el && arr.push(el);
4469
- (_a2 = el == null ? void 0 : el.__focus_handler) == null ? void 0 : _a2.call(el);
4602
+ if (el) {
4603
+ arr.push(el);
4604
+ const result = (_a2 = el.__focus_handler) == null ? void 0 : _a2.call(el);
4605
+ if (result && "then" in result) {
4606
+ result.catch(noop);
4607
+ }
4608
+ }
4470
4609
  return arr;
4471
4610
  }, []);
4472
- const firstElement = getBySelector(first);
4473
- const elementToFocus = (_c = (_b = firstElement.__focus_handler) == null ? void 0 : _b.call(firstElement)) != null ? _c : firstElement;
4474
- const cssKeys = Object.keys(next.style);
4475
- const stylePendingChanges = new Subscription();
4476
- const initialStyles = { css: {}, elementToFocus, rest: otherElements, subscription: stylePendingChanges };
4477
- const styles = cssKeys.reduce((acc, key) => {
4478
- Object.assign(acc.css, { [key]: elementToFocus.style[key] });
4479
- return acc;
4480
- }, initialStyles);
4481
- stylePendingChanges.add(mode$.pipe(filter((val) => val === "select"), take(1)).subscribe(() => {
4482
- Object.assign(elementToFocus.style, next.style);
4483
- }));
4484
- stylesMap.set(firstElement, styles);
4485
- }
4611
+ return { first, next, otherElements };
4612
+ }),
4613
+ map((next) => ({ ...next, firstElement: getBySelector(next.first) })),
4614
+ filter((next) => next.firstElement !== null),
4615
+ map((next) => {
4616
+ var _a2, _b;
4617
+ return { ...next, focus: (_b = (_a2 = next.firstElement).__focus_handler) == null ? void 0 : _b.call(_a2) };
4618
+ }),
4619
+ concatMap(({ focus: focusPromise, ...rest }) => {
4620
+ const promise = focusPromise && "then" in focusPromise ? focusPromise : Promise.resolve(focusPromise != null ? focusPromise : rest.firstElement);
4621
+ return promise.then((focusElement) => ({ focus: focusElement, ...rest })).catch(() => ({ focus: void 0, ...rest }));
4622
+ })
4623
+ ).subscribe(({ otherElements, next, firstElement, focus: focusContext }) => {
4624
+ const cssKeys = Object.keys(next.style);
4625
+ const stylePendingChanges = new Subscription();
4626
+ const elementToFocus = toArray$1(focusContext != null ? focusContext : firstElement).filter(Boolean);
4627
+ const initialStyles = { css: [], elementToFocus, rest: otherElements, subscription: stylePendingChanges };
4628
+ const styles = cssKeys.reduce((acc, key) => {
4629
+ elementToFocus.forEach((el, idx) => {
4630
+ var _a2;
4631
+ acc.css[idx] = Object.assign((_a2 = acc.css[idx]) != null ? _a2 : {}, { [key]: el.style[key] });
4632
+ });
4633
+ return acc;
4634
+ }, initialStyles);
4635
+ stylePendingChanges.add(mode$.pipe(filter((val) => val === "select"), take(1)).subscribe(() => {
4636
+ elementToFocus.forEach((el) => {
4637
+ Object.assign(el.style, next.style);
4638
+ });
4639
+ }));
4640
+ stylesMap.set(firstElement, styles);
4486
4641
  });
4487
4642
  return () => subscription.unsubscribe();
4488
4643
  }
@@ -4624,6 +4779,7 @@ const keys = {
4624
4779
  "new-configuration": 0,
4625
4780
  notification: 0,
4626
4781
  options: 0,
4782
+ "request-resource": 0,
4627
4783
  "tag-info": 0,
4628
4784
  update: 0,
4629
4785
  updated: 0
@@ -4704,9 +4860,9 @@ class PostChannel {
4704
4860
  send(to, message, origin = "*") {
4705
4861
  this.__window !== to && this.postMessage(to, message, origin);
4706
4862
  }
4707
- recv(window2) {
4708
- const listener2 = ({ data }) => {
4709
- if (isInstanceMessage(data, this.__instance)) {
4863
+ recv(window2, from2 = null) {
4864
+ const listener2 = ({ data, source }) => {
4865
+ if ((from2 === null || source === from2) && isInstanceMessage(data, this.__instance)) {
4710
4866
  const message = unsign(this.__instance, data);
4711
4867
  this.__handler(message);
4712
4868
  }
@@ -4716,86 +4872,83 @@ class PostChannel {
4716
4872
  }
4717
4873
  }
4718
4874
  var t;
4719
- const i = window, s = i.trustedTypes, e = s ? s.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o = `lit$${(Math.random() + "").slice(9)}$`, n = "?" + o, l = `<${n}>`, h = document, r = (t2 = "") => h.createComment(t2), d = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, u = Array.isArray, c = (t2) => u(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, a = /-->/g, f = />/g, _ = RegExp(`>|[
4720
- \f\r](?:([^\\s"'>=/]+)([
4721
- \f\r]*=[
4722
- \f\r]*(?:[^
4723
- \f\r"'\`<>=]|("|')|))|$)`, "g"), m = /'/g, p = /"/g, $ = /^(?:script|style|textarea|title)$/i, g = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), y = g(1), x = Symbol.for("lit-noChange"), b = Symbol.for("lit-nothing"), T = /* @__PURE__ */ new WeakMap(), A = h.createTreeWalker(h, 129, null, false), E = (t2, i2) => {
4724
- const s2 = t2.length - 1, n2 = [];
4725
- let h2, r2 = 2 === i2 ? "<svg>" : "", d2 = v;
4875
+ const i = window, s = i.trustedTypes, e = s ? s.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o = "$lit$", n = `lit$${(Math.random() + "").slice(9)}$`, l = "?" + n, h = `<${l}>`, r = document, d = () => r.createComment(""), u = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, c = Array.isArray, v = (t2) => c(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), a = "[ \n\f\r]", f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, _ = /-->/g, m = />/g, p = RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^
4876
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), g = /'/g, $ = /"/g, y = /^(?:script|style|textarea|title)$/i, w = (t2) => (i2, ...s2) => ({ _$litType$: t2, strings: i2, values: s2 }), x = w(1), T = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), E = /* @__PURE__ */ new WeakMap(), C = r.createTreeWalker(r, 129, null, false), P = (t2, i2) => {
4877
+ const s2 = t2.length - 1, l2 = [];
4878
+ let r2, d2 = 2 === i2 ? "<svg>" : "", u2 = f;
4726
4879
  for (let i3 = 0; i3 < s2; i3++) {
4727
4880
  const s3 = t2[i3];
4728
- let e2, u3, c2 = -1, g2 = 0;
4729
- for (; g2 < s3.length && (d2.lastIndex = g2, u3 = d2.exec(s3), null !== u3); )
4730
- g2 = d2.lastIndex, d2 === v ? "!--" === u3[1] ? d2 = a : void 0 !== u3[1] ? d2 = f : void 0 !== u3[2] ? ($.test(u3[2]) && (h2 = RegExp("</" + u3[2], "g")), d2 = _) : void 0 !== u3[3] && (d2 = _) : d2 === _ ? ">" === u3[0] ? (d2 = null != h2 ? h2 : v, c2 = -1) : void 0 === u3[1] ? c2 = -2 : (c2 = d2.lastIndex - u3[2].length, e2 = u3[1], d2 = void 0 === u3[3] ? _ : '"' === u3[3] ? p : m) : d2 === p || d2 === m ? d2 = _ : d2 === a || d2 === f ? d2 = v : (d2 = _, h2 = void 0);
4731
- const y2 = d2 === _ && t2[i3 + 1].startsWith("/>") ? " " : "";
4732
- r2 += d2 === v ? s3 + l : c2 >= 0 ? (n2.push(e2), s3.slice(0, c2) + "$lit$" + s3.slice(c2) + o + y2) : s3 + o + (-2 === c2 ? (n2.push(void 0), i3) : y2);
4881
+ let e2, c3, v2 = -1, a2 = 0;
4882
+ for (; a2 < s3.length && (u2.lastIndex = a2, c3 = u2.exec(s3), null !== c3); )
4883
+ a2 = u2.lastIndex, u2 === f ? "!--" === c3[1] ? u2 = _ : void 0 !== c3[1] ? u2 = m : void 0 !== c3[2] ? (y.test(c3[2]) && (r2 = RegExp("</" + c3[2], "g")), u2 = p) : void 0 !== c3[3] && (u2 = p) : u2 === p ? ">" === c3[0] ? (u2 = null != r2 ? r2 : f, v2 = -1) : void 0 === c3[1] ? v2 = -2 : (v2 = u2.lastIndex - c3[2].length, e2 = c3[1], u2 = void 0 === c3[3] ? p : '"' === c3[3] ? $ : g) : u2 === $ || u2 === g ? u2 = p : u2 === _ || u2 === m ? u2 = f : (u2 = p, r2 = void 0);
4884
+ const w2 = u2 === p && t2[i3 + 1].startsWith("/>") ? " " : "";
4885
+ d2 += u2 === f ? s3 + h : v2 >= 0 ? (l2.push(e2), s3.slice(0, v2) + o + s3.slice(v2) + n + w2) : s3 + n + (-2 === v2 ? (l2.push(void 0), i3) : w2);
4733
4886
  }
4734
- const u2 = r2 + (t2[s2] || "<?>") + (2 === i2 ? "</svg>" : "");
4887
+ const c2 = d2 + (t2[s2] || "<?>") + (2 === i2 ? "</svg>" : "");
4735
4888
  if (!Array.isArray(t2) || !t2.hasOwnProperty("raw"))
4736
4889
  throw Error("invalid template strings array");
4737
- return [void 0 !== e ? e.createHTML(u2) : u2, n2];
4890
+ return [void 0 !== e ? e.createHTML(c2) : c2, l2];
4738
4891
  };
4739
- class C {
4892
+ class V {
4740
4893
  constructor({ strings: t2, _$litType$: i2 }, e2) {
4741
- let l2;
4894
+ let h2;
4742
4895
  this.parts = [];
4743
- let h2 = 0, d2 = 0;
4744
- const u2 = t2.length - 1, c2 = this.parts, [v2, a2] = E(t2, i2);
4745
- if (this.el = C.createElement(v2, e2), A.currentNode = this.el.content, 2 === i2) {
4896
+ let r2 = 0, u2 = 0;
4897
+ const c2 = t2.length - 1, v2 = this.parts, [a2, f2] = P(t2, i2);
4898
+ if (this.el = V.createElement(a2, e2), C.currentNode = this.el.content, 2 === i2) {
4746
4899
  const t3 = this.el.content, i3 = t3.firstChild;
4747
4900
  i3.remove(), t3.append(...i3.childNodes);
4748
4901
  }
4749
- for (; null !== (l2 = A.nextNode()) && c2.length < u2; ) {
4750
- if (1 === l2.nodeType) {
4751
- if (l2.hasAttributes()) {
4902
+ for (; null !== (h2 = C.nextNode()) && v2.length < c2; ) {
4903
+ if (1 === h2.nodeType) {
4904
+ if (h2.hasAttributes()) {
4752
4905
  const t3 = [];
4753
- for (const i3 of l2.getAttributeNames())
4754
- if (i3.endsWith("$lit$") || i3.startsWith(o)) {
4755
- const s2 = a2[d2++];
4906
+ for (const i3 of h2.getAttributeNames())
4907
+ if (i3.endsWith(o) || i3.startsWith(n)) {
4908
+ const s2 = f2[u2++];
4756
4909
  if (t3.push(i3), void 0 !== s2) {
4757
- const t4 = l2.getAttribute(s2.toLowerCase() + "$lit$").split(o), i4 = /([.?@])?(.*)/.exec(s2);
4758
- c2.push({ type: 1, index: h2, name: i4[2], strings: t4, ctor: "." === i4[1] ? M : "?" === i4[1] ? k : "@" === i4[1] ? H : S });
4910
+ const t4 = h2.getAttribute(s2.toLowerCase() + o).split(n), i4 = /([.?@])?(.*)/.exec(s2);
4911
+ v2.push({ type: 1, index: r2, name: i4[2], strings: t4, ctor: "." === i4[1] ? k : "?" === i4[1] ? I : "@" === i4[1] ? L : R });
4759
4912
  } else
4760
- c2.push({ type: 6, index: h2 });
4913
+ v2.push({ type: 6, index: r2 });
4761
4914
  }
4762
4915
  for (const i3 of t3)
4763
- l2.removeAttribute(i3);
4916
+ h2.removeAttribute(i3);
4764
4917
  }
4765
- if ($.test(l2.tagName)) {
4766
- const t3 = l2.textContent.split(o), i3 = t3.length - 1;
4918
+ if (y.test(h2.tagName)) {
4919
+ const t3 = h2.textContent.split(n), i3 = t3.length - 1;
4767
4920
  if (i3 > 0) {
4768
- l2.textContent = s ? s.emptyScript : "";
4921
+ h2.textContent = s ? s.emptyScript : "";
4769
4922
  for (let s2 = 0; s2 < i3; s2++)
4770
- l2.append(t3[s2], r()), A.nextNode(), c2.push({ type: 2, index: ++h2 });
4771
- l2.append(t3[i3], r());
4923
+ h2.append(t3[s2], d()), C.nextNode(), v2.push({ type: 2, index: ++r2 });
4924
+ h2.append(t3[i3], d());
4772
4925
  }
4773
4926
  }
4774
- } else if (8 === l2.nodeType)
4775
- if (l2.data === n)
4776
- c2.push({ type: 2, index: h2 });
4927
+ } else if (8 === h2.nodeType)
4928
+ if (h2.data === l)
4929
+ v2.push({ type: 2, index: r2 });
4777
4930
  else {
4778
4931
  let t3 = -1;
4779
- for (; -1 !== (t3 = l2.data.indexOf(o, t3 + 1)); )
4780
- c2.push({ type: 7, index: h2 }), t3 += o.length - 1;
4932
+ for (; -1 !== (t3 = h2.data.indexOf(n, t3 + 1)); )
4933
+ v2.push({ type: 7, index: r2 }), t3 += n.length - 1;
4781
4934
  }
4782
- h2++;
4935
+ r2++;
4783
4936
  }
4784
4937
  }
4785
4938
  static createElement(t2, i2) {
4786
- const s2 = h.createElement("template");
4939
+ const s2 = r.createElement("template");
4787
4940
  return s2.innerHTML = t2, s2;
4788
4941
  }
4789
4942
  }
4790
- function P(t2, i2, s2 = t2, e2) {
4943
+ function N(t2, i2, s2 = t2, e2) {
4791
4944
  var o2, n2, l2, h2;
4792
- if (i2 === x)
4945
+ if (i2 === T)
4793
4946
  return i2;
4794
4947
  let r2 = void 0 !== e2 ? null === (o2 = s2._$Co) || void 0 === o2 ? void 0 : o2[e2] : s2._$Cl;
4795
- const u2 = d(i2) ? void 0 : i2._$litDirective$;
4796
- return (null == r2 ? void 0 : r2.constructor) !== u2 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === u2 ? r2 = void 0 : (r2 = new u2(t2), r2._$AT(t2, s2, e2)), void 0 !== e2 ? (null !== (l2 = (h2 = s2)._$Co) && void 0 !== l2 ? l2 : h2._$Co = [])[e2] = r2 : s2._$Cl = r2), void 0 !== r2 && (i2 = P(t2, r2._$AS(t2, i2.values), r2, e2)), i2;
4948
+ const d2 = u(i2) ? void 0 : i2._$litDirective$;
4949
+ return (null == r2 ? void 0 : r2.constructor) !== d2 && (null === (n2 = null == r2 ? void 0 : r2._$AO) || void 0 === n2 || n2.call(r2, false), void 0 === d2 ? r2 = void 0 : (r2 = new d2(t2), r2._$AT(t2, s2, e2)), void 0 !== e2 ? (null !== (l2 = (h2 = s2)._$Co) && void 0 !== l2 ? l2 : h2._$Co = [])[e2] = r2 : s2._$Cl = r2), void 0 !== r2 && (i2 = N(t2, r2._$AS(t2, i2.values), r2, e2)), i2;
4797
4950
  }
4798
- class V {
4951
+ class S {
4799
4952
  constructor(t2, i2) {
4800
4953
  this.u = [], this._$AN = void 0, this._$AD = t2, this._$AM = i2;
4801
4954
  }
@@ -4807,15 +4960,15 @@ class V {
4807
4960
  }
4808
4961
  v(t2) {
4809
4962
  var i2;
4810
- const { el: { content: s2 }, parts: e2 } = this._$AD, o2 = (null !== (i2 = null == t2 ? void 0 : t2.creationScope) && void 0 !== i2 ? i2 : h).importNode(s2, true);
4811
- A.currentNode = o2;
4812
- let n2 = A.nextNode(), l2 = 0, r2 = 0, d2 = e2[0];
4963
+ const { el: { content: s2 }, parts: e2 } = this._$AD, o2 = (null !== (i2 = null == t2 ? void 0 : t2.creationScope) && void 0 !== i2 ? i2 : r).importNode(s2, true);
4964
+ C.currentNode = o2;
4965
+ let n2 = C.nextNode(), l2 = 0, h2 = 0, d2 = e2[0];
4813
4966
  for (; void 0 !== d2; ) {
4814
4967
  if (l2 === d2.index) {
4815
4968
  let i3;
4816
- 2 === d2.type ? i3 = new N(n2, n2.nextSibling, this, t2) : 1 === d2.type ? i3 = new d2.ctor(n2, d2.name, d2.strings, this, t2) : 6 === d2.type && (i3 = new I(n2, this, t2)), this.u.push(i3), d2 = e2[++r2];
4969
+ 2 === d2.type ? i3 = new M(n2, n2.nextSibling, this, t2) : 1 === d2.type ? i3 = new d2.ctor(n2, d2.name, d2.strings, this, t2) : 6 === d2.type && (i3 = new z(n2, this, t2)), this.u.push(i3), d2 = e2[++h2];
4817
4970
  }
4818
- l2 !== (null == d2 ? void 0 : d2.index) && (n2 = A.nextNode(), l2++);
4971
+ l2 !== (null == d2 ? void 0 : d2.index) && (n2 = C.nextNode(), l2++);
4819
4972
  }
4820
4973
  return o2;
4821
4974
  }
@@ -4825,10 +4978,10 @@ class V {
4825
4978
  void 0 !== s2 && (void 0 !== s2.strings ? (s2._$AI(t2, s2, i2), i2 += s2.strings.length - 2) : s2._$AI(t2[i2])), i2++;
4826
4979
  }
4827
4980
  }
4828
- class N {
4981
+ class M {
4829
4982
  constructor(t2, i2, s2, e2) {
4830
4983
  var o2;
4831
- this.type = 2, this._$AH = b, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cm = null === (o2 = null == e2 ? void 0 : e2.isConnected) || void 0 === o2 || o2;
4984
+ this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t2, this._$AB = i2, this._$AM = s2, this.options = e2, this._$Cm = null === (o2 = null == e2 ? void 0 : e2.isConnected) || void 0 === o2 || o2;
4832
4985
  }
4833
4986
  get _$AU() {
4834
4987
  var t2, i2;
@@ -4837,7 +4990,7 @@ class N {
4837
4990
  get parentNode() {
4838
4991
  let t2 = this._$AA.parentNode;
4839
4992
  const i2 = this._$AM;
4840
- return void 0 !== i2 && 11 === t2.nodeType && (t2 = i2.parentNode), t2;
4993
+ return void 0 !== i2 && 11 === (null == t2 ? void 0 : t2.nodeType) && (t2 = i2.parentNode), t2;
4841
4994
  }
4842
4995
  get startNode() {
4843
4996
  return this._$AA;
@@ -4846,37 +4999,37 @@ class N {
4846
4999
  return this._$AB;
4847
5000
  }
4848
5001
  _$AI(t2, i2 = this) {
4849
- t2 = P(this, t2, i2), d(t2) ? t2 === b || null == t2 || "" === t2 ? (this._$AH !== b && this._$AR(), this._$AH = b) : t2 !== this._$AH && t2 !== x && this.g(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : c(t2) ? this.k(t2) : this.g(t2);
5002
+ t2 = N(this, t2, i2), u(t2) ? t2 === A || null == t2 || "" === t2 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t2 !== this._$AH && t2 !== T && this.g(t2) : void 0 !== t2._$litType$ ? this.$(t2) : void 0 !== t2.nodeType ? this.T(t2) : v(t2) ? this.k(t2) : this.g(t2);
4850
5003
  }
4851
- O(t2, i2 = this._$AB) {
4852
- return this._$AA.parentNode.insertBefore(t2, i2);
5004
+ S(t2) {
5005
+ return this._$AA.parentNode.insertBefore(t2, this._$AB);
4853
5006
  }
4854
5007
  T(t2) {
4855
- this._$AH !== t2 && (this._$AR(), this._$AH = this.O(t2));
5008
+ this._$AH !== t2 && (this._$AR(), this._$AH = this.S(t2));
4856
5009
  }
4857
5010
  g(t2) {
4858
- this._$AH !== b && d(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(h.createTextNode(t2)), this._$AH = t2;
5011
+ this._$AH !== A && u(this._$AH) ? this._$AA.nextSibling.data = t2 : this.T(r.createTextNode(t2)), this._$AH = t2;
4859
5012
  }
4860
5013
  $(t2) {
4861
5014
  var i2;
4862
- const { values: s2, _$litType$: e2 } = t2, o2 = "number" == typeof e2 ? this._$AC(t2) : (void 0 === e2.el && (e2.el = C.createElement(e2.h, this.options)), e2);
5015
+ const { values: s2, _$litType$: e2 } = t2, o2 = "number" == typeof e2 ? this._$AC(t2) : (void 0 === e2.el && (e2.el = V.createElement(e2.h, this.options)), e2);
4863
5016
  if ((null === (i2 = this._$AH) || void 0 === i2 ? void 0 : i2._$AD) === o2)
4864
5017
  this._$AH.p(s2);
4865
5018
  else {
4866
- const t3 = new V(o2, this), i3 = t3.v(this.options);
5019
+ const t3 = new S(o2, this), i3 = t3.v(this.options);
4867
5020
  t3.p(s2), this.T(i3), this._$AH = t3;
4868
5021
  }
4869
5022
  }
4870
5023
  _$AC(t2) {
4871
- let i2 = T.get(t2.strings);
4872
- return void 0 === i2 && T.set(t2.strings, i2 = new C(t2)), i2;
5024
+ let i2 = E.get(t2.strings);
5025
+ return void 0 === i2 && E.set(t2.strings, i2 = new V(t2)), i2;
4873
5026
  }
4874
5027
  k(t2) {
4875
- u(this._$AH) || (this._$AH = [], this._$AR());
5028
+ c(this._$AH) || (this._$AH = [], this._$AR());
4876
5029
  const i2 = this._$AH;
4877
5030
  let s2, e2 = 0;
4878
5031
  for (const o2 of t2)
4879
- e2 === i2.length ? i2.push(s2 = new N(this.O(r()), this.O(r()), this, this.options)) : s2 = i2[e2], s2._$AI(o2), e2++;
5032
+ e2 === i2.length ? i2.push(s2 = new M(this.S(d()), this.S(d()), this, this.options)) : s2 = i2[e2], s2._$AI(o2), e2++;
4880
5033
  e2 < i2.length && (this._$AR(s2 && s2._$AB.nextSibling, e2), i2.length = e2);
4881
5034
  }
4882
5035
  _$AR(t2 = this._$AA.nextSibling, i2) {
@@ -4891,9 +5044,9 @@ class N {
4891
5044
  void 0 === this._$AM && (this._$Cm = t2, null === (i2 = this._$AP) || void 0 === i2 || i2.call(this, t2));
4892
5045
  }
4893
5046
  }
4894
- class S {
5047
+ class R {
4895
5048
  constructor(t2, i2, s2, e2, o2) {
4896
- this.type = 1, this._$AH = b, this._$AN = void 0, this.element = t2, this.name = i2, this._$AM = e2, this.options = o2, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = b;
5049
+ this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t2, this.name = i2, this._$AM = e2, this.options = o2, s2.length > 2 || "" !== s2[0] || "" !== s2[1] ? (this._$AH = Array(s2.length - 1).fill(new String()), this.strings = s2) : this._$AH = A;
4897
5050
  }
4898
5051
  get tagName() {
4899
5052
  return this.element.tagName;
@@ -4905,45 +5058,45 @@ class S {
4905
5058
  const o2 = this.strings;
4906
5059
  let n2 = false;
4907
5060
  if (void 0 === o2)
4908
- t2 = P(this, t2, i2, 0), n2 = !d(t2) || t2 !== this._$AH && t2 !== x, n2 && (this._$AH = t2);
5061
+ t2 = N(this, t2, i2, 0), n2 = !u(t2) || t2 !== this._$AH && t2 !== T, n2 && (this._$AH = t2);
4909
5062
  else {
4910
5063
  const e3 = t2;
4911
5064
  let l2, h2;
4912
5065
  for (t2 = o2[0], l2 = 0; l2 < o2.length - 1; l2++)
4913
- h2 = P(this, e3[s2 + l2], i2, l2), h2 === x && (h2 = this._$AH[l2]), n2 || (n2 = !d(h2) || h2 !== this._$AH[l2]), h2 === b ? t2 = b : t2 !== b && (t2 += (null != h2 ? h2 : "") + o2[l2 + 1]), this._$AH[l2] = h2;
5066
+ h2 = N(this, e3[s2 + l2], i2, l2), h2 === T && (h2 = this._$AH[l2]), n2 || (n2 = !u(h2) || h2 !== this._$AH[l2]), h2 === A ? t2 = A : t2 !== A && (t2 += (null != h2 ? h2 : "") + o2[l2 + 1]), this._$AH[l2] = h2;
4914
5067
  }
4915
5068
  n2 && !e2 && this.j(t2);
4916
5069
  }
4917
5070
  j(t2) {
4918
- t2 === b ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
5071
+ t2 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t2 ? t2 : "");
4919
5072
  }
4920
5073
  }
4921
- class M extends S {
5074
+ class k extends R {
4922
5075
  constructor() {
4923
5076
  super(...arguments), this.type = 3;
4924
5077
  }
4925
5078
  j(t2) {
4926
- this.element[this.name] = t2 === b ? void 0 : t2;
5079
+ this.element[this.name] = t2 === A ? void 0 : t2;
4927
5080
  }
4928
5081
  }
4929
- const R = s ? s.emptyScript : "";
4930
- class k extends S {
5082
+ const H = s ? s.emptyScript : "";
5083
+ class I extends R {
4931
5084
  constructor() {
4932
5085
  super(...arguments), this.type = 4;
4933
5086
  }
4934
5087
  j(t2) {
4935
- t2 && t2 !== b ? this.element.setAttribute(this.name, R) : this.element.removeAttribute(this.name);
5088
+ t2 && t2 !== A ? this.element.setAttribute(this.name, H) : this.element.removeAttribute(this.name);
4936
5089
  }
4937
5090
  }
4938
- class H extends S {
5091
+ class L extends R {
4939
5092
  constructor(t2, i2, s2, e2, o2) {
4940
5093
  super(t2, i2, s2, e2, o2), this.type = 5;
4941
5094
  }
4942
5095
  _$AI(t2, i2 = this) {
4943
5096
  var s2;
4944
- if ((t2 = null !== (s2 = P(this, t2, i2, 0)) && void 0 !== s2 ? s2 : b) === x)
5097
+ if ((t2 = null !== (s2 = N(this, t2, i2, 0)) && void 0 !== s2 ? s2 : A) === T)
4945
5098
  return;
4946
- const e2 = this._$AH, o2 = t2 === b && e2 !== b || t2.capture !== e2.capture || t2.once !== e2.once || t2.passive !== e2.passive, n2 = t2 !== b && (e2 === b || o2);
5099
+ const e2 = this._$AH, o2 = t2 === A && e2 !== A || t2.capture !== e2.capture || t2.once !== e2.once || t2.passive !== e2.passive, n2 = t2 !== A && (e2 === A || o2);
4947
5100
  o2 && this.element.removeEventListener(this.name, this, e2), n2 && this.element.addEventListener(this.name, this, t2), this._$AH = t2;
4948
5101
  }
4949
5102
  handleEvent(t2) {
@@ -4951,7 +5104,7 @@ class H extends S {
4951
5104
  "function" == typeof this._$AH ? this._$AH.call(null !== (s2 = null === (i2 = this.options) || void 0 === i2 ? void 0 : i2.host) && void 0 !== s2 ? s2 : this.element, t2) : this._$AH.handleEvent(t2);
4952
5105
  }
4953
5106
  }
4954
- class I {
5107
+ class z {
4955
5108
  constructor(t2, i2, s2) {
4956
5109
  this.element = t2, this.type = 6, this._$AN = void 0, this._$AM = i2, this.options = s2;
4957
5110
  }
@@ -4959,18 +5112,18 @@ class I {
4959
5112
  return this._$AM._$AU;
4960
5113
  }
4961
5114
  _$AI(t2) {
4962
- P(this, t2);
5115
+ N(this, t2);
4963
5116
  }
4964
5117
  }
4965
- const z = i.litHtmlPolyfillSupport;
4966
- null == z || z(C, N), (null !== (t = i.litHtmlVersions) && void 0 !== t ? t : i.litHtmlVersions = []).push("2.6.1");
4967
- const Z = (t2, i2, s2) => {
5118
+ const j = i.litHtmlPolyfillSupport;
5119
+ null == j || j(V, M), (null !== (t = i.litHtmlVersions) && void 0 !== t ? t : i.litHtmlVersions = []).push("2.7.0");
5120
+ const B = (t2, i2, s2) => {
4968
5121
  var e2, o2;
4969
5122
  const n2 = null !== (e2 = null == s2 ? void 0 : s2.renderBefore) && void 0 !== e2 ? e2 : i2;
4970
5123
  let l2 = n2._$litPart$;
4971
5124
  if (void 0 === l2) {
4972
5125
  const t3 = null !== (o2 = null == s2 ? void 0 : s2.renderBefore) && void 0 !== o2 ? o2 : null;
4973
- n2._$litPart$ = l2 = new N(i2.insertBefore(r(), t3), t3, void 0, null != s2 ? s2 : {});
5126
+ n2._$litPart$ = l2 = new M(i2.insertBefore(d(), t3), t3, void 0, null != s2 ? s2 : {});
4974
5127
  }
4975
5128
  return l2._$AI(t2), l2;
4976
5129
  };
@@ -5029,12 +5182,12 @@ function interpolate(variables, extra = {}) {
5029
5182
  return acc;
5030
5183
  }, []);
5031
5184
  }
5032
- function toArray$1(input) {
5185
+ function toArray(input) {
5033
5186
  return Array.isArray(input) ? input : [input];
5034
5187
  }
5035
5188
  function parseSources(sources) {
5036
5189
  const arrayOrObject = typeof sources === "string" ? [sources] : sources;
5037
- return Array.isArray(arrayOrObject) ? arrayOrObject : toArray$1(arrayOrObject.uris);
5190
+ return Array.isArray(arrayOrObject) ? arrayOrObject : toArray(arrayOrObject.uris);
5038
5191
  }
5039
5192
  const voidTags = [
5040
5193
  "area",
@@ -5084,14 +5237,14 @@ function parseContent(buffer, content, extraProperties) {
5084
5237
  acc.push(`${name}="${value}"`);
5085
5238
  return acc;
5086
5239
  }, []);
5087
- const initialTagBooleanAttributes = toArray$1(booleanAttributes);
5240
+ const initialTagBooleanAttributes = toArray(booleanAttributes);
5088
5241
  const { override, props } = Object.entries(properties).reduce((acc, [key, value]) => {
5089
5242
  extraProperties.has(key) ? typeof value === "string" && (acc.override[key] = value) : acc.props[key] = value;
5090
5243
  return acc;
5091
5244
  }, { override: {}, props: {} });
5092
5245
  const initialTagExtraProperties = Array.from(extraProperties.keys()).map((prop) => {
5093
- var _a;
5094
- return `.${prop}=\${${(_a = override[prop]) != null ? _a : prop}}`;
5246
+ var _a2;
5247
+ return `.${prop}=\${${(_a2 = override[prop]) != null ? _a2 : prop}}`;
5095
5248
  });
5096
5249
  const initialTagProperties = Object.entries(props).reduce((acc, [name, value]) => {
5097
5250
  switch (typeof value) {
@@ -5375,17 +5528,17 @@ async function createComposerContext(content, { extraProperties, context = {} }
5375
5528
  const htmlBuffer = jsonToHtml(content, extra);
5376
5529
  const template = await lexer(htmlBuffer);
5377
5530
  const variables = interpolate(template.variables, context);
5378
- const htmlTemplate = y(template.literals, ...variables);
5379
- return (container, options) => Z(htmlTemplate, container, options);
5531
+ const htmlTemplate = x(template.literals, ...variables);
5532
+ return (container, options) => B(htmlTemplate, container, options);
5380
5533
  }
5381
5534
  async function premount(config2, proxyWindow = window, reporter2 = console.error) {
5382
- var _a;
5535
+ var _a2;
5383
5536
  let uris = [];
5384
5537
  let importmap;
5385
5538
  let done = Promise.resolve();
5386
5539
  if (config2.sources) {
5387
5540
  const { sources } = config2;
5388
- importmap = !Array.isArray(sources) && typeof sources !== "string" ? (_a = sources.importmap) != null ? _a : {} : {};
5541
+ importmap = !Array.isArray(sources) && typeof sources !== "string" ? (_a2 = sources.importmap) != null ? _a2 : {} : {};
5389
5542
  try {
5390
5543
  proxyWindow.importShim.addImportMap(importmap);
5391
5544
  } catch (err) {
@@ -5443,12 +5596,14 @@ const subjects = registerChannels();
5443
5596
  function listener(message) {
5444
5597
  switch (message.type) {
5445
5598
  case "options": {
5446
- const { content: { disableOverlay, instance, redirectTo } } = message;
5599
+ const { content: { disableOverlay, redirectTo, timeout } } = message;
5447
5600
  if (disableOverlay) {
5448
5601
  Object.defineProperty(this.window, "__BACKOFFICE_CONFIGURATOR_DISABLE_OVERLAY__", { value: true });
5449
5602
  subjects.mode.next("interact");
5450
5603
  }
5451
- instance && (this.instance = instance);
5604
+ if (timeout !== void 0) {
5605
+ Object.defineProperty(this.window, "__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__", { value: timeout });
5606
+ }
5452
5607
  const { window: { history } } = this;
5453
5608
  redirectTo && history.pushState(history.state, "", redirectTo);
5454
5609
  break;
@@ -5469,9 +5624,9 @@ function listener(message) {
5469
5624
  }
5470
5625
  const postChannel = new PostChannel(listener);
5471
5626
  const fromErrorToNotification = (error2) => {
5472
- var _a;
5627
+ var _a2;
5473
5628
  return {
5474
- data: { message: error2.message, name: error2.name, stack: (_a = error2.stack) != null ? _a : "" },
5629
+ data: { message: error2.message, name: error2.name, stack: (_a2 = error2.stack) != null ? _a2 : "" },
5475
5630
  description: "preview.notifications.error.description",
5476
5631
  message: "preview.notifications.error.message",
5477
5632
  status: "error"
@@ -5531,37 +5686,6 @@ const ctrlSpaceFactory = (channels) => {
5531
5686
  }
5532
5687
  };
5533
5688
  };
5534
- const DEFAULT_LANGUAGE = "en";
5535
- const localizeText = (input, lang = DEFAULT_LANGUAGE) => {
5536
- if (typeof input === "string") {
5537
- return input;
5538
- }
5539
- return input == null ? void 0 : input[lang];
5540
- };
5541
- function translateObject(obj) {
5542
- return Object.entries(obj).reduce((out, [key, value]) => {
5543
- out[key] = localizeText(value);
5544
- return out;
5545
- }, {});
5546
- }
5547
- const noop = (..._args) => {
5548
- };
5549
- const toArray = (input) => Array.isArray(input) ? input : [input];
5550
- const urlMakerFactory = ({ document: { baseURI }, location: { href } }) => (input) => new URL(input, new URL(baseURI, href));
5551
- const toURL = (urlMaker, info) => {
5552
- let url = info;
5553
- if (!(info instanceof URL)) {
5554
- url = urlMaker(typeof info === "string" ? info : info.url);
5555
- }
5556
- return url;
5557
- };
5558
- const trimLocationOrigin = (origin, url) => {
5559
- const { href, origin: linkOrigin } = url;
5560
- if (origin === linkOrigin) {
5561
- return href.substring(origin.length);
5562
- }
5563
- return href;
5564
- };
5565
5689
  const extractConstructor = ([tag, promise]) => from(promise.then((constructor) => [tag, constructor]));
5566
5690
  const extractManifest = ([
5567
5691
  tag,
@@ -5654,20 +5778,24 @@ var __publicField$1 = (obj, key, value) => {
5654
5778
  __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
5655
5779
  return value;
5656
5780
  };
5657
- const fetchMockFactory = (instance, fetchFactory, windowHref) => {
5781
+ function fetchMockFactory(instance, fetchFactory, windowHref) {
5658
5782
  const { properties, attributes, booleanAttributes = [] } = instance;
5659
5783
  const context = Object.assign(
5660
- Object.fromEntries(toArray(booleanAttributes).map((ba) => [ba, true])),
5784
+ Object.fromEntries(toArray$1(booleanAttributes).map((ba) => [ba, true])),
5661
5785
  { ...attributes, ...properties }
5662
5786
  );
5663
5787
  const routes = fetchFactory(context);
5664
- return routes.map(({ url, method = "GET", handler: fetchHandler = () => Promise.resolve(new Response()) }) => {
5665
- var _a;
5788
+ return routes.map(({ url, method = "GET", notify = false, handler: fetchHandler = () => Promise.resolve(new Response()) }) => {
5789
+ var _a2;
5666
5790
  const info = compileObject({ ...url, method }, context);
5667
- const matcher = new URL(info.pathname, (_a = info.origin) != null ? _a : windowHref);
5668
- return [matcher.href, method, (injectedInfo, init2) => fetchHandler(injectedInfo, init2)];
5791
+ const matcher = new URL(info.pathname, (_a2 = info.origin) != null ? _a2 : windowHref);
5792
+ return [matcher.href, method, (injectedInfo, init2) => fetchHandler(injectedInfo, init2).finally(() => {
5793
+ if (notify) {
5794
+ this.notify(fetchNotification(method, matcher));
5795
+ }
5796
+ })];
5669
5797
  });
5670
- };
5798
+ }
5671
5799
  const isExactUpToQuery = (url, next) => {
5672
5800
  const { href, search } = url;
5673
5801
  const requestUrlWithoutQuery = href.replace(/\?$/, "").substring(0, href.length - search.length);
@@ -5678,14 +5806,16 @@ const isExactUpToTrailingSlash = (url, next) => {
5678
5806
  return href.match(new RegExp(`^${next.replace(/\/$/, "")}/`)) !== null;
5679
5807
  };
5680
5808
  class FetchMockStore extends Map {
5681
- constructor() {
5682
- super(...arguments);
5809
+ constructor(notify) {
5810
+ super();
5811
+ __publicField$1(this, "notify");
5683
5812
  __publicField$1(this, "__urlMap", /* @__PURE__ */ new Map());
5813
+ this.notify = notify;
5684
5814
  }
5685
5815
  add(obj, value) {
5686
- var _a, _b;
5816
+ var _a2, _b;
5687
5817
  const { method, url } = obj;
5688
- const methodMap = (_a = this.get(method)) != null ? _a : /* @__PURE__ */ new Map();
5818
+ const methodMap = (_a2 = this.get(method)) != null ? _a2 : /* @__PURE__ */ new Map();
5689
5819
  const urls = (_b = this.__urlMap.get(method)) != null ? _b : [];
5690
5820
  methodMap.set(url, value);
5691
5821
  urls.push(url);
@@ -5693,7 +5823,7 @@ class FetchMockStore extends Map {
5693
5823
  this.__urlMap.set(method, urls);
5694
5824
  }
5695
5825
  match(obj) {
5696
- var _a;
5826
+ var _a2;
5697
5827
  const { method, url } = obj;
5698
5828
  const urls = this.__urlMap.get(method);
5699
5829
  if (urls === void 0) {
@@ -5712,7 +5842,7 @@ class FetchMockStore extends Map {
5712
5842
  if (id === void 0) {
5713
5843
  return;
5714
5844
  }
5715
- return (_a = this.get(method)) == null ? void 0 : _a.get(urls[id]);
5845
+ return (_a2 = this.get(method)) == null ? void 0 : _a2.get(urls[id]);
5716
5846
  }
5717
5847
  }
5718
5848
  const storeSaverMapFactory = (store) => ([url, method, fetchHandler]) => store.add({ method, url }, fetchHandler);
@@ -5720,13 +5850,15 @@ async function handler(store, instances, factory, href) {
5720
5850
  const storeSaverMap = storeSaverMapFactory(store);
5721
5851
  if (Array.isArray(instances)) {
5722
5852
  return Promise.all(
5723
- instances.map((instance) => fetchMockFactory(instance, factory, href)).flat().map(storeSaverMap)
5853
+ instances.map((instance) => fetchMockFactory.call(store, instance, factory, href)).flat().map(storeSaverMap)
5724
5854
  ).then(noop);
5725
5855
  }
5726
5856
  return Promise.all(
5727
- fetchMockFactory(instances, factory, href).map(storeSaverMap)
5857
+ fetchMockFactory.call(store, instances, factory, href).map(storeSaverMap)
5728
5858
  ).then(noop);
5729
5859
  }
5860
+ var _a;
5861
+ const MANIFEST_TIMEOUT = (_a = window.__BACKOFFICE_CONFIGURATOR_PREVIEW_TIMEOUT__) != null ? _a : 5e3;
5730
5862
  const printHeaders = (headers) => {
5731
5863
  const obj = {};
5732
5864
  headers.forEach((val, key) => {
@@ -5735,36 +5867,52 @@ const printHeaders = (headers) => {
5735
5867
  return JSON.stringify(obj);
5736
5868
  };
5737
5869
  const fetchPrint = (window2, url, init2, resHeaders = new Headers()) => {
5738
- var _a;
5870
+ var _a2;
5739
5871
  const style = window2.origin === "null" ? { background: "antiquewhite", color: "brown" } : { background: "cyan", color: "blue" };
5740
5872
  console.groupCollapsed(`%c Fetching from ${window2.origin} `, Object.entries(style).map(([key, val]) => `${key}: ${val}`).join("; "));
5741
5873
  console.info(
5742
- `a component fetched with method ${(_a = init2 == null ? void 0 : init2.method) != null ? _a : "GET"} resource at %c ${url.href} got a response with headers ${printHeaders(resHeaders)}`,
5874
+ `a component fetched with method ${(_a2 = init2 == null ? void 0 : init2.method) != null ? _a2 : "GET"} resource at %c ${url.href} got a response with headers ${printHeaders(resHeaders)}`,
5743
5875
  "background: lightgreen; color: darkgreen"
5744
5876
  );
5745
5877
  console.groupEnd();
5746
5878
  };
5747
5879
  const isCustomTag = (tag) => tag.includes("-");
5880
+ const notFoundTagNotification = (tag) => ({
5881
+ data: { tag },
5882
+ description: "preview.notifications.no-webcomponent-definition.description",
5883
+ message: "preview.notifications.no-webcomponent-definition.message",
5884
+ status: "warning"
5885
+ });
5748
5886
  async function mock(contexts, tags = []) {
5749
- const { location: { href } } = this;
5887
+ const { location: { href }, fetch: originalFetch } = this;
5750
5888
  const urlMaker = urlMakerFactory(this);
5751
- const store = new FetchMockStore();
5889
+ const store = new FetchMockStore(this.notify.bind(this));
5752
5890
  await Promise.all(tags.map(async (tag) => {
5753
- var _a;
5754
- const [, {
5755
- fetch: fetchFactory = () => []
5756
- }] = await lastValueFrom(
5757
- subjects.mocks.pipe(filter(([incomingTag]) => incomingTag === tag), take(1))
5758
- );
5759
- const instancesCarryingMocks = (_a = contexts.get(tag)) != null ? _a : [];
5891
+ var _a2;
5892
+ let fetchFactory = () => [];
5893
+ const raced = await Promise.race([
5894
+ lastValueFrom(timer(MANIFEST_TIMEOUT)),
5895
+ lastValueFrom(
5896
+ subjects.mocks.pipe(filter(([incomingTag]) => incomingTag === tag), take(1))
5897
+ )
5898
+ ]);
5899
+ if (raced === 0) {
5900
+ this.notify(notFoundTagNotification(tag));
5901
+ } else {
5902
+ const [, { fetch: fetch2 }] = raced;
5903
+ if (fetch2 !== void 0) {
5904
+ fetchFactory = fetch2;
5905
+ }
5906
+ }
5907
+ const instancesCarryingMocks = (_a2 = contexts.get(tag)) != null ? _a2 : [];
5760
5908
  return handler(store, instancesCarryingMocks, fetchFactory, href);
5761
5909
  })).catch(
5762
5910
  (error2) => error2 instanceof Error && errorHandler(this, error2)
5763
5911
  );
5764
5912
  const mockedFetch = async (info, init2) => {
5765
- var _a;
5913
+ var _a2;
5766
5914
  const url = toURL(urlMaker, info);
5767
- const mockImplementation = store.match({ method: (_a = init2 == null ? void 0 : init2.method) != null ? _a : "GET", url });
5915
+ const mockImplementation = store.match({ method: (_a2 = init2 == null ? void 0 : init2.method) != null ? _a2 : "GET", url });
5768
5916
  if (mockImplementation !== void 0) {
5769
5917
  return mockImplementation(url, init2).then((res) => {
5770
5918
  {
@@ -5773,26 +5921,36 @@ async function mock(contexts, tags = []) {
5773
5921
  return res;
5774
5922
  });
5775
5923
  }
5776
- return this.fetch(info, init2);
5924
+ return originalFetch(info, init2);
5777
5925
  };
5778
5926
  if (this.proxyWindow) {
5779
- this.proxyWindow.fetch = Object.assign(
5927
+ const newFetch = Object.assign(
5780
5928
  mockedFetch,
5781
5929
  {
5782
5930
  update: async (instance) => {
5783
5931
  let fetchFactory = () => [];
5784
5932
  if (isCustomTag(instance.tag)) {
5785
- const [, { fetch: fetch2 }] = await lastValueFrom(
5786
- subjects.mocks.pipe(filter(([incomingTag]) => incomingTag === instance.tag), take(1))
5787
- );
5788
- if (fetch2 !== void 0) {
5789
- fetchFactory = fetch2;
5933
+ const raced = await Promise.race([
5934
+ lastValueFrom(timer(MANIFEST_TIMEOUT)),
5935
+ lastValueFrom(
5936
+ subjects.mocks.pipe(filter(([incomingTag]) => incomingTag === instance.tag), take(1))
5937
+ )
5938
+ ]);
5939
+ if (raced === 0) {
5940
+ this.notify(notFoundTagNotification(instance.tag));
5941
+ } else {
5942
+ const [, { fetch: fetch2 }] = raced;
5943
+ if (fetch2 !== void 0) {
5944
+ fetchFactory = fetch2;
5945
+ }
5790
5946
  }
5791
5947
  }
5792
5948
  return handler(store, instance, fetchFactory, href);
5793
5949
  }
5794
5950
  }
5795
5951
  );
5952
+ this.fetch = newFetch;
5953
+ this.proxyWindow.fetch = newFetch;
5796
5954
  }
5797
5955
  }
5798
5956
  function open(url, target) {
@@ -5860,8 +6018,8 @@ class InMemoryStorage extends Map {
5860
6018
  super.clear();
5861
6019
  }
5862
6020
  getItem(key) {
5863
- var _a;
5864
- return (_a = super.get(key)) != null ? _a : null;
6021
+ var _a2;
6022
+ return (_a2 = super.get(key)) != null ? _a2 : null;
5865
6023
  }
5866
6024
  key() {
5867
6025
  return null;
@@ -5880,11 +6038,11 @@ function domPatch(frame) {
5880
6038
  const element = originalCreateElement.call(this, tagName, options);
5881
6039
  if (isAnchor(element)) {
5882
6040
  const notifyAnchorClick = () => {
5883
- var _a;
6041
+ var _a2;
5884
6042
  return frame.notify({
5885
6043
  data: {
5886
6044
  href: trimLocationOrigin(frame.location.origin, new URL(element.href, frame.location.href)),
5887
- target: (_a = element.getAttribute("target")) != null ? _a : "_self"
6045
+ target: (_a2 = element.getAttribute("target")) != null ? _a2 : "_self"
5888
6046
  },
5889
6047
  description: "preview.notifications.anchor.description",
5890
6048
  message: "preview.notifications.anchor.message",
@@ -5961,7 +6119,7 @@ function appendOverlay(self2, mode$) {
5961
6119
  overlay.style.position = "fixed";
5962
6120
  overlay.style.width = "100vw";
5963
6121
  overlay.style.height = "100%";
5964
- overlay.style.backgroundColor = "rgba(10, 10, 10, 0.2)";
6122
+ overlay.style.backgroundColor = "rgba(0, 0, 0, 0.05)";
5965
6123
  overlay.style.zIndex = `${OVERLAY_Z_INDEX}`;
5966
6124
  const isVisible = () => overlay.style.display === visibleOverlayDisplay;
5967
6125
  const swap = () => isVisible() ? overlay.style.display = "none" : overlay.style.display = visibleOverlayDisplay;
@@ -6067,8 +6225,8 @@ const run = (frame, renderRoot, channels) => {
6067
6225
  const { context } = next;
6068
6226
  done = queue.add([
6069
6227
  () => {
6070
- var _a, _b, _c;
6071
- return (_c = (_a = frame.proxyWindow) == null ? void 0 : (_b = _a.fetch).update) == null ? void 0 : _c.call(_b, context);
6228
+ var _a2, _b, _c;
6229
+ return (_c = (_a2 = frame.proxyWindow) == null ? void 0 : (_b = _a2.fetch).update) == null ? void 0 : _c.call(_b, context);
6072
6230
  },
6073
6231
  () => update.call(frame, content, renderRoot).finally(() => channels.updated.next(0))
6074
6232
  ]);
@@ -6096,6 +6254,12 @@ const isSameDocumentOriginRequest = (self2, url) => {
6096
6254
  }
6097
6255
  return true;
6098
6256
  };
6257
+ const fetchNotification = (method, url) => ({
6258
+ data: { method, url: url.href.substring(url.origin.length) },
6259
+ description: "preview.notifications.fetch-event.description",
6260
+ message: "preview.notifications.fetch-event.message",
6261
+ status: "info"
6262
+ });
6099
6263
  const interceptCORSFetch = (self2, notification) => {
6100
6264
  const urlMaker = urlMakerFactory(self2);
6101
6265
  const { document: document2, parent } = self2;
@@ -6104,15 +6268,10 @@ const interceptCORSFetch = (self2, notification) => {
6104
6268
  }
6105
6269
  const originalFetch = self2.fetch.bind(self2);
6106
6270
  self2.fetch = (input, init2) => {
6107
- var _a;
6271
+ var _a2;
6108
6272
  const url = toURL(urlMaker, input);
6109
6273
  if (isSameDocumentOriginRequest(document2, url)) {
6110
- notification.next({
6111
- data: { method: (_a = init2 == null ? void 0 : init2.method) != null ? _a : "GET", url: url.href.substring(url.origin.length) },
6112
- description: "preview.notifications.fetch-event.description",
6113
- message: "preview.notifications.fetch-event.message",
6114
- status: "info"
6115
- });
6274
+ notification.next(fetchNotification((_a2 = init2 == null ? void 0 : init2.method) != null ? _a2 : "GET", url));
6116
6275
  }
6117
6276
  return originalFetch(input, init2);
6118
6277
  };
@@ -6198,7 +6357,7 @@ function registerCleanups(window2, fns) {
6198
6357
  }
6199
6358
  ((self2) => {
6200
6359
  init(self2);
6201
- const postChannelCleanup = postChannel.recv(self2);
6360
+ const postChannelCleanup = postChannel.recv(self2, self2.top);
6202
6361
  const senderCleanup = registerSenders(subjects);
6203
6362
  const listenerCleanup = registerEventListeners(
6204
6363
  self2,