tgui-core 1.1.7 → 1.1.9

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 (291) hide show
  1. package/lib/common/assets.ts +38 -0
  2. package/lib/common/collections.ts +27 -0
  3. package/lib/common/color.ts +88 -0
  4. package/lib/common/constants.ts +349 -0
  5. package/lib/common/events.ts +262 -0
  6. package/{dist/common/exhaustive.d.ts → lib/common/exhaustive.ts} +3 -1
  7. package/lib/common/format.ts +167 -0
  8. package/{dist/common/fp.d.ts → lib/common/fp.ts} +16 -2
  9. package/lib/common/hotkeys.ts +207 -0
  10. package/lib/common/http.ts +16 -0
  11. package/lib/common/keycodes.ts +86 -0
  12. package/{dist/common/keys.d.ts → lib/common/keys.ts} +24 -21
  13. package/lib/common/math.ts +76 -0
  14. package/lib/common/perf.ts +72 -0
  15. package/lib/common/random.ts +32 -0
  16. package/lib/common/react.ts +59 -0
  17. package/lib/common/redux.ts +187 -0
  18. package/lib/common/storage.ts +207 -0
  19. package/lib/common/string.ts +169 -0
  20. package/lib/common/timer.ts +63 -0
  21. package/lib/common/type-utils.ts +41 -0
  22. package/lib/common/types.d.ts +12 -0
  23. package/lib/common/uuid.ts +18 -0
  24. package/lib/components/AnimatedNumber.tsx +180 -0
  25. package/lib/components/Autofocus.tsx +23 -0
  26. package/lib/components/Blink.tsx +91 -0
  27. package/lib/components/BlockQuote.tsx +9 -0
  28. package/lib/components/BodyZoneSelector.tsx +149 -0
  29. package/lib/components/Box.tsx +252 -0
  30. package/lib/components/Button.tsx +425 -0
  31. package/lib/components/ByondUi.jsx +110 -0
  32. package/lib/components/Chart.tsx +155 -0
  33. package/lib/components/Collapsible.tsx +43 -0
  34. package/lib/components/ColorBox.tsx +29 -0
  35. package/lib/components/Dialog.tsx +81 -0
  36. package/lib/components/Dimmer.tsx +13 -0
  37. package/lib/components/Divider.tsx +20 -0
  38. package/lib/components/DmIcon.tsx +86 -0
  39. package/lib/components/DraggableControl.jsx +276 -0
  40. package/lib/components/Dropdown.tsx +246 -0
  41. package/lib/components/FakeTerminal.jsx +52 -0
  42. package/lib/components/FitText.tsx +99 -0
  43. package/lib/components/Flex.tsx +159 -0
  44. package/lib/components/Icon.tsx +95 -0
  45. package/lib/components/Image.tsx +54 -0
  46. package/lib/components/InfinitePlane.jsx +192 -0
  47. package/lib/components/Input.tsx +176 -0
  48. package/lib/components/KeyListener.tsx +40 -0
  49. package/lib/components/Knob.tsx +178 -0
  50. package/lib/components/LabeledControls.tsx +44 -0
  51. package/lib/components/LabeledList.tsx +154 -0
  52. package/lib/components/MenuBar.tsx +228 -0
  53. package/lib/components/Modal.tsx +23 -0
  54. package/lib/components/NoticeBox.tsx +45 -0
  55. package/lib/components/NumberInput.tsx +328 -0
  56. package/lib/components/Popper.tsx +100 -0
  57. package/lib/components/ProgressBar.tsx +105 -0
  58. package/lib/components/RestrictedInput.jsx +301 -0
  59. package/lib/components/RoundGauge.tsx +180 -0
  60. package/lib/components/Section.tsx +120 -0
  61. package/lib/components/Slider.tsx +169 -0
  62. package/lib/components/Stack.tsx +96 -0
  63. package/lib/components/StyleableSection.tsx +33 -0
  64. package/lib/components/Table.tsx +84 -0
  65. package/lib/components/Tabs.tsx +89 -0
  66. package/lib/components/TextArea.tsx +182 -0
  67. package/lib/components/TimeDisplay.jsx +64 -0
  68. package/lib/components/Tooltip.tsx +152 -0
  69. package/lib/components/TrackOutsideClicks.tsx +35 -0
  70. package/lib/components/VirtualList.tsx +69 -0
  71. package/lib/styles/atomic/candystripe.scss +8 -0
  72. package/lib/styles/atomic/centered-image.scss +7 -0
  73. package/lib/styles/atomic/color.scss +21 -0
  74. package/lib/styles/atomic/debug-layout.scss +17 -0
  75. package/lib/styles/atomic/fit-text.scss +14 -0
  76. package/lib/styles/atomic/links.scss +12 -0
  77. package/lib/styles/atomic/outline.scss +47 -0
  78. package/lib/styles/atomic/text.scss +44 -0
  79. package/lib/styles/base.scss +32 -0
  80. package/lib/styles/colors.scss +92 -0
  81. package/lib/styles/components/BlockQuote.module.scss +20 -0
  82. package/lib/styles/components/BlockQuote.module.scss.d.ts +4 -0
  83. package/lib/styles/components/Button.module.scss +157 -0
  84. package/lib/styles/components/Button.module.scss.d.ts +46 -0
  85. package/lib/styles/components/ColorBox.module.scss +12 -0
  86. package/lib/styles/components/ColorBox.module.scss.d.ts +4 -0
  87. package/lib/styles/components/Dialog.module.scss +60 -0
  88. package/lib/styles/components/Dialog.module.scss.d.ts +10 -0
  89. package/lib/styles/components/Dimmer.module.scss +22 -0
  90. package/lib/styles/components/Dimmer.module.scss.d.ts +4 -0
  91. package/lib/styles/components/Divider.module.scss +27 -0
  92. package/lib/styles/components/Divider.module.scss.d.ts +6 -0
  93. package/lib/styles/components/Dropdown.scss +72 -0
  94. package/lib/styles/components/Flex.module.scss +13 -0
  95. package/lib/styles/components/Flex.module.scss.d.ts +5 -0
  96. package/lib/styles/components/Icon.module.scss +25 -0
  97. package/lib/styles/components/Icon.module.scss.d.ts +5 -0
  98. package/lib/styles/components/Input.module.scss +64 -0
  99. package/lib/styles/components/Input.module.scss.d.ts +8 -0
  100. package/lib/styles/components/Knob.module.scss +131 -0
  101. package/lib/styles/components/Knob.module.scss.d.ts +33 -0
  102. package/lib/styles/components/LabeledList.module.scss +49 -0
  103. package/lib/styles/components/LabeledList.module.scss.d.ts +8 -0
  104. package/lib/styles/components/MenuBar.module.scss +75 -0
  105. package/lib/styles/components/MenuBar.module.scss.d.ts +14 -0
  106. package/lib/styles/components/Modal.module.scss +14 -0
  107. package/lib/styles/components/Modal.module.scss.d.ts +4 -0
  108. package/lib/styles/components/NoticeBox.module.scss +65 -0
  109. package/lib/styles/components/NoticeBox.module.scss.d.ts +27 -0
  110. package/lib/styles/components/NumberInput.module.scss +71 -0
  111. package/lib/styles/components/NumberInput.module.scss.d.ts +9 -0
  112. package/lib/styles/components/ProgressBar.module.scss +63 -0
  113. package/lib/styles/components/ProgressBar.module.scss.d.ts +27 -0
  114. package/lib/styles/components/RoundGauge.module.scss +85 -0
  115. package/lib/styles/components/RoundGauge.module.scss.d.ts +49 -0
  116. package/lib/styles/components/Section.module.scss +130 -0
  117. package/lib/styles/components/Section.module.scss.d.ts +13 -0
  118. package/lib/styles/components/Slider.module.scss +54 -0
  119. package/lib/styles/components/Slider.module.scss.d.ts +8 -0
  120. package/lib/styles/components/Stack.module.scss +60 -0
  121. package/lib/styles/components/Stack.module.scss.d.ts +12 -0
  122. package/lib/styles/components/Table.module.scss +44 -0
  123. package/lib/styles/components/Table.module.scss.d.ts +10 -0
  124. package/lib/styles/components/Tabs.module.scss +144 -0
  125. package/lib/styles/components/Tabs.module.scss.d.ts +35 -0
  126. package/lib/styles/components/TextArea.module.scss +86 -0
  127. package/lib/styles/components/TextArea.module.scss.d.ts +11 -0
  128. package/lib/styles/components/Tooltip.module.scss +24 -0
  129. package/lib/styles/components/Tooltip.module.scss.d.ts +4 -0
  130. package/lib/styles/functions.scss +79 -0
  131. package/lib/styles/input.scss +9 -0
  132. package/lib/styles/main.scss +20 -0
  133. package/lib/styles/reset.scss +68 -0
  134. package/package.json +6 -6
  135. package/dist/ProgressBar.module-BkAFfFy0.js +0 -29
  136. package/dist/Section.module-CLVHJ4yA.js +0 -15
  137. package/dist/assets/BlockQuote.css +0 -1
  138. package/dist/assets/Button.css +0 -1
  139. package/dist/assets/ColorBox.css +0 -1
  140. package/dist/assets/Dialog.css +0 -1
  141. package/dist/assets/Dimmer.css +0 -1
  142. package/dist/assets/Divider.css +0 -1
  143. package/dist/assets/Flex.css +0 -1
  144. package/dist/assets/Icon.css +0 -6
  145. package/dist/assets/Input.css +0 -1
  146. package/dist/assets/Knob.css +0 -1
  147. package/dist/assets/LabeledList.css +0 -1
  148. package/dist/assets/MenuBar.css +0 -1
  149. package/dist/assets/Modal.css +0 -1
  150. package/dist/assets/NoticeBox.css +0 -1
  151. package/dist/assets/NumberInput.css +0 -1
  152. package/dist/assets/ProgressBar.css +0 -1
  153. package/dist/assets/RoundGauge.css +0 -1
  154. package/dist/assets/Section.css +0 -1
  155. package/dist/assets/Slider.css +0 -1
  156. package/dist/assets/Stack.css +0 -1
  157. package/dist/assets/Table.css +0 -1
  158. package/dist/assets/Tabs.css +0 -1
  159. package/dist/assets/TextArea.css +0 -1
  160. package/dist/assets/Tooltip.css +0 -1
  161. package/dist/common/assets.d.ts +0 -4
  162. package/dist/common/assets.js +0 -21
  163. package/dist/common/collections.d.ts +0 -10
  164. package/dist/common/collections.js +0 -15
  165. package/dist/common/color.d.ts +0 -25
  166. package/dist/common/color.js +0 -69
  167. package/dist/common/constants.d.ts +0 -102
  168. package/dist/common/constants.js +0 -312
  169. package/dist/common/events.d.ts +0 -33
  170. package/dist/common/events.js +0 -147
  171. package/dist/common/exhaustive.js +0 -6
  172. package/dist/common/format.d.ts +0 -11
  173. package/dist/common/format.js +0 -114
  174. package/dist/common/fp.js +0 -9
  175. package/dist/common/hotkeys.d.ts +0 -25
  176. package/dist/common/hotkeys.js +0 -112
  177. package/dist/common/http.d.ts +0 -4
  178. package/dist/common/http.js +0 -10
  179. package/dist/common/keycodes.d.ts +0 -85
  180. package/dist/common/keycodes.js +0 -88
  181. package/dist/common/keys.js +0 -8
  182. package/dist/common/math.d.ts +0 -39
  183. package/dist/common/math.js +0 -41
  184. package/dist/common/perf.d.ts +0 -24
  185. package/dist/common/perf.js +0 -33
  186. package/dist/common/random.d.ts +0 -16
  187. package/dist/common/random.js +0 -18
  188. package/dist/common/react.d.ts +0 -23
  189. package/dist/common/react.js +0 -30
  190. package/dist/common/redux.d.ts +0 -64
  191. package/dist/common/redux.js +0 -72
  192. package/dist/common/storage.js +0 -124
  193. package/dist/common/string.d.ts +0 -65
  194. package/dist/common/string.js +0 -83
  195. package/dist/common/timer.d.ts +0 -18
  196. package/dist/common/timer.js +0 -28
  197. package/dist/common/type-utils.d.ts +0 -9
  198. package/dist/common/type-utils.js +0 -25
  199. package/dist/common/uuid.d.ts +0 -9
  200. package/dist/common/uuid.js +0 -10
  201. package/dist/components/AnimatedNumber.d.ts +0 -60
  202. package/dist/components/AnimatedNumber.js +0 -76
  203. package/dist/components/Autofocus.d.ts +0 -4
  204. package/dist/components/Autofocus.js +0 -17
  205. package/dist/components/Blink.d.ts +0 -26
  206. package/dist/components/Blink.js +0 -56
  207. package/dist/components/BlockQuote.d.ts +0 -3
  208. package/dist/components/BlockQuote.js +0 -13
  209. package/dist/components/BodyZoneSelector.d.ts +0 -28
  210. package/dist/components/BodyZoneSelector.js +0 -115
  211. package/dist/components/Box.d.ts +0 -91
  212. package/dist/components/Box.js +0 -133
  213. package/dist/components/Button.d.ts +0 -93
  214. package/dist/components/Button.js +0 -298
  215. package/dist/components/ByondUi.js +0 -73
  216. package/dist/components/Chart.d.ts +0 -28
  217. package/dist/components/Chart.js +0 -95
  218. package/dist/components/Collapsible.d.ts +0 -15
  219. package/dist/components/Collapsible.js +0 -27
  220. package/dist/components/ColorBox.d.ts +0 -8
  221. package/dist/components/ColorBox.js +0 -24
  222. package/dist/components/Dialog.d.ts +0 -24
  223. package/dist/components/Dialog.js +0 -67
  224. package/dist/components/Dimmer.d.ts +0 -3
  225. package/dist/components/Dimmer.js +0 -13
  226. package/dist/components/Divider.d.ts +0 -6
  227. package/dist/components/Divider.js +0 -22
  228. package/dist/components/DmIcon.d.ts +0 -31
  229. package/dist/components/DmIcon.js +0 -31
  230. package/dist/components/DraggableControl.js +0 -176
  231. package/dist/components/Dropdown.d.ts +0 -48
  232. package/dist/components/Dropdown.js +0 -152
  233. package/dist/components/FakeTerminal.js +0 -38
  234. package/dist/components/FitText.d.ts +0 -22
  235. package/dist/components/FitText.js +0 -63
  236. package/dist/components/Flex.d.ts +0 -93
  237. package/dist/components/Flex.js +0 -72
  238. package/dist/components/Icon.d.ts +0 -30
  239. package/dist/components/Icon.js +0 -51
  240. package/dist/components/Image.d.ts +0 -14
  241. package/dist/components/Image.js +0 -35
  242. package/dist/components/InfinitePlane.js +0 -139
  243. package/dist/components/Input.d.ts +0 -61
  244. package/dist/components/Input.js +0 -89
  245. package/dist/components/KeyListener.d.ts +0 -15
  246. package/dist/components/KeyListener.js +0 -23
  247. package/dist/components/Knob.d.ts +0 -49
  248. package/dist/components/Knob.js +0 -162
  249. package/dist/components/LabeledControls.d.ts +0 -11
  250. package/dist/components/LabeledControls.js +0 -39
  251. package/dist/components/LabeledList.d.ts +0 -57
  252. package/dist/components/LabeledList.js +0 -94
  253. package/dist/components/MenuBar.d.ts +0 -28
  254. package/dist/components/MenuBar.js +0 -174
  255. package/dist/components/Modal.d.ts +0 -3
  256. package/dist/components/Modal.js +0 -25
  257. package/dist/components/NoticeBox.d.ts +0 -20
  258. package/dist/components/NoticeBox.js +0 -49
  259. package/dist/components/NumberInput.d.ts +0 -45
  260. package/dist/components/NumberInput.js +0 -221
  261. package/dist/components/Popper.d.ts +0 -27
  262. package/dist/components/Popper.js +0 -177
  263. package/dist/components/ProgressBar.d.ts +0 -46
  264. package/dist/components/ProgressBar.js +0 -37
  265. package/dist/components/RestrictedInput.js +0 -155
  266. package/dist/components/RoundGauge.d.ts +0 -53
  267. package/dist/components/RoundGauge.js +0 -147
  268. package/dist/components/Section.d.ts +0 -63
  269. package/dist/components/Section.js +0 -62
  270. package/dist/components/Slider.d.ts +0 -46
  271. package/dist/components/Slider.js +0 -124
  272. package/dist/components/Stack.d.ts +0 -27
  273. package/dist/components/Stack.js +0 -67
  274. package/dist/components/StyleableSection.d.ts +0 -11
  275. package/dist/components/StyleableSection.js +0 -16
  276. package/dist/components/Table.d.ts +0 -29
  277. package/dist/components/Table.js +0 -67
  278. package/dist/components/Tabs.d.ts +0 -23
  279. package/dist/components/Tabs.js +0 -89
  280. package/dist/components/TextArea.d.ts +0 -39
  281. package/dist/components/TextArea.js +0 -118
  282. package/dist/components/TimeDisplay.js +0 -34
  283. package/dist/components/Tooltip.d.ts +0 -29
  284. package/dist/components/Tooltip.js +0 -83
  285. package/dist/components/TrackOutsideClicks.d.ts +0 -13
  286. package/dist/components/TrackOutsideClicks.js +0 -24
  287. package/dist/components/VirtualList.d.ts +0 -8
  288. package/dist/components/VirtualList.js +0 -34
  289. package/dist/components/index.js +0 -92
  290. package/dist/popper-CiqSDJTE.js +0 -906
  291. /package/{dist/components/index.d.ts → lib/components/index.ts} +0 -0
