iobroker.vis-2-widgets-collection 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +8 -0
  2. package/io-package.json +27 -27
  3. package/package.json +1 -1
  4. package/widgets/vis-2-widgets-collection/assets/Button-BK3gDuCC.js +677 -0
  5. package/widgets/vis-2-widgets-collection/assets/ButtonGroupCollectionWidget-Bjl7COzs.js +687 -0
  6. package/widgets/vis-2-widgets-collection/assets/CheckboxCollectionWidget-8WjweMs2.js +440 -0
  7. package/widgets/vis-2-widgets-collection/assets/Close-APpa6HX8.js +18 -0
  8. package/widgets/vis-2-widgets-collection/assets/DialogCollectionWidget-o_rzKqrW.js +485 -0
  9. package/widgets/vis-2-widgets-collection/assets/FormControlLabel-CHae4jKA.js +207 -0
  10. package/widgets/vis-2-widgets-collection/assets/GaugeCollectionWidget-C7OFMKbW.js +2860 -0
  11. package/widgets/vis-2-widgets-collection/assets/Light2CollectionWidget-C_bjOKZG.js +2733 -0
  12. package/widgets/vis-2-widgets-collection/assets/RadioGroupCollectionWidget-dntcZhrq.js +538 -0
  13. package/widgets/vis-2-widgets-collection/assets/SafeImg-DHsE-xU3.js +29 -0
  14. package/widgets/vis-2-widgets-collection/assets/SelectCollectionWidget-Dh93X-tG.js +2545 -0
  15. package/widgets/vis-2-widgets-collection/assets/Stack-Dzb7Q6ZE.js +132 -0
  16. package/widgets/vis-2-widgets-collection/assets/StateCollectionWidget-Cp6J4wqx.js +1610 -0
  17. package/widgets/vis-2-widgets-collection/assets/SwitchBase-C4gssu33.js +204 -0
  18. package/widgets/vis-2-widgets-collection/assets/SwitchCollectionWidget-2KPRtnA9.js +572 -0
  19. package/widgets/vis-2-widgets-collection/assets/_commonjsHelpers-Cpj98o6Y.js +8 -0
  20. package/widgets/vis-2-widgets-collection/assets/commonFields-Dc3dYGx-.js +20628 -0
  21. package/widgets/vis-2-widgets-collection/assets/formControlState-Dq1zat_P.js +6 -0
  22. package/widgets/vis-2-widgets-collection/assets/hostInit-D6momM_S.js +9 -0
  23. package/widgets/vis-2-widgets-collection/assets/index-B5Qt9EMX.js +18 -0
  24. package/widgets/vis-2-widgets-collection/assets/index-BEpFHtMA.js +249 -0
  25. package/widgets/vis-2-widgets-collection/assets/index-DMBzzD-N.js +6098 -0
  26. package/widgets/vis-2-widgets-collection/assets/listItemTextClasses-DQeLHf2R.js +120 -0
  27. package/widgets/vis-2-widgets-collection/assets/preload-helper-PPVm8Dsz.js +36 -0
  28. package/widgets/vis-2-widgets-collection/assets/translations-DXoq3Ras.js +9 -0
  29. package/widgets/vis-2-widgets-collection/assets/useFormControl--TM4wVzV.js +20 -0
  30. package/widgets/vis-2-widgets-collection/assets/useHtmlValue-Dcwl_hqT.js +27 -0
  31. package/widgets/vis-2-widgets-collection/assets/useOidValue-DGq_wsMY.js +35 -0
  32. package/widgets/vis-2-widgets-collection/assets/virtualExposes-B50cAOvG.js +118 -0
  33. package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js +45 -0
  34. package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js +12 -0
  35. package/widgets/vis-2-widgets-collection/img/prev-collection-checkbox.png +0 -0
  36. package/widgets/vis-2-widgets-collection/img/prev-collection-dialog.png +0 -0
  37. package/widgets/vis-2-widgets-collection/img/prev-collection-gauge.png +0 -0
  38. package/widgets/vis-2-widgets-collection/img/prev-collection-light.png +0 -0
  39. package/widgets/vis-2-widgets-collection/img/prev-collection-radio-group.png +0 -0
  40. package/widgets/vis-2-widgets-collection/img/prev-collection-select.png +0 -0
