• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/* If a new value is added, add it from the end. */
17let Color;
18(function (Color) {
19  Color.White = '#ffffffff';
20  Color.Black = '#ff000000';
21  Color.Blue = '#ff0000ff';
22  Color.Brown = '#ffa52a2a';
23  Color.Gray = '#ff808080';
24  Color.Green = '#ff008000';
25  Color.Grey = '#ff808080';
26  Color.Orange = '#ffffa500';
27  Color.Pink = '#ffffc0cb';
28  Color.Red = '#ffff0000';
29  Color.Yellow = '#ffffff00';
30  Color.Transparent = '#00000000';
31})(Color || (Color = {}));
32
33let ColoringStrategy;
34(function (ColoringStrategy) {
35  ColoringStrategy.INVERT = 'invert';
36  ColoringStrategy.AVERAGE = 'average';
37  ColoringStrategy.PRIMARY = 'primary';
38})(ColoringStrategy || (ColoringStrategy = {}));
39
40let TextInputStyle;
41(function (TextInputStyle) {
42  TextInputStyle.Default = 'Default';
43  TextInputStyle.Inline = 'Inline';
44})(TextInputStyle || (TextInputStyle = {}));
45
46let TextContentStyle;
47(function (TextContentStyle) {
48  TextContentStyle.DEFAULT = 'Default';
49  TextContentStyle.INLINE = 'Inline';
50})(TextContentStyle || (TextContentStyle = {}));
51
52let TextAlign;
53(function (TextAlign) {
54  TextAlign[TextAlign.Start = 0] = 'Start';
55  TextAlign[TextAlign.Center = 1] = 'Center';
56  TextAlign[TextAlign.End = 2] = 'End';
57  TextAlign[TextAlign.Justify = 3] = 'Justify';
58  TextAlign[TextAlign.JUSTIFY = 3] = 'JUSTIFY';
59})(TextAlign || (TextAlign = {}));
60
61let TextDataDetectorType;
62(function (TextDataDetectorType) {
63  TextDataDetectorType[TextDataDetectorType.PHONE_NUMBER = 0] = 'PHONE_NUMBER';
64  TextDataDetectorType[TextDataDetectorType.URL = 1] = 'URL';
65  TextDataDetectorType[TextDataDetectorType.EMAIL = 2] = 'EMAIL';
66  TextDataDetectorType[TextDataDetectorType.ADDRESS = 3] = 'ADDRESS';
67  TextDataDetectorType[TextDataDetectorType.DATE_TIME = 4] = 'DATE_TIME';
68})(TextDataDetectorType || (TextDataDetectorType = {}));
69
70let DataPanelType;
71(function (DataPanelType) {
72  DataPanelType[DataPanelType.Line = 0] = 'Line';
73  DataPanelType[DataPanelType.Circle = 4] = 'Circle';
74})(DataPanelType || (DataPanelType = {}));
75
76let FontWeight;
77(function (FontWeight) {
78  FontWeight.Light = 'light';
79  FontWeight.Lighter = 'lighter';
80  FontWeight.Normal = 'normal';
81  FontWeight.Regular = 'regular';
82  FontWeight.Medium = 'medium';
83  FontWeight.Bold = 'bold';
84  FontWeight.Bolder = 'bolder';
85})(FontWeight || (FontWeight = {}));
86
87let WordBreak;
88(function (WordBreak) {
89  WordBreak[WordBreak.NORMAL = 0] = 'normal';
90  WordBreak[WordBreak.BREAK_ALL = 1] = 'break-all';
91  WordBreak[WordBreak.BREAK_WORD = 2] = 'break-word';
92  WordBreak[WordBreak.HYPHENATION = 3] = 'hyphenation';
93})(WordBreak || (WordBreak = {}));
94
95let DpiFollowStrategy;
96(function (DpiFollowStrategy) {
97  DpiFollowStrategy[DpiFollowStrategy.FOLLOW_HOST_DPI = 0] = 'follow-host-dpi';
98  DpiFollowStrategy[DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI = 1] = 'follow-ui-extension-ability-dpi';
99})(DpiFollowStrategy || (DpiFollowStrategy = {}));
100
101let SecurityDpiFollowStrategy;
102(function (SecurityDpiFollowStrategy) {
103  SecurityDpiFollowStrategy[SecurityDpiFollowStrategy.FOLLOW_HOST_DPI = 0] = 'follow-host-dpi';
104  SecurityDpiFollowStrategy[SecurityDpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI = 1] = 'follow-ui-extension-ability-dpi';
105})(SecurityDpiFollowStrategy || (SecurityDpiFollowStrategy = {}));
106
107let WindowModeFollowStrategy;
108(function (WindowModeFollowStrategy) {
109  WindowModeFollowStrategy[WindowModeFollowStrategy.FOLLOW_HOST_WINDOW_MODE = 0] = 'follow-host-window-mode';
110  WindowModeFollowStrategy[WindowModeFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_WINDOW_MODE = 1] = 'follow-ui-extension-ability-window-mode';
111})(WindowModeFollowStrategy || (WindowModeFollowStrategy = {}));
112
113let EllipsisMode;
114(function (EllipsisMode) {
115  EllipsisMode[EllipsisMode.START = 0] = 'start';
116  EllipsisMode[EllipsisMode.CENTER = 1] = 'center';
117  EllipsisMode[EllipsisMode.END = 2] = 'end';
118})(EllipsisMode || (EllipsisMode = {}));
119
120let LineBreakStrategy;
121(function (LineBreakStrategy) {
122  LineBreakStrategy[LineBreakStrategy.GREEDY = 0] = 'greedy';
123  LineBreakStrategy[LineBreakStrategy.HIGH_QUALITY = 1] = 'highquality';
124  LineBreakStrategy[LineBreakStrategy.BALANCED = 2] = 'balanced';
125})(LineBreakStrategy || (LineBreakStrategy = {}));
126
127let TextSelectableMode;
128(function (TextSelectableMode) {
129  TextSelectableMode[TextSelectableMode.SELECTABLE_UNFOCUSABLE = 0] = 'selectable-unfocusable';
130  TextSelectableMode[TextSelectableMode.SELECTABLE_FOCUSABLE = 1] = 'selectable-focusable';
131  TextSelectableMode[TextSelectableMode.UNSELECTABLE = 2] = 'unselectable';
132})(TextSelectableMode || (TextSelectableMode = {}));
133
134let Curve;
135(function (Curve) {
136  Curve.Linear = 'linear';
137  Curve.Ease = 'ease';
138  Curve.EaseIn = 'ease-in';
139  Curve.EaseOut = 'ease-out';
140  Curve.EaseInOut = 'ease-in-out';
141  Curve.FastOutSlowIn = 'fast-out-slow-in';
142  Curve.LinearOutSlowIn = 'linear-out-slow-in';
143  Curve.FastOutLinearIn = 'fast-out-linear-in';
144  Curve.ExtremeDeceleration = 'extreme-deceleration';
145  Curve.Sharp = 'sharp';
146  Curve.Rhythm = 'rhythm';
147  Curve.Smooth = 'smooth';
148  Curve.Friction = 'friction';
149})(Curve || (Curve = {}));
150
151let FillMode;
152(function (FillMode) {
153  FillMode[FillMode.None = 0] = 'none';
154  FillMode[FillMode.Forwards = 1] = 'forwards';
155  FillMode[FillMode.Backwards = 2] = 'backwards';
156  FillMode[FillMode.Both = 3] = 'both';
157})(FillMode || (FillMode = {}));
158
159let PlayMode;
160(function (PlayMode) {
161  PlayMode.Normal = 'normal';
162  PlayMode.Alternate = 'alternate';
163  PlayMode.Reverse = 'reverse';
164  PlayMode.AlternateReverse = 'alternate-reverse';
165})(PlayMode || (PlayMode = {}));
166
167let RepeatMode;
168(function (RepeatMode) {
169  RepeatMode.Repeat = 'Repeat';
170  RepeatMode.Stretch = 'Stretch';
171  RepeatMode.Round = 'Round';
172  RepeatMode.Space = 'Space';
173})(RepeatMode || (RepeatMode = {}));
174
175let BorderStyle;
176(function (BorderStyle) {
177  BorderStyle[BorderStyle.Solid = 0] = 'Solid';
178  BorderStyle[BorderStyle.Dashed = 1] = 'Dashed';
179  BorderStyle[BorderStyle.Dotted = 2] = 'Dotted';
180})(BorderStyle || (BorderStyle = {}));
181
182let LineCapStyle;
183(function (LineCapStyle) {
184  LineCapStyle[LineCapStyle.Butt = 0] = 'Butt';
185  LineCapStyle[LineCapStyle.Round = 1] = 'Round';
186  LineCapStyle[LineCapStyle.Square = 2] = 'Square';
187})(LineCapStyle || (LineCapStyle = {}));
188
189let ButtonType;
190(function (ButtonType) {
191  ButtonType[ButtonType.Normal = 0] = 'Normal';
192  ButtonType[ButtonType.Capsule = 1] = 'Capsule';
193  ButtonType[ButtonType.Circle = 2] = 'Circle';
194  ButtonType[ButtonType.Arc = 4] = 'Arc';
195  ButtonType[ButtonType.ROUNDED_RECTANGLE = 8] = 'ROUNDED_RECTANGLE';
196})(ButtonType || (ButtonType = {}));
197
198let DevicePosition;
199(function (DevicePosition) {
200  DevicePosition[DevicePosition.Front = 0] = 'Front';
201  DevicePosition[DevicePosition.Back = 1] = 'Back';
202})(DevicePosition || (DevicePosition = {}));
203
204let ImageFit;
205(function (ImageFit) {
206  ImageFit[ImageFit.Fill = 0] = 'Fill';
207  ImageFit[ImageFit.Contain = 1] = 'Contain';
208  ImageFit[ImageFit.Cover = 2] = 'Cover';
209  ImageFit[ImageFit.Auto = 3] = 'Auto';
210  ImageFit[ImageFit.None = 5] = 'None';
211  ImageFit[ImageFit.ScaleDown = 6] = 'ScaleDown';
212  ImageFit[ImageFit.TOP_START = 7] = 'TOP_START';
213  ImageFit[ImageFit.TOP = 8] = 'TOP';
214  ImageFit[ImageFit.TOP_END = 9] = 'TOP_END';
215  ImageFit[ImageFit.START = 10] = 'START';
216  ImageFit[ImageFit.CENTER = 11] = 'CENTER';
217  ImageFit[ImageFit.END = 12] = 'END';
218  ImageFit[ImageFit.BOTTOM_START = 13] = 'BOTTOM_START';
219  ImageFit[ImageFit.BOTTOM = 14] = 'BOTTOM';
220  ImageFit[ImageFit.BOTTOM_END = 15] = 'BOTTOM_END';
221  ImageFit[ImageFit.MATRIX = 16] = "MATRIX";
222})(ImageFit || (ImageFit = {}));
223
224let DynamicRangeMode ;
225(function (DynamicRangeMode ) {
226  DynamicRangeMode [DynamicRangeMode .HIGH = 0] = 'HIGH';
227  DynamicRangeMode [DynamicRangeMode .CONSTRAINT = 1] = 'CONSTRAINT';
228  DynamicRangeMode [DynamicRangeMode .STANDARD = 2] = 'STANDARD';
229})(DynamicRangeMode  || (DynamicRangeMode  = {}));
230
231let ImageContent;
232(function (ImageContent) {
233  ImageContent[ImageContent.EMPTY = 0] = 'EMPTY';
234})(ImageContent || (ImageContent = {}));
235
236let ImageRepeat;
237(function (ImageRepeat) {
238  ImageRepeat[ImageRepeat.NoRepeat = 0] = 'NoRepeat';
239  ImageRepeat[ImageRepeat.X = 1] = 'X';
240  ImageRepeat[ImageRepeat.Y = 2] = 'Y';
241  ImageRepeat[ImageRepeat.XY = 3] = 'XY';
242})(ImageRepeat || (ImageRepeat = {}));
243
244let ImageSize;
245(function (ImageSize) {
246  ImageSize[ImageSize.Contain = 0] = 'Contain';
247  ImageSize[ImageSize.Cover = 1] = 'Cover';
248  ImageSize[ImageSize.Auto = 2] = 'Auto';
249  ImageSize[ImageSize.FILL = 3] = 'FILL';
250})(ImageSize || (ImageSize = {}));
251
252let ImageRenderMode;
253(function (ImageRenderMode) {
254  ImageRenderMode[ImageRenderMode.Original = 0] = 'Original';
255  ImageRenderMode[ImageRenderMode.Template = 1] = 'Template';
256})(ImageRenderMode || (ImageRenderMode = {}));
257
258let ImageRotateOrientation;
259(function (ImageRotateOrientation) {
260  ImageRotateOrientation[ImageRotateOrientation.AUTO = 0] = 'AUTO';
261  ImageRotateOrientation[ImageRotateOrientation.UP = 1] = 'UP';
262  ImageRotateOrientation[ImageRotateOrientation.RIGHT = 2] = 'RIGHT';
263  ImageRotateOrientation[ImageRotateOrientation.DOWN = 3] = 'DOWN';
264  ImageRotateOrientation[ImageRotateOrientation.LEFT = 4] = 'LEFT';
265})(ImageRotateOrientation || (ImageRotateOrientation = {}));
266
267let ImageInterpolation;
268(function (ImageInterpolation) {
269  ImageInterpolation[ImageInterpolation.None = 0] = 'None';
270  ImageInterpolation[ImageInterpolation.Low = 1] = 'Low';
271  ImageInterpolation[ImageInterpolation.Medium = 2] = 'Medium';
272  ImageInterpolation[ImageInterpolation.High = 3] = 'High';
273})(ImageInterpolation || (ImageInterpolation = {}));
274
275let FontStyle;
276(function (FontStyle) {
277  FontStyle[FontStyle.Normal = 0] = 'Normal';
278  FontStyle[FontStyle.Italic = 1] = 'Italic';
279})(FontStyle || (FontStyle = {}));
280
281let FlexAlign;
282(function (FlexAlign) {
283  FlexAlign[FlexAlign.Start = 1] = 'Start';
284  FlexAlign[FlexAlign.Center = 2] = 'Center';
285  FlexAlign[FlexAlign.End = 3] = 'End';
286  FlexAlign[FlexAlign.Stretch = 4] = 'Stretch';
287  FlexAlign[FlexAlign.Baseline = 5] = 'Baseline';
288  FlexAlign[FlexAlign.SpaceBetween = 6] = 'SpaceBetween';
289  FlexAlign[FlexAlign.SpaceAround = 7] = 'SpaceAround';
290  FlexAlign[FlexAlign.SpaceEvenly = 8] = 'SpaceEvenly';
291})(FlexAlign || (FlexAlign = {}));
292
293let PixelRoundCalcPolicy;
294(function (PixelRoundCalcPolicy) {
295  PixelRoundCalcPolicy[PixelRoundCalcPolicy.NO_FORCE_ROUND = 0] = 'NO_FORCE_ROUND';
296  PixelRoundCalcPolicy[PixelRoundCalcPolicy.FORCE_CEIL = 1] = 'FORCE_CEIL';
297  PixelRoundCalcPolicy[PixelRoundCalcPolicy.FORCE_FLOOR = 2] = 'FORCE_FLOOR';
298})(PixelRoundCalcPolicy || (PixelRoundCalcPolicy = {}));
299
300let PixelRoundMode;
301(function (PixelRoundMode) {
302  PixelRoundMode[PixelRoundMode.PIXEL_ROUND_ON_LAYOUT_FINISH = 0] = 'PIXEL_ROUND_ON_LAYOUT_FINISH';
303  PixelRoundMode[PixelRoundMode.PIXEL_ROUND_AFTER_MEASURE = 1] = 'PIXEL_ROUND_AFTER_MEASURE';
304})(PixelRoundMode || (PixelRoundMode = {}));
305
306let VerticalAlign;
307(function (VerticalAlign) {
308  VerticalAlign[VerticalAlign.Top = 1] = 'Top';
309  VerticalAlign[VerticalAlign.Center = 2] = 'Center';
310  VerticalAlign[VerticalAlign.Bottom = 3] = 'Bottom';
311})(VerticalAlign || (VerticalAlign = {}));
312
313let HorizontalAlign;
314(function (HorizontalAlign) {
315  HorizontalAlign[HorizontalAlign.Start = 1] = 'Start';
316  HorizontalAlign[HorizontalAlign.Center = 2] = 'Center';
317  HorizontalAlign[HorizontalAlign.End = 3] = 'End';
318})(HorizontalAlign || (HorizontalAlign = {}));
319
320let ItemAlign;
321(function (ItemAlign) {
322  ItemAlign[ItemAlign.Auto = 0] = 'Auto';
323  ItemAlign[ItemAlign.Start = 1] = 'Start';
324  ItemAlign[ItemAlign.Center = 2] = 'Center';
325  ItemAlign[ItemAlign.End = 3] = 'End';
326  ItemAlign[ItemAlign.Stretch = 4] = 'Stretch';
327  ItemAlign[ItemAlign.Baseline = 5] = 'Baseline';
328})(ItemAlign || (ItemAlign = {}));
329
330let Align;
331(function (Align) {
332  Align[Align.Start = 4] = 'Start';
333  Align[Align.Center = 2] = 'Center';
334  Align[Align.End = 5] = 'End';
335})(Align || (Align = {}));
336
337let Alignment;
338(function (Alignment) {
339  Alignment[Alignment.TopStart = 0] = 'TopStart';
340  Alignment[Alignment.Top = 1] = 'Top';
341  Alignment[Alignment.TopEnd = 2] = 'TopEnd';
342  Alignment[Alignment.Start = 3] = 'Start';
343  Alignment[Alignment.Center = 4] = 'Center';
344  Alignment[Alignment.End = 5] = 'End';
345  Alignment[Alignment.BottomStart = 6] = 'BottomStart';
346  Alignment[Alignment.Bottom = 7] = 'Bottom';
347  Alignment[Alignment.BottomEnd = 8] = 'BottomEnd';
348})(Alignment || (Alignment = {}));
349
350let ChainStyle;
351(function (ChainStyle) {
352  ChainStyle[ChainStyle.SPREAD = 0] = 'SPREAD';
353  ChainStyle[ChainStyle.SPREAD_INSIDE = 1] = 'SPREAD_INSIDE';
354  ChainStyle[ChainStyle.PACKED = 2] = 'PACKED';
355})(ChainStyle || (ChainStyle = {}));
356
357let BarrierDirection;
358(function (BarrierDirection) {
359  BarrierDirection[BarrierDirection.LEFT = 0] = 'LEFT';
360  BarrierDirection[BarrierDirection.RIGHT = 1] = 'RIGHT';
361  BarrierDirection[BarrierDirection.TOP = 2] = 'TOP';
362  BarrierDirection[BarrierDirection.BOTTOM = 3] = 'BOTTOM';
363})(BarrierDirection || (BarrierDirection = {}));
364
365let LocalizedBarrierDirection;
366(function (LocalizedBarrierDirection) {
367  LocalizedBarrierDirection[LocalizedBarrierDirection.START = 0] = 'START';
368  LocalizedBarrierDirection[LocalizedBarrierDirection.END = 1] = 'END';
369  LocalizedBarrierDirection[LocalizedBarrierDirection.TOP = 2] = 'TOP';
370  LocalizedBarrierDirection[LocalizedBarrierDirection.BOTTOM = 3] = 'BOTTOM';
371})(LocalizedBarrierDirection || (LocalizedBarrierDirection = {}));
372
373let BlendMode;
374(function (BlendMode) {
375  BlendMode[BlendMode.NORMAL = 0] = 'NORMAL';
376  BlendMode[BlendMode.DESTINATION_IN = 7] = 'DESTINATION_IN';
377  BlendMode[BlendMode.SOURCE_IN = 5000] = 'SOURCE_IN';
378  BlendMode[BlendMode.NONE = 0] = 'NONE';
379  BlendMode[BlendMode.CLEAR = 1] = 'CLEAR';
380  BlendMode[BlendMode.SRC = 2] = 'SRC';
381  BlendMode[BlendMode.DST = 3] = 'DST';
382  BlendMode[BlendMode.SRC_OVER = 4] = 'SRC_OVER';
383  BlendMode[BlendMode.DST_OVER = 5] = 'DST_OVER';
384  BlendMode[BlendMode.SRC_IN = 6] = 'SRC_IN';
385  BlendMode[BlendMode.DST_IN = 7] = 'DST_IN';
386  BlendMode[BlendMode.SRC_OUT = 8] = 'SRC_OUT';
387  BlendMode[BlendMode.DST_OUT = 9] = 'DST_OUT';
388  BlendMode[BlendMode.SRC_ATOP = 10] = 'SRC_ATOP';
389  BlendMode[BlendMode.DST_ATOP = 11] = 'DST_ATOP';
390  BlendMode[BlendMode.XOR = 12] = 'XOR';
391  BlendMode[BlendMode.PLUS = 13] = 'PLUS';
392  BlendMode[BlendMode.MODULATE = 14] = 'MODULATE';
393  BlendMode[BlendMode.SCREEN = 15] = 'SCREEN';
394  BlendMode[BlendMode.OVERLAY = 16] = 'OVERLAY';
395  BlendMode[BlendMode.DARKEN = 17] = 'DARKEN';
396  BlendMode[BlendMode.LIGHTEN = 18] = 'LIGHTEN';
397  BlendMode[BlendMode.COLOR_DODGE = 19] = 'COLOR_DODGE';
398  BlendMode[BlendMode.COLOR_BURN = 20] = 'COLOR_BURN';
399  BlendMode[BlendMode.HARD_LIGHT = 21] = 'HARD_LIGHT';
400  BlendMode[BlendMode.SOFT_LIGHT = 22] = 'SOFT_LIGHT';
401  BlendMode[BlendMode.DIFFERENCE = 23] = 'DIFFERENCE';
402  BlendMode[BlendMode.EXCLUSION = 24] = 'EXCLUSION';
403  BlendMode[BlendMode.MULTIPLY = 25] = 'MULTIPLY';
404  BlendMode[BlendMode.HUE = 26] = 'HUE';
405  BlendMode[BlendMode.SATURATION = 27] = 'SATURATION';
406  BlendMode[BlendMode.COLOR = 28] = 'COLOR';
407  BlendMode[BlendMode.LUMINOSITY = 29] = 'LUMINOSITY';
408})(BlendMode || (BlendMode = {}));
409
410let BlendApplyType;
411(function (BlendApplyType) {
412  BlendApplyType[BlendApplyType.FAST = 0] = 'FAST';
413  BlendApplyType[BlendApplyType.OFFSCREEN = 1] = 'OFFSCREEN';
414})(BlendApplyType || (BlendApplyType = {}));
415
416let TextOverflow;
417(function (TextOverflow) {
418  TextOverflow[TextOverflow.None = 0] = 'None';
419  TextOverflow[TextOverflow.Clip = 1] = 'Clip';
420  TextOverflow[TextOverflow.Ellipsis = 2] = 'Ellipsis';
421  TextOverflow[TextOverflow.Marquee = 3] = 'Marquee';
422  TextOverflow[TextOverflow.MARQUEE = 3] = 'MARQUEE';
423})(TextOverflow || (TextOverflow = {}));
424
425let TextDecorationStyle;
426(function (TextDecorationStyle) {
427  TextDecorationStyle[TextDecorationStyle.SOLID = 0] = 'SOLID';
428  TextDecorationStyle[TextDecorationStyle.DOUBLE = 1] = 'DOUBLE';
429  TextDecorationStyle[TextDecorationStyle.DOTTED = 2] = 'DOTTED';
430  TextDecorationStyle[TextDecorationStyle.DASHED = 3] = 'DASHED';
431  TextDecorationStyle[TextDecorationStyle.WAVY = 4] = 'WAVY';
432})(TextDecorationStyle || (TextDecorationStyle = {}));
433
434let TextDecorationType;
435(function (TextDecorationType) {
436  TextDecorationType[TextDecorationType.None = 0] = 'None';
437  TextDecorationType[TextDecorationType.Underline = 1] = 'Underline';
438  TextDecorationType[TextDecorationType.Overline = 2] = 'Overline';
439  TextDecorationType[TextDecorationType.LineThrough = 3] = 'LineThrough';
440})(TextDecorationType || (TextDecorationType = {}));
441
442let ClickEffectLevel;
443(function (ClickEffectLevel) {
444  ClickEffectLevel[ClickEffectLevel.LIGHT = 0] = 'LIGHT';
445  ClickEffectLevel[ClickEffectLevel.MIDDLE = 1] = 'MIDDLE';
446  ClickEffectLevel[ClickEffectLevel.HEAVY = 2] = 'HEAVY';
447})(ClickEffectLevel || (ClickEffectLevel = {}));
448
449let TextCase;
450(function (TextCase) {
451  TextCase[TextCase.Normal = 0] = 'Normal';
452  TextCase[TextCase.LowerCase = 1] = 'LowerCase';
453  TextCase[TextCase.UpperCase = 2] = 'UpperCase';
454})(TextCase || (TextCase = {}));
455
456let NavigationType;
457(function (NavigationType) {
458  NavigationType[NavigationType.Push = 1] = 'Push';
459  NavigationType[NavigationType.Replace = 2] = 'Replace';
460  NavigationType[NavigationType.Back = 3] = 'Back';
461})(NavigationType || (NavigationType = {}));
462
463let PanelType;
464(function (PanelType) {
465  PanelType[PanelType.Minibar = 0] = 'Minibar';
466  PanelType[PanelType.Foldable = 1] = 'Foldable';
467  PanelType[PanelType.Temporary = 2] = 'Temporary';
468  PanelType[PanelType.CUSTOM = 3] = 'CUSTOM';
469})(PanelType || (PanelType = {}));
470
471let PanelHeight;
472(function (PanelHeight) {
473  PanelHeight[PanelHeight.WRAP_CONTENT = 'wrapContent'] = 'WRAP_CONTENT';
474})(PanelHeight || (PanelHeight = {}));
475
476let PanelMode;
477(function (PanelMode) {
478  PanelMode[PanelMode.Mini = 0] = 'Mini';
479  PanelMode[PanelMode.Half = 1] = 'Half';
480  PanelMode[PanelMode.Full = 2] = 'Full';
481})(PanelMode || (PanelMode = {}));
482
483let Axis;
484(function (Axis) {
485  Axis[Axis.Vertical = 0] = 'Vertical';
486  Axis[Axis.Horizontal = 1] = 'Horizontal';
487})(Axis || (Axis = {}));
488
489let BarState;
490(function (BarState) {
491  BarState[BarState.Off = 0] = 'Off';
492  BarState[BarState.Auto = 1] = 'Auto';
493  BarState[BarState.On = 2] = 'On';
494})(BarState || (BarState = {}));
495
496var EdgeEffect;
497(function (EdgeEffect) {
498  EdgeEffect[EdgeEffect.Spring = 0] = 'Spring';
499  EdgeEffect[EdgeEffect.Fade = 1] = 'Fade';
500  EdgeEffect[EdgeEffect.None = 2] = 'None';
501})(EdgeEffect || (EdgeEffect = {}));
502
503let EffectEdge;
504(function (EffectEdge) {
505  EffectEdge[EffectEdge.START = 1] = 'START';
506  EffectEdge[EffectEdge.END = 2] = 'END';
507  EffectEdge[EffectEdge.ALL = 3] = 'ALL';
508})(EffectEdge || (EffectEdge = {}));
509
510let SwipeEdgeEffect;
511(function (SwipeEdgeEffect) {
512  SwipeEdgeEffect[SwipeEdgeEffect.Spring = 0] = 'Spring';
513  SwipeEdgeEffect[SwipeEdgeEffect.None = 1] = 'None';
514})(SwipeEdgeEffect || (SwipeEdgeEffect = {}));
515
516let ScrollState;
517(function (ScrollState) {
518  ScrollState[ScrollState.Idle = 0] = 'Idle';
519  ScrollState[ScrollState.Scroll = 1] = 'Scroll';
520  ScrollState[ScrollState.Fling = 2] = 'Fling';
521})(ScrollState || (ScrollState = {}));
522
523let ScrollSource;
524(function (ScrollSource) {
525  ScrollSource[ScrollSource.DRAG = 0] = 'DRAG';
526  ScrollSource[ScrollSource.FLING = 1] = 'FLING';
527  ScrollSource[ScrollSource.EDGE_EFFECT = 2] = 'EDGE_EFFECT';
528  ScrollSource[ScrollSource.OTHER_USER_INPUT = 3] = 'OTHER_USER_INPUT';
529  ScrollSource[ScrollSource.SCROLL_BAR = 4] = 'SCROLL_BAR';
530  ScrollSource[ScrollSource.SCROLL_BAR_FLING = 5] = 'SCROLL_BAR_FLING';
531  ScrollSource[ScrollSource.SCROLLER = 6] = 'SCROLLER';
532  ScrollSource[ScrollSource.SCROLLER_ANIMATION = 7] = 'SCROLLER_ANIMATION';
533})(ScrollSource || (ScrollSource = {}));
534
535let TouchType;
536(function (TouchType) {
537  TouchType[TouchType.Down = 0] = 'Down';
538  TouchType[TouchType.Up = 1] = 'Up';
539  TouchType[TouchType.Move = 2] = 'Move';
540  TouchType[TouchType.Cancel = 3] = 'Cancel';
541})(TouchType || (TouchType = {}));
542
543let MouseButton;
544(function (MouseButton) {
545  MouseButton[MouseButton.None = 0] = 'None';
546  MouseButton[MouseButton.Left = 1] = 'Left';
547  MouseButton[MouseButton.Right = 2] = 'Right';
548  MouseButton[MouseButton.Middle = 4] = 'Middle';
549  MouseButton[MouseButton.Back = 8] = 'Back';
550  MouseButton[MouseButton.Forward = 16] = 'Forward';
551})(MouseButton || (MouseButton = {}));
552
553let MouseAction;
554(function (MouseAction) {
555  MouseAction[MouseAction.None = 0] = 'None';
556  MouseAction[MouseAction.Press = 1] = 'Press';
557  MouseAction[MouseAction.Release = 2] = 'Release';
558  MouseAction[MouseAction.Move = 3] = 'Move';
559  MouseAction[MouseAction.Hover = 4] = 'Hover';
560  MouseAction[MouseAction.CANCEL = 13] = 'CANCEL';
561})(MouseAction || (MouseAction = {}));
562
563let KeyType;
564(function (KeyType) {
565  KeyType[KeyType.Down = 0] = 'Down';
566  KeyType[KeyType.Up = 1] = 'Up';
567  KeyType[KeyType.LongPress = 2] = 'LongPress';
568})(KeyType || (KeyType = {}));
569
570let GestureMode;
571(function (GestureMode) {
572  GestureMode[GestureMode.Sequence = 0] = 'Sequence';
573  GestureMode[GestureMode.Parallel = 1] = 'Parallel';
574  GestureMode[GestureMode.Exclusive = 2] = 'Exclusive';
575})(GestureMode || (GestureMode = {}));
576
577let PanDirection;
578(function (PanDirection) {
579  PanDirection[PanDirection.None = 0] = 'None';
580  PanDirection[PanDirection.Left = 1] = 'Left';
581  PanDirection[PanDirection.Right = 2] = 'Right';
582  PanDirection[PanDirection.Horizontal = 3] = 'Horizontal';
583  PanDirection[PanDirection.Up = 4] = 'Up';
584  PanDirection[PanDirection.Down = 8] = 'Down';
585  PanDirection[PanDirection.Vertical = 12] = 'Vertical';
586  PanDirection[PanDirection.All = 15] = 'All';
587})(PanDirection || (PanDirection = {}));
588
589let SwipeDirection;
590(function (SwipeDirection) {
591  SwipeDirection[SwipeDirection.None = 0] = 'None';
592  SwipeDirection[SwipeDirection.Horizontal = 1] = 'Horizontal';
593  SwipeDirection[SwipeDirection.Vertical = 2] = 'Vertical';
594  SwipeDirection[SwipeDirection.All = 3] = 'All';
595})(SwipeDirection || (SwipeDirection = {}));
596
597let GestureDirection;
598(function (GestureDirection) {
599  GestureDirection[GestureDirection.All = 0] = 'All';
600  GestureDirection[GestureDirection.Horizontal = 1] = 'Horizontal';
601  GestureDirection[GestureDirection.Vertical = 2] = 'Vertical';
602})(GestureDirection || (GestureDirection = {}));
603
604let GestureMask;
605(function (GestureMask) {
606  GestureMask[GestureMask.Normal = 0] = 'Normal';
607  GestureMask[GestureMask.IgnoreInternal = 1] = 'IgnoreInternal';
608})(GestureMask || (GestureMask = {}));
609
610let GesturePriority;
611(function (GesturePriority) {
612  GesturePriority[GesturePriority.Low = 0] = 'Low';
613  GesturePriority[GesturePriority.NORMAL = 0] = 'NORMAL';
614  GesturePriority[GesturePriority.High = 1] = 'High';
615  GesturePriority[GesturePriority.PRIORITY = 1] = 'PRIORITY';
616  GesturePriority[GesturePriority.Parallel = 2] = 'Parallel';
617  GesturePriority[GesturePriority.PARALLEL = 2] = 'PARALLEL';
618})(GesturePriority || (GesturePriority = {}));
619
620let Visibility;
621(function (Visibility) {
622  Visibility[Visibility.Visible = 0] = 'Visible';
623  Visibility[Visibility.Hidden = 1] = 'Hidden';
624  Visibility[Visibility.None = 2] = 'None';
625})(Visibility || (Visibility = {}));
626
627let RelateType;
628(function (RelateType) {
629  RelateType[RelateType.FILL = 0] = 'FILL';
630  RelateType[RelateType.FIT = 1] = 'FIT';
631})(RelateType || (RelateType = {}));
632
633let FlexDirection;
634(function (FlexDirection) {
635  FlexDirection[FlexDirection.Row = 0] = 'Row';
636  FlexDirection[FlexDirection.Column = 1] = 'Column';
637  FlexDirection[FlexDirection.RowReverse = 2] = 'RowReverse';
638  FlexDirection[FlexDirection.ColumnReverse = 3] = 'ColumnReverse';
639})(FlexDirection || (FlexDirection = {}));
640
641let FlexWrap;
642(function (FlexWrap) {
643  FlexWrap[FlexWrap.NoWrap = 0] = 'NoWrap';
644  FlexWrap[FlexWrap.Wrap = 1] = 'Wrap';
645  FlexWrap[FlexWrap.WrapReverse = 2] = 'WrapReverse';
646})(FlexWrap || (FlexWrap = {}));
647
648class LayoutPolicy {
649  id_ = '';
650
651  constructor(id) {
652    this.id_ = id;
653  }
654
655  static get matchParent() {
656    return new LayoutPolicy('matchParent');
657  }
658}
659
660var BlurStyle;
661(function (BlurStyle) {
662  BlurStyle[BlurStyle.SmallLight = 100] = 'SmallLight';
663  BlurStyle[BlurStyle.MediumLight = 101] = 'MediumLight';
664  BlurStyle[BlurStyle.LargeLight = 102] = 'LargeLight';
665  BlurStyle[BlurStyle.XlargeLight = 103] = 'XlargeLight';
666  BlurStyle[BlurStyle.SmallDark = 104] = 'SmallDark';
667  BlurStyle[BlurStyle.MediumDark = 105] = 'MediumDark';
668  BlurStyle[BlurStyle.LargeDark = 106] = 'LargeDark';
669  BlurStyle[BlurStyle.XlargeDark = 107] = 'XlargeDark';
670})(BlurStyle || (BlurStyle = {}));
671
672let Edge;
673(function (Edge) {
674  Edge[Edge.Top = 0] = 'Top';
675  Edge[Edge.Center = 1] = 'Center';
676  Edge[Edge.Bottom = 2] = 'Bottom';
677  Edge[Edge.Baseline = 3] = 'Baseline';
678  Edge[Edge.Start = 4] = 'Start';
679  Edge[Edge.Middle = 5] = 'Middle';
680  Edge[Edge.End = 6] = 'End';
681})(Edge || (Edge = {}));
682
683let LineJoinStyle;
684(function (LineJoinStyle) {
685  LineJoinStyle[LineJoinStyle.Miter = 0] = 'Miter';
686  LineJoinStyle[LineJoinStyle.Round = 1] = 'Round';
687  LineJoinStyle[LineJoinStyle.Bevel = 2] = 'Bevel';
688})(LineJoinStyle || (LineJoinStyle = {}));
689
690let AnimationStatus;
691(function (AnimationStatus) {
692  AnimationStatus[AnimationStatus.Initial = 0] = 'Initial';
693  AnimationStatus[AnimationStatus.Running = 1] = 'Running';
694  AnimationStatus[AnimationStatus.Paused = 2] = 'Paused';
695  AnimationStatus[AnimationStatus.Stopped = 3] = 'Stopped';
696})(AnimationStatus || (AnimationStatus = {}));
697
698let Motion;
699(function (Motion) {
700  Motion[Motion.SpringMotion = 0] = 'SpringMotion';
701  Motion[Motion.FrictionMotion = 1] = 'FrictionMotion';
702  Motion[Motion.ScrollMotion = 2] = 'ScrollMotion';
703})(Motion || (Motion = {}));
704
705let ScrollDirection;
706(function (ScrollDirection) {
707  ScrollDirection[ScrollDirection.Vertical = 0] = 'Vertical';
708  ScrollDirection[ScrollDirection.Horizontal = 1] = 'Horizontal';
709  ScrollDirection[ScrollDirection.Free = 2] = 'Free';
710  ScrollDirection[ScrollDirection.None = 3] = 'None';
711})(ScrollDirection || (ScrollDirection = {}));
712
713let Sticky;
714(function (Sticky) {
715  Sticky[Sticky.None = 0] = 'None';
716  Sticky[Sticky.Normal = 1] = 'Normal';
717  Sticky[Sticky.Opacity = 2] = 'Opacity';
718})(Sticky || (Sticky = {}));
719
720let StickyStyle;
721(function (StickyStyle) {
722  StickyStyle[StickyStyle.None = 0] = 'None';
723  StickyStyle[StickyStyle.Header = 1] = 'Header';
724  StickyStyle[StickyStyle.Footer = 2] = 'Footer';
725})(StickyStyle || (StickyStyle = {}));
726
727let ScrollSnapAlign;
728(function (ScrollSnapAlign) {
729  ScrollSnapAlign[ScrollSnapAlign.NONE = 0] = 'NONE';
730  ScrollSnapAlign[ScrollSnapAlign.START = 1] = 'START';
731  ScrollSnapAlign[ScrollSnapAlign.CENTER = 2] = 'CENTER';
732  ScrollSnapAlign[ScrollSnapAlign.END = 3] = 'END';
733})(ScrollSnapAlign || (ScrollSnapAlign = {}));
734
735let ChainEdgeEffect;
736(function (ChainEdgeEffect) {
737  ChainEdgeEffect[ChainEdgeEffect.DEFAULT = 0] = 'DEFAULT';
738  ChainEdgeEffect[ChainEdgeEffect.STRETCH = 1] = 'STRETCH';
739})(ChainEdgeEffect || (ChainEdgeEffect = {}));
740
741let Week;
742(function (Week) {
743  Week.Mon = 0b0000001;
744  Week.Tue = 0b0000010;
745  Week.Wed = 0b0000100;
746  Week.Thur = 0b0001000;
747  Week.Fri = 0b0010000;
748  Week.Sat = 0b0100000;
749  Week.Sun = 0b1000000;
750})(Week || (Week = {}));
751
752let FormDimension;
753(function (FormDimension) {
754  FormDimension.Dimension_1_2 = 1;
755  FormDimension.Dimension_2_2 = 2;
756  FormDimension.Dimension_2_4 = 3;
757  FormDimension.Dimension_4_4 = 4;
758  FormDimension.Dimension_2_1 = 5;
759  FormDimension.DIMENSION_1_1 = 6;
760  FormDimension.DIMENSION_6_4 = 7;
761  FormDimension.DIMENSION_2_3 = 8;
762  FormDimension.DIMENSION_3_3 = 9;
763})(FormDimension || (FormDimension = {}));
764
765let FormShape;
766(function (FormShape) {
767  FormShape.RECT = 1;
768  FormShape.CIRCLE = 2;
769})(FormShape || (FormShape = {}));
770
771let FormRenderingMode;
772(function (FormRenderingMode) {
773  FormRenderingMode.FULL_COLOR = 0;
774  FormRenderingMode.SINGLE_COLOR = 1;
775})(FormRenderingMode || (FormRenderingMode = {}));
776
777let TransitionType;
778(function (TransitionType) {
779  TransitionType.All = 'All';
780  TransitionType.Insert = 'Insert';
781  TransitionType.Delete = 'Delete';
782})(TransitionType || (TransitionType = {}));
783
784let Direction;
785(function (Direction) {
786  Direction.Ltr = 'Ltr';
787  Direction.Rtl = 'Rtl';
788  Direction.Auto = 'Auto';
789})(Direction || (Direction = {}));
790
791let RouteType;
792(function (RouteType) {
793  RouteType[RouteType.None = 0] = 'None';
794  RouteType[RouteType.Push = 1] = 'Push';
795  RouteType[RouteType.Pop = 2] = 'Pop';
796})(RouteType || (RouteType = {}));
797
798let FocusDirection;
799(function (FocusDirection) {
800  FocusDirection[FocusDirection.Up = 19] = 'Up';
801  FocusDirection[FocusDirection.Down = 20] = 'Down';
802  FocusDirection[FocusDirection.Left = 21] = 'Left';
803  FocusDirection[FocusDirection.Right = 22] = 'Right';
804  FocusDirection[FocusDirection.Tab = 61] = 'Tab';
805  FocusDirection[FocusDirection.ShiftTab = 200] = 'ShiftTab';
806})(FocusDirection || (FocusDirection = {}));
807
808let SlideEffect;
809(function (SlideEffect) {
810  SlideEffect[SlideEffect.None = 0] = 'None';
811  SlideEffect[SlideEffect.Left = 1] = 'Left';
812  SlideEffect[SlideEffect.Right = 2] = 'Right';
813  SlideEffect[SlideEffect.Top = 3] = 'Top';
814  SlideEffect[SlideEffect.Bottom = 4] = 'Bottom';
815  SlideEffect[SlideEffect.START = 5] = 'START';
816  SlideEffect[SlideEffect.END = 6] = 'END';
817})(SlideEffect || (SlideEffect = {}));
818
819let GradientDirection;
820(function (GradientDirection) {
821  GradientDirection[GradientDirection.Left = 0] = 'Left';
822  GradientDirection[GradientDirection.Top = 1] = 'Top';
823  GradientDirection[GradientDirection.Right = 2] = 'Right';
824  GradientDirection[GradientDirection.Bottom = 3] = 'Bottom';
825  GradientDirection[GradientDirection.LeftTop = 4] = 'Bottom';
826  GradientDirection[GradientDirection.LeftBottom = 5] = 'Bottom';
827  GradientDirection[GradientDirection.RightTop = 6] = 'Bottom';
828  GradientDirection[GradientDirection.RightBottom = 7] = 'Bottom';
829  GradientDirection[GradientDirection.None = 8] = 'None';
830})(GradientDirection || (GradientDirection = {}));
831
832let BarMode;
833(function (BarMode) {
834  BarMode.Fixed = 'Fixed';
835  BarMode.Scrollable = 'Scrollable';
836})(BarMode || (BarMode = {}));
837
838let AnimationMode;
839(function (AnimationMode) {
840  AnimationMode[AnimationMode.CONTENT_FIRST = 0] = 'CONTENT_FIRST';
841  AnimationMode[AnimationMode.ACTION_FIRST = 1] = 'ACTION_FIRST';
842  AnimationMode[AnimationMode.NO_ANIMATION = 2] = 'NO_ANIMATION';
843  AnimationMode[AnimationMode.CONTENT_FIRST_WITH_JUMP = 3] = 'CONTENT_FIRST_WITH_JUMP';
844  AnimationMode[AnimationMode.ACTION_FIRST_WITH_JUMP = 4] = 'ACTION_FIRST_WITH_JUMP';
845})(AnimationMode || (AnimationMode = {}));
846
847let SwiperAnimationMode;
848(function (SwiperAnimationMode) {
849  SwiperAnimationMode[SwiperAnimationMode.NO_ANIMATION = 0] = 'NO_ANIMATION';
850  SwiperAnimationMode[SwiperAnimationMode.DEFAULT_ANIMATION = 1] = 'DEFAULT_ANIMATION';
851  SwiperAnimationMode[SwiperAnimationMode.FAST_ANIMATION = 2] = 'FAST_ANIMATION';
852})(SwiperAnimationMode || (SwiperAnimationMode = {}));
853
854let SelectedMode;
855(function (SelectedMode) {
856  SelectedMode[SelectedMode.INDICATOR = 0] = 'INDICATOR';
857  SelectedMode[SelectedMode.BOARD = 1] = 'BOARD';
858})(SelectedMode || (SelectedMode = {}));
859
860let LayoutMode;
861(function (LayoutMode) {
862  LayoutMode[LayoutMode.AUTO = 0] = 'AUTO';
863  LayoutMode[LayoutMode.VERTICAL = 1] = 'VERTICAL';
864  LayoutMode[LayoutMode.HORIZONTAL = 2] = 'HORIZONTAL';
865})(LayoutMode || (LayoutMode = {}));
866
867let LayoutStyle;
868(function (LayoutStyle) {
869  LayoutStyle[LayoutStyle.ALWAYS_CENTER = 0] = 'ALWAYS_CENTER';
870  LayoutStyle[LayoutStyle.ALWAYS_AVERAGE_SPLIT = 1] = 'ALWAYS_AVERAGE_SPLIT';
871  LayoutStyle[LayoutStyle.SPACE_BETWEEN_OR_CENTER = 2] = 'SPACE_BETWEEN_OR_CENTER';
872})(LayoutStyle || (LayoutStyle = {}));
873
874let TabsCacheMode;
875(function (TabsCacheMode) {
876  TabsCacheMode[TabsCacheMode.CACHE_BOTH_SIDE = 0] = 'CACHE_BOTH_SIDE';
877  TabsCacheMode[TabsCacheMode.CACHE_LATEST_SWITCHED = 1] = 'CACHE_LATEST_SWITCHED';
878})(TabsCacheMode || (TabsCacheMode = {}));
879
880let SizeType;
881(function (SizeType) {
882  SizeType[SizeType.Auto = 0] = 'Auto';
883  SizeType[SizeType.XS = 1] = 'XS';
884  SizeType[SizeType.SM = 2] = 'SM';
885  SizeType[SizeType.MD = 3] = 'MD';
886  SizeType[SizeType.LG = 4] = 'LG';
887})(SizeType || (SizeType = {}));
888
889let CancelButtonStyle;
890(function (CancelButtonStyle) {
891  CancelButtonStyle.CONSTANT = 'CONSTANT';
892  CancelButtonStyle.INVISIBLE = 'INVISIBLE';
893  CancelButtonStyle.INPUT = 'INPUT';
894})(CancelButtonStyle || (CancelButtonStyle = {}));
895
896let ColorMode;
897(function (ColorMode) {
898  ColorMode[ColorMode.LIGHT = 0] = 'LIGHT';
899  ColorMode[ColorMode.DARK = 1] = 'DARK';
900})(ColorMode || (ColorMode = {}));
901let LayoutDirection;
902(function (LayoutDirection) {
903  LayoutDirection[LayoutDirection.RTL = 0] = 'RTL';
904  LayoutDirection[LayoutDirection.LTR = 1] = 'LTR';
905})(LayoutDirection || (LayoutDirection = {}));
906
907function isSystemplugin(shortName, moduleType) {
908  const plugin = moduleType === 'ohos' ? globalThis.ohosplugin : globalThis.systemplugin;
909  if (typeof (plugin) !== 'undefined') {
910    let target = plugin;
911    for (let key of shortName.split('.')) {
912      target = target[key];
913      if (!target) {
914        break;
915      }
916    }
917    return typeof (target) !== 'undefined';
918  }
919}
920
921let BarPosition;
922(function (BarPosition) {
923  BarPosition[BarPosition.Start = 0] = 'Start';
924  BarPosition[BarPosition.End = 1] = 'End';
925})(BarPosition || (BarPosition = {}));
926
927let SharedTransitionEffectType;
928(function (SharedTransitionEffectType) {
929  SharedTransitionEffectType[SharedTransitionEffectType.Static = 0] = 'Static';
930  SharedTransitionEffectType[SharedTransitionEffectType.Exchange = 1] = 'Exchange';
931})(SharedTransitionEffectType || (SharedTransitionEffectType = {}));
932
933function $r(id, type, ...params) {
934  return { 'id': id, 'type': type, 'params': params };
935}
936
937function $rawfile(fileName) {
938  return { 'id': 0, 'type': 30000, 'params': [fileName] };
939}
940
941let IndexerAlign;
942(function (IndexerAlign) {
943  IndexerAlign[IndexerAlign.Left = 0] = 'Left';
944  IndexerAlign[IndexerAlign.Right = 1] = 'Right';
945  IndexerAlign[IndexerAlign.START = 2] = 'START';
946  IndexerAlign[IndexerAlign.END = 3] = 'END';
947})(IndexerAlign || (IndexerAlign = {}));
948
949let DialogAlignment;
950(function (DialogAlignment) {
951  DialogAlignment[DialogAlignment.Top = 0] = 'Top';
952  DialogAlignment[DialogAlignment.Center = 1] = 'Center';
953  DialogAlignment[DialogAlignment.Bottom = 2] = 'Bottom';
954  DialogAlignment[DialogAlignment.Default = 3] = 'Default';
955  DialogAlignment[DialogAlignment.TopStart = 4] = 'TopStart';
956  DialogAlignment[DialogAlignment.TopEnd = 5] = 'TopEnd';
957  DialogAlignment[DialogAlignment.CenterStart = 6] = 'CenterStart';
958  DialogAlignment[DialogAlignment.CenterEnd = 7] = 'CenterEnd';
959  DialogAlignment[DialogAlignment.BottomStart = 8] = 'BottomStart';
960  DialogAlignment[DialogAlignment.BottomEnd = 9] = 'BottomEnd';
961})(DialogAlignment || (DialogAlignment = {}));
962
963let HoverModeAreaType;
964(function (HoverModeAreaType) {
965  HoverModeAreaType.TOP_SCREEN = 0;
966  HoverModeAreaType.BOTTOM_SCREEN = 1;
967})(HoverModeAreaType || (HoverModeAreaType = {}));
968
969let DialogButtonStyle;
970(function (DialogButtonStyle) {
971  DialogButtonStyle[DialogButtonStyle.DEFAULT = 0] = 'DEFAULT';
972  DialogButtonStyle[DialogButtonStyle.HIGHLIGHT = 1] = 'HIGHLIGHT';
973})(DialogButtonStyle || (DialogButtonStyle = {}));
974
975let EditMode;
976(function (EditMode) {
977  EditMode[EditMode.None = 0] = 'None';
978  EditMode[EditMode.Deletable = 1] = 'Deletable';
979  EditMode[EditMode.Movable = 2] = 'Movable';
980})(EditMode || (EditMode = {}));
981
982let SwiperDisplayMode;
983(function (SwiperDisplayMode) {
984  SwiperDisplayMode[SwiperDisplayMode.Stretch = 0] = 'Stretch';
985  SwiperDisplayMode[SwiperDisplayMode.AutoLinear = 1] = 'AutoLinear';
986  SwiperDisplayMode[SwiperDisplayMode.STRETCH = 0] = 'STRETCH';
987  SwiperDisplayMode[SwiperDisplayMode.AUTO_LINEAR = 1] = 'AUTO_LINEAR';
988})(SwiperDisplayMode || (SwiperDisplayMode = {}));
989
990var EdgeEffect;
991(function (EdgeEffect) {
992  EdgeEffect[EdgeEffect.Spring = 0] = 'Spring';
993  EdgeEffect[EdgeEffect.Fade = 1] = 'Fade';
994  EdgeEffect[EdgeEffect.None = 2] = 'None';
995})(EdgeEffect || (EdgeEffect = {}));
996
997let DatePickerType;
998(function (DatePickerType) {
999  DatePickerType[DatePickerType.Time = 0] = 'Time';
1000  DatePickerType[DatePickerType.Date = 1] = 'Date';
1001})(DatePickerType || (DatePickerType = {}));
1002
1003let TimePickerFormat;
1004(function (TimePickerFormat) {
1005  TimePickerFormat[TimePickerFormat.HOUR_MINUTE = 0] = 'HOUR_MINUTE';
1006  TimePickerFormat[TimePickerFormat.HOUR_MINUTE_SECOND = 1] = 'HOUR_MINUTE_SECOND';
1007})(TimePickerFormat || (TimePickerFormat = {}));
1008
1009let InputType;
1010(function (InputType) {
1011  InputType[InputType.Normal = 0] = 'Normal';
1012  InputType[InputType.Number = 2] = 'Number';
1013  InputType[InputType.PhoneNumber = 3] = 'PhoneNumber';
1014  InputType[InputType.Email = 5] = 'Email';
1015  InputType[InputType.Password = 7] = 'Password';
1016  InputType[InputType.NUMBER_PASSWORD = 8] = 'NUMBER_PASSWORD';
1017  InputType[InputType.SCREEN_LOCK_PASSWORD = 9] = 'SCREEN_LOCK_PASSWORD';
1018  InputType[InputType.USER_NAME = 10] = 'USER_NAME';
1019  InputType[InputType.NEW_PASSWORD = 11] = 'NEW_PASSWORD';
1020  InputType[InputType.NUMBER_DECIMAL = 12] = 'NUMBER_DECIMAL';
1021  InputType[InputType.URL = 13] = 'URL';
1022})(InputType || (InputType = {}));
1023
1024let SearchType;
1025(function (SearchType) {
1026  SearchType[SearchType.NORMAL = 0] = 'NORMAL';
1027  SearchType[SearchType.NUMBER = 2] = 'NUMBER';
1028  SearchType[SearchType.PHONE_NUMBER = 3] = 'PHONE_NUMBER';
1029  SearchType[SearchType.EMAIL = 5] = 'EMAIL';
1030  SearchType[SearchType.NUMBER_DECIMAL = 12] = 'NUMBER_DECIMAL';
1031  SearchType[SearchType.URL = 13] = 'URL';
1032})(SearchType || (SearchType = {}));
1033
1034let TextAreaType;
1035(function (TextAreaType) {
1036  TextAreaType[TextAreaType.NORMAL = 0] = 'NORMAL';
1037  TextAreaType[TextAreaType.NUMBER = 2] = 'NUMBER';
1038  TextAreaType[TextAreaType.PHONE_NUMBER = 3] = 'PHONE_NUMBER';
1039  TextAreaType[TextAreaType.EMAIL = 5] = 'EMAIL';
1040  TextAreaType[TextAreaType.NUMBER_DECIMAL = 12] = 'NUMBER_DECIMAL';
1041  TextAreaType[TextAreaType.URL = 13] = 'URL';
1042})(TextAreaType || (TextAreaType = {}));
1043
1044let EnterKeyType;
1045(function (EnterKeyType) {
1046  EnterKeyType[EnterKeyType.Go = 2] = 'Go';
1047  EnterKeyType[EnterKeyType.Search = 3] = 'Search';
1048  EnterKeyType[EnterKeyType.Send = 4] = 'Send';
1049  EnterKeyType[EnterKeyType.Next = 5] = 'Next';
1050  EnterKeyType[EnterKeyType.Done = 6] = 'Done';
1051  EnterKeyType[EnterKeyType.PREVIOUS = 7] = 'PREVIOUS';
1052  EnterKeyType[EnterKeyType.NEW_LINE = 8] = 'NEW_LINE';
1053})(EnterKeyType || (EnterKeyType = {}));
1054
1055let ItemState
1056(function (ItemState) {
1057  ItemState[ItemState.Normal = 0] = 'Normal';
1058  ItemState[ItemState.Disabled = 1] = 'Disabled';
1059  ItemState[ItemState.Waiting = 2] = 'Waiting';
1060  ItemState[ItemState.Skip = 3] = 'Skip';
1061})(ItemState || (ItemState = {}));
1062
1063let NavigationTitleMode;
1064(function (NavigationTitleMode) {
1065  NavigationTitleMode[NavigationTitleMode.Free = 0] = 'Free';
1066  NavigationTitleMode[NavigationTitleMode.Full = 1] = 'Full';
1067  NavigationTitleMode[NavigationTitleMode.Mini = 2] = 'Mini';
1068})(NavigationTitleMode || (NavigationTitleMode = {}));
1069
1070let BarStyle;
1071(function (BarStyle) {
1072  BarStyle[BarStyle.STANDARD = 0] = 'STANDARD';
1073  BarStyle[BarStyle.STACK = 1] = 'STACK';
1074  BarStyle[BarStyle.SAFE_AREA_PADDING = 2] = 'SAFE_AREA_PADDING';
1075})(BarStyle || (BarStyle = {}));
1076let NavigationMode;
1077(function (NavigationMode) {
1078  NavigationMode[NavigationMode.Stack = 0] = 'Stack';
1079  NavigationMode[NavigationMode.Split = 1] = 'Split';
1080  NavigationMode[NavigationMode.Auto = 2] = 'Auto';
1081})(NavigationMode || (NavigationMode = {}));
1082
1083let NavRouteMode;
1084(function (NavRouteMode) {
1085  NavRouteMode[NavRouteMode.PUSH_WITH_RECREATE = 0] = 'PUSH_WITH_RECREATE';
1086  NavRouteMode[NavRouteMode.PUSH = 1] = 'PUSH';
1087  NavRouteMode[NavRouteMode.REPLACE = 2] = 'REPLACE';
1088})(NavRouteMode || (NavRouteMode = {}));
1089
1090let NavBarPosition;
1091(function (NavBarPosition) {
1092  NavBarPosition[NavBarPosition.Start = 0] = 'Start';
1093  NavBarPosition[NavBarPosition.End = 1] = 'End';
1094})(NavBarPosition || (NavBarPosition = {}));
1095
1096let TitleHeight;
1097(function (TitleHeight) {
1098  TitleHeight.MainOnly = 'MainOnly';
1099  TitleHeight.MainWithSub = 'MainWithSub';
1100})(TitleHeight || (TitleHeight = {}));
1101
1102let NavDestinationMode;
1103(function (NavDestinationMode) {
1104  NavDestinationMode[NavDestinationMode.STANDARD = 0] = 'STANDARD';
1105  NavDestinationMode[NavDestinationMode.DIALOG = 1] = 'DIALOG';
1106}(NavDestinationMode || (NavDestinationMode = {})));
1107
1108let NavigationSystemTransitionType;
1109(function (NavigationSystemTransitionType) {
1110  NavigationSystemTransitionType[NavigationSystemTransitionType.DEFAULT = 0] = 'DEFAULT';
1111  NavigationSystemTransitionType[NavigationSystemTransitionType.NONE = 1] = 'NONE';
1112  NavigationSystemTransitionType[NavigationSystemTransitionType.TITLE = 2] = 'TITLE';
1113  NavigationSystemTransitionType[NavigationSystemTransitionType.CONTENT = 3] = 'CONTENT';
1114  NavigationSystemTransitionType[NavigationSystemTransitionType.FADE = 4] = 'FADE';
1115  NavigationSystemTransitionType[NavigationSystemTransitionType.EXPLODE = 5] = 'EXPLODE';
1116  NavigationSystemTransitionType[NavigationSystemTransitionType.SLIDE_RIGHT = 6] = 'SLIDE_RIGHT';
1117  NavigationSystemTransitionType[NavigationSystemTransitionType.SLIDE_BOTTOM = 7] = 'SLIDE_BOTTOM';
1118}(NavigationSystemTransitionType || (NavigationSystemTransitionType = {})));
1119
1120let NavigationOperation;
1121(function (NavigationOperation) {
1122  NavigationOperation[NavigationOperation.PUSH = 1] = 'PUSH';
1123  NavigationOperation[NavigationOperation.POP = 2] = 'POP';
1124  NavigationOperation[NavigationOperation.REPLACE = 3] = 'REPLACE';
1125}(NavigationOperation || (NavigationOperation = {})));
1126
1127let ResponseType;
1128(function (ResponseType) {
1129  ResponseType[ResponseType.RightClick = 0] = 'RightClick';
1130  ResponseType[ResponseType.LongPress = 1] = 'LongPress';
1131})(ResponseType || (ResponseType = {}));
1132
1133let RichEditorResponseType;
1134(function (RichEditorResponseType) {
1135  RichEditorResponseType[RichEditorResponseType.RIGHT_CLICK = 0] = 'RIGHT_CLICK';
1136  RichEditorResponseType[RichEditorResponseType.LONG_PRESS = 1] = 'LONG_PRESS';
1137  RichEditorResponseType[RichEditorResponseType.SELECT = 2] = 'SELECT';
1138  RichEditorResponseType[RichEditorResponseType.DEFAULT = 3] = 'DEFAULT';
1139})(RichEditorResponseType || (RichEditorResponseType = {}));
1140
1141let MenuType;
1142(function (MenuType) {
1143  MenuType[MenuType.SELECTION_MENU = 0] = 'SELECTION_MENU';
1144  MenuType[MenuType.PREVIEW_MENU = 1] = 'PREVIEW_MENU';
1145})(MenuType || (MenuType = {}));
1146
1147let MenuPreviewMode;
1148(function (MenuPreviewMode) {
1149  MenuPreviewMode[MenuPreviewMode.NONE = 0] = 'NONE';
1150  MenuPreviewMode[MenuPreviewMode.IMAGE = 1] = 'IMAGE';
1151})(MenuPreviewMode || (MenuPreviewMode = {}));
1152
1153let HapticFeedbackMode;
1154(function (HapticFeedbackMode) {
1155  HapticFeedbackMode[HapticFeedbackMode.DISABLED = 0] = 'DISABLED';
1156  HapticFeedbackMode[HapticFeedbackMode.ENABLED = 1] = 'ENABLED';
1157  HapticFeedbackMode[HapticFeedbackMode.AUTO = 2] = 'AUTO';
1158})(HapticFeedbackMode || (HapticFeedbackMode = {}));
1159
1160let DismissReason;
1161(function (DismissReason) {
1162  DismissReason[DismissReason.PRESS_BACK = 0] = 'PRESS_BACK';
1163  DismissReason[DismissReason.TOUCH_OUTSIDE = 1] = 'TOUCH_OUTSIDE';
1164  DismissReason[DismissReason.CLOSE_BUTTON = 2] = 'CLOSE_BUTTON';
1165  DismissReason[DismissReason.SLIDE_DOWN = 3] = 'SLIDE_DOWN';
1166})(DismissReason || (DismissReason = {}));
1167
1168let HoverEffect;
1169(function (HoverEffect) {
1170  HoverEffect[HoverEffect.Auto = 4] = 'Auto';
1171  HoverEffect[HoverEffect.Scale = 2] = 'Scale';
1172  HoverEffect[HoverEffect.Board = 3] = 'Board';
1173  HoverEffect[HoverEffect.Highlight = 3] = 'Highlight';
1174  HoverEffect[HoverEffect.None = 0] = 'None';
1175})(HoverEffect || (HoverEffect = {}));
1176
1177let ScrollBarDirection;
1178(function (ScrollBarDirection) {
1179  ScrollBarDirection[ScrollBarDirection.Vertical = 0] = 'Vertical';
1180  ScrollBarDirection[ScrollBarDirection.Horizontal = 1] = 'Horizontal';
1181  ScrollBarDirection[ScrollBarDirection.None = 2] = 'None';
1182})(ScrollBarDirection || (ScrollBarDirection = {}));
1183
1184let Placement;
1185(function (Placement) {
1186  Placement[Placement.Left = 0] = 'Left';
1187  Placement[Placement.Right = 1] = 'Right';
1188  Placement[Placement.Top = 2] = 'Top';
1189  Placement[Placement.Bottom = 3] = 'Bottom';
1190  Placement[Placement.TopLeft = 4] = 'TopLeft';
1191  Placement[Placement.TopRight = 5] = 'TopRight';
1192  Placement[Placement.BottomLeft = 6] = 'BottomLeft';
1193  Placement[Placement.BottomRight = 7] = 'BottomRight';
1194  Placement[Placement.LeftTop = 8] = 'LeftTop';
1195  Placement[Placement.LeftBottom = 9] = 'LeftBottom';
1196  Placement[Placement.RightTop = 10] = 'RightTop';
1197  Placement[Placement.RightBottom = 11] = 'RightBottom';
1198})(Placement || (Placement = {}));
1199
1200let DialogStatus;
1201(function (DialogStatus) {
1202  DialogStatus[DialogStatus.Accept = 0] = 'Accept';
1203  DialogStatus[DialogStatus.Cancel = 1] = 'Cancel';
1204  DialogStatus[DialogStatus.Update = 2] = 'Update';
1205})(DialogStatus || (DialogStatus = {}));
1206
1207let SourceType;
1208(function (SourceType) {
1209  SourceType[SourceType.Unknown = 0] = 'Unknown';
1210  SourceType[SourceType.Mouse = 1] = 'Mouse';
1211  SourceType[SourceType.TouchScreen = 2] = 'TouchScreen';
1212  SourceType[SourceType.Keyboard = 4] = 'Keyboard';
1213})(SourceType || (SourceType = {}));
1214
1215let SourceTool;
1216(function (SourceTool) {
1217  SourceTool[SourceTool.Unknown = 0] = 'Unknown';
1218  SourceTool[SourceTool.FINGER = 1] = 'FINGER';
1219  SourceTool.Finger = 1;
1220  SourceTool[SourceTool.PEN = 2] = 'PEN';
1221  SourceTool.Pen = 2;
1222  SourceTool[SourceTool.MOUSE = 7] = 'MOUSE';
1223  SourceTool[SourceTool.TOUCHPAD = 9] = 'TOUCHPAD';
1224  SourceTool[SourceTool.JOYSTICK = 10] = 'JOYSTICK';
1225})(SourceTool || (SourceTool = {}));
1226
1227let KeySource;
1228(function (KeySource) {
1229  KeySource[KeySource.Unknown = 0] = 'Unknown';
1230  KeySource[KeySource.Keyboard = 4] = 'Keyboard';
1231  KeySource[KeySource.JOYSTICK = 5] = 'JOYSTICK';
1232})(KeySource || (KeySource = {}));
1233
1234let SeekMode;
1235(function (SeekMode) {
1236  SeekMode[SeekMode.PreviousKeyframe = 0] = 'PreviousKeyframe';
1237  SeekMode[SeekMode.NextKeyframe = 1] = 'NextKeyframe';
1238  SeekMode[SeekMode.ClosestKeyframe = 2] = 'ClosestKeyframe';
1239  SeekMode[SeekMode.Accurate = 3] = 'Accurate';
1240})(SeekMode || (SeekMode = {}));
1241
1242let SideBarContainerType;
1243(function (SideBarContainerType) {
1244  SideBarContainerType[SideBarContainerType.AUTO = 2] = 'AUTO';
1245  SideBarContainerType[SideBarContainerType.Overlay = 1] = 'Overlay';
1246  SideBarContainerType[SideBarContainerType.Embed = 0] = 'Embed';
1247})(SideBarContainerType || (SideBarContainerType = {}));
1248
1249let SideBarPosition;
1250(function (SideBarPosition) {
1251  SideBarPosition[SideBarPosition.Start = 0] = 'Start';
1252  SideBarPosition[SideBarPosition.End = 1] = 'End';
1253})(SideBarPosition || (SideBarPosition = {}));
1254
1255let PlaybackSpeed;
1256(function (PlaybackSpeed) {
1257  PlaybackSpeed.Speed_Forward_0_75_X = '0.75';
1258  PlaybackSpeed.Speed_Forward_1_00_X = '1.00';
1259  PlaybackSpeed.Speed_Forward_1_25_X = '1.25';
1260  PlaybackSpeed.Speed_Forward_1_75_X = '1.75';
1261  PlaybackSpeed.Speed_Forward_2_00_X = '2.00';
1262})(PlaybackSpeed || (PlaybackSpeed = {}));
1263
1264let MixedMode;
1265(function (MixedMode) {
1266  MixedMode[MixedMode.All = 0] = 'All';
1267  MixedMode[MixedMode.Compatible = 1] = 'Compatible';
1268  MixedMode[MixedMode.None = 2] = 'None';
1269})(MixedMode || (MixedMode = {}));
1270
1271let HitTestType;
1272(function (HitTestType) {
1273  HitTestType[HitTestType.EditText = 0] = 'EditText';
1274  HitTestType[HitTestType.Email = 1] = 'Email';
1275  HitTestType[HitTestType.HttpAnchor = 2] = 'HttpAnchor';
1276  HitTestType[HitTestType.HttpAnchorImg = 3] = 'HttpAnchorImg';
1277  HitTestType[HitTestType.Img = 4] = 'Img';
1278  HitTestType[HitTestType.Map = 5] = 'Map';
1279  HitTestType[HitTestType.Phone = 6] = 'Phone';
1280  HitTestType[HitTestType.Unknown = 7] = 'Unknown';
1281})(HitTestType || (HitTestType = {}));
1282
1283let CacheMode;
1284(function (CacheMode) {
1285  CacheMode[CacheMode.Default = 0] = 'Default';
1286  CacheMode[CacheMode.None = 1] = 'None';
1287  CacheMode[CacheMode.Online = 2] = 'Online';
1288  CacheMode[CacheMode.Only = 3] = 'Only';
1289})(CacheMode || (CacheMode = {}));
1290
1291let WebDarkMode;
1292(function (WebDarkMode) {
1293  WebDarkMode[WebDarkMode.Off = 0] = 'Off';
1294  WebDarkMode[WebDarkMode.On = 1] = 'On';
1295  WebDarkMode[WebDarkMode.Auto = 2] = 'Auto';
1296})(WebDarkMode || (WebDarkMode = {}));
1297
1298let OverScrollMode;
1299(function (OverScrollMode) {
1300  OverScrollMode[OverScrollMode.NEVER = 0] = 'NEVER';
1301  OverScrollMode[OverScrollMode.ALWAYS = 1] = 'ALWAYS';
1302})(OverScrollMode || (OverScrollMode = {}));
1303
1304let BlurOnKeyboardHideMode;
1305(function (BlurOnKeyboardHideMode) {
1306  BlurOnKeyboardHideMode[BlurOnKeyboardHideMode.SILENT = 0] = 'SILENT';
1307  BlurOnKeyboardHideMode[BlurOnKeyboardHideMode.BLUR = 1] = 'BLUR';
1308})(BlurOnKeyboardHideMode || (BlurOnKeyboardHideMode = {}));
1309
1310let RenderExitReason;
1311(function (RenderExitReason) {
1312  RenderExitReason[RenderExitReason.ProcessAbnormalTermination = 0] = 'ProcessAbnormalTermination';
1313  RenderExitReason[RenderExitReason.ProcessWasKilled = 1] = 'ProcessWasKilled';
1314  RenderExitReason[RenderExitReason.ProcessCrashed = 2] = 'ProcessCrashed';
1315  RenderExitReason[RenderExitReason.ProcessOom = 3] = 'ProcessOom';
1316  RenderExitReason[RenderExitReason.ProcessExitUnknown = 4] = 'ProcessExitUnknown';
1317})(RenderExitReason || (RenderExitReason = {}));
1318
1319let RenderProcessNotRespondingReason;
1320(function (RenderProcessNotRespondingReason) {
1321  RenderProcessNotRespondingReason[RenderProcessNotRespondingReason.INPUT_TIMEOUT = 0] = 'INPUT_TIMEOUT';
1322  RenderProcessNotRespondingReason[RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT = 1] = 'NAVIGATION_COMMIT_TIMEOUT';
1323})(RenderProcessNotRespondingReason || (RenderProcessNotRespondingReason = {}));
1324
1325let SslError;
1326(function (SslError) {
1327  SslError[SslError.Invalid = 0] = 'Invalid';
1328  SslError[SslError.HostMismatch = 1] = 'HostMismatch';
1329  SslError[SslError.DateInvalid = 2] = 'DateInvalid';
1330  SslError[SslError.Untrusted = 3] = 'Untrusted';
1331})(SslError || (SslError = {}));
1332
1333let FileSelectorMode;
1334(function (FileSelectorMode) {
1335  FileSelectorMode[FileSelectorMode.FileOpenMode = 0] = 'FileOpenMode';
1336  FileSelectorMode[FileSelectorMode.FileOpenMultipleMode = 1] = 'FileOpenMultipleMode';
1337  FileSelectorMode[FileSelectorMode.FileOpenFolderMode = 2] = 'FileOpenFolderMode';
1338  FileSelectorMode[FileSelectorMode.FileSaveMode = 3] = 'FileSaveMode';
1339})(FileSelectorMode || (FileSelectorMode = {}));
1340
1341let ProtectedResourceType;
1342(function (ProtectedResourceType) {
1343  ProtectedResourceType.MidiSysex = 'TYPE_MIDI_SYSEX';
1344  ProtectedResourceType.VIDEO_CAPTURE = 'TYPE_VIDEO_CAPTURE';
1345  ProtectedResourceType.AUDIO_CAPTURE = 'TYPE_AUDIO_CAPTURE';
1346  ProtectedResourceType.SENSOR = 'TYPE_SENSOR';
1347})(ProtectedResourceType || (ProtectedResourceType = {}));
1348
1349let ProgressType;
1350(function (ProgressType) {
1351  ProgressType[ProgressType.Linear = 0] = 'Linear';
1352  ProgressType[ProgressType.Ring = 1] = 'Ring';
1353  ProgressType[ProgressType.Eclipse = 2] = 'Eclipse';
1354  ProgressType[ProgressType.ScaleRing = 3] = 'ScaleRing';
1355  ProgressType[ProgressType.Capsule = 4] = 'Capsule';
1356})(ProgressType || (ProgressType = {}));
1357
1358let ProgressStatus;
1359(function (ProgressStatus) {
1360  ProgressStatus.LOADING = 'LOADING';
1361  ProgressStatus.PROGRESSING = 'PROGRESSING';
1362})(ProgressStatus || (ProgressStatus = {}));
1363
1364let MessageLevel
1365(function (MessageLevel) {
1366  MessageLevel[MessageLevel.Debug = 1] = 'Debug';
1367  MessageLevel[MessageLevel.Info = 2] = 'Info';
1368  MessageLevel[MessageLevel.Warn = 3] = 'Warn';
1369  MessageLevel[MessageLevel.Error = 4] = 'Error';
1370  MessageLevel[MessageLevel.Log = 5] = 'Log';
1371})(MessageLevel || (MessageLevel = {}));
1372
1373let CopyOptions;
1374(function (CopyOptions) {
1375  CopyOptions[CopyOptions.None = 0] = 'None';
1376  CopyOptions[CopyOptions.InApp = 1] = 'InApp';
1377  CopyOptions[CopyOptions.LocalDevice = 2] = 'LocalDevice';
1378  CopyOptions[CopyOptions.CROSS_DEVICE = 3] = 'CrossDevice';
1379})(CopyOptions || (CopyOptions = {}));
1380
1381let SymbolRenderingStrategy;
1382(function (SymbolRenderingStrategy) {
1383  SymbolRenderingStrategy[SymbolRenderingStrategy.SINGLE = 0] = 'SINGLE';
1384  SymbolRenderingStrategy[SymbolRenderingStrategy.MULTIPLE_COLOR = 1] = 'MULTIPLE_COLOR';
1385  SymbolRenderingStrategy[SymbolRenderingStrategy.MULTIPLE_OPACITY = 2] = 'MULTIPLE_OPACITY';
1386})(SymbolRenderingStrategy || (SymbolRenderingStrategy = {}));
1387
1388let SymbolEffectStrategy;
1389(function (SymbolEffectStrategy) {
1390  SymbolEffectStrategy[SymbolEffectStrategy.NONE = 0] = 'NONE';
1391  SymbolEffectStrategy[SymbolEffectStrategy.SCALE = 1] = 'SCALE';
1392  SymbolEffectStrategy[SymbolEffectStrategy.HIERARCHICAL = 2] = 'HIERARCHICAL';
1393})(SymbolEffectStrategy || (SymbolEffectStrategy = {}));
1394
1395let EffectDirection;
1396(function (EffectDirection) {
1397  EffectDirection[EffectDirection.DOWN = 0] = 'DOWN';
1398  EffectDirection[EffectDirection.UP = 1] = 'UP';
1399})(EffectDirection || (EffectDirection = {}));
1400
1401let EffectScope;
1402(function (EffectScope) {
1403  EffectScope[EffectScope.LAYER = 0] = 'LAYER';
1404  EffectScope[EffectScope.WHOLE = 1] = 'WHOLE';
1405})(EffectScope || (EffectScope = {}));
1406
1407let EffectFillStyle;
1408(function (EffectFillStyle) {
1409  EffectFillStyle[EffectFillStyle.CUMULATIVE = 0] = 'CUMULATIVE';
1410  EffectFillStyle[EffectFillStyle.ITERATIVE = 1] = 'ITERATIVE';
1411})(EffectFillStyle || (EffectFillStyle = {}));
1412
1413let WebKeyboardAvoidMode;
1414(function (WebKeyboardAvoidMode) {
1415  WebKeyboardAvoidMode[WebKeyboardAvoidMode.RESIZE_VISUAL = 0] = 'RESIZE_VISUAL';
1416  WebKeyboardAvoidMode[WebKeyboardAvoidMode.RESIZE_CONTENT = 1] = 'RESIZE_CONTENT';
1417  WebKeyboardAvoidMode[WebKeyboardAvoidMode.OVERLAYS_CONTENT = 2] = 'OVERLAYS_CONTENT';
1418})(WebKeyboardAvoidMode || (WebKeyboardAvoidMode = {}));
1419
1420let KeyboardAppearance;
1421(function (KeyboardAppearance) {
1422  KeyboardAppearance[KeyboardAppearance.NONE_IMMERSIVE = 0] = 'NONE_IMMERSIVE';
1423  KeyboardAppearance[KeyboardAppearance.IMMERSIVE = 1] = 'IMMERSIVE';
1424  KeyboardAppearance[KeyboardAppearance.LIGHT_IMMERSIVE = 2] = 'LIGHT_IMMERSIVE';
1425  KeyboardAppearance[KeyboardAppearance.DARK_IMMERSIVE = 3] = 'DARK_IMMERSIVE';
1426})(KeyboardAppearance || (KeyboardAppearance = {}));
1427
1428class SymbolEffect {
1429}
1430
1431class ScaleSymbolEffect extends SymbolEffect {
1432  constructor(scope, direction) {
1433    super();
1434    this.type = 'ScaleSymbolEffect';
1435    this.scope = scope;
1436    this.direction = direction;
1437  }
1438  scope(value) {
1439    this.scope = value;
1440    return this;
1441  }
1442  direction(value) {
1443    this.direction = value;
1444    return this;
1445  }
1446}
1447
1448class HierarchicalSymbolEffect extends SymbolEffect {
1449  constructor(fillStyle) {
1450    super();
1451    this.type = 'HierarchicalSymbolEffect';
1452    this.fillStyle = fillStyle;
1453  }
1454}
1455
1456class AppearSymbolEffect extends SymbolEffect {
1457  constructor(scope) {
1458    super();
1459    this.type = 'AppearSymbolEffect';
1460    this.scope = scope;
1461  }
1462  scope(value) {
1463    this.scope = value;
1464    return this;
1465  }
1466}
1467class DisappearSymbolEffect extends SymbolEffect {
1468  constructor(scope) {
1469    super();
1470    this.type = 'DisappearSymbolEffect';
1471    this.scope = scope;
1472  }
1473  scope(value) {
1474    this.scope = value;
1475    return this;
1476  }
1477}
1478
1479class BounceSymbolEffect extends SymbolEffect {
1480  constructor(scope, direction) {
1481    super();
1482    this.type = 'BounceSymbolEffect';
1483    this.scope = scope;
1484    this.direction = direction;
1485  }
1486  scope(value) {
1487    this.scope = value;
1488    return this;
1489  }
1490  direction(value) {
1491    this.direction = value;
1492    return this;
1493  }
1494}
1495
1496class ReplaceSymbolEffect extends SymbolEffect {
1497  constructor(scope) {
1498    super();
1499    this.type = 'ReplaceSymbolEffect';
1500    this.scope = scope;
1501  }
1502  scope(value) {
1503    this.scope = value;
1504    return this;
1505  }
1506}
1507
1508class PulseSymbolEffect extends SymbolEffect {
1509  constructor() {
1510    super();
1511    this.type = 'PulseSymbolEffect';
1512  }
1513}
1514
1515let RichEditorSpanType;
1516(function (RichEditorSpanType) {
1517  RichEditorSpanType[RichEditorSpanType.TEXT = 0] = 'TEXT';
1518  RichEditorSpanType[RichEditorSpanType.IMAGE = 1] = 'IMAGE';
1519  RichEditorSpanType[RichEditorSpanType.MIXED = 2] = 'MIXED';
1520  RichEditorSpanType[RichEditorSpanType.BUILDER = 3] = 'BUILDER';
1521  RichEditorSpanType[RichEditorSpanType.DEFAULT = 4] = 'DEFAULT';
1522})(RichEditorSpanType || (RichEditorSpanType = {}));
1523
1524let ListItemAlign;
1525(function (ListItemAlign) {
1526  ListItemAlign[ListItemAlign.Start = 0] = 'Start';
1527  ListItemAlign[ListItemAlign.Center = 1] = 'Center';
1528  ListItemAlign[ListItemAlign.End = 2] = 'End';
1529})(ListItemAlign || (ListItemAlign = {}));
1530
1531var BlurStyle;
1532(function (BlurStyle) {
1533  BlurStyle[BlurStyle.NoMaterial = 0] = 'NoMaterial';
1534  BlurStyle[BlurStyle.Thin = 1] = 'Thin';
1535  BlurStyle[BlurStyle.Regular = 2] = 'Regular';
1536  BlurStyle[BlurStyle.Thick = 3] = 'Thick';
1537  BlurStyle[BlurStyle.BackgroundThin = 4] = 'BackgroundThin';
1538  BlurStyle[BlurStyle.BackgroundRegular = 5] = 'BackgroundRegular';
1539  BlurStyle[BlurStyle.BackgroundThick = 6] = 'BackgroundThick';
1540  BlurStyle[BlurStyle.BackgroundUltraThick = 7] = 'BackgroundUltraThick';
1541  BlurStyle[BlurStyle.BACKGROUND_THIN = 4] = 'BACKGROUND_THIN';
1542  BlurStyle[BlurStyle.BACKGROUND_REGULAR = 5] = 'BACKGROUND_REGULAR';
1543  BlurStyle[BlurStyle.BACKGROUND_THICK = 6] = 'BACKGROUND_THICK';
1544  BlurStyle[BlurStyle.BACKGROUND_ULTRA_THICK = 7] = 'BACKGROUND_ULTRA_THICK';
1545  BlurStyle[BlurStyle.COMPONENT_ULTRA_THIN = 8] = 'COMPONENT_ULTRA_THIN';
1546  BlurStyle[BlurStyle.COMPONENT_THIN = 9] = 'COMPONENT_THIN';
1547  BlurStyle[BlurStyle.COMPONENT_REGULAR = 10] = 'COMPONENT_REGULAR';
1548  BlurStyle[BlurStyle.COMPONENT_THICK = 11] = 'COMPONENT_THICK';
1549  BlurStyle[BlurStyle.COMPONENT_ULTRA_THICK = 12] = 'COMPONENT_ULTRA_THICK';
1550  BlurStyle[BlurStyle.NONE = 0] = 'NONE';
1551})(BlurStyle || (BlurStyle = {}));
1552
1553let BlurStyleActivePolicy;
1554(function (BlurStyleActivePolicy) {
1555  BlurStyleActivePolicy[BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE = 0] = 'FOLLOWS_WINDOW_ACTIVE_STATE';
1556  BlurStyleActivePolicy[BlurStyleActivePolicy.ALWAYS_ACTIVE = 1] = 'ALWAYS_ACTIVE';
1557  BlurStyleActivePolicy[BlurStyleActivePolicy.ALWAYS_INACTIVE = 2] = 'ALWAYS_INACTIVE';
1558})(BlurStyleActivePolicy || (BlurStyleActivePolicy = {}));
1559
1560let BlurType;
1561(function (BlurType) {
1562  BlurType[BlurType.WITHIN_WINDOW = 0] = 'WITHIN_WINDOW';
1563  BlurType[BlurType.BEHIND_WINDOW = 1] = 'BEHIND_WINDOW';
1564})(BlurType || (BlurType = {}));
1565
1566let EffectType;
1567(function (EffectType) {
1568  EffectType[EffectType.DEFAULT = 0] = 'DEFAULT';
1569  EffectType[EffectType.WINDOW_EFFECT = 1] = 'WINDOW_EFFECT';
1570})(EffectType || (EffectType = {}));
1571
1572let ThemeColorMode;
1573(function (ThemeColorMode) {
1574  ThemeColorMode[ThemeColorMode.System = 0] = 'System';
1575  ThemeColorMode[ThemeColorMode.Light = 1] = 'Light';
1576  ThemeColorMode[ThemeColorMode.Dark = 2] = 'Dark';
1577  ThemeColorMode[ThemeColorMode.SYSTEM = 0] = 'SYSTEM';
1578  ThemeColorMode[ThemeColorMode.LIGHT = 1] = 'LIGHT';
1579  ThemeColorMode[ThemeColorMode.DARK = 2] = 'DARK';
1580})(ThemeColorMode || (ThemeColorMode = {}));
1581
1582let AdaptiveColor;
1583(function (AdaptiveColor) {
1584  AdaptiveColor[AdaptiveColor.Default = 0] = 'Default';
1585  AdaptiveColor[AdaptiveColor.Average = 1] = 'Average';
1586  AdaptiveColor[AdaptiveColor.DEFAULT = 0] = 'DEFAULT';
1587  AdaptiveColor[AdaptiveColor.AVERAGE = 1] = 'AVERAGE';
1588})(AdaptiveColor || (AdaptiveColor = {}));
1589
1590let ShadowStyle;
1591(function (ShadowStyle) {
1592  ShadowStyle[ShadowStyle.OuterDefaultXS = 0] = 'OuterDefaultXS';
1593  ShadowStyle[ShadowStyle.OuterDefaultSM = 1] = 'OuterDefaultSM';
1594  ShadowStyle[ShadowStyle.OuterDefaultMD = 2] = 'OuterDefaultMD';
1595  ShadowStyle[ShadowStyle.OuterDefaultLG = 3] = 'OuterDefaultLG';
1596  ShadowStyle[ShadowStyle.OuterFloatingSM = 4] = 'OuterFloatingSM';
1597  ShadowStyle[ShadowStyle.OuterFloatingMD = 5] = 'OuterFloatingMD';
1598  ShadowStyle[ShadowStyle.OUTER_DEFAULT_XS = 0] = 'OUTER_DEFAULT_XS';
1599  ShadowStyle[ShadowStyle.OUTER_DEFAULT_SM = 1] = 'OUTER_DEFAULT_SM';
1600  ShadowStyle[ShadowStyle.OUTER_DEFAULT_MD = 2] = 'OUTER_DEFAULT_MD';
1601  ShadowStyle[ShadowStyle.OUTER_DEFAULT_LG = 3] = 'OUTER_DEFAULT_LG';
1602  ShadowStyle[ShadowStyle.OUTER_FLOATING_SM = 4] = 'OUTER_FLOATING_SM';
1603  ShadowStyle[ShadowStyle.OUTER_FLOATING_MD = 5] = 'OUTER_FLOATING_MD';
1604})(ShadowStyle || (ShadowStyle = {}));
1605
1606let ShadowType;
1607(function (ShadowType) {
1608  ShadowType[ShadowType.COLOR = 0] = 'COLOR';
1609  ShadowType[ShadowType.BLUR = 1] = 'BLUR';
1610})(ShadowType || (ShadowType = {}));
1611
1612let BreakpointsReference;
1613(function (BreakpointsReference) {
1614  BreakpointsReference[BreakpointsReference.WindowSize = 0] = 'WindowSize';
1615  BreakpointsReference[BreakpointsReference.ComponentSize = 1] = 'ComponentSize';
1616})(BreakpointsReference || (BreakpointsReference = {}));
1617
1618let GridRowDirection;
1619(function (GridRowDirection) {
1620  GridRowDirection[GridRowDirection.Row = 0] = 'Row';
1621  GridRowDirection[GridRowDirection.RowReverse = 1] = 'RowReverse';
1622})(GridRowDirection || (GridRowDirection = {}));
1623
1624let HitTestMode;
1625(function (HitTestMode) {
1626  HitTestMode[HitTestMode.Default = 0] = 'Default';
1627  HitTestMode[HitTestMode.Block = 1] = 'Block';
1628  HitTestMode[HitTestMode.Transparent = 2] = 'Transparent';
1629  HitTestMode[HitTestMode.None = 3] = 'None';
1630})(HitTestMode || (HitTestMode = {}));
1631
1632let GridDirection;
1633(function (GridDirection) {
1634  GridDirection[GridDirection.Row = 0] = 'Row';
1635  GridDirection[GridDirection.Column = 1] = 'Column';
1636  GridDirection[GridDirection.RowReverse = 2] = 'RowReverse';
1637  GridDirection[GridDirection.ColumnReverse = 3] = 'ColumnReverse';
1638})(GridDirection || (GridDirection = {}));
1639
1640let SelectStatus;
1641(function (SelectStatus) {
1642  SelectStatus[SelectStatus.All = 0] = 'All';
1643  SelectStatus[SelectStatus.Part = 1] = 'Part';
1644  SelectStatus[SelectStatus.None = 2] = 'None';
1645})(SelectStatus || (SelectStatus = {}));
1646
1647let ContextMenuSourceType;
1648(function (ContextMenuSourceType) {
1649  ContextMenuSourceType[ContextMenuSourceType.None = 0] = 'None';
1650  ContextMenuSourceType[ContextMenuSourceType.Mouse = 1] = 'Mouse';
1651  ContextMenuSourceType[ContextMenuSourceType.LongPress = 2] = 'LongPress';
1652})(ContextMenuSourceType || (ContextMenuSourceType = {}));
1653
1654let ContextMenuMediaType;
1655(function (ContextMenuMediaType) {
1656  ContextMenuMediaType[ContextMenuMediaType.None = 0] = 'None';
1657  ContextMenuMediaType[ContextMenuMediaType.Image = 1] = 'Image';
1658})(ContextMenuMediaType || (ContextMenuMediaType = {}));
1659
1660let ContextMenuInputFieldType;
1661(function (ContextMenuInputFieldType) {
1662  ContextMenuInputFieldType[ContextMenuInputFieldType.None = 0] = 'None';
1663  ContextMenuInputFieldType[ContextMenuInputFieldType.PlainText = 1] = 'PlainText';
1664  ContextMenuInputFieldType[ContextMenuInputFieldType.Password = 2] = 'Password';
1665  ContextMenuInputFieldType[ContextMenuInputFieldType.Number = 3] = 'Number';
1666  ContextMenuInputFieldType[ContextMenuInputFieldType.Telephone = 4] = 'Telephone';
1667  ContextMenuInputFieldType[ContextMenuInputFieldType.Other = 5] = 'Other';
1668})(ContextMenuInputFieldType || (ContextMenuInputFieldType = {}));
1669
1670let ContextMenuEditStateFlags;
1671(function (ContextMenuEditStateFlags) {
1672  ContextMenuEditStateFlags[ContextMenuEditStateFlags.NONE = 0] = 'None';
1673  ContextMenuEditStateFlags[ContextMenuEditStateFlags.CAN_CUT = 1] = 'CAN_CUT';
1674  ContextMenuEditStateFlags[ContextMenuEditStateFlags.CAN_COPY = 2] = 'CAN_COPY';
1675  ContextMenuEditStateFlags[ContextMenuEditStateFlags.CAN_PASTE = 4] = 'CAN_PASTE';
1676  ContextMenuEditStateFlags[ContextMenuEditStateFlags.CAN_SELECT_ALL = 8] = 'CAN_SELECT_ALL';
1677})(ContextMenuEditStateFlags || (ContextMenuEditStateFlags = {}));
1678
1679let TransitionEdge;
1680(function (TransitionEdge) {
1681  TransitionEdge.TOP = 0;
1682  TransitionEdge.BOTTOM = 1;
1683  TransitionEdge.START = 2;
1684  TransitionEdge.END = 3;
1685})(TransitionEdge || (TransitionEdge = {}));
1686
1687let TouchTestStrategy;
1688(function (TouchTestStrategy) {
1689  TouchTestStrategy.DEFAULT = 0;
1690  TouchTestStrategy.FORWARD_COMPETITION = 1;
1691  TouchTestStrategy.FORWARD = 2;
1692})(TouchTestStrategy || (TouchTestStrategy = {}));
1693
1694let ModalTransition;
1695(function (ModalTransition) {
1696  ModalTransition[ModalTransition.Default = 0] = 'Default';
1697  ModalTransition[ModalTransition.None = 1] = 'None';
1698  ModalTransition[ModalTransition.Alpha = 2] = 'Alpha';
1699  ModalTransition[ModalTransition.DEFAULT = 0] = 'DEFAULT';
1700  ModalTransition[ModalTransition.NONE = 1] = 'NONE';
1701  ModalTransition[ModalTransition.ALPHA = 2] = 'ALPHA';
1702})(ModalTransition || (ModalTransition = {}));
1703
1704let ModifierKey;
1705(function (ModifierKey) {
1706  ModifierKey[ModifierKey.CTRL = 0] = 'CTRL';
1707  ModifierKey[ModifierKey.SHIFT = 1] = 'SHIFT';
1708  ModifierKey[ModifierKey.ALT = 2] = 'ALT';
1709})(ModifierKey || (ModifierKey = {}));
1710
1711let SheetSize;
1712(function (SheetSize) {
1713  SheetSize.MEDIUM = 'MEDIUM';
1714  SheetSize.LARGE = 'LARGE';
1715  SheetSize.FIT_CONTENT = 'FIT_CONTENT';
1716})(SheetSize || (SheetSize = {}));
1717
1718let SheetType;
1719(function (SheetType) {
1720  SheetType[SheetType.BOTTOM = 0] = 'BOTTOM';
1721  SheetType[SheetType.CENTER = 1] = 'CENTER';
1722  SheetType[SheetType.POPUP = 2] = 'POPUP';
1723})(SheetType || (SheetType = {}));
1724
1725let SheetMode;
1726(function (SheetMode) {
1727  SheetMode[SheetMode.OVERLAY = 0] = 'OVERLAY';
1728  SheetMode[SheetMode.EMBEDDED = 1] = 'EMBEDDED';
1729})(SheetMode || (SheetMode = {}));
1730
1731let ScrollSizeMode ;
1732(function (ScrollSizeMode ) {
1733  ScrollSizeMode[ScrollSizeMode.FOLLOW_DETENT = 0] = 'FOLLOW_DETENT';
1734  ScrollSizeMode[ScrollSizeMode.CONTINUOUS = 1] = 'CONTINUOUS';
1735})(ScrollSizeMode || (ScrollSizeMode = {}));
1736
1737let SheetKeyboardAvoidMode;
1738(function (SheetKeyboardAvoidMode) {
1739  SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.NONE = 0] = 'NONE';
1740  SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE = 1] = 'TRANSLATE_AND_RESIZE';
1741  SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.RESIZE_ONLY = 2] = 'RESIZE_ONLY';
1742  SheetKeyboardAvoidMode[SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL = 3] = 'TRANSLATE_AND_SCROLL';
1743})(SheetKeyboardAvoidMode || (SheetKeyboardAvoidMode = {}));
1744
1745let FunctionKey;
1746(function (FunctionKey) {
1747  FunctionKey[FunctionKey.ESC = 0] = 'ESC';
1748  FunctionKey[FunctionKey.F1 = 1] = 'F1';
1749  FunctionKey[FunctionKey.F2 = 2] = 'F2';
1750  FunctionKey[FunctionKey.F3 = 3] = 'F3';
1751  FunctionKey[FunctionKey.F4 = 4] = 'F4';
1752  FunctionKey[FunctionKey.F5 = 5] = 'F5';
1753  FunctionKey[FunctionKey.F6 = 6] = 'F6';
1754  FunctionKey[FunctionKey.F7 = 7] = 'F7';
1755  FunctionKey[FunctionKey.F8 = 8] = 'F8';
1756  FunctionKey[FunctionKey.F9 = 9] = 'F9';
1757  FunctionKey[FunctionKey.F10 = 10] = 'F10';
1758  FunctionKey[FunctionKey.F11 = 11] = 'F11';
1759  FunctionKey[FunctionKey.F12 = 12] = 'F12';
1760  FunctionKey[FunctionKey.TAB = 13] = 'TAB';
1761  FunctionKey[FunctionKey.DPAD_UP = 14] = 'DPAD_UP';
1762  FunctionKey[FunctionKey.DPAD_DOWN = 15] = 'DPAD_DOWN';
1763  FunctionKey[FunctionKey.DPAD_LEFT = 16] = 'DPAD_LEFT';
1764  FunctionKey[FunctionKey.DPAD_RIGHT = 17] = 'DPAD_RIGHT';
1765})(FunctionKey || (FunctionKey = {}));
1766
1767let ContentType;
1768(function (ContentType) {
1769  ContentType[ContentType.USER_NAME = 0] = 'USER_NAME';
1770  ContentType[ContentType.PASSWORD = 1] = 'PASSWORD';
1771  ContentType[ContentType.NEW_PASSWORD = 2] = 'NEW_PASSWORD';
1772  ContentType[ContentType.FULL_STREET_ADDRESS = 3] = 'FULL_STREET_ADDRESS';
1773  ContentType[ContentType.HOUSE_NUMBER = 4] = 'HOUSE_NUMBER';
1774  ContentType[ContentType.DISTRICT_ADDRESS = 5] = 'DISTRICT_ADDRESS';
1775  ContentType[ContentType.CITY_ADDRESS = 6] = 'CITY_ADDRESS';
1776  ContentType[ContentType.PROVINCE_ADDRESS = 7] = 'PROVINCE_ADDRESS';
1777  ContentType[ContentType.COUNTRY_ADDRESS = 8] = 'COUNTRY_ADDRESS';
1778  ContentType[ContentType.PERSON_FULL_NAME = 9] = 'PERSON_FULL_NAME';
1779  ContentType[ContentType.PERSON_LAST_NAME = 10] = 'PERSON_LAST_NAME';
1780  ContentType[ContentType.PERSON_FIRST_NAME = 11] = 'PERSON_FIRST_NAME';
1781  ContentType[ContentType.PHONE_NUMBER = 12] = 'PHONE_NUMBER';
1782  ContentType[ContentType.PHONE_COUNTRY_CODE = 13] = 'PHONE_COUNTRY_CODE';
1783  ContentType[ContentType.FULL_PHONE_NUMBER = 14] = 'FULL_PHONE_NUMBER';
1784  ContentType[ContentType.EMAIL_ADDRESS = 15] = 'EMAIL_ADDRESS';
1785  ContentType[ContentType.BANK_CARD_NUMBER = 16] = 'BANK_CARD_NUMBER';
1786  ContentType[ContentType.ID_CARD_NUMBER = 17] = 'ID_CARD_NUMBER';
1787  ContentType[ContentType.PRECISE_TIME = 18] = 'PRECISE_TIME';
1788  ContentType[ContentType.HOUR_AND_MINUTE = 19] = 'HOUR_AND_MINUTE';
1789  ContentType[ContentType.DATE = 20] = 'DATE';
1790  ContentType[ContentType.MONTH = 21] = 'MONTH';
1791  ContentType[ContentType.YEAR = 22] = 'YEAR';
1792  ContentType[ContentType.NICKNAME = 23] = 'NICKNAME';
1793  ContentType[ContentType.DETAIL_INFO_WITHOUT_STREET = 24] = 'DETAIL_INFO_WITHOUT_STREET';
1794  ContentType[ContentType.FORMAT_ADDRESS = 25] = 'FORMAT_ADDRESS';
1795  ContentType[ContentType.PASSPORT_NUMBER = 26] = 'PASSPORT_NUMBER';
1796  ContentType[ContentType.VALIDITY = 27] = 'VALIDITY';
1797  ContentType[ContentType.ISSUE_AT = 28] = 'ISSUE_AT';
1798  ContentType[ContentType.ORGANIZATION = 29] = 'ORGANIZATION';
1799  ContentType[ContentType.TAX_ID = 30] = 'TAX_ID';
1800  ContentType[ContentType.ADDRESS_CITY_AND_STATE = 31] = 'ADDRESS_CITY_AND_STATE';
1801  ContentType[ContentType.FLIGHT_NUMBER = 32] = 'FLIGHT_NUMBER';
1802  ContentType[ContentType.LICENSE_NUMBER = 33] = 'LICENSE_NUMBER';
1803  ContentType[ContentType.LICENSE_FILE_NUMBER = 34] = 'LICENSE_FILE_NUMBER';
1804  ContentType[ContentType.LICENSE_PLATE = 35] = 'LICENSE_PLATE';
1805  ContentType[ContentType.ENGINE_NUMBER = 36] = 'ENGINE_NUMBER';
1806  ContentType[ContentType.LICENSE_CHASSIS_NUMBER = 37] = 'LICENSE_CHASSIS_NUMBER';
1807})(ContentType || (ContentType = {}));
1808
1809let GestureJudgeResult;
1810(function (GestureJudgeResult) {
1811  GestureJudgeResult[GestureJudgeResult.CONTINUE = 0] = 'CONTINUE';
1812  GestureJudgeResult[GestureJudgeResult.REJECT = 1] = 'REJECT';
1813})(GestureJudgeResult || (GestureJudgeResult = {}));
1814
1815let GestureControl;
1816(function (GestureControl) {
1817  let GestureType;
1818  (function (GestureType) {
1819    GestureType[GestureType.TAP_GESTURE = 0] = 'TAP_GESTURE';
1820    GestureType[GestureType.LONG_PRESS_GESTURE = 1] = 'LONG_PRESS_GESTURE';
1821    GestureType[GestureType.PAN_GESTURE = 2] = 'PAN_GESTURE';
1822    GestureType[GestureType.PINCH_GESTURE = 3] = 'PINCH_GESTURE';
1823    GestureType[GestureType.SWIPE_GESTURE = 4] = 'SWIPE_GESTURE';
1824    GestureType[GestureType.ROTATION_GESTURE = 5] = 'ROTATION_GESTURE';
1825    GestureType[GestureType.DRAG = 6] = 'DRAG';
1826    GestureType[GestureType.CLICK = 7] = 'CLICK';
1827  })(GestureType = GestureControl.GestureType || (GestureControl.GestureType = {}));
1828})(GestureControl || (GestureControl = {}));
1829
1830let TransitionHierarchyStrategy;
1831(function (TransitionHierarchyStrategy) {
1832  TransitionHierarchyStrategy[TransitionHierarchyStrategy.NONE = 0] = 'NONE';
1833  TransitionHierarchyStrategy[TransitionHierarchyStrategy.ADAPTIVE = 1] = 'ADAPTIVE';
1834})(TransitionHierarchyStrategy || (TransitionHierarchyStrategy = {}));
1835
1836let KeyboardAvoidMode;
1837(function (KeyboardAvoidMode) {
1838    KeyboardAvoidMode[KeyboardAvoidMode.DEFAULT = 0] = 'DEFAULT';
1839    KeyboardAvoidMode[KeyboardAvoidMode.NONE = 1] = 'NONE';
1840})(KeyboardAvoidMode || (KeyboardAvoidMode = {}));
1841
1842class SubTabBarStyle {
1843  constructor(content) {
1844    this.type = 'SubTabBarStyle';
1845    this.content = content;
1846  }
1847  static of(content) {
1848    return new SubTabBarStyle(content);
1849  }
1850  indicator(arg) {
1851    this.indicator = arg;
1852    return this;
1853  }
1854  selectedMode(arg) {
1855    this.selectedMode = arg;
1856    return this;
1857  }
1858  board(arg) {
1859    this.board = arg;
1860    return this;
1861  }
1862  labelStyle(arg) {
1863    this.labelStyle = arg;
1864    return this;
1865  }
1866  padding(arg) {
1867    this.padding = arg;
1868    return this;
1869  }
1870  id(arg) {
1871    this.id = arg;
1872    return this;
1873  }
1874}
1875
1876class DrawModifier {
1877  invalidate() { }
1878}
1879
1880class ProgressMask {
1881  constructor(value, total, color) {
1882    this.type = 'ProgressMask';
1883    this.value = value;
1884    this.total = total;
1885    this.color = color;
1886  }
1887
1888  updateProgress(arg) {
1889    this.value = arg;
1890    return this;
1891  }
1892
1893  updateColor(arg) {
1894    this.color = arg;
1895    return this;
1896  }
1897
1898  enableBreathingAnimation(arg) {
1899    this.breathe = arg;
1900    return this;
1901  }
1902}
1903
1904class BottomTabBarStyle {
1905  constructor(icon, text) {
1906    this.type = 'BottomTabBarStyle';
1907    this.icon = icon;
1908    this.text = text;
1909  }
1910  static of(icon, text) {
1911    return new BottomTabBarStyle(icon, text);
1912  }
1913  padding(arg) {
1914    this.padding = arg;
1915    return this;
1916  }
1917  layoutMode(arg) {
1918    this.layoutMode = arg;
1919    return this;
1920  }
1921  verticalAlign(arg) {
1922    this.verticalAlign = arg;
1923    return this;
1924  }
1925  symmetricExtensible(arg) {
1926    this.symmetricExtensible = arg;
1927    return this;
1928  }
1929  labelStyle(arg) {
1930    this.labelStyle = arg;
1931    return this;
1932  }
1933  id(arg) {
1934    this.id = arg;
1935    return this;
1936  }
1937  iconStyle(arg) {
1938    this.iconStyle = arg;
1939    return this;
1940  }
1941}
1942
1943class Indicator {
1944  top(value) {
1945    this.topValue = value;
1946    return this;
1947  }
1948  left(value) {
1949    this.leftValue = value;
1950    return this;
1951  }
1952  right(value) {
1953    this.rightValue = value;
1954    return this;
1955  }
1956  bottom(...args) {
1957    if (args.length === 1) {
1958      this.bottomValue = args[0];
1959      this.setIgnoreSizeValue = false;
1960    }
1961    if (args.length === 2) {
1962      this.bottomValue = args[0];
1963      this.ignoreSizeValue = args[1];
1964      this.setIgnoreSizeValue = true;
1965    }
1966    return this;
1967  }
1968  start(value) {
1969    this.startValue = value;
1970    return this;
1971  }
1972  end(value) {
1973    this.endValue = value;
1974    return this;
1975  }
1976  static dot() {
1977    return new DotIndicator();
1978  }
1979  static digit() {
1980    return new DigitIndicator();
1981  }
1982}
1983
1984class DotIndicator extends Indicator {
1985  constructor() {
1986    super();
1987    this.type = 'DotIndicator';
1988  }
1989  itemWidth(value) {
1990    this.itemWidthValue = value;
1991    return this;
1992  }
1993  itemHeight(value) {
1994    this.itemHeightValue = value;
1995    return this;
1996  }
1997  selectedItemWidth(value) {
1998    this.selectedItemWidthValue = value;
1999    return this;
2000  }
2001  selectedItemHeight(value) {
2002    this.selectedItemHeightValue = value;
2003    return this;
2004  }
2005  mask(value) {
2006    this.maskValue = value;
2007    return this;
2008  }
2009  color(value) {
2010    this.colorValue = value;
2011    return this;
2012  }
2013  selectedColor(value) {
2014    this.selectedColorValue = value;
2015    return this;
2016  }
2017  maxDisplayCount(value) {
2018    this.maxDisplayCountValue = value;
2019    return this;
2020  }
2021  space(value) {
2022    this.spaceValue = value;
2023    return this;
2024  }
2025}
2026
2027class DigitIndicator extends Indicator {
2028  constructor() {
2029    super();
2030    this.type = 'DigitIndicator';
2031  }
2032  fontColor(value) {
2033    this.fontColorValue = value;
2034    return this;
2035  }
2036  selectedFontColor(value) {
2037    this.selectedFontColorValue = value;
2038    return this;
2039  }
2040  digitFont(value) {
2041    this.digitFontValue = value;
2042    return this;
2043  }
2044  selectedDigitFont(value) {
2045    this.selectedDigitFontValue = value;
2046    return this;
2047  }
2048}
2049
2050let TextHeightAdaptivePolicy;
2051(function (TextHeightAdaptivePolicy) {
2052  TextHeightAdaptivePolicy[TextHeightAdaptivePolicy.MAX_LINES_FIRST = 0] = 'MAX_LINES_FIRST';
2053  TextHeightAdaptivePolicy[TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST = 1] = 'MIN_FONT_SIZE_FIRST';
2054  TextHeightAdaptivePolicy[TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST = 2] = 'LAYOUT_CONSTRAINT_FIRST';
2055})(TextHeightAdaptivePolicy || (TextHeightAdaptivePolicy = {}));
2056
2057let ArrowPosition;
2058(function (ArrowPosition) {
2059  ArrowPosition[ArrowPosition.END = 0] = 'END';
2060  ArrowPosition[ArrowPosition.START = 1] = 'START';
2061})(ArrowPosition || (ArrowPosition = {}));
2062
2063class TransitionEffect {
2064  type_ = '';
2065  effect_ = undefined;
2066  animation_ = undefined;
2067  // use successor_ to mark whether this is an instance of TransitionEffect
2068  successor_ = null;
2069
2070  constructor(type, effect) {
2071    this.type_ = type;
2072    this.effect_ = effect;
2073  }
2074
2075  static get IDENTITY() {
2076    return new TransitionEffect('identity', undefined);
2077  }
2078  static get OPACITY() {
2079    return new TransitionEffect('opacity', 0);
2080  }
2081  static get SLIDE() {
2082    return new TransitionEffect('asymmetric', {
2083      appear: new TransitionEffect('move', TransitionEdge.START),
2084      disappear: new TransitionEffect('move', TransitionEdge.END)
2085    });
2086  }
2087  static get SLIDE_SWITCH() {
2088    return new TransitionEffect('slideSwitch', undefined);
2089  }
2090  static translate(option) {
2091    return new TransitionEffect('translate', option);
2092  }
2093  static rotate(option) {
2094    return new TransitionEffect('rotate', option);
2095  }
2096  static scale(option) {
2097    return new TransitionEffect('scale', option);
2098  }
2099  static opacity(value) {
2100    return new TransitionEffect('opacity', value);
2101  }
2102  static move(edge) {
2103    return new TransitionEffect('move', edge);
2104  }
2105  static asymmetric(appearEffect, disappearEffect) {
2106    return new TransitionEffect('asymmetric', {
2107      appear: appearEffect,
2108      disappear: disappearEffect
2109    });
2110  }
2111
2112  animation(option) {
2113    this.animation_ = option;
2114    return this;
2115  }
2116  combine(nextEffect) {
2117    if (nextEffect == null || nextEffect == undefined) {
2118      return this;
2119    }
2120    let lastEffect = this;
2121    while (lastEffect.successor_ != null) {
2122      lastEffect = lastEffect.successor_;
2123    }
2124    lastEffect.successor_ = nextEffect;
2125    return this;
2126  }
2127}
2128
2129class ColorContent {
2130  colorContent_ = '';
2131
2132  constructor(colorContent) {
2133    this.colorContent_ = colorContent;
2134  }
2135
2136  static get ORIGIN() {
2137    return new ColorContent('ORIGIN');
2138  }
2139}
2140
2141class TextMenuItemId {
2142  id_ = '';
2143
2144  constructor(id) {
2145    this.id_ = id;
2146  }
2147
2148  static of(id) {
2149    return new TextMenuItemId(id);
2150  }
2151
2152  equals(id) {
2153    return id.id_ === this.id_;
2154  }
2155
2156  static get CUT() {
2157    return new TextMenuItemId('OH_DEFAULT_CUT');
2158  }
2159
2160  static get COPY() {
2161    return new TextMenuItemId('OH_DEFAULT_COPY');
2162  }
2163
2164  static get PASTE() {
2165    return new TextMenuItemId('OH_DEFAULT_PASTE');
2166  }
2167
2168  static get SELECT_ALL() {
2169    return new TextMenuItemId('OH_DEFAULT_SELECT_ALL');
2170  }
2171
2172  static get TRANSLATE() {
2173    return new TextMenuItemId('OH_DEFAULT_TRANSLATE');
2174  }
2175
2176  static get SEARCH() {
2177    return new TextMenuItemId('OH_DEFAULT_SEARCH');
2178  }
2179
2180  static get SHARE() {
2181    return new TextMenuItemId('OH_DEFAULT_SHARE');
2182  }
2183
2184  static get COLLABORATION_SERVICE() {
2185    return new TextMenuItemId('OH_DEFAULT_COLLABORATION_SERVICE');
2186  }
2187
2188  static get CAMERA_INPUT() {
2189    return new TextMenuItemId('OH_DEFAULT_CAMERA_INPUT');
2190  }
2191
2192  static get AI_WRITER() {
2193    return new TextMenuItemId('OH_DEFAULT_AI_WRITE');
2194  }
2195}
2196
2197globalThis.TextMenuItemId = TextMenuItemId;
2198
2199let SliderBlockType;
2200(function (SliderBlockType) {
2201  SliderBlockType[SliderBlockType.DEFAULT = 0] = 'DEFAULT';
2202  SliderBlockType[SliderBlockType.IMAGE = 1] = 'IMAGE';
2203  SliderBlockType[SliderBlockType.SHAPE = 2] = 'SHAPE';
2204})(SliderBlockType || (SliderBlockType = {}));
2205
2206let SliderInteraction;
2207(function (SliderInteraction) {
2208  SliderInteraction[SliderInteraction.SLIDE_AND_CLICK = 0] = 'SLIDE_AND_CLICK';
2209  SliderInteraction[SliderInteraction.SLIDE_ONLY = 1] = 'SLIDE_ONLY';
2210  SliderInteraction[SliderInteraction.SLIDE_AND_CLICK_UP = 2] = 'SLIDE_AND_CLICK_UP';
2211})(SliderInteraction || (SliderInteraction = {}));
2212
2213let TitleStyle;
2214(function (TitleStyle) {
2215  TitleStyle[TitleStyle.ListMode = 0] = 'ListMode';
2216  TitleStyle[TitleStyle.ContentMode = 1] = 'ContentMode';
2217})(TitleStyle || (TitleStyle = {}));
2218
2219let OperationStyle;
2220(function (OperationStyle) {
2221  OperationStyle[OperationStyle.TextArrow = 0] = 'TextArrow';
2222  OperationStyle[OperationStyle.Button = 1] = 'Button';
2223  OperationStyle[OperationStyle.IconGroup = 2] = 'IconGroup';
2224})(OperationStyle || (OperationStyle = {}));
2225
2226let TabItemType;
2227(function (TabItemType) {
2228  TabItemType[TabItemType.Text = 0] = 'Text';
2229  TabItemType[TabItemType.Icon = 1] = 'Icon';
2230})(TabItemType || (TabItemType = {}));
2231
2232let EditableLeftIconType;
2233(function (EditableLeftIconType) {
2234  EditableLeftIconType[EditableLeftIconType.Back = 0] = 'Back';
2235  EditableLeftIconType[EditableLeftIconType.Cancel = 1] = 'Cancel';
2236})(EditableLeftIconType || (EditableLeftIconType = {}));
2237
2238let ContentIconPosition;
2239(function (ContentIconPosition) {
2240  ContentIconPosition[ContentIconPosition.Top = 0] = 'Top';
2241  ContentIconPosition[ContentIconPosition.Center = 1] = 'Center';
2242})(ContentIconPosition || (ContentIconPosition = {}));
2243
2244let ContentTextStyle;
2245(function (ContentTextStyle) {
2246  ContentTextStyle[ContentTextStyle.SingleLine = 0] = 'SingleLine';
2247  ContentTextStyle[ContentTextStyle.DoubleLine = 1] = 'DoubleLine';
2248  ContentTextStyle[ContentTextStyle.ThreeLines = 2] = 'ThreeLines';
2249})(ContentTextStyle || (ContentTextStyle = {}));
2250
2251let MarqueeUpdateStrategy;
2252(function (MarqueeUpdateStrategy) {
2253  MarqueeUpdateStrategy.DEFAULT = 'default';
2254  MarqueeUpdateStrategy.PRESERVE_POSITION = 'preserve_position';
2255})(MarqueeUpdateStrategy || (MarqueeUpdateStrategy = {}));
2256
2257let LaunchMode;
2258(function (LaunchMode) {
2259  LaunchMode[LaunchMode.STANDARD = 0] = 'STANDARD';
2260  LaunchMode[LaunchMode.MOVE_TO_TOP_SINGLETON = 1] = 'MOVE_TO_TOP_SINGLETON';
2261  LaunchMode[LaunchMode.POP_TO_SINGLETON = 2] = 'POP_TO_SINGLETON';
2262  LaunchMode[LaunchMode.NEW_INSTANCE = 3] = 'NEW_INSTANCE';
2263})(LaunchMode || (LaunchMode = {}));
2264
2265class NavPathInfo {
2266  constructor(name, param, onPop, isEntry) {
2267    this.name = name;
2268    this.param = param;
2269    this.onPop = onPop;
2270    this.index = -1;
2271    this.needUpdate = false;
2272    this.needBuildNewInstance = false;
2273    this.navDestinationId = undefined;
2274    this.promise = undefined;
2275    this.replacedDestinationInfo = undefined;
2276    this.recoveryFromReplaceDestination = undefined;
2277    this.isEntry = isEntry;
2278    this.fromRecovery = false;
2279    this.mode = undefined;
2280    this.singletonMoved = false;
2281    this.isForceSet = undefined;
2282  }
2283}
2284
2285class NavPathStack {
2286  constructor() {
2287    this.pathArray = [];
2288    // replace value 0: don't do anything;
2289    // 1: replace value and do replace animation;
2290    // 2: don't replace value but do replace animation
2291    this.isReplace = 0;
2292    this.type = this.constructor.name;
2293    // control all navigation transition animations.
2294    this.disableAllAnimation = false;
2295    // control a single navigation transition animation.
2296    this.animated = true;
2297    // native nav path stack, implement in cpp
2298    this.nativeStack = undefined;
2299    // parent stack
2300    this.parentStack = undefined;
2301    this.popArray = [];
2302    this.interception = undefined;
2303    this.hasSingletonMoved = false;
2304  }
2305  getPathStack() {
2306    return this.nativeStack?.getPathStack(this);
2307  }
2308  setPathStack(pathStack, animated) {
2309    this.nativeStack?.setPathStack(this, pathStack, animated);
2310  }
2311  getJsIndexFromNativeIndex(index) {
2312    for (let i = 0; i < this.pathArray.length; i++) {
2313      if (this.pathArray[i].index === index) {
2314        return i;
2315      }
2316    }
2317    return -1;
2318  }
2319  initNavPathIndex(pathName) {
2320    this.popArray = [];
2321    for (let i = 0; i < this.pathArray.length && i < pathName.length; i++) {
2322      if (pathName[i] === this.pathArray[i].name && this.isReplace !== 1) {
2323        this.pathArray[i].index = i;
2324      }
2325    }
2326  }
2327  getAllPathIndex() {
2328    let array = this.pathArray.flatMap(element => element.index);
2329    return array;
2330  }
2331  findInPopArray(name) {
2332    for (let i = this.popArray.length - 1; i >= 0; i--) {
2333      if (name === this.popArray[i].name) {
2334        let info = this.popArray.splice(i, 1);
2335        return [info[0].index, info[0].navDestinationId];
2336      }
2337    }
2338    return [-1, undefined]; // add new navdestination
2339  }
2340  setNativeStack(stack) {
2341    this.nativeStack = stack;
2342  }
2343  getNativeStack() {
2344    return this.nativeStack;
2345  }
2346  setParent(parent) {
2347    this.parentStack = parent;
2348  }
2349  getParent() {
2350    return this.parentStack;
2351  }
2352  pushName(name, param) {
2353    let info = new NavPathInfo(name, param);
2354    [info.index, info.navDestinationId] = this.findInPopArray(name);
2355    this.pathArray.push(info);
2356    this.isReplace = 0;
2357    this.nativeStack?.onStateChanged();
2358  }
2359  push(info, animated) {
2360    this.pushPath(info, animated);
2361  }
2362  pushPathByName(name, param, onPop, animated) {
2363    let info = undefined;
2364    if (onPop === undefined || typeof onPop === 'boolean') {
2365      info = new NavPathInfo(name, param);
2366    } else {
2367      info = new NavPathInfo(name, param, onPop);
2368    }
2369    [info.index, info.navDestinationId] = this.findInPopArray(name);
2370    this.pathArray.push(info);
2371    this.isReplace = 0;
2372    if (typeof onPop === 'boolean') {
2373      this.animated = onPop;
2374    } else if (animated === undefined) {
2375      this.animated = true;
2376    } else {
2377      this.animated = animated;
2378    }
2379    this.nativeStack?.onStateChanged();
2380  }
2381  pushDestinationByName(name, param, onPop, animated) {
2382    let info = undefined;
2383    if (onPop === undefined || typeof onPop === 'boolean') {
2384      info = new NavPathInfo(name, param);
2385    } else {
2386      info = new NavPathInfo(name, param, onPop);
2387    }
2388    this.isReplace = 0;
2389    if (typeof onPop === 'boolean') {
2390      this.animated = onPop;
2391    } else if (animated === undefined) {
2392      this.animated = true;
2393    } else {
2394      this.animated = animated;
2395    }
2396    [info.index, info.navDestinationId] = this.findInPopArray(name);
2397    this.pathArray.push(info);
2398    this.nativeStack?.onStateChanged();
2399    return new Promise((resolve, reject) => {
2400      info.promise = (errorCode, errorMessage) => {
2401        if (errorCode === 0) {
2402          resolve(0);
2403          return;
2404        }
2405        reject({code: errorCode, message: errorMessage});
2406      };
2407    });
2408  }
2409  parseNavigationOptions(param) {
2410    let launchMode = LaunchMode.STANDARD;
2411    let animated = true;
2412    if (typeof param === 'boolean') {
2413      animated = param;
2414    } else if (param !== undefined && param !== null) {
2415      if (typeof param.animated === 'boolean') {
2416        animated = param.animated;
2417      }
2418      if (param.launchMode !== undefined && param.launchMode !== null) {
2419        launchMode = param.launchMode;
2420      }
2421    }
2422    return [launchMode, animated];
2423  }
2424  pushWithLaunchModeAndAnimated(info, launchMode, animated, createPromise) {
2425    if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON || launchMode === LaunchMode.POP_TO_SINGLETON) {
2426      let index = this.pathArray.findIndex(element => element.name === info.name);
2427      if (index !== -1) {
2428        this.pathArray[index].param = info.param;
2429        this.pathArray[index].onPop = info.onPop;
2430        this.pathArray[index].needUpdate = true;
2431        this.pathArray[index].isEntry = info.isEntry;
2432        this.pathArray[index].singletonMoved = true;
2433        this.hasSingletonMoved = true;
2434        if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON) {
2435          this.moveIndexToTop(index, animated);
2436        } else {
2437          this.innerPopToIndex(index, undefined, animated, false);
2438        }
2439        let promise = null;
2440        if (createPromise) {
2441          promise = new Promise((resolve, reject) => {
2442            resolve();
2443          });
2444        }
2445        return [true, promise];
2446      }
2447    }
2448    return [false, null];
2449  }
2450  checkPathValid(info) {
2451    return info !== undefined && info !== null;
2452  }
2453  pushPath(info, optionParam) {
2454    if (!this.checkPathValid(info)) {
2455      return;
2456    }
2457    let [launchMode, animated] = this.parseNavigationOptions(optionParam);
2458    let [ret, _] = this.pushWithLaunchModeAndAnimated(info, launchMode, animated, false);
2459    if (ret) {
2460      return;
2461    }
2462    [info.index, info.navDestinationId] = this.findInPopArray(info.name);
2463    if (launchMode === LaunchMode.NEW_INSTANCE) {
2464      info.needBuildNewInstance = true;
2465    }
2466    this.pathArray.push(info);
2467    this.isReplace = 0;
2468    this.animated = animated;
2469    this.nativeStack?.onStateChanged();
2470  }
2471  pushDestination(info, optionParam) {
2472    if (!this.checkPathValid(info)) {
2473      let paramErrMsg =
2474            'Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;' +
2475            ' 2. Incorrect parameter types; 3. Parameter verification failed.';
2476      return new Promise((resolve, reject) => {
2477        reject({ code: 401, message: paramErrMsg });
2478      });
2479    }
2480    let [launchMode, animated] = this.parseNavigationOptions(optionParam);
2481    let [ret, promiseRet] = this.pushWithLaunchModeAndAnimated(info, launchMode, animated, true);
2482    if (ret) {
2483      return promiseRet;
2484    }
2485    this.isReplace = 0;
2486    this.animated = animated;
2487    [info.index, info.navDestinationId] = this.findInPopArray(info.name);
2488    if (launchMode === LaunchMode.NEW_INSTANCE) {
2489      info.needBuildNewInstance = true;
2490    }
2491    this.pathArray.push(info);
2492    this.nativeStack?.onStateChanged();
2493    return new Promise((resolve, reject) => {
2494      info.promise = (errorCode, errorMessage) => {
2495        if (errorCode === 0) {
2496          resolve(0);
2497          return;
2498        }
2499        reject({code: errorCode, message: errorMessage});
2500      };
2501    });
2502  }
2503  doReplaceInner(info, optionParam, isReplaceDestination) {
2504    let [launchMode, animated] = this.parseNavigationOptions(optionParam);
2505    let index = -1;
2506    let needCreatePromiseWithLaunchMode = false;
2507    if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON || launchMode === LaunchMode.POP_TO_SINGLETON) {
2508      index = this.pathArray.findIndex(element => element.name === info.name);
2509      if (index !== -1) {
2510        this.pathArray[index].param = info.param;
2511        this.pathArray[index].onPop = info.onPop;
2512        this.pathArray[index].index = -1;
2513        if (index !== this.pathArray.length - 1) {
2514          let targetInfo = this.pathArray.splice(index, 1);
2515          if (launchMode === LaunchMode.MOVE_TO_TOP_SINGLETON) {
2516            this.pathArray.pop();
2517          } else {
2518            this.pathArray.splice(index);
2519          }
2520          this.pathArray.push(targetInfo[0]);
2521        }
2522        if (isReplaceDestination) {
2523          needCreatePromiseWithLaunchMode = true;
2524        }
2525      }
2526    }
2527    if (index === -1) {
2528      if (this.pathArray.length !== 0) {
2529        let popInfo = this.pathArray.pop();
2530        if (isReplaceDestination) {
2531          info.replacedDestinationInfo = popInfo;
2532        }
2533      }
2534      this.pathArray.push(info);
2535      this.pathArray[this.pathArray.length - 1].index = -1;
2536    }
2537    this.isReplace = 1;
2538    this.animated = animated;
2539    this.nativeStack?.onStateChanged();
2540    if (needCreatePromiseWithLaunchMode) {
2541      return new Promise((resolve, reject) => {
2542        resolve();
2543      });
2544    }
2545    return undefined;
2546  }
2547  replacePath(info, optionParam) {
2548    if (!this.checkPathValid(info)) {
2549      return;
2550    }
2551    this.doReplaceInner(info, optionParam);
2552  }
2553  replaceDestination(info, navigationOptions) {
2554    if (!this.checkPathValid(info)) {
2555      let paramErrMsg =
2556            'Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;' +
2557            ' 2. Incorrect parameter types; 3. Parameter verification failed.';
2558      return new Promise((resolve, reject) => {
2559        reject({ code: 401, message: paramErrMsg });
2560      });
2561    }
2562    let promiseWithLaunchMode = this.doReplaceInner(info, navigationOptions, true);
2563    if (promiseWithLaunchMode !== undefined) {
2564      return promiseWithLaunchMode;
2565    }
2566    return new Promise((resolve, reject) => {
2567      info.promise = (errorCode, errorMessage) => {
2568        if (errorCode === 0) {
2569          resolve(0);
2570          return;
2571        }
2572        reject({code: errorCode, message: errorMessage});
2573      };
2574    });
2575  }
2576  replacePathByName(name, param, animated) {
2577    if (this.pathArray.length !== 0) {
2578      this.pathArray.pop();
2579    }
2580    this.isReplace = 1;
2581    this.pathArray.push(new NavPathInfo(name, param));
2582    this.pathArray[this.pathArray.length - 1].index = -1;
2583    if (animated === undefined) {
2584      this.animated = true;
2585    } else {
2586      this.animated = animated;
2587    }
2588    this.nativeStack?.onStateChanged();
2589  }
2590  setIsReplace(value) {
2591    this.isReplace = value;
2592  }
2593  setAnimated(value) {
2594    this.animated = value;
2595  }
2596  pop(result, animated) {
2597    if (this.pathArray.length === 0) {
2598      return undefined;
2599    }
2600    let currentPathInfo = this.pathArray[this.pathArray.length - 1];
2601    let pathInfo = this.pathArray.pop();
2602    this.popArray.push(pathInfo);
2603    this.isReplace = 0;
2604    if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) {
2605      let popInfo = {
2606        info: currentPathInfo,
2607        result: result,
2608      };
2609      currentPathInfo.onPop(popInfo);
2610    }
2611    if (typeof result === 'boolean') {
2612      this.animated = result;
2613    } else if (animated === undefined) {
2614      this.animated = true;
2615    } else {
2616      this.animated = animated;
2617    }
2618    this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result);
2619    this.nativeStack?.onStateChanged();
2620    return pathInfo;
2621  }
2622  popTo(name, animated) {
2623    popToName(name, animated);
2624  }
2625  popToName(name, result, animated) {
2626    let index = this.pathArray.findIndex(element => element.name === name);
2627    if (index === -1) {
2628      return -1;
2629    }
2630    let currentPathInfo = this.pathArray[this.pathArray.length - 1];
2631    this.pathArray.splice(index + 1);
2632    this.isReplace = 0;
2633    if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) {
2634      let popInfo = {
2635        info: currentPathInfo,
2636        result: result,
2637      };
2638      currentPathInfo.onPop(popInfo);
2639    }
2640    if (typeof result === 'boolean') {
2641      this.animated = result;
2642    } else if (animated === undefined) {
2643      this.animated = true;
2644    } else {
2645      this.animated = animated;
2646    }
2647    this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result);
2648    this.nativeStack?.onStateChanged();
2649    return index;
2650  }
2651  innerPopToIndex(index, result, animated, needFireOnResult) {
2652    if (index >= this.pathArray.length) {
2653      return;
2654    }
2655    let currentPathInfo = this.pathArray[this.pathArray.length - 1];
2656    this.pathArray.splice(index + 1);
2657    this.isReplace = 0;
2658    if (result !== undefined && typeof result !== 'boolean' && currentPathInfo.onPop !== undefined) {
2659      let popInfo = {
2660        info: currentPathInfo,
2661        result: result,
2662      };
2663      currentPathInfo.onPop(popInfo);
2664    }
2665    if (typeof result === 'boolean') {
2666      this.animated = result;
2667    } else if (animated === undefined) {
2668      this.animated = true;
2669    } else {
2670      this.animated = animated;
2671    }
2672    if (needFireOnResult) {
2673      this.nativeStack?.onPopCallback(typeof result === 'boolean' ? undefined : result);
2674    }
2675    this.nativeStack?.onStateChanged();
2676  }
2677  popToIndex(index, result, animated) {
2678    this.innerPopToIndex(index, result, animated, true);
2679  }
2680  moveToTop(name, animated) {
2681    let index = this.pathArray.findIndex(element => element.name === name);
2682    if (index === -1) {
2683      return -1;
2684    }
2685    let info = this.pathArray.splice(index, 1);
2686    this.pathArray.push(info[0]);
2687    this.isReplace = 0;
2688    if (animated === undefined) {
2689      this.animated = true;
2690    } else {
2691      this.animated = animated;
2692    }
2693    this.nativeStack?.onStateChanged();
2694    return index;
2695  }
2696  moveIndexToTop(index, animated) {
2697    if (index >= this.pathArray.length) {
2698      return;
2699    }
2700    let info = this.pathArray.splice(index, 1);
2701    this.pathArray.push(info[0]);
2702    this.isReplace = 0;
2703    if (animated === undefined) {
2704      this.animated = true;
2705    } else {
2706      this.animated = animated;
2707    }
2708    this.nativeStack?.onStateChanged();
2709  }
2710  clear(animated) {
2711    if (this.pathArray.length == 0) {
2712      return;
2713    }
2714    this.pathArray.splice(0);
2715    this.isReplace = 0;
2716    if (animated === undefined) {
2717      this.animated = true;
2718    } else {
2719      this.animated = animated;
2720    }
2721    this.nativeStack?.onStateChanged();
2722  }
2723  removeByIndexes(indexes) {
2724    if (!Array.isArray(indexes) || indexes.length === 0) {
2725      return 0;
2726    }
2727    let originLength = this.pathArray.length;
2728    this.pathArray = this.pathArray.filter((item, index) => {
2729      return item && !indexes.includes(index)
2730    });
2731    let cnt = originLength - this.pathArray.length;
2732    if (cnt > 0) {
2733      this.isReplace = 0;
2734      this.nativeStack?.onStateChanged();
2735    }
2736    return cnt;
2737  }
2738  removeByName(name) {
2739    let originLength = this.pathArray.length;
2740    this.pathArray = this.pathArray.filter(item => { return name !== item.name });
2741    let cnt = originLength - this.pathArray.length;
2742    if (cnt > 0) {
2743      this.isReplace = 0;
2744      this.nativeStack?.onStateChanged();
2745    }
2746    return cnt;
2747  }
2748  removeByNavDestinationId(navDestinationId) {
2749    let index = this.pathArray.findIndex(element => element.navDestinationId === navDestinationId);
2750    if (index === -1) {
2751      return false;
2752    }
2753    this.pathArray.splice(index, 1);
2754    this.isReplace = 0;
2755    this.nativeStack?.onStateChanged();
2756    return true;
2757  }
2758  removeIndex(index) {
2759    if (index >= this.pathArray.length) {
2760      return;
2761    }
2762    this.pathArray.splice(index, 1);
2763    this.isReplace = 0;
2764    this.nativeStack?.onStateChanged();
2765  }
2766  removeInvalidPage(index) {
2767    if (index >= this.pathArray.length || index < 0) {
2768      return;
2769    }
2770    if (this.pathArray[index].replacedDestinationInfo !== undefined) {
2771      this.pathArray[index] = this.pathArray[index].replacedDestinationInfo;
2772      this.pathArray[index].recoveryFromReplaceDestination = true;
2773      return;
2774    }
2775    this.pathArray.splice(index, 1);
2776  }
2777  getAllPathName() {
2778    let array = this.pathArray.flatMap(element => element.name);
2779    return array;
2780  }
2781  getParamByIndex(index) {
2782    let item = this.pathArray[index];
2783    if (item === undefined) {
2784      return undefined;
2785    }
2786    return item.param;
2787  }
2788  getParamByName(name) {
2789    let array = new Array();
2790    this.pathArray.forEach((element) => {
2791      if (element.name === name) {
2792        array.push(element.param);
2793      }
2794    });
2795    return array;
2796  }
2797  getIndexByName(name) {
2798    let array = new Array();
2799    this.pathArray.forEach((element, index) => {
2800      if (element.name === name) {
2801        array.push(index);
2802      }
2803    });
2804    return array;
2805  }
2806  getNameByIndex(index) {
2807    let item = this.pathArray[index];
2808    if (item === undefined) {
2809      return undefined;
2810    }
2811    return item.name;
2812  }
2813  getOnPopByIndex(index) {
2814    let item = this.pathArray[index];
2815    if (item === undefined) {
2816      return undefined;
2817    }
2818    return item.onPop;
2819  }
2820  size() {
2821    return this.pathArray.length;
2822  }
2823  disableAnimation(disableAnimation) {
2824    this.disableAllAnimation = disableAnimation;
2825  }
2826  setInterception(interception) {
2827    this.interception = interception;
2828  }
2829  getIsEntryByIndex(index) {
2830    let item = this.pathArray[index];
2831    if (item === undefined) {
2832      return false;
2833    }
2834    return item.isEntry;
2835  }
2836  setIsEntryByIndex(index, isEntry) {
2837    let item = this.pathArray[index];
2838    if (item === undefined) {
2839      return;
2840    }
2841    item.isEntry = isEntry;
2842  }
2843}
2844
2845globalThis.NavPathStack = NavPathStack;
2846
2847class WaterFlowSections {
2848  constructor() {
2849    this.sectionArray = [];
2850    // indicate class has changed.
2851    this.changeFlag = true;
2852    this.changeArray = [];
2853  }
2854
2855  isNonNegativeInt32(input) {
2856    return Number.isSafeInteger(input) && input >= 0 && input <= 2147483647;
2857  }
2858
2859  toArrayIndex(origin, limit) {
2860    // origin is truncated to an integer
2861    let result = Math.trunc(origin);
2862    if (result < 0) {
2863      // Negative index counts back from the end of the sectionArray.
2864      result += limit;
2865      // If origin < -sectionArray.length, 0 is used.
2866      if (result < 0) {
2867        result = 0;
2868      }
2869    } else if (result > limit) {
2870      result = limit;
2871    }
2872    return result;
2873  }
2874
2875  // splice(start: number, deleteCount?: number, sections?: Array<SectionOptions>): boolean;
2876  splice(start, deleteCount, sections) {
2877    let oldLength = this.sectionArray.length;
2878    let paramCount = arguments.length;
2879    if (paramCount === 1) {
2880      this.sectionArray.splice(start);
2881    } else if (paramCount === 2) {
2882      this.sectionArray.splice(start, deleteCount);
2883    } else {
2884      const iterator = sections.values();
2885      for (const section of iterator) {
2886        if (!this.isNonNegativeInt32(section.itemsCount)) {
2887          return false;
2888        }
2889      }
2890      this.sectionArray.splice(start, deleteCount, ...sections);
2891    }
2892
2893    let intStart = this.toArrayIndex(start, oldLength);
2894    let intDeleteCount = 0;
2895    if (paramCount === 1) {
2896      // If deleteCount is omitted, then all the sections from start to the end of the sectionArray will be deleted.
2897      intDeleteCount = oldLength - intStart;
2898    } else {
2899      intDeleteCount = Math.trunc(deleteCount);
2900      if (intDeleteCount > oldLength - intStart) {
2901        intDeleteCount = oldLength - intStart;
2902      }
2903    }
2904    intDeleteCount = intDeleteCount < 0 ? 0 : intDeleteCount;
2905
2906    this.changeArray.push({ start: intStart, deleteCount: intDeleteCount, sections: sections ? sections : [] });
2907    this.changeFlag = !this.changeFlag;
2908    return true;
2909  }
2910
2911  push(section) {
2912    if (!this.isNonNegativeInt32(section.itemsCount)) {
2913      return false;
2914    }
2915    let oldLength = this.sectionArray.length;
2916    this.sectionArray.push(section);
2917    this.changeArray.push({ start: oldLength, deleteCount: 0, sections: [section] });
2918    this.changeFlag = !this.changeFlag;
2919    return true;
2920  }
2921
2922  update(sectionIndex, section) {
2923    if (!this.isNonNegativeInt32(section.itemsCount)) {
2924      return false;
2925    }
2926    let oldLength = this.sectionArray.length;
2927    this.sectionArray.splice(sectionIndex, 1, section);
2928
2929    let intStart = this.toArrayIndex(sectionIndex, oldLength);
2930    this.changeArray.push({ start: intStart, deleteCount: 1, sections: [section] });
2931    this.changeFlag = !this.changeFlag;
2932    return true;
2933  }
2934
2935  values() {
2936    return this.sectionArray;
2937  }
2938
2939  length() {
2940    return this.sectionArray.length;
2941  }
2942
2943  clearChanges() {
2944    UIUtilsImpl.instance().getTarget(this).changeArray.splice(0);
2945  }
2946}
2947
2948let WaterFlowLayoutMode;
2949(function (WaterFlowLayoutMode) {
2950  WaterFlowLayoutMode[WaterFlowLayoutMode.ALWAYS_TOP_DOWN = 0] = 'ALWAYS_TOP_DOWN';
2951  WaterFlowLayoutMode[WaterFlowLayoutMode.SLIDING_WINDOW = 1] = 'SLIDING_WINDOW';
2952})(WaterFlowLayoutMode || (WaterFlowLayoutMode = {}));
2953
2954class ChildrenMainSizeParamError extends Error {
2955  constructor(message, code) {
2956    super(message);
2957    this.code = code;
2958  }
2959}
2960
2961class ChildrenMainSize {
2962
2963  constructor(childDefaultSize) {
2964    if (this.isInvalid(childDefaultSize)) {
2965      throw new ChildrenMainSizeParamError('The parameter check failed.', '401');
2966    }
2967    this.defaultMainSize = childDefaultSize;
2968    this.sizeArray = [];
2969    this.changeFlag = true;
2970    // -1: represent newly created.
2971    this.changeArray = [ { start: -1 } ];
2972  }
2973
2974  set childDefaultSize(value) {
2975    if (this.isInvalid(value)) {
2976      throw new ChildrenMainSizeParamError('The parameter check failed.', '401');
2977    }
2978    this.defaultMainSize = value;
2979  }
2980
2981  get childDefaultSize() {
2982    return this.defaultMainSize;
2983  }
2984
2985  // splice(start: number, deleteCount?: number, childrenSize?: Array<number>);
2986  splice(start, deleteCount, childrenSize) {
2987    let paramCount = arguments.length;
2988    if (this.isInvalid(start)) {
2989      throw new ChildrenMainSizeParamError('The parameter check failed.', '401');
2990    }
2991    let startValue = Math.trunc(start);
2992    let deleteCountValue = deleteCount && !(this.isInvalid(deleteCount)) ? Math.trunc(deleteCount) : 0;
2993    if (paramCount === 1) {
2994      this.sizeArray.splice(startValue);
2995      this.changeArray.push({ start: startValue });
2996    } else if (paramCount === 2) {
2997      this.sizeArray.splice(startValue, deleteCountValue);
2998      this.changeArray.push({ start: startValue, deleteCount: deleteCountValue });
2999    } else if (paramCount === 3) {
3000      let childrenSizeLength = childrenSize ? childrenSize.length : 0;
3001      if (childrenSizeLength === 0) {
3002        childrenSize = [];
3003      }
3004      for (let i = 0; i < childrenSizeLength; i++) {
3005        if (this.isInvalid(childrenSize[i])) {
3006          // -1: represent default size.
3007          childrenSize[i] = -1;
3008        }
3009      }
3010      while (startValue >= this.sizeArray.length) {
3011        this.sizeArray.push(-1);
3012      }
3013      this.sizeArray.splice(startValue, deleteCountValue, ...childrenSize);
3014      this.changeArray.push({ start: startValue, deleteCount: deleteCountValue, childrenSize: childrenSize });
3015    }
3016    this.changeFlag = !this.changeFlag;
3017  }
3018
3019  update(index, childSize) {
3020    if (this.isInvalid(index)) {
3021      throw new ChildrenMainSizeParamError('The parameter check failed.', '401');
3022    } else if (this.isInvalid(childSize)) {
3023      // -1: represent default size.
3024      childSize = -1;
3025    }
3026    let startValue = Math.trunc(index);
3027    while (startValue >= this.sizeArray.length) {
3028      this.sizeArray.push(-1);
3029    }
3030    this.sizeArray.splice(startValue, 1, childSize);
3031    this.changeArray.push({ start: startValue, deleteCount: 1, childrenSize: [childSize] });
3032    this.changeFlag = !this.changeFlag;
3033  }
3034
3035  isInvalid(input) {
3036    return !(Number.isFinite(input) && input >= 0);
3037  }
3038
3039  clearChanges() {
3040    this.changeArray.splice(0);
3041  }
3042}
3043
3044let ImageSpanAlignment;
3045(function (ImageSpanAlignment) {
3046  ImageSpanAlignment[ImageSpanAlignment.NONE = 0] = 'NONE';
3047  ImageSpanAlignment[ImageSpanAlignment.TOP = 1] = 'TOP';
3048  ImageSpanAlignment[ImageSpanAlignment.CENTER = 2] = 'CENTER';
3049  ImageSpanAlignment[ImageSpanAlignment.BOTTOM = 3] = 'BOTTOM';
3050  ImageSpanAlignment[ImageSpanAlignment.BASELINE = 4] = 'BASELINE';
3051})(ImageSpanAlignment || (ImageSpanAlignment = {}));
3052
3053let MenuAlignType;
3054(function (MenuAlignType) {
3055  MenuAlignType[MenuAlignType.START = 0] = 'START';
3056  MenuAlignType[MenuAlignType.CENTER = 1] = 'CENTER';
3057  MenuAlignType[MenuAlignType.END = 2] = 'END';
3058})(MenuAlignType || (MenuAlignType = {}));
3059
3060let AvoidanceMode;
3061(function (AvoidanceMode) {
3062  AvoidanceMode[AvoidanceMode.COVER_TARGET = 0] = 'COVER_TARGET';
3063  AvoidanceMode[AvoidanceMode.AVOID_AROUND_TARGET = 1] = 'AVOID_AROUND_TARGET';
3064})(AvoidanceMode || (AvoidanceMode = {}));
3065
3066let ToolbarItemStatus;
3067(function (ToolbarItemStatus) {
3068  ToolbarItemStatus[ToolbarItemStatus.NORMAL = 0] = 'NORMAL';
3069  ToolbarItemStatus[ToolbarItemStatus.DISABLED = 1] = 'DISABLED';
3070  ToolbarItemStatus[ToolbarItemStatus.ACTIVE = 2] = 'ACTIVE';
3071})(ToolbarItemStatus || (ToolbarItemStatus = {}));
3072
3073let SecurityComponentLayoutDirection;
3074(function (SecurityComponentLayoutDirection) {
3075  SecurityComponentLayoutDirection[SecurityComponentLayoutDirection.HORIZONTAL = 0] = 'HORIZONTAL';
3076  SecurityComponentLayoutDirection[SecurityComponentLayoutDirection.VERTICAL = 1] = 'VERTICAL';
3077})(SecurityComponentLayoutDirection || (SecurityComponentLayoutDirection = {}));
3078
3079let LocationIconStyle;
3080(function (LocationIconStyle) {
3081  LocationIconStyle[LocationIconStyle.FULL_FILLED = 0] = 'FULL_FILLED';
3082  LocationIconStyle[LocationIconStyle.LINES = 1] = 'LINES';
3083})(LocationIconStyle || (LocationIconStyle = {}));
3084
3085let LocationDescription;
3086(function (LocationDescription) {
3087  LocationDescription[LocationDescription.CURRENT_LOCATION = 0] = 'CURRENT_LOCATION';
3088  LocationDescription[LocationDescription.ADD_LOCATION = 1] = 'ADD_LOCATION';
3089  LocationDescription[LocationDescription.SELECT_LOCATION = 2] = 'SELECT_LOCATION';
3090  LocationDescription[LocationDescription.SHARE_LOCATION = 3] = 'SHARE_LOCATION';
3091  LocationDescription[LocationDescription.SEND_LOCATION = 4] = 'SEND_LOCATION';
3092  LocationDescription[LocationDescription.LOCATING = 5] = 'LOCATING';
3093  LocationDescription[LocationDescription.LOCATION = 6] = 'LOCATION';
3094  LocationDescription[LocationDescription.SEND_CURRENT_LOCATION = 7] = 'SEND_CURRENT_LOCATION';
3095  LocationDescription[LocationDescription.RELOCATION = 8] = 'RELOCATION';
3096  LocationDescription[LocationDescription.PUNCH_IN = 9] = 'PUNCH_IN';
3097  LocationDescription[LocationDescription.CURRENT_POSITION = 10] = 'CURRENT_POSITION';
3098})(LocationDescription || (LocationDescription = {}));
3099
3100let LocationButtonOnClickResult;
3101(function (LocationButtonOnClickResult) {
3102  LocationButtonOnClickResult[LocationButtonOnClickResult.SUCCESS = 0] =
3103    'SUCCESS';
3104  LocationButtonOnClickResult[LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED = 1] =
3105    'TEMPORARY_AUTHORIZATION_FAILED ';
3106})(LocationButtonOnClickResult || (LocationButtonOnClickResult = {}));
3107
3108let PasteIconStyle;
3109(function (PasteIconStyle) {
3110  PasteIconStyle[PasteIconStyle.LINES = 0] = 'LINES';
3111})(PasteIconStyle || (PasteIconStyle = {}));
3112
3113let PasteDescription;
3114(function (PasteDescription) {
3115  PasteDescription[PasteDescription.PASTE = 0] = 'PASTE';
3116})(PasteDescription || (PasteDescription = {}));
3117
3118let PasteButtonOnClickResult;
3119(function (PasteButtonOnClickResult) {
3120  PasteButtonOnClickResult[PasteButtonOnClickResult.SUCCESS = 0] =
3121    'SUCCESS';
3122  PasteButtonOnClickResult[PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED = 1] =
3123    'TEMPORARY_AUTHORIZATION_FAILED ';
3124})(PasteButtonOnClickResult || (PasteButtonOnClickResult = {}));
3125
3126let SaveIconStyle;
3127(function (SaveIconStyle) {
3128  SaveIconStyle[SaveIconStyle.FULL_FILLED = 0] = 'FULL_FILLED';
3129  SaveIconStyle[SaveIconStyle.LINES = 1] = 'LINES';
3130  SaveIconStyle[SaveIconStyle.PICTURE = 2] = 'PICTURE';
3131})(SaveIconStyle || (SaveIconStyle = {}));
3132
3133let SaveDescription;
3134(function (SaveDescription) {
3135  SaveDescription[SaveDescription.DOWNLOAD = 0] = 'DOWNLOAD';
3136  SaveDescription[SaveDescription.DOWNLOAD_FILE = 1] = 'DOWNLOAD_FILE';
3137  SaveDescription[SaveDescription.SAVE = 2] = 'SAVE';
3138  SaveDescription[SaveDescription.SAVE_IMAGE = 3] = 'SAVE_IMAGE';
3139  SaveDescription[SaveDescription.SAVE_FILE = 4] = 'SAVE_FILE';
3140  SaveDescription[SaveDescription.DOWNLOAD_AND_SHARE = 5] = 'DOWNLOAD_AND_SHARE';
3141  SaveDescription[SaveDescription.RECEIVE = 6] = 'RECEIVE';
3142  SaveDescription[SaveDescription.CONTINUE_TO_RECEIVE = 7] = 'CONTINUE_TO_RECEIVE';
3143  SaveDescription[SaveDescription.SAVE_TO_GALLERY = 8] = 'SAVE_TO_GALLERY';
3144  SaveDescription[SaveDescription.EXPORT_TO_GALLERY = 9] = 'EXPORT_TO_GALLERY';
3145  SaveDescription[SaveDescription.QUICK_SAVE_TO_GALLERY = 10] = 'QUICK_SAVE_TO_GALLERY';
3146  SaveDescription[SaveDescription.RESAVE_TO_GALLERY = 11] = 'RESAVE_TO_GALLERY';
3147  SaveDescription[SaveDescription.SAVE_ALL = 12] = 'SAVE_ALL';
3148})(SaveDescription || (SaveDescription = {}));
3149
3150let SaveButtonOnClickResult;
3151(function (SaveButtonOnClickResult) {
3152  SaveButtonOnClickResult[SaveButtonOnClickResult.SUCCESS = 0] =
3153    'SUCCESS';
3154  SaveButtonOnClickResult[SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED = 1] =
3155    'TEMPORARY_AUTHORIZATION_FAILED ';
3156})(SaveButtonOnClickResult || (SaveButtonOnClickResult = {}));
3157
3158let ObscuredReasons;
3159(function (ObscuredReasons) {
3160  ObscuredReasons[ObscuredReasons.PLACEHOLDER = 0] = 'PLACEHOLDER';
3161})(ObscuredReasons || (ObscuredReasons = {}));
3162
3163let ListItemStyle;
3164(function (ListItemStyle) {
3165  ListItemStyle[ListItemStyle.NONE = 0] = 'NONE';
3166  ListItemStyle[ListItemStyle.CARD = 1] = 'CARD';
3167})(ListItemStyle || (ListItemStyle = {}));
3168
3169let GridItemStyle;
3170(function (GridItemStyle) {
3171  GridItemStyle[GridItemStyle.NONE = 0] = 'NONE';
3172  GridItemStyle[GridItemStyle.PLAIN = 1] = 'PLAIN';
3173})(GridItemStyle || (GridItemStyle = {}));
3174
3175let ListItemGroupStyle;
3176(function (ListItemGroupStyle) {
3177  ListItemGroupStyle[ListItemGroupStyle.NONE = 0] = 'NONE';
3178  ListItemGroupStyle[ListItemGroupStyle.CARD = 1] = 'CARD';
3179})(ListItemGroupStyle || (ListItemGroupStyle = {}));
3180
3181let DragResult;
3182(function (DragResult) {
3183  DragResult[DragResult.DRAG_SUCCESSFUL = 0] = 'DRAG_SUCCESSFUL';
3184  DragResult[DragResult.DRAG_FAILED = 1] = 'DRAG_FAILED';
3185  DragResult[DragResult.DRAG_CANCELED = 2] = 'DRAG_CANCELED';
3186  DragResult[DragResult.DROP_ENABLED = 3] = 'DROP_ENABLED';
3187  DragResult[DragResult.DROP_DISABLED = 4] = 'DROP_DISABLED';
3188})(DragResult || (DragResult = {}));
3189
3190let XComponentType;
3191(function (XComponentType) {
3192  XComponentType[XComponentType.SURFACE = 0] = 'SURFACE';
3193  XComponentType[XComponentType.COMPONENT = 1] = 'COMPONENT';
3194  XComponentType[XComponentType.TEXTURE = 2] = 'TEXTURE';
3195  XComponentType[XComponentType.NODE = 3] = 'NODE';
3196})(XComponentType || (XComponentType = {}));
3197
3198let NestedScrollMode;
3199(function (NestedScrollMode) {
3200  NestedScrollMode[NestedScrollMode.SELF_ONLY = 0] = 'SELF_ONLY';
3201  NestedScrollMode[NestedScrollMode.SELF_FIRST = 1] = 'SELF_FIRST';
3202  NestedScrollMode[NestedScrollMode.PARENT_FIRST = 2] = 'PARENT_FIRST';
3203  NestedScrollMode[NestedScrollMode.PARALLEL = 3] = 'PARALLEL';
3204})(NestedScrollMode || (NestedScrollMode = {}));
3205
3206let IlluminatedType;
3207(function (IlluminatedType) {
3208  IlluminatedType[IlluminatedType.NONE = 0] = 'NONE';
3209  IlluminatedType[IlluminatedType.BORDER = 1] = 'BORDER';
3210  IlluminatedType[IlluminatedType.CONTENT = 2] = 'CONTENT';
3211  IlluminatedType[IlluminatedType.BORDER_CONTENT = 3] = 'BORDER_CONTENT';
3212  IlluminatedType[IlluminatedType.BLOOM_BORDER = 4] = 'BLOOM_BORDER';
3213  IlluminatedType[IlluminatedType.BLOOM_BORDER_CONTENT = 5] = 'BLOOM_BORDER_CONTENT';
3214})(IlluminatedType || (IlluminatedType = {}));
3215
3216let ScrollAlign;
3217(function (ScrollAlign) {
3218  ScrollAlign[ScrollAlign.START = 0] = 'START';
3219  ScrollAlign[ScrollAlign.CENTER = 1] = 'CENTER';
3220  ScrollAlign[ScrollAlign.END = 2] = 'END';
3221  ScrollAlign[ScrollAlign.AUTO = 3] = 'AUTO';
3222})(ScrollAlign || (ScrollAlign = {}));
3223
3224let SafeAreaType;
3225(function (SafeAreaType) {
3226  SafeAreaType[SafeAreaType.SYSTEM = 0] = 'SYSTEM';
3227  SafeAreaType[SafeAreaType.CUTOUT = 1] = 'CUTOUT';
3228  SafeAreaType[SafeAreaType.KEYBOARD = 2] = 'KEYBOARD';
3229})(SafeAreaType || (SafeAreaType = {}));
3230
3231let SafeAreaEdge;
3232(function (SafeAreaEdge) {
3233  SafeAreaEdge[SafeAreaEdge.TOP = 0] = 'TOP';
3234  SafeAreaEdge[SafeAreaEdge.BOTTOM = 1] = 'BOTTOM';
3235  SafeAreaEdge[SafeAreaEdge.START = 2] = 'START';
3236  SafeAreaEdge[SafeAreaEdge.END = 3] = 'END';
3237})(SafeAreaEdge || (SafeAreaEdge = {}));
3238
3239let LayoutSafeAreaType;
3240(function (LayoutSafeAreaType) {
3241  LayoutSafeAreaType[LayoutSafeAreaType.SYSTEM = 0] = 'SYSTEM';
3242})(LayoutSafeAreaType || (LayoutSafeAreaType = {}));
3243
3244let LayoutSafeAreaEdge;
3245(function (LayoutSafeAreaEdge) {
3246  LayoutSafeAreaEdge[LayoutSafeAreaEdge.TOP = 0] = 'TOP';
3247  LayoutSafeAreaEdge[LayoutSafeAreaEdge.BOTTOM = 1] = 'BOTTOM';
3248})(LayoutSafeAreaEdge || (LayoutSafeAreaEdge = {}));
3249
3250let RenderFit;
3251(function (RenderFit) {
3252  RenderFit[RenderFit.CENTER = 0] = 'CENTER';
3253  RenderFit[RenderFit.TOP = 1] = 'TOP';
3254  RenderFit[RenderFit.BOTTOM = 2] = 'BOTTOM';
3255  RenderFit[RenderFit.LEFT = 3] = 'LEFT';
3256  RenderFit[RenderFit.RIGHT = 4] = 'RIGHT';
3257  RenderFit[RenderFit.TOP_LEFT = 5] = 'TOP_LEFT';
3258  RenderFit[RenderFit.TOP_RIGHT = 6] = 'TOP_RIGHT';
3259  RenderFit[RenderFit.BOTTOM_LEFT = 7] = 'BOTTOM_LEFT';
3260  RenderFit[RenderFit.BOTTOM_RIGHT = 8] = 'BOTTOM_RIGHT';
3261  RenderFit[RenderFit.RESIZE_FILL = 9] = 'RESIZE_FILL';
3262  RenderFit[RenderFit.RESIZE_CONTAIN = 10] = 'RESIZE_CONTAIN';
3263  RenderFit[RenderFit.RESIZE_CONTAIN_TOP_LEFT = 11] = 'RESIZE_CONTAIN_TOP_LEFT';
3264  RenderFit[RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT = 12] = 'RESIZE_CONTAIN_BOTTOM_RIGHT';
3265  RenderFit[RenderFit.RESIZE_COVER = 13] = 'RESIZE_COVER';
3266  RenderFit[RenderFit.RESIZE_COVER_TOP_LEFT = 14] = 'RESIZE_COVER_TOP_LEFT';
3267  RenderFit[RenderFit.RESIZE_COVER_BOTTOM_RIGHT = 15] = 'RESIZE_COVER_BOTTOM_RIGHT';
3268})(RenderFit || (RenderFit = {}));
3269
3270let WebCaptureMode;
3271(function (WebCaptureMode) {
3272  WebCaptureMode[WebCaptureMode.HOME_SCREEN = 0] = 'HOME_SCREEN';
3273})(WebCaptureMode || (WebCaptureMode = {}));
3274
3275let CalendarAlign;
3276(function (CalendarAlign) {
3277  CalendarAlign[CalendarAlign.START = 0] = 'START';
3278  CalendarAlign[CalendarAlign.CENTER = 1] = 'CENTER';
3279  CalendarAlign[CalendarAlign.END = 2] = 'END';
3280})(CalendarAlign || (CalendarAlign = {}));
3281
3282let DragBehavior;
3283(function (DragBehavior) {
3284  DragBehavior[DragBehavior.COPY = 0] = 'COPY';
3285  DragBehavior[DragBehavior.MOVE = 1] = 'MOVE';
3286})(DragBehavior || (DragBehavior = {}));
3287
3288let PatternLockChallengeResult;
3289(function (PatternLockChallengeResult) {
3290  PatternLockChallengeResult[PatternLockChallengeResult.CORRECT = 1] = 'CORRECT';
3291  PatternLockChallengeResult[PatternLockChallengeResult.WRONG = 2] = 'WRONG';
3292})(PatternLockChallengeResult || (PatternLockChallengeResult = {}));
3293
3294let DialogButtonDirection;
3295(function (DialogButtonDirection) {
3296  DialogButtonDirection[DialogButtonDirection.AUTO = 0] = 'AUTO';
3297  DialogButtonDirection[DialogButtonDirection.HORIZONTAL = 1] = 'HORIZONTAL';
3298  DialogButtonDirection[DialogButtonDirection.VERTICAL = 2] = 'VERTICAL';
3299})(DialogButtonDirection || (DialogButtonDirection = {}));
3300
3301let ParticleType;
3302(function (ParticleType) {
3303  ParticleType[ParticleType.POINT = 0] = 'POINT';
3304  ParticleType[ParticleType.IMAGE = 1] = 'IMAGE';
3305})(ParticleType || (ParticleType = {}));
3306
3307let ParticleEmitterShape;
3308(function (ParticleEmitterShape) {
3309  ParticleEmitterShape[ParticleEmitterShape.RECTANGLE = 0] = 'RECTANGLE';
3310  ParticleEmitterShape[ParticleEmitterShape.CIRCLE = 1] = 'CIRCLE';
3311  ParticleEmitterShape[ParticleEmitterShape.ELLIPSE = 2] = 'ELLIPSE';
3312})(ParticleEmitterShape || (ParticleEmitterShape = {}));
3313
3314let DistributionType;
3315(function (DistributionType) {
3316  DistributionType[DistributionType.UNIFORM = 0] = 'UNIFORM';
3317  DistributionType[DistributionType.GAUSSIAN = 1] = 'GAUSSIAN';
3318})(DistributionType || (DistributionType = {}));
3319
3320let ParticleUpdater;
3321(function (ParticleUpdater) {
3322  ParticleUpdater[ParticleUpdater.NONE = 0] = 'NONE';
3323  ParticleUpdater[ParticleUpdater.RANDOM = 1] = 'RANDOM';
3324  ParticleUpdater[ParticleUpdater.CURVE = 2] = 'CURVE';
3325})(ParticleUpdater || (ParticleUpdater = {}));
3326
3327let DisturbanceFieldShape;
3328(function (DisturbanceFieldShape) {
3329  DisturbanceFieldShape[DisturbanceFieldShape.RECT = 0] = 'RECT';
3330  DisturbanceFieldShape[DisturbanceFieldShape.CIRCLE = 1] = 'CIRCLE';
3331  DisturbanceFieldShape[DisturbanceFieldShape.ELLIPSE = 2] = 'ELLIPSE';
3332})(DisturbanceFieldShape || (DisturbanceFieldShape = {}));
3333
3334let SwiperNestedScrollMode;
3335(function (SwiperNestedScrollMode) {
3336  SwiperNestedScrollMode[SwiperNestedScrollMode.SELF_ONLY = 0] = 'SELF_ONLY';
3337  SwiperNestedScrollMode[SwiperNestedScrollMode.SELF_FIRST = 1] = 'SELF_FIRST';
3338})(SwiperNestedScrollMode || (SwiperNestedScrollMode = {}));
3339
3340let PageFlipMode;
3341(function (PageFlipMode) {
3342  PageFlipMode[PageFlipMode.CONTINUOUS = 0] = 'CONTINUOUS';
3343  PageFlipMode[PageFlipMode.SINGLE = 1] = 'SINGLE';
3344})(PageFlipMode || (PageFlipMode = {}));
3345
3346let CheckBoxStyle;
3347(function (CheckBoxStyle) {
3348  CheckBoxStyle.CIRCULAR_STYLE = 0;
3349  CheckBoxStyle.SQUARE_STYLE = 1;
3350})(CheckBoxStyle || (CheckBoxStyle = {}));
3351
3352let ModelType;
3353(function (ModelType) {
3354  ModelType[ModelType.TEXTURE = 0] = 'TEXTURE';
3355  ModelType[ModelType.SURFACE = 1] = 'SURFACE';
3356})(ModelType || (ModelType = {}));
3357
3358let ModelLightType;
3359(function (ModelLightType) {
3360  ModelLightType[ModelLightType.INVALID = 0] = 'INVALID';
3361  ModelLightType[ModelLightType.DIRECTIONAL = 1] = 'DIRECTIONAL';
3362  ModelLightType[ModelLightType.POINT = 2] = 'POINT';
3363  ModelLightType[ModelLightType.SPOT = 3] = 'SPOT';
3364})(ModelLightType || (ModelLightType = {}));
3365
3366let ModelAnimationStates;
3367(function (ModelAnimationStates) {
3368  ModelAnimationStates[ModelAnimationStates.PLAY = 0] = 'PLAY';
3369  ModelAnimationStates[ModelAnimationStates.PAUSE = 1] = 'PAUSE';
3370  ModelAnimationStates[ModelAnimationStates.STOP = 2] = 'STOP';
3371})(ModelAnimationStates || (ModelAnimationStates = {}));
3372
3373let SwipeActionState;
3374(function (SwipeActionState) {
3375  SwipeActionState[SwipeActionState.COLLAPSED = 0] = 'COLLAPSED';
3376  SwipeActionState[SwipeActionState.EXPANDED = 1] = 'EXPANDED';
3377  SwipeActionState[SwipeActionState.ACTIONING = 2] = 'ACTIONING';
3378})(SwipeActionState || (SwipeActionState = {}));
3379
3380let CheckBoxShape;
3381(function (CheckBoxShape) {
3382  CheckBoxShape.CIRCLE = 0;
3383  CheckBoxShape.ROUNDED_SQUARE = 1;
3384})(CheckBoxShape || (CheckBoxShape = {}));
3385
3386let FinishCallbackType;
3387(function (FinishCallbackType) {
3388  FinishCallbackType.REMOVED = 0;
3389  FinishCallbackType.LOGICALLY = 1;
3390})(FinishCallbackType || (FinishCallbackType = {}));
3391
3392let WebLayoutMode;
3393(function (WebLayoutMode) {
3394  WebLayoutMode[WebLayoutMode.NONE = 0] = 'NONE';
3395  WebLayoutMode[WebLayoutMode.FIT_CONTENT = 1] = 'FIT_CONTENT';
3396})(WebLayoutMode || (WebLayoutMode = {}));
3397
3398let OptionWidthMode;
3399(function (OptionWidthMode) {
3400  OptionWidthMode.FIT_CONTENT = 'fit_content';
3401  OptionWidthMode.FIT_TRIGGER = 'fit_trigger';
3402})(OptionWidthMode || (OptionWidthMode = {}));
3403
3404let ArrowPointPosition;
3405(function (ArrowPointPosition) {
3406  ArrowPointPosition.START = 'Start';
3407  ArrowPointPosition.CENTER = 'Center';
3408  ArrowPointPosition.END = 'End';
3409})(ArrowPointPosition || (ArrowPointPosition = {}));
3410
3411let DragPreviewMode;
3412(function (DragPreviewMode) {
3413  DragPreviewMode.AUTO = 1;
3414  DragPreviewMode.DISABLE_SCALE = 2;
3415  DragPreviewMode.ENABLE_DEFAULT_SHADOW = 3;
3416  DragPreviewMode.ENABLE_DEFAULT_RADIUS = 4;
3417  DragPreviewMode.ENABLE_DRAG_ITEM_GRAY_EFFECT = 5;
3418  DragPreviewMode.ENABLE_MULTI_TILE_EFFECT = 6;
3419  DragPreviewMode.ENABLE_TOUCH_POINT_CALCULATION_BASED_ON_FINAL_PREVIEW = 7;
3420})(DragPreviewMode || (DragPreviewMode = {}));
3421
3422let DraggingSizeChangeEffect;
3423(function (DraggingSizeChangeEffect) {
3424    DraggingSizeChangeEffect.DEFAULT = 0;
3425    DraggingSizeChangeEffect.SIZE_TRANSITION = 1;
3426    DraggingSizeChangeEffect.SIZE_CONTENT_TRANSITION = 2;
3427})(DraggingSizeChangeEffect || (DraggingSizeChangeEffect = {}));
3428
3429let FoldStatus;
3430(function (FoldStatus) {
3431  FoldStatus[FoldStatus.FOLD_STATUS_UNKNOWN = 0] = 'FOLD_STATUS_UNKNOWN';
3432  FoldStatus[FoldStatus.FOLD_STATUS_EXPANDED = 1] = 'FOLD_STATUS_EXPANDED';
3433  FoldStatus[FoldStatus.FOLD_STATUS_FOLDED = 2] = 'FOLD_STATUS_FOLDED';
3434  FoldStatus[FoldStatus.FOLD_STATUS_HALF_FOLDED = 3] = 'FOLD_STATUS_HALF_FOLDED';
3435})(FoldStatus || (FoldStatus = {}));
3436
3437let EmbeddedType;
3438(function (EmbeddedType) {
3439  EmbeddedType[EmbeddedType.EMBEDDED_UI_EXTENSION = 0] = 'EMBEDDED_UI_EXTENSION';
3440})(EmbeddedType || (EmbeddedType = {}));
3441
3442let OutlineStyle;
3443(function (OutlineStyle) {
3444  OutlineStyle[OutlineStyle.SOLID = 0] = 'SOLID';
3445  OutlineStyle[OutlineStyle.DASHED = 1] = 'DASHED';
3446  OutlineStyle[OutlineStyle.DOTTED = 2] = 'DOTTED';
3447})(OutlineStyle || (OutlineStyle = {}));
3448
3449let ButtonStyleMode;
3450(function (ButtonStyleMode) {
3451  ButtonStyleMode.NORMAL = 0;
3452  ButtonStyleMode.EMPHASIZED = 1;
3453  ButtonStyleMode.TEXTUAL = 2;
3454})(ButtonStyleMode || (ButtonStyleMode = {}));
3455
3456let RadioIndicatorType;
3457(function (RadioIndicatorType) {
3458  RadioIndicatorType[RadioIndicatorType.TICK = 0] = 'TICK';
3459  RadioIndicatorType[RadioIndicatorType.DOT = 1] = 'DOT';
3460  RadioIndicatorType[RadioIndicatorType.CUSTOM = 2] = 'CUSTOM';
3461})(RadioIndicatorType  || (RadioIndicatorType  = {}));
3462
3463let ControlSize;
3464(function (ControlSize) {
3465  ControlSize[ControlSize.SMALL = 0] = 'SMALL';
3466  ControlSize[ControlSize.NORMAL = 1] = 'NORMAL';
3467})(ControlSize || (ControlSize = {}));
3468
3469let ImageAnalyzerType;
3470(function (ImageAnalyzerType) {
3471  ImageAnalyzerType[ImageAnalyzerType.SUBJECT = 0] = 'SUBJECT';
3472  ImageAnalyzerType[ImageAnalyzerType.TEXT = 1] = 'TEXT';
3473  ImageAnalyzerType[ImageAnalyzerType.OBJECT_LOOKUP = 2] = 'OBJECT_LOOKUP';
3474})(ImageAnalyzerType || (ImageAnalyzerType = {}));
3475
3476let DividerMode;
3477(function (DividerMode) {
3478  DividerMode[DividerMode.FLOATING_ABOVE_MENU = 0] = 'FLOATING_ABOVE_MENU';
3479  DividerMode[DividerMode.EMBEDDED_IN_MENU = 1] = 'EMBEDDED_IN_MENU';
3480})(DividerMode || (DividerMode = {}));
3481
3482function wrapBuilder(builder) {
3483  return new WrappedBuilder(builder);
3484}
3485class WrappedBuilder {
3486  constructor(builder) {
3487    this.builder = builder;
3488  }
3489}
3490
3491let TextSpanType;
3492(function (TextSpanType) {
3493  TextSpanType[TextSpanType.TEXT = 0] = 'TEXT';
3494  TextSpanType[TextSpanType.IMAGE = 1] = 'IMAGE';
3495  TextSpanType[TextSpanType.MIXED = 2] = 'MIXED';
3496  TextSpanType[TextSpanType.DEFAULT = 3] = 'DEFAULT';
3497})(TextSpanType || (TextSpanType = {}));
3498
3499let TextResponseType;
3500(function (TextResponseType) {
3501  TextResponseType[TextResponseType.RIGHT_CLICK = 0] = 'RIGHT_CLICK';
3502  TextResponseType[TextResponseType.LONG_PRESS = 1] = 'LONG_PRESS';
3503  TextResponseType[TextResponseType.SELECT = 2] = 'SELECT';
3504  TextResponseType[TextResponseType.DEFAULT = 3] = 'DEFAULT';
3505})(TextResponseType || (TextResponseType = {}));
3506
3507let MarqueeState;
3508(function (MarqueeState) {
3509  MarqueeState[MarqueeState.START = 0] = 'START';
3510  MarqueeState[MarqueeState.BOUNCE = 1] = 'BOUNCE';
3511  MarqueeState[MarqueeState.FINISH = 2] = 'FINISH';
3512})(MarqueeState || (MarqueeState = {}));
3513
3514let MarqueeStartPolicy;
3515(function (MarqueeStartPolicy) {
3516  MarqueeStartPolicy[MarqueeStartPolicy.DEFAULT = 0] = 'DEFAULT';
3517  MarqueeStartPolicy[MarqueeStartPolicy.ON_FOCUS = 1] = 'ON_FOCUS';
3518})(MarqueeStartPolicy || (MarqueeStartPolicy = {}));
3519
3520let NativeEmbedStatus;
3521(function (NativeEmbedStatus) {
3522  NativeEmbedStatus.CREATE = 0;
3523  NativeEmbedStatus.UPDATE = 1;
3524  NativeEmbedStatus.DESTROY = 2;
3525  NativeEmbedStatus.ENTER_BFCACHE = 3;
3526  NativeEmbedStatus.LEAVE_BFCACHE = 4;
3527  NativeEmbedStatus.VISIBLE = 5;
3528  NativeEmbedStatus.HIDDEN = 6;
3529})(NativeEmbedStatus || (NativeEmbedStatus = {}));
3530
3531let RenderMode;
3532(function (RenderMode) {
3533  RenderMode.ASYNC_RENDER = 0;
3534  RenderMode.SYNC_RENDER = 1;
3535})(RenderMode || (RenderMode = {}));
3536
3537let ButtonRole;
3538(function (ButtonRole) {
3539  ButtonRole.NORMAL = 0;
3540  ButtonRole.ERROR = 1;
3541})(ButtonRole || (ButtonRole = {}));
3542
3543let MenuPolicy;
3544(function (MenuPolicy) {
3545  MenuPolicy.DEFAULT = 0;
3546  MenuPolicy.HIDE = 1;
3547  MenuPolicy.SHOW = 2;
3548})(MenuPolicy || (MenuPolicy = {}));
3549
3550let PreDragStatus;
3551(function (PreDragStatus) {
3552  PreDragStatus.ACTION_DETECTING_STATUS = 0;
3553  PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION = 1;
3554  PreDragStatus.PREVIEW_LIFT_STARTED = 2;
3555  PreDragStatus.PREVIEW_LIFT_FINISHED = 3;
3556  PreDragStatus.PREVIEW_LANDING_STARTED = 4;
3557  PreDragStatus.PREVIEW_LANDING_FINISHED = 5;
3558  PreDragStatus.ACTION_CANCELED_BEFORE_DRAG = 6;
3559  PreDragStatus.PREPARING_FOR_DRAG_DETECTION = 7;
3560})(PreDragStatus || (PreDragStatus = {}));
3561
3562let DragStartRequestStatus;
3563(function (DragStartRequestStatus) {
3564  DragStartRequestStatus.WAITING = 0;
3565  DragStartRequestStatus.READY = 1;
3566})(DragStartRequestStatus || (DragStartRequestStatus = {}));
3567
3568let DataOperationType;
3569(function (DataOperationType) {
3570  DataOperationType.ADD = 'add';
3571  DataOperationType.DELETE = 'delete';
3572  DataOperationType.CHANGE = 'change';
3573  DataOperationType.MOVE = 'move';
3574  DataOperationType.EXCHANGE = 'exchange';
3575  DataOperationType.RELOAD = 'reload';
3576})(DataOperationType || (DataOperationType = {}));
3577
3578let StyledStringKey;
3579(function (StyledStringKey) {
3580  StyledStringKey[StyledStringKey.FONT = 0] = 'FONT';
3581  StyledStringKey[StyledStringKey.DECORATION = 1] = 'DECORATION';
3582  StyledStringKey[StyledStringKey.BASELINE_OFFSET = 2] = 'BASELINE_OFFSET';
3583  StyledStringKey[StyledStringKey.LETTER_SPACING = 3] = 'LETTER_SPACING';
3584  StyledStringKey[StyledStringKey.TEXT_SHADOW = 4] = 'TEXT_SHADOW';
3585  StyledStringKey[StyledStringKey.LINE_HEIGHT = 5] = 'LINE_HEIGHT';
3586  StyledStringKey[StyledStringKey.PARAGRAPH_STYLE = 200] = 'PARAGRAPH_STYLE';
3587  StyledStringKey[StyledStringKey.BACKGROUND_COLOR = 6] = 'BACKGROUND_COLOR';
3588  StyledStringKey[StyledStringKey.URL = 7] = 'URL';
3589  StyledStringKey[StyledStringKey.GESTURE = 100] = 'GESTURE';
3590  StyledStringKey[StyledStringKey.IMAGE = 300] = 'IMAGE';
3591  StyledStringKey[StyledStringKey.CUSTOM_SPAN = 400] = 'CUSTOM_SPAN';
3592  StyledStringKey[StyledStringKey.USER_DATA = 500] = 'USER_DATA';
3593})(StyledStringKey || (StyledStringKey = {}));
3594
3595class CustomSpan extends NativeCustomSpan {
3596  type_ = 'CustomSpan';
3597}
3598
3599class UserDataSpan {
3600  type_ = 'ExtSpan';
3601}
3602
3603let FocusPriority;
3604(function (FocusPriority) {
3605  FocusPriority[FocusPriority.AUTO = 0] = 'AUTO';
3606  FocusPriority[FocusPriority.PRIOR = 2000] = 'PRIOR';
3607  FocusPriority[FocusPriority.PREVIOUS = 3000] = 'PREVIOUS';
3608})(FocusPriority || (FocusPriority = {}));
3609
3610let SubMenuExpandingMode;
3611(function (SubMenuExpandingMode) {
3612  SubMenuExpandingMode[SubMenuExpandingMode.SIDE_EXPAND = 0] = 'SIDE';
3613  SubMenuExpandingMode[SubMenuExpandingMode.EMBEDDED_EXPAND = 1] = 'EMBEDDED';
3614  SubMenuExpandingMode[SubMenuExpandingMode.STACK_EXPAND = 2] = 'STACK';
3615})(SubMenuExpandingMode || (SubMenuExpandingMode = {}));
3616
3617let ViewportFit;
3618(function (ViewportFit) {
3619  ViewportFit[ViewportFit.AUTO = 0] = 'AUTO';
3620  ViewportFit[ViewportFit.CONTAINS = 1] = 'CONTAINS';
3621  ViewportFit[ViewportFit.COVER = 2] = 'COVER';
3622})(ViewportFit || (ViewportFit = {}));
3623
3624let TextDeleteDirection;
3625(function (TextDeleteDirection) {
3626    TextDeleteDirection[TextDeleteDirection.BACKWARD = 0] = 'BACKWARD';
3627    TextDeleteDirection[TextDeleteDirection.FORWARD = 1] = 'FORWARD';
3628})(TextDeleteDirection || (TextDeleteDirection = {}));
3629
3630let GestureRecognizerState;
3631(function (GestureRecognizerState) {
3632  GestureRecognizerState[GestureRecognizerState.READY = 0] = 'READY';
3633  GestureRecognizerState[GestureRecognizerState.DETECTING = 1] = 'DETECTING';
3634  GestureRecognizerState[GestureRecognizerState.PENDING = 2] = 'PENDING';
3635  GestureRecognizerState[GestureRecognizerState.BLOCKED = 3] = 'BLOCKED';
3636  GestureRecognizerState[GestureRecognizerState.SUCCESSFUL = 4] = 'SUCCESSFUL';
3637  GestureRecognizerState[GestureRecognizerState.FAILED = 5] = 'FAILED';
3638})(GestureRecognizerState || (GestureRecognizerState = {}));
3639
3640let GridItemAlignment;
3641(function (GridItemAlignment) {
3642  GridItemAlignment[GridItemAlignment.DEFAULT = 0] = 'DEFAULT';
3643  GridItemAlignment[GridItemAlignment.STRETCH = 1] = 'STRETCH';
3644})(GridItemAlignment || (GridItemAlignment = {}));
3645
3646let ContentClipMode;
3647(function (ContentClipMode) {
3648  ContentClipMode[ContentClipMode.CONTENT_ONLY = 0] = 'CONTENT_ONLY';
3649  ContentClipMode[ContentClipMode.BOUNDARY = 1] = 'BOUNDARY';
3650  ContentClipMode[ContentClipMode.SAFE_AREA = 2] = 'SAFE_AREA';
3651})(ContentClipMode || (ContentClipMode = {}));
3652
3653let AccessibilityHoverType;
3654(function (AccessibilityHoverType) {
3655  AccessibilityHoverType[AccessibilityHoverType.HOVER_ENTER = 0] = 'HOVER_ENTER';
3656  AccessibilityHoverType[AccessibilityHoverType.HOVER_MOVE = 1] = 'HOVER_MOVE';
3657  AccessibilityHoverType[AccessibilityHoverType.HOVER_EXIT = 2] = 'HOVER_EXIT';
3658  AccessibilityHoverType[AccessibilityHoverType.HOVER_CANCEL = 3] = 'HOVER_CANCEL';
3659})(AccessibilityHoverType || (AccessibilityHoverType = {}));
3660
3661let AccessibilityRoleType;
3662(function (AccessibilityRoleType) {
3663  AccessibilityRoleType[AccessibilityRoleType.ACTION_SHEET = 0] = "ACTION_SHEET";
3664  AccessibilityRoleType[AccessibilityRoleType.ALERT_DIALOG = 1] = "ALERT_DIALOG";
3665  AccessibilityRoleType[AccessibilityRoleType.INDEXER_COMPONENT = 2] = "INDEXER_COMPONENT";
3666  AccessibilityRoleType[AccessibilityRoleType.BADGE_COMPONENT = 3] = "BADGE_COMPONENT";
3667  AccessibilityRoleType[AccessibilityRoleType.BLANK = 4] = "BLANK";
3668  AccessibilityRoleType[AccessibilityRoleType.BUTTON = 5] = "BUTTON";
3669  AccessibilityRoleType[AccessibilityRoleType.BACK_BUTTON = 6] = "BACK_BUTTON";
3670  AccessibilityRoleType[AccessibilityRoleType.SHEET_DRAG_BAR = 7] = "SHEET_DRAG_BAR";
3671  AccessibilityRoleType[AccessibilityRoleType.CALENDAR_PICKER = 8] = "CALENDAR_PICKER";
3672  AccessibilityRoleType[AccessibilityRoleType.CALENDAR = 9] = "CALENDAR";
3673  AccessibilityRoleType[AccessibilityRoleType.CANVAS = 10] = "CANVAS";
3674  AccessibilityRoleType[AccessibilityRoleType.CANVAS_GRADIENT = 11] = "CANVAS_GRADIENT";
3675  AccessibilityRoleType[AccessibilityRoleType.CANVAS_PATTERN = 12] = "CANVAS_PATTERN";
3676  AccessibilityRoleType[AccessibilityRoleType.CHECKBOX = 13] = "CHECKBOX";
3677  AccessibilityRoleType[AccessibilityRoleType.CHECKBOX_GROUP = 14] = "CHECKBOX_GROUP";
3678  AccessibilityRoleType[AccessibilityRoleType.CIRCLE = 15] = "CIRCLE";
3679  AccessibilityRoleType[AccessibilityRoleType.COLUMN_SPLIT = 16] = "COLUMN_SPLIT";
3680  AccessibilityRoleType[AccessibilityRoleType.COLUMN = 17] = "COLUMN";
3681  AccessibilityRoleType[AccessibilityRoleType.CANVAS_RENDERING_CONTEXT_2D = 18] = "CANVAS_RENDERING_CONTEXT_2D";
3682  AccessibilityRoleType[AccessibilityRoleType.CHART = 19] = "CHART";
3683  AccessibilityRoleType[AccessibilityRoleType.COUNTER = 20] = "COUNTER";
3684  AccessibilityRoleType[AccessibilityRoleType.CONTAINER_MODAL = 21] = "CONTAINER_MODAL";
3685  AccessibilityRoleType[AccessibilityRoleType.DATA_PANEL = 22] = "DATA_PANEL";
3686  AccessibilityRoleType[AccessibilityRoleType.DATE_PICKER = 23] = "DATE_PICKER";
3687  AccessibilityRoleType[AccessibilityRoleType.DIALOG = 24] = "DIALOG";
3688  AccessibilityRoleType[AccessibilityRoleType.DIVIDER = 25] = "DIVIDER";
3689  AccessibilityRoleType[AccessibilityRoleType.DRAG_BAR = 26] = "DRAG_BAR";
3690  AccessibilityRoleType[AccessibilityRoleType.EFFECT_COMPONENT = 27] = "EFFECT_COMPONENT";
3691  AccessibilityRoleType[AccessibilityRoleType.ELLIPSE = 28] = "ELLIPSE";
3692  AccessibilityRoleType[AccessibilityRoleType.FLEX = 29] = "FLEX";
3693  AccessibilityRoleType[AccessibilityRoleType.FLOW_ITEM = 30] = "FLOW_ITEM";
3694  AccessibilityRoleType[AccessibilityRoleType.FORM_COMPONENT = 31] = "FORM_COMPONENT";
3695  AccessibilityRoleType[AccessibilityRoleType.FORM_LINK = 32] = "FORM_LINK";
3696  AccessibilityRoleType[AccessibilityRoleType.GAUGE = 33] = "GAUGE";
3697  AccessibilityRoleType[AccessibilityRoleType.GRID = 34] = "GRID";
3698  AccessibilityRoleType[AccessibilityRoleType.GRID_COL = 35] = "GRID_COL";
3699  AccessibilityRoleType[AccessibilityRoleType.GRID_CONTAINER = 36] = "GRID_CONTAINER";
3700  AccessibilityRoleType[AccessibilityRoleType.GRID_ITEM = 37] = "GRID_ITEM";
3701  AccessibilityRoleType[AccessibilityRoleType.GRID_ROW = 38] = "GRID_ROW";
3702  AccessibilityRoleType[AccessibilityRoleType.HYPERLINK = 39] = "HYPERLINK";
3703  AccessibilityRoleType[AccessibilityRoleType.IMAGE = 40] = "IMAGE";
3704  AccessibilityRoleType[AccessibilityRoleType.IMAGE_ANIMATOR = 41] = "IMAGE_ANIMATOR";
3705  AccessibilityRoleType[AccessibilityRoleType.ROLE_IMAGE_BITMAP = 42] = "ROLE_IMAGE_BITMAP";
3706  AccessibilityRoleType[AccessibilityRoleType.IMAGE_DATA = 43] = "IMAGE_DATA";
3707  AccessibilityRoleType[AccessibilityRoleType.IMAGE_SPAN = 44] = "IMAGE_SPAN";
3708  AccessibilityRoleType[AccessibilityRoleType.LABEL = 45] = "LABEL";
3709  AccessibilityRoleType[AccessibilityRoleType.LINE = 46] = "LINE";
3710  AccessibilityRoleType[AccessibilityRoleType.LIST = 47] = "LIST";
3711  AccessibilityRoleType[AccessibilityRoleType.LIST_ITEM = 48] = "LIST_ITEM";
3712  AccessibilityRoleType[AccessibilityRoleType.LIST_ITEM_GROUP = 49] = "LIST_ITEM_GROUP";
3713  AccessibilityRoleType[AccessibilityRoleType.LOADING_PROGRESS = 50] = "LOADING_PROGRESS";
3714  AccessibilityRoleType[AccessibilityRoleType.MARQUEE = 51] = "MARQUEE";
3715  AccessibilityRoleType[AccessibilityRoleType.MATRIX2D = 52] = "MATRIX2D";
3716  AccessibilityRoleType[AccessibilityRoleType.MENU = 53] = "MENU";
3717  AccessibilityRoleType[AccessibilityRoleType.MENU_ITEM = 54] = "MENU_ITEM";
3718  AccessibilityRoleType[AccessibilityRoleType.MENU_ITEM_GROUP = 55] = "MENU_ITEM_GROUP";
3719  AccessibilityRoleType[AccessibilityRoleType.NAV_DESTINATION = 56] = "NAV_DESTINATION";
3720  AccessibilityRoleType[AccessibilityRoleType.NAV_ROUTER = 57] = "NAV_ROUTER";
3721  AccessibilityRoleType[AccessibilityRoleType.NAVIGATION = 58] = "NAVIGATION";
3722  AccessibilityRoleType[AccessibilityRoleType.NAVIGATION_BAR = 59] = "NAVIGATION_BAR";
3723  AccessibilityRoleType[AccessibilityRoleType.NAVIGATION_MENU = 60] = "NAVIGATION_MENU";
3724  AccessibilityRoleType[AccessibilityRoleType.NAVIGATOR = 61] = "NAVIGATOR";
3725  AccessibilityRoleType[AccessibilityRoleType.OFFSCREEN_CANVAS = 62] = "OFFSCREEN_CANVAS";
3726  AccessibilityRoleType[AccessibilityRoleType.OFFSCREEN_CANVAS_RENDERING_CONTEXT2D = 63] = "OFFSCREEN_CANVAS_RENDERING_CONTEXT2D";
3727  AccessibilityRoleType[AccessibilityRoleType.OPTION = 64] = "OPTION";
3728  AccessibilityRoleType[AccessibilityRoleType.PANEL = 65] = "PANEL";
3729  AccessibilityRoleType[AccessibilityRoleType.PAPER_PAGE = 66] = "PAPER_PAGE";
3730  AccessibilityRoleType[AccessibilityRoleType.PATH = 67] = "PATH";
3731  AccessibilityRoleType[AccessibilityRoleType.PATH2D = 68] = "PATH2D";
3732  AccessibilityRoleType[AccessibilityRoleType.PATTERN_LOCK = 69] = "PATTERN_LOCK";
3733  AccessibilityRoleType[AccessibilityRoleType.PICKER = 70] = "PICKER";
3734  AccessibilityRoleType[AccessibilityRoleType.PICKER_VIEW = 71] = "PICKER_VIEW";
3735  AccessibilityRoleType[AccessibilityRoleType.PLUGIN_COMPONENT = 72] = "PLUGIN_COMPONENT";
3736  AccessibilityRoleType[AccessibilityRoleType.POLYGON = 73] = "POLYGON";
3737  AccessibilityRoleType[AccessibilityRoleType.POLYLINE = 74] = "POLYLINE";
3738  AccessibilityRoleType[AccessibilityRoleType.POPUP = 75] = "POPUP";
3739  AccessibilityRoleType[AccessibilityRoleType.PROGRESS = 76] = "PROGRESS";
3740  AccessibilityRoleType[AccessibilityRoleType.QRCODE = 77] = "QRCODE";
3741  AccessibilityRoleType[AccessibilityRoleType.RADIO = 78] = "RADIO";
3742  AccessibilityRoleType[AccessibilityRoleType.RATING = 79] = "RATING";
3743  AccessibilityRoleType[AccessibilityRoleType.RECT = 80] = "RECT";
3744  AccessibilityRoleType[AccessibilityRoleType.REFRESH = 81] = "REFRESH";
3745  AccessibilityRoleType[AccessibilityRoleType.RELATIVE_CONTAINER = 82] = "RELATIVE_CONTAINER";
3746  AccessibilityRoleType[AccessibilityRoleType.REMOTE_WINDOW = 83] = "REMOTE_WINDOW";
3747  AccessibilityRoleType[AccessibilityRoleType.RICH_EDITOR = 84] = "RICH_EDITOR";
3748  AccessibilityRoleType[AccessibilityRoleType.RICH_TEXT = 85] = "RICH_TEXT";
3749  AccessibilityRoleType[AccessibilityRoleType.ROLE_PAGER = 86] = "ROLE_PAGER";
3750  AccessibilityRoleType[AccessibilityRoleType.ROW = 87] = "ROW";
3751  AccessibilityRoleType[AccessibilityRoleType.ROW_SPLIT = 88] = "ROW_SPLIT";
3752  AccessibilityRoleType[AccessibilityRoleType.SCROLL = 89] = "SCROLL";
3753  AccessibilityRoleType[AccessibilityRoleType.SCROLL_BAR = 90] = "SCROLL_BAR";
3754  AccessibilityRoleType[AccessibilityRoleType.SEARCH = 91] = "SEARCH";
3755  AccessibilityRoleType[AccessibilityRoleType.SEARCH_FIELD = 92] = "SEARCH_FIELD";
3756  AccessibilityRoleType[AccessibilityRoleType.SELECT = 93] = "SELECT";
3757  AccessibilityRoleType[AccessibilityRoleType.SHAPE = 94] = "SHAPE";
3758  AccessibilityRoleType[AccessibilityRoleType.SIDEBAR_CONTAINER = 95] = "SIDEBAR_CONTAINER";
3759  AccessibilityRoleType[AccessibilityRoleType.SLIDER = 96] = "SLIDER";
3760  AccessibilityRoleType[AccessibilityRoleType.SPAN = 97] = "SPAN";
3761  AccessibilityRoleType[AccessibilityRoleType.STACK = 98] = "STACK";
3762  AccessibilityRoleType[AccessibilityRoleType.STEPPER = 99] = "STEPPER";
3763  AccessibilityRoleType[AccessibilityRoleType.STEPPER_ITEM = 100] = "STEPPER_ITEM";
3764  AccessibilityRoleType[AccessibilityRoleType.SWIPER = 101] = "SWIPER";
3765  AccessibilityRoleType[AccessibilityRoleType.SWIPER_INDICATOR = 102] = "SWIPER_INDICATOR";
3766  AccessibilityRoleType[AccessibilityRoleType.SWITCH = 103] = "SWITCH";
3767  AccessibilityRoleType[AccessibilityRoleType.SYMBOL_GLYPH = 104] = "SYMBOL_GLYPH";
3768  AccessibilityRoleType[AccessibilityRoleType.TAB_CONTENT = 105] = "TAB_CONTENT";
3769  AccessibilityRoleType[AccessibilityRoleType.TAB_BAR = 106] = "TAB_BAR";
3770  AccessibilityRoleType[AccessibilityRoleType.TABS = 107] = "TABS";
3771  AccessibilityRoleType[AccessibilityRoleType.TEXT = 108] = "TEXT";
3772  AccessibilityRoleType[AccessibilityRoleType.TEXT_CLOCK = 109] = "TEXT_CLOCK";
3773  AccessibilityRoleType[AccessibilityRoleType.TEXT_ENTRY = 110] = "TEXT_ENTRY";
3774  AccessibilityRoleType[AccessibilityRoleType.TEXT_INPUT = 111] = "TEXT_INPUT";
3775  AccessibilityRoleType[AccessibilityRoleType.TEXT_PICKER = 112] = "TEXT_PICKER";
3776  AccessibilityRoleType[AccessibilityRoleType.TEXT_TIMER = 113] = "TEXT_TIMER";
3777  AccessibilityRoleType[AccessibilityRoleType.TEXT_AREA = 114] = "TEXT_AREA";
3778  AccessibilityRoleType[AccessibilityRoleType.TEXT_FIELD = 115] = "TEXT_FIELD";
3779  AccessibilityRoleType[AccessibilityRoleType.TIME_PICKER = 116] = "TIME_PICKER";
3780  AccessibilityRoleType[AccessibilityRoleType.TITLE_BAR = 117] = "TITLE_BAR";
3781  AccessibilityRoleType[AccessibilityRoleType.TOGGLER = 118] = "TOGGLER";
3782  AccessibilityRoleType[AccessibilityRoleType.UI_EXTENSION_COMPONENT = 119] = "UI_EXTENSION_COMPONENT";
3783  AccessibilityRoleType[AccessibilityRoleType.VIDEO = 120] = "VIDEO";
3784  AccessibilityRoleType[AccessibilityRoleType.WATER_FLOW = 121] = "WATER_FLOW";
3785  AccessibilityRoleType[AccessibilityRoleType.WEB = 122] = "WEB";
3786  AccessibilityRoleType[AccessibilityRoleType.XCOMPONENT = 123] = "XCOMPONENT";
3787  AccessibilityRoleType[AccessibilityRoleType.ROLE_NONE = 124] = "ROLE_NONE";
3788})(AccessibilityRoleType || (AccessibilityRoleType = {}));
3789
3790let WidthBreakpoint;
3791(function (WidthBreakpoint) {
3792  WidthBreakpoint[WidthBreakpoint.WIDTH_XS = 0] = 'WIDTH_XS';
3793  WidthBreakpoint[WidthBreakpoint.WIDTH_SM = 1] = 'WIDTH_SM';
3794  WidthBreakpoint[WidthBreakpoint.WIDTH_MD = 2] = 'WIDTH_MD';
3795  WidthBreakpoint[WidthBreakpoint.WIDTH_LG = 3] = 'WIDTH_LG';
3796  WidthBreakpoint[WidthBreakpoint.WIDTH_XL = 4] = 'WIDTH_XL';
3797})(WidthBreakpoint || (WidthBreakpoint = {}));
3798
3799let HeightBreakpoint;
3800(function (HeightBreakpoint) {
3801  HeightBreakpoint[HeightBreakpoint.HEIGHT_SM = 0] = 'HEIGHT_SM';
3802  HeightBreakpoint[HeightBreakpoint.HEIGHT_MD = 1] = 'HEIGHT_MD';
3803  HeightBreakpoint[HeightBreakpoint.HEIGHT_LG = 2] = 'HEIGHT_LG';
3804})(HeightBreakpoint || (HeightBreakpoint = {}));
3805
3806let WebElementType;
3807(function (WebElementType) {
3808  WebElementType[WebElementType.IMAGE = 1] = 'IMAGE';
3809})(WebElementType || (WebElementType = {}));
3810
3811let WebResponseType;
3812(function (WebResponseType) {
3813  WebResponseType[WebResponseType.LONG_PRESS = 1] = 'LONG_PRESS';
3814})(WebResponseType || (WebResponseType = {}));
3815
3816class ImageAnalyzerController {
3817  constructor() {
3818  }
3819
3820  registerSupportTypesAction(getSupportTypesAction) {
3821    this.getSupportTypesAction = getSupportTypesAction;
3822  }
3823
3824  unRegisterSupportTypesAction() {
3825    this.getSupportTypesAction = null;
3826  }
3827
3828  getImageAnalyzerSupportTypes() {
3829    if (this.getSupportTypesAction === null || this.getSupportTypesAction === undefined) {
3830      return null;
3831    }
3832    return this.getSupportTypesAction();
3833  }
3834}
3835
3836var WebNavigationType;
3837(function (WebNavigationType) {
3838  WebNavigationType[WebNavigationType['UNKNOWN'] = 0] = 'UNKNOWN';
3839  WebNavigationType[WebNavigationType['MAIN_FRAME_NEW_ENTRY'] = 1] = 'MAIN_FRAME_NEW_ENTRY';
3840  WebNavigationType[WebNavigationType['MAIN_FRAME_EXISTING_ENTRY'] = 2] = 'MAIN_FRAME_EXISTING_ENTRY';
3841  WebNavigationType[WebNavigationType['NAVIGATION_TYPE_NEW_SUBFRAME'] = 4] = 'NAVIGATION_TYPE_NEW_SUBFRAME';
3842  WebNavigationType[WebNavigationType['NAVIGATION_TYPE_AUTO_SUBFRAME'] = 5] = 'NAVIGATION_TYPE_AUTO_SUBFRAME';
3843})(WebNavigationType || (WebNavigationType = {}));
3844
3845let AxisModel;
3846(function (AxisModel) {
3847  AxisModel[AxisModel.ABS_X = 0] = 'ABS_X';
3848  AxisModel[AxisModel.ABS_Y = 1] = 'ABS_Y';
3849  AxisModel[AxisModel.ABS_Z = 2] = 'ABS_Z';
3850  AxisModel[AxisModel.ABS_RZ = 3] = 'ABS_RZ';
3851  AxisModel[AxisModel.ABS_GAS = 4] = 'ABS_GAS';
3852  AxisModel[AxisModel.ABS_BRAKE = 5] = 'ABS_BRAKE';
3853  AxisModel[AxisModel.ABS_HAT0X = 6] = 'ABS_HAT0X';
3854  AxisModel[AxisModel.ABS_HAT0Y = 7] = 'ABS_HAT0Y';
3855})(AxisModel || (AxisModel = {}));
3856
3857let CrownSensitivity;
3858(function (CrownSensitivity) {
3859  CrownSensitivity[CrownSensitivity.LOW = 0] = 'LOW';
3860  CrownSensitivity[CrownSensitivity.MEDIUM = 1] = 'MEDIUM';
3861  CrownSensitivity[CrownSensitivity.HIGH = 2] = 'HIGH';
3862})(CrownSensitivity || (CrownSensitivity = {}));
3863
3864let CrownAction;
3865(function (CrownAction) {
3866  CrownAction[CrownAction.BEGIN = 0] = 'BEGIN';
3867  CrownAction[CrownAction.UPDATE = 1] = 'UPDATE';
3868  CrownAction[CrownAction.END = 2] = 'END';
3869})(CrownAction || (CrownAction = {}));
3870
3871let AccessibilitySamePageMode;
3872(function (AccessibilitySamePageMode) {
3873  AccessibilitySamePageMode[AccessibilitySamePageMode.SEMI_SILENT = 0] = 'SEMI_SILENT';
3874  AccessibilitySamePageMode[AccessibilitySamePageMode.FULL_SILENT = 1] = 'FULL_SILENT';
3875})(AccessibilitySamePageMode || (AccessibilitySamePageMode = {}));
3876
3877let FocusDrawLevel;
3878(function (FocusDrawLevel) {
3879  FocusDrawLevel[FocusDrawLevel.SELF = 0] = 'SELF';
3880  FocusDrawLevel[FocusDrawLevel.TOP = 1] = 'TOP';
3881})(FocusDrawLevel || (FocusDrawLevel = {}));
3882
3883let TextMenuShowMode;
3884(function (TextMenuShowMode) {
3885  TextMenuShowMode[TextMenuShowMode.DEFAULT = 0] = 'DEFAULT';
3886  TextMenuShowMode[TextMenuShowMode.PREFER_WINDOW = 1] = 'PREFER_WINDOW';
3887})(TextMenuShowMode || (TextMenuShowMode = {}));
3888
3889let KeyProcessingMode;
3890(function (KeyProcessingMode) {
3891  KeyProcessingMode[KeyProcessingMode.FOCUS_NAVIGATION = 0] = 'FOCUS_NAVIGATION';
3892  KeyProcessingMode[KeyProcessingMode.ANCESTOR_EVENT = 1] = 'ANCESTOR_EVENT';
3893})(KeyProcessingMode || (KeyProcessingMode = {}));
3894
3895let AxisAction;
3896(function (AxisAction) {
3897  AxisAction[AxisAction.NONE = 0] = 'NONE';
3898  AxisAction[AxisAction.BEGIN = 1] = 'BEGIN';
3899  AxisAction[AxisAction.UPDATE = 2] = 'UPDATE';
3900  AxisAction[AxisAction.END = 3] = 'END';
3901  AxisAction[AxisAction.CANCEL = 4] = 'CANCEL';
3902})(AxisAction || (AxisAction = {}));
3903
3904let RichEditorDeleteDirection;
3905(function (RichEditorDeleteDirection) {
3906  RichEditorDeleteDirection[RichEditorDeleteDirection.BACKWARD = 0] = 'BACKWARD';
3907  RichEditorDeleteDirection[RichEditorDeleteDirection.FORWARD = 1] = 'FORWARD';
3908})(RichEditorDeleteDirection || (RichEditorDeleteDirection = {}));