@vscode-elements/elements 1.9.2-pre.0 → 1.9.2-pre.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.
@@ -24,7 +24,7 @@
24
24
  "text": "string"
25
25
  },
26
26
  "privacy": "private",
27
- "default": "'1.9.2-pre.0'"
27
+ "default": "'1.9.2-pre.1'"
28
28
  },
29
29
  {
30
30
  "kind": "field",
@@ -344,131 +344,6 @@
344
344
  }
345
345
  ]
346
346
  },
347
- {
348
- "kind": "javascript-module",
349
- "path": "src/vscode-badge/vscode-badge.styles.ts",
350
- "declarations": [
351
- {
352
- "kind": "variable",
353
- "name": "styles",
354
- "type": {
355
- "text": "CSSResultGroup"
356
- },
357
- "default": "[ defaultStyles, css` :host { background-color: var(--vscode-badge-background); border: 1px solid var(--vscode-contrastBorder, transparent); border-radius: 2px; box-sizing: border-box; color: var(--vscode-badge-foreground); display: inline-block; font-family: var(--vscode-font-family); font-size: 11px; font-weight: 400; line-height: 14px; min-width: 18px; padding: 2px 3px; text-align: center; white-space: nowrap; } :host([variant='counter']) { border-radius: 11px; box-sizing: border-box; height: 18px; line-height: 1; padding: 3px 5px; } :host([variant='activity-bar-counter']) { background-color: var(--vscode-activityBarBadge-background); border-radius: 20px; color: var(--vscode-activityBarBadge-foreground); font-size: 9px; font-weight: 600; line-height: 16px; padding: 0 4px; } `, ]"
358
- }
359
- ],
360
- "exports": [
361
- {
362
- "kind": "js",
363
- "name": "default",
364
- "declaration": {
365
- "name": "styles",
366
- "module": "src/vscode-badge/vscode-badge.styles.ts"
367
- }
368
- }
369
- ]
370
- },
371
- {
372
- "kind": "javascript-module",
373
- "path": "src/vscode-badge/vscode-badge.ts",
374
- "declarations": [
375
- {
376
- "kind": "class",
377
- "description": "",
378
- "name": "VscodeBadge",
379
- "cssProperties": [
380
- {
381
- "name": "--vscode-font-family"
382
- },
383
- {
384
- "description": "default and counter variant background color",
385
- "name": "--vscode-badge-background"
386
- },
387
- {
388
- "description": "default and counter variant foreground color",
389
- "name": "--vscode-badge-foreground"
390
- },
391
- {
392
- "description": "activity bar variant background color",
393
- "name": "--vscode-activityBarBadge-background"
394
- },
395
- {
396
- "description": "activity bar variant foreground color",
397
- "name": "--vscode-activityBarBadge-foreground"
398
- }
399
- ],
400
- "members": [
401
- {
402
- "kind": "field",
403
- "name": "variant",
404
- "type": {
405
- "text": "'default' | 'counter' | 'activity-bar-counter'"
406
- },
407
- "default": "'default'",
408
- "attribute": "variant",
409
- "reflects": true
410
- },
411
- {
412
- "kind": "field",
413
- "name": "_version",
414
- "type": {
415
- "text": "string"
416
- },
417
- "privacy": "private",
418
- "default": "'1.9.2-pre.0'",
419
- "inheritedFrom": {
420
- "name": "VscElement",
421
- "module": "src/includes/VscElement.ts"
422
- }
423
- },
424
- {
425
- "kind": "field",
426
- "name": "version",
427
- "description": "VSC Element version",
428
- "readonly": true,
429
- "inheritedFrom": {
430
- "name": "VscElement",
431
- "module": "src/includes/VscElement.ts"
432
- }
433
- }
434
- ],
435
- "attributes": [
436
- {
437
- "name": "variant",
438
- "type": {
439
- "text": "'default' | 'counter' | 'activity-bar-counter'"
440
- },
441
- "default": "'default'",
442
- "fieldName": "variant"
443
- }
444
- ],
445
- "superclass": {
446
- "name": "VscElement",
447
- "module": "/src/includes/VscElement.js"
448
- },
449
- "tagName": "vscode-badge",
450
- "customElement": true
451
- }
452
- ],
453
- "exports": [
454
- {
455
- "kind": "js",
456
- "name": "VscodeBadge",
457
- "declaration": {
458
- "name": "VscodeBadge",
459
- "module": "src/vscode-badge/vscode-badge.ts"
460
- }
461
- },
462
- {
463
- "kind": "custom-element-definition",
464
- "name": "vscode-badge",
465
- "declaration": {
466
- "name": "VscodeBadge",
467
- "module": "src/vscode-badge/vscode-badge.ts"
468
- }
469
- }
470
- ]
471
- },
472
347
  {
473
348
  "kind": "javascript-module",
474
349
  "path": "src/vscode-button/vscode-button.styles.ts",
@@ -743,7 +618,7 @@
743
618
  "text": "string"
744
619
  },
745
620
  "privacy": "private",
746
- "default": "'1.9.2-pre.0'",
621
+ "default": "'1.9.2-pre.1'",
747
622
  "inheritedFrom": {
748
623
  "name": "VscElement",
749
624
  "module": "src/includes/VscElement.ts"
@@ -908,6 +783,131 @@
908
783
  }
909
784
  ]
910
785
  },
786
+ {
787
+ "kind": "javascript-module",
788
+ "path": "src/vscode-badge/vscode-badge.styles.ts",
789
+ "declarations": [
790
+ {
791
+ "kind": "variable",
792
+ "name": "styles",
793
+ "type": {
794
+ "text": "CSSResultGroup"
795
+ },
796
+ "default": "[ defaultStyles, css` :host { background-color: var(--vscode-badge-background); border: 1px solid var(--vscode-contrastBorder, transparent); border-radius: 2px; box-sizing: border-box; color: var(--vscode-badge-foreground); display: inline-block; font-family: var(--vscode-font-family); font-size: 11px; font-weight: 400; line-height: 14px; min-width: 18px; padding: 2px 3px; text-align: center; white-space: nowrap; } :host([variant='counter']) { border-radius: 11px; box-sizing: border-box; height: 18px; line-height: 1; padding: 3px 5px; } :host([variant='activity-bar-counter']) { background-color: var(--vscode-activityBarBadge-background); border-radius: 20px; color: var(--vscode-activityBarBadge-foreground); font-size: 9px; font-weight: 600; line-height: 16px; padding: 0 4px; } `, ]"
797
+ }
798
+ ],
799
+ "exports": [
800
+ {
801
+ "kind": "js",
802
+ "name": "default",
803
+ "declaration": {
804
+ "name": "styles",
805
+ "module": "src/vscode-badge/vscode-badge.styles.ts"
806
+ }
807
+ }
808
+ ]
809
+ },
810
+ {
811
+ "kind": "javascript-module",
812
+ "path": "src/vscode-badge/vscode-badge.ts",
813
+ "declarations": [
814
+ {
815
+ "kind": "class",
816
+ "description": "",
817
+ "name": "VscodeBadge",
818
+ "cssProperties": [
819
+ {
820
+ "name": "--vscode-font-family"
821
+ },
822
+ {
823
+ "description": "default and counter variant background color",
824
+ "name": "--vscode-badge-background"
825
+ },
826
+ {
827
+ "description": "default and counter variant foreground color",
828
+ "name": "--vscode-badge-foreground"
829
+ },
830
+ {
831
+ "description": "activity bar variant background color",
832
+ "name": "--vscode-activityBarBadge-background"
833
+ },
834
+ {
835
+ "description": "activity bar variant foreground color",
836
+ "name": "--vscode-activityBarBadge-foreground"
837
+ }
838
+ ],
839
+ "members": [
840
+ {
841
+ "kind": "field",
842
+ "name": "variant",
843
+ "type": {
844
+ "text": "'default' | 'counter' | 'activity-bar-counter'"
845
+ },
846
+ "default": "'default'",
847
+ "attribute": "variant",
848
+ "reflects": true
849
+ },
850
+ {
851
+ "kind": "field",
852
+ "name": "_version",
853
+ "type": {
854
+ "text": "string"
855
+ },
856
+ "privacy": "private",
857
+ "default": "'1.9.2-pre.1'",
858
+ "inheritedFrom": {
859
+ "name": "VscElement",
860
+ "module": "src/includes/VscElement.ts"
861
+ }
862
+ },
863
+ {
864
+ "kind": "field",
865
+ "name": "version",
866
+ "description": "VSC Element version",
867
+ "readonly": true,
868
+ "inheritedFrom": {
869
+ "name": "VscElement",
870
+ "module": "src/includes/VscElement.ts"
871
+ }
872
+ }
873
+ ],
874
+ "attributes": [
875
+ {
876
+ "name": "variant",
877
+ "type": {
878
+ "text": "'default' | 'counter' | 'activity-bar-counter'"
879
+ },
880
+ "default": "'default'",
881
+ "fieldName": "variant"
882
+ }
883
+ ],
884
+ "superclass": {
885
+ "name": "VscElement",
886
+ "module": "/src/includes/VscElement.js"
887
+ },
888
+ "tagName": "vscode-badge",
889
+ "customElement": true
890
+ }
891
+ ],
892
+ "exports": [
893
+ {
894
+ "kind": "js",
895
+ "name": "VscodeBadge",
896
+ "declaration": {
897
+ "name": "VscodeBadge",
898
+ "module": "src/vscode-badge/vscode-badge.ts"
899
+ }
900
+ },
901
+ {
902
+ "kind": "custom-element-definition",
903
+ "name": "vscode-badge",
904
+ "declaration": {
905
+ "name": "VscodeBadge",
906
+ "module": "src/vscode-badge/vscode-badge.ts"
907
+ }
908
+ }
909
+ ]
910
+ },
911
911
  {
912
912
  "kind": "javascript-module",
913
913
  "path": "src/vscode-checkbox/vscode-checkbox.styles.ts",
@@ -1281,7 +1281,7 @@
1281
1281
  "text": "string"
1282
1282
  },
1283
1283
  "privacy": "private",
1284
- "default": "'1.9.2-pre.0'",
1284
+ "default": "'1.9.2-pre.1'",
1285
1285
  "inheritedFrom": {
1286
1286
  "name": "VscElement",
1287
1287
  "module": "src/includes/VscElement.ts"
@@ -1499,7 +1499,7 @@
1499
1499
  "text": "string"
1500
1500
  },
1501
1501
  "privacy": "private",
1502
- "default": "'1.9.2-pre.0'",
1502
+ "default": "'1.9.2-pre.1'",
1503
1503
  "inheritedFrom": {
1504
1504
  "name": "VscElement",
1505
1505
  "module": "src/includes/VscElement.ts"
@@ -1692,7 +1692,7 @@
1692
1692
  "text": "string"
1693
1693
  },
1694
1694
  "privacy": "private",
1695
- "default": "'1.9.2-pre.0'",
1695
+ "default": "'1.9.2-pre.1'",
1696
1696
  "inheritedFrom": {
1697
1697
  "name": "VscElement",
1698
1698
  "module": "src/includes/VscElement.ts"
@@ -2015,7 +2015,7 @@
2015
2015
  "text": "string"
2016
2016
  },
2017
2017
  "privacy": "private",
2018
- "default": "'1.9.2-pre.0'",
2018
+ "default": "'1.9.2-pre.1'",
2019
2019
  "inheritedFrom": {
2020
2020
  "name": "VscElement",
2021
2021
  "module": "src/includes/VscElement.ts"
@@ -2214,7 +2214,7 @@
2214
2214
  "text": "string"
2215
2215
  },