@@ -0,0 +1,79 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use "sass:color";
7
+ @use "sass:map";
8
+ @use "sass:math";
9
+ @use "sass:meta";
10
+
11
+ // Type-casting
12
+ // --------------------------------------------------------
13
+
14
+ // Get a unit-less numeric value
15
+ @function num($value) {
16
+ @if meta.type-of($value) != number {
17
+ @error 'Could not convert `#{$value}` - must be `type-of number`';
18
+ @return null;
19
+ }
20
+ @if math.unit($value) == "%" {
21
+ @return math.div($value, 100%);
22
+ }
23
+ @return math.div($value, $value * 0 + 1);
24
+ }
25
+
26
+ // Color
27
+ // --------------------------------------------------------
28
+
29
+ // Increases perceptual color lightness.
30
+ @function lighten($color, $percent) {
31
+ $scaled: hsl(
32
+ color.hue($color),
33
+ color.saturation($color),
34
+ color.lightness($color) * (1 + num($percent))
35
+ );
36
+ $mixed: color.mix(#ffffff, $color, 100% * num($percent));
37
+ @return color.mix($scaled, $mixed, 75%);
38
+ }
39
+
40
+ // Returns the NTSC luminance of `$color` as a float (between 0 and 1).
41
+ // 1 is pure white, 0 is pure black.
42
+ @function luminance($color) {
43
+ $colors: (
44
+ "red": color.red($color),
45
+ "green": color.green($color),
46
+ "blue": color.blue($color),
47
+ );
48
+
49
+ @each $name, $value in $colors {
50
+ $adjusted: 0;
51
+ $value: math.div($value, 255);
52
+ @if $value < 0.03928 {
53
+ $value: math.div($value, 12.92);
54
+ } @else {
55
+ $value: math.div($value + 0.055, 1.055);
56
+ $value: math.pow($value, 2.4);
57
+ }
58
+
59
+ $colors: map.merge(
60
+ $colors,
61
+ (
62
+ $name: $value,
63
+ )
64
+ );
65
+ }
66
+
67
+ @return (map.get($colors, "red") * 0.2126) +
68
+ (map.get($colors, "green") * 0.7152) + (map.get($colors, "blue") * 0.0722);
69
+ }
70
+
71
+ // Blends an RGBA color with a static background color based on its
72
+ // alpha channel. Returns an RGB color, which is compatible with IE8.
73
+ @function fake-alpha($color-rgba, $color-background) {
74
+ @return color.mix(
75
+ color.change($color-rgba, $alpha: 1),
76
+ $color-background,
77
+ color.alpha($color-rgba) * 100%
78
+ );
79
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Colors for input elements
3
+ */
4
+ @use './base.scss';
5
+
6
+ $text-color: base.$color-fg !default;
7
+ $background-color: #0a0a0a !default;
8
+ $border-color: #88bfff !default;
9
+ $border-radius: base.$border-radius !default;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use 'sass:meta';
7
+ @use './base.scss';
8
+
9
+ // Core styles
10
+ @include meta.load-css('./reset.scss');
11
+
12
+ // Atomic classes
13
+ @include meta.load-css('./atomic/candystripe.scss');
14
+ @include meta.load-css('./atomic/centered-image.scss');
15
+ @include meta.load-css('./atomic/color.scss');
16
+ @include meta.load-css('./atomic/debug-layout.scss');
17
+ @include meta.load-css('./atomic/fit-text.scss');
18
+ @include meta.load-css('./atomic/links.scss');
19
+ @include meta.load-css('./atomic/outline.scss');
20
+ @include meta.load-css('./atomic/text.scss');
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Copyright (c) 2020 Aleksej Komarov
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+
6
+ @use "./base.scss";
7
+
8
+ html,
9
+ body {
10
+ box-sizing: border-box;
11
+ height: 100%;
12
+ margin: 0;
13
+ font-size: base.$font-size;
14
+ }
15
+
16
+ html {
17
+ overflow: hidden;
18
+ cursor: default; // Reset the cursor.
19
+ }
20
+
21
+ body {
22
+ overflow: auto;
23
+ font-family: Verdana, Geneva, sans-serif;
24
+ }
25
+
26
+ *,
27
+ *:before,
28
+ *:after {
29
+ box-sizing: inherit;
30
+ }
31
+
32
+ h1,
33
+ h2,
34
+ h3,
35
+ h4,
36
+ h5,
37
+ h6 {
38
+ display: block;
39
+ margin: 0;
40
+ padding: 6px 0;
41
+ padding: 0.5rem 0;
42
+ }
43
+
44
+ h1 {
45
+ font-size: 18px;
46
+ font-size: 1.5rem;
47
+ }
48
+
49
+ h2 {
50
+ font-size: 16px;
51
+ font-size: 1.333rem;
52
+ }
53
+
54
+ h3 {
55
+ font-size: 14px;
56
+ font-size: 1.167rem;
57
+ }
58
+
59
+ h4 {
60
+ font-size: 12px;
61
+ font-size: 1rem;
62
+ }
63
+
64
+ td,
65
+ th {
66
+ vertical-align: baseline;
67
+ text-align: left;
68
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tgui-core",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "TGUI core component library",
5
5
  "keywords": [
6
6
  "TGUI",
@@ -8,16 +8,16 @@
8
8
  "typescript"
9
9
  ],
10
10
  "files": [
11
- "dist"
11
+ "lib"
12
12
  ],
13
13
  "exports": {
14
14
  "./components": {
15
- "import": "./dist/components/index.js",
16
- "require": "./dist/components/index.cjs"
15
+ "import": "./lib/components/index.ts",
16
+ "require": "./lib/components/index.ts"
17
17
  },
18
18
  "./*": {
19
- "import": "./dist/common/*.js",
20
- "require": "./dist/common/*.cjs"
19
+ "import": "./lib/common/*.ts",
20
+ "require": "./lib/common/*.ts"
21
21
  }
22
22
  },
23
23
  "repository": {
@@ -1,29 +0,0 @@
1
- import './assets/ProgressBar.css';const _ = "_progressBar_140lk_17", o = "_fill_140lk_29", l = "_fill__animated_140lk_36", r = "_content_140lk_40", c = "_color__default_140lk_47", e = "_color__black_140lk_54", t = "_color__white_140lk_61", n = "_color__red_140lk_68", a = "_color__orange_140lk_75", s = "_color__yellow_140lk_82", k = "_color__olive_140lk_89", i = "_color__green_140lk_96", g = "_color__teal_140lk_103", b = "_color__blue_140lk_110", d = "_color__violet_140lk_117", p = "_color__purple_140lk_124", f = "_color__pink_140lk_131", u = "_color__brown_140lk_138", v = "_color__grey_140lk_145", w = "_color__good_140lk_159", y = "_color__average_140lk_166", h = "_color__bad_140lk_173", m = "_color__label_140lk_180", B = {
2
- progressBar: _,
3
- fill: o,
4
- fill__animated: l,
5
- content: r,
6
- color__default: c,
7
- color__black: e,
8
- color__white: t,
9
- color__red: n,
10
- color__orange: a,
11
- color__yellow: s,
12
- color__olive: k,
13
- color__green: i,
14
- color__teal: g,
15
- color__blue: b,
16
- color__violet: d,
17
- color__purple: p,
18
- color__pink: f,
19
- color__brown: u,
20
- color__grey: v,
21
- "color__light-grey": "_color__light-grey_140lk_152",
22
- color__good: w,
23
- color__average: y,
24
- color__bad: h,
25
- color__label: m
26
- };
27
- export {
28
- B as s
29
- };
@@ -1,15 +0,0 @@
1
- import './assets/Section.css';const t = "_section_1awt0_17", l = "_title_1awt0_28", o = "_titleText_1awt0_34", s = "_buttons_1awt0_40", _ = "_rest_1awt0_47", e = "_content_1awt0_51", n = "_fitted_1awt0_55", c = "_fill_1awt0_59", a = "_scrollable_1awt0_73", i = "_scrollableHorizontal_1awt0_90", r = {
2
- section: t,
3
- title: l,
4
- titleText: o,
5
- buttons: s,
6
- rest: _,
7
- content: e,
8
- fitted: n,
9
- fill: c,
10
- scrollable: a,
11
- scrollableHorizontal: i
12
- };
13
- export {
14
- r as s
15
- };
@@ -1 +0,0 @@
1
- ._blockQuote_14fvy_13{color:#8b9bb0;border-left:.1666666667em solid #8b9bb0;padding-left:.5em;margin-bottom:.5em}._blockQuote_14fvy_13:last-child{margin-bottom:0}
@@ -1 +0,0 @@
1
- ._button_433yx_17{position:relative;display:inline-block;line-height:1.667em;padding:0 .5em;margin-right:.1666666667em;white-space:nowrap;outline:0;border-radius:.16em;margin-bottom:.1666666667em;-webkit-user-select:none;user-select:none;-ms-user-select:none}._button_433yx_17:last-child{margin-right:0;margin-bottom:0}._button_433yx_17 ._fa_433yx_34,._button_433yx_17 ._fas_433yx_35,._button_433yx_17 ._far_433yx_36{margin-left:-.25em;margin-right:-.25em;min-width:1.333em;text-align:center}._dropdown_433yx_43{line-height:1.3333333333em;height:1.8333333333em;padding:.2rem .5rem}._ellipsis_433yx_49{text-overflow:ellipsis;overflow:hidden}._fluid_433yx_54{display:block;margin-left:0;margin-right:0}._circular_433yx_60{border-radius:50%}._compact_433yx_64{padding:0 .25em;line-height:1.333em}._color__black_433yx_69{transition:color 50ms,background-color 50ms;background-color:#000;color:#fff}._color__black_433yx_69:focus{transition:color .1s,background-color .1s}._color__black_433yx_69:hover{background-color:#131313;color:#fff}._color__white_433yx_82{transition:color 50ms,background-color 50ms;background-color:#d9d9d9;color:#000}._color__white_433yx_82:focus{transition:color .1s,background-color .1s}._color__white_433yx_82:hover{background-color:#f8f8f8;color:#000}._color__red_433yx_95{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}._color__red_433yx_95:focus{transition:color .1s,background-color .1s}._color__red_433yx_95:hover{background-color:#dc4848;color:#fff}._color__orange_433yx_108{transition:color 50ms,background-color 50ms;background-color:#d95e0c;color:#fff}._color__orange_433yx_108:focus{transition:color .1s,background-color .1s}._color__orange_433yx_108:hover{background-color:#f0853f;color:#fff}._color__yellow_433yx_121{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}._color__yellow_433yx_121:focus{transition:color .1s,background-color .1s}._color__yellow_433yx_121:hover{background-color:#f5d72e;color:#000}._color__olive_433yx_134{transition:color 50ms,background-color 50ms;background-color:#9aad14;color:#fff}._color__olive_433yx_134:focus{transition:color .1s,background-color .1s}._color__olive_433yx_134:hover{background-color:#c4da2b;color:#fff}._color__green_433yx_147{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}._color__green_433yx_147:focus{transition:color .1s,background-color .1s}._color__green_433yx_147:hover{background-color:#32c154;color:#fff}._color__teal_433yx_160{transition:color 50ms,background-color 50ms;background-color:#009a93;color:#fff}._color__teal_433yx_160:focus{transition:color .1s,background-color .1s}._color__teal_433yx_160:hover{background-color:#13c4bc;color:#fff}._color__blue_433yx_173{transition:color 50ms,background-color 50ms;background-color:#1c71b1;color:#fff}._color__blue_433yx_173:focus{transition:color .1s,background-color .1s}._color__blue_433yx_173:hover{background-color:#3a95d9;color:#fff}._color__violet_433yx_186{transition:color 50ms,background-color 50ms;background-color:#552dab;color:#fff}._color__violet_433yx_186:focus{transition:color .1s,background-color .1s}._color__violet_433yx_186:hover{background-color:#7953cc;color:#fff}._color__purple_433yx_199{transition:color 50ms,background-color 50ms;background-color:#8b2baa;color:#fff}._color__purple_433yx_199:focus{transition:color .1s,background-color .1s}._color__purple_433yx_199:hover{background-color:#ad4fcd;color:#fff}._color__pink_433yx_212{transition:color 50ms,background-color 50ms;background-color:#cf2082;color:#fff}._color__pink_433yx_212:focus{transition:color .1s,background-color .1s}._color__pink_433yx_212:hover{background-color:#e257a5;color:#fff}._color__brown_433yx_225{transition:color 50ms,background-color 50ms;background-color:#8c5836;color:#fff}._color__brown_433yx_225:focus{transition:color .1s,background-color .1s}._color__brown_433yx_225:hover{background-color:#b47851;color:#fff}._color__grey_433yx_238{transition:color 50ms,background-color 50ms;background-color:#646464;color:#fff}._color__grey_433yx_238:focus{transition:color .1s,background-color .1s}._color__grey_433yx_238:hover{background-color:#868686;color:#fff}._color__light-grey_433yx_251{transition:color 50ms,background-color 50ms;background-color:#919191;color:#fff}._color__light-grey_433yx_251:focus{transition:color .1s,background-color .1s}._color__light-grey_433yx_251:hover{background-color:#bababa;color:#fff}._color__good_433yx_264{transition:color 50ms,background-color 50ms;background-color:#4d9121;color:#fff}._color__good_433yx_264:focus{transition:color .1s,background-color .1s}._color__good_433yx_264:hover{background-color:#6cba39;color:#fff}._color__average_433yx_277{transition:color 50ms,background-color 50ms;background-color:#cd7a0d;color:#fff}._color__average_433yx_277:focus{transition:color .1s,background-color .1s}._color__average_433yx_277:hover{background-color:#ed9d35;color:#fff}._color__bad_433yx_290{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}._color__bad_433yx_290:focus{transition:color .1s,background-color .1s}._color__bad_433yx_290:hover{background-color:#dc4848;color:#fff}._color__label_433yx_303{transition:color 50ms,background-color 50ms;background-color:#657a94;color:#fff}._color__label_433yx_303:focus{transition:color .1s,background-color .1s}._color__label_433yx_303:hover{background-color:#91a1b3;color:#fff}._color__default_433yx_316{transition:color 50ms,background-color 50ms;background-color:#3e6189;color:#fff}._color__default_433yx_316:focus{transition:color .1s,background-color .1s}._color__default_433yx_316:hover{background-color:#5c83b0;color:#fff}._color__caution_433yx_329{transition:color 50ms,background-color 50ms;background-color:#d9b804;color:#000}._color__caution_433yx_329:focus{transition:color .1s,background-color .1s}._color__caution_433yx_329:hover{background-color:#f5d72e;color:#000}._color__danger_433yx_342{transition:color 50ms,background-color 50ms;background-color:#bd2020;color:#fff}._color__danger_433yx_342:focus{transition:color .1s,background-color .1s}._color__danger_433yx_342:hover{background-color:#dc4848;color:#fff}._color__transparent_433yx_355{transition:color 50ms,background-color 50ms;background-color:#252525;color:#fff;background-color:#25252500;color:#ffffff80}._color__transparent_433yx_355:focus{transition:color .1s,background-color .1s}._color__transparent_433yx_355:hover{background-color:#3e3e3e;color:#fff}._disabled_433yx_370{background-color:#999!important}._selected_433yx_374{transition:color 50ms,background-color 50ms;background-color:#1b9638;color:#fff}._selected_433yx_374:focus{transition:color .1s,background-color .1s}._selected_433yx_374:hover{background-color:#32c154;color:#fff}._flex_433yx_387{display:inline-flex;flex-direction:column}._flex__fluid_433yx_392{width:100%}._verticalAlignContent__top_433yx_396{justify-content:flex-start}._verticalAlignContent__middle_433yx_400{justify-content:center}._verticalAlignContent__bottom_433yx_404{justify-content:flex-end}._content_433yx_408{display:block;align-self:stretch}._textMargin_433yx_413{margin-left:.4rem}
@@ -1 +0,0 @@
1
- ._colorBox_110qz_5{display:inline-block;width:1em;height:1em;line-height:1em;text-align:center}
@@ -1 +0,0 @@
1
- ._dialog_1hdv8_5{position:fixed;left:0;top:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center}._content_1hdv8_17{background-color:#252525;font-family:Consolas,monospace;font-size:1.1666666667em;display:flex;flex-direction:column}._header_1hdv8_25{display:flex;height:2em;line-height:1.928em;background-color:#00000080;-webkit-user-select:none;user-select:none}._title_1hdv8_33{display:inline;font-style:italic;margin-left:1rem;margin-right:2rem;flex-grow:1;opacity:.33}._body_1hdv8_42{margin:2rem 1rem;flex-grow:1}._footer_1hdv8_47{display:flex;flex-direction:row;justify-content:flex-end;padding:1rem;background-color:#00000040}._button_1hdv8_55{margin:0 1rem;height:2rem;min-width:6rem;text-align:center}
@@ -1 +0,0 @@
1
- ._dimmer_ldz2o_5{display:flex;justify-content:center;align-items:center;position:absolute;top:0;bottom:0;left:0;right:0;background-color:#000000bf;z-index:1}
@@ -1 +0,0 @@
1
- ._horizontal_1dhv5_9{margin:.5em 0}._horizontal_1dhv5_9:not(._hidden_1dhv5_12){border-top:.1666666667em solid rgba(255,255,255,.1)}._vertical_1dhv5_16{height:100%;margin:0 .5em}._vertical_1dhv5_16:not(._hidden_1dhv5_12){border-left:.1666666667em solid rgba(255,255,255,.1)}
@@ -1 +0,0 @@
1
- ._flex_djoni_5{display:-ms-flexbox;display:flex}._inline_djoni_10{display:inline-flex}
@@ -1,6 +0,0 @@
1
- /**
2
- * @file
3
- * @copyright 2020
4
- * @author ThePotato97 (https://github.com/ThePotato97)
5
- * @license ISC
6
- */._iconStack_bg05l_7>._icon_bg05l_7{position:absolute;width:100%;text-align:center}._iconStack_bg05l_7{position:relative;display:inline-block;height:1.2em;line-height:2em;vertical-align:middle}._iconStack_bg05l_7:after{color:transparent;content:"."}
@@ -1 +0,0 @@
1
- ._input_17i79_20{position:relative;display:inline-block;width:10em;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#fff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;overflow:visible}._fluid_17i79_35{display:block;width:auto}._baseline_17i79_40{display:inline-block;color:transparent}._inner_17i79_45{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:transparent;color:#fff;color:inherit}._inner_17i79_45:-ms-input-placeholder{font-style:italic;color:#777;color:#ffffff73}._monospace_17i79_71 ._inner_17i79_45{font-family:Consolas,monospace}
@@ -1 +0,0 @@
1
- ._knob_69dqe_17{position:relative;font-size:1rem;width:2.6em;height:2.6em;margin:0 auto -.2em;cursor:n-resize}._knob_69dqe_17:after{content:".";color:transparent;line-height:2.5em}._circle_69dqe_32{position:absolute;top:.1em;bottom:.1em;left:.1em;right:.1em;margin:.3em;background-color:#333;background-image:linear-gradient(to bottom,#ffffff26,#fff0);border-radius:50%;box-shadow:0 .05em .5em #00000080}._cursorBox_69dqe_45{position:absolute;top:0;bottom:0;left:0;right:0}._cursor_69dqe_45{position:relative;top:.05em;margin:0 auto;width:.2em;height:.8em;background-color:#ffffffe6}._popupValue_69dqe_62{position:absolute;top:-2rem;right:50%;font-size:1rem;text-align:center;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}._ring_69dqe_75{position:absolute;top:0;bottom:0;left:0;right:0;padding:.1em}._ringTrackPivot_69dqe_84{transform:rotate(135deg)}._ringTrack_69dqe_84{fill:transparent;stroke:#ffffff1a;stroke-width:8;stroke-linecap:round;stroke-dasharray:235.62}._ringFillPivot_69dqe_96{transform:rotate(135deg)}._bipolar_69dqe_100 ._ringFillPivot_69dqe_96{transform:rotate(270deg)}._ringFill_69dqe_96{fill:transparent;stroke:#6a96c9;stroke-width:8;stroke-linecap:round;stroke-dasharray:314.16;transition:stroke 50ms ease-out}._color__black_69dqe_113 ._ringFill_69dqe_96{stroke:#1a1a1a}._color__white_69dqe_117 ._ringFill_69dqe_96{stroke:#fff}._color__red_69dqe_121 ._ringFill_69dqe_96{stroke:#df3e3e}._color__orange_69dqe_125 ._ringFill_69dqe_96{stroke:#f37f33}._color__yellow_69dqe_129 ._ringFill_69dqe_96{stroke:#fbda21}._color__olive_69dqe_133 ._ringFill_69dqe_96{stroke:#cbe41c}._color__green_69dqe_137 ._ringFill_69dqe_96{stroke:#25ca4c}._color__teal_69dqe_141 ._ringFill_69dqe_96{stroke:#00d6cc}._color__blue_69dqe_145 ._ringFill_69dqe_96{stroke:#2e93de}._color__violet_69dqe_149 ._ringFill_69dqe_96{stroke:#7349cf}._color__purple_69dqe_153 ._ringFill_69dqe_96{stroke:#ad45d0}._color__pink_69dqe_157 ._ringFill_69dqe_96{stroke:#e34da1}._color__brown_69dqe_161 ._ringFill_69dqe_96{stroke:#b97447}._color__grey_69dqe_165 ._ringFill_69dqe_96{stroke:#848484}._color__light-grey_69dqe_169 ._ringFill_69dqe_96{stroke:#b3b3b3}._color__good_69dqe_173 ._ringFill_69dqe_96{stroke:#68c22d}._color__average_69dqe_177 ._ringFill_69dqe_96{stroke:#f29a29}._color__bad_69dqe_181 ._ringFill_69dqe_96{stroke:#df3e3e}._color__label_69dqe_185 ._ringFill_69dqe_96{stroke:#8b9bb0}
@@ -1 +0,0 @@
1
- ._labeledList_pb6nb_9{display:table;width:100%;width:calc(100% + 1em);border-collapse:collapse;border-spacing:0;margin:-.25em -.5em 0;padding:0}._row_pb6nb_20{display:table-row}._row_pb6nb_20:last-child ._cell_pb6nb_24{padding-bottom:0}._cell_pb6nb_24{display:table-cell;margin:0;padding:.25em .5em;border:0;text-align:left}._label__nowrap_pb6nb_36{width:1%;white-space:nowrap;min-width:5em}._buttons_pb6nb_42{width:.1%;white-space:nowrap;text-align:right;padding-top:.0833333333em;padding-bottom:0}
@@ -1 +0,0 @@
1
- ._menuBar_esza9_9{display:flex}._font_esza9_13{font-family:Verdana,sans-serif;font-size:1em;line-height:1.4166666667em}._hover_esza9_19:hover{background-color:#727272;transition:background-color 0ms}._button_esza9_24{padding:.2rem .5rem}._menu_esza9_9{position:absolute;z-index:5;background-color:#252525;padding:.3rem;box-shadow:4px 6px 5px -2px #0000008c}._item_esza9_36{z-index:5;transition:background-color .1s ease-out;background-color:#252525;white-space:nowrap;padding:.3rem 2rem .3rem 3rem}._toggle_esza9_44{padding:.3rem 2rem .3rem 0}._toggle__check_esza9_48{display:inline-block;vertical-align:middle;min-width:3rem;margin-left:.3rem}._over_esza9_55{top:auto;bottom:100%}._button__text_esza9_60{text-overflow:clip;white-space:nowrap;height:1.4166666667em}._separator_esza9_66{display:block;margin:.3rem .3rem .3rem 2.3rem;border-top:1px solid rgba(0,0,0,.33)}
@@ -1 +0,0 @@
1
- ._modal_1e7qt_9{background-color:#252525;max-width:calc(100% - 1rem);padding:1rem}
@@ -1 +0,0 @@
1
- ._noticeBox_56yom_17{padding:.33em .5em;margin-bottom:.5em;box-shadow:none;font-weight:700;font-style:italic;color:#000;background-color:#bb9b68;background-image:repeating-linear-gradient(-45deg,transparent,transparent .8333333333em,rgba(0,0,0,.1) .8333333333em,rgba(0,0,0,.1) 1.6666666667em)}._color__black_56yom_28{color:#fff;background-color:#000}._color__white_56yom_33{color:#000;background-color:#b3b3b3}._color__red_56yom_38{color:#fff;background-color:#701f1f}._color__orange_56yom_43{color:#fff;background-color:#854114}._color__yellow_56yom_48{color:#000;background-color:#83710d}._color__olive_56yom_53{color:#000;background-color:#576015}._color__green_56yom_58{color:#fff;background-color:#174e24}._color__teal_56yom_63{color:#fff;background-color:#064845}._color__blue_56yom_68{color:#fff;background-color:#1b4565}._color__violet_56yom_73{color:#fff;background-color:#3b2864}._color__purple_56yom_78{color:#fff;background-color:#542663}._color__pink_56yom_83{color:#fff;background-color:#802257}._color__brown_56yom_88{color:#fff;background-color:#4c3729}._color__grey_56yom_93{color:#fff;background-color:#3e3e3e}._color__light-grey_56yom_98{color:#fff;background-color:#6a6a6a}._color__good_56yom_103{color:#fff;background-color:#2e4b1a}._color__average_56yom_108{color:#fff;background-color:#7b4e13}._color__bad_56yom_113{color:#fff;background-color:#701f1f}._color__label_56yom_118{color:#fff;background-color:#53565a}._info_56yom_123{color:#fff;background-color:#235982}._success_56yom_128{color:#fff;background-color:#1e662f}._warning_56yom_133{color:#fff;background-color:#a95219}._danger_56yom_138{color:#fff;background-color:#8f2828}
@@ -1 +0,0 @@
1
- ._numberInput_4xyrw_20{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;color:#88bfff;background-color:#0a0a0a;padding:0 .3333333333em;margin-right:.1666666667em;line-height:1.4166666667em;text-align:right;overflow:visible;cursor:n-resize}._fluid_4xyrw_36{display:block}._content_4xyrw_40{margin-left:.5em}._barContainer_4xyrw_44{position:absolute;top:.1666666667em;bottom:.1666666667em;left:.1666666667em}._bar_4xyrw_44{position:absolute;bottom:0;left:0;width:.25em;box-sizing:border-box;border-bottom:.0833333333em solid #88bfff;background-color:#88bfff}._inner_4xyrw_61{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;font-size:1em;line-height:1.4166666667em;height:1.4166666667em;margin:0;padding:0 .5em;font-family:Verdana,sans-serif;background-color:#0a0a0a;color:#fff;text-align:right}
@@ -1 +0,0 @@
1
- ._progressBar_140lk_17{display:inline-block;position:relative;width:100%;padding:0 .5em;border-width:.0833333333em!important;border-style:solid!important;border-radius:.16em;background-color:#0000;transition:border-color .9s ease-out}._fill_140lk_29{position:absolute;top:-.5px;left:0;bottom:-.5px}._fill__animated_140lk_36{transition:background-color .9s ease-out,width .9s ease-out}._content_140lk_40{position:relative;line-height:1.4166666667em;width:100%;text-align:right}._color__default_140lk_47{border:.0833333333em solid #3e6189}._color__default_140lk_47 ._fill_140lk_29{background-color:#3e6189}._color__black_140lk_54{border-color:#000!important}._color__black_140lk_54 ._fill_140lk_29{background-color:#000}._color__white_140lk_61{border-color:#d9d9d9!important}._color__white_140lk_61 ._fill_140lk_29{background-color:#d9d9d9}._color__red_140lk_68{border-color:#bd2020!important}._color__red_140lk_68 ._fill_140lk_29{background-color:#bd2020}._color__orange_140lk_75{border-color:#d95e0c!important}._color__orange_140lk_75 ._fill_140lk_29{background-color:#d95e0c}._color__yellow_140lk_82{border-color:#d9b804!important}._color__yellow_140lk_82 ._fill_140lk_29{background-color:#d9b804}._color__olive_140lk_89{border-color:#9aad14!important}._color__olive_140lk_89 ._fill_140lk_29{background-color:#9aad14}._color__green_140lk_96{border-color:#1b9638!important}._color__green_140lk_96 ._fill_140lk_29{background-color:#1b9638}._color__teal_140lk_103{border-color:#009a93!important}._color__teal_140lk_103 ._fill_140lk_29{background-color:#009a93}._color__blue_140lk_110{border-color:#1c71b1!important}._color__blue_140lk_110 ._fill_140lk_29{background-color:#1c71b1}._color__violet_140lk_117{border-color:#552dab!important}._color__violet_140lk_117 ._fill_140lk_29{background-color:#552dab}._color__purple_140lk_124{border-color:#8b2baa!important}._color__purple_140lk_124 ._fill_140lk_29{background-color:#8b2baa}._color__pink_140lk_131{border-color:#cf2082!important}._color__pink_140lk_131 ._fill_140lk_29{background-color:#cf2082}._color__brown_140lk_138{border-color:#8c5836!important}._color__brown_140lk_138 ._fill_140lk_29{background-color:#8c5836}._color__grey_140lk_145{border-color:#646464!important}._color__grey_140lk_145 ._fill_140lk_29{background-color:#646464}._color__light-grey_140lk_152{border-color:#919191!important}._color__light-grey_140lk_152 ._fill_140lk_29{background-color:#919191}._color__good_140lk_159{border-color:#4d9121!important}._color__good_140lk_159 ._fill_140lk_29{background-color:#4d9121}._color__average_140lk_166{border-color:#cd7a0d!important}._color__average_140lk_166 ._fill_140lk_29{background-color:#cd7a0d}._color__bad_140lk_173{border-color:#bd2020!important}._color__bad_140lk_173 ._fill_140lk_29{background-color:#bd2020}._color__label_140lk_180{border-color:#657a94!important}._color__label_140lk_180 ._fill_140lk_29{background-color:#657a94}
@@ -1 +0,0 @@
1
- ._roundGauge_gktag_17{font-size:1rem;width:2.6em;height:1.3em;margin:0 auto .2em}._ringTrack_gktag_25{fill:transparent;stroke:#ffffff1a;stroke-width:10;stroke-dasharray:157.08;stroke-dashoffset:157.08}._ringFill_gktag_33{fill:transparent;stroke:#6a96c9;stroke-width:10;stroke-dasharray:314.16;transition:stroke 50ms ease-out}._needle_gktag_41,._ringFill_gktag_33{transition:transform 50ms ease-in-out}._needleLine_gktag_46,._needleMiddle_gktag_47{fill:#db2828}._alert_gktag_51{fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;fill:#ffffff1a}._alert_gktag_51._max_gktag_59{fill:#db2828}._color__black_gktag_63._ringFill_gktag_33{stroke:#1a1a1a}._color__white_gktag_67._ringFill_gktag_33{stroke:#fff}._color__red_gktag_71._ringFill_gktag_33{stroke:#df3e3e}._color__orange_gktag_75._ringFill_gktag_33{stroke:#f37f33}._color__yellow_gktag_79._ringFill_gktag_33{stroke:#fbda21}._color__olive_gktag_83._ringFill_gktag_33{stroke:#cbe41c}._color__green_gktag_87._ringFill_gktag_33{stroke:#25ca4c}._color__teal_gktag_91._ringFill_gktag_33{stroke:#00d6cc}._color__blue_gktag_95._ringFill_gktag_33{stroke:#2e93de}._color__violet_gktag_99._ringFill_gktag_33{stroke:#7349cf}._color__purple_gktag_103._ringFill_gktag_33{stroke:#ad45d0}._color__pink_gktag_107._ringFill_gktag_33{stroke:#e34da1}._color__brown_gktag_111._ringFill_gktag_33{stroke:#b97447}._color__grey_gktag_115._ringFill_gktag_33{stroke:#848484}._color__light-grey_gktag_119._ringFill_gktag_33{stroke:#b3b3b3}._color__good_gktag_123._ringFill_gktag_33{stroke:#68c22d}._color__average_gktag_127._ringFill_gktag_33{stroke:#f29a29}._color__bad_gktag_131._ringFill_gktag_33{stroke:#df3e3e}._color__label_gktag_135._ringFill_gktag_33{stroke:#8b9bb0}._alert__black_gktag_139{fill:#1a1a1a;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__white_gktag_145{fill:#fff;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__red_gktag_151{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__orange_gktag_157{fill:#f37f33;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__yellow_gktag_163{fill:#fbda21;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__olive_gktag_169{fill:#cbe41c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__green_gktag_175{fill:#25ca4c;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__teal_gktag_181{fill:#00d6cc;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__blue_gktag_187{fill:#2e93de;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__violet_gktag_193{fill:#7349cf;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__purple_gktag_199{fill:#ad45d0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__pink_gktag_205{fill:#e34da1;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__brown_gktag_211{fill:#b97447;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__grey_gktag_217{fill:#848484;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__light-grey_gktag_223{fill:#b3b3b3;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__good_gktag_229{fill:#68c22d;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__average_gktag_235{fill:#f29a29;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__bad_gktag_241{fill:#df3e3e;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}._alert__label_gktag_247{fill:#8b9bb0;transition:opacity .6s cubic-bezier(.25,1,.5,1);animation:_alertAnim_gktag_1 1s cubic-bezier(.34,1.56,.64,1) infinite}@keyframes _alertAnim_gktag_1{0%{opacity:.1}50%{opacity:1}to{opacity:.1}}
@@ -1 +0,0 @@
1
- ._section_1awt0_17{position:relative;margin-bottom:.5em;background-color:#191919;background-color:#00000054;box-sizing:border-box}._section_1awt0_17:last-child{margin-bottom:0}._title_1awt0_28{position:relative;padding:.5em;border-bottom:.1666666667em solid #4972a1}._titleText_1awt0_34{font-size:1.1666666667em;font-weight:700;color:#fff}._buttons_1awt0_40{position:absolute;display:inline-block;right:.5em;margin-top:-.0833333333em}._rest_1awt0_47{position:relative}._content_1awt0_51{padding:.66em .5em}._fitted_1awt0_55>._rest_1awt0_47>._content_1awt0_51{padding:0}._fill_1awt0_59{display:flex;flex-direction:column;height:100%}._fill_1awt0_59>._rest_1awt0_47{flex-grow:1}._fill_1awt0_59>._rest_1awt0_47>._content_1awt0_51{height:100%}._fill_1awt0_59._scrollable_1awt0_73>._rest_1awt0_47>._content_1awt0_51{position:absolute;top:0;left:0;right:0;bottom:0}._scrollable_1awt0_73{overflow-x:hidden;overflow-y:hidden}._scrollable_1awt0_73>._rest_1awt0_47>._content_1awt0_51{overflow-y:scroll;overflow-x:hidden}._scrollableHorizontal_1awt0_90{overflow-x:hidden;overflow-y:hidden}._scrollableHorizontal_1awt0_90>._rest_1awt0_47>._content_1awt0_51{overflow-y:hidden;overflow-x:scroll}._scrollable_1awt0_73._scrollableHorizontal_1awt0_90{overflow-x:hidden;overflow-y:hidden}._scrollable_1awt0_73._scrollableHorizontal_1awt0_90>._rest_1awt0_47>._content_1awt0_51{overflow-y:scroll;overflow-x:scroll}._section_1awt0_17 ._section_1awt0_17{background-color:transparent;margin-left:-.5em;margin-right:-.5em}._section_1awt0_17 ._section_1awt0_17:first-child{margin-top:-.5em}._section_1awt0_17 ._section_1awt0_17 ._titleText_1awt0_34{font-size:1.0833333333em}._section_1awt0_17 ._section_1awt0_17 ._section_1awt0_17 ._titleText_1awt0_34{font-size:1em}
@@ -1 +0,0 @@
1
- ._slider_1assx_9{cursor:e-resize}._cursorOffset_1assx_13{position:absolute;top:0;left:0;bottom:0;transition:none!important}._cursor_1assx_13{position:absolute;top:0;right:-.0833333333em;bottom:0;width:0;border-left:.1666666667em solid #ffffff}._pointer_1assx_30{position:absolute;right:-.4166666667em;bottom:-.3333333333em;width:0;height:0;border-left:.4166666667em solid transparent;border-right:.4166666667em solid transparent;border-bottom:.4166666667em solid #ffffff}._popupValue_1assx_41{position:absolute;right:0;top:-2rem;font-size:1rem;padding:.25rem .5rem;color:#fff;background-color:#000;transform:translate(50%);white-space:nowrap}
@@ -1 +0,0 @@
1
- ._fill_wrul1_9{height:100%}._horizontal_wrul1_13>._item_wrul1_13{margin-left:.5em}._horizontal_wrul1_13>._item_wrul1_13:first-child{margin-left:0}._vertical_wrul1_20>._item_wrul1_13{margin-top:.5em}._vertical_wrul1_20>._item_wrul1_13:first-child{margin-top:0}._reverse_wrul1_27>._item_wrul1_13{margin-left:0;margin-right:.5em}._reverse_wrul1_27>._item_wrul1_13:first-child{margin-right:0}._reverse__vertical_wrul1_35>._item_wrul1_13{margin-top:0;margin-bottom:.5em}._reverse__vertical_wrul1_35>._item_wrul1_13:first-child{margin-bottom:0}._zebra_wrul1_43>._item_wrul1_13:nth-child(2n){background-color:#00000054}._horizontal_wrul1_13>._divider_wrul1_47:not(._divider__hidden_wrul1_47){border-left:.1666666667em solid rgba(255,255,255,.1)}._vertical_wrul1_20>._divider_wrul1_47:not(._divider__hidden_wrul1_47){border-top:.1666666667em solid rgba(255,255,255,.1)}
@@ -1 +0,0 @@
1
- ._table_1hctn_5{display:table;width:100%;border-collapse:collapse;border-spacing:0;margin:0}._collapsing_1hctn_13{width:auto}._row_1hctn_17{display:table-row}._cell_1hctn_21{display:table-cell;padding:0 .25em}._cell_1hctn_21:first-child{padding-left:0}._cell_1hctn_21:last-child{padding-right:0}._row__header_1hctn_32 ._cell_1hctn_21,._cell__header_1hctn_33{font-weight:700;padding-bottom:.5em}._cell__collapsing_1hctn_38{width:1%;white-space:nowrap}
@@ -1 +0,0 @@
1
- ._tabs_9h380_13{display:flex;align-items:stretch;overflow:hidden;background-color:#00000054}._fill_9h380_20{height:100%}.section ._tabs_9h380_13{background-color:transparent}.section:not(.section--fitted) ._tabs_9h380_13{margin:0 -.5em .5em}.section:not(.section--fitted) ._tabs_9h380_13:first-child{margin-top:-.5em}._vertical_9h380_35{flex-direction:column;padding:.25em 0 .25em .25em}._horizontal_9h380_40{margin-bottom:.5em;padding:.25em .25em 0}._horizontal_9h380_40:last-child{margin-bottom:0}._tabs__tab_9h380_48{flex-grow:0}._fluid_9h380_52 ._tabs__tab_9h380_48{flex-grow:1}._tab_9h380_13{display:flex;align-items:center;justify-content:space-between;background-color:transparent;color:#ffffff80;min-height:2.25em;min-width:4em}._tab_9h380_13:not(._selected_9h380_66):hover{background-color:#ffffff13}._selected_9h380_66{background-color:#ffffff20;color:#dfe7f0}._tab__text_9h380_75{flex-grow:1;margin:0 .5em}._tab__left_9h380_80{min-width:1.5em;text-align:center;margin-left:.25em}._tab__right_9h380_86{min-width:1.5em;text-align:center;margin-right:.25em}._horizontal_9h380_40 ._tab_9h380_13{border-top:.1666666667em solid transparent;border-bottom:.1666666667em solid transparent;border-top-left-radius:.25em;border-top-right-radius:.25em}._horizontal_9h380_40 ._selected_9h380_66{border-bottom:.1666666667em solid #d4dfec}._vertical_9h380_35 ._tab_9h380_13{min-height:2em;border-left:.1666666667em solid transparent;border-right:.1666666667em solid transparent;border-top-left-radius:.25em;border-bottom-left-radius:.25em}._vertical_9h380_35 ._selected_9h380_66{border-right:.1666666667em solid #d4dfec}._selected_9h380_66._color__black_9h380_113{color:#535353}._horizontal_9h380_40 ._selected_9h380_66 ._color__black_9h380_113{border-bottom-color:#1a1a1a}._vertical_9h380_35 ._selected_9h380_66 ._color__black_9h380_113{border-right-color:#1a1a1a}._selected_9h380_66._color__white_9h380_125{color:#fff}._horizontal_9h380_40 ._selected_9h380_66 ._color__white_9h380_125{border-bottom-color:#fff}._vertical_9h380_35 ._selected_9h380_66 ._color__white_9h380_125{border-right-color:#fff}._selected_9h380_66._color__red_9h380_137{color:#e76e6e}._horizontal_9h380_40 ._selected_9h380_66 ._color__red_9h380_137{border-bottom-color:#df3e3e}._vertical_9h380_35 ._selected_9h380_66 ._color__red_9h380_137{border-right-color:#df3e3e}._selected_9h380_66._color__orange_9h380_149{color:#f69f66}._horizontal_9h380_40 ._selected_9h380_66 ._color__orange_9h380_149{border-bottom-color:#f37f33}._vertical_9h380_35 ._selected_9h380_66 ._color__orange_9h380_149{border-right-color:#f37f33}._selected_9h380_66._color__yellow_9h380_161{color:#fce358}._horizontal_9h380_40 ._selected_9h380_66 ._color__yellow_9h380_161{border-bottom-color:#fbda21}._vertical_9h380_35 ._selected_9h380_66 ._color__yellow_9h380_161{border-right-color:#fbda21}._selected_9h380_66._color__olive_9h380_173{color:#d8eb55}._horizontal_9h380_40 ._selected_9h380_66 ._color__olive_9h380_173{border-bottom-color:#cbe41c}._vertical_9h380_35 ._selected_9h380_66 ._color__olive_9h380_173{border-right-color:#cbe41c}._selected_9h380_66._color__green_9h380_185{color:#53e074}._horizontal_9h380_40 ._selected_9h380_66 ._color__green_9h380_185{border-bottom-color:#25ca4c}._vertical_9h380_35 ._selected_9h380_66 ._color__green_9h380_185{border-right-color:#25ca4c}._selected_9h380_66._color__teal_9h380_197{color:#21fff5}._horizontal_9h380_40 ._selected_9h380_66 ._color__teal_9h380_197{border-bottom-color:#00d6cc}._vertical_9h380_35 ._selected_9h380_66 ._color__teal_9h380_197{border-right-color:#00d6cc}._selected_9h380_66._color__blue_9h380_209{color:#62aee6}._horizontal_9h380_40 ._selected_9h380_66 ._color__blue_9h380_209{border-bottom-color:#2e93de}._vertical_9h380_35 ._selected_9h380_66 ._color__blue_9h380_209{border-right-color:#2e93de}._selected_9h380_66._color__violet_9h380_221{color:#9676db}._horizontal_9h380_40 ._selected_9h380_66 ._color__violet_9h380_221{border-bottom-color:#7349cf}._vertical_9h380_35 ._selected_9h380_66 ._color__violet_9h380_221{border-right-color:#7349cf}._selected_9h380_66._color__purple_9h380_233{color:#c274db}._horizontal_9h380_40 ._selected_9h380_66 ._color__purple_9h380_233{border-bottom-color:#ad45d0}._vertical_9h380_35 ._selected_9h380_66 ._color__purple_9h380_233{border-right-color:#ad45d0}._selected_9h380_66._color__pink_9h380_245{color:#ea79b9}._horizontal_9h380_40 ._selected_9h380_66 ._color__pink_9h380_245{border-bottom-color:#e34da1}._vertical_9h380_35 ._selected_9h380_66 ._color__pink_9h380_245{border-right-color:#e34da1}._selected_9h380_66._color__brown_9h380_257{color:#ca9775}._horizontal_9h380_40 ._selected_9h380_66 ._color__brown_9h380_257{border-bottom-color:#b97447}._vertical_9h380_35 ._selected_9h380_66 ._color__brown_9h380_257{border-right-color:#b97447}._selected_9h380_66._color__grey_9h380_269{color:#a3a3a3}._horizontal_9h380_40 ._selected_9h380_66 ._color__grey_9h380_269{border-bottom-color:#848484}._vertical_9h380_35 ._selected_9h380_66 ._color__grey_9h380_269{border-right-color:#848484}._selected_9h380_66._color__light-grey_9h380_281{color:#c6c6c6}._horizontal_9h380_40 ._selected_9h380_66 ._color__light-grey_9h380_281{border-bottom-color:#b3b3b3}._vertical_9h380_35 ._selected_9h380_66 ._color__light-grey_9h380_281{border-right-color:#b3b3b3}._selected_9h380_66._color__good_9h380_293{color:#8cd95a}._horizontal_9h380_40 ._selected_9h380_66 ._color__good_9h380_293{border-bottom-color:#68c22d}._vertical_9h380_35 ._selected_9h380_66 ._color__good_9h380_293{border-right-color:#68c22d}._selected_9h380_66._color__average_9h380_305{color:#f5b35e}._horizontal_9h380_40 ._selected_9h380_66 ._color__average_9h380_305{border-bottom-color:#f29a29}._vertical_9h380_35 ._selected_9h380_66 ._color__average_9h380_305{border-right-color:#f29a29}._selected_9h380_66._color__bad_9h380_317{color:#e76e6e}._horizontal_9h380_40 ._selected_9h380_66 ._color__bad_9h380_317{border-bottom-color:#df3e3e}._vertical_9h380_35 ._selected_9h380_66 ._color__bad_9h380_317{border-right-color:#df3e3e}._selected_9h380_66._color__label_9h380_329{color:#a8b4c4}._horizontal_9h380_40 ._selected_9h380_66 ._color__label_9h380_329{border-bottom-color:#8b9bb0}._vertical_9h380_35 ._selected_9h380_66 ._color__label_9h380_329{border-right-color:#8b9bb0}
@@ -1 +0,0 @@
1
- ._textArea_1bert_20{position:relative;display:inline-block;border:.0833333333em solid #88bfff;border:.0833333333em solid rgba(136,191,255,.75);border-radius:.16em;background-color:#0a0a0a;margin-right:.1666666667em;line-height:1.4166666667em;box-sizing:border-box;width:100%}._fluid_1bert_33{display:block;width:auto;height:auto}._noborder_1bert_39{border:0px}._inner_1bert_43 ._scrollable_1bert_43{overflow:auto;overflow-x:hidden;overflow-y:scroll}._inner_1bert_43{display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:0;outline:0;width:100%;height:100%;font-size:1em;line-height:1.4166666667em;min-height:1.4166666667em;margin:0;padding:0 .5em;font-family:inherit;background-color:transparent;color:inherit;box-sizing:border-box;word-wrap:break-word;overflow:hidden}._inner_1bert_43:-ms-input-placeholder{font-style:italic;color:#777;color:#ffffff73}._custom_1bert_78{overflow:visible;white-space:pre-wrap}._nowrap_1bert_83{white-space:nowrap;overflow-wrap:normal;overflow-x:scroll}._wrapper_1bert_89{overflow:hidden;height:100%;width:100%;position:absolute}
@@ -1 +0,0 @@
1
- ._tooltip_1pib4_13{z-index:2;padding:.5em .75em;pointer-events:none;text-align:left;transition:opacity .15s ease-out;background-color:#000;color:#fff;box-shadow:.1em .1em 1.25em -.1em #00000080;border-radius:.16em;max-width:20.8333333333em}
@@ -1,4 +0,0 @@
1
- import { Middleware } from './redux';
2
-
3
- export declare const resolveAsset: (name: string) => string;
4
- export declare const assetMiddleware: Middleware;
@@ -1,21 +0,0 @@
1
- const l = [/v4shim/i], d = {}, r = (t) => d[t] || t, f = (t) => (p) => (n) => {
2
- const { type: i, payload: e } = n;
3
- if (i === "asset/stylesheet") {
4
- Byond.loadCss(e);
5
- return;
6
- }
7
- if (i === "asset/mappings") {
8
- for (const s of Object.keys(e)) {
9
- if (l.some((c) => c.test(s)))
10
- continue;
11
- const o = e[s], a = s.split(".").pop();
12
- d[s] = o, a === "css" && Byond.loadCss(o), a === "js" && Byond.loadJs(o);
13
- }
14
- return;
15
- }
16
- p(n);
17
- };
18
- export {
19
- f as assetMiddleware,
20
- r as resolveAsset
21
- };
@@ -1,10 +0,0 @@
1
- type Zip<T extends unknown[][]> = {
2
- [I in keyof T]: T[I] extends (infer U)[] ? U : never;
3
- }[];
4
- /**
5
- * Creates an array of grouped elements, the first of which contains
6
- * the first elements of the given arrays, the second of which contains
7
- * the second elements of the given arrays, and so on.
8
- */
9
- export declare function zip<T extends unknown[][]>(...arrays: T): Zip<T>;
10
- export {};
@@ -1,15 +0,0 @@
1
- function s(...n) {
2
- if (n.length === 0)
3
- return [];
4
- const o = n.length, r = n[0].length, u = [];
5
- for (let t = 0; t < r; t++) {
6
- const l = [];
7
- for (let e = 0; e < o; e++)
8
- l.push(n[e][t]);
9
- u.push(l);
10
- }
11
- return u;
12
- }
13
- export {
14
- s as zip
15
- };
@@ -1,25 +0,0 @@
1
- export declare class Color {
2
- r: number;
3
- g: number;
4
- b: number;
5
- a: number;
6
- constructor(r?: number, g?: number, b?: number, a?: number);
7
- toString(): string;
8
- /** Darkens a color by a given percent. Returns a color, which can have toString called to get it's rgba() css value. */
9
- darken(percent: number): Color;
10
- /** Brightens a color by a given percent. Returns a color, which can have toString called to get it's rgba() css value. */
11
- lighten(percent: number): Color;
12
- /**
13
- * Creates a color from the CSS hex color notation.
14
- */
15
- static fromHex(hex: string): Color;
16
- /**
17
- * Linear interpolation of two colors.
18
- */
19
- static lerp(c1: Color, c2: Color, n: number): Color;
20
- /**
21
- * Loops up the color in the provided list of colors
22
- * with linear interpolation.
23
- */
24
- static lookup(value: number, colors: Color[]): Color;
25
- }
@@ -1,69 +0,0 @@
1
- var b = Object.defineProperty;
2
- var l = (i, t, s) => t in i ? b(i, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : i[t] = s;
3
- var e = (i, t, s) => l(i, typeof t != "symbol" ? t + "" : t, s);
4
- class n {
5
- constructor(t = 0, s = 0, r = 0, a = 1) {
6
- e(this, "r");
7
- e(this, "g");
8
- e(this, "b");
9
- e(this, "a");
10
- this.r = t, this.g = s, this.b = r, this.a = a;
11
- }
12
- toString() {
13
- let t = this.a;
14
- return typeof t == "string" && (t = parseFloat(this.a)), isNaN(t) && (t = 1), `rgba(${this.r | 0}, ${this.g | 0}, ${this.b | 0}, ${t})`;
15
- }
16
- /** Darkens a color by a given percent. Returns a color, which can have toString called to get it's rgba() css value. */
17
- darken(t) {
18
- return t /= 100, new n(
19
- this.r - this.r * t,
20
- this.g - this.g * t,
21
- this.b - this.b * t,
22
- this.a
23
- );
24
- }
25
- /** Brightens a color by a given percent. Returns a color, which can have toString called to get it's rgba() css value. */
26
- lighten(t) {
27
- return this.darken(-t);
28
- }
29
- /**
30
- * Creates a color from the CSS hex color notation.
31
- */
32
- static fromHex(t) {
33
- return new n(
34
- parseInt(t.slice(1, 3), 16),
35
- parseInt(t.slice(3, 5), 16),
36
- parseInt(t.slice(5, 7), 16)
37
- );
38
- }
39
- /**
40
- * Linear interpolation of two colors.
41
- */
42
- static lerp(t, s, r) {
43
- return new n(
44
- (s.r - t.r) * r + t.r,
45
- (s.g - t.g) * r + t.g,
46
- (s.b - t.b) * r + t.b,
47
- (s.a - t.a) * r + t.a
48
- );
49
- }
50
- /**
51
- * Loops up the color in the provided list of colors
52
- * with linear interpolation.
53
- */
54
- static lookup(t, s) {
55
- const r = s.length;
56
- if (r < 2)
57
- throw new Error("Needs at least two colors!");
58
- const a = t * (r - 1);
59
- if (t < 1e-4)
60
- return s[0];
61
- if (t >= 1 - 1e-4)
62
- return s[r - 1];
63
- const g = a % 1, h = a | 0;
64
- return this.lerp(s[h], s[h + 1], g);
65
- }
66
- }
67
- export {
68
- n as Color
69
- };