@@ -0,0 +1,2860 @@
1
+ import { j as A, C as R, w as Ze, z as xa, q as Ta, y as wa, A as Sa, E as Ca, G as Ba, H as $e, J as Na, L as Va, __tla as __tla_0 } from "./commonFields-Dc3dYGx-.js";
2
+ import { v as q, __tla as __tla_1 } from "./vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js";
3
+ import { u as Wa, __tla as __tla_2 } from "./useOidValue-DGq_wsMY.js";
4
+ import { c as Ce } from "./_commonjsHelpers-Cpj98o6Y.js";
5
+ import "./vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js";
6
+ let Ke;
7
+ let __tla = Promise.all([
8
+ (() => {
9
+ try {
10
+ return __tla_0;
11
+ } catch {
12
+ }
13
+ })(),
14
+ (() => {
15
+ try {
16
+ return __tla_1;
17
+ } catch {
18
+ }
19
+ })(),
20
+ (() => {
21
+ try {
22
+ return __tla_2;
23
+ } catch {
24
+ }
25
+ })()
26
+ ]).then(async () => {
27
+ const Aa = () => [
28
+ {
29
+ label: "",
30
+ type: "custom",
31
+ component: () => A.jsx(R, {
32
+ dividerText: "gauge_basic_options"
33
+ })
34
+ },
35
+ {
36
+ name: "gaugeType",
37
+ label: "gauge_type",
38
+ type: "select",
39
+ options: [
40
+ {
41
+ value: "linear",
42
+ label: "linear"
43
+ },
44
+ {
45
+ value: "radial",
46
+ label: "radial"
47
+ }
48
+ ],
49
+ default: "linear",
50
+ noTranslation: true
51
+ },
52
+ {
53
+ name: "gaugeMinValue",
54
+ type: "number",
55
+ label: "gauge_min_value",
56
+ default: 0,
57
+ step: 1
58
+ },
59
+ {
60
+ name: "gaugeMaxValue",
61
+ type: "number",
62
+ label: "gauge_max_value",
63
+ default: 100,
64
+ step: 1
65
+ },
66
+ {
67
+ name: "gaugePadding",
68
+ type: "number",
69
+ label: "gauge_padding",
70
+ default: 8,
71
+ step: 1,
72
+ min: 0
73
+ },
74
+ {
75
+ name: "gaugeIconFit",
76
+ type: "select",
77
+ label: "gauge_icon_fit",
78
+ options: [
79
+ {
80
+ value: "contain",
81
+ label: "contain"
82
+ },
83
+ {
84
+ value: "cover",
85
+ label: "cover"
86
+ },
87
+ {
88
+ value: "fill",
89
+ label: "fill"
90
+ }
91
+ ],
92
+ default: "contain",
93
+ noTranslation: true
94
+ },
95
+ {
96
+ label: "",
97
+ type: "custom",
98
+ component: () => A.jsx(R, {
99
+ dividerText: "gauge_linear_borders_options"
100
+ }),
101
+ hidden: (g) => g.gaugeType !== "linear"
102
+ },
103
+ {
104
+ name: "gaugeBorderRadius",
105
+ type: "number",
106
+ label: "gauge_border_radius",
107
+ default: 0,
108
+ step: 1,
109
+ min: 0,
110
+ hidden: (g) => g.gaugeType !== "linear"
111
+ },
112
+ {
113
+ label: "",
114
+ type: "custom",
115
+ component: () => A.jsx(R, {
116
+ dividerText: "gauge_linear_progress_bar_options"
117
+ }),
118
+ hidden: (g) => g.gaugeType !== "linear"
119
+ },
120
+ {
121
+ name: "gaugeBarBeginCircle",
122
+ type: "number",
123
+ label: "gauge_bar_begin_circle",
124
+ default: 30,
125
+ step: 1,
126
+ min: 0,
127
+ hidden: (g) => g.gaugeType !== "linear"
128
+ },
129
+ {
130
+ name: "gaugeBarLength",
131
+ type: "number",
132
+ label: "gauge_bar_length",
133
+ default: 85,
134
+ step: 1,
135
+ min: 0,
136
+ hidden: (g) => g.gaugeType !== "linear"
137
+ },
138
+ {
139
+ label: "",
140
+ type: "custom",
141
+ component: () => A.jsx(R, {
142
+ dividerText: "gauge_linear_coloring_options"
143
+ }),
144
+ hidden: (g) => g.gaugeType !== "linear"
145
+ },
146
+ {
147
+ name: "gaugeColorBarEnd",
148
+ type: "color",
149
+ label: "gauge_color_bar_end",
150
+ default: "",
151
+ hidden: (g) => g.gaugeType !== "linear"
152
+ },
153
+ {
154
+ name: "gaugeColorBarProgressEnd",
155
+ type: "color",
156
+ label: "gauge_color_bar_progress_end",
157
+ default: "",
158
+ hidden: (g) => g.gaugeType !== "linear"
159
+ },
160
+ {
161
+ label: "",
162
+ type: "custom",
163
+ component: () => A.jsx(R, {
164
+ dividerText: "gauge_linear_element_positioning_options"
165
+ }),
166
+ hidden: (g) => g.gaugeType !== "linear"
167
+ },
168
+ {
169
+ name: "gaugeTickSide",
170
+ type: "select",
171
+ label: "gauge_tick_side",
172
+ options: [
173
+ {
174
+ value: "both",
175
+ label: "both"
176
+ },
177
+ {
178
+ value: "left",
179
+ label: "left"
180
+ },
181
+ {
182
+ value: "right",
183
+ label: "right"
184
+ }
185
+ ],
186
+ default: "both",
187
+ noTranslation: true,
188
+ hidden: (g) => g.gaugeType !== "linear"
189
+ },
190
+ {
191
+ name: "gaugeNeedleSide",
192
+ type: "select",
193
+ label: "gauge_needle_side",
194
+ options: [
195
+ {
196
+ value: "both",
197
+ label: "both"
198
+ },
199
+ {
200
+ value: "left",
201
+ label: "left"
202
+ },
203
+ {
204
+ value: "right",
205
+ label: "right"
206
+ }
207
+ ],
208
+ default: "both",
209
+ noTranslation: true,
210
+ hidden: (g) => g.gaugeType !== "linear"
211
+ },
212
+ {
213
+ name: "gaugeNumberSide",
214
+ type: "select",
215
+ label: "gauge_number_side",
216
+ options: [
217
+ {
218
+ value: "both",
219
+ label: "both"
220
+ },
221
+ {
222
+ value: "left",
223
+ label: "left"
224
+ },
225
+ {
226
+ value: "right",
227
+ label: "right"
228
+ }
229
+ ],
230
+ default: "both",
231
+ noTranslation: true,
232
+ hidden: (g) => g.gaugeType !== "linear"
233
+ },
234
+ {
235
+ label: "",
236
+ type: "custom",
237
+ component: () => A.jsx(R, {
238
+ dividerText: "gauge_linear_ticks_bar_options"
239
+ }),
240
+ hidden: (g) => g.gaugeType !== "linear"
241
+ },
242
+ {
243
+ name: "gaugeTicksWidth",
244
+ type: "number",
245
+ label: "gauge_ticks_width",
246
+ default: 10,
247
+ step: 1,
248
+ min: 0,
249
+ hidden: (g) => g.gaugeType !== "linear"
250
+ },
251
+ {
252
+ name: "gaugeTicksWidthMinor",
253
+ type: "number",
254
+ label: "gauge_ticks_width_minor",
255
+ default: 5,
256
+ step: 1,
257
+ min: 0,
258
+ hidden: (g) => g.gaugeType !== "linear"
259
+ },
260
+ {
261
+ name: "gaugeTicksPadding",
262
+ type: "number",
263
+ label: "gauge_ticks_padding",
264
+ default: 5,
265
+ step: 1,
266
+ min: 0,
267
+ hidden: (g) => g.gaugeType !== "linear"
268
+ },
269
+ {
270
+ label: "",
271
+ type: "custom",
272
+ component: () => A.jsx(R, {
273
+ dividerText: "gauge_radial_ticks_bar_options"
274
+ }),
275
+ hidden: (g) => g.gaugeType !== "radial"
276
+ },
277
+ {
278
+ name: "gaugeTicksAngle",
279
+ type: "number",
280
+ label: "gauge_ticks_angle",
281
+ default: 270,
282
+ step: 1,
283
+ min: 0,
284
+ max: 360,
285
+ hidden: (g) => g.gaugeType !== "radial"
286
+ },
287
+ {
288
+ name: "gaugeStartAngle",
289
+ type: "number",
290
+ label: "gauge_start_angle",
291
+ default: 45,
292
+ step: 1,
293
+ min: 0,
294
+ max: 360,
295
+ hidden: (g) => g.gaugeType !== "radial"
296
+ },
297
+ {
298
+ label: "",
299
+ type: "custom",
300
+ component: () => A.jsx(R, {
301
+ dividerText: "gauge_radial_coloring_options"
302
+ }),
303
+ hidden: (g) => g.gaugeType !== "radial"
304
+ },
305
+ {
306
+ name: "gaugeColorNeedleCircleOuter",
307
+ type: "color",
308
+ label: "gauge_color_needle_circle_outer",
309
+ default: "#f0f0f0",
310
+ hidden: (g) => g.gaugeType !== "radial"
311
+ },
312
+ {
313
+ name: "gaugeColorNeedleCircleOuterEnd",
314
+ type: "color",
315
+ label: "gauge_color_needle_circle_outer_end",
316
+ default: "#ccc",
317
+ hidden: (g) => g.gaugeType !== "radial"
318
+ },
319
+ {
320
+ name: "gaugeColorNeedleCircleInner",
321
+ type: "color",
322
+ label: "gauge_color_needle_circle_inner",
323
+ default: "#e8e8e8",
324
+ hidden: (g) => g.gaugeType !== "radial"
325
+ },
326
+ {
327
+ name: "gaugeColorNeedleCircleInnerEnd",
328
+ type: "color",
329
+ label: "gauge_color_needle_circle_inner_end",
330
+ default: "#f5f5f5",
331
+ hidden: (g) => g.gaugeType !== "radial"
332
+ },
333
+ {
334
+ label: "",
335
+ type: "custom",
336
+ component: () => A.jsx(R, {
337
+ dividerText: "gauge_radial_needle_options"
338
+ }),
339
+ hidden: (g) => g.gaugeType !== "radial"
340
+ },
341
+ {
342
+ name: "gaugeNeedleCircleSize",
343
+ type: "number",
344
+ label: "gauge_needle_circle_size",
345
+ default: 10,
346
+ step: 1,
347
+ min: 0,
348
+ hidden: (g) => g.gaugeType !== "radial"
349
+ },
350
+ {
351
+ name: "gaugeNeedleCircleInner",
352
+ type: "checkbox",
353
+ label: "gauge_needle_circle_inner",
354
+ default: true,
355
+ hidden: (g) => g.gaugeType !== "radial"
356
+ },
357
+ {
358
+ name: "gaugeNeedleCircleOuter",
359
+ type: "checkbox",
360
+ label: "gauge_needle_circle_outer",
361
+ default: true,
362
+ hidden: (g) => g.gaugeType !== "radial"
363
+ },
364
+ {
365
+ label: "",
366
+ type: "custom",
367
+ component: () => A.jsx(R, {
368
+ dividerText: "gauge_radial_animation_options"
369
+ }),
370
+ hidden: (g) => g.gaugeType !== "radial"
371
+ },
372
+ {
373
+ name: "gaugeAnimationTarget",
374
+ type: "select",
375
+ label: "gauge_animation_target",
376
+ options: [
377
+ {
378
+ value: "needle",
379
+ label: "needle"
380
+ },
381
+ {
382
+ value: "plate",
383
+ label: "plate"
384
+ }
385
+ ],
386
+ default: "needle",
387
+ noTranslation: true,
388
+ hidden: (g) => g.gaugeType !== "radial"
389
+ },
390
+ {
391
+ name: "gaugeUseMinPath",
392
+ type: "checkbox",
393
+ label: "gauge_use_min_path",
394
+ default: false,
395
+ hidden: (g) => g.gaugeType !== "radial"
396
+ },
397
+ {
398
+ label: "",
399
+ type: "custom",
400
+ component: () => A.jsx(R, {
401
+ dividerText: "gauge_ticks_bar_options"
402
+ })
403
+ },
404
+ {
405
+ name: "gaugeExactTicks",
406
+ type: "checkbox",
407
+ label: "gauge_exact_ticks",
408
+ default: false
409
+ },
410
+ {
411
+ name: "gaugeMajorTicks",
412
+ type: "number",
413
+ label: "gauge_major_ticks",
414
+ default: 10,
415
+ step: 1
416
+ },
417
+ {
418
+ name: "gaugeMinorTicks",
419
+ type: "number",
420
+ label: "gauge_minor_ticks",
421
+ default: 0,
422
+ step: 1
423
+ },
424
+ {
425
+ name: "gaugeStrokeTicks",
426
+ type: "checkbox",
427
+ label: "gauge_stroke_ticks",
428
+ default: true
429
+ },
430
+ {
431
+ name: "gaugeMajorTicksInt",
432
+ type: "number",
433
+ label: "gauge_major_ticks_int",
434
+ default: 1,
435
+ step: 1
436
+ },
437
+ {
438
+ name: "gaugeMajorTicksDec",
439
+ type: "number",
440
+ label: "gauge_major_ticks_dec",
441
+ default: 0,
442
+ step: 1
443
+ },
444
+ {
445
+ name: "gaugeHighlightsWidth",
446
+ type: "number",
447
+ label: "gauge_highlights_width",
448
+ default: 15,
449
+ step: 1
450
+ },
451
+ {
452
+ name: "gaugeNumbersMargin",
453
+ type: "number",
454
+ label: "gauge_numbers_margin",
455
+ default: 1,
456
+ step: 1
457
+ },
458
+ {
459
+ label: "",
460
+ type: "custom",
461
+ component: () => A.jsx(R, {
462
+ dividerText: "gauge_progress_bar_options"
463
+ })
464
+ },
465
+ {
466
+ name: "gaugeBarWidth",
467
+ type: "number",
468
+ label: "gauge_bar_width",
469
+ default: 20,
470
+ step: 1,
471
+ min: 0,
472
+ max: 50
473
+ },
474
+ {
475
+ name: "gaugeBarStrokeWidth",
476
+ type: "number",
477
+ label: "gauge_bar_stroke_width",
478
+ default: 0,
479
+ step: 1,
480
+ min: 0
481
+ },
482
+ {
483
+ name: "gaugeBarProgress",
484
+ type: "checkbox",
485
+ label: "gauge_bar_progress",
486
+ default: true
487
+ },
488
+ {
489
+ name: "gaugeBarShadow",
490
+ type: "number",
491
+ label: "gauge_bar_shadow",
492
+ default: 0,
493
+ step: 1,
494
+ min: 0
495
+ },
496
+ {
497
+ label: "",
498
+ type: "custom",
499
+ component: () => A.jsx(R, {
500
+ dividerText: "gauge_animation_options"
501
+ })
502
+ },
503
+ {
504
+ name: "gaugeAnimation",
505
+ type: "checkbox",
506
+ label: "gauge_animation",
507
+ default: true
508
+ },
509
+ {
510
+ name: "gaugeAnimationDuration",
511
+ type: "number",
512
+ label: "gauge_animation_duration",
513
+ default: 500,
514
+ step: 1,
515
+ min: 0
516
+ },
517
+ {
518
+ name: "gaugeAnimationRule",
519
+ type: "select",
520
+ label: "gauge_animation_rule",
521
+ options: [
522
+ {
523
+ value: "linear",
524
+ label: "linear"
525
+ },
526
+ {
527
+ value: "quad",
528
+ label: "quad"
529
+ },
530
+ {
531
+ value: "quint",
532
+ label: "quint"
533
+ },
534
+ {
535
+ value: "cycle",
536
+ label: "cycle"
537
+ },
538
+ {
539
+ value: "bounce",
540
+ label: "bounce"
541
+ },
542
+ {
543
+ value: "elastic",
544
+ label: "elastic"
545
+ },
546
+ {
547
+ value: "dequad",
548
+ label: "dequad"
549
+ },
550
+ {
551
+ value: "dequint",
552
+ label: "dequint"
553
+ },
554
+ {
555
+ value: "decycle",
556
+ label: "decycle"
557
+ },
558
+ {
559
+ value: "debounce",
560
+ label: "debounce"
561
+ },
562
+ {
563
+ value: "delastic",
564
+ label: "delastic"
565
+ }
566
+ ],
567
+ default: "cycle",
568
+ noTranslation: true
569
+ },
570
+ {
571
+ name: "gaugeAnimatedValue",
572
+ type: "checkbox",
573
+ label: "gauge_animated_value",
574
+ default: false
575
+ },
576
+ {
577
+ name: "gaugeAnimateOnInit",
578
+ type: "checkbox",
579
+ label: "gauge_animate_on_init",
580
+ default: false
581
+ },
582
+ {
583
+ label: "",
584
+ type: "custom",
585
+ component: () => A.jsx(R, {
586
+ dividerText: "gauge_coloring_options"
587
+ })
588
+ },
589
+ {
590
+ name: "gaugeColorPlate",
591
+ type: "color",
592
+ label: "gauge_color_plate",
593
+ default: "rgba(0,0,0,0)"
594
+ },
595
+ {
596
+ name: "gaugeColorPlateEnd",
597
+ type: "color",
598
+ label: "gauge_color_plate_end",
599
+ default: "rgba(0,0,0,0)"
600
+ },
601
+ {
602
+ name: "gaugeColorMajorTicks",
603
+ type: "color",
604
+ label: "gauge_color_major_ticks",
605
+ default: "#444"
606
+ },
607
+ {
608
+ name: "gaugeColorMinorTicks",
609
+ type: "color",
610
+ label: "gauge_color_minor_ticks",
611
+ default: "#666"
612
+ },
613
+ {
614
+ name: "gaugeColorStrokeTicks",
615
+ type: "color",
616
+ label: "gauge_color_stroke_ticks",
617
+ default: "#444"
618
+ },
619
+ {
620
+ name: "gaugeColorTitle",
621
+ type: "color",
622
+ label: "gauge_color_title",
623
+ default: "#888"
624
+ },
625
+ {
626
+ name: "gaugeColorUnits",
627
+ type: "color",
628
+ label: "gauge_color_units",
629
+ default: "#888"
630
+ },
631
+ {
632
+ name: "gaugeColorNumbers",
633
+ type: "color",
634
+ label: "gauge_color_numbers",
635
+ default: "#444"
636
+ },
637
+ {
638
+ name: "gaugeColorNeedle",
639
+ type: "color",
640
+ label: "gauge_color_needle",
641
+ default: "rgba(240,128,128,1)"
642
+ },
643
+ {
644
+ name: "gaugeColorNeedleEnd",
645
+ type: "color",
646
+ label: "gauge_color_needle_end",
647
+ default: "rgba(255,160,122,.9)"
648
+ },
649
+ {
650
+ name: "gaugeColorValueText",
651
+ type: "color",
652
+ label: "gauge_color_value_text",
653
+ default: "#444"
654
+ },
655
+ {
656
+ name: "gaugeColorValueTextShadow",
657
+ type: "color",
658
+ label: "gauge_color_value_text_shadow",
659
+ default: "rgba(0,0,0,0.3)"
660
+ },
661
+ {
662
+ name: "gaugeColorBorderShadow",
663
+ type: "color",
664
+ label: "gauge_color_border_shadow",
665
+ default: "rgba(0,0,0,0.5)"
666
+ },
667
+ {
668
+ name: "gaugeColorBorderOuter",
669
+ type: "color",
670
+ label: "gauge_color_border_outer",
671
+ default: "#ddd"
672
+ },
673
+ {
674
+ name: "gaugeColorBorderOuterEnd",
675
+ type: "color",
676
+ label: "gauge_color_border_outer_end",
677
+ default: "#aaa"
678
+ },
679
+ {
680
+ name: "gaugeColorBorderMiddle",
681
+ type: "color",
682
+ label: "gauge_color_border_middle",
683
+ default: "#eee"
684
+ },
685
+ {
686
+ name: "gaugeColorBorderMiddleEnd",
687
+ type: "color",
688
+ label: "gauge_color_border_middle_end",
689
+ default: "#f0f0f0"
690
+ },
691
+ {
692
+ name: "gaugeColorBorderInner",
693
+ type: "color",
694
+ label: "gauge_color_border_inner",
695
+ default: "#fafafa"
696
+ },
697
+ {
698
+ name: "gaugeColorBorderInnerEnd",
699
+ type: "color",
700
+ label: "gauge_color_border_inner_end",
701
+ default: "#ccc"
702
+ },
703
+ {
704
+ name: "gaugeColorValueBoxRect",
705
+ type: "color",
706
+ label: "gauge_color_value_box_rect",
707
+ default: "#888"
708
+ },
709
+ {
710
+ name: "gaugeColorValueBoxRectEnd",
711
+ type: "color",
712
+ label: "gauge_color_value_box_rect_end",
713
+ default: "#666"
714
+ },
715
+ {
716
+ name: "gaugeColorValueBoxBackground",
717
+ type: "color",
718
+ label: "gauge_color_value_box_background",
719
+ default: "#babab2"
720
+ },
721
+ {
722
+ name: "gaugeColorValueBoxShadow",
723
+ type: "color",
724
+ label: "gauge_color_value_box_shadow",
725
+ default: "rgba(0,0,0,1)"
726
+ },
727
+ {
728
+ name: "gaugeColorNeedleShadowUp",
729
+ type: "color",
730
+ label: "gauge_color_needle_shadow_up",
731
+ default: "rgba(2,255,255,0.2)"
732
+ },
733
+ {
734
+ name: "gaugeColorNeedleShadowDown",
735
+ type: "color",
736
+ label: "gauge_color_needle_shadow_down",
737
+ default: "rgba(188,143,143,0.45)"
738
+ },
739
+ {
740
+ name: "gaugeColorBarStroke",
741
+ type: "color",
742
+ label: "gauge_color_bar_stroke",
743
+ default: "#222"
744
+ },
745
+ {
746
+ name: "gaugeColorBar",
747
+ type: "color",
748
+ label: "gauge_color_bar",
749
+ default: "#ccc"
750
+ },
751
+ {
752
+ name: "gaugeColorBarProgress",
753
+ type: "color",
754
+ label: "gauge_color_bar_progress",
755
+ default: "#888"
756
+ },
757
+ {
758
+ name: "gaugeHighlightsLineCap",
759
+ type: "select",
760
+ label: "gauge_highlights_line_cap",
761
+ options: [
762
+ {
763
+ value: "butt",
764
+ label: "butt"
765
+ },
766
+ {
767
+ value: "round",
768
+ label: "round"
769
+ },
770
+ {
771
+ value: "square",
772
+ label: "square"
773
+ }
774
+ ],
775
+ default: "butt",
776
+ noTranslation: true
777
+ },
778
+ {
779
+ label: "",
780
+ type: "custom",
781
+ component: () => A.jsx(R, {
782
+ dividerText: "gauge_needle_configuration_options"
783
+ })
784
+ },
785
+ {
786
+ name: "gaugeNeedle",
787
+ type: "checkbox",
788
+ label: "gauge_needle",
789
+ default: true
790
+ },
791
+ {
792
+ name: "gaugeNeedleShadow",
793
+ type: "checkbox",
794
+ label: "gauge_needle_shadow",
795
+ default: true
796
+ },
797
+ {
798
+ name: "gaugeNeedleType",
799
+ type: "select",
800
+ label: "gauge_needle_type",
801
+ options: [
802
+ {
803
+ value: "arrow",
804
+ label: "arrow"
805
+ },
806
+ {
807
+ value: "line",
808
+ label: "line"
809
+ }
810
+ ],
811
+ default: "arrow",
812
+ noTranslation: true
813
+ },
814
+ {
815
+ name: "gaugeNeedleStart",
816
+ type: "number",
817
+ label: "gauge_needle_start",
818
+ default: 5,
819
+ step: 1,
820
+ min: 0,
821
+ max: 100
822
+ },
823
+ {
824
+ name: "gaugeNeedleEnd",
825
+ type: "number",
826
+ label: "gauge_needle_end",
827
+ default: 85,
828
+ step: 1,
829
+ min: 0,
830
+ max: 100
831
+ },
832
+ {
833
+ name: "gaugeNeedleWidth",
834
+ type: "number",
835
+ label: "gauge_needle_width",
836
+ default: 4
837
+ },
838
+ {
839
+ label: "",
840
+ type: "custom",
841
+ component: () => A.jsx(R, {
842
+ dividerText: "gauge_borders_options"
843
+ })
844
+ },
845
+ {
846
+ name: "gaugeBorders",
847
+ type: "checkbox",
848
+ label: "gauge_borders",
849
+ default: true
850
+ },
851
+ {
852
+ name: "gaugeBorderOuterWidth",
853
+ type: "number",
854
+ label: "gauge_border_outer_width",
855
+ default: 3,
856
+ min: 0
857
+ },
858
+ {
859
+ name: "gaugeBorderMiddleWidth",
860
+ type: "number",
861
+ label: "gauge_border_middle_width",
862
+ default: 3,
863
+ min: 0
864
+ },
865
+ {
866
+ name: "gaugeBorderInnerWidth",
867
+ type: "number",
868
+ label: "gauge_border_inner_width",
869
+ default: 3,
870
+ min: 0
871
+ },
872
+ {
873
+ name: "gaugeBorderShadowWidth",
874
+ type: "number",
875
+ label: "gauge_border_shadow_width",
876
+ default: 3,
877
+ min: 0
878
+ },
879
+ {
880
+ label: "",
881
+ type: "custom",
882
+ component: () => A.jsx(R, {
883
+ dividerText: "gauge_value_box_options"
884
+ })
885
+ },
886
+ {
887
+ name: "gaugeValueBox",
888
+ type: "checkbox",
889
+ label: "gauge_value_box",
890
+ default: true
891
+ },
892
+ {
893
+ name: "gaugeValueBoxStroke",
894
+ type: "number",
895
+ label: "gauge_value_box_stroke",
896
+ default: 5,
897
+ step: 1,
898
+ min: 0
899
+ },
900
+ {
901
+ name: "gaugeValueBoxWidth",
902
+ type: "number",
903
+ label: "gauge_value_box_width",
904
+ default: 0,
905
+ step: 1,
906
+ min: 0
907
+ },
908
+ {
909
+ name: "gaugeValueText",
910
+ type: "text",
911
+ label: "gauge_value_text",
912
+ default: ""
913
+ },
914
+ {
915
+ name: "gaugeValueTextShadow",
916
+ type: "checkbox",
917
+ label: "gauge_value_text_shadow",
918
+ default: true
919
+ },
920
+ {
921
+ name: "gaugeValueBoxBorderRadius",
922
+ type: "number",
923
+ label: "gauge_value_box_border_radius",
924
+ default: 2.5,
925
+ step: 0.1,
926
+ min: 0
927
+ },
928
+ {
929
+ name: "gaugeValueInt",
930
+ type: "number",
931
+ label: "gauge_value_int",
932
+ default: 3,
933
+ step: 1,
934
+ min: 0
935
+ },
936
+ {
937
+ name: "gaugeValueDec",
938
+ type: "number",
939
+ label: "gauge_value_dec",
940
+ default: 2,
941
+ step: 1,
942
+ min: 0
943
+ },
944
+ {
945
+ label: "",
946
+ type: "custom",
947
+ component: () => A.jsx(R, {
948
+ dividerText: "gauge_fonts_customization_options"
949
+ })
950
+ },
951
+ {
952
+ name: "gaugeFontNumbers",
953
+ type: "fontname",
954
+ label: "gauge_font_numbers",
955
+ default: "Arial, Helvetica, sans-serif"
956
+ },
957
+ {
958
+ name: "gaugeFontTitle",
959
+ type: "fontname",
960
+ label: "gauge_font_title",
961
+ default: "Arial, Helvetica, sans-serif"
962
+ },
963
+ {
964
+ name: "gaugeFontUnits",
965
+ type: "fontname",
966
+ label: "gauge_font_units",
967
+ default: "Arial, Helvetica, sans-serif"
968
+ },
969
+ {
970
+ name: "gaugeFontValue",
971
+ type: "fontname",
972
+ label: "gauge_font_value",
973
+ default: "Arial, Helvetica, sans-serif"
974
+ },
975
+ {
976
+ label: "",
977
+ name: "allFieldsDivider",
978
+ type: "custom",
979
+ component: () => A.jsx(R, {})
980
+ },
981
+ {
982
+ name: "gaugeFontNumbersSize",
983
+ type: "number",
984
+ label: "gauge_font_numbers_size",
985
+ default: 20,
986
+ step: 1,
987
+ min: 0
988
+ },
989
+ {
990
+ name: "gaugeFontTitleSize",
991
+ type: "number",
992
+ label: "gauge_font_title_size",
993
+ default: 24,
994
+ step: 1,
995
+ min: 0
996
+ },
997
+ {
998
+ name: "gaugeFontUnitsSize",
999
+ type: "number",
1000
+ label: "gauge_font_units_size",
1001
+ default: 22,
1002
+ step: 1,
1003
+ min: 0
1004
+ },
1005
+ {
1006
+ name: "gaugeFontValueSize",
1007
+ type: "number",
1008
+ label: "gauge_font_value_size",
1009
+ default: 26,
1010
+ step: 1,
1011
+ min: 0
1012
+ },
1013
+ {
1014
+ label: "",
1015
+ name: "allFieldsDivider",
1016
+ type: "custom",
1017
+ component: () => A.jsx(R, {})
1018
+ },
1019
+ {
1020
+ name: "gaugeFontNumbersStyle",
1021
+ type: "select",
1022
+ label: "gauge_font_numbers_style",
1023
+ options: [
1024
+ {
1025
+ value: "normal",
1026
+ label: "normal"
1027
+ },
1028
+ {
1029
+ value: "italic",
1030
+ label: "italic"
1031
+ },
1032
+ {
1033
+ value: "oblique",
1034
+ label: "oblique"
1035
+ }
1036
+ ],
1037
+ default: "normal",
1038
+ noTranslation: true
1039
+ },
1040
+ {
1041
+ name: "gaugeFontTitleStyle",
1042
+ type: "select",
1043
+ label: "gauge_font_title_style",
1044
+ options: [
1045
+ {
1046
+ value: "normal",
1047
+ label: "normal"
1048
+ },
1049
+ {
1050
+ value: "italic",
1051
+ label: "italic"
1052
+ },
1053
+ {
1054
+ value: "oblique",
1055
+ label: "oblique"
1056
+ }
1057
+ ],
1058
+ default: "normal",
1059
+ noTranslation: true
1060
+ },
1061
+ {
1062
+ name: "gaugeFontUnitsStyle",
1063
+ type: "select",
1064
+ label: "gauge_font_units_style",
1065
+ options: [
1066
+ {
1067
+ value: "normal",
1068
+ label: "normal"
1069
+ },
1070
+ {
1071
+ value: "italic",
1072
+ label: "italic"
1073
+ },
1074
+ {
1075
+ value: "oblique",
1076
+ label: "oblique"
1077
+ }
1078
+ ],
1079
+ default: "normal",
1080
+ noTranslation: true
1081
+ },
1082
+ {
1083
+ name: "gaugeFontValueStyle",
1084
+ type: "select",
1085
+ label: "gauge_font_value_style",
1086
+ options: [
1087
+ {
1088
+ value: "normal",
1089
+ label: "normal"
1090
+ },
1091
+ {
1092
+ value: "italic",
1093
+ label: "italic"
1094
+ },
1095
+ {
1096
+ value: "oblique",
1097
+ label: "oblique"
1098
+ }
1099
+ ],
1100
+ default: "normal",
1101
+ noTranslation: true
1102
+ },
1103
+ {
1104
+ label: "",
1105
+ name: "allFieldsDivider",
1106
+ type: "custom",
1107
+ component: () => A.jsx(R, {})
1108
+ },
1109
+ {
1110
+ name: "gaugeFontNumbersWeight",
1111
+ type: "select",
1112
+ label: "gauge_font_numbers_weight",
1113
+ options: [
1114
+ {
1115
+ value: "normal",
1116
+ label: "normal"
1117
+ },
1118
+ {
1119
+ value: "bold",
1120
+ label: "bold"
1121
+ },
1122
+ {
1123
+ value: "bolder",
1124
+ label: "bolder"
1125
+ },
1126
+ {
1127
+ value: "lighter",
1128
+ label: "lighter"
1129
+ },
1130
+ {
1131
+ value: "100",
1132
+ label: "100"
1133
+ },
1134
+ {
1135
+ value: "200",
1136
+ label: "200"
1137
+ },
1138
+ {
1139
+ value: "300",
1140
+ label: "300"
1141
+ },
1142
+ {
1143
+ value: "400",
1144
+ label: "400"
1145
+ },
1146
+ {
1147
+ value: "500",
1148
+ label: "500"
1149
+ },
1150
+ {
1151
+ value: "600",
1152
+ label: "600"
1153
+ },
1154
+ {
1155
+ value: "700",
1156
+ label: "700"
1157
+ },
1158
+ {
1159
+ value: "800",
1160
+ label: "800"
1161
+ },
1162
+ {
1163
+ value: "900",
1164
+ label: "900"
1165
+ }
1166
+ ],
1167
+ default: "normal",
1168
+ noTranslation: true
1169
+ },
1170
+ {
1171
+ name: "gaugeFontTitleWeight",
1172
+ type: "select",
1173
+ label: "gauge_font_title_weight",
1174
+ options: [
1175
+ {
1176
+ value: "normal",
1177
+ label: "normal"
1178
+ },
1179
+ {
1180
+ value: "bold",
1181
+ label: "bold"
1182
+ },
1183
+ {
1184
+ value: "bolder",
1185
+ label: "bolder"
1186
+ },
1187
+ {
1188
+ value: "lighter",
1189
+ label: "lighter"
1190
+ },
1191
+ {
1192
+ value: "100",
1193
+ label: "100"
1194
+ },
1195
+ {
1196
+ value: "200",
1197
+ label: "200"
1198
+ },
1199
+ {
1200
+ value: "300",
1201
+ label: "300"
1202
+ },
1203
+ {
1204
+ value: "400",
1205
+ label: "400"
1206
+ },
1207
+ {
1208
+ value: "500",
1209
+ label: "500"
1210
+ },
1211
+ {
1212
+ value: "600",
1213
+ label: "600"
1214
+ },
1215
+ {
1216
+ value: "700",
1217
+ label: "700"
1218
+ },
1219
+ {
1220
+ value: "800",
1221
+ label: "800"
1222
+ },
1223
+ {
1224
+ value: "900",
1225
+ label: "900"
1226
+ }
1227
+ ],
1228
+ default: "normal",
1229
+ noTranslation: true
1230
+ },
1231
+ {
1232
+ name: "gaugeFontUnitsWeight",
1233
+ type: "select",
1234
+ label: "gauge_font_units_weight",
1235
+ options: [
1236
+ {
1237
+ value: "normal",
1238
+ label: "normal"
1239
+ },
1240
+ {
1241
+ value: "bold",
1242
+ label: "bold"
1243
+ },
1244
+ {
1245
+ value: "bolder",
1246
+ label: "bolder"
1247
+ },
1248
+ {
1249
+ value: "lighter",
1250
+ label: "lighter"
1251
+ },
1252
+ {
1253
+ value: "100",
1254
+ label: "100"
1255
+ },
1256
+ {
1257
+ value: "200",
1258
+ label: "200"
1259
+ },
1260
+ {
1261
+ value: "300",
1262
+ label: "300"
1263
+ },
1264
+ {
1265
+ value: "400",
1266
+ label: "400"
1267
+ },
1268
+ {
1269
+ value: "500",
1270
+ label: "500"
1271
+ },
1272
+ {
1273
+ value: "600",
1274
+ label: "600"
1275
+ },
1276
+ {
1277
+ value: "700",
1278
+ label: "700"
1279
+ },
1280
+ {
1281
+ value: "800",
1282
+ label: "800"
1283
+ },
1284
+ {
1285
+ value: "900",
1286
+ label: "900"
1287
+ }
1288
+ ],
1289
+ default: "normal",
1290
+ noTranslation: true
1291
+ },
1292
+ {
1293
+ name: "gaugeFontValueWeight",
1294
+ type: "select",
1295
+ label: "gauge_font_value_weight",
1296
+ options: [
1297
+ {
1298
+ value: "normal",
1299
+ label: "normal"
1300
+ },
1301
+ {
1302
+ value: "bold",
1303
+ label: "bold"
1304
+ },
1305
+ {
1306
+ value: "bolder",
1307
+ label: "bolder"
1308
+ },
1309
+ {
1310
+ value: "lighter",
1311
+ label: "lighter"
1312
+ },
1313
+ {
1314
+ value: "100",
1315
+ label: "100"
1316
+ },
1317
+ {
1318
+ value: "200",
1319
+ label: "200"
1320
+ },
1321
+ {
1322
+ value: "300",
1323
+ label: "300"
1324
+ },
1325
+ {
1326
+ value: "400",
1327
+ label: "400"
1328
+ },
1329
+ {
1330
+ value: "500",
1331
+ label: "500"
1332
+ },
1333
+ {
1334
+ value: "600",
1335
+ label: "600"
1336
+ },
1337
+ {
1338
+ value: "700",
1339
+ label: "700"
1340
+ },
1341
+ {
1342
+ value: "800",
1343
+ label: "800"
1344
+ },
1345
+ {
1346
+ value: "900",
1347
+ label: "900"
1348
+ }
1349
+ ],
1350
+ default: "normal",
1351
+ noTranslation: true
1352
+ }
1353
+ ];
1354
+ var Qe = {
1355
+ exports: {}
1356
+ };
1357
+ (function(g) {
1358
+ (function(k) {
1359
+ function F(a) {
1360
+ if (Array.isArray(a)) {
1361
+ for (var e = 0, t = Array(a.length); e < a.length; e++) t[e] = a[e];
1362
+ return t;
1363
+ }
1364
+ return Array.from(a);
1365
+ }
1366
+ function z(a, e) {
1367
+ if (!a) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1368
+ return !e || typeof e != "object" && typeof e != "function" ? a : e;
1369
+ }
1370
+ function E(a, e) {
1371
+ if (typeof e != "function" && e !== null) throw new TypeError("Super expression must either be null or a function, not " + typeof e);
1372
+ a.prototype = Object.create(e && e.prototype, {
1373
+ constructor: {
1374
+ value: a,
1375
+ enumerable: false,
1376
+ writable: true,
1377
+ configurable: true
1378
+ }
1379
+ }), e && (Object.setPrototypeOf ? Object.setPrototypeOf(a, e) : a.__proto__ = e);
1380
+ }
1381
+ function n(a, e) {
1382
+ if (!(a instanceof e)) throw new TypeError("Cannot call a class as a function");
1383
+ }
1384
+ function $(a, e) {
1385
+ if (e || (e = typeof window > "u" ? Ce : window), e[a] !== void 0) return e[a];
1386
+ for (var t = [
1387
+ "webkit",
1388
+ "moz",
1389
+ "ms",
1390
+ "o"
1391
+ ], r = 0, o = t.length, i = a.charAt(0).toUpperCase() + a.substr(1); r < o; r++) {
1392
+ var l = e[t[r] + i];
1393
+ if (l !== void 0) return l;
1394
+ }
1395
+ return null;
1396
+ }
1397
+ function O(a, e, t, r, o, i, l) {
1398
+ if (typeof r != "function") throw new TypeError("Invalid animation rule:", r);
1399
+ var d = a - t, u = d / o, s = 0;
1400
+ u > 1 && (u = 1), u !== 1 && (s = r(u), isFinite(s) && !isNaN(s) && (u = s)), e && e(u), d < o ? l.frame = qe(function(c) {
1401
+ return O(c, e, t, r, o, i, l);
1402
+ }) : (i && i(), l.inProgress = false);
1403
+ }
1404
+ function D() {
1405
+ Array.prototype.constructor.apply(this, arguments);
1406
+ }
1407
+ function re(a) {
1408
+ if (!(a instanceof DOMException && a.result === 2152923147)) throw a;
1409
+ }
1410
+ function Be(a, e) {
1411
+ return e.replace(ya, function(t, r) {
1412
+ var o = a[r];
1413
+ return o !== void 0 ? o : t;
1414
+ });
1415
+ }
1416
+ function ve(a) {
1417
+ return a.majorTicks instanceof Array || (a.majorTicks = a.majorTicks ? [
1418
+ a.majorTicks
1419
+ ] : []), a.majorTicks.length || (a.majorTicks.push(m.formatMajorTickNumber(a.minValue, a)), a.majorTicks.push(m.formatMajorTickNumber(a.maxValue, a))), [
1420
+ a.tickSide !== "right",
1421
+ a.tickSide !== "left"
1422
+ ];
1423
+ }
1424
+ function se(a, e, t, r, o, i) {
1425
+ a.beginPath(), a.moveTo(e + i, t), a.lineTo(e + r - i, t), a.quadraticCurveTo(e + r, t, e + r, t + i), a.lineTo(e + r, t + o - i), a.quadraticCurveTo(e + r, t + o, e + r - i, t + o), a.lineTo(e + i, t + o), a.quadraticCurveTo(e, t + o, e, t + o - i), a.lineTo(e, t + i), a.quadraticCurveTo(e, t, e + i, t), a.closePath();
1426
+ }
1427
+ function oe(a, e) {
1428
+ var t = e.valueDec, r = e.valueInt, o = 0, i = void 0, l = void 0, d = void 0;
1429
+ if (a = parseFloat(a), d = a < 0, a = Math.abs(a), t > 0) {
1430
+ for (l = a.toFixed(t).toString().split("."), i = r - l[0].length; o < i; ++o) l[0] = "0" + l[0];
1431
+ l = (d ? "-" : "") + l[0] + "." + l[1];
1432
+ } else {
1433
+ for (l = Math.round(a).toString(), i = r - l.length; o < i; ++o) l = "0" + l;
1434
+ l = (d ? "-" : "") + l;
1435
+ }
1436
+ return l;
1437
+ }
1438
+ function ge(a, e) {
1439
+ var t = void 0, r = false;
1440
+ return t = e.majorTicksDec === 0 ? Math.round(a).toString() : a.toFixed(e.majorTicksDec), e.majorTicksInt > 1 ? (r = ~t.indexOf("."), ~t.indexOf("-") ? "-" + [
1441
+ e.majorTicksInt + e.majorTicksDec + 2 + (r ? 1 : 0) - t.length
1442
+ ].join("0") + t.replace("-", "") : [
1443
+ e.majorTicksInt + e.majorTicksDec + 1 + (r ? 1 : 0) - t.length
1444
+ ].join("0") + t) : t;
1445
+ }
1446
+ function M(a) {
1447
+ return a * Math.PI / 180;
1448
+ }
1449
+ function pe(a, e) {
1450
+ return {
1451
+ x: -a * Math.sin(e),
1452
+ y: a * Math.cos(e)
1453
+ };
1454
+ }
1455
+ function J(a, e, t, r) {
1456
+ var o = !(arguments.length > 4 && arguments[4] !== void 0) || arguments[4], i = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : 0, l = a.createLinearGradient(o ? 0 : i, o ? i : 0, o ? 0 : r, o ? r : 0);
1457
+ return l.addColorStop(0, e), l.addColorStop(1, t), l;
1458
+ }
1459
+ function Z(a, e) {
1460
+ if (arguments.length > 2 && arguments[2] !== void 0 && arguments[2]) return a.restore(), true;
1461
+ a.save();
1462
+ var t = e.borderShadowWidth;
1463
+ return t && (a.shadowBlur = t, a.shadowColor = e.colorBorderShadow), true;
1464
+ }
1465
+ function Y(a, e) {
1466
+ e.needleShadow && (a.shadowOffsetX = 2, a.shadowOffsetY = 2, a.shadowBlur = 10, a.shadowColor = e.colorNeedleShadowDown);
1467
+ }
1468
+ function Q(a, e, t) {
1469
+ return a["font" + e + "Style"] + " " + a["font" + e + "Weight"] + " " + a["font" + e + "Size"] * t + "px " + a["font" + e];
1470
+ }
1471
+ function I(a) {
1472
+ a.shadowOffsetX = null, a.shadowOffsetY = null, a.shadowBlur = null, a.shadowColor = "", a.strokeStyle = null, a.lineWidth = 0, a.save();
1473
+ }
1474
+ function K(a, e, t, r) {
1475
+ e.valueTextShadow && (a.shadowOffsetX = t, a.shadowOffsetY = t, a.shadowBlur = r, a.shadowColor = e.colorValueTextShadow);
1476
+ }
1477
+ function ie(a, e, t, r, o, i) {
1478
+ if (e.valueBox) {
1479
+ I(a);
1480
+ var l = e.valueDec ? 1 + e.valueDec : 0, d = "9".repeat(Math.max.apply(null, [
1481
+ String(parseInt(t)).length + l
1482
+ ].concat(e.majorTicks.map(function(W) {
1483
+ return String(parseInt(W, 10)).length + l;
1484
+ })))), u = e.valueText || oe(t, e), s = i / 200, c = i / 100, h = 0.4 * c, v = 1.2 * c;
1485
+ a.font = Q(e, "Value", s), K(a, e, h, v);
1486
+ var p = a.measureText(e.valueText ? u : "-" + oe(Number(d), e)).width;
1487
+ I(a);
1488
+ var y = parseFloat(e.fontValueSize) * s + h + v, V = c * parseFloat(e.valueBoxStroke), x = 2 * i - 2 * V, S = p + 10 * c, C = 1.1 * y + h + v, N = c * e.valueBoxBorderRadius, B = (parseFloat(e.valueBoxWidth) || 0) / 100 * x;
1489
+ B > S && (S = B), S > x && (S = x);
1490
+ var T = r - S / 2, b = o - C / 2, f = o - 5.75 * c;
1491
+ if (a.beginPath(), N ? se(a, T, b, S, C, N) : a.rect(T, b, S, C), V) {
1492
+ var w = a.createRadialGradient(r, f, 10 * c, r, f, 20 * c);
1493
+ w.addColorStop(0, e.colorValueBoxRect), w.addColorStop(1, e.colorValueBoxRectEnd), a.strokeStyle = w, a.lineWidth = V, a.stroke();
1494
+ }
1495
+ e.colorValueBoxShadow && (a.shadowBlur = 1.2 * c, a.shadowColor = e.colorValueBoxShadow), e.colorValueBoxBackground && (a.fillStyle = e.colorValueBoxBackground, a.fill()), a.closePath(), a.restore(), K(a, e, h, v), a.fillStyle = e.colorValueText, a.textAlign = "center", a.textBaseline = "alphabetic", a.fillText(u, T + S / 2, o + C / 2 - y / 3), a.restore();
1496
+ }
1497
+ }
1498
+ function ea(a) {
1499
+ var e = a.value, t = a.minValue, r = a.maxValue, o = 0.01 * (r - t);
1500
+ return {
1501
+ normal: e < t ? t : e > r ? r : e,
1502
+ indented: e < t ? t - o : e > r ? r + o : e
1503
+ };
1504
+ }
1505
+ function ye(a, e, t, r, o) {
1506
+ t.beginPath(), t.arc(0, 0, U(a), 0, 2 * ue, true), t.lineWidth = e, t.strokeStyle = o ? m.linearGradient(t, r, o, a) : r, t.stroke(), t.closePath();
1507
+ }
1508
+ function ce(a, e) {
1509
+ var t = L.pixelRatio;
1510
+ return a.maxRadius || (a.maxRadius = a.max - e.borderShadowWidth - e.borderOuterWidth * t - e.borderMiddleWidth * t - e.borderInnerWidth * t + (e.borderOuterWidth ? 0.5 : 0) + (e.borderMiddleWidth ? 0.5 : 0) + (e.borderInnerWidth ? 0.5 : 0)), a.maxRadius;
1511
+ }
1512
+ function Ne(a, e) {
1513
+ var t = L.pixelRatio, r = e.borderShadowWidth * t, o = a.max - r - e.borderOuterWidth * t / 2, i = o - e.borderOuterWidth * t / 2 - e.borderMiddleWidth * t / 2 + 0.5, l = i - e.borderMiddleWidth * t / 2 - e.borderInnerWidth * t / 2 + 0.5, d = ce(a, e), u = void 0, s = false;
1514
+ a.save(), e.borderOuterWidth && (s = m.drawShadow(a, e, s), ye(o, e.borderOuterWidth * t, a, e.colorBorderOuter, e.colorBorderOuterEnd)), e.borderMiddleWidth && (s = m.drawShadow(a, e, s), ye(i, e.borderMiddleWidth * t, a, e.colorBorderMiddle, e.colorBorderMiddleEnd)), e.borderInnerWidth && (s = m.drawShadow(a, e, s), ye(l, e.borderInnerWidth * t, a, e.colorBorderInner, e.colorBorderInnerEnd)), m.drawShadow(a, e, s), a.beginPath(), a.arc(0, 0, U(d), 0, 2 * ue, true), e.colorPlateEnd ? (u = a.createRadialGradient(0, 0, d / 2, 0, 0, d), u.addColorStop(0, e.colorPlate), u.addColorStop(1, e.colorPlateEnd)) : u = e.colorPlate, a.fillStyle = u, a.fill(), a.closePath(), a.restore();
1515
+ }
1516
+ function Ve(a, e) {
1517
+ var t = a.max * (parseFloat(e.highlightsWidth) || 0) / 100;
1518
+ if (t) {
1519
+ var r = U(he(a, e) - t / 2), o = 0, i = e.highlights.length, l = (e.maxValue - e.minValue) / e.ticksAngle;
1520
+ for (a.save(); o < i; o++) {
1521
+ var d = e.highlights[o];
1522
+ a.beginPath(), a.rotate(fe), a.arc(0, 0, r, m.radians(e.startAngle + (d.from - e.minValue) / l), m.radians(e.startAngle + (d.to - e.minValue) / l), false), a.strokeStyle = d.color, a.lineWidth = t, a.lineCap = e.highlightsLineCap, a.stroke(), a.closePath(), a.restore(), a.save();
1523
+ }
1524
+ }
1525
+ }
1526
+ function We(a, e) {
1527
+ var t = he(a, e), r = void 0, o = void 0, i = void 0, l = 0, d = 0, u = Math.abs(e.minorTicks) || 0, s = e.ticksAngle / (e.maxValue - e.minValue);
1528
+ for (a.lineWidth = L.pixelRatio, a.strokeStyle = e.colorMinorTicks || e.colorStrokeTicks, a.save(), e.exactTicks ? (o = e.maxValue - e.minValue, r = u ? o / u : 0, d = (H.mod(e.majorTicks[0], u) || 0) * s) : r = u * (e.majorTicks.length - 1); l < r; ++l) (i = e.startAngle + d + l * (e.ticksAngle / r)) <= e.ticksAngle + e.startAngle && (a.rotate(m.radians(i)), a.beginPath(), a.moveTo(0, t), a.lineTo(0, t - 0.075 * a.max), _e(a));
1529
+ }
1530
+ function he(a, e) {
1531
+ var t = a.max / 100;
1532
+ return ce(a, e) - 5 * t - (e.barWidth ? 2 * (parseFloat(e.barStrokeWidth) || 0) + ((parseFloat(e.barWidth) || 0) + 5) * t : 0);
1533
+ }
1534
+ function Ae(a, e) {
1535
+ m.prepareTicks(e);
1536
+ var t = U(he(a, e)), r = void 0, o = void 0, i = e.majorTicks.length, l = L.pixelRatio;
1537
+ for (a.lineWidth = 2 * l, a.save(), o = e.colorMajorTicks instanceof Array ? e.colorMajorTicks : new Array(i).fill(e.colorStrokeTicks || e.colorMajorTicks), r = 0; r < i; ++r) a.strokeStyle = o[r], a.rotate(m.radians(Me(e, e.exactTicks ? e.majorTicks[r] : r, i))), a.beginPath(), a.moveTo(0, t), a.lineTo(0, t - 0.15 * a.max), _e(a);
1538
+ e.strokeTicks && (a.strokeStyle = e.colorStrokeTicks || o[0], a.rotate(fe), a.beginPath(), a.arc(0, 0, t, m.radians(e.startAngle), m.radians(e.startAngle + e.ticksAngle), false), _e(a));
1539
+ }
1540
+ function Me(a, e, t) {
1541
+ if (a.exactTicks) {
1542
+ var r = a.ticksAngle / (a.maxValue - a.minValue);
1543
+ return a.startAngle + r * (e - a.minValue);
1544
+ }
1545
+ return a.startAngle + e * (a.ticksAngle / (t - 1));
1546
+ }
1547
+ function _e(a) {
1548
+ a.stroke(), a.restore(), a.closePath(), a.save();
1549
+ }
1550
+ function Oe(a, e) {
1551
+ var t = he(a, e) - 0.15 * a.max, r = {}, o = 0, i = e.majorTicks.length, l = e.animationTarget !== "needle", d = e.colorNumbers instanceof Array ? e.colorNumbers : new Array(i).fill(e.colorNumbers), u = l ? -(e.value - e.minValue) / (e.maxValue - e.minValue) * e.ticksAngle : 0;
1552
+ for (l && (a.save(), a.rotate(-m.radians(u))), a.font = m.font(e, "Numbers", a.max / 200), a.lineWidth = 0, a.textAlign = "center", a.textBaseline = "middle"; o < i; ++o) {
1553
+ var s = u + Me(e, e.exactTicks ? e.majorTicks[o] : o, i), c = a.measureText(e.majorTicks[o]).width, h = e.fontNumbersSize, v = Math.sqrt(c * c + h * h) / 2, p = m.radialPoint(t - v - e.numbersMargin / 100 * a.max, m.radians(s));
1554
+ s === 360 && (s = 0), r[s] || (r[s] = true, a.fillStyle = d[o], a.fillText(e.majorTicks[o], p.x, p.y));
1555
+ }
1556
+ l && a.restore();
1557
+ }
1558
+ function je(a, e) {
1559
+ e.title && (a.save(), a.font = m.font(e, "Title", a.max / 200), a.fillStyle = e.colorTitle, a.textAlign = "center", a.fillText(e.title, 0, -a.max / 4.25, 0.8 * a.max), a.restore());
1560
+ }
1561
+ function Pe(a, e) {
1562
+ e.units && (a.save(), a.font = m.font(e, "Units", a.max / 200), a.fillStyle = e.colorUnits, a.textAlign = "center", a.fillText(m.formatContext(e, e.units), 0, a.max / 3.25, 0.8 * a.max), a.restore());
1563
+ }
1564
+ function Ee(a, e) {
1565
+ if (e.needle) {
1566
+ var t = e.ticksAngle < 360 ? m.normalizedValue(e).indented : e.value, r = v ? e.startAngle : e.startAngle + (t - e.minValue) / (e.maxValue - e.minValue) * e.ticksAngle;
1567
+ e.barStartPosition === "right" && (r = e.startAngle + e.ticksAngle - (t - e.minValue) / (e.maxValue - e.minValue) * e.ticksAngle);
1568
+ var o = ce(a, e), i = U(o / 100 * e.needleCircleSize), l = U(o / 100 * e.needleCircleSize * 0.75), d = U(o / 100 * e.needleEnd), u = U(e.needleStart ? o / 100 * e.needleStart : 0), s = o / 100 * e.needleWidth, c = o / 100 * e.needleWidth / 2, h = L.pixelRatio, v = e.animationTarget !== "needle";
1569
+ a.save(), m.drawNeedleShadow(a, e), a.rotate(m.radians(r)), a.fillStyle = m.linearGradient(a, e.colorNeedle, e.colorNeedleEnd, d - u), e.needleType === "arrow" ? (a.beginPath(), a.moveTo(-c, -u), a.lineTo(-s, 0), a.lineTo(-1 * h, d), a.lineTo(h, d), a.lineTo(s, 0), a.lineTo(c, -u), a.closePath(), a.fill(), a.beginPath(), a.lineTo(-0.5 * h, d), a.lineTo(-1 * h, d), a.lineTo(-s, 0), a.lineTo(-c, -u), a.lineTo(c / 2 * h - 2 * h, -u), a.closePath(), a.fillStyle = e.colorNeedleShadowUp, a.fill()) : (a.beginPath(), a.moveTo(-c, d), a.lineTo(-c, u), a.lineTo(c, u), a.lineTo(c, d), a.closePath(), a.fill()), e.needleCircleSize && (a.restore(), m.drawNeedleShadow(a, e), e.needleCircleOuter && (a.beginPath(), a.arc(0, 0, i, 0, 2 * ue, true), a.fillStyle = m.linearGradient(a, e.colorNeedleCircleOuter, e.colorNeedleCircleOuterEnd, i), a.fill(), a.closePath()), e.needleCircleInner && (a.beginPath(), a.arc(0, 0, l, 0, 2 * ue, true), a.fillStyle = m.linearGradient(a, e.colorNeedleCircleInner, e.colorNeedleCircleInnerEnd, l), a.fill(), a.closePath()), a.restore());
1570
+ }
1571
+ }
1572
+ function Ie(a, e, t) {
1573
+ m.drawValueBox(a, e, t, 0, a.max - 0.33 * a.max, a.max);
1574
+ }
1575
+ function aa(a) {
1576
+ var e = a.startAngle, t = a.startAngle + a.ticksAngle, r = e, o = e + (m.normalizedValue(a).normal - a.minValue) / (a.maxValue - a.minValue) * a.ticksAngle;
1577
+ if (a.barStartPosition === "middle") {
1578
+ var i = 0.5 * (a.minValue + a.maxValue);
1579
+ a.value < i ? (r = 180 - (i - m.normalizedValue(a).normal) / (a.maxValue - a.minValue) * a.ticksAngle, o = 180) : (r = 180, o = 180 + (m.normalizedValue(a).normal - i) / (a.maxValue - a.minValue) * a.ticksAngle);
1580
+ } else a.barStartPosition === "right" && (r = t - o + e, o = t);
1581
+ return {
1582
+ startAngle: r,
1583
+ endAngle: o
1584
+ };
1585
+ }
1586
+ function Re(a, e) {
1587
+ var t = a.max / 100, r = ce(a, e) - 5 * t, o = parseFloat(e.barStrokeWidth + "") || 0, i = (parseFloat(e.barWidth + "") || 0) * t, l = r - 2 * o - i, d = (r - l) / 2, u = l + d, s = o / u, c = e.startAngle, h = e.startAngle + e.ticksAngle;
1588
+ if (a.save(), a.rotate(fe), o && (a.beginPath(), a.arc(0, 0, u, m.radians(c) - s, m.radians(h) + s, false), a.strokeStyle = e.colorBarStroke, a.lineWidth = 2 * d, a.stroke(), a.closePath()), i && (a.beginPath(), a.arc(0, 0, u, m.radians(c), m.radians(h), false), a.strokeStyle = e.colorBar, a.lineWidth = i, a.stroke(), a.closePath(), e.barShadow && (a.beginPath(), a.arc(0, 0, r, m.radians(c), m.radians(h), false), a.clip(), a.beginPath(), a.strokeStyle = e.colorBar, a.lineWidth = 1, a.shadowBlur = e.barShadow, a.shadowColor = e.colorBarShadow, a.shadowOffsetX = 0, a.shadowOffsetY = 0, a.arc(0, 0, r, m.radians(e.startAngle), m.radians(e.startAngle + e.ticksAngle), false), a.stroke(), a.closePath(), a.restore(), a.rotate(fe)), e.barProgress)) {
1589
+ var v = aa(e), p = v.startAngle, y = v.endAngle;
1590
+ a.beginPath(), a.arc(0, 0, u, m.radians(p), m.radians(y), false), a.strokeStyle = e.colorBarProgress, a.lineWidth = i, a.stroke(), a.closePath();
1591
+ }
1592
+ a.restore();
1593
+ }
1594
+ function De(a) {
1595
+ return a.options.animatedValue ? a.options.value : a.value;
1596
+ }
1597
+ function ta(a, e, t, r, o, i, l, d) {
1598
+ a.beginPath(), a.fillStyle = d ? m.linearGradient(a, l, d, o > i ? o : i, i > o, o > i ? t : r) : l, e > 0 ? m.roundRect(a, t, r, o, i, e) : a.rect(t, r, o, i), a.fill(), a.closePath();
1599
+ }
1600
+ function ke(a, e, t, r, o, i, l, d, u) {
1601
+ a.beginPath(), a.lineWidth = e, a.strokeStyle = u ? m.linearGradient(a, d, u, l, true, o) : d, t > 0 ? m.roundRect(a, r, o, i, l, t) : a.rect(r, o, i, l), a.stroke(), a.closePath();
1602
+ }
1603
+ function ra(a, e, t, r, o, i) {
1604
+ var l = L.pixelRatio;
1605
+ a.save();
1606
+ var d = e.borderRadius * l, u = o - e.borderShadowWidth - e.borderOuterWidth * l, s = u - e.borderOuterWidth * l - e.borderMiddleWidth * l, c = s - e.borderMiddleWidth * l - e.borderInnerWidth * l, h = c - e.borderInnerWidth * l, v = i - e.borderShadowWidth - e.borderOuterWidth * l, p = v - e.borderOuterWidth * l - e.borderMiddleWidth * l, y = p - e.borderMiddleWidth * l - e.borderInnerWidth * l, V = y - e.borderInnerWidth * l, x = t - (s - u) / 2, S = x - (c - s) / 2, C = S - (h - c) / 2, N = r - (p - v) / 2, B = N - (y - p) / 2, T = B - (V - y) / 2, b = 0, f = false;
1607
+ return e.borderOuterWidth && (f = m.drawShadow(a, e, f), ke(a, e.borderOuterWidth * l, d, t + e.borderOuterWidth * l / 2 - b, r + e.borderOuterWidth * l / 2 - b, u, v, e.colorBorderOuter, e.colorBorderOuterEnd), b += 0.5 * l), e.borderMiddleWidth && (f = m.drawShadow(a, e, f), ke(a, e.borderMiddleWidth * l, d -= 1 + 2 * b, x + e.borderMiddleWidth * l / 2 - b, N + e.borderMiddleWidth * l / 2 - b, s + 2 * b, p + 2 * b, e.colorBorderMiddle, e.colorBorderMiddleEnd), b += 0.5 * l), e.borderInnerWidth && (f = m.drawShadow(a, e, f), ke(a, e.borderInnerWidth * l, d -= 1 + 2 * b, S + e.borderInnerWidth * l / 2 - b, B + e.borderInnerWidth * l / 2 - b, c + 2 * b, y + 2 * b, e.colorBorderInner, e.colorBorderInnerEnd), b += 0.5 * l), m.drawShadow(a, e, f), ta(a, d, C, T, h + 2 * b, V + 2 * b, e.colorPlate, e.colorPlateEnd), a.restore(), [
1608
+ C,
1609
+ T,
1610
+ h,
1611
+ V
1612
+ ];
1613
+ }
1614
+ function oa(a, e, t, r, o, i) {
1615
+ var l = L.pixelRatio, d = i >= o, u = d ? 0.85 * o : i, s = d ? i : o;
1616
+ t = d ? _(t + (o - u) / 2) : t;
1617
+ var c = !!e.title, h = !!e.units, v = !!e.valueBox, p = void 0, y = void 0, V = void 0;
1618
+ d ? (y = _(0.05 * s), p = _(0.075 * s), V = _(0.11 * s), c && (s -= p, r += p), h && (s -= y), v && (s -= V)) : (y = p = _(0.15 * u), c && (u -= p, r += p), h && (u -= y));
1619
+ var x = 2 * e.barStrokeWidth, S = e.barBeginCircle ? _(u * e.barBeginCircle / 200 - x / 2) : 0, C = _(u * e.barWidth / 100 - x), N = _(s * e.barLength / 100 - x), B = _((s - N) / 2), T = _(t + (d ? u / 2 : B + S)), b = _(r + (d ? s - B - S + x / 2 : u / 2)), f = !d || e.hasLeft && e.hasRight ? 0 : (e.hasRight ? -1 : 1) * e.ticksWidth / 100 * u, w = d || e.hasLeft && e.hasRight ? 0 : (e.hasRight ? -1 : 1) * e.ticksWidth / 100 * u;
1620
+ return a.barDimensions = {
1621
+ isVertical: d,
1622
+ width: u,
1623
+ length: s,
1624
+ barWidth: C,
1625
+ barLength: N,
1626
+ strokeWidth: x,
1627
+ barMargin: B,
1628
+ radius: S,
1629
+ pixelRatio: l,
1630
+ barOffset: null,
1631
+ titleMargin: c ? p : 0,
1632
+ unitsMargin: h ? y : 0,
1633
+ get ticksLength() {
1634
+ return this.barLength - this.barOffset - this.strokeWidth;
1635
+ },
1636
+ X: t + f,
1637
+ Y: r + w,
1638
+ x0: T + f,
1639
+ y0: b + w,
1640
+ baseX: t,
1641
+ baseY: r,
1642
+ ticksPadding: e.ticksPadding / 100
1643
+ }, a.barDimensions;
1644
+ }
1645
+ function ze(a, e, t, r, o, i, l) {
1646
+ var d = oa(a, e, r, o, i, l), u = d.isVertical, s = d.width, c = d.barWidth, h = d.barLength, v = d.strokeWidth, p = d.barMargin, y = d.radius, V = d.x0, x = d.y0, S = d.X, C = d.Y, N = h;
1647
+ if (a.save(), a.beginPath(), e.barBeginCircle) {
1648
+ var B = m.radians(u ? 270 : 0), T = Math.asin(c / 2 / y), b = Math.cos(T), f = Math.sin(T), w = V + (u ? y * f : y * b - v / 2), W = u ? x - y * b : x + y * f, j = U(u ? W - x : w - V);
1649
+ a.barDimensions.barOffset = _(j + y);
1650
+ var P = u ? _(V - y * f) : w, G = u ? W : _(x - y * f);
1651
+ t === "progress" && (h = a.barDimensions.barOffset + (h - a.barDimensions.barOffset) * (m.normalizedValue(e).normal - e.minValue) / (e.maxValue - e.minValue));
1652
+ var X = _(w + h - a.barDimensions.barOffset + v / 2), de = _(W - h + a.barDimensions.barOffset - v / 2);
1653
+ a.arc(V, x, y, B + T, B - T), u ? (a.moveTo(w, G), a.lineTo(w, de), a.lineTo(P, de), a.lineTo(P, G)) : (a.moveTo(w, G), a.lineTo(X, G), a.lineTo(X, W), a.lineTo(w, W));
1654
+ } else {
1655
+ var ae = _(u ? S + (s - c) / 2 : S + p), Ye = _(u ? C + h + p : C + (s - c) / 2);
1656
+ t === "progress" && (h *= (e.value - e.minValue) / (e.maxValue - e.minValue)), u ? a.rect(ae, Ye, c, -h) : a.rect(ae, Ye, h, c);
1657
+ }
1658
+ t !== "progress" && e.barStrokeWidth && (a.lineWidth = v, a.strokeStyle = e.colorBarStroke, a.stroke()), t !== "progress" && e.colorBar ? (a.fillStyle = e.colorBarEnd ? m.linearGradient(a, e.colorBar, e.colorBarEnd, h, u, u ? C : S) : e.colorBar, a.fill()) : t === "progress" && e.colorBarProgress && (a.fillStyle = e.colorBarProgressEnd ? m.linearGradient(a, e.colorBarProgress, e.colorBarProgressEnd, N, u, u ? C : S) : e.colorBarProgress, a.fill()), a.closePath(), e.barBeginCircle && (a.barDimensions.radius += v), a.barDimensions.barWidth += v, a.barDimensions.barLength += v;
1659
+ }
1660
+ function ia(a, e, t, r, o, i) {
1661
+ ze(a, e, "", t, r, o, i);
1662
+ }
1663
+ function Fe(a, e) {
1664
+ return e.needleSide !== a || e.tickSide !== a || e.numberSide !== a;
1665
+ }
1666
+ function na(a, e, t, r, o, i) {
1667
+ e.barProgress && ze(a, e, "progress", t, r, o, i);
1668
+ }
1669
+ function la(a, e) {
1670
+ var t = a.barDimensions, r = t.isVertical, o = t.width, i = t.length, l = t.barWidth, d = t.barOffset, u = t.barMargin, s = t.X, c = t.Y, h = t.ticksLength, v = t.ticksPadding, p = o * (parseFloat(e.highlightsWidth) || 0) / 100;
1671
+ if (e.highlights && p) {
1672
+ var y = e.tickSide !== "right", V = e.tickSide !== "left", x = 0, S = e.highlights.length, C = (o - l) / 2, N = e.maxValue - e.minValue, B = _(r ? s + C : s + u + d), T = p, b = r ? c + i - u - d : c + C, f = _((e.ticksWidth / 100 + v) * o) + (p - e.ticksWidth / 100 * o), w = _(l + v * o);
1673
+ for (a.save(); x < S; x++) {
1674
+ var W = e.highlights[x], j = h * U(e.minValue - W.from) / N, P = h * U((W.to - W.from) / N);
1675
+ a.beginPath(), a.fillStyle = W.color, r ? (y && a.rect(B - f, b - j, T, -P), V && a.rect(B + w, b - j, T, -P)) : (y && a.rect(B + j, b - f, P, T), V && a.rect(B + j, b + w, P, T)), a.fill(), a.closePath();
1676
+ }
1677
+ }
1678
+ }
1679
+ function me(a, e, t, r, o) {
1680
+ a.beginPath(), a.moveTo(e, t), a.lineTo(r, o), a.stroke(), a.closePath(), a.save();
1681
+ }
1682
+ function Le(a, e, t, r, o, i, l, d, u) {
1683
+ var s = a.barDimensions, c = s.isVertical, h = s.length, v = s.barWidth, p = s.barOffset, y = s.barMargin, V = s.pixelRatio, x = s.width, S = s.X, C = s.Y, N = s.ticksLength, B = s.ticksPadding, T = (x - v) / 2, b = void 0, f = void 0, w = 0, W = t.length, j = void 0, P = u * x, G = T - B * x, X = T + v + P + B * x, de = e instanceof Array ? e : new Array(t.length).fill(e);
1684
+ a.lineWidth = d * V, a.save();
1685
+ for (var ae = N / (o - r); w < W; w++) j = t[w], a.strokeStyle = de[w], c ? (f = C + h - y - p + (r - j) * ae, i && (b = S + G, me(a, b, f, _(b - P), f)), l && (b = S + X, me(a, b, f, _(b - P), f))) : (b = S + y + p - (r - j) * ae, i && (f = C + G, me(a, b, f, b, _(f - P))), l && (f = C + X, me(a, b, _(f), b, f - P)));
1686
+ }
1687
+ function ua(a, e) {
1688
+ var t = m.prepareTicks(e), r = Ge(t, 2), o = r[0], i = r[1], l = 2, d = (e.maxValue - e.minValue) / (e.majorTicks.length - 1), u = e.colorMajorTicks instanceof Array ? e.colorMajorTicks : new Array(e.majorTicks.length).fill(e.colorStrokeTicks || e.colorMajorTicks);
1689
+ if (Le(a, u, e.exactTicks ? e.majorTicks : e.majorTicks.map(function(P, G) {
1690
+ return e.minValue + d * G;
1691
+ }), e.minValue, e.maxValue, o, i, l, e.ticksWidth / 100), e.strokeTicks) {
1692
+ var s = a.barDimensions, c = s.isVertical, h = s.length, v = s.width, p = s.barWidth, y = s.barMargin, V = s.barOffset, x = s.X, S = s.Y, C = s.ticksLength, N = s.pixelRatio, B = s.ticksPadding, T = (v - p) / 2 + p + B * v, b = (v - p) / 2 - B * v, f = void 0, w = void 0, W = void 0, j = void 0;
1693
+ a.strokeStyle = e.colorStrokeTicks || u[0], l *= N, c ? (w = S + h - y - V + l / 2, j = w - C - l, o && (W = f = _(x + b), be(a, f, w, W, j)), i && (W = f = _(x + T), be(a, f, w, W, j))) : (f = x + y + V - l / 2, W = f + C + l, o && (j = w = _(S + b), be(a, f, w, W, j)), i && (j = w = _(S + T), be(a, f, w, W, j)));
1694
+ }
1695
+ }
1696
+ function be(a, e, t, r, o) {
1697
+ a.beginPath(), a.moveTo(e, t), a.lineTo(r, o), a.stroke(), a.closePath();
1698
+ }
1699
+ function da(a, e) {
1700
+ var t = m.prepareTicks(e), r = Ge(t, 2), o = r[0], i = r[1], l = [], d = e.minValue, u = Math.abs(e.minorTicks) || 0, s = u ? (e.maxValue - e.minValue) / (u * (e.majorTicks.length - 1)) : 0;
1701
+ if (u) if (e.exactTicks) for (var c = H.mod(e.majorTicks[0], u) || 0; d < e.maxValue; d += u) c + d < e.maxValue && l.push(c + d);
1702
+ else for (; d < e.maxValue; d += s) l.push(d);
1703
+ Le(a, e.colorMinorTicks || e.colorStrokeTicks, l, e.minValue, e.maxValue, o, i, 1, e.ticksWidthMinor / 100);
1704
+ }
1705
+ function sa(a, e) {
1706
+ var t = a.barDimensions, r = t.isVertical, o = t.length, i = t.width, l = t.barWidth, d = t.barMargin, u = t.barOffset, s = t.X, c = t.Y, h = t.ticksLength, v = t.ticksPadding, p = e.maxValue - e.minValue, y = p / (e.majorTicks.length - 1), V = e.exactTicks ? e.majorTicks : e.majorTicks.map(function(de, ae) {
1707
+ return e.minValue + y * ae;
1708
+ }), x = V.length, S = e.numberSide !== "right", C = e.numberSide !== "left", N = e.fontNumbersSize * i / 200, B = 0, T = (e.ticksWidth / 100 + 2 * v) * i, b = (i - l) / 2 - T, f = (i - l) / 2 + l + T, w = void 0, W = void 0, j = void 0, P = void 0, G = e.colorNumbers instanceof Array ? e.colorNumbers : new Array(x).fill(e.colorNumbers), X = e.numbersMargin / 100 * i;
1709
+ for (a.font = m.font(e, "Numbers", i / 200), a.lineWidth = 0, a.textAlign = "center"; B < x; B++) a.fillStyle = G[B], P = e.majorTicks[B], j = e.exactTicks ? h * ((V[B] - e.minValue) / p) : B * h / (x - 1), r ? (W = c + o - d - u - j + N / 3, S && (a.textAlign = "right", a.fillText(P, s + b - X, W)), C && (a.textAlign = "left", a.fillText(P, s + f + X, W))) : (a.measureText(P).width, w = s + d + u + j, S && a.fillText(P, w, c + b - X), C && a.fillText(P, w, c + f + N + X));
1710
+ }
1711
+ function ga(a, e) {
1712
+ if (e.title) {
1713
+ var t = a.barDimensions, r = t.isVertical, o = t.width, i = t.length, l = t.baseX, d = t.baseY, u = t.titleMargin, s = e.fontTitleSize * o / 200, c = _(l + (r ? o : i) / 2), h = _(d + u / 2 - (r ? s : s / 2) - 0.025 * (r ? i : o));
1714
+ a.save(), a.textAlign = "center", a.fillStyle = e.colorTitle, a.font = m.font(e, "Title", o / 200), a.lineWidth = 0, a.fillText(e.title, c, h, r ? o : i);
1715
+ }
1716
+ }
1717
+ function ca(a, e) {
1718
+ if (e.units) {
1719
+ var t = a.barDimensions, r = t.isVertical, o = t.width, i = t.length, l = t.baseX, d = t.baseY, u = t.unitsMargin, s = e.fontUnitsSize * o / 200, c = _(l + (r ? o : i) / 2), h = _(d + (r ? i : o) + u / 2 - s / 2);
1720
+ a.save(), a.textAlign = "center", a.fillStyle = e.colorUnits, a.font = m.font(e, "Units", o / 200), a.lineWidth = 0, a.fillText(m.formatContext(e, e.units), c, h, r ? o : i);
1721
+ }
1722
+ }
1723
+ function ha(a, e) {
1724
+ if (e.needle) {
1725
+ var t = a.barDimensions, r = t.isVertical, o = t.width, i = t.length, l = t.barWidth, d = t.barOffset, u = t.barMargin, s = t.ticksLength, c = t.X, h = t.Y, v = t.ticksPadding, p = e.needleSide !== "right", y = e.needleSide !== "left", V = s * (m.normalizedValue(e).indented - e.minValue) / (e.maxValue - e.minValue), x = (e.ticksWidth / 100 + v) * o, S = l / 2 + x, C = S * (e.needleEnd / 100), N = void 0, B = void 0, T = void 0, b = void 0, f = e.needleType.toLowerCase() === "arrow" ? ba : ma, w = (o - l) / 2, W = S * (e.needleStart / 100), j = w - x - W, P = w + l + x + W;
1726
+ a.save(), m.drawNeedleShadow(a, e), r ? (T = _(h + i - u - d - V), p && (N = _(c + j), B = N + C, f(a, e, N, T, B, T, C)), y && (N = _(c + P), B = N - C, f(a, e, N, T, B, T, C, true))) : (N = _(c + u + d + V), p && (T = _(h + j), b = T + C, f(a, e, N, T, N, b, C)), y && (T = _(h + P), b = T - C, f(a, e, N, T, N, b, C, true))), a.restore();
1727
+ }
1728
+ }
1729
+ function Ue(a, e, t, r) {
1730
+ return e.colorNeedleEnd ? m.linearGradient(a, r ? e.colorNeedleEnd : e.colorNeedle, r ? e.colorNeedle : e.colorNeedleEnd, t, !a.barDimensions.isVertical) : e.colorNeedle;
1731
+ }
1732
+ function ma(a, e, t, r, o, i, l, d) {
1733
+ a.lineWidth = e.needleWidth, a.strokeStyle = Ue(a, e, l, d), a.beginPath(), a.moveTo(t, r), a.lineTo(o, i), a.stroke(), a.closePath();
1734
+ }
1735
+ function ba(a, e, t, r, o, i, l, d) {
1736
+ var u = _(0.4 * l), s = l - u, c = t === o, h = e.needleWidth / 2;
1737
+ a.fillStyle = Ue(a, e, l, d), a.beginPath(), c ? (r > i && (s *= -1), a.moveTo(t - h, r), a.lineTo(t + h, r), a.lineTo(t + h, r + s), a.lineTo(t, i), a.lineTo(t - h, r + s), a.lineTo(t - h, r)) : (t > o && (s *= -1), a.moveTo(t, r - h), a.lineTo(t, r + h), a.lineTo(t + s, r + h), a.lineTo(o, r), a.lineTo(t + s, r - h), a.lineTo(t, r - h)), a.fill(), a.closePath();
1738
+ }
1739
+ function fa(a, e, t, r, o, i, l) {
1740
+ var d = (parseFloat(e.fontValueSize) || 0) * i / 200, u = (0.11 * l - d) / 2;
1741
+ a.barDimensions.isVertical && m.drawValueBox(a, e, t, r + i / 2, o + l - d - u, i);
1742
+ }
1743
+ var Ge = /* @__PURE__ */ (function() {
1744
+ function a(e, t) {
1745
+ var r = [], o = true, i = false, l = void 0;
1746
+ try {
1747
+ for (var d, u = e[Symbol.iterator](); !(o = (d = u.next()).done) && (r.push(d.value), !t || r.length !== t); o = true) ;
1748
+ } catch (s) {
1749
+ i = true, l = s;
1750
+ } finally {
1751
+ try {
1752
+ !o && u.return && u.return();
1753
+ } finally {
1754
+ if (i) throw l;
1755
+ }
1756
+ }
1757
+ return r;
1758
+ }
1759
+ return function(e, t) {
1760
+ if (Array.isArray(e)) return e;
1761
+ if (Symbol.iterator in Object(e)) return a(e, t);
1762
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
1763
+ };
1764
+ })(), xe = function a(e, t, r) {
1765
+ e === null && (e = Function.prototype);
1766
+ var o = Object.getOwnPropertyDescriptor(e, t);
1767
+ if (o === void 0) {
1768
+ var i = Object.getPrototypeOf(e);
1769
+ return i === null ? void 0 : a(i, t, r);
1770
+ }
1771
+ if ("value" in o) return o.value;
1772
+ var l = o.get;
1773
+ if (l !== void 0) return l.call(r);
1774
+ }, va = function a(e, t, r, o) {
1775
+ var i = Object.getOwnPropertyDescriptor(e, t);
1776
+ if (i === void 0) {
1777
+ var l = Object.getPrototypeOf(e);
1778
+ l !== null && a(l, t, r, o);
1779
+ } else if ("value" in i && i.writable) i.value = r;
1780
+ else {
1781
+ var d = i.set;
1782
+ d !== void 0 && d.call(o, r);
1783
+ }
1784
+ return r;
1785
+ }, ee = /* @__PURE__ */ (function() {
1786
+ function a(e, t) {
1787
+ for (var r = 0; r < t.length; r++) {
1788
+ var o = t[r];
1789
+ o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, o.key, o);
1790
+ }
1791
+ }
1792
+ return function(e, t, r) {
1793
+ return t && a(e.prototype, t), r && a(e, r), e;
1794
+ };
1795
+ })();
1796
+ Object.assign || Object.defineProperty(Object, "assign", {
1797
+ enumerable: false,
1798
+ configurable: true,
1799
+ writable: true,
1800
+ value: function(a, e) {
1801
+ if (a == null) throw new TypeError("Cannot convert first argument to object");
1802
+ for (var t = Object(a), r = 1; r < arguments.length; r++) {
1803
+ var o = arguments[r];
1804
+ if (o != null) for (var i = Object.keys(Object(o)), l = 0, d = i.length; l < d; l++) {
1805
+ var u = i[l], s = Object.getOwnPropertyDescriptor(o, u);
1806
+ s !== void 0 && s.enumerable && (t[u] = o[u]);
1807
+ }
1808
+ }
1809
+ return t;
1810
+ }
1811
+ }), Array.prototype.indexOf || Object.defineProperty(Array.prototype, "indexOf", {
1812
+ value: function(a, e) {
1813
+ var t;
1814
+ if (this === null) throw new TypeError('"this" is null or not defined');
1815
+ var r = Object(this), o = r.length >>> 0;
1816
+ if (o === 0) return -1;
1817
+ var i = +e || 0;
1818
+ if (Math.abs(i) === 1 / 0 && (i = 0), i >= o) return -1;
1819
+ for (t = Math.max(i >= 0 ? i : o - Math.abs(i), 0); t < o; ) {
1820
+ if (t in r && r[t] === a) return t;
1821
+ t++;
1822
+ }
1823
+ return -1;
1824
+ }
1825
+ }), Array.prototype.fill || Object.defineProperty(Array.prototype, "fill", {
1826
+ value: function(a) {
1827
+ if (this === null) throw new TypeError("this is null or not defined");
1828
+ for (var e = Object(this), t = e.length >>> 0, r = arguments[1], o = r >> 0, i = o < 0 ? Math.max(t + o, 0) : Math.min(o, t), l = arguments[2], d = l === void 0 ? t : l >> 0, u = d < 0 ? Math.max(t + d, 0) : Math.min(d, t); i < u; ) e[i] = a, i++;
1829
+ return e;
1830
+ }
1831
+ }), typeof window > "u" && (window = typeof Ce > "u" ? {} : Ce);
1832
+ var pa = (function() {
1833
+ function a() {
1834
+ n(this, a), this._events = {}, this.addListener = this.on, this.removeListener = this.off;
1835
+ }
1836
+ return ee(a, [
1837
+ {
1838
+ key: "emit",
1839
+ value: function(e) {
1840
+ if (this._events[e]) {
1841
+ for (var t = 0, r = this._events[e].length, o = arguments.length, i = Array(o > 1 ? o - 1 : 0), l = 1; l < o; l++) i[l - 1] = arguments[l];
1842
+ for (; t < r; t++) this._events[e][t] && this._events[e][t].apply(this, i);
1843
+ }
1844
+ }
1845
+ },
1846
+ {
1847
+ key: "once",
1848
+ value: function(e) {
1849
+ for (var t = arguments.length, r = Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++) r[o - 1] = arguments[o];
1850
+ for (var i = 0, l = r.length, d = this; i < l; i++) (function() {
1851
+ var u = r[i], s = function c() {
1852
+ d.off(e, c), u.apply(d, arguments);
1853
+ };
1854
+ r[i] = s;
1855
+ })();
1856
+ this.on.apply(this, [
1857
+ e
1858
+ ].concat(r));
1859
+ }
1860
+ },
1861
+ {
1862
+ key: "on",
1863
+ value: function(e) {
1864
+ this._events[e] || (this._events[e] = []);
1865
+ for (var t = 0, r = arguments.length <= 1 ? 0 : arguments.length - 1; t < r; t++) this._events[e].push(arguments.length <= t + 1 ? void 0 : arguments[t + 1]);
1866
+ }
1867
+ },
1868
+ {
1869
+ key: "off",
1870
+ value: function(e) {
1871
+ if (this._events[e]) for (var t = 0, r = arguments.length <= 1 ? 0 : arguments.length - 1; t < r; t++) for (var o = arguments.length <= t + 1 ? void 0 : arguments[t + 1], i = void 0; ~(i = this._events[e].indexOf(o)); ) this._events[e].splice(i, 1);
1872
+ }
1873
+ },
1874
+ {
1875
+ key: "removeAllListeners",
1876
+ value: function(e) {
1877
+ delete this._events[e];
1878
+ }
1879
+ },
1880
+ {
1881
+ key: "listeners",
1882
+ get: function() {
1883
+ return this._events;
1884
+ }
1885
+ }
1886
+ ]), a;
1887
+ })(), qe = $("requestAnimationFrame") || function(a) {
1888
+ return setTimeout(function() {
1889
+ return a((/* @__PURE__ */ new Date()).getTime());
1890
+ }, 1e3 / 60);
1891
+ }, ne = {
1892
+ linear: function(a) {
1893
+ return a;
1894
+ },
1895
+ quad: function(a) {
1896
+ return Math.pow(a, 2);
1897
+ },
1898
+ dequad: function(a) {
1899
+ return 1 - ne.quad(1 - a);
1900
+ },
1901
+ quint: function(a) {
1902
+ return Math.pow(a, 5);
1903
+ },
1904
+ dequint: function(a) {
1905
+ return 1 - Math.pow(1 - a, 5);
1906
+ },
1907
+ cycle: function(a) {
1908
+ return 1 - Math.sin(Math.acos(a));
1909
+ },
1910
+ decycle: function(a) {
1911
+ return Math.sin(Math.acos(1 - a));
1912
+ },
1913
+ bounce: function(a) {
1914
+ return 1 - ne.debounce(1 - a);
1915
+ },
1916
+ debounce: function(a) {
1917
+ for (var e = 0, t = 1; ; e += t, t /= 2) if (a >= (7 - 4 * e) / 11) return -Math.pow((11 - 6 * e - 11 * a) / 4, 2) + Math.pow(t, 2);
1918
+ },
1919
+ elastic: function(a) {
1920
+ return 1 - ne.delastic(1 - a);
1921
+ },
1922
+ delastic: function(a) {
1923
+ return Math.pow(2, 10 * (a - 1)) * Math.cos(20 * Math.PI * 1.5 / 3 * a);
1924
+ }
1925
+ }, Te = (function() {
1926
+ function a() {
1927
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "linear", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 250, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
1928
+ }, o = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : function() {
1929
+ };
1930
+ if (n(this, a), this.duration = t, this.rule = e, this.draw = r, this.end = o, typeof this.draw != "function") throw new TypeError("Invalid animation draw callback:", r);
1931
+ if (typeof this.end != "function") throw new TypeError("Invalid animation end callback:", o);
1932
+ }
1933
+ return ee(a, [
1934
+ {
1935
+ key: "animate",
1936
+ value: function(e, t) {
1937
+ var r = this;
1938
+ this.frame && this.cancel();
1939
+ var o = window.performance && window.performance.now ? window.performance.now() : $("animationStartTime") || Date.now();
1940
+ e = e || this.draw, t = t || this.end, this.draw = e, this.end = t, this.frame = qe(function(i) {
1941
+ return O(i, e, o, ne[r.rule] || r.rule, r.duration, t, r);
1942
+ });
1943
+ }
1944
+ },
1945
+ {
1946
+ key: "cancel",
1947
+ value: function() {
1948
+ this.frame && (($("cancelAnimationFrame") || function(e) {
1949
+ })(this.frame), this.frame = null);
1950
+ }
1951
+ },
1952
+ {
1953
+ key: "destroy",
1954
+ value: function() {
1955
+ this.cancel(), this.draw = null, this.end = null;
1956
+ }
1957
+ }
1958
+ ]), a;
1959
+ })();
1960
+ Te.rules = ne;
1961
+ var te = (function() {
1962
+ function a(e, t, r) {
1963
+ n(this, a), this.options = e, this.element = t.toLowerCase(), this.type = a.toDashed(r), this.Type = k[r], this.mutationsObserved = false, this.isObservable = !!window.MutationObserver, window.GAUGES_NO_AUTO_INIT || a.domReady(this.traverse.bind(this));
1964
+ }
1965
+ return ee(a, [
1966
+ {
1967
+ key: "isValidNode",
1968
+ value: function(e) {
1969
+ return !(!e.tagName || e.tagName.toLowerCase() !== this.element || e.getAttribute("data-type") !== this.type);
1970
+ }
1971
+ },
1972
+ {
1973
+ key: "traverse",
1974
+ value: function() {
1975
+ for (var e = document.getElementsByTagName(this.element), t = 0, r = e.length; t < r; t++) this.process(e[t]);
1976
+ this.isObservable && !this.mutationsObserved && (new MutationObserver(this.observe.bind(this)).observe(document.body, {
1977
+ childList: true,
1978
+ subtree: true,
1979
+ attributes: true,
1980
+ characterData: true,
1981
+ attributeOldValue: true,
1982
+ characterDataOldValue: true
1983
+ }), this.mutationsObserved = true);
1984
+ }
1985
+ },
1986
+ {
1987
+ key: "observe",
1988
+ value: function(e) {
1989
+ for (var t = 0, r = e.length; t < r; t++) {
1990
+ var o = e[t];
1991
+ if (o.type === "attributes" && o.attributeName === "data-type" && this.isValidNode(o.target) && o.oldValue !== this.type) setTimeout(this.process.bind(this, o.target));
1992
+ else if (o.addedNodes && o.addedNodes.length) for (var i = 0, l = o.addedNodes.length; i < l; i++) setTimeout(this.process.bind(this, o.addedNodes[i]));
1993
+ }
1994
+ }
1995
+ },
1996
+ {
1997
+ key: "process",
1998
+ value: function(e) {
1999
+ var t = this;
2000
+ if (!this.isValidNode(e)) return null;
2001
+ var r = void 0, o = JSON.parse(JSON.stringify(this.options)), i = null;
2002
+ for (r in o) if (o.hasOwnProperty(r)) {
2003
+ var l = a.toAttributeName(r), d = a.parse(e.getAttribute(l));
2004
+ d != null && (o[r] = d);
2005
+ }
2006
+ return o.renderTo = e, i = new this.Type(o), i.draw && i.draw(), this.isObservable && (i.observer = new MutationObserver(function(u) {
2007
+ u.forEach(function(s) {
2008
+ if (s.type === "attributes") {
2009
+ var c = s.attributeName.toLowerCase(), h = e.getAttribute(c).toLowerCase();
2010
+ if (c === "data-type" && h && h !== t.type) i.observer.disconnect(), delete i.observer, i.destroy && i.destroy();
2011
+ else if (c.substr(0, 5) === "data-") {
2012
+ var v = c.substr(5).split("-").map(function(y, V) {
2013
+ return V ? y.charAt(0).toUpperCase() + y.substr(1) : y;
2014
+ }).join(""), p = {};
2015
+ p[v] = a.parse(e.getAttribute(s.attributeName)), v === "value" ? i && (i.value = p[v]) : i.update && i.update(p);
2016
+ }
2017
+ }
2018
+ });
2019
+ }), i.observer.observe(e, {
2020
+ attributes: true
2021
+ })), i;
2022
+ }
2023
+ }
2024
+ ], [
2025
+ {
2026
+ key: "parse",
2027
+ value: function(e) {
2028
+ if (e === "true") return true;
2029
+ if (e === "false") return false;
2030
+ if (e !== "undefined") {
2031
+ if (e === "null") return null;
2032
+ if (/^[-+#.\w\d\s]+(?:,[-+#.\w\d\s]*)+$/.test(e)) return e.split(",");
2033
+ try {
2034
+ return JSON.parse(e);
2035
+ } catch {
2036
+ }
2037
+ return e;
2038
+ }
2039
+ }
2040
+ },
2041
+ {
2042
+ key: "toDashed",
2043
+ value: function(e) {
2044
+ for (var t = e.split(/(?=[A-Z])/), r = 1, o = t.length, i = t[0].toLowerCase(); r < o; r++) i += "-" + t[r].toLowerCase();
2045
+ return i;
2046
+ }
2047
+ },
2048
+ {
2049
+ key: "toCamelCase",
2050
+ value: function(e) {
2051
+ for (var t = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1], r = e.split(/-/), o = 0, i = r.length, l = ""; o < i; o++) l += o || t ? r[o][0].toUpperCase() + r[o].substr(1).toLowerCase() : r[o].toLowerCase();
2052
+ return l;
2053
+ }
2054
+ },
2055
+ {
2056
+ key: "toAttributeName",
2057
+ value: function(e) {
2058
+ return "data-" + a.toDashed(e);
2059
+ }
2060
+ },
2061
+ {
2062
+ key: "domReady",
2063
+ value: function(e) {
2064
+ if (/comp|inter|loaded/.test((window.document || {}).readyState + "")) return e();
2065
+ window.addEventListener ? window.addEventListener("DOMContentLoaded", e, false) : window.attachEvent && window.attachEvent("onload", e);
2066
+ }
2067
+ }
2068
+ ]), a;
2069
+ })(), L = (function() {
2070
+ function a(e, t, r) {
2071
+ n(this, a), a.collection.push(this), this.width = t || 0, this.height = r || 0, this.element = e, this.init();
2072
+ }
2073
+ return ee(a, [
2074
+ {
2075
+ key: "init",
2076
+ value: function() {
2077
+ var e = a.pixelRatio;
2078
+ this.element.width = this.width * e, this.element.height = this.height * e, this.element.style.width = this.width + "px", this.element.style.height = this.height + "px", this.elementClone = this.element.cloneNode(true), this.context = this.element.getContext("2d"), this.contextClone = this.elementClone.getContext("2d"), this.drawWidth = this.element.width, this.drawHeight = this.element.height, this.drawX = this.drawWidth / 2, this.drawY = this.drawHeight / 2, this.minSide = this.drawX < this.drawY ? this.drawX : this.drawY, this.elementClone.initialized = false, this.contextClone.translate(this.drawX, this.drawY), this.contextClone.save(), this.context.translate(this.drawX, this.drawY), this.context.save(), this.context.max = this.contextClone.max = this.minSide, this.context.maxRadius = this.contextClone.maxRadius = null;
2079
+ }
2080
+ },
2081
+ {
2082
+ key: "destroy",
2083
+ value: function() {
2084
+ var e = a.collection.indexOf(this);
2085
+ ~e && a.collection.splice(e, 1), this.context.clearRect(-this.drawX, -this.drawY, this.drawWidth, this.drawHeight), this.context.max = null, delete this.context.max, this.context.maxRadius = null, delete this.context.maxRadius, this.context = null, this.contextClone = null, this.elementClone = null, this.element = null, this.onRedraw = null;
2086
+ }
2087
+ },
2088
+ {
2089
+ key: "commit",
2090
+ value: function() {
2091
+ var e = a.pixelRatio;
2092
+ return e !== 1 && (this.contextClone.scale(e, e), this.contextClone.save()), this;
2093
+ }
2094
+ },
2095
+ {
2096
+ key: "redraw",
2097
+ value: function() {
2098
+ return this.init(), this.onRedraw && this.onRedraw(), this;
2099
+ }
2100
+ }
2101
+ ], [
2102
+ {
2103
+ key: "redraw",
2104
+ value: function() {
2105
+ for (var e = 0, t = a.collection.length; e < t; e++) a.collection[e].redraw();
2106
+ }
2107
+ },
2108
+ {
2109
+ key: "pixelRatio",
2110
+ get: function() {
2111
+ return window.devicePixelRatio || 1;
2112
+ }
2113
+ }
2114
+ ]), a;
2115
+ })();
2116
+ L.collection = [], window.matchMedia && window.matchMedia("screen and (min-resolution: 2dppx)").addListener(L.redraw);
2117
+ var we = {
2118
+ renderTo: null,
2119
+ width: 0,
2120
+ height: 0,
2121
+ minValue: 0,
2122
+ maxValue: 100,
2123
+ value: 0,
2124
+ units: false,
2125
+ exactTicks: false,
2126
+ majorTicks: [
2127
+ 0,
2128
+ 20,
2129
+ 40,
2130
+ 60,
2131
+ 80,
2132
+ 100
2133
+ ],
2134
+ minorTicks: 10,
2135
+ strokeTicks: true,
2136
+ animatedValue: false,
2137
+ animateOnInit: false,
2138
+ title: false,
2139
+ borders: true,
2140
+ numbersMargin: 1,
2141
+ listeners: null,
2142
+ valueInt: 3,
2143
+ valueDec: 2,
2144
+ majorTicksInt: 1,
2145
+ majorTicksDec: 0,
2146
+ animation: true,
2147
+ animationDuration: 500,
2148
+ animationRule: "cycle",
2149
+ colorPlate: "#fff",
2150
+ colorPlateEnd: "",
2151
+ colorMajorTicks: "#444",
2152
+ colorMinorTicks: "#666",
2153
+ colorStrokeTicks: "",
2154
+ colorTitle: "#888",
2155
+ colorUnits: "#888",
2156
+ colorNumbers: "#444",
2157
+ colorNeedle: "rgba(240,128,128,1)",
2158
+ colorNeedleEnd: "rgba(255,160,122,.9)",
2159
+ colorValueText: "#444",
2160
+ colorValueTextShadow: "rgba(0,0,0,0.3)",
2161
+ colorBorderShadow: "rgba(0,0,0,0.5)",
2162
+ colorBorderOuter: "#ddd",
2163
+ colorBorderOuterEnd: "#aaa",
2164
+ colorBorderMiddle: "#eee",
2165
+ colorBorderMiddleEnd: "#f0f0f0",
2166
+ colorBorderInner: "#fafafa",
2167
+ colorBorderInnerEnd: "#ccc",
2168
+ colorValueBoxRect: "#888",
2169
+ colorValueBoxRectEnd: "#666",
2170
+ colorValueBoxBackground: "#babab2",
2171
+ colorValueBoxShadow: "rgba(0,0,0,1)",
2172
+ colorNeedleShadowUp: "rgba(2,255,255,0.2)",
2173
+ colorNeedleShadowDown: "rgba(188,143,143,0.45)",
2174
+ colorBarStroke: "#222",
2175
+ colorBar: "#ccc",
2176
+ colorBarProgress: "#888",
2177
+ colorBarShadow: "#000",
2178
+ fontNumbers: "Arial",
2179
+ fontTitle: "Arial",
2180
+ fontUnits: "Arial",
2181
+ fontValue: "Arial",
2182
+ fontNumbersSize: 20,
2183
+ fontTitleSize: 24,
2184
+ fontUnitsSize: 22,
2185
+ fontValueSize: 26,
2186
+ fontNumbersStyle: "normal",
2187
+ fontTitleStyle: "normal",
2188
+ fontUnitsStyle: "normal",
2189
+ fontValueStyle: "normal",
2190
+ fontNumbersWeight: "normal",
2191
+ fontTitleWeight: "normal",
2192
+ fontUnitsWeight: "normal",
2193
+ fontValueWeight: "normal",
2194
+ needle: true,
2195
+ needleShadow: true,
2196
+ needleType: "arrow",
2197
+ needleStart: 5,
2198
+ needleEnd: 85,
2199
+ needleWidth: 4,
2200
+ borderOuterWidth: 3,
2201
+ borderMiddleWidth: 3,
2202
+ borderInnerWidth: 3,
2203
+ borderShadowWidth: 3,
2204
+ valueBox: true,
2205
+ valueBoxStroke: 5,
2206
+ valueBoxWidth: 0,
2207
+ valueText: "",
2208
+ valueTextShadow: true,
2209
+ valueBoxBorderRadius: 2.5,
2210
+ highlights: [
2211
+ {
2212
+ from: 20,
2213
+ to: 60,
2214
+ color: "#eee"
2215
+ },
2216
+ {
2217
+ from: 60,
2218
+ to: 80,
2219
+ color: "#ccc"
2220
+ },
2221
+ {
2222
+ from: 80,
2223
+ to: 100,
2224
+ color: "#999"
2225
+ }
2226
+ ],
2227
+ highlightsWidth: 15,
2228
+ highlightsLineCap: "butt",
2229
+ barWidth: 20,
2230
+ barStrokeWidth: 0,
2231
+ barProgress: true,
2232
+ barShadow: 0
2233
+ };
2234
+ D.prototype = Object.create(Array.prototype), D.prototype.constructor = D, D.prototype.get = function(a) {
2235
+ if (typeof a == "string") for (var e = 0, t = this.length; e < t; e++) {
2236
+ var r = this[e].options.renderTo.tagName ? this[e].options.renderTo : document.getElementById(this[e].options.renderTo || "");
2237
+ if (r.getAttribute("id") === a) return this[e];
2238
+ }
2239
+ else if (typeof a == "number") return this[a];
2240
+ return null;
2241
+ };
2242
+ var Se = "2.1.7", _ = Math.round, U = Math.abs, le = new D();
2243
+ le.version = Se;
2244
+ var H = (function(a) {
2245
+ function e(t) {
2246
+ n(this, e);
2247
+ var r = z(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this)), o = r.constructor.name;
2248
+ if (o === "BaseGauge") throw new TypeError("Attempt to instantiate abstract class!");
2249
+ if (le.push(r), t.listeners && Object.keys(t.listeners).forEach(function(l) {
2250
+ (t.listeners[l] instanceof Array ? t.listeners[l] : [
2251
+ t.listeners[l]
2252
+ ]).forEach(function(d) {
2253
+ r.on(l, d);
2254
+ });
2255
+ }), r.version = Se, r.type = k[o] || e, r.initialized = false, t.minValue = parseFloat(t.minValue), t.maxValue = parseFloat(t.maxValue), t.value = parseFloat(t.value) || 0, t.borders || (t.borderInnerWidth = t.borderMiddleWidth = t.borderOuterWidth = 0), !t.renderTo) throw TypeError("Canvas element was not specified when creating the Gauge object!");
2256
+ var i = t.renderTo.tagName ? t.renderTo : document.getElementById(t.renderTo);
2257
+ if (!(i instanceof HTMLCanvasElement)) throw TypeError("Given gauge canvas element is invalid!");
2258
+ return t.width = parseFloat(t.width) || 0, t.height = parseFloat(t.height) || 0, t.width && t.height || (t.width || (t.width = i.parentNode ? i.parentNode.offsetWidth : i.offsetWidth), t.height || (t.height = i.parentNode ? i.parentNode.offsetHeight : i.offsetHeight)), r.options = t || {}, r.options.animateOnInit && (r._value = r.options.value, r.options.value = r.options.minValue), r.canvas = new L(i, t.width, t.height), r.canvas.onRedraw = r.draw.bind(r), r.animation = new Te(t.animationRule, t.animationDuration), r;
2259
+ }
2260
+ return E(e, a), ee(e, [
2261
+ {
2262
+ key: "update",
2263
+ value: function(t) {
2264
+ return Object.assign(this.options, this.type.configure(t || {})), this.canvas.width = this.options.width, this.canvas.height = this.options.height, this.animation.rule = this.options.animationRule, this.animation.duration = this.options.animationDuration, this.canvas.redraw(), this;
2265
+ }
2266
+ },
2267
+ {
2268
+ key: "destroy",
2269
+ value: function() {
2270
+ var t = le.indexOf(this);
2271
+ ~t && le.splice(t, 1), this.canvas.destroy(), this.canvas = null, this.animation.destroy(), this.animation = null, this.emit("destroy");
2272
+ }
2273
+ },
2274
+ {
2275
+ key: "draw",
2276
+ value: function() {
2277
+ return this.options.animateOnInit && !this.initialized && (this.value = this._value, this.initialized = true, this.emit("init")), this.emit("render"), this;
2278
+ }
2279
+ },
2280
+ {
2281
+ key: "value",
2282
+ set: function(t) {
2283
+ var r = this;
2284
+ t = e.ensureValue(t, this.options.minValue);
2285
+ var o = this.options.value;
2286
+ if (t !== o) if (this.options.animation) {
2287
+ if (this.animation.frame && (this.options.value = this._value, this._value === t)) return this.animation.cancel(), void delete this._value;
2288
+ this._value === void 0 && (this._value = t), this.emit("animationStart"), this.animation.animate(function(i) {
2289
+ var l = o + (t - o) * i;
2290
+ r.options.animatedValue && r.emit("value", l, r.value), r.options.value = l, r.draw(), r.emit("animate", i, r.options.value);
2291
+ }, function() {
2292
+ r._value !== void 0 && (r.emit("value", r._value, r.value), r.options.value = r._value, delete r._value), r.draw(), r.emit("animationEnd");
2293
+ });
2294
+ } else this.emit("value", t, this.value), this.options.value = t, this.draw();
2295
+ },
2296
+ get: function() {
2297
+ return this._value === void 0 ? this.options.value : this._value;
2298
+ }
2299
+ }
2300
+ ], [
2301
+ {
2302
+ key: "configure",
2303
+ value: function(t) {
2304
+ return t;
2305
+ }
2306
+ },
2307
+ {
2308
+ key: "initialize",
2309
+ value: function(t, r) {
2310
+ return new te(r, "canvas", t);
2311
+ }
2312
+ },
2313
+ {
2314
+ key: "fromElement",
2315
+ value: function(t) {
2316
+ var r = te.toCamelCase(t.getAttribute("data-type")), o = t.attributes, i = 0, l = o.length, d = {};
2317
+ if (r) {
2318
+ for (/Gauge$/.test(r) || (r += "Gauge"); i < l; i++) d[te.toCamelCase(o[i].name.replace(/^data-/, ""), false)] = te.parse(o[i].value);
2319
+ new te(d, t.tagName, r).process(t);
2320
+ }
2321
+ }
2322
+ },
2323
+ {
2324
+ key: "ensureValue",
2325
+ value: function(t) {
2326
+ var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
2327
+ return t = parseFloat(t), !isNaN(t) && isFinite(t) || (t = parseFloat(r) || 0), t;
2328
+ }
2329
+ },
2330
+ {
2331
+ key: "mod",
2332
+ value: function(t, r) {
2333
+ return (t % r + r) % r;
2334
+ }
2335
+ },
2336
+ {
2337
+ key: "version",
2338
+ get: function() {
2339
+ return Se;
2340
+ }
2341
+ }
2342
+ ]), e;
2343
+ })(pa);
2344
+ k !== void 0 && (k.BaseGauge = H, k.gauges = (window.document || {}).gauges = le);
2345
+ var ya = /{([_a-zA-Z]+[_a-zA-Z0-9]*)}/g, m = {
2346
+ roundRect: se,
2347
+ padValue: oe,
2348
+ formatMajorTickNumber: ge,
2349
+ radians: M,
2350
+ radialPoint: pe,
2351
+ linearGradient: J,
2352
+ drawNeedleShadow: Y,
2353
+ drawValueBox: ie,
2354
+ verifyError: re,
2355
+ prepareTicks: ve,
2356
+ drawShadow: Z,
2357
+ font: Q,
2358
+ normalizedValue: ea,
2359
+ formatContext: Be
2360
+ }, ue = Math.PI, fe = ue / 2, He = Object.assign({}, we, {
2361
+ ticksAngle: 270,
2362
+ startAngle: 45,
2363
+ colorNeedleCircleOuter: "#f0f0f0",
2364
+ colorNeedleCircleOuterEnd: "#ccc",
2365
+ colorNeedleCircleInner: "#e8e8e8",
2366
+ colorNeedleCircleInnerEnd: "#f5f5f5",
2367
+ needleCircleSize: 10,
2368
+ needleCircleInner: true,
2369
+ needleCircleOuter: true,
2370
+ needleStart: 20,
2371
+ animationTarget: "needle",
2372
+ useMinPath: false,
2373
+ barWidth: 0,
2374
+ barStartPosition: "left"
2375
+ }), _a = (function(a) {
2376
+ function e(t) {
2377
+ return n(this, e), t = Object.assign({}, He, t || {}), z(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, e.configure(t)));
2378
+ }
2379
+ return E(e, a), ee(e, [
2380
+ {
2381
+ key: "draw",
2382
+ value: function() {
2383
+ try {
2384
+ var t = this.canvas, r = [
2385
+ -t.drawX,
2386
+ -t.drawY,
2387
+ t.drawWidth,
2388
+ t.drawHeight
2389
+ ], o = r[0], i = r[1], l = r[2], d = r[3], u = this.options;
2390
+ if (u.animationTarget === "needle") {
2391
+ if (!t.elementClone.initialized) {
2392
+ var s = t.contextClone;
2393
+ s.clearRect(o, i, l, d), s.save(), this.emit("beforePlate"), Ne(s, u), this.emit("beforeHighlights"), Ve(s, u), this.emit("beforeMinorTicks"), We(s, u), this.emit("beforeMajorTicks"), Ae(s, u), this.emit("beforeNumbers"), Oe(s, u), this.emit("beforeTitle"), je(s, u), this.emit("beforeUnits"), Pe(s, u), t.elementClone.initialized = true;
2394
+ }
2395
+ this.canvas.commit(), t.context.clearRect(o, i, l, d), t.context.save(), t.context.drawImage(t.elementClone, o, i, l, d), t.context.save(), this.emit("beforeProgressBar"), Re(t.context, u), this.emit("beforeValueBox"), Ie(t.context, u, De(this)), this.emit("beforeNeedle"), Ee(t.context, u);
2396
+ } else {
2397
+ var c = -m.radians((u.value - u.minValue) / (u.maxValue - u.minValue) * u.ticksAngle);
2398
+ if (t.context.clearRect(o, i, l, d), t.context.save(), this.emit("beforePlate"), Ne(t.context, u), t.context.rotate(c), this.emit("beforeHighlights"), Ve(t.context, u), this.emit("beforeMinorTicks"), We(t.context, u), this.emit("beforeMajorTicks"), Ae(t.context, u), this.emit("beforeNumbers"), Oe(t.context, u), this.emit("beforeProgressBar"), Re(t.context, u), t.context.rotate(-c), t.context.save(), !t.elementClone.initialized) {
2399
+ var h = t.contextClone;
2400
+ h.clearRect(o, i, l, d), h.save(), this.emit("beforeTitle"), je(h, u), this.emit("beforeUnits"), Pe(h, u), this.emit("beforeNeedle"), Ee(h, u), t.elementClone.initialized = true;
2401
+ }
2402
+ t.context.drawImage(t.elementClone, o, i, l, d);
2403
+ }
2404
+ this.emit("beforeValueBox"), Ie(t.context, u, De(this)), xe(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "draw", this).call(this);
2405
+ } catch (v) {
2406
+ m.verifyError(v);
2407
+ }
2408
+ return this;
2409
+ }
2410
+ },
2411
+ {
2412
+ key: "value",
2413
+ set: function(t) {
2414
+ t = H.ensureValue(t, this.options.minValue), this.options.animation && this.options.ticksAngle === 360 && this.options.useMinPath && (this._value = t, t = this.options.value + ((t - this.options.value) % 360 + 540) % 360 - 180), va(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "value", t, this);
2415
+ },
2416
+ get: function() {
2417
+ return xe(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "value", this);
2418
+ }
2419
+ }
2420
+ ], [
2421
+ {
2422
+ key: "configure",
2423
+ value: function(t) {
2424
+ return t.barWidth > 50 && (t.barWidth = 50), isNaN(t.startAngle) && (t.startAngle = 45), isNaN(t.ticksAngle) && (t.ticksAngle = 270), t.ticksAngle > 360 && (t.ticksAngle = 360), t.ticksAngle < 0 && (t.ticksAngle = 0), t.startAngle < 0 && (t.startAngle = 0), t.startAngle > 360 && (t.startAngle = 360), t;
2425
+ }
2426
+ }
2427
+ ]), e;
2428
+ })(H);
2429
+ k !== void 0 && (k.RadialGauge = _a), H.initialize("RadialGauge", He);
2430
+ var Xe = Object.assign({}, we, {
2431
+ borderRadius: 0,
2432
+ barBeginCircle: 30,
2433
+ colorBarEnd: "",
2434
+ colorBarProgressEnd: "",
2435
+ needleWidth: 6,
2436
+ tickSide: "both",
2437
+ needleSide: "both",
2438
+ numberSide: "both",
2439
+ ticksWidth: 10,
2440
+ ticksWidthMinor: 5,
2441
+ ticksPadding: 5,
2442
+ barLength: 85,
2443
+ fontTitleSize: 26,
2444
+ highlightsWidth: 10
2445
+ }), ka = (function(a) {
2446
+ function e(t) {
2447
+ return n(this, e), t = Object.assign({}, Xe, t || {}), z(this, (e.__proto__ || Object.getPrototypeOf(e)).call(this, e.configure(t)));
2448
+ }
2449
+ return E(e, a), ee(e, [
2450
+ {
2451
+ key: "draw",
2452
+ value: function() {
2453
+ try {
2454
+ var t = this.canvas, r = [
2455
+ -t.drawX,
2456
+ -t.drawY,
2457
+ t.drawWidth,
2458
+ t.drawHeight
2459
+ ], o = r[0], i = r[1], l = r[2], d = r[3], u = this.options;
2460
+ if (!t.elementClone.initialized) {
2461
+ var s = t.contextClone;
2462
+ s.clearRect(o, i, l, d), s.save(), this.emit("beforePlate"), this.drawBox = ra(s, u, o, i, l, d), this.emit("beforeBar"), ia.apply(void 0, [
2463
+ s,
2464
+ u
2465
+ ].concat(F(this.drawBox))), t.context.barDimensions = s.barDimensions, this.emit("beforeHighlights"), la(s, u), this.emit("beforeMinorTicks"), da(s, u), this.emit("beforeMajorTicks"), ua(s, u), this.emit("beforeNumbers"), sa(s, u), this.emit("beforeTitle"), ga(s, u), this.emit("beforeUnits"), ca(s, u), t.elementClone.initialized = true;
2466
+ }
2467
+ this.canvas.commit(), t.context.clearRect(o, i, l, d), t.context.save(), t.context.drawImage(t.elementClone, o, i, l, d), t.context.save(), this.emit("beforeProgressBar"), na.apply(void 0, [
2468
+ t.context,
2469
+ u
2470
+ ].concat(F(this.drawBox))), this.emit("beforeNeedle"), ha(t.context, u), this.emit("beforeValueBox"), fa.apply(void 0, [
2471
+ t.context,
2472
+ u,
2473
+ u.animatedValue ? this.options.value : this.value
2474
+ ].concat(F(this.drawBox))), xe(e.prototype.__proto__ || Object.getPrototypeOf(e.prototype), "draw", this).call(this);
2475
+ } catch (c) {
2476
+ m.verifyError(c);
2477
+ }
2478
+ return this;
2479
+ }
2480
+ }
2481
+ ], [
2482
+ {
2483
+ key: "configure",
2484
+ value: function(t) {
2485
+ return t.barStrokeWidth >= t.barWidth && (t.barStrokeWidth = _(t.barWidth / 2)), t.hasLeft = Fe("right", t), t.hasRight = Fe("left", t), t.value > t.maxValue && (t.value = t.maxValue), t.value < t.minValue && (t.value = t.minValue), H.configure(t);
2486
+ }
2487
+ }
2488
+ ]), e;
2489
+ })(H);
2490
+ k !== void 0 && (k.LinearGauge = ka), H.initialize("LinearGauge", Xe), Object.assign(k, {
2491
+ Collection: D,
2492
+ GenericOptions: we,
2493
+ Animation: Te,
2494
+ BaseGauge: H,
2495
+ drawings: m,
2496
+ SmartCanvas: L,
2497
+ DomObserver: te,
2498
+ vendorize: $
2499
+ });
2500
+ })(g.exports);
2501
+ })(Qe);
2502
+ var Je = Qe.exports;
2503
+ const Ma = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Oa = (g) => {
2504
+ const k = q.useRef(null), F = q.useRef(null);
2505
+ q.useEffect(() => {
2506
+ if (k.current === null || k.current.options.gaugeType !== g.gaugeType) {
2507
+ const D = Object.assign({}, g, {
2508
+ renderTo: F.current
2509
+ });
2510
+ switch (g.gaugeType) {
2511
+ case "radial":
2512
+ k.current !== null && k.current.destroy(), k.current = new Je.RadialGauge(D).draw();
2513
+ break;
2514
+ case "linear":
2515
+ k.current !== null && k.current.destroy(), k.current = new Je.LinearGauge(D).draw();
2516
+ break;
2517
+ }
2518
+ }
2519
+ }, [
2520
+ g
2521
+ ]), q.useEffect(() => {
2522
+ k.current !== null && g.width && g.height && g.width > 30 && g.height > 30 && (k.current.value = g.value ?? 0, k.current.update(g));
2523
+ }, [
2524
+ g
2525
+ ]);
2526
+ const z = g.gaugeWidgetData.iconSize || g.gaugeWidgetData.iconSize === 0 ? `${g.gaugeWidgetData.iconSize}%` : null, E = g.gaugeSegment, n = (E == null ? void 0 : E.state.icon) || g.gaugeData.icon, $ = (E == null ? void 0 : E.state.iconColor) || g.gaugeData.iconColor, O = xa(n, $);
2527
+ return A.jsxs(Ze, {
2528
+ sx: {
2529
+ width: "100%",
2530
+ height: "100%",
2531
+ display: "flex",
2532
+ justifyContent: "center",
2533
+ alignItems: "center"
2534
+ },
2535
+ children: [
2536
+ A.jsx("img", {
2537
+ alt: "",
2538
+ src: (E == null ? void 0 : E.state.icon) || g.gaugeData.icon || Ma,
2539
+ style: {
2540
+ position: "relative",
2541
+ width: (E == null ? void 0 : E.state.iconSize) !== void 0 ? `${E.state.iconSize}%` : z || "50%",
2542
+ height: (E == null ? void 0 : E.state.iconSize) !== void 0 ? `${E.state.iconSize}%` : z || "50%",
2543
+ boxSizing: "border-box",
2544
+ objectFit: g.gaugeWidgetData.gaugeIconFit,
2545
+ top: !!E && `calc(0px - ${E.state.iconYOffset})` || g.gaugeWidgetData.iconYOffset !== "0px" && `calc(0px - ${g.gaugeWidgetData.iconYOffset})` || "0px",
2546
+ left: !!E && `calc(0px + ${E.state.iconXOffset})` || g.gaugeWidgetData.iconXOffset !== "0px" && `calc(0px + ${g.gaugeWidgetData.iconXOffset})` || "0px",
2547
+ ...O
2548
+ }
2549
+ }),
2550
+ A.jsx("canvas", {
2551
+ id: "my-canvas",
2552
+ ref: F,
2553
+ style: {
2554
+ position: "absolute"
2555
+ }
2556
+ })
2557
+ ]
2558
+ });
2559
+ }, ja = (g, k, F) => g.find((E) => k >= E.from && (k < E.to || k === E.to && k === F)) || null;
2560
+ function Pa() {
2561
+ var _a, _b, _c, _d;
2562
+ const g = q.useRef(null), k = q.useRef(null), F = q.useContext(Ta), { wrappedContent: z, widget: { data: { oidObject: E } }, widget: n } = F, $ = F.theme, { data: O, states: D } = wa("oid"), re = Wa("oid"), ve = (E == null ? void 0 : E.type) === "number", se = O.iconColor || $.palette.primary.main, oe = q.useMemo(() => {
2563
+ const Y = Number(n.data.gaugeMinValue) || 0, Q = Number(n.data.gaugeMaxValue) || 100, I = [];
2564
+ if (n.data.gaugeMajorTicks && +(n.data.gaugeMajorTicks > 0)) for (let K = 0; K <= Number(n.data.gaugeMajorTicks); K++) {
2565
+ const ie = Y + ((Q - Y) / Number(n.data.gaugeMajorTicks) || 1) * K;
2566
+ I.push(Math.round(ie * 100) / 100);
2567
+ }
2568
+ return I;
2569
+ }, [
2570
+ n.data.gaugeMinValue,
2571
+ n.data.gaugeMaxValue,
2572
+ n.data.gaugeMajorTicks
2573
+ ]), ge = q.useMemo(() => {
2574
+ const Y = [], Q = Number(n.data.gaugeMaxValue) || 100;
2575
+ return D.forEach((I, K) => {
2576
+ var _a2;
2577
+ const ie = ((_a2 = D[K + 1]) == null ? void 0 : _a2.value) || Q;
2578
+ Y.push({
2579
+ from: Number(I.value),
2580
+ to: Number(ie),
2581
+ color: I.textColor || "transparent",
2582
+ state: {
2583
+ icon: I.icon || void 0,
2584
+ iconColor: I.iconColor || void 0,
2585
+ iconSize: I.iconSize !== void 0 ? I.iconSize : void 0,
2586
+ iconXOffset: I.iconXOffset,
2587
+ iconYOffset: I.iconYOffset,
2588
+ frameBackgroundColor: I.frameBackgroundColor,
2589
+ frameBackgroundColorActive: I.frameBackgroundColorActive,
2590
+ backgroundColor: I.backgroundColor,
2591
+ backgroundColorActive: I.backgroundColorActive,
2592
+ background: I.background,
2593
+ backgroundActive: I.backgroundActive,
2594
+ frameBackground: I.frameBackground,
2595
+ frameBackgroundActive: I.frameBackgroundActive
2596
+ }
2597
+ });
2598
+ }), D.length > 0 && Number(D[D.length - 1].value) < Q && (Y[Y.length - 1].to = Q), Y;
2599
+ }, [
2600
+ D,
2601
+ n.data.gaugeMaxValue
2602
+ ]), M = ja(ge, Number(re) || 0, Number(n.data.gaugeMaxValue) ? Number(n.data.gaugeMaxValue) : 100), pe = q.useMemo(() => M && (M.state.icon || M.state.iconColor || M.state.iconSize !== void 0) ? {
2603
+ ...O,
2604
+ iconActive: M.state.icon || O.icon,
2605
+ iconColorActive: M.state.iconColor || O.iconColor,
2606
+ iconSizeActive: M.state.iconSize !== void 0 ? `calc(24px * ${M.state.iconSize} / 100)` : O.iconSize
2607
+ } : O, [
2608
+ O,
2609
+ M
2610
+ ]), J = (_a = g.current) == null ? void 0 : _a.paper0, Z = (_b = g.current) == null ? void 0 : _b.paper1;
2611
+ return q.useEffect(() => {
2612
+ J && Z && (M ? (J.style.borderColor = !z && ((M == null ? void 0 : M.state.frameBackgroundColorActive) || (M == null ? void 0 : M.state.frameBackgroundColor) || null) || "", J.style.background = (z ? (M == null ? void 0 : M.state.frameBackgroundColorActive) || (M == null ? void 0 : M.state.frameBackgroundColor) || (M == null ? void 0 : M.state.frameBackgroundActive) || (M == null ? void 0 : M.state.frameBackground) || null : "transparent") || "", Z.style.borderColor = !z && ((M == null ? void 0 : M.state.backgroundColorActive) || (M == null ? void 0 : M.state.backgroundColor) || null) || "", Z.style.background = (z ? (M == null ? void 0 : M.state.backgroundColorActive) || (M == null ? void 0 : M.state.backgroundColor) || (M == null ? void 0 : M.state.backgroundActive) || (M == null ? void 0 : M.state.background) || null : "transparent") || "") : (J.style.borderColor = "", J.style.background = z && (O.frameBackgroundColor || O.frameBackground || null) || "", Z.style.borderColor = "", Z.style.background = z && (O.backgroundColor || O.background || null) || ""));
2613
+ }, [
2614
+ J,
2615
+ Z,
2616
+ z,
2617
+ M,
2618
+ n.data,
2619
+ O.frameBackgroundColor,
2620
+ O.frameBackground,
2621
+ O.backgroundColor,
2622
+ O.background
2623
+ ]), A.jsxs(Sa, {
2624
+ ref: g,
2625
+ isValidType: ve,
2626
+ data: O,
2627
+ oidValue: re,
2628
+ children: [
2629
+ A.jsx(Ca, {
2630
+ data: pe,
2631
+ widget: n
2632
+ }),
2633
+ A.jsx(Ze, {
2634
+ ref: k,
2635
+ sx: {
2636
+ width: "100%",
2637
+ height: "100%",
2638
+ display: "flex",
2639
+ justifyContent: "center",
2640
+ alignItems: "center"
2641
+ },
2642
+ children: A.jsx(Oa, {
2643
+ gaugeData: {
2644
+ icon: typeof O.icon == "string" ? O.icon : void 0,
2645
+ iconColor: se,
2646
+ header: O.header
2647
+ },
2648
+ gaugeWidgetData: n.data,
2649
+ gaugeSegment: M,
2650
+ gaugeType: n.data.gaugeType,
2651
+ width: (((_c = k.current) == null ? void 0 : _c.clientWidth) || 0) - Number(n.data.gaugePadding || 0),
2652
+ height: (((_d = k.current) == null ? void 0 : _d.clientHeight) || 0) - Number(n.data.gaugePadding || 0),
2653
+ minValue: Number(n.data.gaugeMinValue) ? Number(n.data.gaugeMinValue) : 0,
2654
+ maxValue: Number(n.data.gaugeMaxValue) ? Number(n.data.gaugeMaxValue) : 100,
2655
+ value: Number(re) || 0,
2656
+ units: E == null ? void 0 : E.unit,
2657
+ title: O.header,
2658
+ exactTicks: n.data.gaugeExactTicks,
2659
+ majorTicks: oe,
2660
+ minorTicks: typeof n.data.gaugeMinorTicks == "number" ? n.data.gaugeMinorTicks : Number(n.data.gaugeMinorTicks),
2661
+ strokeTicks: n.data.gaugeStrokeTicks,
2662
+ majorTicksInt: typeof n.data.gaugeMajorTicksInt == "number" ? n.data.gaugeMajorTicksInt : Number(n.data.gaugeMajorTicksInt),
2663
+ majorTicksDec: typeof n.data.gaugeMajorTicksDec == "number" ? n.data.gaugeMajorTicksDec : Number(n.data.gaugeMajorTicksDec),
2664
+ highlights: ge,
2665
+ highlightsWidth: typeof n.data.gaugeHighlightsWidth == "number" ? n.data.gaugeHighlightsWidth : Number(n.data.gaugeHighlightsWidth),
2666
+ numbersMargin: typeof n.data.gaugeNumbersMargin == "number" ? n.data.gaugeNumbersMargin : Number(n.data.gaugeNumbersMargin),
2667
+ barWidth: typeof n.data.gaugeBarWidth == "number" && n.data.gaugeBarWidth <= 50 ? n.data.gaugeBarWidth : Number(n.data.gaugeBarWidth) <= 50 ? Number(n.data.gaugeBarWidth) : 50,
2668
+ barStrokeWidth: typeof n.data.gaugeBarStrokeWidth == "number" ? n.data.gaugeBarStrokeWidth : Number(n.data.gaugeBarStrokeWidth),
2669
+ barProgress: n.data.gaugeBarProgress,
2670
+ barShadow: typeof n.data.gaugeBarShadow == "number" ? n.data.gaugeBarShadow : Number(n.data.gaugeBarShadow),
2671
+ animation: n.data.gaugeAnimation,
2672
+ animationDuration: typeof n.data.gaugeAnimationDuration == "number" ? n.data.gaugeAnimationDuration : Number(n.data.gaugeAnimationDuration),
2673
+ animationRule: n.data.gaugeAnimationRule || "cycle",
2674
+ animatedValue: n.data.gaugeAnimatedValue,
2675
+ animateOnInit: n.data.gaugeAnimateOnInit,
2676
+ colorPlate: n.data.gaugeColorPlate || "rgba(0,0,0,0)",
2677
+ colorPlateEnd: n.data.gaugeColorPlateEnd || "rgba(0,0,0,0)",
2678
+ colorMajorTicks: n.data.gaugeColorMajorTicks || "#444",
2679
+ colorMinorTicks: n.data.gaugeColorMinorTicks || "#666",
2680
+ colorStrokeTicks: n.data.gaugeColorStrokeTicks || "#444",
2681
+ colorTitle: n.data.gaugeColorTitle || "#888",
2682
+ colorUnits: n.data.gaugeColorUnits || "#888",
2683
+ colorNumbers: n.data.gaugeColorNumbers || "#444",
2684
+ colorNeedle: n.data.gaugeColorNeedle || "rgba(240,128,128,1)",
2685
+ colorNeedleEnd: n.data.gaugeColorNeedleEnd || "rgba(255,160,122,.9)",
2686
+ colorValueText: n.data.gaugeColorValueText || "#444",
2687
+ colorValueTextShadow: n.data.gaugeColorValueTextShadow || "rgba(0,0,0,0.3)",
2688
+ colorBorderShadow: n.data.gaugeColorBorderShadow || "rgba(0,0,0,0.5)",
2689
+ colorBorderOuter: n.data.gaugeColorBorderOuter || "#ddd",
2690
+ colorBorderOuterEnd: n.data.gaugeColorBorderOuterEnd || "#aaa",
2691
+ colorBorderMiddle: n.data.gaugeColorBorderMiddle || "#eee",
2692
+ colorBorderMiddleEnd: n.data.gaugeColorBorderMiddleEnd || "#f0f0f0",
2693
+ colorBorderInner: n.data.gaugeColorBorderInner || "#fafafa",
2694
+ colorBorderInnerEnd: n.data.gaugeColorBorderInnerEnd || "#ccc",
2695
+ colorValueBoxRect: n.data.gaugeColorValueBoxRect || "#888",
2696
+ colorValueBoxRectEnd: n.data.gaugeColorValueBoxRectEnd || "#666",
2697
+ colorValueBoxBackground: n.data.gaugeColorValueBoxBackground || "#babab2",
2698
+ colorValueBoxShadow: n.data.gaugeColorValueBoxShadow || "rgba(0,0,0,1)",
2699
+ colorNeedleShadowUp: n.data.gaugeColorNeedleShadowUp || "rgba(2,255,255,0.2)",
2700
+ colorNeedleShadowDown: n.data.gaugeColorNeedleShadowDown || "rgba(188,143,143,0.45)",
2701
+ colorBarStroke: n.data.gaugeColorBarStroke || "#222",
2702
+ colorBar: n.data.gaugeColorBar || "#ccc",
2703
+ colorBarProgress: n.data.gaugeColorBarProgress || "#888",
2704
+ highlightsLineCap: n.data.gaugeHighlightsLineCap || "butt",
2705
+ needle: n.data.gaugeNeedle,
2706
+ needleShadow: n.data.gaugeNeedleShadow,
2707
+ needleType: n.data.gaugeNeedleType || "arrow",
2708
+ needleStart: typeof n.data.gaugeNeedleStart == "number" ? n.data.gaugeNeedleStart : Number(n.data.gaugeNeedleStart),
2709
+ needleEnd: typeof n.data.gaugeNeedleEnd == "number" ? n.data.gaugeNeedleEnd : Number(n.data.gaugeNeedleEnd),
2710
+ needleWidth: typeof n.data.gaugeNeedleWidth == "number" ? n.data.gaugeNeedleWidth : Number(n.data.gaugeNeedleWidth),
2711
+ borders: n.data.gaugeBorders,
2712
+ borderOuterWidth: typeof n.data.gaugeBorderOuterWidth == "number" ? n.data.gaugeBorderOuterWidth : Number(n.data.gaugeBorderOuterWidth),
2713
+ borderMiddleWidth: typeof n.data.gaugeBorderMiddleWidth == "number" ? n.data.gaugeBorderMiddleWidth : Number(n.data.gaugeBorderMiddleWidth),
2714
+ borderInnerWidth: typeof n.data.gaugeBorderInnerWidth == "number" ? n.data.gaugeBorderInnerWidth : Number(n.data.gaugeBorderInnerWidth),
2715
+ borderShadowWidth: typeof n.data.gaugeBorderShadowWidth == "number" ? n.data.gaugeBorderShadowWidth : Number(n.data.gaugeBorderShadowWidth),
2716
+ valueBox: n.data.gaugeValueBox,
2717
+ valueBoxStroke: typeof n.data.gaugeValueBoxStroke == "number" ? n.data.gaugeValueBoxStroke : Number(n.data.gaugeValueBoxStroke),
2718
+ valueBoxWidth: typeof n.data.gaugeValueBoxWidth == "number" ? n.data.gaugeValueBoxWidth : Number(n.data.gaugeValueBoxWidth),
2719
+ valueText: n.data.gaugeValueText || "",
2720
+ valueTextShadow: n.data.gaugeValueTextShadow,
2721
+ valueBoxBorderRadius: typeof n.data.gaugeValueBoxBorderRadius == "number" ? n.data.gaugeValueBoxBorderRadius : Number(n.data.gaugeValueBoxBorderRadius),
2722
+ valueInt: typeof n.data.gaugeValueInt == "number" ? n.data.gaugeValueInt : Number(n.data.gaugeValueInt),
2723
+ valueDec: typeof n.data.gaugeValueDec == "number" ? n.data.gaugeValueDec : Number(n.data.gaugeValueDec),
2724
+ fontNumbers: n.data.gaugeFontNumbers || "Arial, Helvetica, sans-serif",
2725
+ fontTitle: n.data.gaugeFontTitle || "Arial, Helvetica, sans-serif",
2726
+ fontUnits: n.data.gaugeFontUnits || "Arial, Helvetica, sans-serif",
2727
+ fontValue: n.data.gaugeFontValue || "Arial, Helvetica, sans-serif",
2728
+ fontNumbersSize: typeof n.data.gaugeFontNumbersSize == "number" ? n.data.gaugeFontNumbersSize : Number(n.data.gaugeFontNumbersSize),
2729
+ fontTitleSize: typeof n.data.gaugeFontTitleSize == "number" ? n.data.gaugeFontTitleSize : Number(n.data.gaugeFontTitleSize),
2730
+ fontUnitsSize: typeof n.data.gaugeFontUnitsSize == "number" ? n.data.gaugeFontUnitsSize : Number(n.data.gaugeFontUnitsSize),
2731
+ fontValueSize: typeof n.data.gaugeFontValueSize == "number" ? n.data.gaugeFontValueSize : Number(n.data.gaugeFontValueSize),
2732
+ fontNumbersStyle: n.data.gaugeFontNumbersStyle || "normal",
2733
+ fontTitleStyle: n.data.gaugeFontTitleStyle || "normal",
2734
+ fontUnitsStyle: n.data.gaugeFontUnitsStyle || "normal",
2735
+ fontValueStyle: n.data.gaugeFontValueStyle || "normal",
2736
+ fontNumbersWeight: n.data.gaugeFontNumbersWeight || "normal",
2737
+ fontTitleWeight: n.data.gaugeFontTitleWeight || "normal",
2738
+ fontUnitsWeight: n.data.gaugeFontUnitsWeight || "normal",
2739
+ fontValueWeight: n.data.gaugeFontValueWeight || "normal",
2740
+ borderRadius: typeof n.data.gaugeBorderRadius == "number" ? n.data.gaugeBorderRadius : Number(n.data.gaugeBorderRadius),
2741
+ barBeginCircle: typeof n.data.gaugeBarBeginCircle == "number" && n.data.gaugeBarBeginCircle < 12 ? 30 : Number(n.data.gaugeBarBeginCircle),
2742
+ barLength: typeof n.data.gaugeBarLength == "number" ? n.data.gaugeBarLength : Number(n.data.gaugeBarLength),
2743
+ colorBarEnd: n.data.gaugeColorBarEnd || "",
2744
+ colorBarProgressEnd: n.data.gaugeColorBarProgressEnd || "",
2745
+ tickSide: n.data.gaugeTickSide || "both",
2746
+ needleSide: n.data.gaugeNeedleSide || "both",
2747
+ numberSide: n.data.gaugeNumberSide || "both",
2748
+ ticksWidth: typeof n.data.gaugeTicksWidth == "number" ? n.data.gaugeTicksWidth : Number(n.data.gaugeTicksWidth),
2749
+ ticksWidthMinor: typeof n.data.gaugeTicksWidthMinor == "number" ? n.data.gaugeTicksWidthMinor : Number(n.data.gaugeTicksWidthMinor),
2750
+ ticksPadding: typeof n.data.gaugeTicksPadding == "number" ? n.data.gaugeTicksPadding : Number(n.data.gaugeTicksPadding),
2751
+ ticksAngle: typeof n.data.gaugeTicksAngle == "number" ? n.data.gaugeTicksAngle : Number(n.data.gaugeTicksAngle),
2752
+ startAngle: typeof n.data.gaugeStartAngle == "number" ? n.data.gaugeStartAngle : Number(n.data.gaugeStartAngle),
2753
+ colorNeedleCircleOuter: n.data.gaugeColorNeedleCircleOuter || "#f0f0f0",
2754
+ colorNeedleCircleOuterEnd: n.data.gaugeColorNeedleCircleOuterEnd || "#ccc",
2755
+ colorNeedleCircleInner: n.data.gaugeColorNeedleCircleInner || "#e8e8e8",
2756
+ colorNeedleCircleInnerEnd: n.data.gaugeColorNeedleCircleInnerEnd || "#f5f5f5",
2757
+ colorNeedleCircleShadowUp: n.data.gaugeColorNeedleCircleShadowUp || "rgba(2,255,255,0.2)",
2758
+ needleCircleSize: typeof n.data.gaugeNeedleCircleSize == "number" ? n.data.gaugeNeedleCircleSize : Number(n.data.gaugeNeedleCircleSize),
2759
+ needleCircleInner: n.data.gaugeNeedleCircleInner,
2760
+ needleCircleOuter: n.data.gaugeNeedleCircleOuter,
2761
+ animationTarget: n.data.gaugeAnimationTarget || "needle",
2762
+ useMinPath: n.data.gaugeUseMinPath
2763
+ })
2764
+ })
2765
+ ]
2766
+ });
2767
+ }
2768
+ Ke = class extends Ba {
2769
+ static getWidgetInfo() {
2770
+ return {
2771
+ id: "tplGaugeCollectionWidget",
2772
+ visSet: "vis-2-widgets-collection",
2773
+ visSetLabel: "widgets_collection",
2774
+ visName: "GaugeCollectionWidget",
2775
+ visWidgetLabel: "gauge_collection_widget",
2776
+ visOrder: 9,
2777
+ visAttrs: [
2778
+ {
2779
+ name: "common",
2780
+ fields: [
2781
+ ...$e({
2782
+ groupName: "",
2783
+ allFields: true
2784
+ })
2785
+ ]
2786
+ },
2787
+ {
2788
+ name: "gauge",
2789
+ label: "group_gauge",
2790
+ fields: [
2791
+ ...Na([
2792
+ "number"
2793
+ ]),
2794
+ ...Aa()
2795
+ ]
2796
+ },
2797
+ {
2798
+ name: "values",
2799
+ label: "values",
2800
+ indexFrom: 1,
2801
+ indexTo: "values_count",
2802
+ fields: [
2803
+ ...$e({
2804
+ groupName: "",
2805
+ allFields: false
2806
+ })
2807
+ ]
2808
+ }
2809
+ ],
2810
+ visDefaultStyle: {
2811
+ width: "100%",
2812
+ height: "100px",
2813
+ position: "relative"
2814
+ },
2815
+ visPrev: "widgets/vis-2-widgets-collection/img/prev-collection-gauge.png"
2816
+ };
2817
+ }
2818
+ getWidgetInfo() {
2819
+ return Ke.getWidgetInfo();
2820
+ }
2821
+ propertiesUpdate() {
2822
+ }
2823
+ onRxDataChanged() {
2824
+ this.propertiesUpdate();
2825
+ }
2826
+ onRxStyleChanged() {
2827
+ }
2828
+ onStateUpdated(k, F) {
2829
+ }
2830
+ componentDidMount() {
2831
+ super.componentDidMount(), this.propertiesUpdate();
2832
+ }
2833
+ renderWidgetBody(k) {
2834
+ super.renderWidgetBody(k);
2835
+ const F = {
2836
+ id: k.id,
2837
+ refService: k.refService,
2838
+ style: k.style,
2839
+ widget: {
2840
+ data: this.state.rxData,
2841
+ style: this.state.rxStyle
2842
+ },
2843
+ setValue: this.setValue,
2844
+ setState: this.setState.bind(this),
2845
+ values: this.state.values,
2846
+ isSignalVisible: this.isSignalVisible.bind(this),
2847
+ getPropertyValue: this.getPropertyValue.bind(this),
2848
+ mode: this.props.context.themeType,
2849
+ socket: this.props.context.socket,
2850
+ theme: this.props.context.theme,
2851
+ wrappedContent: this.wrappedCollectionContent
2852
+ };
2853
+ return k.widget.data.noCard || k.widget.usedInWidget ? this.wrappedCollectionContent = false : this.wrappedCollectionContent = true, Va(this.wrapContent(A.jsx(Pa, {})), F);
2854
+ }
2855
+ };
2856
+ });
2857
+ export {
2858
+ __tla,
2859
+ Ke as default
2860
+ };