2216
2216
  "privacy": "private",
2217
- "default": "'1.9.2-pre.0'",
2217
+ "default": "'1.9.2-pre.1'",
2218
2218
  "inheritedFrom": {
2219
2219
  "name": "VscElement",
2220
2220
  "module": "src/includes/VscElement.ts"
@@ -2350,7 +2350,7 @@
2350
2350
  "text": "string"
2351
2351
  },
2352
2352
  "privacy": "private",
2353
- "default": "'1.9.2-pre.0'",
2353
+ "default": "'1.9.2-pre.1'",
2354
2354
  "inheritedFrom": {
2355
2355
  "name": "VscElement",
2356
2356
  "module": "src/includes/VscElement.ts"
@@ -2568,7 +2568,7 @@
2568
2568
  "text": "string"
2569
2569
  },
2570
2570
  "privacy": "private",
2571
- "default": "'1.9.2-pre.0'",
2571
+ "default": "'1.9.2-pre.1'",
2572
2572
  "inheritedFrom": {
2573
2573
  "name": "VscElement",
2574
2574
  "module": "src/includes/VscElement.ts"
@@ -2700,7 +2700,7 @@
2700
2700
  "text": "string"
2701
2701
  },
2702
2702
  "privacy": "private",
2703
- "default": "'1.9.2-pre.0'",
2703
+ "default": "'1.9.2-pre.1'",
2704
2704
  "inheritedFrom": {
2705
2705
  "name": "VscElement",
2706
2706
  "module": "src/includes/VscElement.ts"
@@ -2800,7 +2800,7 @@
2800
2800
  "text": "string"
2801
2801
  },
2802
2802
  "privacy": "private",
2803
- "default": "'1.9.2-pre.0'",
2803
+ "default": "'1.9.2-pre.1'",
2804
2804
  "inheritedFrom": {
2805
2805
  "name": "VscElement",
2806
2806
  "module": "src/includes/VscElement.ts"
@@ -2998,7 +2998,7 @@
2998
2998
  "text": "string"
2999
2999
  },
3000
3000
  "privacy": "private",
3001
- "default": "'1.9.2-pre.0'",
3001
+ "default": "'1.9.2-pre.1'",
3002
3002
  "inheritedFrom": {
3003
3003
  "name": "VscElement",
3004
3004
  "module": "src/includes/VscElement.ts"
@@ -3218,7 +3218,7 @@
3218
3218
  "text": "string"
3219
3219
  },
3220
3220
  "privacy": "private",
3221
- "default": "'1.9.2-pre.0'",
3221
+ "default": "'1.9.2-pre.1'",
3222
3222
  "inheritedFrom": {
3223
3223
  "name": "VscElement",
3224
3224
  "module": "src/includes/VscElement.ts"
@@ -4312,7 +4312,7 @@
4312
4312
  "text": "string"
4313
4313
  },
4314
4314
  "privacy": "private",
4315
- "default": "'1.9.2-pre.0'",
4315
+ "default": "'1.9.2-pre.1'",
4316
4316
  "inheritedFrom": {
4317
4317
  "name": "VscElement",
4318
4318
  "module": "src/includes/VscElement.ts"
@@ -4577,7 +4577,7 @@
4577
4577
  "text": "string"
4578
4578
  },
4579
4579
  "privacy": "private",
4580
- "default": "'1.9.2-pre.0'",
4580
+ "default": "'1.9.2-pre.1'",
4581
4581
  "inheritedFrom": {
4582
4582
  "name": "VscElement",
4583
4583
  "module": "src/includes/VscElement.ts"
@@ -4724,7 +4724,7 @@
4724
4724
  "text": "string"
4725
4725
  },
4726
4726
  "privacy": "private",
4727
- "default": "'1.9.2-pre.0'",
4727
+ "default": "'1.9.2-pre.1'",
4728
4728
  "inheritedFrom": {
4729
4729
  "name": "VscElement",
4730
4730
  "module": "src/includes/VscElement.ts"
@@ -5191,7 +5191,7 @@
5191
5191
  "text": "string"
5192
5192
  },
5193
5193
  "privacy": "private",
5194
- "default": "'1.9.2-pre.0'",
5194
+ "default": "'1.9.2-pre.1'",
5195
5195
  "inheritedFrom": {
5196
5196
  "name": "VscElement",
5197
5197
  "module": "src/includes/VscElement.ts"
@@ -5510,7 +5510,7 @@
5510
5510
  "text": "string"
5511
5511
  },
5512
5512
  "privacy": "private",
5513
- "default": "'1.9.2-pre.0'",
5513
+ "default": "'1.9.2-pre.1'",
5514
5514
  "inheritedFrom": {
5515
5515
  "name": "VscElement",
5516
5516
  "module": "src/includes/VscElement.ts"
@@ -5901,7 +5901,7 @@
5901
5901
  "text": "string"
5902
5902
  },
5903
5903
  "privacy": "private",
5904
- "default": "'1.9.2-pre.0'",
5904
+ "default": "'1.9.2-pre.1'",
5905
5905
  "inheritedFrom": {
5906
5906
  "name": "VscElement",
5907
5907
  "module": "src/includes/VscElement.ts"
@@ -6965,7 +6965,7 @@
6965
6965
  "text": "string"
6966
6966
  },
6967
6967
  "privacy": "private",
6968
- "default": "'1.9.2-pre.0'",
6968
+ "default": "'1.9.2-pre.1'",
6969
6969
  "inheritedFrom": {
6970
6970
  "name": "VscElement",
6971
6971
  "module": "src/includes/VscElement.ts"
@@ -7563,7 +7563,7 @@
7563
7563
  "text": "string"
7564
7564
  },
7565
7565
  "privacy": "private",
7566
- "default": "'1.9.2-pre.0'",
7566
+ "default": "'1.9.2-pre.1'",
7567
7567
  "inheritedFrom": {
7568
7568
  "name": "VscElement",
7569
7569
  "module": "src/includes/VscElement.ts"
@@ -7765,7 +7765,7 @@
7765
7765
  "text": "string"
7766
7766
  },
7767
7767
  "privacy": "private",
7768
- "default": "'1.9.2-pre.0'",
7768
+ "default": "'1.9.2-pre.1'",
7769
7769
  "inheritedFrom": {
7770
7770
  "name": "VscElement",
7771
7771
  "module": "src/includes/VscElement.ts"
@@ -7897,7 +7897,7 @@
7897
7897
  "text": "string"
7898
7898
  },
7899
7899
  "privacy": "private",
7900
- "default": "'1.9.2-pre.0'",
7900
+ "default": "'1.9.2-pre.1'",
7901
7901
  "inheritedFrom": {
7902
7902
  "name": "VscElement",
7903
7903
  "module": "src/includes/VscElement.ts"
@@ -8587,7 +8587,7 @@
8587
8587
  "text": "string"
8588
8588
  },
8589
8589
  "privacy": "private",
8590
- "default": "'1.9.2-pre.0'",
8590
+ "default": "'1.9.2-pre.1'",
8591
8591
  "inheritedFrom": {
8592
8592
  "name": "VscElement",
8593
8593
  "module": "src/includes/VscElement.ts"
@@ -8771,7 +8771,7 @@
8771
8771
  "text": "string"
8772
8772
  },
8773
8773
  "privacy": "private",
8774
- "default": "'1.9.2-pre.0'",
8774
+ "default": "'1.9.2-pre.1'",
8775
8775
  "inheritedFrom": {
8776
8776
  "name": "VscElement",
8777
8777
  "module": "src/includes/VscElement.ts"
@@ -8890,7 +8890,7 @@
8890
8890
  "text": "string"
8891
8891
  },
8892
8892
  "privacy": "private",
8893
- "default": "'1.9.2-pre.0'",
8893
+ "default": "'1.9.2-pre.1'",
8894
8894
  "inheritedFrom": {
8895
8895
  "name": "VscElement",
8896
8896
  "module": "src/includes/VscElement.ts"
@@ -9000,7 +9000,7 @@
9000
9000
  "text": "string"
9001
9001
  },
9002
9002
  "privacy": "private",
9003
- "default": "'1.9.2-pre.0'",
9003
+ "default": "'1.9.2-pre.1'",
9004
9004
  "inheritedFrom": {
9005
9005
  "name": "VscElement",
9006
9006
  "module": "src/includes/VscElement.ts"
@@ -9095,7 +9095,7 @@
9095
9095
  "text": "string"
9096
9096
  },
9097
9097
  "privacy": "private",
9098
- "default": "'1.9.2-pre.0'",
9098
+ "default": "'1.9.2-pre.1'",
9099
9099
  "inheritedFrom": {
9100
9100
  "name": "VscElement",
9101
9101
  "module": "src/includes/VscElement.ts"
@@ -9184,7 +9184,7 @@
9184
9184
  "text": "string"
9185
9185
  },
9186
9186
  "privacy": "private",
9187
- "default": "'1.9.2-pre.0'",
9187
+ "default": "'1.9.2-pre.1'",
9188
9188
  "inheritedFrom": {
9189
9189
  "name": "VscElement",
9190
9190
  "module": "src/includes/VscElement.ts"
@@ -9433,7 +9433,7 @@
9433
9433
  "text": "string"
9434
9434
  },
9435
9435
  "privacy": "private",
9436
- "default": "'1.9.2-pre.0'",
9436
+ "default": "'1.9.2-pre.1'",
9437
9437
  "inheritedFrom": {
9438
9438
  "name": "VscElement",
9439
9439
  "module": "src/includes/VscElement.ts"
@@ -9941,7 +9941,7 @@
9941
9941
  "text": "string"
9942
9942
  },
9943
9943
  "privacy": "private",
9944
- "default": "'1.9.2-pre.0'",
9944
+ "default": "'1.9.2-pre.1'",
9945
9945
  "inheritedFrom": {
9946
9946
  "name": "VscElement",
9947
9947
  "module": "src/includes/VscElement.ts"
@@ -10574,7 +10574,7 @@
10574
10574
  "text": "string"
10575
10575
  },
10576
10576
  "privacy": "private",
10577
- "default": "'1.9.2-pre.0'",
10577
+ "default": "'1.9.2-pre.1'",
10578
10578
  "inheritedFrom": {
10579
10579
  "name": "VscElement",
10580
10580
  "module": "src/includes/VscElement.ts"
@@ -11312,7 +11312,7 @@
11312
11312
  "text": "string"
11313
11313
  },
11314
11314
  "privacy": "private",
11315
- "default": "'1.9.2-pre.0'",
11315
+ "default": "'1.9.2-pre.1'",
11316
11316
  "inheritedFrom": {
11317
11317
  "name": "VscElement",
11318
11318
  "module": "src/includes/VscElement.ts"
@@ -11482,7 +11482,7 @@
11482
11482
  "text": "string"
11483
11483
  },
11484
11484
  "privacy": "private",
11485
- "default": "'1.9.2-pre.0'",
11485
+ "default": "'1.9.2-pre.1'",
11486
11486
  "inheritedFrom": {
11487
11487
  "name": "VscElement",
11488
11488
  "module": "src/includes/VscElement.ts"
@@ -12451,7 +12451,7 @@
12451
12451
  "text": "string"
12452
12452
  },
12453
12453
  "privacy": "private",
