@lvce-editor/renderer-process 10.5.0 → 10.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -739,7 +739,7 @@ const getErrorResponse = (message, error, preparePrettyError, logError) => {
739
739
  const errorProperty = getErrorProperty(error, prettyError);
740
740
  return create$1$1(message, errorProperty);
741
741
  };
742
- const create$N = (message, result) => {
742
+ const create$M = (message, result) => {
743
743
  return {
744
744
  jsonrpc: Two,
745
745
  id: message.id,
@@ -748,7 +748,7 @@ const create$N = (message, result) => {
748
748
  };
749
749
  const getSuccessResponse = (message, result) => {
750
750
  const resultProperty = result ?? null;
751
- return create$N(message, resultProperty);
751
+ return create$M(message, resultProperty);
752
752
  };
753
753
  const getResponse = async (message, ipc, execute, preparePrettyError, logError, requiresSocket) => {
754
754
  try {
@@ -923,7 +923,7 @@ const launchWorker = async ({
923
923
  name,
924
924
  url
925
925
  }) => {
926
- const worker = await create$M({
926
+ const worker = await create$L({
927
927
  method: Auto,
928
928
  url,
929
929
  name
@@ -1030,7 +1030,7 @@ const RendererWorker = {
1030
1030
  state: state$9
1031
1031
  };
1032
1032
 
1033
- const create$M = async ({
1033
+ const create$L = async ({
1034
1034
  method,
1035
1035
  ...options
1036
1036
  }) => {
@@ -1051,7 +1051,7 @@ const create$M = async ({
1051
1051
  };
1052
1052
 
1053
1053
  const launchEditorWorker = async port => {
1054
- const ipc = await create$M({
1054
+ const ipc = await create$L({
1055
1055
  name: 'Editor Worker',
1056
1056
  url: editorWorkerUrl,
1057
1057
  method: ModuleWorkerWithMessagePort,
@@ -1081,7 +1081,7 @@ const extensionHostWorkerUrl = getConfiguredExtensionHostWorkerUrl() || `${asset
1081
1081
 
1082
1082
  const launchExtensionHostWorker = async port => {
1083
1083
  const name = isElectron ? 'Extension Host (Electron)' : 'Extension Host';
1084
- const ipc = await create$M({
1084
+ const ipc = await create$L({
1085
1085
  name,
1086
1086
  url: extensionHostWorkerUrl,
1087
1087
  method: ModuleWorkerWithMessagePort,
@@ -1105,7 +1105,7 @@ const hydrate$2 = async () => {
1105
1105
  const syntaxHighlightingWorkerUrl = `${assetDir}/packages/renderer-worker/node_modules/@lvce-editor/syntax-highlighting-worker/dist/syntaxHighlightingWorkerMain.js`;
1106
1106
 
1107
1107
  const launchSyntaxHighlightingWorker = async port => {
1108
- const ipc = await create$M({
1108
+ const ipc = await create$L({
1109
1109
  name: 'Syntax Highlighting Worker',
1110
1110
  url: syntaxHighlightingWorkerUrl,
1111
1111
  method: ModuleWorkerWithMessagePort,
@@ -1695,7 +1695,7 @@ const set$5 = setComponentUid;
1695
1695
  const get$6 = getComponentUid;
1696
1696
  const fromEvent = getComponentUidFromEvent;
1697
1697
 
1698
- const setBounds$7 = ($Element, x, y, width, height) => {
1698
+ const setBounds$8 = ($Element, x, y, width, height) => {
1699
1699
  $Element.style.top = `${y}px`;
1700
1700
  $Element.style.left = `${x}px`;
1701
1701
  $Element.style.width = `${width}px`;
@@ -1831,7 +1831,7 @@ const stopTracking$1 = ($Target, pointerId, handlePointerMove, handlePointerUp)
1831
1831
  // TODO use pointerlost event instead
1832
1832
  $Target.removeEventListener(PointerUp, handlePointerUp);
1833
1833
  };
1834
- const create$L = (pointerDown, pointerMove, pointerUp) => {
1834
+ const create$K = (pointerDown, pointerMove, pointerUp) => {
1835
1835
  const shared = (fn, event) => {
1836
1836
  const message = fn(event);
1837
1837
  if (!message || message.length === 0) {
@@ -1864,7 +1864,7 @@ const create$L = (pointerDown, pointerMove, pointerUp) => {
1864
1864
  };
1865
1865
 
1866
1866
  const handleOffset = 20;
1867
- const handleSliderPointerDown = create$L(event => {
1867
+ const handleSliderPointerDown = create$K(event => {
1868
1868
  const {
1869
1869
  clientX,
1870
1870
  clientY
@@ -1920,7 +1920,7 @@ const applyUidWorkaround = element => {
1920
1920
  const editorUid = get$6(editor);
1921
1921
  set$5(element, editorUid);
1922
1922
  };
1923
- const appendWidget$1 = state => {
1923
+ const appendWidget$2 = state => {
1924
1924
  const {
1925
1925
  $Viewlet
1926
1926
  } = state;
@@ -1930,7 +1930,7 @@ const appendWidget$1 = state => {
1930
1930
  const ViewletColorPicker = {
1931
1931
  __proto__: null,
1932
1932
  Events: ViewletColorPickerEvents,
1933
- appendWidget: appendWidget$1,
1933
+ appendWidget: appendWidget$2,
1934
1934
  setColor,
1935
1935
  setOffsetX
1936
1936
  };
@@ -1954,7 +1954,7 @@ const ToolBar = 'toolbar';
1954
1954
  const Tree = 'tree';
1955
1955
  const ComboBox = 'combobox';
1956
1956
 
1957
- const attachEvents$d = ($Node, eventMap) => {
1957
+ const attachEvents$c = ($Node, eventMap) => {
1958
1958
  for (const [key, value] of Object.entries(eventMap)) {
1959
1959
  $Node.addEventListener(key, value);
1960
1960
  }
@@ -2273,7 +2273,7 @@ const setNegativeMargin = (state, negativeMargin) => {
2273
2273
  setTop($ListItems, negativeMargin);
2274
2274
  };
2275
2275
 
2276
- const create$K = () => {
2276
+ const create$J = () => {
2277
2277
  const $ListItems = document.createElement('div');
2278
2278
  $ListItems.className = 'ListItems';
2279
2279
  $ListItems.role = ListBox;
@@ -2297,24 +2297,24 @@ const create$K = () => {
2297
2297
  $ScrollBarThumb
2298
2298
  };
2299
2299
  };
2300
- const attachEvents$c = state => {
2300
+ const attachEvents$b = state => {
2301
2301
  const {
2302
2302
  $Viewlet,
2303
2303
  $ListItems,
2304
2304
  $ScrollBar
2305
2305
  } = state;
2306
2306
  $Viewlet.addEventListener(Wheel, handleWheel$3, Passive);
2307
- attachEvents$d($ListItems, {
2307
+ attachEvents$c($ListItems, {
2308
2308
  [MouseDown]: handleMousedown
2309
2309
  });
2310
- attachEvents$d($ScrollBar, {
2310
+ attachEvents$c($ScrollBar, {
2311
2311
  [PointerDown]: handleScrollBarPointerDown$4
2312
2312
  });
2313
2313
  };
2314
2314
  // TODO show should be passed active cursor position
2315
2315
  // this would make this function easier to test as it would avoid dependency on globals of other files
2316
2316
 
2317
- const setDom$b = (state, dom) => {
2317
+ const setDom$a = (state, dom) => {
2318
2318
  const {
2319
2319
  $ListItems,
2320
2320
  $Viewlet
@@ -2346,22 +2346,22 @@ const handleError$8 = (state, error) => {
2346
2346
  } = state;
2347
2347
  $Viewlet.textContent = `${error}`;
2348
2348
  };
2349
- const setBounds$6 = (state, x, y, width, height) => {
2349
+ const setBounds$7 = (state, x, y, width, height) => {
2350
2350
  const {
2351
2351
  $Viewlet
2352
2352
  } = state;
2353
- setBounds$7($Viewlet, x, y, width, height);
2353
+ setBounds$8($Viewlet, x, y, width, height);
2354
2354
  };
2355
2355
 
2356
2356
  const ViewletEditorCompletion = {
2357
2357
  __proto__: null,
2358
- attachEvents: attachEvents$c,
2359
- create: create$K,
2358
+ attachEvents: attachEvents$b,
2359
+ create: create$J,
2360
2360
  dispose: dispose$k,
2361
2361
  handleError: handleError$8,
2362
- setBounds: setBounds$6,
2362
+ setBounds: setBounds$7,
2363
2363
  setContentHeight,
2364
- setDom: setDom$b,
2364
+ setDom: setDom$a,
2365
2365
  setNegativeMargin,
2366
2366
  setScrollBar: setScrollBar$2,
2367
2367
  setSize,
@@ -2379,7 +2379,7 @@ const ViewletEditorCompletionDetailsEvents = {
2379
2379
  returnValue: returnValue$9
2380
2380
  };
2381
2381
 
2382
- const create$J = () => {
2382
+ const create$I = () => {
2383
2383
  const $Viewlet = document.createElement('div');
2384
2384
  $Viewlet.className = 'Viewlet EditorCompletionDetails';
2385
2385
  $Viewlet.id = 'CompletionsDetails';
@@ -2387,10 +2387,10 @@ const create$J = () => {
2387
2387
  $Viewlet
2388
2388
  };
2389
2389
  };
2390
- const attachEvents$b = state => {
2390
+ const attachEvents$a = state => {
2391
2391
  // TODO
2392
2392
  };
2393
- const setDom$a = (state, dom) => {
2393
+ const setDom$9 = (state, dom) => {
2394
2394
  const {
2395
2395
  $Viewlet
2396
2396
  } = state;
@@ -2399,7 +2399,7 @@ const setDom$a = (state, dom) => {
2399
2399
  $Viewlet.replaceChildren(...$Root.firstChild.childNodes);
2400
2400
  append$1($Viewlet);
2401
2401
  };
2402
- const appendWidget = state => {
2402
+ const appendWidget$1 = state => {
2403
2403
  const {
2404
2404
  $Viewlet
2405
2405
  } = state;
@@ -2408,22 +2408,149 @@ const appendWidget = state => {
2408
2408
  const dispose$j = state => {
2409
2409
  remove$2(state.$Viewlet);
2410
2410
  };
2411
- const setBounds$5 = (state, x, y, width, height) => {
2411
+ const setBounds$6 = (state, x, y, width, height) => {
2412
2412
  const {
2413
2413
  $Viewlet
2414
2414
  } = state;
2415
- setBounds$7($Viewlet, x, y, width, height);
2415
+ setBounds$8($Viewlet, x, y, width, height);
2416
2416
  };
2417
2417
 
2418
2418
  const ViewletEditorCompletionDetails = {
2419
2419
  __proto__: null,
2420
2420
  Events: ViewletEditorCompletionDetailsEvents,
2421
- appendWidget,
2422
- attachEvents: attachEvents$b,
2423
- create: create$J,
2421
+ appendWidget: appendWidget$1,
2422
+ attachEvents: attachEvents$a,
2423
+ create: create$I,
2424
2424
  dispose: dispose$j,
2425
+ setBounds: setBounds$6,
2426
+ setDom: setDom$9
2427
+ };
2428
+
2429
+ const rememberFocus = rememberFocus$1;
2430
+
2431
+ const handleInput$7 = event => {
2432
+ const {
2433
+ target
2434
+ } = event;
2435
+ const {
2436
+ value
2437
+ } = target;
2438
+ const uid = fromEvent(event);
2439
+ handleInput$8(uid, value);
2440
+ };
2441
+ const handleClickClose$2 = (uid, event) => {
2442
+ preventDefault(event);
2443
+ close$1(uid);
2444
+ };
2445
+ const handleClickPreviousMatch = (uid, event) => {
2446
+ preventDefault(event);
2447
+ focusPrevious$1(uid);
2448
+ };
2449
+ const handleClickNextMatch = (uid, event) => {
2450
+ preventDefault(event);
2451
+ focusNext(uid);
2452
+ };
2453
+ const handleClickToggleReplace = (uid, event) => {
2454
+ preventDefault(event);
2455
+ toggleReplace(uid);
2456
+ };
2457
+ const handleClick$8 = event => {
2458
+ const {
2459
+ target
2460
+ } = event;
2461
+ const {
2462
+ title
2463
+ } = target;
2464
+ const uid = fromEvent(event);
2465
+ switch (title) {
2466
+ case 'Close':
2467
+ handleClickClose$2(uid, event);
2468
+ break;
2469
+ case 'Previous Match':
2470
+ handleClickPreviousMatch(uid, event);
2471
+ break;
2472
+ case 'Next Match':
2473
+ handleClickNextMatch(uid, event);
2474
+ break;
2475
+ case 'Toggle Replace':
2476
+ handleClickToggleReplace(uid, event);
2477
+ break;
2478
+ }
2479
+ };
2480
+ const handleInputBlur = event => {
2481
+ const uid = fromEvent(event);
2482
+ handleBlur$a(uid);
2483
+ };
2484
+ const handleFocus$b = event => {
2485
+ const uid = fromEvent(event);
2486
+ handleFocus$c(uid);
2487
+ };
2488
+
2489
+ const ViewletFindWidgetEvents = {
2490
+ __proto__: null,
2491
+ handleClick: handleClick$8,
2492
+ handleFocus: handleFocus$b,
2493
+ handleInput: handleInput$7,
2494
+ handleInputBlur
2495
+ };
2496
+
2497
+ const create$H = () => {
2498
+ const $Viewlet = document.createElement('div');
2499
+ $Viewlet.className = 'Viewlet FindWidget';
2500
+ $Viewlet.role = Group;
2501
+ return {
2502
+ $Viewlet
2503
+ };
2504
+ };
2505
+ const focus$i = state => {
2506
+ const {
2507
+ $Viewlet
2508
+ } = state;
2509
+ const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
2510
+ if (!$InputBox) {
2511
+ return;
2512
+ }
2513
+ $InputBox.focus();
2514
+ };
2515
+ const setValue$4 = (state, value) => {
2516
+ const {
2517
+ $Viewlet
2518
+ } = state;
2519
+ const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
2520
+ if (!$InputBox) {
2521
+ return;
2522
+ }
2523
+ $InputBox.value = value;
2524
+ };
2525
+ const appendWidget = state => {
2526
+ const {
2527
+ $Viewlet
2528
+ } = state;
2529
+ append$1($Viewlet);
2530
+ };
2531
+ const setDom$8 = (state, dom) => {
2532
+ const {
2533
+ $Viewlet
2534
+ } = state;
2535
+ rememberFocus($Viewlet, dom, ViewletFindWidgetEvents, 0);
2536
+ };
2537
+ const setBounds$5 = (state, x, y, width, height) => {
2538
+ const {
2539
+ $Viewlet
2540
+ } = state;
2541
+ setBounds$8($Viewlet, x, y, width, height);
2542
+ };
2543
+ const Events$c = ViewletFindWidgetEvents;
2544
+
2545
+ const ViewletFindWidget = {
2546
+ __proto__: null,
2547
+ Events: Events$c,
2548
+ appendWidget,
2549
+ create: create$H,
2550
+ focus: focus$i,
2425
2551
  setBounds: setBounds$5,
2426
- setDom: setDom$a
2552
+ setDom: setDom$8,
2553
+ setValue: setValue$4
2427
2554
  };
2428
2555
 
2429
2556
  const ActivityBar = 'ActivityBar';
@@ -2828,6 +2955,7 @@ const main = async () => {
2828
2955
  state$6.modules[EditorCompletion] = ViewletEditorCompletion;
2829
2956
  state$6.modules[EditorCompletionDetails] = ViewletEditorCompletionDetails;
2830
2957
  state$6.modules[ColorPicker] = ViewletColorPicker;
2958
+ state$6.modules[FindWidget] = ViewletFindWidget;
2831
2959
  setLoad(load$2);
2832
2960
  // TODO this is discovered very late
2833
2961
  await launchWorkers();
@@ -2921,7 +3049,7 @@ ${relevant}`;
2921
3049
 
2922
3050
  const Module = 'module';
2923
3051
 
2924
- const create$I = async ({
3052
+ const create$G = async ({
2925
3053
  url,
2926
3054
  name
2927
3055
  }) => {
@@ -2987,7 +3115,7 @@ const wrap = worker => {
2987
3115
 
2988
3116
  const IpcParentWithModuleWorker = {
2989
3117
  __proto__: null,
2990
- create: create$I,
3118
+ create: create$G,
2991
3119
  wrap
2992
3120
  };
2993
3121
 
@@ -2995,7 +3123,7 @@ const isMessagePort$1 = value => {
2995
3123
  return value instanceof MessagePort;
2996
3124
  };
2997
3125
 
2998
- const create$H = async ({
3126
+ const create$F = async ({
2999
3127
  url
3000
3128
  }) => {
3001
3129
  string(url);
@@ -3016,10 +3144,10 @@ const create$H = async ({
3016
3144
 
3017
3145
  const IpcParentWithMessagePort = {
3018
3146
  __proto__: null,
3019
- create: create$H
3147
+ create: create$F
3020
3148
  };
3021
3149
 
3022
- const create$G = async url => {
3150
+ const create$E = async url => {
3023
3151
  const referencePort = await new Promise(resolve => {
3024
3152
  globalThis.acceptReferencePort = resolve;
3025
3153
  import(url);
@@ -3030,7 +3158,7 @@ const create$G = async url => {
3030
3158
 
3031
3159
  const IpcParentWithReferencePort = {
3032
3160
  __proto__: null,
3033
- create: create$G
3161
+ create: create$E
3034
3162
  };
3035
3163
 
3036
3164
  const isWorker = value => {
@@ -3038,12 +3166,12 @@ const isWorker = value => {
3038
3166
  };
3039
3167
 
3040
3168
  // TODO add test
3041
- const create$F = async ({
3169
+ const create$D = async ({
3042
3170
  url,
3043
3171
  name,
3044
3172
  port
3045
3173
  }) => {
3046
- const worker = await create$I({
3174
+ const worker = await create$G({
3047
3175
  url,
3048
3176
  name
3049
3177
  });
@@ -3062,7 +3190,7 @@ const create$F = async ({
3062
3190
 
3063
3191
  const IpcParentWithModuleWorkerWithMessagePort = {
3064
3192
  __proto__: null,
3065
- create: create$F
3193
+ create: create$D
3066
3194
  };
3067
3195
 
3068
3196
  const handleIpcOnce = ipc => {
@@ -3129,7 +3257,7 @@ const getTransferrables = value => {
3129
3257
  walkValue(value, transferrables, isTransferrable);
3130
3258
  return transferrables;
3131
3259
  };
3132
- const attachEvents$a = that => {
3260
+ const attachEvents$9 = that => {
3133
3261
  const handleMessage = (...args) => {
3134
3262
  const data = that.getData(...args);
3135
3263
  that.dispatchEvent(new MessageEvent('message', {
@@ -3146,7 +3274,7 @@ class Ipc extends EventTarget {
3146
3274
  constructor(rawIpc) {
3147
3275
  super();
3148
3276
  this._rawIpc = rawIpc;
3149
- attachEvents$a(this);
3277
+ attachEvents$9(this);
3150
3278
  }
3151
3279
  }
3152
3280
  const readyMessage = 'ready';
@@ -3593,7 +3721,7 @@ const IpcChildWithMessagePort$1 = {
3593
3721
  };
3594
3722
 
3595
3723
  // TODO use handleIncomingIpc function
3596
- const create$E = async ({
3724
+ const create$C = async ({
3597
3725
  port,
3598
3726
  ipcId
3599
3727
  }) => {
@@ -3609,7 +3737,7 @@ const create$E = async ({
3609
3737
 
3610
3738
  const IpcParentWithElectron = {
3611
3739
  __proto__: null,
3612
- create: create$E
3740
+ create: create$C
3613
3741
  };
3614
3742
 
3615
3743
  const play = async src => {
@@ -3840,7 +3968,7 @@ const AriaAlert = {
3840
3968
  // but that's difficult to know
3841
3969
 
3842
3970
  // TODO hide widget after timeout or mousemove
3843
- const create$D = (message, x, y) => {
3971
+ const create$B = (message, x, y) => {
3844
3972
  const $EditorError = document.createElement('div');
3845
3973
  $EditorError.className = 'EditorWidgetError';
3846
3974
  $EditorError.textContent = message;
@@ -3855,7 +3983,7 @@ const create$D = (message, x, y) => {
3855
3983
 
3856
3984
  const name$t = 'EditorError';
3857
3985
  const Commands$u = {
3858
- create: create$D
3986
+ create: create$B
3859
3987
  };
3860
3988
 
3861
3989
  const EditorError_ipc = {
@@ -3878,7 +4006,7 @@ const getElement = () => {
3878
4006
  return state$3.$PreviousFocusElement;
3879
4007
  };
3880
4008
 
3881
- const focus$i = $Element => {
4009
+ const focus$h = $Element => {
3882
4010
  if ($Element === document.activeElement) {
3883
4011
  return;
3884
4012
  }
@@ -3895,7 +4023,7 @@ const focusPrevious = () => {
3895
4023
  }
3896
4024
  };
3897
4025
 
3898
- const create$C = () => {
4026
+ const create$A = () => {
3899
4027
  const $InputBox = document.createElement('input');
3900
4028
  $InputBox.className = 'InputBox';
3901
4029
  $InputBox.spellcheck = false;
@@ -3919,8 +4047,8 @@ const FocusOutput = 28;
3919
4047
  const handleBlur$9 = () => {
3920
4048
  send(/* EditorRename.abort */'EditorRename.abort');
3921
4049
  };
3922
- const create$B = (x, y) => {
3923
- const $RenameWidgetInputBox = create$C();
4050
+ const create$z = (x, y) => {
4051
+ const $RenameWidgetInputBox = create$A();
3924
4052
  $RenameWidgetInputBox.className = 'RenameWidgetInputBox';
3925
4053
  $RenameWidgetInputBox.onblur = handleBlur$9;
3926
4054
  const $RenameWidget = document.createElement('div');
@@ -3928,7 +4056,7 @@ const create$B = (x, y) => {
3928
4056
  $RenameWidget.append($RenameWidgetInputBox);
3929
4057
  setXAndY($RenameWidget, x, y);
3930
4058
  append$1($RenameWidget);
3931
- focus$i($RenameWidgetInputBox);
4059
+ focus$h($RenameWidgetInputBox);
3932
4060
  send('Focus.setFocus', FocusEditorRename);
3933
4061
  return {
3934
4062
  $RenameWidget,
@@ -3951,7 +4079,7 @@ const finish = state => {
3951
4079
 
3952
4080
  const name$s = 'EditorRename';
3953
4081
  const Commands$t = {
3954
- create: create$B,
4082
+ create: create$z,
3955
4083
  dispose: dispose$i,
3956
4084
  finish: finish
3957
4085
  };
@@ -4037,7 +4165,7 @@ const showError = (message, y, x) => {
4037
4165
  $ImagePreviewImage
4038
4166
  };
4039
4167
  };
4040
- const create$A = (uri, top, left) => {
4168
+ const create$y = (uri, top, left) => {
4041
4169
  const $ImagePreviewImage = document.createElement('img');
4042
4170
  $ImagePreviewImage.className = 'ImagePreviewImage';
4043
4171
  $ImagePreviewImage.src = uri;
@@ -4068,7 +4196,7 @@ const dispose$h = state => {
4068
4196
 
4069
4197
  const ImagePreview = {
4070
4198
  __proto__: null,
4071
- create: create$A,
4199
+ create: create$y,
4072
4200
  dispose: dispose$h,
4073
4201
  showError,
4074
4202
  update
@@ -4076,7 +4204,7 @@ const ImagePreview = {
4076
4204
 
4077
4205
  const name$p = 'ImagePreview';
4078
4206
  const Commands$q = {
4079
- create: create$A,
4207
+ create: create$y,
4080
4208
  dispose: dispose$h,
4081
4209
  showError: showError,
4082
4210
  update: update
@@ -4154,7 +4282,7 @@ const InitData_ipc = {
4154
4282
 
4155
4283
  const name$n = 'IpcParent';
4156
4284
  const Commands$o = {
4157
- create: create$M
4285
+ create: create$L
4158
4286
  };
4159
4287
 
4160
4288
  const IpcParent_ipc = {
@@ -4274,7 +4402,7 @@ const create$Notification = message => {
4274
4402
  $Notification.textContent = message;
4275
4403
  return $Notification;
4276
4404
  };
4277
- const create$z = (type, message) => {
4405
+ const create$x = (type, message) => {
4278
4406
  // TODO this pattern might be also useful for activitybar, sidebar etc., creating elements as late as possible, only when actually needed
4279
4407
  const $Notification = create$Notification(message);
4280
4408
  append$1($Notification);
@@ -4327,7 +4455,7 @@ const name$h = 'Notification';
4327
4455
 
4328
4456
  // prettier-ignore
4329
4457
  const Commands$i = {
4330
- create: create$z,
4458
+ create: create$x,
4331
4459
  createWithOptions: createWithOptions,
4332
4460
  dispose: dispose$g
4333
4461
  };
@@ -4351,7 +4479,7 @@ const set$3 = (canvasId, canvas) => {
4351
4479
  const get$3 = id => {
4352
4480
  return get$4(id);
4353
4481
  };
4354
- const create$y = async (canvasId, objectId) => {
4482
+ const create$w = async (canvasId, objectId) => {
4355
4483
  const canvas = document.createElement('canvas');
4356
4484
  const offscreenCanvas = canvas.transferControlToOffscreen();
4357
4485
  set$3(canvasId, canvas);
@@ -4362,7 +4490,7 @@ const name$g = 'OffscreenCanvas';
4362
4490
 
4363
4491
  // prettier-ignore
4364
4492
  const Commands$h = {
4365
- create: create$y
4493
+ create: create$w
4366
4494
  };
4367
4495
 
4368
4496
  const OffscreenCanvas_ipc = {
@@ -4583,7 +4711,7 @@ const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mous
4583
4711
  state$1.$$Menus.push($Menu);
4584
4712
  append$1($Menu);
4585
4713
  if (level === 0) {
4586
- focus$i($Menu);
4714
+ focus$h($Menu);
4587
4715
  send('Focus.setFocus', FocusMenu);
4588
4716
  }
4589
4717
  };
@@ -5409,8 +5537,6 @@ const setIdentifiers = identifiers => {
5409
5537
  setIdentifiers$1(identifiers);
5410
5538
  };
5411
5539
 
5412
- const rememberFocus = rememberFocus$1;
5413
-
5414
5540
  const load$1 = moduleId => {
5415
5541
  switch (moduleId) {
5416
5542
  case ImagePreview$1:
@@ -5532,7 +5658,7 @@ const load$1 = moduleId => {
5532
5658
  }
5533
5659
  };
5534
5660
 
5535
- const create$x = (id, uid = id) => {
5661
+ const create$v = (id, uid = id) => {
5536
5662
  const module = state$6.modules[id];
5537
5663
  if (!module) {
5538
5664
  throw new Error(`module not found: ${id}`);
@@ -5597,7 +5723,7 @@ const invoke = (viewletId, method, ...args) => {
5597
5723
  }
5598
5724
  return instance.factory[method](instance.state, ...args);
5599
5725
  };
5600
- const focus$h = viewletId => {
5726
+ const focus$g = viewletId => {
5601
5727
  const instance = state$6.instances[viewletId];
5602
5728
  if (instance.factory?.setFocused) {
5603
5729
  instance.factory.setFocused(instance.state, true);
@@ -5639,7 +5765,7 @@ const isSpecial = id => {
5639
5765
  const createPlaceholder = (viewletId, parentId, top, left, width, height) => {
5640
5766
  const $PlaceHolder = document.createElement('div');
5641
5767
  $PlaceHolder.className = `Viewlet ${viewletId}`;
5642
- setBounds$7($PlaceHolder, left, top, width, height);
5768
+ setBounds$8($PlaceHolder, left, top, width, height);
5643
5769
  if (isSpecial(viewletId)) {
5644
5770
  $PlaceHolder.id = viewletId;
5645
5771
  }
@@ -5652,7 +5778,7 @@ const createPlaceholder = (viewletId, parentId, top, left, width, height) => {
5652
5778
  }
5653
5779
  };
5654
5780
  };
5655
- const setDom$9 = (viewletId, dom) => {
5781
+ const setDom$7 = (viewletId, dom) => {
5656
5782
  const instance = state$6.instances[viewletId];
5657
5783
  if (!instance) {
5658
5784
  return;
@@ -5699,7 +5825,7 @@ const sendMultiple = commands => {
5699
5825
  }
5700
5826
  case 'Viewlet.create':
5701
5827
  {
5702
- create$x(viewletId, method);
5828
+ create$v(viewletId, method);
5703
5829
  break;
5704
5830
  }
5705
5831
  case 'Viewlet.createFunctionalRoot':
@@ -5733,7 +5859,7 @@ const sendMultiple = commands => {
5733
5859
  }
5734
5860
  case 'Viewlet.focus':
5735
5861
  {
5736
- focus$h(viewletId);
5862
+ focus$g(viewletId);
5737
5863
  break;
5738
5864
  }
5739
5865
  case 'Viewlet.appendViewlet':
@@ -5753,7 +5879,7 @@ const sendMultiple = commands => {
5753
5879
  break;
5754
5880
  case 'Viewlet.setDom':
5755
5881
  // @ts-expect-error
5756
- setDom$9(viewletId, method, ...args);
5882
+ setDom$7(viewletId, method, ...args);
5757
5883
  break;
5758
5884
  case 'Viewlet.setDom2':
5759
5885
  // @ts-ignore
@@ -5894,7 +6020,7 @@ const appendToBody = childId => {
5894
6020
  const getFn = command => {
5895
6021
  switch (command) {
5896
6022
  case 'Viewlet.create':
5897
- return create$x;
6023
+ return create$v;
5898
6024
  case 'Viewlet.send':
5899
6025
  return invoke;
5900
6026
  case 'Viewlet.show':
@@ -5914,13 +6040,13 @@ const getFn = command => {
5914
6040
  case 'Viewlet.createPlaceholder':
5915
6041
  return createPlaceholder;
5916
6042
  case 'Viewlet.focus':
5917
- return focus$h;
6043
+ return focus$g;
5918
6044
  case 'Viewlet.appendViewlet':
5919
6045
  return appendViewlet;
5920
6046
  case 'Viewlet.addKeyBindings':
5921
6047
  return addKeyBindings;
5922
6048
  case 'Viewlet.setDom':
5923
- return setDom$9;
6049
+ return setDom$7;
5924
6050
  case 'Viewlet.createFunctionalRoot':
5925
6051
  return createFunctionalRoot;
5926
6052
  default:
@@ -5950,7 +6076,7 @@ const setBounds$4 = (id, left, top, width, height) => {
5950
6076
  return;
5951
6077
  }
5952
6078
  const $Viewlet = instance.state.$Viewlet;
5953
- setBounds$7($Viewlet, left, top, width, height);
6079
+ setBounds$8($Viewlet, left, top, width, height);
5954
6080
  };
5955
6081
 
5956
6082
  const name$8 = 'Viewlet';
@@ -5959,7 +6085,7 @@ const Commands$9 = {
5959
6085
  appendViewlet: appendViewlet,
5960
6086
  dispose: dispose$e,
5961
6087
  executeCommands: executeCommands,
5962
- focus: focus$h,
6088
+ focus: focus$g,
5963
6089
  focusSelector: focusSelector,
5964
6090
  handleError: handleError$6,
5965
6091
  invoke: invoke,
@@ -6240,7 +6366,7 @@ const waitForFrameToLoad = $Frame => {
6240
6366
  };
6241
6367
 
6242
6368
  // TODO could use browser view when running in electron
6243
- const create$w = async (uid, src, sandbox, csp, credentialless) => {
6369
+ const create$u = async (uid, src, sandbox, csp, credentialless) => {
6244
6370
  const $Iframe = document.createElement('iframe');
6245
6371
  setIframeCredentialless($Iframe, credentialless);
6246
6372
  setIframeCsp($Iframe, csp);
@@ -6282,7 +6408,7 @@ const dispose$d = uid => {
6282
6408
 
6283
6409
  const name = 'WebView';
6284
6410
  const Commands$1 = {
6285
- create: create$w,
6411
+ create: create$u,
6286
6412
  load: load,
6287
6413
  setPort: setPort$2,
6288
6414
  dispose: dispose$d
@@ -6330,7 +6456,7 @@ const handleMouseDown$2 = event => {
6330
6456
  const handleBlur$8 = () => {
6331
6457
  return ['handleBlur'];
6332
6458
  };
6333
- const handleFocus$b = () => {
6459
+ const handleFocus$a = () => {
6334
6460
  return ['handleFocus'];
6335
6461
  };
6336
6462
 
@@ -6351,16 +6477,16 @@ const ViewletActivityBarEvents = {
6351
6477
  __proto__: null,
6352
6478
  handleBlur: handleBlur$8,
6353
6479
  handleContextMenu: handleContextMenu$b,
6354
- handleFocus: handleFocus$b,
6480
+ handleFocus: handleFocus$a,
6355
6481
  handleMouseDown: handleMouseDown$2,
6356
6482
  returnValue: returnValue$8
6357
6483
  };
6358
6484
 
6359
- const Events$a = ViewletActivityBarEvents;
6485
+ const Events$b = ViewletActivityBarEvents;
6360
6486
 
6361
6487
  const ViewletActivityBar = {
6362
6488
  __proto__: null,
6363
- Events: Events$a
6489
+ Events: Events$b
6364
6490
  };
6365
6491
 
6366
6492
  const handleAudioError = event => {
@@ -6383,21 +6509,21 @@ const ViewletAudioEvents = {
6383
6509
  handleAudioError
6384
6510
  };
6385
6511
 
6386
- const Events$9 = ViewletAudioEvents;
6512
+ const Events$a = ViewletAudioEvents;
6387
6513
 
6388
6514
  const ViewletAudio = {
6389
6515
  __proto__: null,
6390
- Events: Events$9
6516
+ Events: Events$a
6391
6517
  };
6392
6518
 
6393
- const create$v = () => {
6519
+ const create$t = () => {
6394
6520
  const $Viewlet = document.createElement('div');
6395
6521
  $Viewlet.className = 'Viewlet BrowserViewOverview';
6396
6522
  return {
6397
6523
  $Viewlet
6398
6524
  };
6399
6525
  };
6400
- const setDom$8 = (state, dom) => {
6526
+ const setDom$6 = (state, dom) => {
6401
6527
  const {
6402
6528
  $Viewlet
6403
6529
  } = state;
@@ -6406,11 +6532,11 @@ const setDom$8 = (state, dom) => {
6406
6532
 
6407
6533
  const ViewletBrowserViewOverview = {
6408
6534
  __proto__: null,
6409
- create: create$v,
6410
- setDom: setDom$8
6535
+ create: create$t,
6536
+ setDom: setDom$6
6411
6537
  };
6412
6538
 
6413
- const create$u = () => {
6539
+ const create$s = () => {
6414
6540
  const $Viewlet = document.createElement('div');
6415
6541
  $Viewlet.className = 'Viewlet Clock';
6416
6542
  return {
@@ -6427,13 +6553,13 @@ const setTime = (state, time) => {
6427
6553
 
6428
6554
  const ViewletClock = {
6429
6555
  __proto__: null,
6430
- create: create$u,
6556
+ create: create$s,
6431
6557
  dispose: dispose$c,
6432
6558
  refresh: refresh$3,
6433
6559
  setTime
6434
6560
  };
6435
6561
 
6436
- const handleInput$7 = event => {
6562
+ const handleInput$6 = event => {
6437
6563
  const uid = fromEvent(event);
6438
6564
  const {
6439
6565
  target
@@ -6443,25 +6569,25 @@ const handleInput$7 = event => {
6443
6569
  } = target;
6444
6570
  handleInput$8(uid, value);
6445
6571
  };
6446
- const handleFocus$a = event => {
6572
+ const handleFocus$9 = event => {
6447
6573
  const uid = fromEvent(event);
6448
6574
  handleFocus$c(uid);
6449
6575
  };
6450
6576
 
6451
6577
  const ViewletDebugConsoleEvents = {
6452
6578
  __proto__: null,
6453
- handleFocus: handleFocus$a,
6454
- handleInput: handleInput$7
6579
+ handleFocus: handleFocus$9,
6580
+ handleInput: handleInput$6
6455
6581
  };
6456
6582
 
6457
- const create$t = () => {
6583
+ const create$r = () => {
6458
6584
  const $Viewlet = document.createElement('div');
6459
6585
  $Viewlet.className = 'Viewlet DebugConsole';
6460
6586
  return {
6461
6587
  $Viewlet
6462
6588
  };
6463
6589
  };
6464
- const setDom$7 = (state, dom) => {
6590
+ const setDom$5 = (state, dom) => {
6465
6591
  const {
6466
6592
  $Viewlet
6467
6593
  } = state;
@@ -6470,8 +6596,8 @@ const setDom$7 = (state, dom) => {
6470
6596
 
6471
6597
  const ViewletDebugConsole = {
6472
6598
  __proto__: null,
6473
- create: create$t,
6474
- setDom: setDom$7
6599
+ create: create$r,
6600
+ setDom: setDom$5
6475
6601
  };
6476
6602
 
6477
6603
  const handleKeyDown$3 = event => {
@@ -6498,7 +6624,7 @@ const ViewletDefineKeyBindingEvents = {
6498
6624
  handleKeyDown: handleKeyDown$3
6499
6625
  };
6500
6626
 
6501
- const setValue$4 = (state, value) => {
6627
+ const setValue$3 = (state, value) => {
6502
6628
  object(state);
6503
6629
  string(value);
6504
6630
  const {
@@ -6507,7 +6633,7 @@ const setValue$4 = (state, value) => {
6507
6633
  const $Input = $Viewlet.querySelector('input');
6508
6634
  $Input.value = value;
6509
6635
  };
6510
- const focus$g = state => {
6636
+ const focus$f = state => {
6511
6637
  const {
6512
6638
  $Viewlet
6513
6639
  } = state;
@@ -6518,8 +6644,8 @@ const focus$g = state => {
6518
6644
  const ViewletDefineKeyBinding = {
6519
6645
  __proto__: null,
6520
6646
  Events: ViewletDefineKeyBindingEvents,
6521
- focus: focus$g,
6522
- setValue: setValue$4
6647
+ focus: focus$f,
6648
+ setValue: setValue$3
6523
6649
  };
6524
6650
 
6525
6651
  const setMaskImage = ($Element, icon) => {
@@ -6531,7 +6657,7 @@ const setMaskImage = ($Element, icon) => {
6531
6657
  }
6532
6658
  };
6533
6659
 
6534
- const create$s = icon => {
6660
+ const create$q = icon => {
6535
6661
  const $Icon = document.createElement('div');
6536
6662
  $Icon.className = 'MaskIcon';
6537
6663
  setMaskImage($Icon, icon);
@@ -6541,7 +6667,7 @@ const create$s = icon => {
6541
6667
 
6542
6668
  const create$Button = (label, icon) => {
6543
6669
  // TODO icon div might not be needed (unnecessary html element)
6544
- const $Icon = create$s(icon);
6670
+ const $Icon = create$q(icon);
6545
6671
  const $Button = document.createElement('button');
6546
6672
  $Button.className = 'IconButton';
6547
6673
  $Button.title = label;
@@ -6550,19 +6676,19 @@ const create$Button = (label, icon) => {
6550
6676
  return $Button;
6551
6677
  };
6552
6678
 
6553
- const handleClick$8 = index => {
6679
+ const handleClick$7 = index => {
6554
6680
  send(/* Dialog.handleClick */'Dialog.handleClick', /* index */index);
6555
6681
  };
6556
6682
 
6557
- const handleClick$7 = event => {
6683
+ const handleClick$6 = event => {
6558
6684
  const {
6559
6685
  target
6560
6686
  } = event;
6561
6687
  const index = getNodeIndex(target);
6562
- handleClick$8(index);
6688
+ handleClick$7(index);
6563
6689
  };
6564
6690
 
6565
- const create$r = () => {
6691
+ const create$p = () => {
6566
6692
  const $DialogTitle = document.createElement('h2');
6567
6693
  $DialogTitle.id = 'DialogTitle';
6568
6694
  const $DialogCloseButton = create$Button('Close', 'Close');
@@ -6589,7 +6715,7 @@ const create$r = () => {
6589
6715
  $Dialog.setAttribute(AriaLabelledBy, 'DialogTitle');
6590
6716
  $Dialog.setAttribute(AriaDescribedBy, 'DialogBodyErrorMessage');
6591
6717
  $Dialog.append($DialogHeader, $DialogBody);
6592
- $Dialog.onclick = handleClick$7;
6718
+ $Dialog.onclick = handleClick$6;
6593
6719
  return {
6594
6720
  $Viewlet: $Dialog,
6595
6721
  $DialogTitle,
@@ -6643,7 +6769,7 @@ const setErrorStack = (state, errorStack) => {
6643
6769
 
6644
6770
  const ViewletDialog = {
6645
6771
  __proto__: null,
6646
- create: create$r,
6772
+ create: create$p,
6647
6773
  postAppend,
6648
6774
  setButtons,
6649
6775
  setCodeFrame,
@@ -6681,14 +6807,14 @@ const ViewletDiffEditor = {
6681
6807
 
6682
6808
  // TODO aria alert
6683
6809
 
6684
- const create$q = () => {
6810
+ const create$o = () => {
6685
6811
  const $Viewlet = document.createElement('div');
6686
6812
  $Viewlet.className = 'Viewlet EditorError';
6687
6813
  return {
6688
6814
  $Viewlet
6689
6815
  };
6690
6816
  };
6691
- const setDom$6 = (state, dom) => {
6817
+ const setDom$4 = (state, dom) => {
6692
6818
  const {
6693
6819
  $Viewlet
6694
6820
  } = state;
@@ -6698,18 +6824,18 @@ const setBounds$3 = (state, x, y, width, height) => {
6698
6824
  const {
6699
6825
  $Viewlet
6700
6826
  } = state;
6701
- setBounds$7($Viewlet, x, y, width, height);
6827
+ setBounds$8($Viewlet, x, y, width, height);
6702
6828
  };
6703
6829
 
6704
6830
  const ViewletEditorError = {
6705
6831
  __proto__: null,
6706
- create: create$q,
6832
+ create: create$o,
6707
6833
  setBounds: setBounds$3,
6708
- setDom: setDom$6
6834
+ setDom: setDom$4
6709
6835
  };
6710
6836
 
6711
6837
  const returnValue$7 = true;
6712
- const handleSashPointerDown$2 = create$L(event => {
6838
+ const handleSashPointerDown$2 = create$K(event => {
6713
6839
  const {
6714
6840
  clientX,
6715
6841
  clientY
@@ -6843,27 +6969,27 @@ const handleError$5 = event => {
6843
6969
  const uid = fromEvent(event);
6844
6970
  handleImageError$1(uid);
6845
6971
  };
6846
- const handleFocus$9 = event => {
6972
+ const handleFocus$8 = event => {
6847
6973
  const uid = fromEvent(event);
6848
6974
  handleFocus$c(uid);
6849
6975
  };
6850
6976
 
6851
- const create$p = () => {
6977
+ const create$n = () => {
6852
6978
  const $Viewlet = document.createElement('div');
6853
6979
  $Viewlet.className = 'Viewlet EditorImage';
6854
6980
  return {
6855
6981
  $Viewlet
6856
6982
  };
6857
6983
  };
6858
- const attachEvents$9 = state => {
6984
+ const attachEvents$8 = state => {
6859
6985
  const {
6860
6986
  $Viewlet
6861
6987
  } = state;
6862
- attachEvents$d($Viewlet, {
6988
+ attachEvents$c($Viewlet, {
6863
6989
  [PointerDown]: handlePointerDown$5,
6864
6990
  [PointerUp]: handlePointerUp,
6865
6991
  [ContextMenu]: handleContextMenu$a,
6866
- [FocusIn]: handleFocus$9
6992
+ [FocusIn]: handleFocus$8
6867
6993
  });
6868
6994
  $Viewlet.addEventListener(Error$3, handleError$5, Capture);
6869
6995
  $Viewlet.addEventListener(Wheel, handleWheel$2, Passive);
@@ -6881,7 +7007,7 @@ const setDragging = (state, isDragging) => {
6881
7007
  } = state;
6882
7008
  $Viewlet.classList.toggle('Dragging', isDragging);
6883
7009
  };
6884
- const setDom$5 = (state, dom) => {
7010
+ const setDom$3 = (state, dom) => {
6885
7011
  const {
6886
7012
  $Viewlet
6887
7013
  } = state;
@@ -6890,14 +7016,14 @@ const setDom$5 = (state, dom) => {
6890
7016
 
6891
7017
  const ViewletEditorImage = {
6892
7018
  __proto__: null,
6893
- attachEvents: attachEvents$9,
6894
- create: create$p,
6895
- setDom: setDom$5,
7019
+ attachEvents: attachEvents$8,
7020
+ create: create$n,
7021
+ setDom: setDom$3,
6896
7022
  setDragging,
6897
7023
  setTransform
6898
7024
  };
6899
7025
 
6900
- const create$o = () => {
7026
+ const create$m = () => {
6901
7027
  const $Viewlet = document.createElement('div');
6902
7028
  $Viewlet.className = 'Viewlet EditorText';
6903
7029
  $Viewlet.textContent = 'loading...';
@@ -6914,7 +7040,7 @@ const refresh$2 = (state, context) => {
6914
7040
 
6915
7041
  const ViewletEditorPlainText = {
6916
7042
  __proto__: null,
6917
- create: create$o,
7043
+ create: create$m,
6918
7044
  dispose: dispose$b,
6919
7045
  refresh: refresh$2
6920
7046
  };
@@ -7033,7 +7159,7 @@ const toSimpleTouchEvent = event => {
7033
7159
 
7034
7160
  // TODO tree shake out mobile support when targeting electron -> less code -> less event listeners -> less memory -> less cpu
7035
7161
 
7036
- const handleFocus$8 = event => {
7162
+ const handleFocus$7 = event => {
7037
7163
  return ['handleFocus'];
7038
7164
  };
7039
7165
  const handleMouseMove = event => {
@@ -7173,7 +7299,7 @@ const handlePaste = event => {
7173
7299
  const text = getText(clipboardData);
7174
7300
  return ['paste', text];
7175
7301
  };
7176
- const handleScrollBarVerticalPointerDown = create$L(event => {
7302
+ const handleScrollBarVerticalPointerDown = create$K(event => {
7177
7303
  const {
7178
7304
  clientY
7179
7305
  } = event;
@@ -7296,7 +7422,7 @@ const setLineInfos = (state, dom) => {
7296
7422
  // 1. create -> only create dom elements
7297
7423
  // 2. render -> fill elements with attributes and data
7298
7424
  // that way all dom nodes can be recycled
7299
- const create$n = () => {
7425
+ const create$l = () => {
7300
7426
  const $EditorInput = document.createElement('textarea');
7301
7427
  $EditorInput.className = 'EditorInput';
7302
7428
  $EditorInput.ariaAutoComplete = List;
@@ -7314,7 +7440,7 @@ const create$n = () => {
7314
7440
  [CompositionStart]: handleCompositionStart,
7315
7441
  [CompositionUpdate]: handleCompositionUpdate,
7316
7442
  [CompositionEnd]: handleCompositionEnd,
7317
- [Focus]: handleFocus$8,
7443
+ [Focus]: handleFocus$7,
7318
7444
  [Blur]: handleBlur$6,
7319
7445
  [Cut]: handleCut,
7320
7446
  [Paste]: handlePaste,
@@ -7463,7 +7589,7 @@ const setDecorationsDom$1 = (state, decorations) => {
7463
7589
  setDecorationsDom$2(state, decorations);
7464
7590
  };
7465
7591
 
7466
- const create$m = create$n;
7592
+ const create$k = create$l;
7467
7593
  const setText$1 = setText$2;
7468
7594
  const setSelections = setSelections$1;
7469
7595
  const setIncrementalEdits = setIncrementalEdits$1;
@@ -7500,13 +7626,13 @@ const hideOverlayMessage = state => {
7500
7626
  }
7501
7627
  };
7502
7628
  const setFocused$2 = setFocused$3;
7503
- const focus$f = setFocused$3;
7629
+ const focus$e = setFocused$3;
7504
7630
  const setDecorationsDom = setDecorationsDom$1;
7505
7631
 
7506
7632
  const ViewletEditorText = {
7507
7633
  __proto__: null,
7508
- create: create$m,
7509
- focus: focus$f,
7634
+ create: create$k,
7635
+ focus: focus$e,
7510
7636
  handleError: handleError$4,
7511
7637
  hideOverlayMessage,
7512
7638
  highlightAsLink,
@@ -7521,7 +7647,7 @@ const ViewletEditorText = {
7521
7647
  showOverlayMessage
7522
7648
  };
7523
7649
 
7524
- const create$l = () => {
7650
+ const create$j = () => {
7525
7651
  const $Viewlet = document.createElement('div');
7526
7652
  $Viewlet.className = 'Viewlet EditorWidgetError EditorOverlayMessage';
7527
7653
  return {
@@ -7539,17 +7665,17 @@ const setBounds$1 = (state, x, y, width, height) => {
7539
7665
  const {
7540
7666
  $Viewlet
7541
7667
  } = state;
7542
- setBounds$7($Viewlet, x, y, width, height);
7668
+ setBounds$8($Viewlet, x, y, width, height);
7543
7669
  };
7544
7670
 
7545
7671
  const ViewletEditorWidgetError = {
7546
7672
  __proto__: null,
7547
- create: create$l,
7673
+ create: create$j,
7548
7674
  setBounds: setBounds$1,
7549
7675
  setMessage: setMessage$2
7550
7676
  };
7551
7677
 
7552
- const create$k = () => {
7678
+ const create$i = () => {
7553
7679
  const $Viewlet = document.createElement('div');
7554
7680
  $Viewlet.dataset.viewlet = 'Empty';
7555
7681
  $Viewlet.className = 'Viewlet';
@@ -7558,18 +7684,18 @@ const create$k = () => {
7558
7684
  };
7559
7685
  };
7560
7686
  const refresh$1 = (state, context) => {};
7561
- const focus$e = state => {};
7687
+ const focus$d = state => {};
7562
7688
  const dispose$a = state => {};
7563
7689
 
7564
7690
  const ViewletEmpty = {
7565
7691
  __proto__: null,
7566
- create: create$k,
7692
+ create: create$i,
7567
7693
  dispose: dispose$a,
7568
- focus: focus$e,
7694
+ focus: focus$d,
7569
7695
  refresh: refresh$1
7570
7696
  };
7571
7697
 
7572
- const create$j = () => {
7698
+ const create$h = () => {
7573
7699
  const $Viewlet = document.createElement('div');
7574
7700
  $Viewlet.className = 'Viewlet Error';
7575
7701
  return {
@@ -7585,7 +7711,7 @@ const setMessage$1 = (state, message) => {
7585
7711
 
7586
7712
  const ViewletError = {
7587
7713
  __proto__: null,
7588
- create: create$j,
7714
+ create: create$h,
7589
7715
  setMessage: setMessage$1
7590
7716
  };
7591
7717
 
@@ -7711,7 +7837,7 @@ const handleDrop = event => {
7711
7837
 
7712
7838
  // TODO drag and drop should be loaded on demand
7713
7839
 
7714
- const handleFocus$7 = event => {
7840
+ const handleFocus$6 = event => {
7715
7841
  const {
7716
7842
  target,
7717
7843
  isTrusted
@@ -7726,7 +7852,7 @@ const handleBlur$5 = event => {
7726
7852
  const uid = fromEvent(event);
7727
7853
  handleBlur$a(uid);
7728
7854
  };
7729
- const handleClick$6 = event => {
7855
+ const handleClick$5 = event => {
7730
7856
  preventDefault(event);
7731
7857
  const {
7732
7858
  button,
@@ -7786,7 +7912,7 @@ const handleEditingInput = event => {
7786
7912
  const ViewletExplorerEvents = {
7787
7913
  __proto__: null,
7788
7914
  handleBlur: handleBlur$5,
7789
- handleClick: handleClick$6,
7915
+ handleClick: handleClick$5,
7790
7916
  handleClickOpenFolder,
7791
7917
  handleContextMenu: handleContextMenu$8,
7792
7918
  handleDragEnd,
@@ -7795,14 +7921,14 @@ const ViewletExplorerEvents = {
7795
7921
  handleDragStart: handleDragStart$1,
7796
7922
  handleDrop,
7797
7923
  handleEditingInput,
7798
- handleFocus: handleFocus$7,
7924
+ handleFocus: handleFocus$6,
7799
7925
  handleMouseEnter,
7800
7926
  handleMouseLeave,
7801
7927
  handlePointerDown: handlePointerDown$4,
7802
7928
  handleWheel: handleWheel$3
7803
7929
  };
7804
7930
 
7805
- const create$i = () => {
7931
+ const create$g = () => {
7806
7932
  const $Viewlet = document.createElement('div');
7807
7933
  $Viewlet.className = 'Viewlet Explorer';
7808
7934
  $Viewlet.tabIndex = 0;
@@ -7812,7 +7938,7 @@ const create$i = () => {
7812
7938
  $Viewlet
7813
7939
  };
7814
7940
  };
7815
- const Events$8 = ViewletExplorerEvents;
7941
+ const Events$9 = ViewletExplorerEvents;
7816
7942
  const handleError$3 = (state, message) => {
7817
7943
  object(state);
7818
7944
  string(message);
@@ -7850,7 +7976,7 @@ const setDropTargets = (state, oldDropTargets, newDropTargets) => {
7850
7976
  }
7851
7977
  }
7852
7978
  };
7853
- const setDom$4 = (state, dom) => {
7979
+ const setDom$2 = (state, dom) => {
7854
7980
  const {
7855
7981
  $Viewlet
7856
7982
  } = state;
@@ -7859,12 +7985,12 @@ const setDom$4 = (state, dom) => {
7859
7985
 
7860
7986
  const ViewletExplorer = {
7861
7987
  __proto__: null,
7862
- Events: Events$8,
7863
- create: create$i,
7988
+ Events: Events$9,
7989
+ create: create$g,
7864
7990
  dispose: dispose$9,
7865
7991
  focusInput,
7866
7992
  handleError: handleError$3,
7867
- setDom: setDom$4,
7993
+ setDom: setDom$2,
7868
7994
  setDropTargets
7869
7995
  };
7870
7996
 
@@ -7903,11 +8029,11 @@ const ViewletExtensionDetailEvents = {
7903
8029
  handleReadmeContextMenu
7904
8030
  };
7905
8031
 
7906
- const Events$7 = ViewletExtensionDetailEvents;
8032
+ const Events$8 = ViewletExtensionDetailEvents;
7907
8033
 
7908
8034
  const ViewletExtensionDetail = {
7909
8035
  __proto__: null,
7910
- Events: Events$7,
8036
+ Events: Events$8,
7911
8037
  setSize
7912
8038
  };
7913
8039
 
@@ -7939,7 +8065,7 @@ const handleScrollBarPointerDown$2 = event => {
7939
8065
  const uid = fromEvent(event);
7940
8066
  handleScrollBarClick(uid, clientY);
7941
8067
  };
7942
- const handleFocus$6 = event => {
8068
+ const handleFocus$5 = event => {
7943
8069
  const uid = fromEvent(event);
7944
8070
  handleFocus$c(uid);
7945
8071
  };
@@ -7956,7 +8082,7 @@ const handlePointerDown$3 = event => {
7956
8082
  const index = getNodeIndex($Extension);
7957
8083
  handleClick$9(uid, index);
7958
8084
  };
7959
- const handleInput$6 = event => {
8085
+ const handleInput$5 = event => {
7960
8086
  const $Target = event.target;
7961
8087
  const value = $Target.value;
7962
8088
  const uid = fromEvent(event);
@@ -8008,7 +8134,7 @@ const handleTouchEnd = event => {
8008
8134
 
8009
8135
  // based on https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/extensions/browser/extensionsList.ts (License MIT)
8010
8136
 
8011
- const create$h = () => {
8137
+ const create$f = () => {
8012
8138
  const $ExtensionHeader = document.createElement('div');
8013
8139
  $ExtensionHeader.className = 'ExtensionHeader';
8014
8140
 
@@ -8043,30 +8169,30 @@ const create$h = () => {
8043
8169
  $Message: undefined
8044
8170
  };
8045
8171
  };
8046
- const attachEvents$8 = state => {
8172
+ const attachEvents$7 = state => {
8047
8173
  const {
8048
8174
  $ExtensionHeader,
8049
8175
  $ListItems,
8050
8176
  $ScrollBar
8051
8177
  } = state;
8052
- $ExtensionHeader.addEventListener(Input, handleInput$6, Capture);
8178
+ $ExtensionHeader.addEventListener(Input, handleInput$5, Capture);
8053
8179
  // @ts-expect-error
8054
8180
  $ExtensionHeader.addEventListener(Click, undefined);
8055
- attachEvents$d($ListItems, {
8181
+ attachEvents$c($ListItems, {
8056
8182
  [ContextMenu]: handleContextMenu$8,
8057
8183
  [PointerDown]: handlePointerDown$3,
8058
- [Focus]: handleFocus$6,
8184
+ [Focus]: handleFocus$5,
8059
8185
  [Scroll]: handleScroll
8060
8186
  });
8061
8187
  $ListItems.addEventListener(TouchStart, handleTouchStart, Passive);
8062
8188
  $ListItems.addEventListener(TouchMove, handleTouchMove, Passive);
8063
8189
  $ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
8064
8190
  $ListItems.addEventListener(Wheel, handleWheel$3, Passive);
8065
- attachEvents$d($ScrollBar, {
8191
+ attachEvents$c($ScrollBar, {
8066
8192
  [PointerDown]: handleScrollBarPointerDown$2
8067
8193
  });
8068
8194
  };
8069
- const focus$d = state => {
8195
+ const focus$c = state => {
8070
8196
  object(state);
8071
8197
  state.$InputBox.focus();
8072
8198
  };
@@ -8151,11 +8277,11 @@ const setSearchValue = (state, oldValue, newValue) => {
8151
8277
 
8152
8278
  const ViewletExtensions = {
8153
8279
  __proto__: null,
8154
- attachEvents: attachEvents$8,
8280
+ attachEvents: attachEvents$7,
8155
8281
  closeSuggest,
8156
- create: create$h,
8282
+ create: create$f,
8157
8283
  dispose: dispose$8,
8158
- focus: focus$d,
8284
+ focus: focus$c,
8159
8285
  handleError: handleError$2,
8160
8286
  openSuggest,
8161
8287
  setContentHeight,
@@ -8169,115 +8295,6 @@ const ViewletExtensions = {
8169
8295
  setSize
8170
8296
  };
8171
8297
 
8172
- const handleInput$5 = event => {
8173
- const {
8174
- target
8175
- } = event;
8176
- const {
8177
- value
8178
- } = target;
8179
- const uid = fromEvent(event);
8180
- handleInput$8(uid, value);
8181
- };
8182
- const handleClickClose$2 = (uid, event) => {
8183
- preventDefault(event);
8184
- close$1(uid);
8185
- };
8186
- const handleClickPreviousMatch = (uid, event) => {
8187
- preventDefault(event);
8188
- focusPrevious$1(uid);
8189
- };
8190
- const handleClickNextMatch = (uid, event) => {
8191
- preventDefault(event);
8192
- focusNext(uid);
8193
- };
8194
- const handleClickToggleReplace = (uid, event) => {
8195
- preventDefault(event);
8196
- toggleReplace(uid);
8197
- };
8198
- const handleClick$5 = event => {
8199
- const {
8200
- target
8201
- } = event;
8202
- const {
8203
- title
8204
- } = target;
8205
- const uid = fromEvent(event);
8206
- switch (title) {
8207
- case 'Close':
8208
- handleClickClose$2(uid, event);
8209
- break;
8210
- case 'Previous Match':
8211
- handleClickPreviousMatch(uid, event);
8212
- break;
8213
- case 'Next Match':
8214
- handleClickNextMatch(uid, event);
8215
- break;
8216
- case 'Toggle Replace':
8217
- handleClickToggleReplace(uid, event);
8218
- break;
8219
- }
8220
- };
8221
- const handleInputBlur = event => {
8222
- const uid = fromEvent(event);
8223
- handleBlur$a(uid);
8224
- };
8225
- const handleFocus$5 = event => {
8226
- const uid = fromEvent(event);
8227
- handleFocus$c(uid);
8228
- };
8229
-
8230
- const ViewletFindWidgetEvents = {
8231
- __proto__: null,
8232
- handleClick: handleClick$5,
8233
- handleFocus: handleFocus$5,
8234
- handleInput: handleInput$5,
8235
- handleInputBlur
8236
- };
8237
-
8238
- const create$g = () => {
8239
- const $Viewlet = document.createElement('div');
8240
- $Viewlet.className = 'Viewlet FindWidget';
8241
- $Viewlet.role = Group;
8242
- return {
8243
- $Viewlet
8244
- };
8245
- };
8246
- const focus$c = state => {
8247
- const {
8248
- $Viewlet
8249
- } = state;
8250
- const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
8251
- if (!$InputBox) {
8252
- return;
8253
- }
8254
- $InputBox.focus();
8255
- };
8256
- const setValue$3 = (state, value) => {
8257
- const {
8258
- $Viewlet
8259
- } = state;
8260
- const $InputBox = $Viewlet.querySelector('.MultilineInputBox');
8261
- if (!$InputBox) {
8262
- return;
8263
- }
8264
- $InputBox.value = value;
8265
- };
8266
- const setDom$3 = (state, dom) => {
8267
- const {
8268
- $Viewlet
8269
- } = state;
8270
- rememberFocus($Viewlet, dom, ViewletFindWidgetEvents, 0);
8271
- };
8272
-
8273
- const ViewletFindWidget = {
8274
- __proto__: null,
8275
- create: create$g,
8276
- focus: focus$c,
8277
- setDom: setDom$3,
8278
- setValue: setValue$3
8279
- };
8280
-
8281
8298
  const handleLocationsMouseDown = event => {
8282
8299
  if (event.button !== LeftClick) {
8283
8300
  return;
@@ -8296,7 +8313,7 @@ const ViewletLocationsEvents = {
8296
8313
  handleLocationsMouseDown
8297
8314
  };
8298
8315
 
8299
- const Events$6 = ViewletLocationsEvents;
8316
+ const Events$7 = ViewletLocationsEvents;
8300
8317
  const setFocusedIndex$3 = (state, oldFocusedIndex, newFocusedIndex) => {
8301
8318
  const {
8302
8319
  $Viewlet
@@ -8331,7 +8348,7 @@ const focus$b = state => {
8331
8348
 
8332
8349
  const ViewletImplementations = {
8333
8350
  __proto__: null,
8334
- Events: Events$6,
8351
+ Events: Events$7,
8335
8352
  focus: focus$b,
8336
8353
  handleError: handleError$1,
8337
8354
  setFocusedIndex: setFocusedIndex$3
@@ -8442,11 +8459,11 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
8442
8459
  $Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
8443
8460
  $Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
8444
8461
  };
8445
- const Events$5 = ViewletkeyBindingsEvents;
8462
+ const Events$6 = ViewletkeyBindingsEvents;
8446
8463
 
8447
8464
  const ViewletKeyBindings = {
8448
8465
  __proto__: null,
8449
- Events: Events$5,
8466
+ Events: Events$6,
8450
8467
  setColumnWidths,
8451
8468
  setScrollBar: setScrollBar$2,
8452
8469
  setSize,
@@ -8943,7 +8960,7 @@ const handleBlur$3 = () => {
8943
8960
  const handleKeyDown$1 = handleKeyDown$2;
8944
8961
  const handleKeyUp = handleKeyUp$1;
8945
8962
 
8946
- const create$f = () => {
8963
+ const create$e = () => {
8947
8964
  // TODO use aria role splitter once supported https://github.com/w3c/aria/issues/1348
8948
8965
  const $SashSideBar = document.createElement('div');
8949
8966
  $SashSideBar.className = 'Viewlet Sash SashVertical';
@@ -8964,20 +8981,20 @@ const create$f = () => {
8964
8981
  $SashPanel
8965
8982
  };
8966
8983
  };
8967
- const attachEvents$7 = state => {
8984
+ const attachEvents$6 = state => {
8968
8985
  const {
8969
8986
  $SashSideBar,
8970
8987
  $SashPanel
8971
8988
  } = state;
8972
- attachEvents$d($SashSideBar, {
8989
+ attachEvents$c($SashSideBar, {
8973
8990
  [PointerDown]: handleSashPointerDown,
8974
8991
  [DoubleClick]: handleSashDoubleClick
8975
8992
  });
8976
- attachEvents$d($SashPanel, {
8993
+ attachEvents$c($SashPanel, {
8977
8994
  [PointerDown]: handleSashPointerDown,
8978
8995
  [DoubleClick]: handleSashDoubleClick
8979
8996
  });
8980
- attachEvents$d(window, {
8997
+ attachEvents$c(window, {
8981
8998
  [Resize]: handleResize,
8982
8999
  [Focus]: handleFocus$3,
8983
9000
  [Blur]: handleBlur$3,
@@ -8990,16 +9007,16 @@ const setSashes = (state, sashSideBar, sashPanel) => {
8990
9007
  $SashSideBar,
8991
9008
  $SashPanel
8992
9009
  } = state;
8993
- setBounds$7($SashSideBar, sashSideBar.x, sashSideBar.y, sashSideBar.width, sashSideBar.height);
9010
+ setBounds$8($SashSideBar, sashSideBar.x, sashSideBar.y, sashSideBar.width, sashSideBar.height);
8994
9011
  $SashSideBar.classList.toggle('SashActive', sashSideBar.active);
8995
- setBounds$7($SashPanel, sashPanel.x, sashPanel.y, sashPanel.width, sashPanel.height);
9012
+ setBounds$8($SashPanel, sashPanel.x, sashPanel.y, sashPanel.width, sashPanel.height);
8996
9013
  $SashPanel.classList.toggle('SashActive', sashPanel.active);
8997
9014
  };
8998
9015
 
8999
9016
  const ViewletLayout = {
9000
9017
  __proto__: null,
9001
- attachEvents: attachEvents$7,
9002
- create: create$f,
9018
+ attachEvents: attachEvents$6,
9019
+ create: create$e,
9003
9020
  setSashes
9004
9021
  };
9005
9022
 
@@ -9017,7 +9034,7 @@ const handleContextMenu$7 = event => {
9017
9034
  };
9018
9035
 
9019
9036
  // TODO Main should not be bound to Editor -> Lazy load Editor
9020
- const create$e = () => {
9037
+ const create$d = () => {
9021
9038
  const $Viewlet = document.createElement('div');
9022
9039
  $Viewlet.id = 'Main';
9023
9040
  $Viewlet.className = 'Viewlet Main';
@@ -9038,11 +9055,11 @@ const create$e = () => {
9038
9055
  $DragOverlay: undefined
9039
9056
  };
9040
9057
  };
9041
- const attachEvents$6 = state => {
9058
+ const attachEvents$5 = state => {
9042
9059
  const {
9043
9060
  $Viewlet
9044
9061
  } = state;
9045
- attachEvents$d($Viewlet, {
9062
+ attachEvents$c($Viewlet, {
9046
9063
  [Drop]: handleDrop,
9047
9064
  [DragOver]: handleDragOver,
9048
9065
  [DragEnd]: handleDragEnd,
@@ -9105,7 +9122,7 @@ const setDragOverlay = (state, visible, x, y, width, height) => {
9105
9122
  const {
9106
9123
  $DragOverlay
9107
9124
  } = state;
9108
- setBounds$7($DragOverlay, x, y, width, height);
9125
+ setBounds$8($DragOverlay, x, y, width, height);
9109
9126
  if (!hasOverlay) {
9110
9127
  document.body.append($DragOverlay);
9111
9128
  }
@@ -9114,10 +9131,10 @@ const setDragOverlay = (state, visible, x, y, width, height) => {
9114
9131
  const ViewletMain = {
9115
9132
  __proto__: null,
9116
9133
  addEditor,
9117
- attachEvents: attachEvents$6,
9134
+ attachEvents: attachEvents$5,
9118
9135
  closeAllViewlets,
9119
9136
  closeViewletAndTab,
9120
- create: create$e,
9137
+ create: create$d,
9121
9138
  dispose: dispose$7,
9122
9139
  focus: focus$a,
9123
9140
  highlightDragOver,
@@ -9166,7 +9183,7 @@ const handleTabsContextMenu = event => {
9166
9183
  handleTabContextMenu(uid, clientX, clientY);
9167
9184
  };
9168
9185
 
9169
- const create$d = () => {
9186
+ const create$c = () => {
9170
9187
  const $MainTabs = document.createElement('div');
9171
9188
  $MainTabs.className = 'Viewlet MainTabs';
9172
9189
  $MainTabs.role = TabList;
@@ -9176,11 +9193,11 @@ const create$d = () => {
9176
9193
  $MainTabs
9177
9194
  };
9178
9195
  };
9179
- const attachEvents$5 = state => {
9196
+ const attachEvents$4 = state => {
9180
9197
  const {
9181
9198
  $MainTabs
9182
9199
  } = state;
9183
- attachEvents$d($MainTabs, {
9200
+ attachEvents$c($MainTabs, {
9184
9201
  [MouseDown]: handleTabsMouseDown,
9185
9202
  [ContextMenu]: handleTabsContextMenu,
9186
9203
  [DragStart]: handleDragStart
@@ -9202,13 +9219,13 @@ const setScrollLeft = (state, scrollLeft) => {
9202
9219
 
9203
9220
  const ViewletMainTabs = {
9204
9221
  __proto__: null,
9205
- attachEvents: attachEvents$5,
9206
- create: create$d,
9222
+ attachEvents: attachEvents$4,
9223
+ create: create$c,
9207
9224
  setScrollLeft,
9208
9225
  setTabsDom: setTabsDom$2
9209
9226
  };
9210
9227
 
9211
- const create$c = () => {
9228
+ const create$b = () => {
9212
9229
  const $ViewletOutputContent = document.createElement('div');
9213
9230
  $ViewletOutputContent.className = 'OutputContent';
9214
9231
  $ViewletOutputContent.role = Log;
@@ -9242,7 +9259,7 @@ const handleError = (state, error) => {
9242
9259
  };
9243
9260
  const focus$9 = state => {
9244
9261
  object(state);
9245
- focus$i(state.$ViewletOutputContent);
9262
+ focus$h(state.$ViewletOutputContent);
9246
9263
  send('Focus.setFocus', FocusOutput);
9247
9264
  };
9248
9265
 
@@ -9260,7 +9277,7 @@ const dispose$6 = state => {};
9260
9277
  const ViewletOutput = {
9261
9278
  __proto__: null,
9262
9279
  clear,
9263
- create: create$c,
9280
+ create: create$b,
9264
9281
  dispose: dispose$6,
9265
9282
  disposeFindWidget,
9266
9283
  focus: focus$9,
@@ -9313,7 +9330,7 @@ const UiStrings = {
9313
9330
  Close: 'Close',
9314
9331
  Maximize: 'Maximize'
9315
9332
  };
9316
- const create$b = () => {
9333
+ const create$a = () => {
9317
9334
  const $PanelTabs = document.createElement('div');
9318
9335
  $PanelTabs.className = 'PanelTabs';
9319
9336
  $PanelTabs.role = TabList;
@@ -9351,19 +9368,19 @@ const create$b = () => {
9351
9368
  };
9352
9369
  // await openViewlet('Terminal')
9353
9370
  };
9354
- const attachEvents$4 = state => {
9371
+ const attachEvents$3 = state => {
9355
9372
  const {
9356
9373
  $ButtonMaximize,
9357
9374
  $ButtonClose,
9358
9375
  $PanelHeader
9359
9376
  } = state;
9360
- attachEvents$d($PanelHeader, {
9377
+ attachEvents$c($PanelHeader, {
9361
9378
  [Click]: handleHeaderClick$2
9362
9379
  });
9363
- attachEvents$d($ButtonMaximize, {
9380
+ attachEvents$c($ButtonMaximize, {
9364
9381
  [Click]: handleClickMaximize
9365
9382
  });
9366
- attachEvents$d($ButtonClose, {
9383
+ attachEvents$c($ButtonClose, {
9367
9384
  [Click]: handleClickClose$1
9368
9385
  });
9369
9386
  };
@@ -9425,8 +9442,8 @@ const setActionsDom$1 = (state, actions, childUid) => {
9425
9442
 
9426
9443
  const ViewletPanel = {
9427
9444
  __proto__: null,
9428
- attachEvents: attachEvents$4,
9429
- create: create$b,
9445
+ attachEvents: attachEvents$3,
9446
+ create: create$a,
9430
9447
  dispose: dispose$5,
9431
9448
  focus: focus$8,
9432
9449
  setActionsDom: setActionsDom$1,
@@ -9641,8 +9658,8 @@ const focus$6 = state => {
9641
9658
  // - for windows narrator, ariaLabel works well
9642
9659
  // - for nvda ariaRoleDescription works better
9643
9660
 
9644
- const create$a = () => {
9645
- const $QuickPickInput = create$C();
9661
+ const create$9 = () => {
9662
+ const $QuickPickInput = create$A();
9646
9663
  $QuickPickInput.setAttribute(AriaControls, Ids.QuickPickItems); // TODO use idl once supported
9647
9664
  $QuickPickInput.role = ComboBox;
9648
9665
  $QuickPickInput.ariaLabel = 'Type the name of a command to run.';
@@ -9674,16 +9691,16 @@ const create$a = () => {
9674
9691
  $QuickPickStatus: undefined
9675
9692
  };
9676
9693
  };
9677
- const attachEvents$3 = state => {
9694
+ const attachEvents$2 = state => {
9678
9695
  const {
9679
9696
  $QuickPickItems,
9680
9697
  $QuickPickInput
9681
9698
  } = state;
9682
- attachEvents$d($QuickPickItems, {
9699
+ attachEvents$c($QuickPickItems, {
9683
9700
  [PointerDown]: handlePointerDown
9684
9701
  });
9685
9702
  $QuickPickItems.addEventListener(Wheel, handleWheel$3, Passive);
9686
- attachEvents$d($QuickPickInput, {
9703
+ attachEvents$c($QuickPickInput, {
9687
9704
  [Blur]: handleBlur$2,
9688
9705
  [BeforeInput]: handleBeforeInput
9689
9706
  });
@@ -9751,8 +9768,8 @@ const noop = state => {};
9751
9768
 
9752
9769
  const ViewletQuickPick = {
9753
9770
  __proto__: null,
9754
- attachEvents: attachEvents$3,
9755
- create: create$a,
9771
+ attachEvents: attachEvents$2,
9772
+ create: create$9,
9756
9773
  dispose: dispose$4,
9757
9774
  focus: focus$6,
9758
9775
  hideStatus,
@@ -9767,7 +9784,7 @@ const ViewletQuickPick = {
9767
9784
 
9768
9785
  const ViewletReferences = {
9769
9786
  __proto__: null,
9770
- Events: Events$6,
9787
+ Events: Events$7,
9771
9788
  focus: focus$b,
9772
9789
  handleError: handleError$1,
9773
9790
  setFocusedIndex: setFocusedIndex$3
@@ -9923,7 +9940,7 @@ const handleLoadedMetaData = event => {
9923
9940
  target.play();
9924
9941
  };
9925
9942
 
9926
- const create$9 = () => {
9943
+ const create$8 = () => {
9927
9944
  const $Viewlet = document.createElement('div');
9928
9945
  $Viewlet.className = 'Viewlet ScreenCapture';
9929
9946
  return {
@@ -9943,7 +9960,7 @@ const setScreenCapture = (state, id) => {
9943
9960
 
9944
9961
  const ViewletScreenCapture = {
9945
9962
  __proto__: null,
9946
- create: create$9,
9963
+ create: create$8,
9947
9964
  setScreenCapture
9948
9965
  };
9949
9966
 
@@ -10107,11 +10124,11 @@ const setFocus = (state, selector) => {
10107
10124
  }
10108
10125
  };
10109
10126
  const dispose$3 = () => {};
10110
- const Events$4 = ViewletSearchEvents;
10127
+ const Events$5 = ViewletSearchEvents;
10111
10128
 
10112
10129
  const ViewletSearch = {
10113
10130
  __proto__: null,
10114
- Events: Events$4,
10131
+ Events: Events$5,
10115
10132
  dispose: dispose$3,
10116
10133
  focus: focus$5,
10117
10134
  setFocus,
@@ -10133,7 +10150,7 @@ const handleHeaderClick = event => {
10133
10150
  }
10134
10151
  };
10135
10152
 
10136
- const create$8 = () => {
10153
+ const create$7 = () => {
10137
10154
  const $SideBarTitleAreaTitle = document.createElement('h2');
10138
10155
  $SideBarTitleAreaTitle.className = 'SideBarTitleAreaTitle';
10139
10156
  const $SideBarTitleArea = document.createElement('div');
@@ -10154,11 +10171,11 @@ const create$8 = () => {
10154
10171
  $Actions: undefined
10155
10172
  };
10156
10173
  };
10157
- const attachEvents$2 = state => {
10174
+ const attachEvents$1 = state => {
10158
10175
  const {
10159
10176
  $SideBarTitleArea
10160
10177
  } = state;
10161
- attachEvents$d($SideBarTitleArea, {
10178
+ attachEvents$c($SideBarTitleArea, {
10162
10179
  [Click]: handleHeaderClick
10163
10180
  });
10164
10181
  };
@@ -10196,8 +10213,8 @@ const focus$4 = async () => {
10196
10213
 
10197
10214
  const ViewletSideBar = {
10198
10215
  __proto__: null,
10199
- attachEvents: attachEvents$2,
10200
- create: create$8,
10216
+ attachEvents: attachEvents$1,
10217
+ create: create$7,
10201
10218
  dispose: dispose$2,
10202
10219
  focus: focus$4,
10203
10220
  setActionsDom,
@@ -10398,7 +10415,7 @@ const ViewletStatusBarEvents = {
10398
10415
  handleClick: handleClick$2
10399
10416
  };
10400
10417
 
10401
- const create$7 = () => {
10418
+ const create$6 = () => {
10402
10419
  const $Viewlet = document.createElement('div');
10403
10420
  $Viewlet.id = 'StatusBar';
10404
10421
  $Viewlet.className = 'Viewlet StatusBar';
@@ -10411,7 +10428,7 @@ const create$7 = () => {
10411
10428
  $Viewlet
10412
10429
  };
10413
10430
  };
10414
- const setDom$2 = (state, dom) => {
10431
+ const setDom$1 = (state, dom) => {
10415
10432
  const {
10416
10433
  $Viewlet
10417
10434
  } = state;
@@ -10427,9 +10444,9 @@ const focus$2 = state => {
10427
10444
 
10428
10445
  const ViewletStatusBar = {
10429
10446
  __proto__: null,
10430
- create: create$7,
10447
+ create: create$6,
10431
10448
  focus: focus$2,
10432
- setDom: setDom$2
10449
+ setDom: setDom$1
10433
10450
  };
10434
10451
 
10435
10452
  const handleClick$1 = event => {
@@ -10437,31 +10454,16 @@ const handleClick$1 = event => {
10437
10454
  handleClick$9(uid);
10438
10455
  };
10439
10456
 
10440
- const create$6 = () => {
10441
- const $Viewlet = document.createElement('div');
10442
- $Viewlet.className = 'Viewlet Storage';
10443
- return {
10444
- $Viewlet
10445
- };
10446
- };
10447
- const attachEvents$1 = state => {
10448
- const {
10449
- $Viewlet
10450
- } = state;
10451
- $Viewlet.onclick = handleClick$1;
10452
- };
10453
- const setDom$1 = (state, dom) => {
10454
- const {
10455
- $Viewlet
10456
- } = state;
10457
- renderInto($Viewlet, dom);
10457
+ const ViewletStorageEvents = {
10458
+ __proto__: null,
10459
+ handleClick: handleClick$1
10458
10460
  };
10459
10461
 
10462
+ const Events$4 = ViewletStorageEvents;
10463
+
10460
10464
  const ViewletStorage = {
10461
10465
  __proto__: null,
10462
- attachEvents: attachEvents$1,
10463
- create: create$6,
10464
- setDom: setDom$1
10466
+ Events: Events$4
10465
10467
  };
10466
10468
 
10467
10469
  const isUint8Array = value => {
@@ -10731,7 +10733,7 @@ const attachEvents = state => {
10731
10733
  const {
10732
10734
  $Viewlet
10733
10735
  } = state;
10734
- attachEvents$d($Viewlet, {
10736
+ attachEvents$c($Viewlet, {
10735
10737
  [ContextMenu]: handleContextMenu$4
10736
10738
  });
10737
10739
  };
@@ -11063,7 +11065,7 @@ const setMenus = (state, changes, uid) => {
11063
11065
  level,
11064
11066
  focusedIndex
11065
11067
  } = menu;
11066
- setBounds$7($Menu, x, y, width, height);
11068
+ setBounds$8($Menu, x, y, width, height);
11067
11069
  renderInto($Menu, dom);
11068
11070
  $Menu.id = `Menu-${level}`;
11069
11071
  append$1($Menu);
@@ -11089,7 +11091,7 @@ const setMenus = (state, changes, uid) => {
11089
11091
  focusedIndex
11090
11092
  } = menu;
11091
11093
  const $Menu = $$Menus[level];
11092
- setBounds$7($Menu, x, y, width, height);
11094
+ setBounds$8($Menu, x, y, width, height);
11093
11095
  renderInto($Menu, dom);
11094
11096
  if (level === newLength - 1) {
11095
11097
  if (focusedIndex === -1) {
@@ -11385,7 +11387,7 @@ const handleContextMenu$1 = event => {
11385
11387
  } = event;
11386
11388
  return ['handleContextMenu', button, clientX, clientY];
11387
11389
  };
11388
- const handleSashCornerPointerDown = create$L(event => {
11390
+ const handleSashCornerPointerDown = create$K(event => {
11389
11391
  const {
11390
11392
  clientX,
11391
11393
  clientY
@@ -11538,7 +11540,7 @@ const setPort = (state, portId, origin) => {
11538
11540
  };
11539
11541
  const setPosition = (state, id, x, y, width, height) => {
11540
11542
  const $Iframe = get(id);
11541
- setBounds$7($Iframe, x, y, width, height);
11543
+ setBounds$8($Iframe, x, y, width, height);
11542
11544
  };
11543
11545
 
11544
11546
  const ViewletWebView = {