ide на основе vs code · VibeGit
ide на основе vs code Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
krutaya-ide-na-osnove-vs-code / src / vs / base / browser / ui / contextview / contextview.ts 525 строк · изменён 14 нояб., 04:52
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
import { BrowserFeatures } from '../../canIUse.js' ;
import * as DOM from '../../dom.js' ;
import { createStyleSheet } from '../../domStylesheets.js' ;
import { StandardMouseEvent } from '../../mouseEvent.js' ;
import { Disposable, DisposableStore, IDisposable, toDisposable } from '../../../common/lifecycle.js' ;
import { AnchorAlignment, AnchorAxisAlignment, AnchorPosition, IRect, layout2d } from '../../../common/layout.js' ;
import * platform
OmitOptional
AnchorAlignment AnchorAxisAlignment AnchorPosition
ContextViewDOMPosition
x
y
width
height
obj obj IAnchor OmitOptional IAnchor
anchor obj IAnchor OmitOptional IAnchor
anchor anchor x anchor y
HTMLElement StandardMouseEvent IAnchor
container HTMLElement IDisposable
focus
layout
anchorAlignment AnchorAlignment
anchorPosition AnchorPosition
anchorAxisAlignment AnchorAxisAlignment
canRelayout
onDOMEvent e Event activeElement HTMLElement
onHide data
closeAnimation IContextViewCloseAnimation
layer
className
duration
requiredAncestorClasses
contextViewMenuCloseAnimation IContextViewCloseAnimation
className
duration
requiredAncestorClasses
enabledSelectorPrefix
contextViewMenuMotionStyleSheet HTMLStyleElement
contextViewMenuMotionStyleSheet
contextViewMenuMotionStyleSheet style
style textContent
delegate IDelegate container HTMLElement
anchor HTMLElement StandardMouseEvent IAnchor IRect
anchor
elementPosition anchor
zoom anchor
top elementPosition top zoom
left elementPosition left zoom
width elementPosition width zoom
height elementPosition height zoom
anchor
top anchor y
left anchor x
width anchor width
height anchor height
top anchor posy
left anchor posx
width
height
container HTMLElement
view HTMLElement
useFixedPosition
useShadowDOM
delegate IDelegate
toDisposeOnClean IDisposable Disposable None
toDisposeOnSetContainer IDisposable Disposable None
hidingContextView disposable IDisposable toDispose IDisposable className
shadowRoot ShadowRoot
shadowRootHostElement HTMLElement
container HTMLElement domPosition ContextViewDOMPosition
view
view
container domPosition
ContextViewDOMPosition
container HTMLElement domPosition ContextViewDOMPosition
useFixedPosition domPosition ContextViewDOMPosition
usedShadowDOM useShadowDOM
useShadowDOM domPosition ContextViewDOMPosition
container container usedShadowDOM useShadowDOM
container
toDisposeOnSetContainer
view
shadowRoot
shadowRoot
shadowRootHostElement
shadowRootHostElement
container
container
container container
useShadowDOM
shadowRootHostElement
Object shadowRootHostElement style
position
top
left
width
height
container shadowRootHostElement
shadowRoot shadowRootHostElement mode
style document
style textContent
shadowRoot style
shadowRoot view
shadowRoot
container view
toDisposeOnSetContainer
ContextView event
toDisposeOnSetContainer container event e
e
ContextView event
toDisposeOnSetContainer container event e
e
toDisposeOnSetContainer toDisposeOnSetContainer
delegate IDelegate
view
view className
view style top
view style left
zIndex
view style zIndex zIndex
shadowRootHostElement
shadowRootHostElement style zIndex zIndex
view style position useFixedPosition
view
toDisposeOnClean delegate view Disposable None
delegate delegate
delegate focus
HTMLElement
view
delegate canRelayout platform isIOS BrowserFeatures pointerEvents
delegate layout
anchor delegate
containerWindow container container
viewport top containerWindow pageYOffset left containerWindow pageXOffset width containerWindow innerWidth height containerWindow innerHeight
view classList useFixedPosition
view style top
view style left
positioningOrigin view
view width view height view
anchorPosition delegate anchorPosition
anchorAlignment delegate anchorAlignment
anchorAxisAlignment delegate anchorAxisAlignment
layoutResult viewport view anchor anchorAlignment anchorPosition anchorAxisAlignment
top left layoutResult
view classList
view classList layoutResult anchorPosition AnchorPosition
view classList layoutResult anchorAlignment AnchorAlignment
view style top
view style left
view style width
data skipAnimation
hidingContextView
skipAnimation
delegate delegate
delegate
delegate
toDispose toDisposeOnClean
toDisposeOnClean Disposable None
delegate onHide data
closeAnimation delegate closeAnimation
skipAnimation closeAnimation closeAnimation duration closeAnimation requiredAncestorClasses
view style
view inert
view classList closeAnimation className
timeout closeAnimation duration
hidingContextView
disposable timeout
toDispose
className closeAnimation className
toDispose
view
delegate
hidingContextView hidingContextView
hidingContextView
hidingContextView
hidingContextView disposable
view classList hidingContextView className
view style
view style
view style
hidingContextView toDispose
view
view inert
view classList
surface view children element element element classList
surface
computedStyle surface surface
view style computedStyle opacity
view style computedStyle transform
classNames
classNames length
candidate HTMLElement view candidate
current HTMLElement candidate
classNames className current classList className
current parentElement
candidate current parentElement
root current
candidate root root host root host
e UIEvent onCapture
delegate
delegate onDOMEvent
delegate e HTMLElement e document activeElement
onCapture HTMLElement e target container
override
as
from
'../../../common/platform.js'
;
import
{
}
from
'../../../common/types.js'
;
import
'./contextview.css'
;
export
{
,
,
}
from
'../../../common/layout.js'
;
export
const
enum
{
ABSOLUTE
=
1
,
FIXED
,
FIXED_SHADOW
}
export
interface
IAnchor
{
:
number
;
:
number
;
?
:
number
;
?
:
number
;
}
export
function
isAnchor
(
:
unknown
)
:
is
|
<
>
{
const
=
as
|
<
>
|
undefined
;
return
!
!
&&
typeof
.
===
'number'
&&
typeof
.
===
'number'
;
}
export
interface
IDelegate
{
getAnchor
(
)
:
|
|
;
render
(
:
)
:
|
null
;
?
(
)
:
void
;
?
(
)
:
void
;
?
:
;
?
:
;
?
:
;
?
:
boolean
;
?
(
:
,
:
)
:
void
;
?
(
?
:
unknown
)
:
void
;
?
:
;
?
:
number
;
}
export
interface
IContextViewCloseAnimation
{
readonly
:
string
;
readonly
:
number
;
readonly
?
:
readonly
string
[
]
;
}
export
const
CONTEXT_VIEW_MENU_MOTION_CLASS
=
'context-view-menu-motion'
;
export
const
CONTEXT_VIEW_MENU_MOTION_CLOSING_CLASS
=
'context-view-menu-motion-closing'
;
export
const
CONTEXT_VIEW_MENU_MOTION_CLOSE_ANIMATION_DURATION
=
150
;
export
const
CONTEXT_VIEW_MENU_MOTION_ANCESTOR_CLASSES
=
[
'modern-ui'
,
'monaco-enable-motion'
]
as
const
;
export
const
CONTEXT_VIEW_CLOSE_ANIMATION_DURATION_VARIABLE
=
'--vscode-context-view-close-animation-duration'
;
export
const
CONTEXT_VIEW_MENU_MOTION_SHADOW_VARIABLE
=
'--vscode-context-view-menu-motion-shadow'
;
const
CONTEXT_VIEW_MENU_MOTION_CLOSE_START_OPACITY_VARIABLE
=
'--vscode-context-view-menu-motion-close-start-opacity'
;
const
CONTEXT_VIEW_MENU_MOTION_CLOSE_START_TRANSFORM_VARIABLE
=
'--vscode-context-view-menu-motion-close-start-transform'
;
const
CONTEXT_VIEW_MENU_MOTION_OPEN_DURATION_MS
=
250
;
const
CONTEXT_VIEW_MENU_MOTION_EASING
=
'cubic-bezier(0.22, 1, 0.36, 1)'
;
export
const
:
=
{
:
CONTEXT_VIEW_MENU_MOTION_CLOSING_CLASS
,
:
CONTEXT_VIEW_MENU_MOTION_CLOSE_ANIMATION_DURATION
,
:
CONTEXT_VIEW_MENU_MOTION_ANCESTOR_CLASSES
,
}
;
function
getContextViewMenuMotionCss
(
:
string
)
:
string
{
return
`
${ enabledSelectorPrefix} .context-view. ${ CONTEXT_VIEW_MENU_MOTION_CLASS } {
animation: none;
box-shadow: none;
overflow: visible;
}
${ enabledSelectorPrefix} .context-view. ${ CONTEXT_VIEW_MENU_MOTION_CLASS } > .monaco-scrollable-element {
animation: context-view-menu-motion-open ${ CONTEXT_VIEW_MENU_MOTION_OPEN_DURATION_MS } ms ${ CONTEXT_VIEW_MENU_MOTION_EASING } backwards;
box-shadow: var( ${ CONTEXT_VIEW_MENU_MOTION_SHADOW_VARIABLE } );
transform-origin: top left;
will-change: opacity;
}
${ enabledSelectorPrefix} .context-view. ${ CONTEXT_VIEW_MENU_MOTION_CLASS } .right > .monaco-scrollable-element {
transform-origin: top right;
}
${ enabledSelectorPrefix} .context-view. ${ CONTEXT_VIEW_MENU_MOTION_CLASS } .top > .monaco-scrollable-element {
transform-origin: bottom left;
}
${ enabledSelectorPrefix} .context-view. ${ CONTEXT_VIEW_MENU_MOTION_CLASS } .top.right > .monaco-scrollable-element {
transform-origin: bottom right;
}
${ enabledSelectorPrefix} .context-view. ${ CONTEXT_VIEW_MENU_MOTION_CLASS } . ${ CONTEXT_VIEW_MENU_MOTION_CLOSING_CLASS } > .monaco-scrollable-element {
animation: context-view-menu-motion-close var( ${ CONTEXT_VIEW_CLOSE_ANIMATION_DURATION_VARIABLE } ) ${ CONTEXT_VIEW_MENU_MOTION_EASING } both;
pointer-events: none;
}
@keyframes context-view-menu-motion-open {
0% {
opacity: 0;
transform: scale(0.97);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes context-view-menu-motion-close {
0% {
opacity: var( ${ CONTEXT_VIEW_MENU_MOTION_CLOSE_START_OPACITY_VARIABLE } , 1);
transform: var( ${ CONTEXT_VIEW_MENU_MOTION_CLOSE_START_TRANSFORM_VARIABLE } , scale(1));
}
100% {
opacity: 0;
transform: scale(0.99);
}
} `
;
}
let
:
|
undefined
;
function
ensureContextViewMenuMotionStyleSheet
(
)
:
void
{
if
(
!
)
{
=
createStyleSheet
(
undefined
,
=>
{
.
=
getContextViewMenuMotionCss
(
'.modern-ui.monaco-enable-motion'
)
;
}
)
;
}
}
export
interface
IContextViewProvider
{
showContextView
(
:
,
?
:
)
:
void
;
hideContextView
(
)
:
void
;
layout
(
)
:
void
;
}
export
function
getAnchorRect
(
:
|
|
)
:
{
if
(
DOM
.
isHTMLElement
(
)
)
{
const
=
DOM
.
getDomNodePagePosition
(
)
;
const
=
DOM
.
getDomNodeZoomLevel
(
)
;
return
{
:
.
*
,
:
.
*
,
:
.
*
,
:
.
*
}
;
}
else
if
(
isAnchor
(
)
)
{
return
{
:
.
,
:
.
,
:
.
||
1
,
:
.
||
2
}
;
}
else
{
return
{
:
.
,
:
.
,
:
2
,
:
2
}
;
}
}
export
class
ContextView
extends
Disposable
{
private
static
readonly
BUBBLE_UP_EVENTS
=
[
'click'
,
'keydown'
,
'focus'
,
'blur'
]
;
private
static
readonly
BUBBLE_DOWN_EVENTS
=
[
'click'
]
;
private
:
|
null
=
null
;
private
:
;
private
=
false
;
private
=
false
;
private
:
|
null
=
null
;
private
:
=
.
;
private
:
=
.
;
private
:
{
readonly
:
;
readonly
:
;
readonly
:
string
}
|
undefined
;
private
:
|
null
=
null
;
private
:
|
null
=
null
;
constructor
(
:
,
:
)
{
super
(
)
;
ensureContextViewMenuMotionStyleSheet
(
)
;
this
.
=
DOM
.
$
(
'.context-view'
)
;
DOM
.
hide
(
this
.
)
;
this
.
setContainer
(
,
)
;
this
.
_register
(
toDisposable
(
(
)
=>
this
.
setContainer
(
null
,
.
ABSOLUTE
)
)
)
;
}
setContainer
(
:
|
null
,
:
)
:
void
{
this
.
=
!==
.
ABSOLUTE
;
const
=
this
.
;
this
.
=
===
.
FIXED_SHADOW
;
if
(
===
this
.
&&
===
this
.
)
{
return
;
}
if
(
this
.
)
{
this
.
.
dispose
(
)
;
this
.
.
remove
(
)
;
if
(
this
.
)
{
this
.
=
null
;
this
.
?.
remove
(
)
;
this
.
=
null
;
}
this
.
=
null
;
}
if
(
)
{
this
.
=
;
if
(
this
.
)
{
this
.
=
DOM
.
$
(
'.shadow-root-host'
)
;
.
assign
(
this
.
.
,
{
:
'fixed'
,
:
'0'
,
:
'0'
,
:
'0'
,
:
'0'
}
)
;
this
.
.
appendChild
(
this
.
)
;
this
.
=
this
.
.
attachShadow
(
{
:
'open'
}
)
;
const
=
.
createElement
(
'style'
)
;
.
=
SHADOW_ROOT_CSS
;
this
.
.
appendChild
(
)
;
this
.
.
appendChild
(
this
.
)
;
this
.
.
appendChild
(
DOM
.
$
(
'slot'
)
)
;
}
else
{
this
.
.
appendChild
(
this
.
)
;
}
const
=
new
DisposableStore
(
)
;
.
BUBBLE_UP_EVENTS
.
forEach
(
=>
{
.
add
(
DOM
.
addStandardDisposableListener
(
this
.
!
,
,
=>
{
this
.
onDOMEvent
(
,
false
)
;
}
)
)
;
}
)
;
.
BUBBLE_DOWN_EVENTS
.
forEach
(
=>
{
.
add
(
DOM
.
addStandardDisposableListener
(
this
.
!
,
,
=>
{
this
.
onDOMEvent
(
,
true
)
;
}
,
true
)
)
;
}
)
;
this
.
=
;
}
}
show
(
:
)
:
void
{
this
.
completeHideAnimation
(
)
;
if
(
this
.
isVisible
(
)
)
{
this
.
hide
(
undefined
,
true
)
;
}
DOM
.
clearNode
(
this
.
)
;
this
.
.
=
'context-view monaco-component'
;
this
.
.
.
=
'0px'
;
this
.
.
.
=
'0px'
;
const
=
` ${ 2575 + ( delegate. layer ?? 0 ) } `
;
this
.
.
.
=
;
if
(
this
.
)
{
this
.
.
.
=
;
}
this
.
.
.
=
this
.
?
'fixed'
:
'absolute'
;
DOM
.
show
(
this
.
)
;
this
.
=
.
render
(
this
.
)
||
.
;
this
.
=
;
this
.
doLayout
(
)
;
this
.
.
?.
(
)
;
}
getViewElement
(
)
:
{
return
this
.
;
}
layout
(
)
:
void
{
if
(
!
this
.
isVisible
(
)
)
{
return
;
}
if
(
this
.
!
.
===
false
&&
!
(
.
&&
.
)
)
{
this
.
hide
(
)
;
return
;
}
this
.
?.
?.
(
)
;
this
.
doLayout
(
)
;
}
private
doLayout
(
)
:
void
{
if
(
!
this
.
isVisible
(
)
)
{
return
;
}
const
=
getAnchorRect
(
this
.
!
.
getAnchor
(
)
)
;
const
=
this
.
?
DOM
.
getWindow
(
this
.
)
:
DOM
.
getActiveWindow
(
)
;
const
=
{
:
.
,
:
.
,
:
.
,
:
.
}
;
this
.
.
.
toggle
(
'fixed'
,
this
.
)
;
this
.
.
.
=
'0px'
;
this
.
.
.
=
'0px'
;
const
=
DOM
.
getDomNodePagePosition
(
this
.
)
;
const
=
{
:
DOM
.
getTotalWidth
(
this
.
)
,
:
DOM
.
getTotalHeight
(
this
.
)
}
;
const
=
this
.
!
.
;
const
=
this
.
!
.
;
const
=
this
.
!
.
;
const
=
layout2d
(
,
,
,
{
,
,
}
)
;
const
{
,
}
=
;
this
.
.
.
remove
(
'top'
,
'bottom'
,
'left'
,
'right'
)
;
this
.
.
.
add
(
.
===
.
BELOW
?
'bottom'
:
'top'
)
;
this
.
.
.
add
(
.
===
.
LEFT
?
'left'
:
'right'
)
;
this
.
.
.
=
` ${ top - positioningOrigin. top} px `
;
this
.
.
.
=
` ${ left - positioningOrigin. left} px `
;
this
.
.
.
=
'initial'
;
}
hide
(
?
:
unknown
,
=
false
)
:
void
{
if
(
this
.
)
{
if
(
)
{
this
.
completeHideAnimation
(
)
;
}
return
;
}
const
=
this
.
;
this
.
=
null
;
if
(
!
)
{
return
;
}
const
=
this
.
;
this
.
=
.
;
.
?.
(
)
;
const
=
.
;
if
(
!
&&
&&
.
>
0
&&
this
.
hasRequiredAncestorClasses
(
.
)
)
{
this
.
.
.
setProperty
(
CONTEXT_VIEW_CLOSE_ANIMATION_DURATION_VARIABLE
,
` ${ closeAnimation. duration} ms `
)
;
this
.
prepareMenuCloseAnimation
(
)
;
this
.
.
=
true
;
this
.
.
.
add
(
.
)
;
const
=
setTimeout
(
(
)
=>
this
.
completeHideAnimation
(
)
,
.
)
;
this
.
=
{
:
toDisposable
(
(
)
=>
clearTimeout
(
)
)
,
,
:
.
}
;
return
;
}
.
dispose
(
)
;
DOM
.
hide
(
this
.
)
;
}
private
isVisible
(
)
:
boolean
{
return
!
!
this
.
;
}
private
completeHideAnimation
(
)
:
void
{
const
=
this
.
;
if
(
!
)
{
return
;
}
this
.
=
undefined
;
.
.
dispose
(
)
;
this
.
.
.
remove
(
.
)
;
this
.
.
.
removeProperty
(
CONTEXT_VIEW_CLOSE_ANIMATION_DURATION_VARIABLE
)
;
this
.
.
.
removeProperty
(
CONTEXT_VIEW_MENU_MOTION_CLOSE_START_OPACITY_VARIABLE
)
;
this
.
.
.
removeProperty
(
CONTEXT_VIEW_MENU_MOTION_CLOSE_START_TRANSFORM_VARIABLE
)
;
.
.
dispose
(
)
;
DOM
.
hide
(
this
.
)
;
this
.
.
=
false
;
}
private
prepareMenuCloseAnimation
(
)
:
void
{
if
(
!
this
.
.
.
contains
(
CONTEXT_VIEW_MENU_MOTION_CLASS
)
)
{
return
;
}
const
=
Array
.
from
(
this
.
.
)
.
find
(
=>
DOM
.
isHTMLElement
(
)
&&
.
.
contains
(
'monaco-scrollable-element'
)
)
;
if
(
!
DOM
.
isHTMLElement
(
)
)
{
return
;
}
const
=
DOM
.
getWindow
(
)
.
getComputedStyle
(
)
;
this
.
.
.
setProperty
(
CONTEXT_VIEW_MENU_MOTION_CLOSE_START_OPACITY_VARIABLE
,
.
)
;
this
.
.
.
setProperty
(
CONTEXT_VIEW_MENU_MOTION_CLOSE_START_TRANSFORM_VARIABLE
,
.
)
;
}
private
hasRequiredAncestorClasses
(
:
readonly
string
[
]
|
undefined
)
:
boolean
{
if
(
!
?.
)
{
return
true
;
}
for
(
let
:
|
null
=
this
.
;
;
)
{
const
:
=
;
if
(
.
every
(
=>
.
.
contains
(
)
)
)
{
return
true
;
}
if
(
.
)
{
=
.
;
}
else
{
const
=
.
getRootNode
(
)
;
=
instanceof
ShadowRoot
&&
DOM
.
isHTMLElement
(
.
)
?
.
:
null
;
}
}
return
false
;
}
private
onDOMEvent
(
:
,
:
boolean
)
:
void
{
if
(
this
.
)
{
if
(
this
.
.
)
{
this
.
.
onDOMEvent
(
,
<
>
DOM
.
getWindow
(
)
.
.
)
;
}
else
if
(
&&
!
DOM
.
isAncestor
(
<
>
.
,
this
.
)
)
{
this
.
hide
(
)
;
}
}
}
dispose
(
)
:
void
{
this
.
hide
(
)
;
this
.
completeHideAnimation
(
)
;
super
.
dispose
(
)
;
}
}
const
SHADOW_ROOT_CSS
=
`
:host {
all: initial; /* 1st rule so subsequent properties are reset. */
}
.codicon[class*='codicon-'] {
font: normal normal normal 16px/1 codicon;
display: inline-block;
text-decoration: none;
text-rendering: auto;
text-align: center;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
:host {
font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", system-ui, "Ubuntu", "Droid Sans", sans-serif;
}
:host-context(.mac) { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
:host-context(.mac:lang(zh-Hans)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", sans-serif; }
:host-context(.mac:lang(zh-Hant)) { font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; }
:host-context(.mac:lang(ja)) { font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic Pro", sans-serif; }
:host-context(.mac:lang(ko)) { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Nanum Gothic", "AppleGothic", sans-serif; }
:host-context(.windows) { font-family: "Segoe WPC", "Segoe UI", sans-serif; }
:host-context(.windows:lang(zh-Hans)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft YaHei", sans-serif; }
:host-context(.windows:lang(zh-Hant)) { font-family: "Segoe WPC", "Segoe UI", "Microsoft Jhenghei", sans-serif; }
:host-context(.windows:lang(ja)) { font-family: "Segoe WPC", "Segoe UI", "Yu Gothic UI", "Meiryo UI", sans-serif; }
:host-context(.windows:lang(ko)) { font-family: "Segoe WPC", "Segoe UI", "Malgun Gothic", "Dotom", sans-serif; }
:host-context(.linux) { font-family: system-ui, "Ubuntu", "Droid Sans", sans-serif; }
:host-context(.linux:lang(zh-Hans)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans SC", "Source Han Sans CN", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(zh-Hant)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans TC", "Source Han Sans TW", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(ja)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans J", "Source Han Sans JP", "Source Han Sans", sans-serif; }
:host-context(.linux:lang(ko)) { font-family: system-ui, "Ubuntu", "Droid Sans", "Source Han Sans K", "Source Han Sans JR", "Source Han Sans", "UnDotum", "FBaekmuk Gulim", sans-serif; }
${ getContextViewMenuMotionCss ( ':host-context(.modern-ui.monaco-enable-motion)' ) }
`
;