physical-quantity 1.1.40 → 1.1.42
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.
- package/README.md +31 -19
- package/dist/pq.es.js +1 -647
- package/dist/pq.umd.js +1 -686
- package/package.json +1 -1
package/dist/pq.umd.js
CHANGED
|
@@ -1,686 +1 @@
|
|
|
1
|
-
function _0x4719(_0x638450, _0x3f969f) {
|
|
2
|
-
const _0x34fbe7 = _0x34fb();
|
|
3
|
-
return (
|
|
4
|
-
(_0x4719 = function (_0x47194d, _0x9f0b68) {
|
|
5
|
-
_0x47194d = _0x47194d - 0x120;
|
|
6
|
-
let _0x4eafc2 = _0x34fbe7[_0x47194d];
|
|
7
|
-
return _0x4eafc2;
|
|
8
|
-
}),
|
|
9
|
-
_0x4719(_0x638450, _0x3f969f)
|
|
10
|
-
);
|
|
11
|
-
}
|
|
12
|
-
function _0x34fb() {
|
|
13
|
-
const _0x44a0b4 = [
|
|
14
|
-
"unitConversion",
|
|
15
|
-
"function",
|
|
16
|
-
"observedAttributes",
|
|
17
|
-
"ft-in",
|
|
18
|
-
"1234780DkKBMf",
|
|
19
|
-
"display",
|
|
20
|
-
"shadowRoot",
|
|
21
|
-
"includes",
|
|
22
|
-
".tooltip",
|
|
23
|
-
"MPa",
|
|
24
|
-
"149976igJDuj",
|
|
25
|
-
"join",
|
|
26
|
-
"inputValue",
|
|
27
|
-
"show-unit-arrow",
|
|
28
|
-
"</option>",
|
|
29
|
-
"lbm/ft³",
|
|
30
|
-
"floor",
|
|
31
|
-
"text",
|
|
32
|
-
"1860305hIHgda",
|
|
33
|
-
"https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492",
|
|
34
|
-
"style",
|
|
35
|
-
"visibility",
|
|
36
|
-
"mouseover",
|
|
37
|
-
"value",
|
|
38
|
-
"g/mm³",
|
|
39
|
-
"tagName",
|
|
40
|
-
"handleArrowClick",
|
|
41
|
-
"match",
|
|
42
|
-
"parseFeetInchesValue",
|
|
43
|
-
"1091445Ffrgqt",
|
|
44
|
-
"formatFeetInchesValue",
|
|
45
|
-
"psi",
|
|
46
|
-
"ksi",
|
|
47
|
-
"getAttribute",
|
|
48
|
-
"object",
|
|
49
|
-
"256753dDpHBr",
|
|
50
|
-
"createElement",
|
|
51
|
-
"open",
|
|
52
|
-
"mm\x20W.C.",
|
|
53
|
-
"hidden",
|
|
54
|
-
"attachShadow",
|
|
55
|
-
"replace",
|
|
56
|
-
"category:\x20",
|
|
57
|
-
"selected",
|
|
58
|
-
"Temperature",
|
|
59
|
-
">\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
60
|
-
"map",
|
|
61
|
-
"push",
|
|
62
|
-
"in\x20W.C.",
|
|
63
|
-
"\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20",
|
|
64
|
-
"mbar",
|
|
65
|
-
"absolute",
|
|
66
|
-
"units",
|
|
67
|
-
"\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x201px\x203px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20",
|
|
68
|
-
"h[hour]",
|
|
69
|
-
"handleUnitChange",
|
|
70
|
-
"formatFeetInchesValue2",
|
|
71
|
-
"trim",
|
|
72
|
-
"week",
|
|
73
|
-
"toPrecision",
|
|
74
|
-
"GPa",
|
|
75
|
-
"mouseout",
|
|
76
|
-
"physical-quantity",
|
|
77
|
-
"s[second]",
|
|
78
|
-
"font",
|
|
79
|
-
"uc-qty",
|
|
80
|
-
"1/1",
|
|
81
|
-
"toFixed",
|
|
82
|
-
"convertToNewUnit",
|
|
83
|
-
"split",
|
|
84
|
-
"2IyZRee",
|
|
85
|
-
"bar",
|
|
86
|
-
"getUnitCategory",
|
|
87
|
-
"options",
|
|
88
|
-
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20",
|
|
89
|
-
"pow",
|
|
90
|
-
"addEventListener",
|
|
91
|
-
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20",
|
|
92
|
-
"visible",
|
|
93
|
-
"e3dLogoUrl",
|
|
94
|
-
"in\x20HG",
|
|
95
|
-
"amd",
|
|
96
|
-
"define",
|
|
97
|
-
"322991uZqPFW",
|
|
98
|
-
"SELECT",
|
|
99
|
-
"innerHTML",
|
|
100
|
-
"7298624ULZfuE",
|
|
101
|
-
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20",
|
|
102
|
-
"render",
|
|
103
|
-
"Custom",
|
|
104
|
-
"esu/s",
|
|
105
|
-
"none",
|
|
106
|
-
"<option\x20value=\x22",
|
|
107
|
-
"ksi[kip/in²]",
|
|
108
|
-
"change",
|
|
109
|
-
"log",
|
|
110
|
-
"exports",
|
|
111
|
-
"bind",
|
|
112
|
-
"target",
|
|
113
|
-
"kg/L",
|
|
114
|
-
"calculateTotalInches",
|
|
115
|
-
"unitCategory",
|
|
116
|
-
"decimal-places",
|
|
117
|
-
"kg/m³",
|
|
118
|
-
"true",
|
|
119
|
-
"round",
|
|
120
|
-
"\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
121
|
-
"atm",
|
|
122
|
-
"formatValue",
|
|
123
|
-
"querySelector",
|
|
124
|
-
"offsetWidth",
|
|
125
|
-
"auto",
|
|
126
|
-
"block",
|
|
127
|
-
"showUnitArrow",
|
|
128
|
-
"lbm",
|
|
129
|
-
"removeEventListener",
|
|
130
|
-
"mm\x20HG",
|
|
131
|
-
"connectedCallback",
|
|
132
|
-
"select",
|
|
133
|
-
"width",
|
|
134
|
-
"Ampere[amp]",
|
|
135
|
-
"cm\x20HG",
|
|
136
|
-
"unit",
|
|
137
|
-
"toString",
|
|
138
|
-
".unit-container",
|
|
139
|
-
"hasAttribute",
|
|
140
|
-
"tooltipTimeout",
|
|
141
|
-
"paddingRight",
|
|
142
|
-
"formatFeetInchesValue1",
|
|
143
|
-
"decimalPlaces",
|
|
144
|
-
";\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select.ft-in-hidden\x20option\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select.ft-in-hidden\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x201.5em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20",
|
|
145
|
-
"span",
|
|
146
|
-
];
|
|
147
|
-
_0x34fb = function () {
|
|
148
|
-
return _0x44a0b4;
|
|
149
|
-
};
|
|
150
|
-
return _0x34fb();
|
|
151
|
-
}
|
|
152
|
-
(function (_0x17369a, _0x40814b) {
|
|
153
|
-
const _0x2da0e8 = _0x4719,
|
|
154
|
-
_0x4db320 = _0x17369a();
|
|
155
|
-
while (!![]) {
|
|
156
|
-
try {
|
|
157
|
-
const _0x13d208 =
|
|
158
|
-
(-parseInt(_0x2da0e8(0x192)) / 0x1) *
|
|
159
|
-
(parseInt(_0x2da0e8(0x185)) / 0x2) +
|
|
160
|
-
parseInt(_0x2da0e8(0x15c)) / 0x3 +
|
|
161
|
-
-parseInt(_0x2da0e8(0x143)) / 0x4 +
|
|
162
|
-
-parseInt(_0x2da0e8(0x151)) / 0x5 +
|
|
163
|
-
-parseInt(_0x2da0e8(0x149)) / 0x6 +
|
|
164
|
-
-parseInt(_0x2da0e8(0x162)) / 0x7 +
|
|
165
|
-
parseInt(_0x2da0e8(0x195)) / 0x8;
|
|
166
|
-
if (_0x13d208 === _0x40814b) break;
|
|
167
|
-
else _0x4db320["push"](_0x4db320["shift"]());
|
|
168
|
-
} catch (_0x76945b) {
|
|
169
|
-
_0x4db320["push"](_0x4db320["shift"]());
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
})(_0x34fb, 0x33721),
|
|
173
|
-
(function (_0x123619, _0x2df585) {
|
|
174
|
-
const _0x1290e1 = _0x4719;
|
|
175
|
-
typeof exports == _0x1290e1(0x161) && typeof module < "u"
|
|
176
|
-
? (module[_0x1290e1(0x19f)] = _0x2df585())
|
|
177
|
-
: typeof define == _0x1290e1(0x140) && define[_0x1290e1(0x190)]
|
|
178
|
-
? define(_0x2df585)
|
|
179
|
-
: ((_0x123619 = typeof globalThis < "u" ? globalThis : _0x123619 || self),
|
|
180
|
-
(_0x123619["PhysicalQuantity"] = _0x2df585()));
|
|
181
|
-
})(this, function () {
|
|
182
|
-
"use strict";
|
|
183
|
-
const _0x57bb68 = _0x4719;
|
|
184
|
-
const _0x20ae31 = 0.45359237,
|
|
185
|
-
_0x3c7d10 = 25.4 / 0x3e8,
|
|
186
|
-
_0x3085da = 0xc * _0x3c7d10,
|
|
187
|
-
_0x423d7d = 0x18bcd,
|
|
188
|
-
_0x35418d = 133.322387415,
|
|
189
|
-
_0x2e3aa7 = {
|
|
190
|
-
Length: ["m", "km", "cm", "mm", "in", "ft-in", "ft"],
|
|
191
|
-
Mass: ["g", "kg", _0x57bb68(0x12d)],
|
|
192
|
-
Pressure: [
|
|
193
|
-
"Pa",
|
|
194
|
-
"kPa",
|
|
195
|
-
_0x57bb68(0x148),
|
|
196
|
-
_0x57bb68(0x17b),
|
|
197
|
-
_0x57bb68(0x186),
|
|
198
|
-
_0x57bb68(0x171),
|
|
199
|
-
_0x57bb68(0x126),
|
|
200
|
-
_0x57bb68(0x12f),
|
|
201
|
-
_0x57bb68(0x134),
|
|
202
|
-
_0x57bb68(0x18f),
|
|
203
|
-
_0x57bb68(0x165),
|
|
204
|
-
"m\x20W.C.",
|
|
205
|
-
_0x57bb68(0x16f),
|
|
206
|
-
"psf",
|
|
207
|
-
_0x57bb68(0x15e),
|
|
208
|
-
_0x57bb68(0x15f),
|
|
209
|
-
_0x57bb68(0x19c),
|
|
210
|
-
],
|
|
211
|
-
Density: [
|
|
212
|
-
_0x57bb68(0x122),
|
|
213
|
-
_0x57bb68(0x1a2),
|
|
214
|
-
"g/cm³",
|
|
215
|
-
_0x57bb68(0x157),
|
|
216
|
-
_0x57bb68(0x14e),
|
|
217
|
-
"lbm/in³",
|
|
218
|
-
],
|
|
219
|
-
Time: [
|
|
220
|
-
_0x57bb68(0x17e),
|
|
221
|
-
"s",
|
|
222
|
-
"minute",
|
|
223
|
-
"h",
|
|
224
|
-
_0x57bb68(0x175),
|
|
225
|
-
"day",
|
|
226
|
-
_0x57bb68(0x179),
|
|
227
|
-
],
|
|
228
|
-
ElectricalCurrent: [
|
|
229
|
-
"A",
|
|
230
|
-
_0x57bb68(0x133),
|
|
231
|
-
"mA",
|
|
232
|
-
"µA",
|
|
233
|
-
"kA",
|
|
234
|
-
"MA",
|
|
235
|
-
_0x57bb68(0x199),
|
|
236
|
-
],
|
|
237
|
-
Temperature: ["°K", "°C", "°F", "°Ra"],
|
|
238
|
-
},
|
|
239
|
-
_0x3830c1 = {
|
|
240
|
-
Length: {
|
|
241
|
-
m: 0x1,
|
|
242
|
-
km: 0x3e8,
|
|
243
|
-
cm: 0.01,
|
|
244
|
-
mm: 0.001,
|
|
245
|
-
in: _0x3c7d10,
|
|
246
|
-
"ft-in": _0x3c7d10,
|
|
247
|
-
ft: _0x3085da,
|
|
248
|
-
},
|
|
249
|
-
Mass: { kg: 0x1, g: 0.001, lbm: _0x20ae31 },
|
|
250
|
-
Pressure: {
|
|
251
|
-
Pa: 0x1,
|
|
252
|
-
kPa: 0x3e8,
|
|
253
|
-
MPa: 0xf4240,
|
|
254
|
-
GPa: 0x3b9aca00,
|
|
255
|
-
bar: 0x64 * 0x3e8,
|
|
256
|
-
mbar: 0x64,
|
|
257
|
-
atm: _0x423d7d,
|
|
258
|
-
"mm\x20HG": _0x35418d,
|
|
259
|
-
"cm\x20HG": _0x35418d * 0xa,
|
|
260
|
-
"in\x20HG": _0x35418d * 25.4,
|
|
261
|
-
"mm\x20W.C.": (0x1 / 0x3e8) * 0x3e8 * 9.80665,
|
|
262
|
-
"m\x20W.C.": 0x1 * 0x3e8 * 9.80665,
|
|
263
|
-
"in\x20W.C.": _0x3c7d10 * 0x3e8 * 9.80665,
|
|
264
|
-
psf: (_0x20ae31 * 9.80665) / Math[_0x57bb68(0x18a)](_0x3085da, 0x2),
|
|
265
|
-
psi: (_0x20ae31 * 9.80665) / Math[_0x57bb68(0x18a)](_0x3c7d10, 0x2),
|
|
266
|
-
ksi:
|
|
267
|
-
((_0x20ae31 * 9.80665) / Math[_0x57bb68(0x18a)](_0x3c7d10, 0x2)) *
|
|
268
|
-
0x3e8,
|
|
269
|
-
"ksi[kip/in²]":
|
|
270
|
-
((_0x20ae31 * 9.80665) / Math["pow"](_0x3c7d10, 0x2)) * 0x3e8,
|
|
271
|
-
},
|
|
272
|
-
Density: {
|
|
273
|
-
"kg/m³": 0x1,
|
|
274
|
-
"kg/L": 0x3e8,
|
|
275
|
-
"g/cm³": 0x1 / 0x3e8 / Math[_0x57bb68(0x18a)](0.01, 0x3),
|
|
276
|
-
"g/mm³": 0x1 / 0x3e8 / Math[_0x57bb68(0x18a)](0.001, 0x3),
|
|
277
|
-
"lbm/ft³": _0x20ae31 / Math[_0x57bb68(0x18a)](_0x3085da, 0x3),
|
|
278
|
-
"lbm/in³": _0x20ae31 / Math[_0x57bb68(0x18a)](_0x3c7d10, 0x3),
|
|
279
|
-
},
|
|
280
|
-
Time: {
|
|
281
|
-
"s[second]": 0x1,
|
|
282
|
-
s: 0x1,
|
|
283
|
-
minute: 0x3c,
|
|
284
|
-
h: 0xe10,
|
|
285
|
-
"h[hour]": 0xe10,
|
|
286
|
-
day: 0xe10 * 0x18,
|
|
287
|
-
week: 0xe10 * 0x18 * 0x7,
|
|
288
|
-
},
|
|
289
|
-
ElectricalCurrent: {
|
|
290
|
-
A: 0x1,
|
|
291
|
-
"Ampere[amp]": 0x1,
|
|
292
|
-
mA: 0.001,
|
|
293
|
-
µA: 0.000001,
|
|
294
|
-
kA: 0x3e8,
|
|
295
|
-
MA: 0xf4240,
|
|
296
|
-
"esu/s": 0x1 / 0xb2d05e00,
|
|
297
|
-
},
|
|
298
|
-
Temperature: {
|
|
299
|
-
"°K": { c0: 0x1, c1: 0x0 },
|
|
300
|
-
"°C": { c0: 0x1, c1: 273.15 },
|
|
301
|
-
"°F": { c0: 0x5 / 0x9, c1: 255.3722222 },
|
|
302
|
-
"°Ra": { c0: 0x5 / 0x9, c1: 0x0 },
|
|
303
|
-
},
|
|
304
|
-
};
|
|
305
|
-
class _0x4c8342 extends HTMLElement {
|
|
306
|
-
constructor() {
|
|
307
|
-
const _0x5c6dea = _0x57bb68;
|
|
308
|
-
super(),
|
|
309
|
-
this[_0x5c6dea(0x167)]({ mode: _0x5c6dea(0x164) }),
|
|
310
|
-
(this[_0x5c6dea(0x173)] = _0x2e3aa7),
|
|
311
|
-
(this[_0x5c6dea(0x13f)] = _0x3830c1),
|
|
312
|
-
(this[_0x5c6dea(0x135)] =
|
|
313
|
-
this[_0x5c6dea(0x160)](_0x5c6dea(0x135)) || "mm"),
|
|
314
|
-
(this["unitCategory"] = this["getUnitCategory"](this["unit"])),
|
|
315
|
-
(this[_0x5c6dea(0x14b)] = this[_0x5c6dea(0x160)](_0x5c6dea(0x156))),
|
|
316
|
-
this[_0x5c6dea(0x135)] === "ft-in"
|
|
317
|
-
? (this[_0x5c6dea(0x156)] = this["parseFeetInchesValue"](
|
|
318
|
-
this[_0x5c6dea(0x14b)]
|
|
319
|
-
))
|
|
320
|
-
: (this[_0x5c6dea(0x156)] = parseFloat(this[_0x5c6dea(0x14b)])),
|
|
321
|
-
(this["tooltipTimeout"] = null),
|
|
322
|
-
(this[_0x5c6dea(0x13c)] = 0x3),
|
|
323
|
-
(this[_0x5c6dea(0x18e)] = _0x5c6dea(0x152)),
|
|
324
|
-
(this["units"] = _0x2e3aa7),
|
|
325
|
-
(this["unitConversion"] = _0x3830c1),
|
|
326
|
-
(this[_0x5c6dea(0x12c)] =
|
|
327
|
-
!this[_0x5c6dea(0x138)](_0x5c6dea(0x14c)) ||
|
|
328
|
-
this[_0x5c6dea(0x160)](_0x5c6dea(0x14c)) === _0x5c6dea(0x123)),
|
|
329
|
-
this[_0x5c6dea(0x197)]();
|
|
330
|
-
}
|
|
331
|
-
static get [_0x57bb68(0x141)]() {
|
|
332
|
-
const _0x1cc79e = _0x57bb68;
|
|
333
|
-
return [_0x1cc79e(0x156), "unit", _0x1cc79e(0x121), "show-unit-arrow"];
|
|
334
|
-
}
|
|
335
|
-
["attributeChangedCallback"](_0x28dc66, _0x5e8008, _0x21a61d) {
|
|
336
|
-
const _0xaa3a28 = _0x57bb68;
|
|
337
|
-
_0x28dc66 === "value"
|
|
338
|
-
? ((this[_0xaa3a28(0x14b)] = _0x21a61d),
|
|
339
|
-
this[_0xaa3a28(0x135)] === _0xaa3a28(0x142)
|
|
340
|
-
? (this["value"] = this[_0xaa3a28(0x15b)](_0x21a61d))
|
|
341
|
-
: (this[_0xaa3a28(0x156)] = parseFloat(_0x21a61d)))
|
|
342
|
-
: _0x28dc66 === _0xaa3a28(0x135)
|
|
343
|
-
? ((this[_0xaa3a28(0x135)] = _0x21a61d),
|
|
344
|
-
(this[_0xaa3a28(0x120)] = this[_0xaa3a28(0x187)](_0x21a61d)),
|
|
345
|
-
this[_0xaa3a28(0x135)] === _0xaa3a28(0x142)
|
|
346
|
-
? (this[_0xaa3a28(0x156)] = this["parseFeetInchesValue"](
|
|
347
|
-
this[_0xaa3a28(0x14b)]
|
|
348
|
-
))
|
|
349
|
-
: _0x5e8008 === _0xaa3a28(0x142) &&
|
|
350
|
-
(this[_0xaa3a28(0x156)] = this["convertToNewUnit"](
|
|
351
|
-
this["value"],
|
|
352
|
-
"in",
|
|
353
|
-
this["unit"]
|
|
354
|
-
)))
|
|
355
|
-
: _0x28dc66 === _0xaa3a28(0x121)
|
|
356
|
-
? (this["decimalPlaces"] = parseInt(_0x21a61d) || 0x3)
|
|
357
|
-
: _0x28dc66 === _0xaa3a28(0x14c) &&
|
|
358
|
-
(this[_0xaa3a28(0x12c)] =
|
|
359
|
-
_0x21a61d === null || _0x21a61d === _0xaa3a28(0x123)),
|
|
360
|
-
this["render"]();
|
|
361
|
-
}
|
|
362
|
-
[_0x57bb68(0x15b)](_0x586e5e) {
|
|
363
|
-
const _0x5521e5 = _0x57bb68,
|
|
364
|
-
_0x3637df = /(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/,
|
|
365
|
-
_0x43bf82 = /(\d+)\'/,
|
|
366
|
-
_0x5abbf4 = /(\d+)/;
|
|
367
|
-
let _0x517e66 = _0x586e5e[_0x5521e5(0x15a)](_0x3637df);
|
|
368
|
-
if (_0x517e66) {
|
|
369
|
-
const _0x52a8e6 = parseInt(_0x517e66[0x1]) || 0x0,
|
|
370
|
-
_0x3cd71c = parseInt(_0x517e66[0x3]) || 0x0,
|
|
371
|
-
_0x3e902f = parseInt(_0x517e66[0x5]) || 0x0,
|
|
372
|
-
_0x2deb4e = parseInt(_0x517e66[0x6]) || 0x1;
|
|
373
|
-
return this[_0x5521e5(0x1a3)](
|
|
374
|
-
_0x52a8e6,
|
|
375
|
-
_0x3cd71c,
|
|
376
|
-
_0x3e902f,
|
|
377
|
-
_0x2deb4e
|
|
378
|
-
);
|
|
379
|
-
}
|
|
380
|
-
if (((_0x517e66 = _0x586e5e["match"](_0x43bf82)), _0x517e66)) {
|
|
381
|
-
const _0x2c45f1 = parseInt(_0x517e66[0x1]) || 0x0;
|
|
382
|
-
return this[_0x5521e5(0x1a3)](_0x2c45f1, 0x0, 0x0, 0x1);
|
|
383
|
-
}
|
|
384
|
-
if (((_0x517e66 = _0x586e5e[_0x5521e5(0x15a)](_0x5abbf4)), _0x517e66)) {
|
|
385
|
-
const _0x4fd98c = parseInt(_0x517e66[0x1]) || 0x0;
|
|
386
|
-
return this[_0x5521e5(0x1a3)](0x0, _0x4fd98c, 0x0, 0x1);
|
|
387
|
-
}
|
|
388
|
-
return parseFloat(_0x586e5e);
|
|
389
|
-
}
|
|
390
|
-
["calculateTotalInches"](_0x32d2c5, _0x239e1e, _0x2ae84e, _0x7d15af) {
|
|
391
|
-
return _0x32d2c5 * 0xc + _0x239e1e + _0x2ae84e / _0x7d15af;
|
|
392
|
-
}
|
|
393
|
-
[_0x57bb68(0x15d)](_0x4c211f, _0x1a2f10 = "1/16\x22") {
|
|
394
|
-
const _0x152ccd = _0x57bb68;
|
|
395
|
-
if (_0x4c211f < 0x0) return "-" + formatFeetInchesValue(-_0x4c211f);
|
|
396
|
-
const _0x6b6733 = parseInt(
|
|
397
|
-
_0x1a2f10[_0x152ccd(0x184)]("/")[0x1][_0x152ccd(0x168)]("\x22", "")
|
|
398
|
-
);
|
|
399
|
-
let _0x36aea1 = Math[_0x152ccd(0x14f)](_0x4c211f / 0xc),
|
|
400
|
-
_0x30c801 = Math[_0x152ccd(0x14f)](_0x4c211f % 0xc);
|
|
401
|
-
const _0x5f17b7 = _0x4c211f - Math[_0x152ccd(0x14f)](_0x4c211f);
|
|
402
|
-
let _0x1db3e2 = "";
|
|
403
|
-
if (_0x5f17b7 > 0x0 && _0x1a2f10 !== 0x0) {
|
|
404
|
-
let _0x2d1c56 = Math["round"](_0x5f17b7 * _0x6b6733);
|
|
405
|
-
const _0x395d51 = (_0x363396, _0x342c00) =>
|
|
406
|
-
_0x342c00
|
|
407
|
-
? _0x395d51(_0x342c00, _0x363396 % _0x342c00)
|
|
408
|
-
: _0x363396,
|
|
409
|
-
_0xebb249 = _0x395d51(_0x2d1c56, _0x6b6733);
|
|
410
|
-
(_0x1db3e2 =
|
|
411
|
-
"\x20" + _0x2d1c56 / _0xebb249 + "/" + _0x6b6733 / _0xebb249),
|
|
412
|
-
_0x1db3e2[_0x152ccd(0x178)]() === _0x152ccd(0x181) &&
|
|
413
|
-
(_0x30c801++,
|
|
414
|
-
_0x30c801 >= 0xc && (_0x36aea1++, (_0x30c801 -= 0xc)),
|
|
415
|
-
(_0x1db3e2 = ""));
|
|
416
|
-
}
|
|
417
|
-
let _0x2fc003 = "";
|
|
418
|
-
return (
|
|
419
|
-
_0x36aea1 > 0x0 && (_0x2fc003 += _0x36aea1 + "\x27"),
|
|
420
|
-
_0x36aea1 > 0x0 &&
|
|
421
|
-
(_0x30c801 > 0x0 || _0x1db3e2 !== "") &&
|
|
422
|
-
(_0x2fc003 += "-"),
|
|
423
|
-
_0x30c801 > 0x0 && (_0x2fc003 += "" + _0x30c801),
|
|
424
|
-
_0x1db3e2 !== "" && (_0x2fc003 += _0x1db3e2),
|
|
425
|
-
(_0x30c801 > 0x0 || _0x1db3e2 !== "") && (_0x2fc003 += "\x22"),
|
|
426
|
-
_0x2fc003["trim"]()
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
[_0x57bb68(0x177)](_0x471ff3) {
|
|
430
|
-
const _0x2bdc3c = _0x57bb68;
|
|
431
|
-
debugger;
|
|
432
|
-
if (_0x471ff3 < 0x0) return "-" + formatFeetInchesValue(-_0x471ff3);
|
|
433
|
-
const _0x554734 = Math[_0x2bdc3c(0x14f)](_0x471ff3 / 0xc),
|
|
434
|
-
_0x50fbbc = Math[_0x2bdc3c(0x14f)](_0x471ff3 % 0xc),
|
|
435
|
-
_0x4c0c5f = _0x471ff3 - Math["floor"](_0x471ff3);
|
|
436
|
-
let _0x179d22 = "";
|
|
437
|
-
if (_0x4c0c5f > 0x0) {
|
|
438
|
-
const _0x381a71 = (_0x2c4bdf, _0x26c79f) =>
|
|
439
|
-
_0x26c79f
|
|
440
|
-
? _0x381a71(_0x26c79f, _0x2c4bdf % _0x26c79f)
|
|
441
|
-
: _0x2c4bdf,
|
|
442
|
-
_0x3066d1 = Math[_0x2bdc3c(0x124)](_0x4c0c5f * 0x10),
|
|
443
|
-
_0x53efce = 0x10,
|
|
444
|
-
_0x5d37a9 = _0x381a71(_0x3066d1, _0x53efce);
|
|
445
|
-
_0x179d22 = _0x3066d1 / _0x5d37a9 + "/" + _0x53efce / _0x5d37a9;
|
|
446
|
-
}
|
|
447
|
-
return _0x50fbbc === 0x0
|
|
448
|
-
? _0x554734 + "\x27-" + _0x179d22 + "\x22"
|
|
449
|
-
: _0x554734 + "\x27-" + _0x50fbbc + "\x20" + _0x179d22 + "\x22";
|
|
450
|
-
}
|
|
451
|
-
[_0x57bb68(0x13b)](_0x115576) {
|
|
452
|
-
const _0x2ab0c9 = _0x57bb68;
|
|
453
|
-
debugger;
|
|
454
|
-
const _0x5af2f5 = Math["floor"](_0x115576 / 0xc),
|
|
455
|
-
_0x6b387a = Math[_0x2ab0c9(0x14f)](_0x115576 % 0xc),
|
|
456
|
-
_0x3e6cef = _0x115576 % 0x1;
|
|
457
|
-
let _0x24bb44 = "";
|
|
458
|
-
if (_0x3e6cef > 0x0) {
|
|
459
|
-
const _0x283268 = (_0x59aa9f, _0x3502f6) =>
|
|
460
|
-
_0x3502f6
|
|
461
|
-
? _0x283268(_0x3502f6, _0x59aa9f % _0x3502f6)
|
|
462
|
-
: _0x59aa9f,
|
|
463
|
-
_0x21d27a = Math[_0x2ab0c9(0x124)](_0x3e6cef * 0x10),
|
|
464
|
-
_0x30225a = 0x10,
|
|
465
|
-
_0x5d3dfb = _0x283268(_0x21d27a, _0x30225a);
|
|
466
|
-
_0x24bb44 =
|
|
467
|
-
"\x20" + _0x21d27a / _0x5d3dfb + "/" + _0x30225a / _0x5d3dfb;
|
|
468
|
-
}
|
|
469
|
-
return _0x5af2f5 + "\x27-" + _0x6b387a + "\x20" + _0x24bb44 + "\x22";
|
|
470
|
-
}
|
|
471
|
-
["formatFeetInchesValue0"](_0x38d62d) {
|
|
472
|
-
const _0x52e43c = _0x57bb68,
|
|
473
|
-
_0x530fa7 = Math[_0x52e43c(0x14f)](_0x38d62d / 0xc),
|
|
474
|
-
_0x165bc7 = Math[_0x52e43c(0x124)]((_0x38d62d % 0xc) * 0xa) / 0xa;
|
|
475
|
-
return _0x530fa7 > 0x0 && _0x165bc7 > 0x0
|
|
476
|
-
? _0x530fa7 + "\x27-" + _0x165bc7 + "\x22"
|
|
477
|
-
: _0x530fa7 > 0x0
|
|
478
|
-
? _0x530fa7 + "\x27"
|
|
479
|
-
: _0x165bc7 + "\x22";
|
|
480
|
-
}
|
|
481
|
-
[_0x57bb68(0x183)](_0x57dad7, _0x43c022, _0x467cc3) {
|
|
482
|
-
const _0x1651d5 = _0x57bb68,
|
|
483
|
-
_0x5e44bb =
|
|
484
|
-
this[_0x1651d5(0x13f)][this[_0x1651d5(0x120)]][_0x43c022] /
|
|
485
|
-
this[_0x1651d5(0x13f)][this[_0x1651d5(0x120)]][_0x467cc3];
|
|
486
|
-
return _0x57dad7 * _0x5e44bb;
|
|
487
|
-
}
|
|
488
|
-
[_0x57bb68(0x187)](_0xa9fb4f) {
|
|
489
|
-
const _0x16a69c = _0x57bb68;
|
|
490
|
-
for (const _0x4498f5 in this[_0x16a69c(0x173)])
|
|
491
|
-
if (this[_0x16a69c(0x173)][_0x4498f5][_0x16a69c(0x146)](_0xa9fb4f))
|
|
492
|
-
return _0x4498f5;
|
|
493
|
-
return (
|
|
494
|
-
(this[_0x16a69c(0x173)][_0x16a69c(0x198)] =
|
|
495
|
-
this["units"][_0x16a69c(0x198)] || []),
|
|
496
|
-
this[_0x16a69c(0x173)][_0x16a69c(0x198)][_0x16a69c(0x16e)](_0xa9fb4f),
|
|
497
|
-
(this[_0x16a69c(0x13f)][_0x16a69c(0x198)] =
|
|
498
|
-
this[_0x16a69c(0x13f)][_0x16a69c(0x198)] || {}),
|
|
499
|
-
(this[_0x16a69c(0x13f)]["Custom"][_0xa9fb4f] = 0x1),
|
|
500
|
-
_0x16a69c(0x198)
|
|
501
|
-
);
|
|
502
|
-
}
|
|
503
|
-
[_0x57bb68(0x130)]() {
|
|
504
|
-
const _0x22ee99 = _0x57bb68;
|
|
505
|
-
this[_0x22ee99(0x145)][_0x22ee99(0x18b)](
|
|
506
|
-
_0x22ee99(0x19d),
|
|
507
|
-
this[_0x22ee99(0x176)][_0x22ee99(0x1a0)](this)
|
|
508
|
-
),
|
|
509
|
-
(this[_0x22ee99(0x135)] =
|
|
510
|
-
this["getAttribute"](_0x22ee99(0x135)) || "mm"),
|
|
511
|
-
(this["unitCategory"] = this[_0x22ee99(0x187)](
|
|
512
|
-
this[_0x22ee99(0x135)]
|
|
513
|
-
)),
|
|
514
|
-
(this[_0x22ee99(0x12c)] = this[_0x22ee99(0x138)](_0x22ee99(0x14c))
|
|
515
|
-
? this["getAttribute"](_0x22ee99(0x14c)) === "true"
|
|
516
|
-
: this[_0x22ee99(0x120)] !== _0x22ee99(0x198)),
|
|
517
|
-
this[_0x22ee99(0x197)]();
|
|
518
|
-
}
|
|
519
|
-
["disconnectedCallback"]() {
|
|
520
|
-
const _0x543a5d = _0x57bb68;
|
|
521
|
-
this[_0x543a5d(0x145)][_0x543a5d(0x12e)](
|
|
522
|
-
_0x543a5d(0x19d),
|
|
523
|
-
this[_0x543a5d(0x176)][_0x543a5d(0x1a0)](this)
|
|
524
|
-
);
|
|
525
|
-
}
|
|
526
|
-
[_0x57bb68(0x159)](_0x4efb14) {
|
|
527
|
-
const _0x370bcb = _0x57bb68;
|
|
528
|
-
if (_0x4efb14[_0x370bcb(0x1a1)]["closest"](_0x370bcb(0x137))) {
|
|
529
|
-
const _0x11e803 = this[_0x370bcb(0x145)]["querySelector"]("select");
|
|
530
|
-
_0x11e803 && (_0x11e803["focus"](), _0x11e803["click"]());
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
["handleUnitChange"](_0x3107e4) {
|
|
534
|
-
const _0x5e04f3 = _0x57bb68;
|
|
535
|
-
let _0xb11dac = 0x1,
|
|
536
|
-
_0x5d6fd2 = 0x1,
|
|
537
|
-
_0x4a3abe = 0x0,
|
|
538
|
-
_0x254d88 = 0x0;
|
|
539
|
-
if (
|
|
540
|
-
_0x3107e4[_0x5e04f3(0x1a1)][_0x5e04f3(0x158)] === _0x5e04f3(0x193)
|
|
541
|
-
) {
|
|
542
|
-
const _0x477c72 = _0x3107e4["target"][_0x5e04f3(0x156)];
|
|
543
|
-
if (this[_0x5e04f3(0x120)] !== _0x5e04f3(0x16b)) {
|
|
544
|
-
const _0x4f0f86 =
|
|
545
|
-
this["unitConversion"][this[_0x5e04f3(0x120)]][this["unit"]] /
|
|
546
|
-
this[_0x5e04f3(0x13f)][this[_0x5e04f3(0x120)]][_0x477c72];
|
|
547
|
-
this["value"] = this[_0x5e04f3(0x156)] * _0x4f0f86;
|
|
548
|
-
} else
|
|
549
|
-
console[_0x5e04f3(0x19e)](
|
|
550
|
-
_0x5e04f3(0x169) + this[_0x5e04f3(0x120)]
|
|
551
|
-
),
|
|
552
|
-
console[_0x5e04f3(0x19e)]("unit:\x20" + this["unit"]),
|
|
553
|
-
console[_0x5e04f3(0x19e)]("newUnit:\x20" + _0x477c72),
|
|
554
|
-
(_0xb11dac =
|
|
555
|
-
this[_0x5e04f3(0x13f)][this["unitCategory"]][
|
|
556
|
-
this[_0x5e04f3(0x135)]
|
|
557
|
-
]["c0"]),
|
|
558
|
-
(_0x5d6fd2 =
|
|
559
|
-
this[_0x5e04f3(0x13f)][this[_0x5e04f3(0x120)]][
|
|
560
|
-
this[_0x5e04f3(0x135)]
|
|
561
|
-
]["c1"]),
|
|
562
|
-
(_0x4a3abe =
|
|
563
|
-
this[_0x5e04f3(0x13f)][this["unitCategory"]][_0x477c72]["c0"]),
|
|
564
|
-
(_0x254d88 =
|
|
565
|
-
this[_0x5e04f3(0x13f)][this[_0x5e04f3(0x120)]][_0x477c72][
|
|
566
|
-
"c1"
|
|
567
|
-
]),
|
|
568
|
-
(this[_0x5e04f3(0x156)] =
|
|
569
|
-
(this[_0x5e04f3(0x156)] * _0xb11dac + _0x5d6fd2 - _0x254d88) /
|
|
570
|
-
_0x4a3abe);
|
|
571
|
-
(this[_0x5e04f3(0x135)] = _0x477c72), this["render"]();
|
|
572
|
-
}
|
|
573
|
-
this["updateDropdownWidth"]();
|
|
574
|
-
}
|
|
575
|
-
[_0x57bb68(0x127)](_0x1c01af) {
|
|
576
|
-
const _0x449f0b = _0x57bb68;
|
|
577
|
-
return Number["isInteger"](_0x1c01af)
|
|
578
|
-
? _0x1c01af[_0x449f0b(0x136)]()
|
|
579
|
-
: Math["floor"](_0x1c01af) !== 0x0
|
|
580
|
-
? _0x1c01af[_0x449f0b(0x182)](this[_0x449f0b(0x13c)])
|
|
581
|
-
[_0x449f0b(0x168)](/0+$/, "")
|
|
582
|
-
[_0x449f0b(0x168)](/\.$/, "")
|
|
583
|
-
: _0x1c01af[_0x449f0b(0x17a)](0x3);
|
|
584
|
-
}
|
|
585
|
-
[_0x57bb68(0x197)]() {
|
|
586
|
-
const _0x4ed84b = _0x57bb68,
|
|
587
|
-
_0x170362 =
|
|
588
|
-
this[_0x4ed84b(0x135)] === "ft-in"
|
|
589
|
-
? _0x4ed84b(0x166)
|
|
590
|
-
: _0x4ed84b(0x18d);
|
|
591
|
-
this[_0x4ed84b(0x145)][_0x4ed84b(0x194)] =
|
|
592
|
-
_0x4ed84b(0x174) +
|
|
593
|
-
(this["showUnitArrow"] ? _0x4ed84b(0x12a) : "none") +
|
|
594
|
-
_0x4ed84b(0x189) +
|
|
595
|
-
(this[_0x4ed84b(0x12c)] ? "auto" : _0x4ed84b(0x19a)) +
|
|
596
|
-
_0x4ed84b(0x196) +
|
|
597
|
-
(this[_0x4ed84b(0x12c)] ? "auto" : "none") +
|
|
598
|
-
_0x4ed84b(0x18c) +
|
|
599
|
-
_0x170362 +
|
|
600
|
-
_0x4ed84b(0x13d) +
|
|
601
|
-
(this[_0x4ed84b(0x135)] === _0x4ed84b(0x142)
|
|
602
|
-
? this["formatFeetInchesValue"](this["value"])
|
|
603
|
-
: this[_0x4ed84b(0x127)](this["value"])) +
|
|
604
|
-
"\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select\x20class=\x22" +
|
|
605
|
-
(this["unit"] === _0x4ed84b(0x142) ? "ft-in-hidden" : "") +
|
|
606
|
-
_0x4ed84b(0x125) +
|
|
607
|
-
(this[_0x4ed84b(0x173)][this[_0x4ed84b(0x120)]] || [
|
|
608
|
-
this[_0x4ed84b(0x135)],
|
|
609
|
-
])
|
|
610
|
-
[_0x4ed84b(0x16d)](
|
|
611
|
-
(_0x48403e) =>
|
|
612
|
-
_0x4ed84b(0x19b) +
|
|
613
|
-
_0x48403e +
|
|
614
|
-
"\x22\x20" +
|
|
615
|
-
(_0x48403e === this[_0x4ed84b(0x135)] ? _0x4ed84b(0x16a) : "") +
|
|
616
|
-
_0x4ed84b(0x16c) +
|
|
617
|
-
_0x48403e +
|
|
618
|
-
_0x4ed84b(0x14d)
|
|
619
|
-
)
|
|
620
|
-
[_0x4ed84b(0x14a)]("") +
|
|
621
|
-
"\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20" +
|
|
622
|
-
(this[_0x4ed84b(0x12c)] && this[_0x4ed84b(0x120)] !== _0x4ed84b(0x198)
|
|
623
|
-
? "\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22" +
|
|
624
|
-
this[_0x4ed84b(0x18e)] +
|
|
625
|
-
"\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20"
|
|
626
|
-
: "") +
|
|
627
|
-
_0x4ed84b(0x170);
|
|
628
|
-
const _0x5399d8 = this[_0x4ed84b(0x145)][_0x4ed84b(0x128)](
|
|
629
|
-
_0x4ed84b(0x137)
|
|
630
|
-
),
|
|
631
|
-
_0x12a295 = this["shadowRoot"]["querySelectorAll"](
|
|
632
|
-
_0x4ed84b(0x147)
|
|
633
|
-
)[0x0];
|
|
634
|
-
_0x5399d8 &&
|
|
635
|
-
_0x12a295 &&
|
|
636
|
-
(_0x5399d8[_0x4ed84b(0x18b)](_0x4ed84b(0x155), () => {
|
|
637
|
-
const _0x242ff3 = _0x4ed84b;
|
|
638
|
-
this[_0x242ff3(0x139)] = setTimeout(() => {
|
|
639
|
-
const _0xb66b2 = _0x242ff3;
|
|
640
|
-
_0x12a295[_0xb66b2(0x153)][_0xb66b2(0x144)] = _0xb66b2(0x12b);
|
|
641
|
-
}, 0x3e8);
|
|
642
|
-
}),
|
|
643
|
-
_0x5399d8[_0x4ed84b(0x18b)]("mouseout", () => {
|
|
644
|
-
const _0x24b61a = _0x4ed84b;
|
|
645
|
-
setTimeout(() => {
|
|
646
|
-
const _0x4b0641 = _0x4719;
|
|
647
|
-
_0x12a295["style"]["display"] = _0x4b0641(0x19a);
|
|
648
|
-
}, 0x7d0),
|
|
649
|
-
clearTimeout(this[_0x24b61a(0x139)]);
|
|
650
|
-
}),
|
|
651
|
-
_0x12a295[_0x4ed84b(0x18b)](_0x4ed84b(0x17c), () => {
|
|
652
|
-
setTimeout(() => {
|
|
653
|
-
const _0x2567e4 = _0x4719;
|
|
654
|
-
_0x12a295["style"]["display"] = _0x2567e4(0x19a);
|
|
655
|
-
}, 0x7d0);
|
|
656
|
-
})),
|
|
657
|
-
this["updateDropdownWidth"]();
|
|
658
|
-
}
|
|
659
|
-
["updateDropdownWidth"]() {
|
|
660
|
-
const _0x30894d = _0x57bb68,
|
|
661
|
-
_0x415c95 = this["shadowRoot"][_0x30894d(0x128)](_0x30894d(0x131)),
|
|
662
|
-
_0x25430b = _0x415c95[_0x30894d(0x188)][_0x415c95["selectedIndex"]],
|
|
663
|
-
_0x4a8f15 = document[_0x30894d(0x163)](_0x30894d(0x13e));
|
|
664
|
-
(_0x4a8f15[_0x30894d(0x153)]["position"] = _0x30894d(0x172)),
|
|
665
|
-
(_0x4a8f15[_0x30894d(0x153)][_0x30894d(0x154)] = "hidden"),
|
|
666
|
-
(_0x4a8f15[_0x30894d(0x153)][_0x30894d(0x17f)] =
|
|
667
|
-
getComputedStyle(_0x415c95)["font"]),
|
|
668
|
-
document["body"]["appendChild"](_0x4a8f15),
|
|
669
|
-
(_0x4a8f15["textContent"] = _0x25430b[_0x30894d(0x150)]);
|
|
670
|
-
const _0x307ae4 = _0x4a8f15[_0x30894d(0x129)];
|
|
671
|
-
document["body"]["removeChild"](_0x4a8f15);
|
|
672
|
-
const _0x543566 =
|
|
673
|
-
parseInt(getComputedStyle(_0x415c95)["paddingLeft"]) +
|
|
674
|
-
parseInt(getComputedStyle(_0x415c95)[_0x30894d(0x13a)]);
|
|
675
|
-
(_0x415c95[_0x30894d(0x153)]["width"] = this[_0x30894d(0x12c)]
|
|
676
|
-
? _0x307ae4 + _0x543566 + 0x16 + "px"
|
|
677
|
-
: _0x307ae4 + _0x543566 + 0x4 + "px"),
|
|
678
|
-
this[_0x30894d(0x135)] === _0x30894d(0x142) &&
|
|
679
|
-
(_0x415c95[_0x30894d(0x153)][_0x30894d(0x132)] =
|
|
680
|
-
_0x543566 + 0xc + "px");
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
customElements[_0x57bb68(0x191)](_0x57bb68(0x17d), _0x4c8342);
|
|
684
|
-
class _0xf67553 extends _0x4c8342 {}
|
|
685
|
-
return customElements["define"](_0x57bb68(0x180), _0xf67553), _0x4c8342;
|
|
686
|
-
});
|
|
1
|
+
function _0x4fe6(_0x81fda8,_0x1861e8){const _0x58d083=_0x58d0();return _0x4fe6=function(_0x4fe6f7,_0x12285b){_0x4fe6f7=_0x4fe6f7-0x70;let _0x3648f9=_0x58d083[_0x4fe6f7];return _0x3648f9;},_0x4fe6(_0x81fda8,_0x1861e8);}function _0x58d0(){const _0xf6bb11=['unitCategory','in\x20HG','handleUnitChange','round',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select.ft-in-hidden\x20option\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select.ft-in-hidden\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20visible;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x201.5em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pow','toPrecision','MPa','16JQOfKN','.tooltip','change','ksi','style','block','calculateTotalInches','tooltipTimeout','push','querySelector','esu/s','4555vugVBc','offsetWidth','removeEventListener','querySelectorAll','PhysicalQuantity','s[second]','hidden','function','kg/L','define','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','trim','psf','match','category:\x20','kgf','visible','options','observedAttributes','attributeChangedCallback','mouseout','getUnitCategory','visibility','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','lbm/in³','showUnitArrow','disconnectedCallback','closest','amd','g/cm³','1560609diBIMQ','show-unit-arrow','.unit-container',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','floor','createElement','getAttribute','6OpizSS','target','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','minute','m\x20W.C.','updateDropdownWidth','bind','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x201px\x203px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20','h[hour]','cm\x20HG','</option>','span','kip[kilo\x20pound]','g/mm³','none','in\x20W.C.','unitConversion','width','decimal-places','text','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','formatFeetInchesValue','uc-qty','ft-in','103433YMybKT','ksi[kip/in²]','attachShadow','GPa','replace','lbm','SELECT','appendChild','lbf','Ampere[amp]','paddingLeft','formatValue','render','Custom','focus','725682QqSEjT','true','position','https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492','addEventListener','parseFeetInchesValue','select','unit','value','includes','display','decimalPlaces','log','1454996VYwUqV','10491425vyzwSE','hasAttribute','split','auto','handleArrowClick','convertToNewUnit','°Ra','atm','paddingRight','1940zqYUtL','2244228tJRrdo','formatFeetInchesValue1',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20','font','mouseover','selected','click','Temperature','lbm/ft³','innerHTML','kg/m³','inputValue','ft-in-hidden','object','1/16\x22','units','1/1','<option\x20value=\x22','body','shadowRoot','isInteger','toFixed','open','toString','psi','4938sceWYY','mm\x20HG','absolute'];_0x58d0=function(){return _0xf6bb11;};return _0x58d0();}(function(_0x9665c3,_0x29ce95){const _0x5f456c=_0x4fe6,_0x46f026=_0x9665c3();while(!![]){try{const _0x13d64b=parseInt(_0x5f456c(0xd6))/0x1+-parseInt(_0x5f456c(0xe3))/0x2*(-parseInt(_0x5f456c(0xaf))/0x3)+-parseInt(_0x5f456c(0xee))/0x4+parseInt(_0x5f456c(0x8a))/0x5*(-parseInt(_0x5f456c(0x74))/0x6)+-parseInt(_0x5f456c(0xe4))/0x7+-parseInt(_0x5f456c(0x7f))/0x8*(parseInt(_0x5f456c(0xa8))/0x9)+-parseInt(_0x5f456c(0xed))/0xa*(-parseInt(_0x5f456c(0xc7))/0xb);if(_0x13d64b===_0x29ce95)break;else _0x46f026['push'](_0x46f026['shift']());}catch(_0x17b29d){_0x46f026['push'](_0x46f026['shift']());}}}(_0x58d0,0xcf259),function(_0x39e963,_0x35743a){const _0x5393e2=_0x4fe6;typeof exports==_0x5393e2(0xfb)&&typeof module<'u'?module['exports']=_0x35743a():typeof define==_0x5393e2(0x91)&&define[_0x5393e2(0xa6)]?define(_0x35743a):(_0x39e963=typeof globalThis<'u'?globalThis:_0x39e963||self,_0x39e963[_0x5393e2(0x8e)]=_0x35743a());}(this,function(){'use strict';const _0x381dd3=_0x4fe6;const _0x726ef2=0.45359237,_0x244c0c=25.4/0x3e8,_0x5446bc=0xc*_0x244c0c,_0x1c29c5=0x18bcd,_0x154ba3=133.322387415,_0xa1033c={'Length':['m','km','cm','mm','in',_0x381dd3(0xc6),'ft'],'Mass':['g','kg',_0x381dd3(0xcc)],'Time':[_0x381dd3(0x8f),'s',_0x381dd3(0xb2),'h',_0x381dd3(0xb7),'day','week'],'ElectricalCurrent':['A',_0x381dd3(0xd0),'mA','µA','kA','MA',_0x381dd3(0x89)],'Temperature':['°K','°C','°F',_0x381dd3(0xea)],'Pressure':['Pa','kPa',_0x381dd3(0x7e),_0x381dd3(0xca),'bar','mbar',_0x381dd3(0xeb),_0x381dd3(0x75),_0x381dd3(0xb8),_0x381dd3(0x78),'mm\x20W.C.',_0x381dd3(0xb3),_0x381dd3(0xbe),_0x381dd3(0x96),_0x381dd3(0x73),_0x381dd3(0x82),_0x381dd3(0xc8)],'Density':[_0x381dd3(0xf8),_0x381dd3(0x92),_0x381dd3(0xa7),_0x381dd3(0xbc),_0x381dd3(0xf6),_0x381dd3(0xa2)],'Force':['N','kN','MN',_0x381dd3(0x99),'lb',_0x381dd3(0xcf),_0x381dd3(0xbb)]},_0x2c0058={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':_0x244c0c,'ft-in':_0x244c0c,'ft':_0x5446bc},'Mass':{'kg':0x1,'g':0.001,'lbm':_0x726ef2},'Time':{'s[second]':0x1,'s':0x1,'minute':0x3c,'h':0xe10,'h[hour]':0xe10,'day':0xe10*0x18,'week':0xe10*0x18*0x7},'ElectricalCurrent':{'A':0x1,'Ampere[amp]':0x1,'mA':0.001,'µA':0.000001,'kA':0x3e8,'MA':0xf4240,'esu/s':0x1/0xb2d05e00},'Temperature':{'°K':{'c0':0x1,'c1':0x0},'°C':{'c0':0x1,'c1':273.15},'°F':{'c0':0x5/0x9,'c1':255.3722222},'°Ra':{'c0':0x5/0x9,'c1':0x0}},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0x1c29c5,'mm\x20HG':_0x154ba3,'cm\x20HG':_0x154ba3*0xa,'in\x20HG':_0x154ba3*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':_0x244c0c*0x3e8*9.80665,'psf':_0x726ef2*9.80665/Math[_0x381dd3(0x7c)](_0x5446bc,0x2),'psi':_0x726ef2*9.80665/Math[_0x381dd3(0x7c)](_0x244c0c,0x2),'ksi':_0x726ef2*9.80665/Math['pow'](_0x244c0c,0x2)*0x3e8,'ksi[kip/in²]':_0x726ef2*9.80665/Math[_0x381dd3(0x7c)](_0x244c0c,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x381dd3(0x7c)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0x381dd3(0x7c)](0.001,0x3),'lbm/ft³':_0x726ef2/Math[_0x381dd3(0x7c)](_0x5446bc,0x3),'lbm/in³':_0x726ef2/Math['pow'](_0x244c0c,0x3)},'Force':{'N':0x1,'kN':0x3e8,'MN':0xf4240,'kgf':9.80665,'lb':_0x726ef2*9.80665,'lbf':_0x726ef2*9.80665,'kip[kilo\x20pound]':0x3e8*_0x726ef2*9.80665}};class _0x109ca1 extends HTMLElement{constructor(){const _0x409dc9=_0x381dd3;super(),this[_0x409dc9(0xc9)]({'mode':_0x409dc9(0x71)}),this[_0x409dc9(0xfd)]=_0xa1033c,this['unitConversion']=_0x2c0058,this[_0x409dc9(0xdd)]=this[_0x409dc9(0xae)]('unit')||'mm',this[_0x409dc9(0x77)]=this[_0x409dc9(0x9f)](this[_0x409dc9(0xdd)]),this[_0x409dc9(0xf9)]=this[_0x409dc9(0xae)](_0x409dc9(0xde)),this[_0x409dc9(0xdd)]===_0x409dc9(0xc6)?this[_0x409dc9(0xde)]=this[_0x409dc9(0xdb)](this[_0x409dc9(0xf9)]):this[_0x409dc9(0xde)]=parseFloat(this[_0x409dc9(0xf9)]),this[_0x409dc9(0x86)]=null,this['decimalPlaces']=0x3,this['e3dLogoUrl']=_0x409dc9(0xd9),this[_0x409dc9(0xfd)]=_0xa1033c,this[_0x409dc9(0xbf)]=_0x2c0058,this['showUnitArrow']=!this[_0x409dc9(0xe5)](_0x409dc9(0xa9))||this[_0x409dc9(0xae)]('show-unit-arrow')===_0x409dc9(0xd7),this[_0x409dc9(0xd3)]();}static get[_0x381dd3(0x9c)](){const _0x5ae355=_0x381dd3;return['value',_0x5ae355(0xdd),_0x5ae355(0xc1),_0x5ae355(0xa9)];}[_0x381dd3(0x9d)](_0x12554e,_0x129397,_0xd9d306){const _0x217521=_0x381dd3;_0x12554e==='value'?(this[_0x217521(0xf9)]=_0xd9d306,this['unit']===_0x217521(0xc6)?this[_0x217521(0xde)]=this[_0x217521(0xdb)](_0xd9d306):this[_0x217521(0xde)]=parseFloat(_0xd9d306)):_0x12554e===_0x217521(0xdd)?(this[_0x217521(0xdd)]=_0xd9d306,this['unitCategory']=this[_0x217521(0x9f)](_0xd9d306),this['unit']===_0x217521(0xc6)?this[_0x217521(0xde)]=this['parseFeetInchesValue'](this[_0x217521(0xf9)]):_0x129397===_0x217521(0xc6)&&(this['value']=this[_0x217521(0xe9)](this[_0x217521(0xde)],'in',this['unit']))):_0x12554e===_0x217521(0xc1)?this[_0x217521(0xe1)]=parseInt(_0xd9d306)||0x3:_0x12554e===_0x217521(0xa9)&&(this['showUnitArrow']=_0xd9d306===null||_0xd9d306===_0x217521(0xd7)),this[_0x217521(0xd3)]();}[_0x381dd3(0xdb)](_0x4f176f){const _0x5f0756=_0x381dd3,_0xf84d6c=/(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/,_0xa5f03b=/(\d+)\'/,_0x899899=/(\d+)/;let _0xee72dc=_0x4f176f[_0x5f0756(0x97)](_0xf84d6c);if(_0xee72dc){const _0x249987=parseInt(_0xee72dc[0x1])||0x0,_0x571058=parseInt(_0xee72dc[0x3])||0x0,_0x4d2424=parseInt(_0xee72dc[0x5])||0x0,_0x140168=parseInt(_0xee72dc[0x6])||0x1;return this[_0x5f0756(0x85)](_0x249987,_0x571058,_0x4d2424,_0x140168);}if(_0xee72dc=_0x4f176f[_0x5f0756(0x97)](_0xa5f03b),_0xee72dc){const _0x37aad8=parseInt(_0xee72dc[0x1])||0x0;return this[_0x5f0756(0x85)](_0x37aad8,0x0,0x0,0x1);}if(_0xee72dc=_0x4f176f[_0x5f0756(0x97)](_0x899899),_0xee72dc){const _0x25a957=parseInt(_0xee72dc[0x1])||0x0;return this[_0x5f0756(0x85)](0x0,_0x25a957,0x0,0x1);}return parseFloat(_0x4f176f);}[_0x381dd3(0x85)](_0x134890,_0x194069,_0x342c25,_0x285d98){return _0x134890*0xc+_0x194069+_0x342c25/_0x285d98;}[_0x381dd3(0xc4)](_0x10ce36,_0x4e7ff5=_0x381dd3(0xfc)){const _0x40207c=_0x381dd3;if(_0x10ce36<0x0)return'-'+formatFeetInchesValue(-_0x10ce36);const _0x584415=parseInt(_0x4e7ff5[_0x40207c(0xe6)]('/')[0x1]['replace']('\x22',''));let _0x3c1fdc=Math['floor'](_0x10ce36/0xc),_0x177bb6=Math[_0x40207c(0xac)](_0x10ce36%0xc);const _0x149c4e=_0x10ce36-Math['floor'](_0x10ce36);let _0x409d78='';if(_0x149c4e>0x0&&_0x4e7ff5!==0x0){let _0xd0f0a6=Math[_0x40207c(0x7a)](_0x149c4e*_0x584415);const _0x305b47=(_0x8d9c53,_0x6d6845)=>_0x6d6845?_0x305b47(_0x6d6845,_0x8d9c53%_0x6d6845):_0x8d9c53,_0x593533=_0x305b47(_0xd0f0a6,_0x584415);_0x409d78='\x20'+_0xd0f0a6/_0x593533+'/'+_0x584415/_0x593533,_0x409d78[_0x40207c(0x95)]()===_0x40207c(0xfe)&&(_0x177bb6++,_0x177bb6>=0xc&&(_0x3c1fdc++,_0x177bb6-=0xc),_0x409d78='');}let _0x4dcaf0='';return _0x3c1fdc>0x0&&(_0x4dcaf0+=_0x3c1fdc+'\x27'),_0x3c1fdc>0x0&&(_0x177bb6>0x0||_0x409d78!=='')&&(_0x4dcaf0+='-'),_0x177bb6>0x0&&(_0x4dcaf0+=''+_0x177bb6),_0x409d78!==''&&(_0x4dcaf0+=_0x409d78),(_0x177bb6>0x0||_0x409d78!=='')&&(_0x4dcaf0+='\x22'),_0x4dcaf0[_0x40207c(0x95)]();}['formatFeetInchesValue2'](_0x2870ce){const _0x14e0f5=_0x381dd3;debugger;if(_0x2870ce<0x0)return'-'+formatFeetInchesValue(-_0x2870ce);const _0x7b7ec2=Math[_0x14e0f5(0xac)](_0x2870ce/0xc),_0x27d5d7=Math[_0x14e0f5(0xac)](_0x2870ce%0xc),_0x3f07a7=_0x2870ce-Math[_0x14e0f5(0xac)](_0x2870ce);let _0x12e902='';if(_0x3f07a7>0x0){const _0x1fc42f=(_0x4e835c,_0x5b29f1)=>_0x5b29f1?_0x1fc42f(_0x5b29f1,_0x4e835c%_0x5b29f1):_0x4e835c,_0x2b1ce9=Math[_0x14e0f5(0x7a)](_0x3f07a7*0x10),_0x4538f5=0x10,_0x1015de=_0x1fc42f(_0x2b1ce9,_0x4538f5);_0x12e902=_0x2b1ce9/_0x1015de+'/'+_0x4538f5/_0x1015de;}return _0x27d5d7===0x0?_0x7b7ec2+'\x27-'+_0x12e902+'\x22':_0x7b7ec2+'\x27-'+_0x27d5d7+'\x20'+_0x12e902+'\x22';}[_0x381dd3(0xef)](_0x71cebc){const _0x58a4d6=_0x381dd3;debugger;const _0x865c00=Math[_0x58a4d6(0xac)](_0x71cebc/0xc),_0x559b10=Math[_0x58a4d6(0xac)](_0x71cebc%0xc),_0x1bbafe=_0x71cebc%0x1;let _0xb27cdd='';if(_0x1bbafe>0x0){const _0x372093=(_0x493b8d,_0x1ec5f0)=>_0x1ec5f0?_0x372093(_0x1ec5f0,_0x493b8d%_0x1ec5f0):_0x493b8d,_0x18b4c8=Math[_0x58a4d6(0x7a)](_0x1bbafe*0x10),_0x3dc057=0x10,_0x1758ac=_0x372093(_0x18b4c8,_0x3dc057);_0xb27cdd='\x20'+_0x18b4c8/_0x1758ac+'/'+_0x3dc057/_0x1758ac;}return _0x865c00+'\x27-'+_0x559b10+'\x20'+_0xb27cdd+'\x22';}['formatFeetInchesValue0'](_0x29450b){const _0x3595a0=_0x381dd3,_0x26ffcf=Math[_0x3595a0(0xac)](_0x29450b/0xc),_0x417a7a=Math[_0x3595a0(0x7a)](_0x29450b%0xc*0xa)/0xa;return _0x26ffcf>0x0&&_0x417a7a>0x0?_0x26ffcf+'\x27-'+_0x417a7a+'\x22':_0x26ffcf>0x0?_0x26ffcf+'\x27':_0x417a7a+'\x22';}[_0x381dd3(0xe9)](_0x318765,_0x476678,_0x11f30d){const _0xe5fab2=_0x381dd3,_0x460343=this['unitConversion'][this[_0xe5fab2(0x77)]][_0x476678]/this[_0xe5fab2(0xbf)][this[_0xe5fab2(0x77)]][_0x11f30d];return _0x318765*_0x460343;}['getUnitCategory'](_0x3ef5cd){const _0x5624d5=_0x381dd3;for(const _0x57ba68 in this[_0x5624d5(0xfd)])if(this['units'][_0x57ba68][_0x5624d5(0xdf)](_0x3ef5cd))return _0x57ba68;return this[_0x5624d5(0xfd)][_0x5624d5(0xd4)]=this[_0x5624d5(0xfd)][_0x5624d5(0xd4)]||[],this[_0x5624d5(0xfd)][_0x5624d5(0xd4)][_0x5624d5(0x87)](_0x3ef5cd),this[_0x5624d5(0xbf)][_0x5624d5(0xd4)]=this[_0x5624d5(0xbf)]['Custom']||{},this[_0x5624d5(0xbf)][_0x5624d5(0xd4)][_0x3ef5cd]=0x1,_0x5624d5(0xd4);}['connectedCallback'](){const _0x181aff=_0x381dd3;this[_0x181aff(0x101)][_0x181aff(0xda)]('change',this[_0x181aff(0x79)][_0x181aff(0xb5)](this)),this[_0x181aff(0xdd)]=this[_0x181aff(0xae)]('unit')||'mm',this[_0x181aff(0x77)]=this[_0x181aff(0x9f)](this['unit']),this[_0x181aff(0xa3)]=this['hasAttribute']('show-unit-arrow')?this[_0x181aff(0xae)](_0x181aff(0xa9))==='true':this[_0x181aff(0x77)]!==_0x181aff(0xd4),this[_0x181aff(0xd3)]();}[_0x381dd3(0xa4)](){const _0x184e25=_0x381dd3;this[_0x184e25(0x101)][_0x184e25(0x8c)](_0x184e25(0x81),this[_0x184e25(0x79)][_0x184e25(0xb5)](this));}[_0x381dd3(0xe8)](_0x3e5aa9){const _0x265121=_0x381dd3;if(_0x3e5aa9[_0x265121(0xb0)][_0x265121(0xa5)](_0x265121(0xaa))){const _0x294bd4=this[_0x265121(0x101)][_0x265121(0x88)](_0x265121(0xdc));_0x294bd4&&(_0x294bd4[_0x265121(0xd5)](),_0x294bd4[_0x265121(0xf4)]());}}[_0x381dd3(0x79)](_0x39138d){const _0x5e6054=_0x381dd3;let _0x46d087=0x1,_0x34a23d=0x1,_0x1b51a1=0x0,_0x2a2123=0x0;if(_0x39138d['target']['tagName']===_0x5e6054(0xcd)){const _0x482c2b=_0x39138d['target'][_0x5e6054(0xde)];if(this['unitCategory']!==_0x5e6054(0xf5)){const _0x21b44=this[_0x5e6054(0xbf)][this[_0x5e6054(0x77)]][this[_0x5e6054(0xdd)]]/this[_0x5e6054(0xbf)][this[_0x5e6054(0x77)]][_0x482c2b];this['value']=this['value']*_0x21b44;}else console[_0x5e6054(0xe2)](_0x5e6054(0x98)+this[_0x5e6054(0x77)]),console['log']('unit:\x20'+this[_0x5e6054(0xdd)]),console[_0x5e6054(0xe2)]('newUnit:\x20'+_0x482c2b),_0x46d087=this[_0x5e6054(0xbf)][this[_0x5e6054(0x77)]][this['unit']]['c0'],_0x34a23d=this['unitConversion'][this[_0x5e6054(0x77)]][this['unit']]['c1'],_0x1b51a1=this[_0x5e6054(0xbf)][this[_0x5e6054(0x77)]][_0x482c2b]['c0'],_0x2a2123=this['unitConversion'][this[_0x5e6054(0x77)]][_0x482c2b]['c1'],this[_0x5e6054(0xde)]=(this[_0x5e6054(0xde)]*_0x46d087+_0x34a23d-_0x2a2123)/_0x1b51a1;this['unit']=_0x482c2b,this[_0x5e6054(0xd3)]();}this[_0x5e6054(0xb4)]();}[_0x381dd3(0xd2)](_0x1854c0){const _0x5f08bf=_0x381dd3;return Number[_0x5f08bf(0x102)](_0x1854c0)?_0x1854c0[_0x5f08bf(0x72)]():Math[_0x5f08bf(0xac)](_0x1854c0)!==0x0?_0x1854c0[_0x5f08bf(0x70)](this[_0x5f08bf(0xe1)])[_0x5f08bf(0xcb)](/0+$/,'')[_0x5f08bf(0xcb)](/\.$/,''):_0x1854c0[_0x5f08bf(0x7d)](0x3);}[_0x381dd3(0xd3)](){const _0x3d173=_0x381dd3,_0x136cb8=this['unit']===_0x3d173(0xc6)?_0x3d173(0x90):_0x3d173(0x9a);this[_0x3d173(0x101)][_0x3d173(0xf7)]=_0x3d173(0xb6)+(this['showUnitArrow']?_0x3d173(0xe7):_0x3d173(0xbd))+';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20'+(this[_0x3d173(0xa3)]?_0x3d173(0xe7):'none')+_0x3d173(0xab)+(this[_0x3d173(0xa3)]?_0x3d173(0xe7):_0x3d173(0xbd))+_0x3d173(0xf0)+_0x136cb8+_0x3d173(0x7b)+(this['unit']===_0x3d173(0xc6)?this[_0x3d173(0xc4)](this[_0x3d173(0xde)]):this['formatValue'](this['value']))+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select\x20class=\x22'+(this[_0x3d173(0xdd)]===_0x3d173(0xc6)?_0x3d173(0xfa):'')+_0x3d173(0xa1)+(this[_0x3d173(0xfd)][this[_0x3d173(0x77)]]||[this['unit']])['map'](_0x41d576=>_0x3d173(0xff)+_0x41d576+'\x22\x20'+(_0x41d576===this[_0x3d173(0xdd)]?_0x3d173(0xf3):'')+'>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x41d576+_0x3d173(0xb9))['join']('')+_0x3d173(0x94)+(this['showUnitArrow']&&this[_0x3d173(0x77)]!==_0x3d173(0xd4)?_0x3d173(0xb1)+this['e3dLogoUrl']+'\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x3d173(0xc3);const _0x2bc626=this['shadowRoot'][_0x3d173(0x88)](_0x3d173(0xaa)),_0x4601c3=this[_0x3d173(0x101)][_0x3d173(0x8d)](_0x3d173(0x80))[0x0];_0x2bc626&&_0x4601c3&&(_0x2bc626[_0x3d173(0xda)](_0x3d173(0xf2),()=>{const _0x406b1a=_0x3d173;this[_0x406b1a(0x86)]=setTimeout(()=>{const _0xe8acb8=_0x406b1a;_0x4601c3[_0xe8acb8(0x83)][_0xe8acb8(0xe0)]=_0xe8acb8(0x84);},0x3e8);}),_0x2bc626['addEventListener']('mouseout',()=>{const _0x22a5c6=_0x3d173;setTimeout(()=>{const _0x1c5790=_0x4fe6;_0x4601c3[_0x1c5790(0x83)][_0x1c5790(0xe0)]=_0x1c5790(0xbd);},0x7d0),clearTimeout(this[_0x22a5c6(0x86)]);}),_0x4601c3[_0x3d173(0xda)](_0x3d173(0x9e),()=>{setTimeout(()=>{const _0x245095=_0x4fe6;_0x4601c3['style'][_0x245095(0xe0)]=_0x245095(0xbd);},0x7d0);})),this[_0x3d173(0xb4)]();}[_0x381dd3(0xb4)](){const _0x548701=_0x381dd3,_0x777572=this[_0x548701(0x101)][_0x548701(0x88)]('select'),_0x118bb4=_0x777572[_0x548701(0x9b)][_0x777572['selectedIndex']],_0x379186=document[_0x548701(0xad)](_0x548701(0xba));_0x379186[_0x548701(0x83)][_0x548701(0xd8)]=_0x548701(0x76),_0x379186[_0x548701(0x83)][_0x548701(0xa0)]=_0x548701(0x90),_0x379186['style'][_0x548701(0xf1)]=getComputedStyle(_0x777572)[_0x548701(0xf1)],document[_0x548701(0x100)][_0x548701(0xce)](_0x379186),_0x379186['textContent']=_0x118bb4[_0x548701(0xc2)];const _0x13a8a5=_0x379186[_0x548701(0x8b)];document[_0x548701(0x100)]['removeChild'](_0x379186);const _0x23faa6=parseInt(getComputedStyle(_0x777572)[_0x548701(0xd1)])+parseInt(getComputedStyle(_0x777572)[_0x548701(0xec)]);_0x777572[_0x548701(0x83)][_0x548701(0xc0)]=this[_0x548701(0xa3)]?_0x13a8a5+_0x23faa6+0x16+'px':_0x13a8a5+_0x23faa6+0x4+'px',this[_0x548701(0xdd)]===_0x548701(0xc6)&&(_0x777572[_0x548701(0x83)][_0x548701(0xc0)]=_0x23faa6+0xc+'px');}}customElements[_0x381dd3(0x93)]('physical-quantity',_0x109ca1);class _0x52da01 extends _0x109ca1{}return customElements[_0x381dd3(0x93)](_0x381dd3(0xc5),_0x52da01),_0x109ca1;}));
|