@lvce-editor/renderer-process 10.5.0 → 10.6.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,
@@ -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
@@ -2355,13 +2355,13 @@ const setBounds$6 = (state, x, y, width, height) => {
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
2362
  setBounds: setBounds$6,
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;
@@ -2418,12 +2418,130 @@ const setBounds$5 = (state, x, y, width, height) => {
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
2425
  setBounds: setBounds$5,
2426
- setDom: setDom$a
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
+
2538
+ const ViewletFindWidget = {
2539
+ __proto__: null,
2540
+ appendWidget,
2541
+ create: create$H,
2542
+ focus: focus$i,
2543
+ setDom: setDom$8,
2544
+ setValue: setValue$4
2427
2545
  };
2428
2546
 
2429
2547
  const ActivityBar = 'ActivityBar';
@@ -2828,6 +2946,7 @@ const main = async () => {
2828
2946
  state$6.modules[EditorCompletion] = ViewletEditorCompletion;
2829
2947
  state$6.modules[EditorCompletionDetails] = ViewletEditorCompletionDetails;
2830
2948
  state$6.modules[ColorPicker] = ViewletColorPicker;
2949
+ state$6.modules[FindWidget] = ViewletFindWidget;
2831
2950
  setLoad(load$2);
2832
2951
  // TODO this is discovered very late
2833
2952
  await launchWorkers();
@@ -2921,7 +3040,7 @@ ${relevant}`;
2921
3040
 
2922
3041
  const Module = 'module';
2923
3042
 
2924
- const create$I = async ({
3043
+ const create$G = async ({
2925
3044
  url,
2926
3045
  name
2927
3046
  }) => {
@@ -2987,7 +3106,7 @@ const wrap = worker => {
2987
3106
 
2988
3107
  const IpcParentWithModuleWorker = {
2989
3108
  __proto__: null,
2990
- create: create$I,
3109
+ create: create$G,
2991
3110
  wrap
2992
3111
  };
2993
3112
 
@@ -2995,7 +3114,7 @@ const isMessagePort$1 = value => {
2995
3114
  return value instanceof MessagePort;
2996
3115
  };
2997
3116
 
2998
- const create$H = async ({
3117
+ const create$F = async ({
2999
3118
  url
3000
3119
  }) => {
3001
3120
  string(url);
@@ -3016,10 +3135,10 @@ const create$H = async ({
3016
3135
 
3017
3136
  const IpcParentWithMessagePort = {
3018
3137
  __proto__: null,
3019
- create: create$H
3138
+ create: create$F
3020
3139
  };
3021
3140
 
3022
- const create$G = async url => {
3141
+ const create$E = async url => {
3023
3142
  const referencePort = await new Promise(resolve => {
3024
3143
  globalThis.acceptReferencePort = resolve;
3025
3144
  import(url);
@@ -3030,7 +3149,7 @@ const create$G = async url => {
3030
3149
 
3031
3150
  const IpcParentWithReferencePort = {
3032
3151
  __proto__: null,
3033
- create: create$G
3152
+ create: create$E
3034
3153
  };
3035
3154
 
3036
3155
  const isWorker = value => {
@@ -3038,12 +3157,12 @@ const isWorker = value => {
3038
3157
  };
3039
3158
 
3040
3159
  // TODO add test
3041
- const create$F = async ({
3160
+ const create$D = async ({
3042
3161
  url,
3043
3162
  name,
3044
3163
  port
3045
3164
  }) => {
3046
- const worker = await create$I({
3165
+ const worker = await create$G({
3047
3166
  url,
3048
3167
  name
3049
3168
  });
@@ -3062,7 +3181,7 @@ const create$F = async ({
3062
3181
 
3063
3182
  const IpcParentWithModuleWorkerWithMessagePort = {
3064
3183
  __proto__: null,
3065
- create: create$F
3184
+ create: create$D
3066
3185
  };
3067
3186
 
3068
3187
  const handleIpcOnce = ipc => {
@@ -3129,7 +3248,7 @@ const getTransferrables = value => {
3129
3248
  walkValue(value, transferrables, isTransferrable);
3130
3249
  return transferrables;
3131
3250
  };
3132
- const attachEvents$a = that => {
3251
+ const attachEvents$9 = that => {
3133
3252
  const handleMessage = (...args) => {
3134
3253
  const data = that.getData(...args);
3135
3254
  that.dispatchEvent(new MessageEvent('message', {
@@ -3146,7 +3265,7 @@ class Ipc extends EventTarget {
3146
3265
  constructor(rawIpc) {
3147
3266
  super();
3148
3267
  this._rawIpc = rawIpc;
3149
- attachEvents$a(this);
3268
+ attachEvents$9(this);
3150
3269
  }
3151
3270
  }
3152
3271
  const readyMessage = 'ready';
@@ -3593,7 +3712,7 @@ const IpcChildWithMessagePort$1 = {
3593
3712
  };
3594
3713
 
3595
3714
  // TODO use handleIncomingIpc function
3596
- const create$E = async ({
3715
+ const create$C = async ({
3597
3716
  port,
3598
3717
  ipcId
3599
3718
  }) => {
@@ -3609,7 +3728,7 @@ const create$E = async ({
3609
3728
 
3610
3729
  const IpcParentWithElectron = {
3611
3730
  __proto__: null,
3612
- create: create$E
3731
+ create: create$C
3613
3732
  };
3614
3733
 
3615
3734
  const play = async src => {
@@ -3840,7 +3959,7 @@ const AriaAlert = {
3840
3959
  // but that's difficult to know
3841
3960
 
3842
3961
  // TODO hide widget after timeout or mousemove
3843
- const create$D = (message, x, y) => {
3962
+ const create$B = (message, x, y) => {
3844
3963
  const $EditorError = document.createElement('div');
3845
3964
  $EditorError.className = 'EditorWidgetError';
3846
3965
  $EditorError.textContent = message;
@@ -3855,7 +3974,7 @@ const create$D = (message, x, y) => {
3855
3974
 
3856
3975
  const name$t = 'EditorError';
3857
3976
  const Commands$u = {
3858
- create: create$D
3977
+ create: create$B
3859
3978
  };
3860
3979
 
3861
3980
  const EditorError_ipc = {
@@ -3878,7 +3997,7 @@ const getElement = () => {
3878
3997
  return state$3.$PreviousFocusElement;
3879
3998
  };
3880
3999
 
3881
- const focus$i = $Element => {
4000
+ const focus$h = $Element => {
3882
4001
  if ($Element === document.activeElement) {
3883
4002
  return;
3884
4003
  }
@@ -3895,7 +4014,7 @@ const focusPrevious = () => {
3895
4014
  }
3896
4015
  };
3897
4016
 
3898
- const create$C = () => {
4017
+ const create$A = () => {
3899
4018
  const $InputBox = document.createElement('input');
3900
4019
  $InputBox.className = 'InputBox';
3901
4020
  $InputBox.spellcheck = false;
@@ -3919,8 +4038,8 @@ const FocusOutput = 28;
3919
4038
  const handleBlur$9 = () => {
3920
4039
  send(/* EditorRename.abort */'EditorRename.abort');
3921
4040
  };
3922
- const create$B = (x, y) => {
3923
- const $RenameWidgetInputBox = create$C();
4041
+ const create$z = (x, y) => {
4042
+ const $RenameWidgetInputBox = create$A();
3924
4043
  $RenameWidgetInputBox.className = 'RenameWidgetInputBox';
3925
4044
  $RenameWidgetInputBox.onblur = handleBlur$9;
3926
4045
  const $RenameWidget = document.createElement('div');
@@ -3928,7 +4047,7 @@ const create$B = (x, y) => {
3928
4047
  $RenameWidget.append($RenameWidgetInputBox);
3929
4048
  setXAndY($RenameWidget, x, y);
3930
4049
  append$1($RenameWidget);
3931
- focus$i($RenameWidgetInputBox);
4050
+ focus$h($RenameWidgetInputBox);
3932
4051
  send('Focus.setFocus', FocusEditorRename);
3933
4052
  return {
3934
4053
  $RenameWidget,
@@ -3951,7 +4070,7 @@ const finish = state => {
3951
4070
 
3952
4071
  const name$s = 'EditorRename';
3953
4072
  const Commands$t = {
3954
- create: create$B,
4073
+ create: create$z,
3955
4074
  dispose: dispose$i,
3956
4075
  finish: finish
3957
4076
  };
@@ -4037,7 +4156,7 @@ const showError = (message, y, x) => {
4037
4156
  $ImagePreviewImage
4038
4157
  };
4039
4158
  };
4040
- const create$A = (uri, top, left) => {
4159
+ const create$y = (uri, top, left) => {
4041
4160
  const $ImagePreviewImage = document.createElement('img');
4042
4161
  $ImagePreviewImage.className = 'ImagePreviewImage';
4043
4162
  $ImagePreviewImage.src = uri;
@@ -4068,7 +4187,7 @@ const dispose$h = state => {
4068
4187
 
4069
4188
  const ImagePreview = {
4070
4189
  __proto__: null,
4071
- create: create$A,
4190
+ create: create$y,
4072
4191
  dispose: dispose$h,
4073
4192
  showError,
4074
4193
  update
@@ -4076,7 +4195,7 @@ const ImagePreview = {
4076
4195
 
4077
4196
  const name$p = 'ImagePreview';
4078
4197
  const Commands$q = {
4079
- create: create$A,
4198
+ create: create$y,
4080
4199
  dispose: dispose$h,
4081
4200
  showError: showError,
4082
4201
  update: update
@@ -4154,7 +4273,7 @@ const InitData_ipc = {
4154
4273
 
4155
4274
  const name$n = 'IpcParent';
4156
4275
  const Commands$o = {
4157
- create: create$M
4276
+ create: create$L
4158
4277
  };
4159
4278
 
4160
4279
  const IpcParent_ipc = {
@@ -4274,7 +4393,7 @@ const create$Notification = message => {
4274
4393
  $Notification.textContent = message;
4275
4394
  return $Notification;
4276
4395
  };
4277
- const create$z = (type, message) => {
4396
+ const create$x = (type, message) => {
4278
4397
  // TODO this pattern might be also useful for activitybar, sidebar etc., creating elements as late as possible, only when actually needed
4279
4398
  const $Notification = create$Notification(message);
4280
4399
  append$1($Notification);
@@ -4327,7 +4446,7 @@ const name$h = 'Notification';
4327
4446
 
4328
4447
  // prettier-ignore
4329
4448
  const Commands$i = {
4330
- create: create$z,
4449
+ create: create$x,
4331
4450
  createWithOptions: createWithOptions,
4332
4451
  dispose: dispose$g
4333
4452
  };
@@ -4351,7 +4470,7 @@ const set$3 = (canvasId, canvas) => {
4351
4470
  const get$3 = id => {
4352
4471
  return get$4(id);
4353
4472
  };
4354
- const create$y = async (canvasId, objectId) => {
4473
+ const create$w = async (canvasId, objectId) => {
4355
4474
  const canvas = document.createElement('canvas');
4356
4475
  const offscreenCanvas = canvas.transferControlToOffscreen();
4357
4476
  set$3(canvasId, canvas);
@@ -4362,7 +4481,7 @@ const name$g = 'OffscreenCanvas';
4362
4481
 
4363
4482
  // prettier-ignore
4364
4483
  const Commands$h = {
4365
- create: create$y
4484
+ create: create$w
4366
4485
  };
4367
4486
 
4368
4487
  const OffscreenCanvas_ipc = {
@@ -4583,7 +4702,7 @@ const showMenu = (x, y, width, height, items, level, parentIndex = -1, dom, mous
4583
4702
  state$1.$$Menus.push($Menu);
4584
4703
  append$1($Menu);
4585
4704
  if (level === 0) {
4586
- focus$i($Menu);
4705
+ focus$h($Menu);
4587
4706
  send('Focus.setFocus', FocusMenu);
4588
4707
  }
4589
4708
  };
@@ -5409,8 +5528,6 @@ const setIdentifiers = identifiers => {
5409
5528
  setIdentifiers$1(identifiers);
5410
5529
  };
5411
5530
 
5412
- const rememberFocus = rememberFocus$1;
5413
-
5414
5531
  const load$1 = moduleId => {
5415
5532
  switch (moduleId) {
5416
5533
  case ImagePreview$1:
@@ -5532,7 +5649,7 @@ const load$1 = moduleId => {
5532
5649
  }
5533
5650
  };
5534
5651
 
5535
- const create$x = (id, uid = id) => {
5652
+ const create$v = (id, uid = id) => {
5536
5653
  const module = state$6.modules[id];
5537
5654
  if (!module) {
5538
5655
  throw new Error(`module not found: ${id}`);
@@ -5597,7 +5714,7 @@ const invoke = (viewletId, method, ...args) => {
5597
5714
  }
5598
5715
  return instance.factory[method](instance.state, ...args);
5599
5716
  };
5600
- const focus$h = viewletId => {
5717
+ const focus$g = viewletId => {
5601
5718
  const instance = state$6.instances[viewletId];
5602
5719
  if (instance.factory?.setFocused) {
5603
5720
  instance.factory.setFocused(instance.state, true);
@@ -5652,7 +5769,7 @@ const createPlaceholder = (viewletId, parentId, top, left, width, height) => {
5652
5769
  }
5653
5770
  };
5654
5771
  };
5655
- const setDom$9 = (viewletId, dom) => {
5772
+ const setDom$7 = (viewletId, dom) => {
5656
5773
  const instance = state$6.instances[viewletId];
5657
5774
  if (!instance) {
5658
5775
  return;
@@ -5699,7 +5816,7 @@ const sendMultiple = commands => {
5699
5816
  }
5700
5817
  case 'Viewlet.create':
5701
5818
  {
5702
- create$x(viewletId, method);
5819
+ create$v(viewletId, method);
5703
5820
  break;
5704
5821
  }
5705
5822
  case 'Viewlet.createFunctionalRoot':
@@ -5733,7 +5850,7 @@ const sendMultiple = commands => {
5733
5850
  }
5734
5851
  case 'Viewlet.focus':
5735
5852
  {
5736
- focus$h(viewletId);
5853
+ focus$g(viewletId);
5737
5854
  break;
5738
5855
  }
5739
5856
  case 'Viewlet.appendViewlet':
@@ -5753,7 +5870,7 @@ const sendMultiple = commands => {
5753
5870
  break;
5754
5871
  case 'Viewlet.setDom':
5755
5872
  // @ts-expect-error
5756
- setDom$9(viewletId, method, ...args);
5873
+ setDom$7(viewletId, method, ...args);
5757
5874
  break;
5758
5875
  case 'Viewlet.setDom2':
5759
5876
  // @ts-ignore
@@ -5894,7 +6011,7 @@ const appendToBody = childId => {
5894
6011
  const getFn = command => {
5895
6012
  switch (command) {
5896
6013
  case 'Viewlet.create':
5897
- return create$x;
6014
+ return create$v;
5898
6015
  case 'Viewlet.send':
5899
6016
  return invoke;
5900
6017
  case 'Viewlet.show':
@@ -5914,13 +6031,13 @@ const getFn = command => {
5914
6031
  case 'Viewlet.createPlaceholder':
5915
6032
  return createPlaceholder;
5916
6033
  case 'Viewlet.focus':
5917
- return focus$h;
6034
+ return focus$g;
5918
6035
  case 'Viewlet.appendViewlet':
5919
6036
  return appendViewlet;
5920
6037
  case 'Viewlet.addKeyBindings':
5921
6038
  return addKeyBindings;
5922
6039
  case 'Viewlet.setDom':
5923
- return setDom$9;
6040
+ return setDom$7;
5924
6041
  case 'Viewlet.createFunctionalRoot':
5925
6042
  return createFunctionalRoot;
5926
6043
  default:
@@ -5959,7 +6076,7 @@ const Commands$9 = {
5959
6076
  appendViewlet: appendViewlet,
5960
6077
  dispose: dispose$e,
5961
6078
  executeCommands: executeCommands,
5962
- focus: focus$h,
6079
+ focus: focus$g,
5963
6080
  focusSelector: focusSelector,
5964
6081
  handleError: handleError$6,
5965
6082
  invoke: invoke,
@@ -6240,7 +6357,7 @@ const waitForFrameToLoad = $Frame => {
6240
6357
  };
6241
6358
 
6242
6359
  // TODO could use browser view when running in electron
6243
- const create$w = async (uid, src, sandbox, csp, credentialless) => {
6360
+ const create$u = async (uid, src, sandbox, csp, credentialless) => {
6244
6361
  const $Iframe = document.createElement('iframe');
6245
6362
  setIframeCredentialless($Iframe, credentialless);
6246
6363
  setIframeCsp($Iframe, csp);
@@ -6282,7 +6399,7 @@ const dispose$d = uid => {
6282
6399
 
6283
6400
  const name = 'WebView';
6284
6401
  const Commands$1 = {
6285
- create: create$w,
6402
+ create: create$u,
6286
6403
  load: load,
6287
6404
  setPort: setPort$2,
6288
6405
  dispose: dispose$d
@@ -6330,7 +6447,7 @@ const handleMouseDown$2 = event => {
6330
6447
  const handleBlur$8 = () => {
6331
6448
  return ['handleBlur'];
6332
6449
  };
6333
- const handleFocus$b = () => {
6450
+ const handleFocus$a = () => {
6334
6451
  return ['handleFocus'];
6335
6452
  };
6336
6453
 
@@ -6351,16 +6468,16 @@ const ViewletActivityBarEvents = {
6351
6468
  __proto__: null,
6352
6469
  handleBlur: handleBlur$8,
6353
6470
  handleContextMenu: handleContextMenu$b,
6354
- handleFocus: handleFocus$b,
6471
+ handleFocus: handleFocus$a,
6355
6472
  handleMouseDown: handleMouseDown$2,
6356
6473
  returnValue: returnValue$8
6357
6474
  };
6358
6475
 
6359
- const Events$a = ViewletActivityBarEvents;
6476
+ const Events$b = ViewletActivityBarEvents;
6360
6477
 
6361
6478
  const ViewletActivityBar = {
6362
6479
  __proto__: null,
6363
- Events: Events$a
6480
+ Events: Events$b
6364
6481
  };
6365
6482
 
6366
6483
  const handleAudioError = event => {
@@ -6383,21 +6500,21 @@ const ViewletAudioEvents = {
6383
6500
  handleAudioError
6384
6501
  };
6385
6502
 
6386
- const Events$9 = ViewletAudioEvents;
6503
+ const Events$a = ViewletAudioEvents;
6387
6504
 
6388
6505
  const ViewletAudio = {
6389
6506
  __proto__: null,
6390
- Events: Events$9
6507
+ Events: Events$a
6391
6508
  };
6392
6509
 
6393
- const create$v = () => {
6510
+ const create$t = () => {
6394
6511
  const $Viewlet = document.createElement('div');
6395
6512
  $Viewlet.className = 'Viewlet BrowserViewOverview';
6396
6513
  return {
6397
6514
  $Viewlet
6398
6515
  };
6399
6516
  };
6400
- const setDom$8 = (state, dom) => {
6517
+ const setDom$6 = (state, dom) => {
6401
6518
  const {
6402
6519
  $Viewlet
6403
6520
  } = state;
@@ -6406,11 +6523,11 @@ const setDom$8 = (state, dom) => {
6406
6523
 
6407
6524
  const ViewletBrowserViewOverview = {
6408
6525
  __proto__: null,
6409
- create: create$v,
6410
- setDom: setDom$8
6526
+ create: create$t,
6527
+ setDom: setDom$6
6411
6528
  };
6412
6529
 
6413
- const create$u = () => {
6530
+ const create$s = () => {
6414
6531
  const $Viewlet = document.createElement('div');
6415
6532
  $Viewlet.className = 'Viewlet Clock';
6416
6533
  return {
@@ -6427,13 +6544,13 @@ const setTime = (state, time) => {
6427
6544
 
6428
6545
  const ViewletClock = {
6429
6546
  __proto__: null,
6430
- create: create$u,
6547
+ create: create$s,
6431
6548
  dispose: dispose$c,
6432
6549
  refresh: refresh$3,
6433
6550
  setTime
6434
6551
  };
6435
6552
 
6436
- const handleInput$7 = event => {
6553
+ const handleInput$6 = event => {
6437
6554
  const uid = fromEvent(event);
6438
6555
  const {
6439
6556
  target
@@ -6443,25 +6560,25 @@ const handleInput$7 = event => {
6443
6560
  } = target;
6444
6561
  handleInput$8(uid, value);
6445
6562
  };
6446
- const handleFocus$a = event => {
6563
+ const handleFocus$9 = event => {
6447
6564
  const uid = fromEvent(event);
6448
6565
  handleFocus$c(uid);
6449
6566
  };
6450
6567
 
6451
6568
  const ViewletDebugConsoleEvents = {
6452
6569
  __proto__: null,
6453
- handleFocus: handleFocus$a,
6454
- handleInput: handleInput$7
6570
+ handleFocus: handleFocus$9,
6571
+ handleInput: handleInput$6
6455
6572
  };
6456
6573
 
6457
- const create$t = () => {
6574
+ const create$r = () => {
6458
6575
  const $Viewlet = document.createElement('div');
6459
6576
  $Viewlet.className = 'Viewlet DebugConsole';
6460
6577
  return {
6461
6578
  $Viewlet
6462
6579
  };
6463
6580
  };
6464
- const setDom$7 = (state, dom) => {
6581
+ const setDom$5 = (state, dom) => {
6465
6582
  const {
6466
6583
  $Viewlet
6467
6584
  } = state;
@@ -6470,8 +6587,8 @@ const setDom$7 = (state, dom) => {
6470
6587
 
6471
6588
  const ViewletDebugConsole = {
6472
6589
  __proto__: null,
6473
- create: create$t,
6474
- setDom: setDom$7
6590
+ create: create$r,
6591
+ setDom: setDom$5
6475
6592
  };
6476
6593
 
6477
6594
  const handleKeyDown$3 = event => {
@@ -6498,7 +6615,7 @@ const ViewletDefineKeyBindingEvents = {
6498
6615
  handleKeyDown: handleKeyDown$3
6499
6616
  };
6500
6617
 
6501
- const setValue$4 = (state, value) => {
6618
+ const setValue$3 = (state, value) => {
6502
6619
  object(state);
6503
6620
  string(value);
6504
6621
  const {
@@ -6507,7 +6624,7 @@ const setValue$4 = (state, value) => {
6507
6624
  const $Input = $Viewlet.querySelector('input');
6508
6625
  $Input.value = value;
6509
6626
  };
6510
- const focus$g = state => {
6627
+ const focus$f = state => {
6511
6628
  const {
6512
6629
  $Viewlet
6513
6630
  } = state;
@@ -6518,8 +6635,8 @@ const focus$g = state => {
6518
6635
  const ViewletDefineKeyBinding = {
6519
6636
  __proto__: null,
6520
6637
  Events: ViewletDefineKeyBindingEvents,
6521
- focus: focus$g,
6522
- setValue: setValue$4
6638
+ focus: focus$f,
6639
+ setValue: setValue$3
6523
6640
  };
6524
6641
 
6525
6642
  const setMaskImage = ($Element, icon) => {
@@ -6531,7 +6648,7 @@ const setMaskImage = ($Element, icon) => {
6531
6648
  }
6532
6649
  };
6533
6650
 
6534
- const create$s = icon => {
6651
+ const create$q = icon => {
6535
6652
  const $Icon = document.createElement('div');
6536
6653
  $Icon.className = 'MaskIcon';
6537
6654
  setMaskImage($Icon, icon);
@@ -6541,7 +6658,7 @@ const create$s = icon => {
6541
6658
 
6542
6659
  const create$Button = (label, icon) => {
6543
6660
  // TODO icon div might not be needed (unnecessary html element)
6544
- const $Icon = create$s(icon);
6661
+ const $Icon = create$q(icon);
6545
6662
  const $Button = document.createElement('button');
6546
6663
  $Button.className = 'IconButton';
6547
6664
  $Button.title = label;
@@ -6550,19 +6667,19 @@ const create$Button = (label, icon) => {
6550
6667
  return $Button;
6551
6668
  };
6552
6669
 
6553
- const handleClick$8 = index => {
6670
+ const handleClick$7 = index => {
6554
6671
  send(/* Dialog.handleClick */'Dialog.handleClick', /* index */index);
6555
6672
  };
6556
6673
 
6557
- const handleClick$7 = event => {
6674
+ const handleClick$6 = event => {
6558
6675
  const {
6559
6676
  target
6560
6677
  } = event;
6561
6678
  const index = getNodeIndex(target);
6562
- handleClick$8(index);
6679
+ handleClick$7(index);
6563
6680
  };
6564
6681
 
6565
- const create$r = () => {
6682
+ const create$p = () => {
6566
6683
  const $DialogTitle = document.createElement('h2');
6567
6684
  $DialogTitle.id = 'DialogTitle';
6568
6685
  const $DialogCloseButton = create$Button('Close', 'Close');
@@ -6589,7 +6706,7 @@ const create$r = () => {
6589
6706
  $Dialog.setAttribute(AriaLabelledBy, 'DialogTitle');
6590
6707
  $Dialog.setAttribute(AriaDescribedBy, 'DialogBodyErrorMessage');
6591
6708
  $Dialog.append($DialogHeader, $DialogBody);
6592
- $Dialog.onclick = handleClick$7;
6709
+ $Dialog.onclick = handleClick$6;
6593
6710
  return {
6594
6711
  $Viewlet: $Dialog,
6595
6712
  $DialogTitle,
@@ -6643,7 +6760,7 @@ const setErrorStack = (state, errorStack) => {
6643
6760
 
6644
6761
  const ViewletDialog = {
6645
6762
  __proto__: null,
6646
- create: create$r,
6763
+ create: create$p,
6647
6764
  postAppend,
6648
6765
  setButtons,
6649
6766
  setCodeFrame,
@@ -6681,14 +6798,14 @@ const ViewletDiffEditor = {
6681
6798
 
6682
6799
  // TODO aria alert
6683
6800
 
6684
- const create$q = () => {
6801
+ const create$o = () => {
6685
6802
  const $Viewlet = document.createElement('div');
6686
6803
  $Viewlet.className = 'Viewlet EditorError';
6687
6804
  return {
6688
6805
  $Viewlet
6689
6806
  };
6690
6807
  };
6691
- const setDom$6 = (state, dom) => {
6808
+ const setDom$4 = (state, dom) => {
6692
6809
  const {
6693
6810
  $Viewlet
6694
6811
  } = state;
@@ -6703,13 +6820,13 @@ const setBounds$3 = (state, x, y, width, height) => {
6703
6820
 
6704
6821
  const ViewletEditorError = {
6705
6822
  __proto__: null,
6706
- create: create$q,
6823
+ create: create$o,
6707
6824
  setBounds: setBounds$3,
6708
- setDom: setDom$6
6825
+ setDom: setDom$4
6709
6826
  };
6710
6827
 
6711
6828
  const returnValue$7 = true;
6712
- const handleSashPointerDown$2 = create$L(event => {
6829
+ const handleSashPointerDown$2 = create$K(event => {
6713
6830
  const {
6714
6831
  clientX,
6715
6832
  clientY
@@ -6843,27 +6960,27 @@ const handleError$5 = event => {
6843
6960
  const uid = fromEvent(event);
6844
6961
  handleImageError$1(uid);
6845
6962
  };
6846
- const handleFocus$9 = event => {
6963
+ const handleFocus$8 = event => {
6847
6964
  const uid = fromEvent(event);
6848
6965
  handleFocus$c(uid);
6849
6966
  };
6850
6967
 
6851
- const create$p = () => {
6968
+ const create$n = () => {
6852
6969
  const $Viewlet = document.createElement('div');
6853
6970
  $Viewlet.className = 'Viewlet EditorImage';
6854
6971
  return {
6855
6972
  $Viewlet
6856
6973
  };
6857
6974
  };
6858
- const attachEvents$9 = state => {
6975
+ const attachEvents$8 = state => {
6859
6976
  const {
6860
6977
  $Viewlet
6861
6978
  } = state;
6862
- attachEvents$d($Viewlet, {
6979
+ attachEvents$c($Viewlet, {
6863
6980
  [PointerDown]: handlePointerDown$5,
6864
6981
  [PointerUp]: handlePointerUp,
6865
6982
  [ContextMenu]: handleContextMenu$a,
6866
- [FocusIn]: handleFocus$9
6983
+ [FocusIn]: handleFocus$8
6867
6984
  });
6868
6985
  $Viewlet.addEventListener(Error$3, handleError$5, Capture);
6869
6986
  $Viewlet.addEventListener(Wheel, handleWheel$2, Passive);
@@ -6881,7 +6998,7 @@ const setDragging = (state, isDragging) => {
6881
6998
  } = state;
6882
6999
  $Viewlet.classList.toggle('Dragging', isDragging);
6883
7000
  };
6884
- const setDom$5 = (state, dom) => {
7001
+ const setDom$3 = (state, dom) => {
6885
7002
  const {
6886
7003
  $Viewlet
6887
7004
  } = state;
@@ -6890,14 +7007,14 @@ const setDom$5 = (state, dom) => {
6890
7007
 
6891
7008
  const ViewletEditorImage = {
6892
7009
  __proto__: null,
6893
- attachEvents: attachEvents$9,
6894
- create: create$p,
6895
- setDom: setDom$5,
7010
+ attachEvents: attachEvents$8,
7011
+ create: create$n,
7012
+ setDom: setDom$3,
6896
7013
  setDragging,
6897
7014
  setTransform
6898
7015
  };
6899
7016
 
6900
- const create$o = () => {
7017
+ const create$m = () => {
6901
7018
  const $Viewlet = document.createElement('div');
6902
7019
  $Viewlet.className = 'Viewlet EditorText';
6903
7020
  $Viewlet.textContent = 'loading...';
@@ -6914,7 +7031,7 @@ const refresh$2 = (state, context) => {
6914
7031
 
6915
7032
  const ViewletEditorPlainText = {
6916
7033
  __proto__: null,
6917
- create: create$o,
7034
+ create: create$m,
6918
7035
  dispose: dispose$b,
6919
7036
  refresh: refresh$2
6920
7037
  };
@@ -7033,7 +7150,7 @@ const toSimpleTouchEvent = event => {
7033
7150
 
7034
7151
  // TODO tree shake out mobile support when targeting electron -> less code -> less event listeners -> less memory -> less cpu
7035
7152
 
7036
- const handleFocus$8 = event => {
7153
+ const handleFocus$7 = event => {
7037
7154
  return ['handleFocus'];
7038
7155
  };
7039
7156
  const handleMouseMove = event => {
@@ -7173,7 +7290,7 @@ const handlePaste = event => {
7173
7290
  const text = getText(clipboardData);
7174
7291
  return ['paste', text];
7175
7292
  };
7176
- const handleScrollBarVerticalPointerDown = create$L(event => {
7293
+ const handleScrollBarVerticalPointerDown = create$K(event => {
7177
7294
  const {
7178
7295
  clientY
7179
7296
  } = event;
@@ -7296,7 +7413,7 @@ const setLineInfos = (state, dom) => {
7296
7413
  // 1. create -> only create dom elements
7297
7414
  // 2. render -> fill elements with attributes and data
7298
7415
  // that way all dom nodes can be recycled
7299
- const create$n = () => {
7416
+ const create$l = () => {
7300
7417
  const $EditorInput = document.createElement('textarea');
7301
7418
  $EditorInput.className = 'EditorInput';
7302
7419
  $EditorInput.ariaAutoComplete = List;
@@ -7314,7 +7431,7 @@ const create$n = () => {
7314
7431
  [CompositionStart]: handleCompositionStart,
7315
7432
  [CompositionUpdate]: handleCompositionUpdate,
7316
7433
  [CompositionEnd]: handleCompositionEnd,
7317
- [Focus]: handleFocus$8,
7434
+ [Focus]: handleFocus$7,
7318
7435
  [Blur]: handleBlur$6,
7319
7436
  [Cut]: handleCut,
7320
7437
  [Paste]: handlePaste,
@@ -7463,7 +7580,7 @@ const setDecorationsDom$1 = (state, decorations) => {
7463
7580
  setDecorationsDom$2(state, decorations);
7464
7581
  };
7465
7582
 
7466
- const create$m = create$n;
7583
+ const create$k = create$l;
7467
7584
  const setText$1 = setText$2;
7468
7585
  const setSelections = setSelections$1;
7469
7586
  const setIncrementalEdits = setIncrementalEdits$1;
@@ -7500,13 +7617,13 @@ const hideOverlayMessage = state => {
7500
7617
  }
7501
7618
  };
7502
7619
  const setFocused$2 = setFocused$3;
7503
- const focus$f = setFocused$3;
7620
+ const focus$e = setFocused$3;
7504
7621
  const setDecorationsDom = setDecorationsDom$1;
7505
7622
 
7506
7623
  const ViewletEditorText = {
7507
7624
  __proto__: null,
7508
- create: create$m,
7509
- focus: focus$f,
7625
+ create: create$k,
7626
+ focus: focus$e,
7510
7627
  handleError: handleError$4,
7511
7628
  hideOverlayMessage,
7512
7629
  highlightAsLink,
@@ -7521,7 +7638,7 @@ const ViewletEditorText = {
7521
7638
  showOverlayMessage
7522
7639
  };
7523
7640
 
7524
- const create$l = () => {
7641
+ const create$j = () => {
7525
7642
  const $Viewlet = document.createElement('div');
7526
7643
  $Viewlet.className = 'Viewlet EditorWidgetError EditorOverlayMessage';
7527
7644
  return {
@@ -7544,12 +7661,12 @@ const setBounds$1 = (state, x, y, width, height) => {
7544
7661
 
7545
7662
  const ViewletEditorWidgetError = {
7546
7663
  __proto__: null,
7547
- create: create$l,
7664
+ create: create$j,
7548
7665
  setBounds: setBounds$1,
7549
7666
  setMessage: setMessage$2
7550
7667
  };
7551
7668
 
7552
- const create$k = () => {
7669
+ const create$i = () => {
7553
7670
  const $Viewlet = document.createElement('div');
7554
7671
  $Viewlet.dataset.viewlet = 'Empty';
7555
7672
  $Viewlet.className = 'Viewlet';
@@ -7558,18 +7675,18 @@ const create$k = () => {
7558
7675
  };
7559
7676
  };
7560
7677
  const refresh$1 = (state, context) => {};
7561
- const focus$e = state => {};
7678
+ const focus$d = state => {};
7562
7679
  const dispose$a = state => {};
7563
7680
 
7564
7681
  const ViewletEmpty = {
7565
7682
  __proto__: null,
7566
- create: create$k,
7683
+ create: create$i,
7567
7684
  dispose: dispose$a,
7568
- focus: focus$e,
7685
+ focus: focus$d,
7569
7686
  refresh: refresh$1
7570
7687
  };
7571
7688
 
7572
- const create$j = () => {
7689
+ const create$h = () => {
7573
7690
  const $Viewlet = document.createElement('div');
7574
7691
  $Viewlet.className = 'Viewlet Error';
7575
7692
  return {
@@ -7585,7 +7702,7 @@ const setMessage$1 = (state, message) => {
7585
7702
 
7586
7703
  const ViewletError = {
7587
7704
  __proto__: null,
7588
- create: create$j,
7705
+ create: create$h,
7589
7706
  setMessage: setMessage$1
7590
7707
  };
7591
7708
 
@@ -7711,7 +7828,7 @@ const handleDrop = event => {
7711
7828
 
7712
7829
  // TODO drag and drop should be loaded on demand
7713
7830
 
7714
- const handleFocus$7 = event => {
7831
+ const handleFocus$6 = event => {
7715
7832
  const {
7716
7833
  target,
7717
7834
  isTrusted
@@ -7726,7 +7843,7 @@ const handleBlur$5 = event => {
7726
7843
  const uid = fromEvent(event);
7727
7844
  handleBlur$a(uid);
7728
7845
  };
7729
- const handleClick$6 = event => {
7846
+ const handleClick$5 = event => {
7730
7847
  preventDefault(event);
7731
7848
  const {
7732
7849
  button,
@@ -7786,7 +7903,7 @@ const handleEditingInput = event => {
7786
7903
  const ViewletExplorerEvents = {
7787
7904
  __proto__: null,
7788
7905
  handleBlur: handleBlur$5,
7789
- handleClick: handleClick$6,
7906
+ handleClick: handleClick$5,
7790
7907
  handleClickOpenFolder,
7791
7908
  handleContextMenu: handleContextMenu$8,
7792
7909
  handleDragEnd,
@@ -7795,14 +7912,14 @@ const ViewletExplorerEvents = {
7795
7912
  handleDragStart: handleDragStart$1,
7796
7913
  handleDrop,
7797
7914
  handleEditingInput,
7798
- handleFocus: handleFocus$7,
7915
+ handleFocus: handleFocus$6,
7799
7916
  handleMouseEnter,
7800
7917
  handleMouseLeave,
7801
7918
  handlePointerDown: handlePointerDown$4,
7802
7919
  handleWheel: handleWheel$3
7803
7920
  };
7804
7921
 
7805
- const create$i = () => {
7922
+ const create$g = () => {
7806
7923
  const $Viewlet = document.createElement('div');
7807
7924
  $Viewlet.className = 'Viewlet Explorer';
7808
7925
  $Viewlet.tabIndex = 0;
@@ -7812,7 +7929,7 @@ const create$i = () => {
7812
7929
  $Viewlet
7813
7930
  };
7814
7931
  };
7815
- const Events$8 = ViewletExplorerEvents;
7932
+ const Events$9 = ViewletExplorerEvents;
7816
7933
  const handleError$3 = (state, message) => {
7817
7934
  object(state);
7818
7935
  string(message);
@@ -7850,7 +7967,7 @@ const setDropTargets = (state, oldDropTargets, newDropTargets) => {
7850
7967
  }
7851
7968
  }
7852
7969
  };
7853
- const setDom$4 = (state, dom) => {
7970
+ const setDom$2 = (state, dom) => {
7854
7971
  const {
7855
7972
  $Viewlet
7856
7973
  } = state;
@@ -7859,12 +7976,12 @@ const setDom$4 = (state, dom) => {
7859
7976
 
7860
7977
  const ViewletExplorer = {
7861
7978
  __proto__: null,
7862
- Events: Events$8,
7863
- create: create$i,
7979
+ Events: Events$9,
7980
+ create: create$g,
7864
7981
  dispose: dispose$9,
7865
7982
  focusInput,
7866
7983
  handleError: handleError$3,
7867
- setDom: setDom$4,
7984
+ setDom: setDom$2,
7868
7985
  setDropTargets
7869
7986
  };
7870
7987
 
@@ -7903,11 +8020,11 @@ const ViewletExtensionDetailEvents = {
7903
8020
  handleReadmeContextMenu
7904
8021
  };
7905
8022
 
7906
- const Events$7 = ViewletExtensionDetailEvents;
8023
+ const Events$8 = ViewletExtensionDetailEvents;
7907
8024
 
7908
8025
  const ViewletExtensionDetail = {
7909
8026
  __proto__: null,
7910
- Events: Events$7,
8027
+ Events: Events$8,
7911
8028
  setSize
7912
8029
  };
7913
8030
 
@@ -7939,7 +8056,7 @@ const handleScrollBarPointerDown$2 = event => {
7939
8056
  const uid = fromEvent(event);
7940
8057
  handleScrollBarClick(uid, clientY);
7941
8058
  };
7942
- const handleFocus$6 = event => {
8059
+ const handleFocus$5 = event => {
7943
8060
  const uid = fromEvent(event);
7944
8061
  handleFocus$c(uid);
7945
8062
  };
@@ -7956,7 +8073,7 @@ const handlePointerDown$3 = event => {
7956
8073
  const index = getNodeIndex($Extension);
7957
8074
  handleClick$9(uid, index);
7958
8075
  };
7959
- const handleInput$6 = event => {
8076
+ const handleInput$5 = event => {
7960
8077
  const $Target = event.target;
7961
8078
  const value = $Target.value;
7962
8079
  const uid = fromEvent(event);
@@ -8008,7 +8125,7 @@ const handleTouchEnd = event => {
8008
8125
 
8009
8126
  // based on https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/extensions/browser/extensionsList.ts (License MIT)
8010
8127
 
8011
- const create$h = () => {
8128
+ const create$f = () => {
8012
8129
  const $ExtensionHeader = document.createElement('div');
8013
8130
  $ExtensionHeader.className = 'ExtensionHeader';
8014
8131
 
@@ -8043,30 +8160,30 @@ const create$h = () => {
8043
8160
  $Message: undefined
8044
8161
  };
8045
8162
  };
8046
- const attachEvents$8 = state => {
8163
+ const attachEvents$7 = state => {
8047
8164
  const {
8048
8165
  $ExtensionHeader,
8049
8166
  $ListItems,
8050
8167
  $ScrollBar
8051
8168
  } = state;
8052
- $ExtensionHeader.addEventListener(Input, handleInput$6, Capture);
8169
+ $ExtensionHeader.addEventListener(Input, handleInput$5, Capture);
8053
8170
  // @ts-expect-error
8054
8171
  $ExtensionHeader.addEventListener(Click, undefined);
8055
- attachEvents$d($ListItems, {
8172
+ attachEvents$c($ListItems, {
8056
8173
  [ContextMenu]: handleContextMenu$8,
8057
8174
  [PointerDown]: handlePointerDown$3,
8058
- [Focus]: handleFocus$6,
8175
+ [Focus]: handleFocus$5,
8059
8176
  [Scroll]: handleScroll
8060
8177
  });
8061
8178
  $ListItems.addEventListener(TouchStart, handleTouchStart, Passive);
8062
8179
  $ListItems.addEventListener(TouchMove, handleTouchMove, Passive);
8063
8180
  $ListItems.addEventListener(TouchEnd, handleTouchEnd, Passive);
8064
8181
  $ListItems.addEventListener(Wheel, handleWheel$3, Passive);
8065
- attachEvents$d($ScrollBar, {
8182
+ attachEvents$c($ScrollBar, {
8066
8183
  [PointerDown]: handleScrollBarPointerDown$2
8067
8184
  });
8068
8185
  };
8069
- const focus$d = state => {
8186
+ const focus$c = state => {
8070
8187
  object(state);
8071
8188
  state.$InputBox.focus();
8072
8189
  };
@@ -8151,11 +8268,11 @@ const setSearchValue = (state, oldValue, newValue) => {
8151
8268
 
8152
8269
  const ViewletExtensions = {
8153
8270
  __proto__: null,
8154
- attachEvents: attachEvents$8,
8271
+ attachEvents: attachEvents$7,
8155
8272
  closeSuggest,
8156
- create: create$h,
8273
+ create: create$f,
8157
8274
  dispose: dispose$8,
8158
- focus: focus$d,
8275
+ focus: focus$c,
8159
8276
  handleError: handleError$2,
8160
8277
  openSuggest,
8161
8278
  setContentHeight,
@@ -8169,115 +8286,6 @@ const ViewletExtensions = {
8169
8286
  setSize
8170
8287
  };
8171
8288
 
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
8289
  const handleLocationsMouseDown = event => {
8282
8290
  if (event.button !== LeftClick) {
8283
8291
  return;
@@ -8296,7 +8304,7 @@ const ViewletLocationsEvents = {
8296
8304
  handleLocationsMouseDown
8297
8305
  };
8298
8306
 
8299
- const Events$6 = ViewletLocationsEvents;
8307
+ const Events$7 = ViewletLocationsEvents;
8300
8308
  const setFocusedIndex$3 = (state, oldFocusedIndex, newFocusedIndex) => {
8301
8309
  const {
8302
8310
  $Viewlet
@@ -8331,7 +8339,7 @@ const focus$b = state => {
8331
8339
 
8332
8340
  const ViewletImplementations = {
8333
8341
  __proto__: null,
8334
- Events: Events$6,
8342
+ Events: Events$7,
8335
8343
  focus: focus$b,
8336
8344
  handleError: handleError$1,
8337
8345
  setFocusedIndex: setFocusedIndex$3
@@ -8442,11 +8450,11 @@ const setColumnWidths = (state, columnWidth1, columnWidth2, columnWidth3) => {
8442
8450
  $Resizer1.style.left = `${paddingLeft + columnWidth1}px`;
8443
8451
  $Resizer2.style.left = `${paddingLeft + columnWidth1 + columnWidth2}px`;
8444
8452
  };
8445
- const Events$5 = ViewletkeyBindingsEvents;
8453
+ const Events$6 = ViewletkeyBindingsEvents;
8446
8454
 
8447
8455
  const ViewletKeyBindings = {
8448
8456
  __proto__: null,
8449
- Events: Events$5,
8457
+ Events: Events$6,
8450
8458
  setColumnWidths,
8451
8459
  setScrollBar: setScrollBar$2,
8452
8460
  setSize,
@@ -8943,7 +8951,7 @@ const handleBlur$3 = () => {
8943
8951
  const handleKeyDown$1 = handleKeyDown$2;
8944
8952
  const handleKeyUp = handleKeyUp$1;
8945
8953
 
8946
- const create$f = () => {
8954
+ const create$e = () => {
8947
8955
  // TODO use aria role splitter once supported https://github.com/w3c/aria/issues/1348
8948
8956
  const $SashSideBar = document.createElement('div');
8949
8957
  $SashSideBar.className = 'Viewlet Sash SashVertical';
@@ -8964,20 +8972,20 @@ const create$f = () => {
8964
8972
  $SashPanel
8965
8973
  };
8966
8974
  };
8967
- const attachEvents$7 = state => {
8975
+ const attachEvents$6 = state => {
8968
8976
  const {
8969
8977
  $SashSideBar,
8970
8978
  $SashPanel
8971
8979
  } = state;
8972
- attachEvents$d($SashSideBar, {
8980
+ attachEvents$c($SashSideBar, {
8973
8981
  [PointerDown]: handleSashPointerDown,
8974
8982
  [DoubleClick]: handleSashDoubleClick
8975
8983
  });
8976
- attachEvents$d($SashPanel, {
8984
+ attachEvents$c($SashPanel, {
8977
8985
  [PointerDown]: handleSashPointerDown,
8978
8986
  [DoubleClick]: handleSashDoubleClick
8979
8987
  });
8980
- attachEvents$d(window, {
8988
+ attachEvents$c(window, {
8981
8989
  [Resize]: handleResize,
8982
8990
  [Focus]: handleFocus$3,
8983
8991
  [Blur]: handleBlur$3,
@@ -8998,8 +9006,8 @@ const setSashes = (state, sashSideBar, sashPanel) => {
8998
9006
 
8999
9007
  const ViewletLayout = {
9000
9008
  __proto__: null,
9001
- attachEvents: attachEvents$7,
9002
- create: create$f,
9009
+ attachEvents: attachEvents$6,
9010
+ create: create$e,
9003
9011
  setSashes
9004
9012
  };
9005
9013
 
@@ -9017,7 +9025,7 @@ const handleContextMenu$7 = event => {
9017
9025
  };
9018
9026
 
9019
9027
  // TODO Main should not be bound to Editor -> Lazy load Editor
9020
- const create$e = () => {
9028
+ const create$d = () => {
9021
9029
  const $Viewlet = document.createElement('div');
9022
9030
  $Viewlet.id = 'Main';
9023
9031
  $Viewlet.className = 'Viewlet Main';
@@ -9038,11 +9046,11 @@ const create$e = () => {
9038
9046
  $DragOverlay: undefined
9039
9047
  };
9040
9048
  };
9041
- const attachEvents$6 = state => {
9049
+ const attachEvents$5 = state => {
9042
9050
  const {
9043
9051
  $Viewlet
9044
9052
  } = state;
9045
- attachEvents$d($Viewlet, {
9053
+ attachEvents$c($Viewlet, {
9046
9054
  [Drop]: handleDrop,
9047
9055
  [DragOver]: handleDragOver,
9048
9056
  [DragEnd]: handleDragEnd,
@@ -9114,10 +9122,10 @@ const setDragOverlay = (state, visible, x, y, width, height) => {
9114
9122
  const ViewletMain = {
9115
9123
  __proto__: null,
9116
9124
  addEditor,
9117
- attachEvents: attachEvents$6,
9125
+ attachEvents: attachEvents$5,
9118
9126
  closeAllViewlets,
9119
9127
  closeViewletAndTab,
9120
- create: create$e,
9128
+ create: create$d,
9121
9129
  dispose: dispose$7,
9122
9130
  focus: focus$a,
9123
9131
  highlightDragOver,
@@ -9166,7 +9174,7 @@ const handleTabsContextMenu = event => {
9166
9174
  handleTabContextMenu(uid, clientX, clientY);
9167
9175
  };
9168
9176
 
9169
- const create$d = () => {
9177
+ const create$c = () => {
9170
9178
  const $MainTabs = document.createElement('div');
9171
9179
  $MainTabs.className = 'Viewlet MainTabs';
9172
9180
  $MainTabs.role = TabList;
@@ -9176,11 +9184,11 @@ const create$d = () => {
9176
9184
  $MainTabs
9177
9185
  };
9178
9186
  };
9179
- const attachEvents$5 = state => {
9187
+ const attachEvents$4 = state => {
9180
9188
  const {
9181
9189
  $MainTabs
9182
9190
  } = state;
9183
- attachEvents$d($MainTabs, {
9191
+ attachEvents$c($MainTabs, {
9184
9192
  [MouseDown]: handleTabsMouseDown,
9185
9193
  [ContextMenu]: handleTabsContextMenu,
9186
9194
  [DragStart]: handleDragStart
@@ -9202,13 +9210,13 @@ const setScrollLeft = (state, scrollLeft) => {
9202
9210
 
9203
9211
  const ViewletMainTabs = {
9204
9212
  __proto__: null,
9205
- attachEvents: attachEvents$5,
9206
- create: create$d,
9213
+ attachEvents: attachEvents$4,
9214
+ create: create$c,
9207
9215
  setScrollLeft,
9208
9216
  setTabsDom: setTabsDom$2
9209
9217
  };
9210
9218
 
9211
- const create$c = () => {
9219
+ const create$b = () => {
9212
9220
  const $ViewletOutputContent = document.createElement('div');
9213
9221
  $ViewletOutputContent.className = 'OutputContent';
9214
9222
  $ViewletOutputContent.role = Log;
@@ -9242,7 +9250,7 @@ const handleError = (state, error) => {
9242
9250
  };
9243
9251
  const focus$9 = state => {
9244
9252
  object(state);
9245
- focus$i(state.$ViewletOutputContent);
9253
+ focus$h(state.$ViewletOutputContent);
9246
9254
  send('Focus.setFocus', FocusOutput);
9247
9255
  };
9248
9256
 
@@ -9260,7 +9268,7 @@ const dispose$6 = state => {};
9260
9268
  const ViewletOutput = {
9261
9269
  __proto__: null,
9262
9270
  clear,
9263
- create: create$c,
9271
+ create: create$b,
9264
9272
  dispose: dispose$6,
9265
9273
  disposeFindWidget,
9266
9274
  focus: focus$9,
@@ -9313,7 +9321,7 @@ const UiStrings = {
9313
9321
  Close: 'Close',
9314
9322
  Maximize: 'Maximize'
9315
9323
  };
9316
- const create$b = () => {
9324
+ const create$a = () => {
9317
9325
  const $PanelTabs = document.createElement('div');
9318
9326
  $PanelTabs.className = 'PanelTabs';
9319
9327
  $PanelTabs.role = TabList;
@@ -9351,19 +9359,19 @@ const create$b = () => {
9351
9359
  };
9352
9360
  // await openViewlet('Terminal')
9353
9361
  };
9354
- const attachEvents$4 = state => {
9362
+ const attachEvents$3 = state => {
9355
9363
  const {
9356
9364
  $ButtonMaximize,
9357
9365
  $ButtonClose,
9358
9366
  $PanelHeader
9359
9367
  } = state;
9360
- attachEvents$d($PanelHeader, {
9368
+ attachEvents$c($PanelHeader, {
9361
9369
  [Click]: handleHeaderClick$2
9362
9370
  });
9363
- attachEvents$d($ButtonMaximize, {
9371
+ attachEvents$c($ButtonMaximize, {
9364
9372
  [Click]: handleClickMaximize
9365
9373
  });
9366
- attachEvents$d($ButtonClose, {
9374
+ attachEvents$c($ButtonClose, {
9367
9375
  [Click]: handleClickClose$1
9368
9376
  });
9369
9377
  };
@@ -9425,8 +9433,8 @@ const setActionsDom$1 = (state, actions, childUid) => {
9425
9433
 
9426
9434
  const ViewletPanel = {
9427
9435
  __proto__: null,
9428
- attachEvents: attachEvents$4,
9429
- create: create$b,
9436
+ attachEvents: attachEvents$3,
9437
+ create: create$a,
9430
9438
  dispose: dispose$5,
9431
9439
  focus: focus$8,
9432
9440
  setActionsDom: setActionsDom$1,
@@ -9641,8 +9649,8 @@ const focus$6 = state => {
9641
9649
  // - for windows narrator, ariaLabel works well
9642
9650
  // - for nvda ariaRoleDescription works better
9643
9651
 
9644
- const create$a = () => {
9645
- const $QuickPickInput = create$C();
9652
+ const create$9 = () => {
9653
+ const $QuickPickInput = create$A();
9646
9654
  $QuickPickInput.setAttribute(AriaControls, Ids.QuickPickItems); // TODO use idl once supported
9647
9655
  $QuickPickInput.role = ComboBox;
9648
9656
  $QuickPickInput.ariaLabel = 'Type the name of a command to run.';
@@ -9674,16 +9682,16 @@ const create$a = () => {
9674
9682
  $QuickPickStatus: undefined
9675
9683
  };
9676
9684
  };
9677
- const attachEvents$3 = state => {
9685
+ const attachEvents$2 = state => {
9678
9686
  const {
9679
9687
  $QuickPickItems,
9680
9688
  $QuickPickInput
9681
9689
  } = state;
9682
- attachEvents$d($QuickPickItems, {
9690
+ attachEvents$c($QuickPickItems, {
9683
9691
  [PointerDown]: handlePointerDown
9684
9692
  });
9685
9693
  $QuickPickItems.addEventListener(Wheel, handleWheel$3, Passive);
9686
- attachEvents$d($QuickPickInput, {
9694
+ attachEvents$c($QuickPickInput, {
9687
9695
  [Blur]: handleBlur$2,
9688
9696
  [BeforeInput]: handleBeforeInput
9689
9697
  });
@@ -9751,8 +9759,8 @@ const noop = state => {};
9751
9759
 
9752
9760
  const ViewletQuickPick = {
9753
9761
  __proto__: null,
9754
- attachEvents: attachEvents$3,
9755
- create: create$a,
9762
+ attachEvents: attachEvents$2,
9763
+ create: create$9,
9756
9764
  dispose: dispose$4,
9757
9765
  focus: focus$6,
9758
9766
  hideStatus,
@@ -9767,7 +9775,7 @@ const ViewletQuickPick = {
9767
9775
 
9768
9776
  const ViewletReferences = {
9769
9777
  __proto__: null,
9770
- Events: Events$6,
9778
+ Events: Events$7,
9771
9779
  focus: focus$b,
9772
9780
  handleError: handleError$1,
9773
9781
  setFocusedIndex: setFocusedIndex$3
@@ -9923,7 +9931,7 @@ const handleLoadedMetaData = event => {
9923
9931
  target.play();
9924
9932
  };
9925
9933
 
9926
- const create$9 = () => {
9934
+ const create$8 = () => {
9927
9935
  const $Viewlet = document.createElement('div');
9928
9936
  $Viewlet.className = 'Viewlet ScreenCapture';
9929
9937
  return {
@@ -9943,7 +9951,7 @@ const setScreenCapture = (state, id) => {
9943
9951
 
9944
9952
  const ViewletScreenCapture = {
9945
9953
  __proto__: null,
9946
- create: create$9,
9954
+ create: create$8,
9947
9955
  setScreenCapture
9948
9956
  };
9949
9957
 
@@ -10107,11 +10115,11 @@ const setFocus = (state, selector) => {
10107
10115
  }
10108
10116
  };
10109
10117
  const dispose$3 = () => {};
10110
- const Events$4 = ViewletSearchEvents;
10118
+ const Events$5 = ViewletSearchEvents;
10111
10119
 
10112
10120
  const ViewletSearch = {
10113
10121
  __proto__: null,
10114
- Events: Events$4,
10122
+ Events: Events$5,
10115
10123
  dispose: dispose$3,
10116
10124
  focus: focus$5,
10117
10125
  setFocus,
@@ -10133,7 +10141,7 @@ const handleHeaderClick = event => {
10133
10141
  }
10134
10142
  };
10135
10143
 
10136
- const create$8 = () => {
10144
+ const create$7 = () => {
10137
10145
  const $SideBarTitleAreaTitle = document.createElement('h2');
10138
10146
  $SideBarTitleAreaTitle.className = 'SideBarTitleAreaTitle';
10139
10147
  const $SideBarTitleArea = document.createElement('div');
@@ -10154,11 +10162,11 @@ const create$8 = () => {
10154
10162
  $Actions: undefined
10155
10163
  };
10156
10164
  };
10157
- const attachEvents$2 = state => {
10165
+ const attachEvents$1 = state => {
10158
10166
  const {
10159
10167
  $SideBarTitleArea
10160
10168
  } = state;
10161
- attachEvents$d($SideBarTitleArea, {
10169
+ attachEvents$c($SideBarTitleArea, {
10162
10170
  [Click]: handleHeaderClick
10163
10171
  });
10164
10172
  };
@@ -10196,8 +10204,8 @@ const focus$4 = async () => {
10196
10204
 
10197
10205
  const ViewletSideBar = {
10198
10206
  __proto__: null,
10199
- attachEvents: attachEvents$2,
10200
- create: create$8,
10207
+ attachEvents: attachEvents$1,
10208
+ create: create$7,
10201
10209
  dispose: dispose$2,
10202
10210
  focus: focus$4,
10203
10211
  setActionsDom,
@@ -10398,7 +10406,7 @@ const ViewletStatusBarEvents = {
10398
10406
  handleClick: handleClick$2
10399
10407
  };
10400
10408
 
10401
- const create$7 = () => {
10409
+ const create$6 = () => {
10402
10410
  const $Viewlet = document.createElement('div');
10403
10411
  $Viewlet.id = 'StatusBar';
10404
10412
  $Viewlet.className = 'Viewlet StatusBar';
@@ -10411,7 +10419,7 @@ const create$7 = () => {
10411
10419
  $Viewlet
10412
10420
  };
10413
10421
  };
10414
- const setDom$2 = (state, dom) => {
10422
+ const setDom$1 = (state, dom) => {
10415
10423
  const {
10416
10424
  $Viewlet
10417
10425
  } = state;
@@ -10427,9 +10435,9 @@ const focus$2 = state => {
10427
10435
 
10428
10436
  const ViewletStatusBar = {
10429
10437
  __proto__: null,
10430
- create: create$7,
10438
+ create: create$6,
10431
10439
  focus: focus$2,
10432
- setDom: setDom$2
10440
+ setDom: setDom$1
10433
10441
  };
10434
10442
 
10435
10443
  const handleClick$1 = event => {
@@ -10437,31 +10445,16 @@ const handleClick$1 = event => {
10437
10445
  handleClick$9(uid);
10438
10446
  };
10439
10447
 
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);
10448
+ const ViewletStorageEvents = {
10449
+ __proto__: null,
10450
+ handleClick: handleClick$1
10458
10451
  };
10459
10452
 
10453
+ const Events$4 = ViewletStorageEvents;
10454
+
10460
10455
  const ViewletStorage = {
10461
10456
  __proto__: null,
10462
- attachEvents: attachEvents$1,
10463
- create: create$6,
10464
- setDom: setDom$1
10457
+ Events: Events$4
10465
10458
  };
10466
10459
 
10467
10460
  const isUint8Array = value => {
@@ -10731,7 +10724,7 @@ const attachEvents = state => {
10731
10724
  const {
10732
10725
  $Viewlet
10733
10726
  } = state;
10734
- attachEvents$d($Viewlet, {
10727
+ attachEvents$c($Viewlet, {
10735
10728
  [ContextMenu]: handleContextMenu$4
10736
10729
  });
10737
10730
  };
@@ -11385,7 +11378,7 @@ const handleContextMenu$1 = event => {
11385
11378
  } = event;
11386
11379
  return ['handleContextMenu', button, clientX, clientY];
11387
11380
  };
11388
- const handleSashCornerPointerDown = create$L(event => {
11381
+ const handleSashCornerPointerDown = create$K(event => {
11389
11382
  const {
11390
11383
  clientX,
11391
11384
  clientY