12454
- "default": "'1.9.2-pre.0'",
12454
+ "default": "'1.9.2-pre.1'",
12455
12455
  "inheritedFrom": {
12456
12456
  "name": "VscElement",
12457
12457
  "module": "src/includes/VscElement.ts"
package/dist/bundled.js CHANGED
@@ -1,4 +1,4 @@
1
- const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),i=new WeakMap;let o=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}};const r=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new o(i,t,s)},n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,s))(e)})(t):t,{is:l,defineProperty:a,getOwnPropertyDescriptor:h,getOwnPropertyNames:c,getOwnPropertySymbols:d,getPrototypeOf:u}=Object,v=globalThis,p=v.trustedTypes,b=p?p.emptyScript:"",f=v.reactiveElementPolyfillSupport,g=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},x=(t,e)=>!l(t,e),y={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&a(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const r=i?.call(this);o.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(g("elementProperties")))return;const t=u(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(g("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(g("properties"))){const t=this.properties,e=[...c(t),...d(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),o=t.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:m).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??x)(this[t],e))return;this.P(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t)!0!==s.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[g("elementProperties")]=new Map,w[g("finalized")]=new Map,f?.({ReactiveElement:w}),(v.reactiveElementVersions??=[]).push("2.0.4");const k=globalThis,$=k.trustedTypes,_=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,S="?"+B,z=`<${S}>`,A=document,O=()=>A.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,I=t=>j(t)||"function"==typeof t?.[Symbol.iterator],F="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,N=/>/g,D=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,T=/"/g,R=/^(?:script|style|textarea|title)$/i,L=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),U=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),H=new WeakMap,K=A.createTreeWalker(A,129);function W(t,e){if(!j(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_?_.createHTML(e):e}const G=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=M;for(let e=0;e<s;e++){const s=t[e];let l,a,h=-1,c=0;for(;c<s.length&&(n.lastIndex=c,a=n.exec(s),null!==a);)c=n.lastIndex,n===M?"!--"===a[1]?n=P:void 0!==a[1]?n=N:void 0!==a[2]?(R.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=D):void 0!==a[3]&&(n=D):n===D?">"===a[0]?(n=o??M,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?D:'"'===a[3]?T:V):n===T||n===V?n=D:n===P||n===N?n=M:(n=D,o=void 0);const d=n===D&&t[e+1].startsWith("/>")?" ":"";r+=n===M?s+z:h>=0?(i.push(l),s.slice(0,h)+C+s.slice(h)+B+d):s+B+(-2===h?e:d)}return[W(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class J{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,h]=G(t,e);if(this.el=J.createElement(a,s),K.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=K.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=h[r++],s=i.getAttribute(t).split(B),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?tt:"?"===n[1]?et:"@"===n[1]?st:Q}),i.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:o}),i.removeAttribute(t));if(R.test(i.tagName)){const t=i.textContent.split(B),e=t.length-1;if(e>0){i.textContent=$?$.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],O()),K.nextNode(),l.push({type:2,index:++o});i.append(t[e],O())}}}else if(8===i.nodeType)if(i.data===S)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(B,t+1));)l.push({type:7,index:o}),t+=B.length-1}o++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function Y(t,e,s=t,i){if(e===U)return e;let o=void 0!==i?s.o?.[i]:s.l;const r=E(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,s,i)),void 0!==i?(s.o??=[])[i]=o:s.l=o),void 0!==o&&(e=Y(t,o._$AS(t,e.values),o,i)),e}class X{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??A).importNode(e,!0);K.currentNode=i;let o=K.nextNode(),r=0,n=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Z(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new it(o,this,t)),this._$AV.push(e),l=s[++n]}r!==l?.index&&(o=K.nextNode(),r++)}return K.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}let Z=class t{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,e,s,i){this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this.v=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),E(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):I(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==q&&E(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=J.createElement(W(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new X(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new J(t)),e}k(e){j(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,o=0;for(const r of e)o===s.length?s.push(i=new t(this.O(O()),this.O(O()),this,this.options)):i=s[o],i._$AI(r),o++;o<s.length&&(this._$AR(i&&i._$AB.nextSibling,o),s.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this.v=t,this._$AP?.(t))}};class Q{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=q}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=Y(this,t,e,0),r=!E(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const i=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Y(this,i[s+n],e,n),l===U&&(l=this._$AH[n]),r||=!E(l)||l!==this._$AH[n],l===q?t=q:t!==q&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!i&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}class et extends Q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==q)}}class st extends Q{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??q)===U)return;const s=this._$AH,i=t===q&&s!==q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==q&&(s===q||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const ot={M:C,P:B,A:S,C:1,L:G,R:X,D:I,V:Y,I:Z,H:Q,N:et,U:st,B:tt,F:it},rt=k.litHtmlPolyfillSupport;rt?.(J,Z),(k.litHtmlVersions??=[]).push("3.2.0");class nt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=((t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new Z(e.insertBefore(O(),t),t,void 0,s??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return U}}nt._$litElement$=!0,nt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:nt});const lt=globalThis.litElementPolyfillSupport;lt?.({LitElement:nt}),(globalThis.litElementVersions??=[]).push("4.1.0");const at=t=>(e,s)=>{void 0!==s?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},ht={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},ct=(t=ht,e,s)=>{const{kind:i,metadata:o}=s;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),r.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const o=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,o,t)},init(e){return void 0!==e&&this.P(i,void 0,t),e}}}if("setter"===i){const{name:i}=s;return function(s){const o=this[i];e.call(this,s),this.requestUpdate(i,o,t)}}throw Error("Unsupported decorator location: "+i)};function dt(t){return(e,s)=>"object"==typeof s?ct(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function ut(t){return dt({...t,state:!0,attribute:!1})}const vt=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,s);function pt(t,e){return(e,s,i)=>vt(0,0,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let bt;function ft(t){return(e,s)=>{const{slot:i,selector:o}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return vt(0,0,{get(){const e=this.renderRoot?.querySelector(r),s=e?.assignedElements(t)??[];return void 0===o?s:s.filter((t=>t.matches(o)))}})}}class gt extends nt{constructor(){super(...arguments),this._version="1.9.2-pre.0"}get version(){return this._version}}var mt=r`
1
+ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),i=new WeakMap;let o=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}};const r=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new o(i,t,s)},n=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,s))(e)})(t):t,{is:l,defineProperty:a,getOwnPropertyDescriptor:h,getOwnPropertyNames:c,getOwnPropertySymbols:d,getPrototypeOf:u}=Object,v=globalThis,p=v.trustedTypes,b=p?p.emptyScript:"",f=v.reactiveElementPolyfillSupport,g=(t,e)=>t,m={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},x=(t,e)=>!l(t,e),y={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class w extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&a(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const r=i?.call(this);o.call(this,e),this.requestUpdate(t,r,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??y}static _$Ei(){if(this.hasOwnProperty(g("elementProperties")))return;const t=u(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(g("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(g("properties"))){const t=this.properties,e=[...c(t),...d(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),o=t.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:m).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:m;this._$Em=i,this[i]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??x)(this[t],e))return;this.P(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t)!0!==s.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],s)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}w.elementStyles=[],w.shadowRootOptions={mode:"open"},w[g("elementProperties")]=new Map,w[g("finalized")]=new Map,f?.({ReactiveElement:w}),(v.reactiveElementVersions??=[]).push("2.0.4");const k=globalThis,$=k.trustedTypes,_=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,S="?"+B,z=`<${S}>`,A=document,O=()=>A.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,I=t=>j(t)||"function"==typeof t?.[Symbol.iterator],M="[ \t\n\f\r]",F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,N=/>/g,D=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,T=/"/g,R=/^(?:script|style|textarea|title)$/i,L=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),U=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),H=new WeakMap,K=A.createTreeWalker(A,129);function W(t,e){if(!j(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==_?_.createHTML(e):e}const G=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=F;for(let e=0;e<s;e++){const s=t[e];let l,a,h=-1,c=0;for(;c<s.length&&(n.lastIndex=c,a=n.exec(s),null!==a);)c=n.lastIndex,n===F?"!--"===a[1]?n=P:void 0!==a[1]?n=N:void 0!==a[2]?(R.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=D):void 0!==a[3]&&(n=D):n===D?">"===a[0]?(n=o??F,h=-1):void 0===a[1]?h=-2:(h=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?D:'"'===a[3]?T:V):n===T||n===V?n=D:n===P||n===N?n=F:(n=D,o=void 0);const d=n===D&&t[e+1].startsWith("/>")?" ":"";r+=n===F?s+z:h>=0?(i.push(l),s.slice(0,h)+C+s.slice(h)+B+d):s+B+(-2===h?e:d)}return[W(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class J{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,h]=G(t,e);if(this.el=J.createElement(a,s),K.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=K.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(C)){const e=h[r++],s=i.getAttribute(t).split(B),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?tt:"?"===n[1]?et:"@"===n[1]?st:Q}),i.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:o}),i.removeAttribute(t));if(R.test(i.tagName)){const t=i.textContent.split(B),e=t.length-1;if(e>0){i.textContent=$?$.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],O()),K.nextNode(),l.push({type:2,index:++o});i.append(t[e],O())}}}else if(8===i.nodeType)if(i.data===S)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(B,t+1));)l.push({type:7,index:o}),t+=B.length-1}o++}}static createElement(t,e){const s=A.createElement("template");return s.innerHTML=t,s}}function Y(t,e,s=t,i){if(e===U)return e;let o=void 0!==i?s.o?.[i]:s.l;const r=E(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,s,i)),void 0!==i?(s.o??=[])[i]=o:s.l=o),void 0!==o&&(e=Y(t,o._$AS(t,e.values),o,i)),e}class X{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??A).importNode(e,!0);K.currentNode=i;let o=K.nextNode(),r=0,n=0,l=s[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Z(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new it(o,this,t)),this._$AV.push(e),l=s[++n]}r!==l?.index&&(o=K.nextNode(),r++)}return K.currentNode=A,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}let Z=class t{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,e,s,i){this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this.v=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Y(this,t,e),E(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):I(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==q&&E(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=J.createElement(W(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new X(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=H.get(t.strings);return void 0===e&&H.set(t.strings,e=new J(t)),e}k(e){j(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,o=0;for(const r of e)o===s.length?s.push(i=new t(this.O(O()),this.O(O()),this,this.options)):i=s[o],i._$AI(r),o++;o<s.length&&(this._$AR(i&&i._$AB.nextSibling,o),s.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this.v=t,this._$AP?.(t))}};class Q{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=q}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=Y(this,t,e,0),r=!E(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const i=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Y(this,i[s+n],e,n),l===U&&(l=this._$AH[n]),r||=!E(l)||l!==this._$AH[n],l===q?t=q:t!==q&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!i&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}class et extends Q{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==q)}}class st extends Q{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=Y(this,t,e,0)??q)===U)return;const s=this._$AH,i=t===q&&s!==q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==q&&(s===q||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class it{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){Y(this,t)}}const ot={M:C,P:B,A:S,C:1,L:G,R:X,D:I,V:Y,I:Z,H:Q,N:et,U:st,B:tt,F:it},rt=k.litHtmlPolyfillSupport;rt?.(J,Z),(k.litHtmlVersions??=[]).push("3.2.0");class nt extends w{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=((t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new Z(e.insertBefore(O(),t),t,void 0,s??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return U}}nt._$litElement$=!0,nt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:nt});const lt=globalThis.litElementPolyfillSupport;lt?.({LitElement:nt}),(globalThis.litElementVersions??=[]).push("4.1.0");const at=t=>(e,s)=>{void 0!==s?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},ht={attribute:!0,type:String,converter:m,reflect:!1,hasChanged:x},ct=(t=ht,e,s)=>{const{kind:i,metadata:o}=s;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),r.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const o=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,o,t)},init(e){return void 0!==e&&this.P(i,void 0,t),e}}}if("setter"===i){const{name:i}=s;return function(s){const o=this[i];e.call(this,s),this.requestUpdate(i,o,t)}}throw Error("Unsupported decorator location: "+i)};function dt(t){return(e,s)=>"object"==typeof s?ct(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function ut(t){return dt({...t,state:!0,attribute:!1})}const vt=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,s);function pt(t,e){return(e,s,i)=>vt(0,0,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}let bt;function ft(t){return(e,s)=>{const{slot:i,selector:o}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return vt(0,0,{get(){const e=this.renderRoot?.querySelector(r),s=e?.assignedElements(t)??[];return void 0===o?s:s.filter((t=>t.matches(o)))}})}}class gt extends nt{constructor(){super(...arguments),this._version="1.9.2-pre.1"}get version(){return this._version}}var mt=r`
2
2
  :host([hidden]) {
3
3
  display: none;
4
4
  }
@@ -98,7 +98,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
98
98
  animation-timing-function: linear;
99
99
  animation-iteration-count: infinite;
100
100
  }
101
- `];var jt,It=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ft=jt=class extends gt{constructor(){super(...arguments),this.label="",this.name="",this.size=16,this.spin=!1,this.spinDuration=1.5,this.actionIcon=!1,this._onButtonClick=t=>{this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}}))}}connectedCallback(){super.connectedCallback();const{href:t,nonce:e}=this._getStylesheetConfig();jt.stylesheetHref=t,jt.nonce=e}_getStylesheetConfig(){const t=document.getElementById("vscode-codicon-stylesheet"),e=t?.getAttribute("href")||void 0;return{nonce:t?.getAttribute("nonce")||void 0,href:e}}render(){const{stylesheetHref:t,nonce:e}=jt,s=L`<span
101
+ `];var jt,It=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Mt=jt=class extends gt{constructor(){super(...arguments),this.label="",this.name="",this.size=16,this.spin=!1,this.spinDuration=1.5,this.actionIcon=!1,this._onButtonClick=t=>{this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}}))}}connectedCallback(){super.connectedCallback();const{href:t,nonce:e}=this._getStylesheetConfig();jt.stylesheetHref=t,jt.nonce=e}_getStylesheetConfig(){const t=document.getElementById("vscode-codicon-stylesheet"),e=t?.getAttribute("href")||void 0;return{nonce:t?.getAttribute("nonce")||void 0,href:e}}render(){const{stylesheetHref:t,nonce:e}=jt,s=L`<span
102
102
  class="${Bt({codicon:!0,["codicon-"+this.name]:!0,spin:this.spin})}"
103
103
  style="${At({animationDuration:String(this.spinDuration)+"s",fontSize:this.size+"px",height:this.size+"px",width:this.size+"px"})}"
104
104
  ></span>`,i=this.actionIcon?L` <button
@@ -116,7 +116,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
116
116
  nonce="${Ot(e)}"
117
117
  />
118
118
  ${i}
119
- `}};Ft.styles=Et,Ft.stylesheetHref="",Ft.nonce="",It([dt()],Ft.prototype,"label",void 0),It([dt({type:String})],Ft.prototype,"name",void 0),It([dt({type:Number})],Ft.prototype,"size",void 0),It([dt({type:Boolean,reflect:!0})],Ft.prototype,"spin",void 0),It([dt({type:Number,attribute:"spin-duration"})],Ft.prototype,"spinDuration",void 0),It([dt({type:Boolean,reflect:!0,attribute:"action-icon"})],Ft.prototype,"actionIcon",void 0),Ft=jt=It([at("vscode-icon")],Ft);const Mt=[mt,r`
119
+ `}};Mt.styles=Et,Mt.stylesheetHref="",Mt.nonce="",It([dt()],Mt.prototype,"label",void 0),It([dt({type:String})],Mt.prototype,"name",void 0),It([dt({type:Number})],Mt.prototype,"size",void 0),It([dt({type:Boolean,reflect:!0})],Mt.prototype,"spin",void 0),It([dt({type:Number,attribute:"spin-duration"})],Mt.prototype,"spinDuration",void 0),It([dt({type:Boolean,reflect:!0,attribute:"action-icon"})],Mt.prototype,"actionIcon",void 0),Mt=jt=It([at("vscode-icon")],Mt);const Ft=[mt,r`
120
120
  :host {
121
121
  background-color: var(--vscode-button-background);
122
122
  border-color: var(
@@ -234,7 +234,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
234
234
  display: block;
235
235
  margin-left: 3px;
236
236
  }
237
- `];var Pt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Nt=class extends gt{get form(){return this._internals.form}constructor(){super(),this.autofocus=!1,this.tabIndex=0,this.secondary=!1,this.role="button",this.disabled=!1,this.icon="",this.iconSpin=!1,this.iconAfter="",this.iconAfterSpin=!1,this.focused=!1,this.name=void 0,this.type="button",this.value="",this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},this.addEventListener("keydown",this._handleKeyDown.bind(this)),this.addEventListener("click",this._handleClick.bind(this)),this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.tabIndex<0&&(this.tabIndex=0),this.updateComplete.then((()=>{this.focus(),this.requestUpdate()}))),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}update(t){super.update(t),t.has("value")&&this._internals.setFormValue(this.value),t.has("disabled")&&(this.disabled?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):this.tabIndex=this._prevTabindex)}_executeAction(){"submit"===this.type&&this._internals.form&&this._internals.form.requestSubmit(),"reset"===this.type&&this._internals.form&&this._internals.form.reset()}_handleKeyDown(t){"Enter"!==t.key&&" "!==t.key||this.hasAttribute("disabled")||(this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:new MouseEvent("click")}})),this._executeAction())}_handleClick(t){this.hasAttribute("disabled")||(this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}})),this._executeAction())}render(){const t=""!==this.icon,e=""!==this.iconAfter,s={wrapper:!0,"has-icon-before":t,"has-icon-after":e},i=t?L`<vscode-icon
237
+ `];var Pt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Nt=class extends gt{get form(){return this._internals.form}constructor(){super(),this.autofocus=!1,this.tabIndex=0,this.secondary=!1,this.role="button",this.disabled=!1,this.icon="",this.iconSpin=!1,this.iconAfter="",this.iconAfterSpin=!1,this.focused=!1,this.name=void 0,this.type="button",this.value="",this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},this.addEventListener("keydown",this._handleKeyDown.bind(this)),this.addEventListener("click",this._handleClick.bind(this)),this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.tabIndex<0&&(this.tabIndex=0),this.updateComplete.then((()=>{this.focus(),this.requestUpdate()}))),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}update(t){super.update(t),t.has("value")&&this._internals.setFormValue(this.value),t.has("disabled")&&(this.disabled?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):this.tabIndex=this._prevTabindex)}_executeAction(){"submit"===this.type&&this._internals.form&&this._internals.form.requestSubmit(),"reset"===this.type&&this._internals.form&&this._internals.form.reset()}_handleKeyDown(t){if(("Enter"===t.key||" "===t.key)&&!this.hasAttribute("disabled")){this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:new MouseEvent("click")}}));const t=new MouseEvent("click",{bubbles:!0,cancelable:!0});t.synthetic=!0,this.dispatchEvent(t),this._executeAction()}}_handleClick(t){t.synthetic||this.hasAttribute("disabled")||(this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}})),this._executeAction())}render(){const t=""!==this.icon,e=""!==this.iconAfter,s={wrapper:!0,"has-icon-before":t,"has-icon-after":e},i=t?L`<vscode-icon
238
238
  name="${this.icon}"
239
239
  ?spin="${this.iconSpin}"
240
240
  spin-duration="${Ot(this.iconSpinDuration)}"
@@ -250,7 +250,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
250
250
  <slot></slot>
251
251
  ${o}
252
252
  </span>
253
- `}};Nt.styles=Mt,Nt.formAssociated=!0,Pt([dt({type:Boolean,reflect:!0})],Nt.prototype,"autofocus",void 0),Pt([dt({type:Number,reflect:!0})],Nt.prototype,"tabIndex",void 0),Pt([dt({type:Boolean,reflect:!0})],Nt.prototype,"secondary",void 0),Pt([dt({reflect:!0})],Nt.prototype,"role",void 0),Pt([dt({type:Boolean,reflect:!0})],Nt.prototype,"disabled",void 0),Pt([dt()],Nt.prototype,"icon",void 0),Pt([dt({type:Boolean,reflect:!0,attribute:"icon-spin"})],Nt.prototype,"iconSpin",void 0),Pt([dt({type:Number,reflect:!0,attribute:"icon-spin-duration"})],Nt.prototype,"iconSpinDuration",void 0),Pt([dt({attribute:"icon-after"})],Nt.prototype,"iconAfter",void 0),Pt([dt({type:Boolean,reflect:!0,attribute:"icon-after-spin"})],Nt.prototype,"iconAfterSpin",void 0),Pt([dt({type:Number,reflect:!0,attribute:"icon-after-spin-duration"})],Nt.prototype,"iconAfterSpinDuration",void 0),Pt([dt({type:Boolean,reflect:!0})],Nt.prototype,"focused",void 0),Pt([dt({type:String,reflect:!0})],Nt.prototype,"name",void 0),Pt([dt({reflect:!0})],Nt.prototype,"type",void 0),Pt([dt()],Nt.prototype,"value",void 0),Nt=Pt([at("vscode-button")],Nt);const Dt="__vscode-webview-elements_custom-properties__";let Vt;const Tt=()=>{Rt(Lt())},Rt=t=>{const e=document.getElementById(Dt);if(e)e.innerHTML=t;else{const e=document.createElement("style");e.setAttribute("id",Dt),e.innerHTML=t,document.querySelector("head")?.appendChild(e)}},Lt=()=>{const t=document.documentElement.style.getPropertyValue("--vscode-foreground");let e="";var s,i;return t?/rgba\([0-9, .]+\)/g.test(t)?e=t:(s=t.trim(),i=.9,e=`rgba(${parseInt(s.substring(1,3),16)}, ${parseInt(s.substring(3,5),16)}, ${parseInt(s.substring(5,7),16)}, ${i})`):e="rgba(0, 0, 0, 0.9)",`:root{--vsc-foreground-translucent: ${e};}`};function Ut(){Vt||(Vt=new MutationObserver(Tt),Vt.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]})),Rt(Lt())}var qt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};class Ht extends gt{constructor(){super(),this.focused=!1,this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},Ut()}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"disabled"===t&&this.hasAttribute("disabled")?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):"disabled"!==t||this.hasAttribute("disabled")||(this.tabIndex=this._prevTabindex)}}qt([dt({type:Boolean,reflect:!0})],Ht.prototype,"focused",void 0);var Kt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Wt=t=>{class e extends t{constructor(){super(...arguments),this._label="",this._slottedText=""}set label(t){this._label=t,""===this._slottedText&&this.setAttribute("aria-label",t)}get label(){return this._label}_handleSlotChange(){this._slottedText=this.textContent?this.textContent.trim():"",""!==this._slottedText&&this.setAttribute("aria-label",this._slottedText)}_renderLabelAttribute(){return""===this._slottedText?L`<span class="label-attr">${this._label}</span>`:L`${q}`}}return Kt([dt()],e.prototype,"label",null),e};var Gt=[r`
253
+ `}};Nt.styles=Ft,Nt.formAssociated=!0,Pt([dt({type:Boolean,reflect:!0})],Nt.prototype,"autofocus",void 0),Pt([dt({type:Number,reflect:!0})],Nt.prototype,"tabIndex",void 0),Pt([dt({type:Boolean,reflect:!0})],Nt.prototype,"secondary",void 0),Pt([dt({reflect:!0})],Nt.prototype,"role",void 0),Pt([dt({type:Boolean,reflect:!0})],Nt.prototype,"disabled",void 0),Pt([dt()],Nt.prototype,"icon",void 0),Pt([dt({type:Boolean,reflect:!0,attribute:"icon-spin"})],Nt.prototype,"iconSpin",void 0),Pt([dt({type:Number,reflect:!0,attribute:"icon-spin-duration"})],Nt.prototype,"iconSpinDuration",void 0),Pt([dt({attribute:"icon-after"})],Nt.prototype,"iconAfter",void 0),Pt([dt({type:Boolean,reflect:!0,attribute:"icon-after-spin"})],Nt.prototype,"iconAfterSpin",void 0),Pt([dt({type:Number,reflect:!0,attribute:"icon-after-spin-duration"})],Nt.prototype,"iconAfterSpinDuration",void 0),Pt([dt({type:Boolean,reflect:!0})],Nt.prototype,"focused",void 0),Pt([dt({type:String,reflect:!0})],Nt.prototype,"name",void 0),Pt([dt({reflect:!0})],Nt.prototype,"type",void 0),Pt([dt()],Nt.prototype,"value",void 0),Nt=Pt([at("vscode-button")],Nt);const Dt="__vscode-webview-elements_custom-properties__";let Vt;const Tt=()=>{Rt(Lt())},Rt=t=>{const e=document.getElementById(Dt);if(e)e.innerHTML=t;else{const e=document.createElement("style");e.setAttribute("id",Dt),e.innerHTML=t,document.querySelector("head")?.appendChild(e)}},Lt=()=>{const t=document.documentElement.style.getPropertyValue("--vscode-foreground");let e="";var s,i;return t?/rgba\([0-9, .]+\)/g.test(t)?e=t:(s=t.trim(),i=.9,e=`rgba(${parseInt(s.substring(1,3),16)}, ${parseInt(s.substring(3,5),16)}, ${parseInt(s.substring(5,7),16)}, ${i})`):e="rgba(0, 0, 0, 0.9)",`:root{--vsc-foreground-translucent: ${e};}`};function Ut(){Vt||(Vt=new MutationObserver(Tt),Vt.observe(document.documentElement,{attributes:!0,attributeFilter:["style"]})),Rt(Lt())}var qt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};class Ht extends gt{constructor(){super(),this.focused=!1,this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},Ut()}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s),"disabled"===t&&this.hasAttribute("disabled")?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):"disabled"!==t||this.hasAttribute("disabled")||(this.tabIndex=this._prevTabindex)}}qt([dt({type:Boolean,reflect:!0})],Ht.prototype,"focused",void 0);var Kt=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Wt=t=>{class e extends t{constructor(){super(...arguments),this._label="",this._slottedText=""}set label(t){this._label=t,""===this._slottedText&&this.setAttribute("aria-label",t)}get label(){return this._label}_handleSlotChange(){this._slottedText=this.textContent?this.textContent.trim():"",""!==this._slottedText&&this.setAttribute("aria-label",this._slottedText)}_renderLabelAttribute(){return""===this._slottedText?L`<span class="label-attr">${this._label}</span>`:L`${q}`}}return Kt([dt()],e.prototype,"label",null),e};var Gt=[r`
254
254
  :host {
255
255
  color: var(--vsc-foreground-translucent);
256
256
  display: inline-block;
@@ -997,7 +997,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
997
997
  @scroll=${this._handleScroll}
998
998
  .value=${this._value}
999
999
  ></textarea>
1000
- `}};Ie.styles=Ee,Ie.formAssociated=!0,Ie.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},je([dt()],Ie.prototype,"autocomplete",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"autofocus",void 0),je([dt({attribute:"default-value"})],Ie.prototype,"defaultValue",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"disabled",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"invalid",void 0),je([dt({attribute:!1})],Ie.prototype,"label",void 0),je([dt({type:Number})],Ie.prototype,"maxLength",void 0),je([dt({type:Number})],Ie.prototype,"minLength",void 0),je([dt({type:Number})],Ie.prototype,"rows",void 0),je([dt({type:Number})],Ie.prototype,"cols",void 0),je([dt()],Ie.prototype,"name",void 0),je([dt()],Ie.prototype,"placeholder",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"readonly",void 0),je([dt()],Ie.prototype,"resize",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"required",void 0),je([dt({type:Boolean})],Ie.prototype,"spellcheck",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"monospace",void 0),je([dt()],Ie.prototype,"value",null),je([pt("#textarea")],Ie.prototype,"_textareaEl",void 0),je([ut()],Ie.prototype,"_value",void 0),je([ut()],Ie.prototype,"_textareaPointerCursor",void 0),je([ut()],Ie.prototype,"_shadow",void 0),Ie=je([at("vscode-textarea")],Ie);const Fe=[mt,r`
1000
+ `}};Ie.styles=Ee,Ie.formAssociated=!0,Ie.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},je([dt()],Ie.prototype,"autocomplete",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"autofocus",void 0),je([dt({attribute:"default-value"})],Ie.prototype,"defaultValue",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"disabled",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"invalid",void 0),je([dt({attribute:!1})],Ie.prototype,"label",void 0),je([dt({type:Number})],Ie.prototype,"maxLength",void 0),je([dt({type:Number})],Ie.prototype,"minLength",void 0),je([dt({type:Number})],Ie.prototype,"rows",void 0),je([dt({type:Number})],Ie.prototype,"cols",void 0),je([dt()],Ie.prototype,"name",void 0),je([dt()],Ie.prototype,"placeholder",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"readonly",void 0),je([dt()],Ie.prototype,"resize",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"required",void 0),je([dt({type:Boolean})],Ie.prototype,"spellcheck",void 0),je([dt({type:Boolean,reflect:!0})],Ie.prototype,"monospace",void 0),je([dt()],Ie.prototype,"value",null),je([pt("#textarea")],Ie.prototype,"_textareaEl",void 0),je([ut()],Ie.prototype,"_value",void 0),je([ut()],Ie.prototype,"_textareaPointerCursor",void 0),je([ut()],Ie.prototype,"_shadow",void 0),Ie=je([at("vscode-textarea")],Ie);const Me=[mt,r`
1001
1001
  :host {
1002
1002
  align-items: center;
1003
1003
  background-color: var(--vscode-settings-textInputBackground);
@@ -1096,7 +1096,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1096
1096
  input[type='file']::file-selector-button:hover {
1097
1097
  background-color: var(--vscode-button-hoverBackground);
1098
1098
  }
1099
- `];var Me=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Pe=class extends gt{set type(t){this._type=["color","date","datetime-local","email","file","month","number","password","search","tel","text","time","url","week"].includes(t)?t:"text"}get type(){return this._type}set value(t){"file"!==this.type&&(this._value=t,this._internals.setFormValue(t)),this.updateComplete.then((()=>{this._setValidityFromInput()}))}get value(){return this._value}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._setValidityFromInput(),this._internals.checkValidity()}reportValidity(){return this._setValidityFromInput(),this._internals.reportValidity()}get wrappedElement(){return this._inputEl}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.focused=!1,this.invalid=!1,this.label="",this.max=void 0,this.maxLength=void 0,this.min=void 0,this.minLength=void 0,this.multiple=!1,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.step=void 0,this._value="",this._type="text",this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._inputEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._inputEl.value)}))}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s);["max","maxlength","min","minlength","pattern","required","step"].includes(t)&&this.updateComplete.then((()=>{this._setValidityFromInput()}))}formResetCallback(){this.value=this.defaultValue,this.requestUpdate()}formStateRestoreCallback(t,e){this.value=t}_dataChanged(){if(this._value=this._inputEl.value,"file"===this.type&&this._inputEl.files)for(const t of this._inputEl.files)this._internals.setFormValue(t);else this._internals.setFormValue(this._inputEl.value)}_setValidityFromInput(){this._inputEl&&this._internals.setValidity(this._inputEl.validity,this._inputEl.validationMessage,this._inputEl)}_onInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_onChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_onFocus(){this.focused=!0}_onBlur(){this.focused=!1}_onKeyDown(t){"Enter"===t.key&&this._internals.form&&this._internals.form?.requestSubmit()}render(){return L`
1099
+ `];var Fe=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Pe=class extends gt{set type(t){this._type=["color","date","datetime-local","email","file","month","number","password","search","tel","text","time","url","week"].includes(t)?t:"text"}get type(){return this._type}set value(t){"file"!==this.type&&(this._value=t,this._internals.setFormValue(t)),this.updateComplete.then((()=>{this._setValidityFromInput()}))}get value(){return this._value}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._setValidityFromInput(),this._internals.checkValidity()}reportValidity(){return this._setValidityFromInput(),this._internals.reportValidity()}get wrappedElement(){return this._inputEl}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.focused=!1,this.invalid=!1,this.label="",this.max=void 0,this.maxLength=void 0,this.min=void 0,this.minLength=void 0,this.multiple=!1,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.step=void 0,this._value="",this._type="text",this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._inputEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._inputEl.value)}))}attributeChangedCallback(t,e,s){super.attributeChangedCallback(t,e,s);["max","maxlength","min","minlength","pattern","required","step"].includes(t)&&this.updateComplete.then((()=>{this._setValidityFromInput()}))}formResetCallback(){this.value=this.defaultValue,this.requestUpdate()}formStateRestoreCallback(t,e){this.value=t}_dataChanged(){if(this._value=this._inputEl.value,"file"===this.type&&this._inputEl.files)for(const t of this._inputEl.files)this._internals.setFormValue(t);else this._internals.setFormValue(this._inputEl.value)}_setValidityFromInput(){this._inputEl&&this._internals.setValidity(this._inputEl.validity,this._inputEl.validationMessage,this._inputEl)}_onInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_onChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_onFocus(){this.focused=!0}_onBlur(){this.focused=!1}_onKeyDown(t){"Enter"===t.key&&this._internals.form&&this._internals.form?.requestSubmit()}render(){return L`
1100
1100
  <slot name="content-before"></slot>
1101
1101
  <input
1102
1102
  id="input"
@@ -1124,7 +1124,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
1124
1124
  @keydown=${this._onKeyDown}
1125
1125
  />
1126
1126
  <slot name="content-after"></slot>
1127
- `}};Pe.styles=Fe,Pe.formAssociated=!0,Pe.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},Me([dt()],Pe.prototype,"autocomplete",void 0),Me([dt({type:Boolean,reflect:!0})],Pe.prototype,"autofocus",void 0),Me([dt({attribute:"default-value"})],Pe.prototype,"defaultValue",void 0),Me([dt({type:Boolean,reflect:!0})],Pe.prototype,"disabled",void 0),Me([dt({type:Boolean,reflect:!0})],Pe.prototype,"focused",void 0),Me([dt({type:Boolean,reflect:!0})],Pe.prototype,"invalid",void 0),Me([dt({attribute:!1})],Pe.prototype,"label",void 0),Me([dt({type:Number})],Pe.prototype,"max",void 0),Me([dt({type:Number})],Pe.prototype,"maxLength",void 0),Me([dt({type:Number})],Pe.prototype,"min",void 0),Me([dt({type:Number})],Pe.prototype,"minLength",void 0),Me([dt({type:Boolean,reflect:!0})],Pe.prototype,"multiple",void 0),Me([dt({reflect:!0})],Pe.prototype,"name",void 0),Me([dt()],Pe.prototype,"pattern",void 0),Me([dt()],Pe.prototype,"placeholder",void 0),Me([dt({type:Boolean,reflect:!0})],Pe.prototype,"readonly",void 0),Me([dt({type:Boolean,reflect:!0})],Pe.prototype,"required",void 0),Me([dt({type:Number})],Pe.prototype,"step",void 0),Me([dt({reflect:!0})],Pe.prototype,"type",null),Me([dt()],Pe.prototype,"value",null),Me([pt("#input")],Pe.prototype,"_inputEl",void 0),Me([ut()],Pe.prototype,"_value",void 0),Me([ut()],Pe.prototype,"_type",void 0),Pe=Me([at("vscode-textfield")],Pe);const Ne=[mt,r`
1127
+ `}};Pe.styles=Me,Pe.formAssociated=!0,Pe.shadowRootOptions={...nt.shadowRootOptions,delegatesFocus:!0},Fe([dt()],Pe.prototype,"autocomplete",void 0),Fe([dt({type:Boolean,reflect:!0})],Pe.prototype,"autofocus",void 0),Fe([dt({attribute:"default-value"})],Pe.prototype,"defaultValue",void 0),Fe([dt({type:Boolean,reflect:!0})],Pe.prototype,"disabled",void 0),Fe([dt({type:Boolean,reflect:!0})],Pe.prototype,"focused",void 0),Fe([dt({type:Boolean,reflect:!0})],Pe.prototype,"invalid",void 0),Fe([dt({attribute:!1})],Pe.prototype,"label",void 0),Fe([dt({type:Number})],Pe.prototype,"max",void 0),Fe([dt({type:Number})],Pe.prototype,"maxLength",void 0),Fe([dt({type:Number})],Pe.prototype,"min",void 0),Fe([dt({type:Number})],Pe.prototype,"minLength",void 0),Fe([dt({type:Boolean,reflect:!0})],Pe.prototype,"multiple",void 0),Fe([dt({reflect:!0})],Pe.prototype,"name",void 0),Fe([dt()],Pe.prototype,"pattern",void 0),Fe([dt()],Pe.prototype,"placeholder",void 0),Fe([dt({type:Boolean,reflect:!0})],Pe.prototype,"readonly",void 0),Fe([dt({type:Boolean,reflect:!0})],Pe.prototype,"required",void 0),Fe([dt({type:Number})],Pe.prototype,"step",void 0),Fe([dt({reflect:!0})],Pe.prototype,"type",null),Fe([dt()],Pe.prototype,"value",null),Fe([pt("#input")],Pe.prototype,"_inputEl",void 0),Fe([ut()],Pe.prototype,"_value",void 0),Fe([ut()],Pe.prototype,"_type",void 0),Pe=Fe([at("vscode-textfield")],Pe);const Ne=[mt,r`
1128
1128
  :host {
1129
1129
  color: var(--vscode-foreground);
1130
1130
  font-family: var(--vscode-font-family);
@@ -2164,14 +2164,14 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2164
2164
  .column-label {
2165
2165
  font-weight: bold;
2166
2166
  }
2167
- `];var Fs=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ms=class extends gt{constructor(){super(...arguments),this.role="cell",this.columnLabel="",this.compact=!1}render(){const t=this.columnLabel?L`<div class="column-label" role="presentation">
2167
+ `];var Ms=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Fs=class extends gt{constructor(){super(...arguments),this.role="cell",this.columnLabel="",this.compact=!1}render(){const t=this.columnLabel?L`<div class="column-label" role="presentation">
2168
2168
  ${this.columnLabel}
2169
2169
  </div>`:q;return L`
2170
2170
  <div class="wrapper">
2171
2171
  ${t}
2172
2172
  <slot></slot>
2173
2173
  </div>
2174
- `}};Ms.styles=Is,Fs([dt({reflect:!0})],Ms.prototype,"role",void 0),Fs([dt({attribute:"column-label"})],Ms.prototype,"columnLabel",void 0),Fs([dt({type:Boolean,reflect:!0})],Ms.prototype,"compact",void 0),Ms=Fs([at("vscode-table-cell")],Ms);const Ps=[mt,r`
2174
+ `}};Fs.styles=Is,Ms([dt({reflect:!0})],Fs.prototype,"role",void 0),Ms([dt({attribute:"column-label"})],Fs.prototype,"columnLabel",void 0),Ms([dt({type:Boolean,reflect:!0})],Fs.prototype,"compact",void 0),Fs=Ms([at("vscode-table-cell")],Fs);const Ps=[mt,r`
2175
2175
  :host {
2176
2176
  background-color: var(--vscode-keybindingTable-headerBackground);
2177
2177
  display: table;
@@ -2720,4 +2720,4 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
2720
2720
  ${this._renderTree(this._data)}
2721
2721
  </ul>
2722
2722
  </div>
2723
- `}};si.styles=Zs,Qs([dt({type:Array,reflect:!1})],si.prototype,"data",null),Qs([dt({type:Number})],si.prototype,"indent",void 0),Qs([dt({type:Boolean,reflect:!0})],si.prototype,"arrows",void 0),Qs([dt({type:Boolean,reflect:!0})],si.prototype,"multiline",void 0),Qs([dt({type:Number,reflect:!0})],si.prototype,"tabindex",void 0),Qs([dt({type:Boolean,reflect:!0,attribute:"indent-guides"})],si.prototype,"indentGuides",void 0),Qs([ut()],si.prototype,"_selectedItem",void 0),Qs([ut()],si.prototype,"_focusedItem",void 0),Qs([ut()],si.prototype,"_selectedBranch",void 0),Qs([ut()],si.prototype,"_focusedBranch",void 0),si=Qs([at("vscode-tree")],si);export{wt as VscodeBadge,Nt as VscodeButton,Zt as VscodeCheckbox,ee as VscodeCheckboxGroup,oe as VscodeCollapsible,ce as VscodeContextMenu,le as VscodeContextMenuItem,ve as VscodeDivider,xe as VscodeFormContainer,ke as VscodeFormGroup,Ce as VscodeFormHelper,Ft as VscodeIcon,Ve as VscodeLabel,rs as VscodeMultiSelect,Ye as VscodeOption,as as VscodeProgressRing,ds as VscodeRadio,Oe as VscodeRadioGroup,fs as VscodeScrollable,vs as VscodeSingleSelect,$s as VscodeSplitLayout,Bs as VscodeTabHeader,As as VscodeTabPanel,Gs as VscodeTable,js as VscodeTableBody,Ms as VscodeTableCell,Ds as VscodeTableHeader,Rs as VscodeTableHeaderCell,qs as VscodeTableRow,Xs as VscodeTabs,Ie as VscodeTextarea,Pe as VscodeTextfield,si as VscodeTree};
2723
+ `}};si.styles=Zs,Qs([dt({type:Array,reflect:!1})],si.prototype,"data",null),Qs([dt({type:Number})],si.prototype,"indent",void 0),Qs([dt({type:Boolean,reflect:!0})],si.prototype,"arrows",void 0),Qs([dt({type:Boolean,reflect:!0})],si.prototype,"multiline",void 0),Qs([dt({type:Number,reflect:!0})],si.prototype,"tabindex",void 0),Qs([dt({type:Boolean,reflect:!0,attribute:"indent-guides"})],si.prototype,"indentGuides",void 0),Qs([ut()],si.prototype,"_selectedItem",void 0),Qs([ut()],si.prototype,"_focusedItem",void 0),Qs([ut()],si.prototype,"_selectedBranch",void 0),Qs([ut()],si.prototype,"_focusedBranch",void 0),si=Qs([at("vscode-tree")],si);export{wt as VscodeBadge,Nt as VscodeButton,Zt as VscodeCheckbox,ee as VscodeCheckboxGroup,oe as VscodeCollapsible,ce as VscodeContextMenu,le as VscodeContextMenuItem,ve as VscodeDivider,xe as VscodeFormContainer,ke as VscodeFormGroup,Ce as VscodeFormHelper,Mt as VscodeIcon,Ve as VscodeLabel,rs as VscodeMultiSelect,Ye as VscodeOption,as as VscodeProgressRing,ds as VscodeRadio,Oe as VscodeRadioGroup,fs as VscodeScrollable,vs as VscodeSingleSelect,$s as VscodeSplitLayout,Bs as VscodeTabHeader,As as VscodeTabPanel,Gs as VscodeTable,js as VscodeTableBody,Fs as VscodeTableCell,Ds as VscodeTableHeader,Rs as VscodeTableHeaderCell,qs as VscodeTableRow,Xs as VscodeTabs,Ie as VscodeTextarea,Pe as VscodeTextfield,si as VscodeTree};
@@ -2,7 +2,7 @@ import { LitElement } from 'lit';
2
2
  export class VscElement extends LitElement {
3
3
  constructor() {
4
4
  super(...arguments);
5
- this._version = '1.9.2-pre.0';
5
+ this._version = '1.9.2-pre.1';
6
6
  }
7
7
  /** VSC Element version */
8
8
  get version() {
@@ -1 +1 @@
1
- {"version":3,"file":"VscElement.js","sourceRoot":"","sources":["../../src/includes/VscElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,KAAK,CAAC;AAE/B,MAAM,OAAO,UAAW,SAAQ,UAAU;IAA1C;;QACU,aAAQ,GAAG,aAAa,CAAC;IAMnC,CAAC;IAJC,0BAA0B;IAC1B,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF","sourcesContent":["import {LitElement} from 'lit';\n\nexport class VscElement extends LitElement {\n private _version = '1.9.2-pre.0';\n\n /** VSC Element version */\n get version() {\n return this._version;\n }\n}\n"]}
1
+ {"version":3,"file":"VscElement.js","sourceRoot":"","sources":["../../src/includes/VscElement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,KAAK,CAAC;AAE/B,MAAM,OAAO,UAAW,SAAQ,UAAU;IAA1C;;QACU,aAAQ,GAAG,aAAa,CAAC;IAMnC,CAAC;IAJC,0BAA0B;IAC1B,IAAI,OAAO;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;CACF","sourcesContent":["import {LitElement} from 'lit';\n\nexport class VscElement extends LitElement {\n private _version = '1.9.2-pre.1';\n\n /** VSC Element version */\n get version() {\n return this._version;\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"vscode-button.d.ts","sourceRoot":"","sources":["../../src/vscode-button/vscode-button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAE,cAAc,EAAC,MAAM,KAAK,CAAC;AAGpE,OAAO,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AACrD,OAAO,yBAAyB,CAAC;AAIjC;;;;;;;;;;;;;;GAcG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,+BAAU;IAEvB,gBAAgB;IAChB,MAAM,CAAC,cAAc,UAAQ;IAG7B,SAAS,UAAS;IAElB,gBAAgB;IAEhB,QAAQ,SAAK;IAEb;;OAEG;IAEH,SAAS,UAAS;IAElB,gBAAgB;IAEhB,IAAI,SAAY;IAGhB,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,QAAQ,CAAC,sBAAS;IAElB;;OAEG;IAEH,gBAAgB,CAAC,EAAE,MAAM,C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b;;OAEG;IAEH,SAAS,UAAS;IAElB,gBAAgB;IAEhB,IAAI,SAAY;IAGhB,QAAQ,UAAS;IAEjB;;OAEG;IAEH,IAAI,SAAM;IAEV;;OAEG;IAEH,QAAQ,CAAC,sBAAS;IAElB;;OAEG;IAEH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IAEH,SAAS,SAAM;IAEf;;OAEG;IAEH,aAAa,UAAS;IAEtB;;OAEG;IAMH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAG/B,OAAO,UAAS;IAGhB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAa;IAGrC,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAY;IAG/C,KAAK,SAAM;IAEX,OAAO,CAAC,aAAa,CAAK;IAC1B,OAAO,CAAC,UAAU,CAAmB;IAErC,IAAI,IAAI,IAAI,eAAe,GAAG,IAAI,CAEjC;;IASD,iBAAiB,IAAI,IAAI;IAkBzB,oBAAoB,IAAI,IAAI;IAM5B,MAAM,CAEJ,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,WAAW,EAAE,OAAO,CAAC,GACnE,IAAI;IAiBP,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,cAAc;IA+BtB,OAAO,CAAC,YAAY;IAmBpB,OAAO,CAAC,YAAY,CAElB;IAEF,OAAO,CAAC,WAAW,CAEjB;IAEF,MAAM,IAAI,cAAc;CAmCzB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,eAAe,EAAE,YAAY,CAAC;KAC/B;CACF"}
@@ -129,10 +129,19 @@ let VscodeButton = class VscodeButton extends VscElement {
129
129
  originalEvent: new MouseEvent('click'),
130
130
  },
131
131
  }));
132
+ const syntheticClick = new MouseEvent('click', {
133
+ bubbles: true,
134
+ cancelable: true,
135
+ });
136
+ syntheticClick.synthetic = true;
137
+ this.dispatchEvent(syntheticClick);
132
138
  this._executeAction();
133
139
  }
134
140
  }
135
141
  _handleClick(event) {
142
+ if (event.synthetic) {
143
+ return;
144
+ }
136
145
  if (!this.hasAttribute('disabled')) {
137
146
  this.dispatchEvent(new CustomEvent('vsc-click', {
138
147
  detail: {
@@ -1 +1 @@
1
- {"version":3,"file":"vscode-button.js","sourceRoot":"","sources":["../../src/vscode-button/vscode-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,OAAO,EAAmC,MAAM,KAAK,CAAC;AACpE,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAC,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAC,UAAU,EAAC,MAAM,2BAA2B,CAAC;AACrD,OAAO,yBAAyB,CAAC;AACjC,OAAO,MAAM,MAAM,2BAA2B,CAAC;AAC/C,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAEvD;;;;;;;;;;;;;;GAcG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAiF1C,IAAI,IAAI;QACN,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAC9B,CAAC;IAED;QACE,KAAK,EAAE,CAAC;QA/EV,cAAS,GAAG,KAAK,CAAC;QAElB,gBAAgB;QAEhB,aAAQ,GAAG,CAAC,CAAC;QAEb;;WAEG;QAEH,cAAS,GAAG,KAAK,CAAC;QAElB,gBAAgB;QAEhB,SAAI,GAAG,QAAQ,CAAC;QAGhB,aAAQ,GAAG,KAAK,CAAC;QAEjB;;WAEG;QAEH,SAAI,GAAG,EAAE,CAAC;QAEV;;WAEG;QAEH,aAAQ,GAAI,KAAK,CAAC;QAQlB;;WAEG;QAEH,cAAS,GAAG,EAAE,CAAC;QAEf;;WAEG;QAEH,kBAAa,GAAG,KAAK,CAAC;QAatB,YAAO,GAAG,KAAK,CAAC;QAGhB,SAAI,GAAuB,SAAS,CAAC;QAGrC,SA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0CACH;AAGrC;IADC,QAAQ,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;0CACqB;AAG/C;IADC,QAAQ,EAAE;2CACA;AA5EA,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CAoOxB","sourcesContent":["import {html, nothing, PropertyValueMap, TemplateResult} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {VscElement} from '../includes/VscElement.js';\nimport '../vscode-icon/index.js';\nimport styles from './vscode-button.styles.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\n\n/**\n * @fires vsc-click Dispatched only when button is not in disabled state.\n *\n * @cssprop --vscode-button-background\n * @cssprop --vscode-button-foreground\n * @cssprop [--vscode-button-border=var(--vscode-button-background)]\n * @cssprop --vscode-button-hoverBackground\n * @cssprop --vscode-font-family\n * @cssprop --vscode-font-size\n * @cssprop --vscode-font-weight\n * @cssprop --vscode-button-secondaryForeground\n * @cssprop --vscode-button-secondaryBackground\n * @cssprop --vscode-button-secondaryHoverBackground\n * @cssprop --vscode-focusBorder\n */\n@customElement('vscode-button')\nexport class VscodeButton extends VscElement {\n static styles = styles;\n\n /** @internal */\n static formAssociated = true;\n\n @property({type: Boolean, reflect: true})\n autofocus = false;\n\n /** @internal */\n @property({type: Number, reflect: true})\n tabIndex = 0;\n\n /**\n * Button has a less prominent style.\n */\n @property({type: Boolean, reflect: true})\n secondary = false;\n\n /** @internal */\n @property({reflect: true})\n role = 'button';\n\n @property({type: Boolean, reflect: true})\n disabled = false;\n\n /**\n * A [Codicon](https://microsoft.github.io/vscode-codicons/dist/codicon.html) before the label\n */\n @property()\n icon = '';\n\n /**\n * Spin property for the icon\n */\n @property({type: Boolean, reflect: true, attribute: 'icon-spin'})\n iconSpin? = false;\n\n /**\n * Duration property for the icon\n */\n @property({type: Number, reflect: true, attribute: 'icon-spin-duration'})\n iconSpinDuration?: number;\n\n /**\n * A [Codicon](https://microsoft.github.io/vscode-codicons/dist/codicon.html) after the label\n */\n @property({attribute: 'icon-after'})\n iconAfter = '';\n\n /**\n * Spin property for the after icon\n */\n @property({type: Boolean, reflect: true, attribute: 'icon-after-spin'})\n iconAfterSpin = false;\n\n /**\n * Duration property for the after icon\n */\n @property({\n type: Number,\n reflect: true,\n attribute: 'icon-after-spin-duration',\n })\n iconAfterSpinDuration?: number;\n\n @property({type: Boolean, reflect: true})\n focused = false;\n\n @property({type: String, reflect: true})\n name: string | undefined = undefined;\n\n @property({reflect: true})\n type: 'submit' | 'reset' | 'button' = 'button';\n\n @property()\n value = '';\n\n private _prevTabindex = 0;\n private _internals: ElementInternals;\n\n get form(): HTMLFormElement | null {\n return this._internals.form;\n }\n\n constructor() {\n super();\n this.addEventListener('keydown', this._handleKeyDown.bind(this));\n this.addEventListener('click', this._handleClick.bind(this));\n this._internals = this.attachInternals();\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n\n if (this.autofocus) {\n if (this.tabIndex < 0) {\n this.tabIndex = 0;\n }\n\n this.updateComplete.then(() => {\n this.focus();\n this.requestUpdate();\n });\n }\n\n this.addEventListener('focus', this._handleFocus);\n this.addEventListener('blur', this._handleBlur);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.removeEventListener('focus', this._handleFocus);\n this.removeEventListener('blur', this._handleBlur);\n }\n\n update(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>\n ): void {\n super.update(changedProperties);\n\n if (changedProperties.has('value')) {\n this._internals.setFormValue(this.value);\n }\n\n if (changedProperties.has('disabled')) {\n if (this.disabled) {\n this._prevTabindex = this.tabIndex;\n this.tabIndex = -1;\n } else {\n this.tabIndex = this._prevTabindex;\n }\n }\n }\n\n private _executeAction() {\n if (this.type === 'submit' && this._internals.form) {\n this._internals.form.requestSubmit();\n }\n\n if (this.type === 'reset' && this._internals.form) {\n this._internals.form.reset();\n }\n }\n\n private _handleKeyDown(event: KeyboardEvent) {\n if (\n (event.key === 'Enter' || event.key === ' ') &&\n !this.hasAttribute('disabled')\n ) {\n /**\n * @deprecated\n * Please use the standard `click` event.\n */\n this.dispatchEvent(\n new CustomEvent<{\n originalEvent: MouseEvent;\n }>('vsc-click', {\n detail: {\n originalEvent: new MouseEvent('click'),\n },\n })\n );\n\n this._executeAction();\n }\n }\n\n private _handleClick(event: MouseEvent) {\n if (!this.hasAttribute('disabled')) {\n this.dispatchEvent(\n new CustomEvent<{\n originalEvent: MouseEvent;\n }>('vsc-click', {\n detail: {\n originalEvent: event,\n },\n })\n );\n\n this._executeAction();\n }\n }\n\n private _handleFocus = () => {\n this.focused = true;\n };\n\n private _handleBlur = () => {\n this.focused = false;\n };\n\n render(): TemplateResult {\n const hasIcon = this.icon !== '';\n const hasIconAfter = this.iconAfter !== '';\n const wrapperClasses = {\n wrapper: true,\n 'has-icon-before': hasIcon,\n 'has-icon-after': hasIconAfter,\n };\n\n const iconElem = hasIcon\n ? html`<vscode-icon\n name=\"${this.icon}\"\n ?spin=\"${this.iconSpin}\"\n spin-duration=\"${ifDefined(this.iconSpinDuration)}\"\n class=\"icon\"\n ></vscode-icon>`\n : nothing;\n\n const iconAfterElem = hasIconAfter\n ? html`<vscode-icon\n name=\"${this.iconAfter}\"\n ?spin=\"${this.iconAfterSpin}\"\n spin-duration=\"${ifDefined(this.iconAfterSpinDuration)}\"\n class=\"icon-after\"\n ></vscode-icon>`\n : nothing;\n\n return html`\n <span class=\"${classMap(wrapperClasses)}\">\n ${iconElem}\n <slot></slot>\n ${iconAfterElem}\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'vscode-button': VscodeButton;\n }\n}\n"]}
1
+ {"version":3,"file":"vscode-button.js","sourceRoot":"","sources":["../../src/vscode-button/vscode-button.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,IAAI,EAAE,OAAO,EAAmC,MAAM,KAAK,CAAC;AACpE,OAAO,EAAC,aAAa,EAAE,QAAQ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CAAC;0CACqB;AAG/C;IADC,QAAQ,EAAE;2CACA;AA5EA,YAAY;IADxB,aAAa,CAAC,eAAe,CAAC;GAClB,YAAY,CA+OxB","sourcesContent":["import {html, nothing, PropertyValueMap, TemplateResult} from 'lit';\nimport {customElement, property} from 'lit/decorators.js';\nimport {classMap} from 'lit/directives/class-map.js';\nimport {VscElement} from '../includes/VscElement.js';\nimport '../vscode-icon/index.js';\nimport styles from './vscode-button.styles.js';\nimport {ifDefined} from 'lit/directives/if-defined.js';\n\n/**\n * @fires vsc-click Dispatched only when button is not in disabled state.\n *\n * @cssprop --vscode-button-background\n * @cssprop --vscode-button-foreground\n * @cssprop [--vscode-button-border=var(--vscode-button-background)]\n * @cssprop --vscode-button-hoverBackground\n * @cssprop --vscode-font-family\n * @cssprop --vscode-font-size\n * @cssprop --vscode-font-weight\n * @cssprop --vscode-button-secondaryForeground\n * @cssprop --vscode-button-secondaryBackground\n * @cssprop --vscode-button-secondaryHoverBackground\n * @cssprop --vscode-focusBorder\n */\n@customElement('vscode-button')\nexport class VscodeButton extends VscElement {\n static styles = styles;\n\n /** @internal */\n static formAssociated = true;\n\n @property({type: Boolean, reflect: true})\n autofocus = false;\n\n /** @internal */\n @property({type: Number, reflect: true})\n tabIndex = 0;\n\n /**\n * Button has a less prominent style.\n */\n @property({type: Boolean, reflect: true})\n secondary = false;\n\n /** @internal */\n @property({reflect: true})\n role = 'button';\n\n @property({type: Boolean, reflect: true})\n disabled = false;\n\n /**\n * A [Codicon](https://microsoft.github.io/vscode-codicons/dist/codicon.html) before the label\n */\n @property()\n icon = '';\n\n /**\n * Spin property for the icon\n */\n @property({type: Boolean, reflect: true, attribute: 'icon-spin'})\n iconSpin? = false;\n\n /**\n * Duration property for the icon\n */\n @property({type: Number, reflect: true, attribute: 'icon-spin-duration'})\n iconSpinDuration?: number;\n\n /**\n * A [Codicon](https://microsoft.github.io/vscode-codicons/dist/codicon.html) after the label\n */\n @property({attribute: 'icon-after'})\n iconAfter = '';\n\n /**\n * Spin property for the after icon\n */\n @property({type: Boolean, reflect: true, attribute: 'icon-after-spin'})\n iconAfterSpin = false;\n\n /**\n * Duration property for the after icon\n */\n @property({\n type: Number,\n reflect: true,\n attribute: 'icon-after-spin-duration',\n })\n iconAfterSpinDuration?: number;\n\n @property({type: Boolean, reflect: true})\n focused = false;\n\n @property({type: String, reflect: true})\n name: string | undefined = undefined;\n\n @property({reflect: true})\n type: 'submit' | 'reset' | 'button' = 'button';\n\n @property()\n value = '';\n\n private _prevTabindex = 0;\n private _internals: ElementInternals;\n\n get form(): HTMLFormElement | null {\n return this._internals.form;\n }\n\n constructor() {\n super();\n this.addEventListener('keydown', this._handleKeyDown.bind(this));\n this.addEventListener('click', this._handleClick.bind(this));\n this._internals = this.attachInternals();\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n\n if (this.autofocus) {\n if (this.tabIndex < 0) {\n this.tabIndex = 0;\n }\n\n this.updateComplete.then(() => {\n this.focus();\n this.requestUpdate();\n });\n }\n\n this.addEventListener('focus', this._handleFocus);\n this.addEventListener('blur', this._handleBlur);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.removeEventListener('focus', this._handleFocus);\n this.removeEventListener('blur', this._handleBlur);\n }\n\n update(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>\n ): void {\n super.update(changedProperties);\n\n if (changedProperties.has('value')) {\n this._internals.setFormValue(this.value);\n }\n\n if (changedProperties.has('disabled')) {\n if (this.disabled) {\n this._prevTabindex = this.tabIndex;\n this.tabIndex = -1;\n } else {\n this.tabIndex = this._prevTabindex;\n }\n }\n }\n\n private _executeAction() {\n if (this.type === 'submit' && this._internals.form) {\n this._internals.form.requestSubmit();\n }\n\n if (this.type === 'reset' && this._internals.form) {\n this._internals.form.reset();\n }\n }\n\n private _handleKeyDown(event: KeyboardEvent) {\n if (\n (event.key === 'Enter' || event.key === ' ') &&\n !this.hasAttribute('disabled')\n ) {\n /**\n * @deprecated\n * Please use the standard `click` event.\n */\n this.dispatchEvent(\n new CustomEvent<{\n originalEvent: MouseEvent;\n }>('vsc-click', {\n detail: {\n originalEvent: new MouseEvent('click'),\n },\n })\n );\n\n const syntheticClick = new MouseEvent('click', {\n bubbles: true,\n cancelable: true,\n }) as Event & {synthetic?: boolean};\n\n syntheticClick.synthetic = true;\n this.dispatchEvent(syntheticClick);\n\n this._executeAction();\n }\n }\n\n private _handleClick(event: MouseEvent) {\n if ((event as MouseEvent & {synthetic?: boolean}).synthetic) {\n return;\n }\n if (!this.hasAttribute('disabled')) {\n this.dispatchEvent(\n new CustomEvent<{\n originalEvent: MouseEvent;\n }>('vsc-click', {\n detail: {\n originalEvent: event,\n },\n })\n );\n\n this._executeAction();\n }\n }\n\n private _handleFocus = () => {\n this.focused = true;\n };\n\n private _handleBlur = () => {\n this.focused = false;\n };\n\n render(): TemplateResult {\n const hasIcon = this.icon !== '';\n const hasIconAfter = this.iconAfter !== '';\n const wrapperClasses = {\n wrapper: true,\n 'has-icon-before': hasIcon,\n 'has-icon-after': hasIconAfter,\n };\n\n const iconElem = hasIcon\n ? html`<vscode-icon\n name=\"${this.icon}\"\n ?spin=\"${this.iconSpin}\"\n spin-duration=\"${ifDefined(this.iconSpinDuration)}\"\n class=\"icon\"\n ></vscode-icon>`\n : nothing;\n\n const iconAfterElem = hasIconAfter\n ? html`<vscode-icon\n name=\"${this.iconAfter}\"\n ?spin=\"${this.iconAfterSpin}\"\n spin-duration=\"${ifDefined(this.iconAfterSpinDuration)}\"\n class=\"icon-after\"\n ></vscode-icon>`\n : nothing;\n\n return html`\n <span class=\"${classMap(wrapperClasses)}\">\n ${iconElem}\n <slot></slot>\n ${iconAfterElem}\n </span>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'vscode-button': VscodeButton;\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode-elements/elements",
3
- "version": "1.9.2-pre.0",
3
+ "version": "1.9.2-pre.1",
4
4
  "description": "Webcomponents for creating Visual Studio Code extensions",
5
5
  "main": "dist/main.js",
6
6
  "module": "dist/main.js",
@@ -2,6 +2,17 @@
2
2
  "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
3
  "version": 1.1,
4
4
  "properties": [
5
+ { "name": "--vscode-button-background", "values": [] },
6
+ { "name": "--vscode-button-foreground", "values": [] },
7
+ { "name": "--vscode-button-border", "values": [] },
8
+ { "name": "--vscode-button-hoverBackground", "values": [] },
9
+ { "name": "--vscode-font-family", "values": [] },
10
+ { "name": "--vscode-font-size", "values": [] },
11
+ { "name": "--vscode-font-weight", "values": [] },
12
+ { "name": "--vscode-button-secondaryForeground", "values": [] },
13
+ { "name": "--vscode-button-secondaryBackground", "values": [] },
14
+ { "name": "--vscode-button-secondaryHoverBackground", "values": [] },
15
+ { "name": "--vscode-focusBorder", "values": [] },
5
16
  { "name": "--vscode-font-family", "values": [] },
6
17
  {
7
18
  "name": "--vscode-badge-background",
@@ -23,17 +34,6 @@
23
34
  "description": "activity bar variant foreground color",
24
35
  "values": []
25
36
  },
26
- { "name": "--vscode-button-background", "values": [] },
27
- { "name": "--vscode-button-foreground", "values": [] },
28
- { "name": "--vscode-button-border", "values": [] },
29
- { "name": "--vscode-button-hoverBackground", "values": [] },
30
- { "name": "--vscode-font-family", "values": [] },
31
- { "name": "--vscode-font-size", "values": [] },
32
- { "name": "--vscode-font-weight", "values": [] },
33
- { "name": "--vscode-button-secondaryForeground", "values": [] },
34
- { "name": "--vscode-button-secondaryBackground", "values": [] },
35
- { "name": "--vscode-button-secondaryHoverBackground", "values": [] },
36
- { "name": "--vscode-focusBorder", "values": [] },
37
37
  { "name": "--vscode-font-family", "values": [] },
38
38
  { "name": "--vscode-font-size", "values": [] },
39
39
  { "name": "--vscode-font-weight", "values": [] },
@@ -2,21 +2,6 @@
2
2
  "$schema": "https://raw.githubusercontent.com/microsoft/vscode-html-languageservice/main/docs/customData.schema.json",
3
3
  "version": 1.1,
4
4
  "tags": [
5
- {
6
- "name": "vscode-badge",
7
- "description": "\n---\n\n\n### **CSS Properties:**\n - **--vscode-font-family** - undefined _(default: undefined)_\n- **--vscode-badge-background** - default and counter variant background color _(default: undefined)_\n- **--vscode-badge-foreground** - default and counter variant foreground color _(default: undefined)_\n- **--vscode-activityBarBadge-background** - activity bar variant background color _(default: undefined)_\n- **--vscode-activityBarBadge-foreground** - activity bar variant foreground color _(default: undefined)_",
8
- "attributes": [
9
- {
10
- "name": "variant",
11
- "values": [
12
- { "name": "default" },
13
- { "name": "counter" },
14
- { "name": "activity-bar-counter" }
15
- ]
16
- }
17
- ],
18
- "references": []
19
- },
20
5
  {
21
6
  "name": "vscode-button",
22
7
  "description": "\n---\n\n\n### **Events:**\n - **vsc-click** - Dispatched only when button is not in disabled state.\n\n### **CSS Properties:**\n - **--vscode-button-background** - undefined _(default: undefined)_\n- **--vscode-button-foreground** - undefined _(default: undefined)_\n- **--vscode-button-border** - undefined _(default: var(--vscode-button-background))_\n- **--vscode-button-hoverBackground** - undefined _(default: undefined)_\n- **--vscode-font-family** - undefined _(default: undefined)_\n- **--vscode-font-size** - undefined _(default: undefined)_\n- **--vscode-font-weight** - undefined _(default: undefined)_\n- **--vscode-button-secondaryForeground** - undefined _(default: undefined)_\n- **--vscode-button-secondaryBackground** - undefined _(default: undefined)_\n- **--vscode-button-secondaryHoverBackground** - undefined _(default: undefined)_\n- **--vscode-focusBorder** - undefined _(default: undefined)_",
@@ -72,6 +57,21 @@
72
57
  ],
73
58
  "references": []
74
59
  },
60
+ {
61
+ "name": "vscode-badge",
62
+ "description": "\n---\n\n\n### **CSS Properties:**\n - **--vscode-font-family** - undefined _(default: undefined)_\n- **--vscode-badge-background** - default and counter variant background color _(default: undefined)_\n- **--vscode-badge-foreground** - default and counter variant foreground color _(default: undefined)_\n- **--vscode-activityBarBadge-background** - activity bar variant background color _(default: undefined)_\n- **--vscode-activityBarBadge-foreground** - activity bar variant foreground color _(default: undefined)_",
63
+ "attributes": [
64
+ {
65
+ "name": "variant",
66
+ "values": [
67
+ { "name": "default" },
68
+ { "name": "counter" },
69
+ { "name": "activity-bar-counter" }
70
+ ]
71
+ }
72
+ ],
73
+ "references": []
74
+ },
75
75
  {
76
76
  "name": "vscode-checkbox",
77
77
  "description": "When participating in a form, it supports the `:invalid` pseudo class. Otherwise the error styles\ncan be applied through the `invalid` property.\n---\n\n\n### **Events:**\n - **change** - Dispatched when checked state is changed. The event is bubbled, so it can be listened on a parent element like the `CheckboxGroup`.\n- **vsc-change**\n- **invalid** - Dispatched when the element is invalid and `checkValidity()` has been called or the form containing this element is submitted. [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/invalid_event)\n\n### **CSS Properties:**\n - **--vscode-font-family** - undefined _(default: undefined)_\n- **--vscode-font-size** - undefined _(default: undefined)_\n- **--vscode-font-weight** - undefined _(default: undefined)_\n- **--vsc-foreground-translucent** - Label font color. 90% transparency version of `--vscode-foreground` by default. _(default: undefined)_\n- **--vscode-settings-checkboxBackground** - undefined _(default: undefined)_\n- **--vscode-settings-checkboxBorder** - undefined _(default: undefined)_\n- **--vscode-settings-checkboxForeground** - undefined _(default: undefined)_\n- **--vscode-focusBorder** - undefined _(default: undefined)_",