physical-quantity 1.1.35 → 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 CHANGED
@@ -1,9 +1,10 @@
1
1
  # Physical Quantity Web Component
2
2
 
3
+ ![Physical Quantity to/from Feet-Inches (Gif Animation)](https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/PQE%2Fexamples%2FFt-In%20Demo.gif?alt=media&token=e8ee1bfd-e30c-4d81-93e9-7033ed0927bb)
4
+
3
5
  `physical-quantity`(alias: `uc-qty` for quantity with built-in unit conversion) is a web component that allows you to create and manipulate physical quantities with different units. It provides an input for the value and a dropdown for the unit, automatically converting between units in the same category.
4
6
 
5
7
  It is a new HTML element for expressing physical quantities, featuring self-contained unit conversion, a compact and clean UI, no redundant dual units, and seamless integration across all websites and platforms.
6
- ![Physical Quantity (Gif Animation)](https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/PQE%2Fexamples%2FPhysicalQuantityElementDemo3-ezgif.com.gif?alt=media&token=b910c493-e990-490b-bf4d-015a4d4c10d2)
7
8
 
8
9
  ## Features
9
10
 
@@ -15,6 +16,9 @@ It is a new HTML element for expressing physical quantities, featuring self-cont
15
16
  ## Demo: Physical Quantity element - No Unit Converter or Dual Units Needed
16
17
  [Live Demo](https://v2-docs.donwen.com/demo/products/quik2.html)
17
18
 
19
+
20
+ ![Physical Quantity (Gif Animation)](https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/PQE%2Fexamples%2FPhysicalQuantityElementDemo3-ezgif.com.gif?alt=media&token=b910c493-e990-490b-bf4d-015a4d4c10d2)
21
+
18
22
  [![Example 1 in UI](https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/PQE%2Fexamples%2FPhysicalQuantityElementExample1.png?alt=media&token=2aa81849-9299-4ba5-9f62-79b8604b814f)](https://jsfiddle.net/hithere/tz8ym4fh/100/embedded/result)
19
23
 
20
24
  [![Example 2 in UI](https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/PQE%2Fexamples%2FPhysicalQuantityElementExample2.png?alt=media&token=5c899acf-a04c-44b7-b8ac-b1740f308d40)](https://jsfiddle.net/hithere/tz8ym4fh/100/embedded/result)
@@ -31,7 +35,7 @@ npm install physical-quantity
31
35
  ### For Web Visitors
32
36
  The unit list displays available units for the physical quantity category. Users can easily switch between units to view the same quantity in different measurements.
33
37
 
34
- When hovering over the unit list, an icon appears, providing access to a comprehensive unit converter. This tool allows users to convert quantities across 50+ categories.
38
+ When hovering over the unit list, an icon appears, providing access to a comprehensive [Generic Unit Converter](https://v2-docs.donwen.com/daily-calculations/unit-converter.html) powered by [AutoCalcs](https://v2.donwen.com). This tool allows users to convert quantities across 60+ categories.
35
39
 
36
40
  ### For Developers
37
41
  After installation, you can import and use the physical-quantity component in your project.
@@ -47,6 +51,27 @@ Add the `physical-quantity` or `uc-qty` tag to your HTML file:
47
51
  ```html
48
52
  <physical-quantity value="25.4" unit="mm" decimal-places="4"></physical-quantity>
49
53
  <uc-qty value="25.4" unit="mm" decimal-places="4"></uc-qty>
54
+ <uc-qty value="25.4" unit="mm" show-unit-arrow="false"></uc-qty> Compact mode, no arrow.<br>
55
+ <physical-quantity value="25.4" unit="mxm" decimal-places="2"></physical-quantity> Non-exist unit, shown as is.<br>
56
+ <physical-quantity value="1500" unit="g"></physical-quantity> <br>
57
+ <physical-quantity value="1500" unit="psf"></physical-quantity> <br>
58
+ <h3>Box Size (No need of Unit Converter)</h3>
59
+ 137.16 cm x 137.16 cm x 91.44 cm (54 in. x 54 in. x 36 in.) <br>
60
+ <physical-quantity value="137.16" unit="cm"></physical-quantity>x
61
+ <physical-quantity value="137.16" unit="cm"></physical-quantity>x
62
+ <physical-quantity value="91.44" unit="cm"></physical-quantity><br>
63
+ <physical-quantity value="800" unit="kg/m³"></physical-quantity><br>
64
+ <physical-quantity value="800" unit="kg/m³" show-unit-arrow="false"></physical-quantity>Compact mode, no arrow.<br>
65
+ <uc-qty value="91" unit="cm"></uc-qty><br>
66
+ <uc-qty value="2" unit="minute"></uc-qty><br>
67
+ <uc-qty value="2" unit="A"></uc-qty> Default with arrow.<br>
68
+ <uc-qty value="2" unit="A" show-unit-arrow="false"></uc-qty>Compact mode, no arrow.<br>
69
+ <uc-qty value="37.778" unit="°C" show-unit-arrow="false"></uc-qty>Compact mode, no arrow.<br>
70
+ <uc-qty value="100" unit="°F"></uc-qty><br>
71
+ <uc-qty value="2'-3" unit="ft-in"></uc-qty>For Feet-Inches unit<br>
72
+ <physical-quantity value="2'-3 3/16" unit="ft-in" ></physical-quantity>
73
+ <physical-quantity value="2" unit="ft-in"></physical-quantity>
74
+ <physical-quantity value="2'-3" unit="ft-in" ></physical-quantity>
50
75
  ```
51
76
 
52
77
  ### Example - Linking the Code
@@ -92,7 +117,9 @@ Here's an example of how to use the component in an HTML file:
92
117
  The physical-quantity component supports the following attributes:
93
118
 
94
119
  - <ins>_value_</ins>: The initial value of the physical quantity. It can be any number.
95
- - <ins>_unit_</ins>: The initial unit of the physical quantity. It must be a valid unit within the supported unit category (e.g., mm, cm, m, in, ft for length).
120
+ - <ins>_unit_</ins>: The initial unit of the physical quantity.
121
+ When a valid unit within the supported unit categories (e.g., mm, cm, m, in, ft for length), unit conversion is automated;
122
+ When a unit provided is not in the library, it will show per the author's input, like a regular text input.
96
123
  - <ins>_decimal-places_</ins>: web author can specify the decimal-places depending on the magnitude of the quantity. Default to be 3.
97
124
  - <ins>_show-unit-arrow_</ins>: specify to show the downward arrow following the units list. Default to be true. When set to false, it is suitable when the author wants to show in a compact format.
98
125
 
@@ -101,14 +128,33 @@ Currently, the component supports the following categories and units:
101
128
  | Category | Unit | Description |
102
129
  |---|---|---|
103
130
  | Length | m |meter|
104
- | |km |kilometers|
131
+ | |km |kilometer|
105
132
  | |mm |millimeter|
106
133
  | |cm |centimeter|
107
134
  | |in |inch|
135
+ | |ft-in |foot-inch|
108
136
  | |ft |foot|
109
137
  | Mass | kg |kilogram|
110
138
  | | g |gram|
111
139
  | |lbm |pound mass|
140
+ | Time | s[second] ||
141
+ | | s||
142
+ | | minute||
143
+ | | h||
144
+ | | h[hour]||
145
+ | | day||
146
+ | | week||
147
+ | ElectricalCurrent | A ||
148
+ | | Ampere[amp]||
149
+ | | mA||
150
+ | | µA||
151
+ | | kA||
152
+ | | MA||
153
+ | | esu/s ||
154
+ | Temperature | °K ||
155
+ | | °C ||
156
+ | | °F ||
157
+ | | °Ra ||
112
158
  | Pressure/Stress | Pa ||
113
159
  | | kPa ||
114
160
  | | MPa ||
@@ -132,20 +178,13 @@ Currently, the component supports the following categories and units:
132
178
  | | g/mm³||
133
179
  | | lbm/ft³||
134
180
  | | lbm/in³||
135
- | Time | s[second] ||
136
- | | s||
137
- | | minute||
138
- | | h||
139
- | | h[hour]||
140
- | | day||
141
- | | week||
142
- | ElectricalCurrent | A ||
143
- | | Ampere[amp]||
144
- | | mA||
145
- | | µA||
146
- | | kA||
147
- | | MA||
148
- | | esu/s |
181
+ | Force | N||
182
+ | | kN||
183
+ | | MN||
184
+ | | kgf||
185
+ | | lb||
186
+ | | lbf||
187
+ | | kip[kilo pounds]||
149
188
  | more to update. | (feel free to send your request for other units & categories) ||
150
189
 
151
190
  ## License
@@ -157,6 +196,8 @@ Contributions are welcome! Please contact the developer for any bugs, features,
157
196
  ## Change Log
158
197
  | Version | Date | Description |
159
198
  |---|---|---|
199
+ | v1.1.41 |20240620| Added Force category.|
200
+ | v1.1.40 |20240619| Added *ft-in* (ie: Foot-Inch) in Length category.|
160
201
  | v1.1.35 |20240616| Added temperature category.|
161
202
  | v1.1.30 |20240615| Added "show-unit-arrow" prop to allow web author to create a compact UI; Unit width is now responsive to the chosen unit; Author can force init unit.|
162
203
  | v1.1.28 |20240610| Tooltip for unit list provides a link to the unit converter page for all unit categories. Added more categories.|
package/dist/pq.es.js CHANGED
@@ -1 +1 @@
1
- const _0x207244=_0x3b76;(function(_0x1b0fdb,_0x4e4903){const _0x3bc056=_0x3b76,_0x13a8fd=_0x1b0fdb();while(!![]){try{const _0x3e11c8=-parseInt(_0x3bc056(0x21e))/0x1*(parseInt(_0x3bc056(0x1f1))/0x2)+-parseInt(_0x3bc056(0x221))/0x3*(parseInt(_0x3bc056(0x223))/0x4)+-parseInt(_0x3bc056(0x1cf))/0x5*(-parseInt(_0x3bc056(0x1b6))/0x6)+-parseInt(_0x3bc056(0x1cc))/0x7*(parseInt(_0x3bc056(0x1ba))/0x8)+-parseInt(_0x3bc056(0x1d4))/0x9+parseInt(_0x3bc056(0x1ad))/0xa*(parseInt(_0x3bc056(0x1bd))/0xb)+parseInt(_0x3bc056(0x210))/0xc;if(_0x3e11c8===_0x4e4903)break;else _0x13a8fd['push'](_0x13a8fd['shift']());}catch(_0x20fc19){_0x13a8fd['push'](_0x13a8fd['shift']());}}}(_0x2081,0x621aa));const s=0.45359237,o=25.4/0x3e8,l=0xc*o,m=0x18bcd,h=133.322387415,p={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x207244(0x203)],'Pressure':['Pa',_0x207244(0x1b1),_0x207244(0x1e3),_0x207244(0x1d0),'bar',_0x207244(0x214),'atm',_0x207244(0x1f5),_0x207244(0x1da),_0x207244(0x1dd),_0x207244(0x202),_0x207244(0x1e0),_0x207244(0x1ef),'psf',_0x207244(0x1fe),'ksi','ksi[kip/in²]'],'Density':[_0x207244(0x1e8),_0x207244(0x1ca),_0x207244(0x219),_0x207244(0x1dc),'lbm/ft³',_0x207244(0x207)],'Time':['s[second]','s',_0x207244(0x212),'h','h[hour]',_0x207244(0x1c2),_0x207244(0x1fb)],'ElectricalCurrent':['A',_0x207244(0x1fc),'mA','µA','kA','MA',_0x207244(0x20a)],'Temperature':['°K','°C','°F',_0x207244(0x1ed)]},g={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':o,'ft':l},'Mass':{'kg':0x1,'g':0.001,'lbm':s},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':m,'mm\x20HG':h,'cm\x20HG':h*0xa,'in\x20HG':h*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':o*0x3e8*9.80665,'psf':s*9.80665/Math['pow'](l,0x2),'psi':s*9.80665/Math[_0x207244(0x1fa)](o,0x2),'ksi':s*9.80665/Math[_0x207244(0x1fa)](o,0x2)*0x3e8,'ksi[kip/in²]':s*9.80665/Math[_0x207244(0x1fa)](o,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x207244(0x1fa)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0x207244(0x1fa)](0.001,0x3),'lbm/ft³':s/Math[_0x207244(0x1fa)](l,0x3),'lbm/in³':s/Math[_0x207244(0x1fa)](o,0x3)},'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}}};class u extends HTMLElement{constructor(){const _0x528e18=_0x207244;super(),this[_0x528e18(0x205)]({'mode':_0x528e18(0x1aa)}),this[_0x528e18(0x1bc)]=0x0,this['tooltipTimeout']=null,this[_0x528e18(0x1b8)]=0x3,this[_0x528e18(0x1db)]=_0x528e18(0x1b7),this[_0x528e18(0x1cb)]=p,this[_0x528e18(0x20f)]=g,this[_0x528e18(0x1ee)]=!this[_0x528e18(0x21c)]('show-unit-arrow')||this[_0x528e18(0x1e9)]('show-unit-arrow')===_0x528e18(0x1d3),this['render']();}static get[_0x207244(0x1e4)](){const _0x35addf=_0x207244;return[_0x35addf(0x1bc),_0x35addf(0x215),'decimal-places',_0x35addf(0x1c7)];}['attributeChangedCallback'](_0x20698e,_0x5c73a2,_0x80a2ed){const _0x5d45cf=_0x207244;_0x20698e===_0x5d45cf(0x1bc)?this[_0x5d45cf(0x1bc)]=parseFloat(_0x80a2ed):_0x20698e==='unit'?(this['unit']=_0x80a2ed,this[_0x5d45cf(0x1c3)]=this[_0x5d45cf(0x21d)](_0x80a2ed)):_0x20698e===_0x5d45cf(0x213)?this[_0x5d45cf(0x1b8)]=parseInt(_0x80a2ed)||0x3:_0x20698e===_0x5d45cf(0x1c7)&&(this[_0x5d45cf(0x1ee)]=_0x80a2ed===null||_0x80a2ed===_0x5d45cf(0x1d3)),this['render']();}[_0x207244(0x21d)](_0x41dfdd){const _0x273d81=_0x207244;for(const _0x587467 in this[_0x273d81(0x1cb)])if(this[_0x273d81(0x1cb)][_0x587467][_0x273d81(0x1be)](_0x41dfdd))return _0x587467;return this['units']['Custom']=this[_0x273d81(0x1cb)][_0x273d81(0x21f)]||[],this['units'][_0x273d81(0x21f)][_0x273d81(0x1d2)](_0x41dfdd),this[_0x273d81(0x20f)][_0x273d81(0x21f)]=this[_0x273d81(0x20f)][_0x273d81(0x21f)]||{},this[_0x273d81(0x20f)]['Custom'][_0x41dfdd]=0x1,_0x273d81(0x21f);}[_0x207244(0x1f2)](){const _0x5a9911=_0x207244;this[_0x5a9911(0x1ea)][_0x5a9911(0x1d5)]('change',this[_0x5a9911(0x1ce)][_0x5a9911(0x1ac)](this)),this['unit']=this[_0x5a9911(0x1e9)](_0x5a9911(0x215))||'mm',this[_0x5a9911(0x1c3)]=this['getUnitCategory'](this['unit']),this[_0x5a9911(0x1ee)]=this['hasAttribute'](_0x5a9911(0x1c7))?this[_0x5a9911(0x1e9)](_0x5a9911(0x1c7))==='true':this[_0x5a9911(0x1c3)]!==_0x5a9911(0x21f),this['render']();}['disconnectedCallback'](){const _0x317dc9=_0x207244;this['shadowRoot']['removeEventListener'](_0x317dc9(0x1b4),this[_0x317dc9(0x1ce)][_0x317dc9(0x1ac)](this));}[_0x207244(0x20e)](_0x1a1c3c){const _0x3d6906=_0x207244;if(_0x1a1c3c['target'][_0x3d6906(0x1c5)](_0x3d6906(0x1f3))){const _0x3d0d2b=this[_0x3d6906(0x1ea)]['querySelector'](_0x3d6906(0x1f0));_0x3d0d2b&&(_0x3d0d2b[_0x3d6906(0x211)](),_0x3d0d2b[_0x3d6906(0x220)]());}}[_0x207244(0x1ce)](_0x27df3c){const _0x338c96=_0x207244;let _0x4a38f2=0x1,_0x128b45=0x1,_0x5f5d55=0x0,_0x374d69=0x0;if(_0x27df3c['target'][_0x338c96(0x1f7)]===_0x338c96(0x1f6)){const _0x40e431=_0x27df3c['target'][_0x338c96(0x1bc)];if(this[_0x338c96(0x1c3)]!==_0x338c96(0x1f4)){const _0xf0e3e9=this['unitConversion'][this[_0x338c96(0x1c3)]][this[_0x338c96(0x215)]]/this[_0x338c96(0x20f)][this['unitCategory']][_0x40e431];this[_0x338c96(0x1bc)]=this[_0x338c96(0x1bc)]*_0xf0e3e9;}else console[_0x338c96(0x20d)](_0x338c96(0x216)+this['unitCategory']),console['log']('unit:\x20'+this[_0x338c96(0x215)]),console[_0x338c96(0x20d)](_0x338c96(0x1b3)+_0x40e431),_0x4a38f2=this[_0x338c96(0x20f)][this[_0x338c96(0x1c3)]][this[_0x338c96(0x215)]]['c0'],_0x128b45=this[_0x338c96(0x20f)][this['unitCategory']][this[_0x338c96(0x215)]]['c1'],_0x5f5d55=this['unitConversion'][this[_0x338c96(0x1c3)]][_0x40e431]['c0'],_0x374d69=this[_0x338c96(0x20f)][this['unitCategory']][_0x40e431]['c1'],this['value']=(this[_0x338c96(0x1bc)]*_0x4a38f2+_0x128b45-_0x374d69)/_0x5f5d55;this[_0x338c96(0x215)]=_0x40e431,this[_0x338c96(0x1bb)]();}this[_0x338c96(0x1f9)]();}[_0x207244(0x206)](_0x1173eb){const _0x303655=_0x207244;return Number['isInteger'](_0x1173eb)?_0x1173eb[_0x303655(0x1ec)]():Math[_0x303655(0x1d8)](_0x1173eb)!==0x0?_0x1173eb[_0x303655(0x1e5)](this[_0x303655(0x1b8)])[_0x303655(0x1d7)](/0+$/,'')[_0x303655(0x1d7)](/\.$/,''):_0x1173eb[_0x303655(0x1ae)](0x3);}[_0x207244(0x1bb)](){const _0x14ca7a=_0x207244;this[_0x14ca7a(0x1ea)][_0x14ca7a(0x20c)]=_0x14ca7a(0x1e6)+(this[_0x14ca7a(0x1ee)]?_0x14ca7a(0x1fd):_0x14ca7a(0x1e2))+_0x14ca7a(0x21b)+(this['showUnitArrow']?_0x14ca7a(0x1fd):_0x14ca7a(0x1e2))+_0x14ca7a(0x1df)+(this[_0x14ca7a(0x1ee)]?'auto':_0x14ca7a(0x1e2))+_0x14ca7a(0x218)+this['formatValue'](this[_0x14ca7a(0x1bc)])+_0x14ca7a(0x1c9)+(this['units'][this[_0x14ca7a(0x1c3)]]||[this[_0x14ca7a(0x215)]])['map'](_0x3e00fe=>'<option\x20value=\x22'+_0x3e00fe+'\x22\x20'+(_0x3e00fe===this[_0x14ca7a(0x215)]?_0x14ca7a(0x1ff):'')+_0x14ca7a(0x1eb)+_0x3e00fe+'</option>')['join']('')+_0x14ca7a(0x204)+(this['showUnitArrow']&&this['unitCategory']!==_0x14ca7a(0x21f)?_0x14ca7a(0x1d6)+this[_0x14ca7a(0x1db)]+_0x14ca7a(0x1de):'')+_0x14ca7a(0x200);const _0x21ebd7=this['shadowRoot'][_0x14ca7a(0x1e7)](_0x14ca7a(0x1f3)),_0x101498=this[_0x14ca7a(0x1ea)][_0x14ca7a(0x1b2)](_0x14ca7a(0x1cd))[0x0];_0x21ebd7&&_0x101498&&(_0x21ebd7['addEventListener'](_0x14ca7a(0x1bf),()=>{const _0x53f429=_0x14ca7a;this[_0x53f429(0x1e1)]=setTimeout(()=>{const _0x582cf6=_0x53f429;_0x101498[_0x582cf6(0x1d1)]['display']='block';},0x3e8);}),_0x21ebd7[_0x14ca7a(0x1d5)](_0x14ca7a(0x222),()=>{setTimeout(()=>{const _0x12934d=_0x3b76;_0x101498[_0x12934d(0x1d1)][_0x12934d(0x1b0)]=_0x12934d(0x1e2);},0x7d0),clearTimeout(this['tooltipTimeout']);}),_0x101498[_0x14ca7a(0x1d5)](_0x14ca7a(0x222),()=>{setTimeout(()=>{const _0x4600f2=_0x3b76;_0x101498[_0x4600f2(0x1d1)][_0x4600f2(0x1b0)]=_0x4600f2(0x1e2);},0x7d0);})),this[_0x14ca7a(0x1f9)]();}[_0x207244(0x1f9)](){const _0x4f4063=_0x207244,_0x51d799=this[_0x4f4063(0x1ea)]['querySelector']('select'),_0x2a16ef=_0x51d799[_0x4f4063(0x1c8)][_0x51d799['selectedIndex']],_0x444169=document[_0x4f4063(0x1c6)](_0x4f4063(0x208));_0x444169[_0x4f4063(0x1d1)]['position']=_0x4f4063(0x1f8),_0x444169[_0x4f4063(0x1d1)][_0x4f4063(0x1c1)]=_0x4f4063(0x1c0),_0x444169[_0x4f4063(0x1d1)]['font']=getComputedStyle(_0x51d799)['font'],document['body'][_0x4f4063(0x1b5)](_0x444169),_0x444169[_0x4f4063(0x201)]=_0x2a16ef[_0x4f4063(0x1d9)];const _0x35a334=_0x444169[_0x4f4063(0x217)];document[_0x4f4063(0x1ab)][_0x4f4063(0x1b9)](_0x444169);const _0x5015f6=parseInt(getComputedStyle(_0x51d799)[_0x4f4063(0x209)])+parseInt(getComputedStyle(_0x51d799)[_0x4f4063(0x21a)]);_0x51d799[_0x4f4063(0x1d1)][_0x4f4063(0x1c4)]=this[_0x4f4063(0x1ee)]?_0x35a334+_0x5015f6+0x16+'px':_0x35a334+_0x5015f6+0x4+'px';}}customElements[_0x207244(0x20b)](_0x207244(0x1af),u);class C extends u{}function _0x3b76(_0x1f4b6f,_0x87f8e5){const _0x20815c=_0x2081();return _0x3b76=function(_0x3b7696,_0x63fa72){_0x3b7696=_0x3b7696-0x1aa;let _0x233aa7=_0x20815c[_0x3b7696];return _0x233aa7;},_0x3b76(_0x1f4b6f,_0x87f8e5);}customElements[_0x207244(0x20b)]('uc-qty',C);function _0x2081(){const _0x3f8d3f=['GPa','style','push','true','5884155TrCcCb','addEventListener','\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','replace','floor','text','cm\x20HG','e3dLogoUrl','g/mm³','in\x20HG','\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',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','m\x20W.C.','tooltipTimeout','none','MPa','observedAttributes','toFixed','\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','querySelector','kg/m³','getAttribute','shadowRoot','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toString','°Ra','showUnitArrow','in\x20W.C.','select','120110ExrFrT','connectedCallback','.unit-container','Temperature','mm\x20HG','SELECT','tagName','absolute','updateDropdownWidth','pow','week','Ampere[amp]','auto','psi','selected','\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','textContent','mm\x20W.C.','lbm','\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','attachShadow','formatValue','lbm/in³','span','paddingLeft','esu/s','define','innerHTML','log','handleArrowClick','unitConversion','15409008BEaadl','focus','minute','decimal-places','mbar','unit','category:\x20','offsetWidth',';\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.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>','g/cm³','paddingRight',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','hasAttribute','getUnitCategory','2fUzjIF','Custom','click','187593ofDomY','mouseout','8eZqCSJ','open','body','bind','190Etbgcm','toPrecision','physical-quantity','display','kPa','querySelectorAll','newUnit:\x20','change','appendChild','1008372XfXCOI','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','decimalPlaces','removeChild','208NfHdzF','render','value','249513uvGucb','includes','mouseover','hidden','visibility','day','unitCategory','width','closest','createElement','show-unit-arrow','options','</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>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','kg/L','units','156779LcEgDU','.tooltip','handleUnitChange','5tNUhnA'];_0x2081=function(){return _0x3f8d3f;};return _0x2081();}export{u as default};
1
+ const _0x5f1701=_0x1e4f;(function(_0x5c0f6b,_0x39a0db){const _0x22dbf2=_0x1e4f,_0x2d320a=_0x5c0f6b();while(!![]){try{const _0x2bc8fd=-parseInt(_0x22dbf2(0x1a5))/0x1+parseInt(_0x22dbf2(0x1b2))/0x2*(-parseInt(_0x22dbf2(0x1da))/0x3)+-parseInt(_0x22dbf2(0x206))/0x4+parseInt(_0x22dbf2(0x1fe))/0x5*(parseInt(_0x22dbf2(0x236))/0x6)+parseInt(_0x22dbf2(0x1de))/0x7+-parseInt(_0x22dbf2(0x228))/0x8*(-parseInt(_0x22dbf2(0x223))/0x9)+parseInt(_0x22dbf2(0x1cb))/0xa*(parseInt(_0x22dbf2(0x20d))/0xb);if(_0x2bc8fd===_0x39a0db)break;else _0x2d320a['push'](_0x2d320a['shift']());}catch(_0x2c9a39){_0x2d320a['push'](_0x2d320a['shift']());}}}(_0x25cc,0xd8348));const u=0.45359237,d=25.4/0x3e8,p=0xc*d,I=0x18bcd,f=133.322387415,C={'Length':['m','km','cm','mm','in',_0x5f1701(0x1d8),'ft'],'Mass':['g','kg',_0x5f1701(0x200)],'Time':[_0x5f1701(0x1f9),'s',_0x5f1701(0x1ba),'h',_0x5f1701(0x21a),'day',_0x5f1701(0x1c9)],'ElectricalCurrent':['A',_0x5f1701(0x204),'mA','µA','kA','MA',_0x5f1701(0x231)],'Temperature':['°K','°C','°F','°Ra'],'Pressure':['Pa','kPa',_0x5f1701(0x1e9),_0x5f1701(0x222),'bar',_0x5f1701(0x1b3),'atm',_0x5f1701(0x233),_0x5f1701(0x1c4),_0x5f1701(0x1cf),_0x5f1701(0x1ac),_0x5f1701(0x1b1),'in\x20W.C.',_0x5f1701(0x1bf),_0x5f1701(0x1fb),_0x5f1701(0x1fc),_0x5f1701(0x21e)],'Density':[_0x5f1701(0x1eb),_0x5f1701(0x20a),_0x5f1701(0x1af),_0x5f1701(0x205),_0x5f1701(0x220),_0x5f1701(0x219)],'Force':['N','kN','MN',_0x5f1701(0x210),'lb',_0x5f1701(0x1ec),'kip[kilo\x20pound]']},y={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':d,'ft-in':d,'ft':p},'Mass':{'kg':0x1,'g':0.001,'lbm':u},'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':I,'mm\x20HG':f,'cm\x20HG':f*0xa,'in\x20HG':f*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':d*0x3e8*9.80665,'psf':u*9.80665/Math[_0x5f1701(0x1e8)](p,0x2),'psi':u*9.80665/Math['pow'](d,0x2),'ksi':u*9.80665/Math[_0x5f1701(0x1e8)](d,0x2)*0x3e8,'ksi[kip/in²]':u*9.80665/Math[_0x5f1701(0x1e8)](d,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x5f1701(0x1e8)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0x5f1701(0x1e8)](0.001,0x3),'lbm/ft³':u/Math[_0x5f1701(0x1e8)](p,0x3),'lbm/in³':u/Math[_0x5f1701(0x1e8)](d,0x3)},'Force':{'N':0x1,'kN':0x3e8,'MN':0xf4240,'kgf':9.80665,'lb':u*9.80665,'lbf':u*9.80665,'kip[kilo\x20pound]':0x3e8*u*9.80665}};class v extends HTMLElement{constructor(){const _0x5ac327=_0x5f1701;super(),this[_0x5ac327(0x22b)]({'mode':'open'}),this[_0x5ac327(0x1ce)]=C,this[_0x5ac327(0x207)]=y,this['unit']=this['getAttribute'](_0x5ac327(0x1ea))||'mm',this[_0x5ac327(0x215)]=this['getUnitCategory'](this['unit']),this[_0x5ac327(0x1ab)]=this[_0x5ac327(0x1a9)](_0x5ac327(0x218)),this['unit']===_0x5ac327(0x1d8)?this[_0x5ac327(0x218)]=this[_0x5ac327(0x1bd)](this[_0x5ac327(0x1ab)]):this[_0x5ac327(0x218)]=parseFloat(this[_0x5ac327(0x1ab)]),this['tooltipTimeout']=null,this[_0x5ac327(0x201)]=0x3,this['e3dLogoUrl']=_0x5ac327(0x1a8),this['units']=C,this[_0x5ac327(0x207)]=y,this[_0x5ac327(0x1bb)]=!this[_0x5ac327(0x1b7)](_0x5ac327(0x1c1))||this['getAttribute'](_0x5ac327(0x1c1))===_0x5ac327(0x1c6),this[_0x5ac327(0x229)]();}static get[_0x5f1701(0x1b9)](){const _0x38414d=_0x5f1701;return[_0x38414d(0x218),_0x38414d(0x1ea),_0x38414d(0x1b5),_0x38414d(0x1c1)];}['attributeChangedCallback'](_0xef4220,_0x238077,_0x30f062){const _0x112976=_0x5f1701;_0xef4220==='value'?(this['inputValue']=_0x30f062,this[_0x112976(0x1ea)]===_0x112976(0x1d8)?this['value']=this[_0x112976(0x1bd)](_0x30f062):this[_0x112976(0x218)]=parseFloat(_0x30f062)):_0xef4220===_0x112976(0x1ea)?(this[_0x112976(0x1ea)]=_0x30f062,this[_0x112976(0x215)]=this['getUnitCategory'](_0x30f062),this['unit']==='ft-in'?this[_0x112976(0x218)]=this[_0x112976(0x1bd)](this[_0x112976(0x1ab)]):_0x238077==='ft-in'&&(this['value']=this['convertToNewUnit'](this['value'],'in',this[_0x112976(0x1ea)]))):_0xef4220===_0x112976(0x1b5)?this[_0x112976(0x201)]=parseInt(_0x30f062)||0x3:_0xef4220===_0x112976(0x1c1)&&(this[_0x112976(0x1bb)]=_0x30f062===null||_0x30f062===_0x112976(0x1c6)),this[_0x112976(0x229)]();}[_0x5f1701(0x1bd)](_0x4836cb){const _0x2e2cfc=_0x5f1701,_0x38c70f=/(\d+)\'(\s*-\s*)?(\d+)?(\s+)?(\d+)?\/?(\d+)?/,_0x71a9c6=/(\d+)\'/,_0x4c0718=/(\d+)/;let _0xc278f6=_0x4836cb[_0x2e2cfc(0x212)](_0x38c70f);if(_0xc278f6){const _0x3daed6=parseInt(_0xc278f6[0x1])||0x0,_0xcc7a92=parseInt(_0xc278f6[0x3])||0x0,_0x2f9439=parseInt(_0xc278f6[0x5])||0x0,_0x25a8be=parseInt(_0xc278f6[0x6])||0x1;return this['calculateTotalInches'](_0x3daed6,_0xcc7a92,_0x2f9439,_0x25a8be);}if(_0xc278f6=_0x4836cb[_0x2e2cfc(0x212)](_0x71a9c6),_0xc278f6){const _0x42b8fd=parseInt(_0xc278f6[0x1])||0x0;return this['calculateTotalInches'](_0x42b8fd,0x0,0x0,0x1);}if(_0xc278f6=_0x4836cb[_0x2e2cfc(0x212)](_0x4c0718),_0xc278f6){const _0x403b86=parseInt(_0xc278f6[0x1])||0x0;return this[_0x2e2cfc(0x202)](0x0,_0x403b86,0x0,0x1);}return parseFloat(_0x4836cb);}[_0x5f1701(0x202)](_0x56ed77,_0x4b77c4,_0x431377,_0x2fcf20){return _0x56ed77*0xc+_0x4b77c4+_0x431377/_0x2fcf20;}[_0x5f1701(0x22a)](_0x517fc7,_0x3ec476=_0x5f1701(0x21c)){const _0x9c184e=_0x5f1701;if(_0x517fc7<0x0)return'-'+formatFeetInchesValue(-_0x517fc7);const _0x1bd9de=parseInt(_0x3ec476[_0x9c184e(0x1fd)]('/')[0x1][_0x9c184e(0x1d0)]('\x22',''));let _0x4a6040=Math[_0x9c184e(0x1bc)](_0x517fc7/0xc),_0x757ae6=Math['floor'](_0x517fc7%0xc);const _0x1747a2=_0x517fc7-Math[_0x9c184e(0x1bc)](_0x517fc7);let _0x45ff6f='';if(_0x1747a2>0x0&&_0x3ec476!==0x0){let _0x59de4b=Math[_0x9c184e(0x1d2)](_0x1747a2*_0x1bd9de);const _0x5602d8=(_0x3b8051,_0x45e4fd)=>_0x45e4fd?_0x5602d8(_0x45e4fd,_0x3b8051%_0x45e4fd):_0x3b8051,_0x2e4611=_0x5602d8(_0x59de4b,_0x1bd9de);_0x45ff6f='\x20'+_0x59de4b/_0x2e4611+'/'+_0x1bd9de/_0x2e4611,_0x45ff6f[_0x9c184e(0x216)]()===_0x9c184e(0x232)&&(_0x757ae6++,_0x757ae6>=0xc&&(_0x4a6040++,_0x757ae6-=0xc),_0x45ff6f='');}let _0x4a62dc='';return _0x4a6040>0x0&&(_0x4a62dc+=_0x4a6040+'\x27'),_0x4a6040>0x0&&(_0x757ae6>0x0||_0x45ff6f!=='')&&(_0x4a62dc+='-'),_0x757ae6>0x0&&(_0x4a62dc+=''+_0x757ae6),_0x45ff6f!==''&&(_0x4a62dc+=_0x45ff6f),(_0x757ae6>0x0||_0x45ff6f!=='')&&(_0x4a62dc+='\x22'),_0x4a62dc[_0x9c184e(0x216)]();}[_0x5f1701(0x1b8)](_0x57c958){const _0x1d726e=_0x5f1701;debugger;if(_0x57c958<0x0)return'-'+formatFeetInchesValue(-_0x57c958);const _0xf8d7ff=Math[_0x1d726e(0x1bc)](_0x57c958/0xc),_0x585228=Math[_0x1d726e(0x1bc)](_0x57c958%0xc),_0x1ab631=_0x57c958-Math[_0x1d726e(0x1bc)](_0x57c958);let _0x615ffc='';if(_0x1ab631>0x0){const _0x81a9a3=(_0x3ce8f3,_0x39064d)=>_0x39064d?_0x81a9a3(_0x39064d,_0x3ce8f3%_0x39064d):_0x3ce8f3,_0xbd136e=Math[_0x1d726e(0x1d2)](_0x1ab631*0x10),_0x384d5f=0x10,_0x2346f7=_0x81a9a3(_0xbd136e,_0x384d5f);_0x615ffc=_0xbd136e/_0x2346f7+'/'+_0x384d5f/_0x2346f7;}return _0x585228===0x0?_0xf8d7ff+'\x27-'+_0x615ffc+'\x22':_0xf8d7ff+'\x27-'+_0x585228+'\x20'+_0x615ffc+'\x22';}['formatFeetInchesValue1'](_0x2dc18d){const _0x539b21=_0x5f1701;debugger;const _0x6a3113=Math[_0x539b21(0x1bc)](_0x2dc18d/0xc),_0x3ae195=Math[_0x539b21(0x1bc)](_0x2dc18d%0xc),_0x4ac5ff=_0x2dc18d%0x1;let _0x5b35f2='';if(_0x4ac5ff>0x0){const _0x384912=(_0x28d2a4,_0x5c5760)=>_0x5c5760?_0x384912(_0x5c5760,_0x28d2a4%_0x5c5760):_0x28d2a4,_0x10dcf8=Math[_0x539b21(0x1d2)](_0x4ac5ff*0x10),_0x17de68=0x10,_0x5d798e=_0x384912(_0x10dcf8,_0x17de68);_0x5b35f2='\x20'+_0x10dcf8/_0x5d798e+'/'+_0x17de68/_0x5d798e;}return _0x6a3113+'\x27-'+_0x3ae195+'\x20'+_0x5b35f2+'\x22';}[_0x5f1701(0x1cd)](_0x38538e){const _0x4c8ba1=_0x5f1701,_0x4632d5=Math[_0x4c8ba1(0x1bc)](_0x38538e/0xc),_0x3e7e0d=Math[_0x4c8ba1(0x1d2)](_0x38538e%0xc*0xa)/0xa;return _0x4632d5>0x0&&_0x3e7e0d>0x0?_0x4632d5+'\x27-'+_0x3e7e0d+'\x22':_0x4632d5>0x0?_0x4632d5+'\x27':_0x3e7e0d+'\x22';}[_0x5f1701(0x1e7)](_0x154976,_0xc6dbcb,_0x11307b){const _0x447538=this['unitConversion'][this['unitCategory']][_0xc6dbcb]/this['unitConversion'][this['unitCategory']][_0x11307b];return _0x154976*_0x447538;}[_0x5f1701(0x209)](_0x5418d7){const _0x335342=_0x5f1701;for(const _0x3797ef in this['units'])if(this['units'][_0x3797ef]['includes'](_0x5418d7))return _0x3797ef;return this[_0x335342(0x1ce)][_0x335342(0x1f5)]=this[_0x335342(0x1ce)][_0x335342(0x1f5)]||[],this[_0x335342(0x1ce)][_0x335342(0x1f5)][_0x335342(0x22e)](_0x5418d7),this[_0x335342(0x207)]['Custom']=this[_0x335342(0x207)][_0x335342(0x1f5)]||{},this['unitConversion'][_0x335342(0x1f5)][_0x5418d7]=0x1,_0x335342(0x1f5);}[_0x5f1701(0x1f6)](){const _0x3f1f7e=_0x5f1701;this[_0x3f1f7e(0x1dc)]['addEventListener'](_0x3f1f7e(0x20e),this[_0x3f1f7e(0x1f8)][_0x3f1f7e(0x1e6)](this)),this[_0x3f1f7e(0x1ea)]=this[_0x3f1f7e(0x1a9)](_0x3f1f7e(0x1ea))||'mm',this['unitCategory']=this['getUnitCategory'](this[_0x3f1f7e(0x1ea)]),this[_0x3f1f7e(0x1bb)]=this[_0x3f1f7e(0x1b7)](_0x3f1f7e(0x1c1))?this[_0x3f1f7e(0x1a9)](_0x3f1f7e(0x1c1))===_0x3f1f7e(0x1c6):this[_0x3f1f7e(0x215)]!=='Custom',this[_0x3f1f7e(0x229)]();}[_0x5f1701(0x1f7)](){const _0x1be525=_0x5f1701;this[_0x1be525(0x1dc)][_0x1be525(0x214)](_0x1be525(0x20e),this[_0x1be525(0x1f8)]['bind'](this));}[_0x5f1701(0x1c7)](_0x723b1c){const _0x39e243=_0x5f1701;if(_0x723b1c['target'][_0x39e243(0x1b4)](_0x39e243(0x1e3))){const _0x19a7e6=this[_0x39e243(0x1dc)][_0x39e243(0x1e4)]('select');_0x19a7e6&&(_0x19a7e6[_0x39e243(0x22f)](),_0x19a7e6[_0x39e243(0x1ad)]());}}[_0x5f1701(0x1f8)](_0xd78d76){const _0x188420=_0x5f1701;let _0x31317e=0x1,_0x4e0c67=0x1,_0x2d46c2=0x0,_0x1ae01d=0x0;if(_0xd78d76[_0x188420(0x1db)][_0x188420(0x1f2)]===_0x188420(0x1c2)){const _0x48c507=_0xd78d76[_0x188420(0x1db)][_0x188420(0x218)];if(this[_0x188420(0x215)]!==_0x188420(0x1d6)){const _0xd62d61=this[_0x188420(0x207)][this[_0x188420(0x215)]][this[_0x188420(0x1ea)]]/this['unitConversion'][this[_0x188420(0x215)]][_0x48c507];this[_0x188420(0x218)]=this['value']*_0xd62d61;}else console[_0x188420(0x1e5)](_0x188420(0x1b6)+this[_0x188420(0x215)]),console[_0x188420(0x1e5)](_0x188420(0x1e2)+this['unit']),console[_0x188420(0x1e5)](_0x188420(0x1be)+_0x48c507),_0x31317e=this[_0x188420(0x207)][this[_0x188420(0x215)]][this['unit']]['c0'],_0x4e0c67=this[_0x188420(0x207)][this[_0x188420(0x215)]][this['unit']]['c1'],_0x2d46c2=this[_0x188420(0x207)][this[_0x188420(0x215)]][_0x48c507]['c0'],_0x1ae01d=this[_0x188420(0x207)][this[_0x188420(0x215)]][_0x48c507]['c1'],this[_0x188420(0x218)]=(this[_0x188420(0x218)]*_0x31317e+_0x4e0c67-_0x1ae01d)/_0x2d46c2;this[_0x188420(0x1ea)]=_0x48c507,this['render']();}this[_0x188420(0x1d5)]();}[_0x5f1701(0x1c5)](_0xb51bf4){const _0x5bf396=_0x5f1701;return Number[_0x5bf396(0x1c8)](_0xb51bf4)?_0xb51bf4[_0x5bf396(0x1d4)]():Math[_0x5bf396(0x1bc)](_0xb51bf4)!==0x0?_0xb51bf4['toFixed'](this[_0x5bf396(0x201)])[_0x5bf396(0x1d0)](/0+$/,'')['replace'](/\.$/,''):_0xb51bf4[_0x5bf396(0x227)](0x3);}[_0x5f1701(0x229)](){const _0x19ea36=_0x5f1701,_0x596b6a=this[_0x19ea36(0x1ea)]==='ft-in'?_0x19ea36(0x226):_0x19ea36(0x1f4);this[_0x19ea36(0x1dc)][_0x19ea36(0x211)]=_0x19ea36(0x1f3)+(this[_0x19ea36(0x1bb)]?_0x19ea36(0x21f):_0x19ea36(0x1ca))+_0x19ea36(0x1f1)+(this[_0x19ea36(0x1bb)]?_0x19ea36(0x21f):_0x19ea36(0x1ca))+_0x19ea36(0x1c3)+(this[_0x19ea36(0x1bb)]?_0x19ea36(0x21f):_0x19ea36(0x1ca))+_0x19ea36(0x1d9)+_0x596b6a+_0x19ea36(0x213)+(this[_0x19ea36(0x1ea)]===_0x19ea36(0x1d8)?this[_0x19ea36(0x22a)](this[_0x19ea36(0x218)]):this[_0x19ea36(0x1c5)](this[_0x19ea36(0x218)]))+_0x19ea36(0x234)+(this[_0x19ea36(0x1ea)]===_0x19ea36(0x1d8)?'ft-in-hidden':'')+_0x19ea36(0x1f0)+(this[_0x19ea36(0x1ce)][this[_0x19ea36(0x215)]]||[this['unit']])[_0x19ea36(0x1d7)](_0x195ce2=>_0x19ea36(0x20f)+_0x195ce2+'\x22\x20'+(_0x195ce2===this[_0x19ea36(0x1ea)]?_0x19ea36(0x20b):'')+'>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x195ce2+_0x19ea36(0x225))[_0x19ea36(0x217)]('')+_0x19ea36(0x1dd)+(this[_0x19ea36(0x1bb)]&&this['unitCategory']!==_0x19ea36(0x1f5)?'\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'+this[_0x19ea36(0x224)]+_0x19ea36(0x20c):'')+_0x19ea36(0x1ed);const _0x3f4683=this[_0x19ea36(0x1dc)]['querySelector'](_0x19ea36(0x1e3)),_0x2aa479=this[_0x19ea36(0x1dc)]['querySelectorAll'](_0x19ea36(0x1ee))[0x0];_0x3f4683&&_0x2aa479&&(_0x3f4683[_0x19ea36(0x1a6)](_0x19ea36(0x1d1),()=>{const _0x3ce717=_0x19ea36;this[_0x3ce717(0x1ff)]=setTimeout(()=>{const _0xd03b66=_0x3ce717;_0x2aa479[_0xd03b66(0x230)][_0xd03b66(0x203)]='block';},0x3e8);}),_0x3f4683['addEventListener'](_0x19ea36(0x1ae),()=>{const _0x371f21=_0x19ea36;setTimeout(()=>{const _0x31da6b=_0x1e4f;_0x2aa479[_0x31da6b(0x230)][_0x31da6b(0x203)]=_0x31da6b(0x1ca);},0x7d0),clearTimeout(this[_0x371f21(0x1ff)]);}),_0x2aa479['addEventListener'](_0x19ea36(0x1ae),()=>{setTimeout(()=>{const _0x1a3251=_0x1e4f;_0x2aa479['style']['display']=_0x1a3251(0x1ca);},0x7d0);})),this[_0x19ea36(0x1d5)]();}[_0x5f1701(0x1d5)](){const _0x109b5f=_0x5f1701,_0x2790a0=this['shadowRoot'][_0x109b5f(0x1e4)](_0x109b5f(0x1e1)),_0x11ac24=_0x2790a0[_0x109b5f(0x1fa)][_0x2790a0[_0x109b5f(0x22d)]],_0x13685c=document[_0x109b5f(0x208)](_0x109b5f(0x22c));_0x13685c[_0x109b5f(0x230)]['position']=_0x109b5f(0x235),_0x13685c[_0x109b5f(0x230)][_0x109b5f(0x21d)]=_0x109b5f(0x226),_0x13685c['style'][_0x109b5f(0x1e0)]=getComputedStyle(_0x2790a0)[_0x109b5f(0x1e0)],document[_0x109b5f(0x1ef)][_0x109b5f(0x1d3)](_0x13685c),_0x13685c[_0x109b5f(0x1aa)]=_0x11ac24[_0x109b5f(0x1b0)];const _0x16a8fb=_0x13685c['offsetWidth'];document['body'][_0x109b5f(0x221)](_0x13685c);const _0x4b7467=parseInt(getComputedStyle(_0x2790a0)['paddingLeft'])+parseInt(getComputedStyle(_0x2790a0)[_0x109b5f(0x1a7)]);_0x2790a0[_0x109b5f(0x230)][_0x109b5f(0x1cc)]=this[_0x109b5f(0x1bb)]?_0x16a8fb+_0x4b7467+0x16+'px':_0x16a8fb+_0x4b7467+0x4+'px',this[_0x109b5f(0x1ea)]===_0x109b5f(0x1d8)&&(_0x2790a0[_0x109b5f(0x230)][_0x109b5f(0x1cc)]=_0x4b7467+0xc+'px');}}function _0x25cc(){const _0x1df0f4=['SELECT',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','cm\x20HG','formatValue','true','handleArrowClick','isInteger','week','none','10441130ABXUlA','width','formatFeetInchesValue0','units','in\x20HG','replace','mouseover','round','appendChild','toString','updateDropdownWidth','Temperature','map','ft-in',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20visibility:\x20','5119746RndgIv','target','shadowRoot','\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','4887099iZBRDG','define','font','select','unit:\x20','.unit-container','querySelector','log','bind','convertToNewUnit','pow','MPa','unit','kg/m³','lbf','\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','.tooltip','body','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','tagName','\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','visible','Custom','connectedCallback','disconnectedCallback','handleUnitChange','s[second]','options','psi','ksi','split','885irdieO','tooltipTimeout','lbm','decimalPlaces','calculateTotalInches','display','Ampere[amp]','g/mm³','6685212pfCsRN','unitConversion','createElement','getUnitCategory','kg/L','selected','\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','33aLtOJb','change','<option\x20value=\x22','kgf','innerHTML','match',';\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','removeEventListener','unitCategory','trim','join','value','lbm/in³','h[hour]','physical-quantity','1/16\x22','visibility','ksi[kip/in²]','auto','lbm/ft³','removeChild','GPa','18pFjAuA','e3dLogoUrl','</option>','hidden','toPrecision','1384264ccnjlt','render','formatFeetInchesValue','attachShadow','span','selectedIndex','push','focus','style','esu/s','1/1','mm\x20HG','\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','absolute','37542ZnFbBD','1020590BtabOE','addEventListener','paddingRight','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','getAttribute','textContent','inputValue','mm\x20W.C.','click','mouseout','g/cm³','text','m\x20W.C.','2RYXkrp','mbar','closest','decimal-places','category:\x20','hasAttribute','formatFeetInchesValue2','observedAttributes','minute','showUnitArrow','floor','parseFeetInchesValue','newUnit:\x20','psf','uc-qty','show-unit-arrow'];_0x25cc=function(){return _0x1df0f4;};return _0x25cc();}customElements[_0x5f1701(0x1df)](_0x5f1701(0x21b),v);class w extends v{}customElements['define'](_0x5f1701(0x1c0),w);function _0x1e4f(_0x597e7b,_0x5049e4){const _0x25cc94=_0x25cc();return _0x1e4f=function(_0x1e4fc9,_0x2f43a2){_0x1e4fc9=_0x1e4fc9-0x1a5;let _0x2a759f=_0x25cc94[_0x1e4fc9];return _0x2a759f;},_0x1e4f(_0x597e7b,_0x5049e4);}export{v as default};
package/dist/pq.umd.js CHANGED
@@ -1 +1 @@
1
- function _0x509f(_0xd7fdc8,_0x214a98){const _0x108169=_0x1081();return _0x509f=function(_0x509f8d,_0x385b24){_0x509f8d=_0x509f8d-0x1a4;let _0x49027f=_0x108169[_0x509f8d];return _0x49027f;},_0x509f(_0xd7fdc8,_0x214a98);}function _0x1081(){const _0x9ad48=['mouseout','createElement','day','4062758fyDBjP','focus','unitConversion','exports','\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','Temperature','true','6350406cBwkBV','Custom','unit:\x20','removeChild','200OTStta','closest','visibility','ksi','decimalPlaces','log','units','2148296DFZMju','target','in\x20W.C.','replace','select','value','GPa','toPrecision','options','selected','join','addEventListener',';\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.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>','mm\x20HG','textContent','map','font','unitCategory','connectedCallback','PhysicalQuantity',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','\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','show-unit-arrow','psi','render','paddingLeft','bind','auto','body','block','floor','e3dLogoUrl','toFixed','kg/L','showUnitArrow','kg/m³','none','kPa','uc-qty','decimal-places','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','function','esu/s','position','absolute','updateDropdownWidth','shadowRoot','°Ra','319332OjTTwJ','SELECT','</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>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','h[hour]','atm','<option\x20value=\x22','change','querySelectorAll','isInteger','unit','paddingRight','display','5uJlqnj','mbar','define','g/mm³','\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','1134551jZwdeb','newUnit:\x20','style','s[second]','click','innerHTML','amd','getAttribute',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','in\x20HG','observedAttributes','span','formatValue','63513qCUfsR','getUnitCategory','29199TVqYyY','handleUnitChange','\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','category:\x20','1072nICDES','158rpIGeK','includes','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pow','MPa','\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','selectedIndex','Ampere[amp]','lbm','handleArrowClick','hasAttribute','.tooltip','querySelector','mm\x20W.C.','.unit-container','tooltipTimeout','object'];_0x1081=function(){return _0x9ad48;};return _0x1081();}(function(_0x5374a6,_0x2879e8){const _0xa1e45e=_0x509f,_0x510ffa=_0x5374a6();while(!![]){try{const _0x16febd=parseInt(_0xa1e45e(0x1f4))/0x1+-parseInt(_0xa1e45e(0x219))/0x2*(-parseInt(_0xa1e45e(0x214))/0x3)+-parseInt(_0xa1e45e(0x1c4))/0x4*(-parseInt(_0xa1e45e(0x200))/0x5)+parseInt(_0xa1e45e(0x1b9))/0x6+-parseInt(_0xa1e45e(0x1b2))/0x7+-parseInt(_0xa1e45e(0x218))/0x8*(-parseInt(_0xa1e45e(0x212))/0x9)+parseInt(_0xa1e45e(0x1bd))/0xa*(-parseInt(_0xa1e45e(0x205))/0xb);if(_0x16febd===_0x2879e8)break;else _0x510ffa['push'](_0x510ffa['shift']());}catch(_0x3e5101){_0x510ffa['push'](_0x510ffa['shift']());}}}(_0x1081,0xf0c1a),function(_0x3c1a18,_0x562a7d){const _0xc81b40=_0x509f;typeof exports==_0xc81b40(0x1ae)&&typeof module<'u'?module[_0xc81b40(0x1b5)]=_0x562a7d():typeof define==_0xc81b40(0x1ed)&&define[_0xc81b40(0x20b)]?define(_0x562a7d):(_0x3c1a18=typeof globalThis<'u'?globalThis:_0x3c1a18||self,_0x3c1a18[_0xc81b40(0x1d7)]=_0x562a7d());}(this,function(){'use strict';const _0x4f68f5=_0x509f;const _0x291536=0.45359237,_0x46e813=25.4/0x3e8,_0x435de4=0xc*_0x46e813,_0xe21930=0x18bcd,_0x394c14=133.322387415,_0x205424={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x4f68f5(0x1a6)],'Pressure':['Pa',_0x4f68f5(0x1e9),_0x4f68f5(0x21d),_0x4f68f5(0x1ca),'bar',_0x4f68f5(0x201),_0x4f68f5(0x1f8),_0x4f68f5(0x1d1),'cm\x20HG',_0x4f68f5(0x20e),_0x4f68f5(0x1ab),'m\x20W.C.',_0x4f68f5(0x1c6),'psf',_0x4f68f5(0x1db),_0x4f68f5(0x1c0),'ksi[kip/in²]'],'Density':[_0x4f68f5(0x1e7),_0x4f68f5(0x1e5),'g/cm³',_0x4f68f5(0x203),'lbm/ft³','lbm/in³'],'Time':[_0x4f68f5(0x208),'s','minute','h',_0x4f68f5(0x1f7),_0x4f68f5(0x1b1),'week'],'ElectricalCurrent':['A',_0x4f68f5(0x1a5),'mA','µA','kA','MA',_0x4f68f5(0x1ee)],'Temperature':['°K','°C','°F',_0x4f68f5(0x1f3)]},_0x661a4a={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':_0x46e813,'ft':_0x435de4},'Mass':{'kg':0x1,'g':0.001,'lbm':_0x291536},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0xe21930,'mm\x20HG':_0x394c14,'cm\x20HG':_0x394c14*0xa,'in\x20HG':_0x394c14*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':_0x46e813*0x3e8*9.80665,'psf':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x435de4,0x2),'psi':_0x291536*9.80665/Math['pow'](_0x46e813,0x2),'ksi':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x46e813,0x2)*0x3e8,'ksi[kip/in²]':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x46e813,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math['pow'](0.01,0x3),'g/mm³':0x1/0x3e8/Math['pow'](0.001,0x3),'lbm/ft³':_0x291536/Math[_0x4f68f5(0x21c)](_0x435de4,0x3),'lbm/in³':_0x291536/Math['pow'](_0x46e813,0x3)},'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}}};class _0x3feca8 extends HTMLElement{constructor(){const _0x3fbacd=_0x4f68f5;super(),this['attachShadow']({'mode':'open'}),this[_0x3fbacd(0x1c9)]=0x0,this[_0x3fbacd(0x1ad)]=null,this[_0x3fbacd(0x1c1)]=0x3,this[_0x3fbacd(0x1e3)]=_0x3fbacd(0x1ec),this[_0x3fbacd(0x1c3)]=_0x205424,this['unitConversion']=_0x661a4a,this[_0x3fbacd(0x1e6)]=!this[_0x3fbacd(0x1a8)](_0x3fbacd(0x1da))||this[_0x3fbacd(0x20c)](_0x3fbacd(0x1da))===_0x3fbacd(0x1b8),this[_0x3fbacd(0x1dc)]();}static get[_0x4f68f5(0x20f)](){const _0x327d05=_0x4f68f5;return[_0x327d05(0x1c9),_0x327d05(0x1fd),_0x327d05(0x1eb),_0x327d05(0x1da)];}['attributeChangedCallback'](_0x784ee8,_0x422a83,_0x52c93f){const _0xb17425=_0x4f68f5;_0x784ee8===_0xb17425(0x1c9)?this[_0xb17425(0x1c9)]=parseFloat(_0x52c93f):_0x784ee8===_0xb17425(0x1fd)?(this[_0xb17425(0x1fd)]=_0x52c93f,this[_0xb17425(0x1d5)]=this[_0xb17425(0x213)](_0x52c93f)):_0x784ee8===_0xb17425(0x1eb)?this[_0xb17425(0x1c1)]=parseInt(_0x52c93f)||0x3:_0x784ee8===_0xb17425(0x1da)&&(this['showUnitArrow']=_0x52c93f===null||_0x52c93f===_0xb17425(0x1b8)),this[_0xb17425(0x1dc)]();}[_0x4f68f5(0x213)](_0x240fc7){const _0x11cdb0=_0x4f68f5;for(const _0x248e5d in this[_0x11cdb0(0x1c3)])if(this[_0x11cdb0(0x1c3)][_0x248e5d][_0x11cdb0(0x21a)](_0x240fc7))return _0x248e5d;return this[_0x11cdb0(0x1c3)][_0x11cdb0(0x1ba)]=this[_0x11cdb0(0x1c3)][_0x11cdb0(0x1ba)]||[],this[_0x11cdb0(0x1c3)]['Custom']['push'](_0x240fc7),this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)]=this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)]||{},this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)][_0x240fc7]=0x1,_0x11cdb0(0x1ba);}[_0x4f68f5(0x1d6)](){const _0x432904=_0x4f68f5;this[_0x432904(0x1f2)][_0x432904(0x1cf)](_0x432904(0x1fa),this[_0x432904(0x215)]['bind'](this)),this[_0x432904(0x1fd)]=this['getAttribute'](_0x432904(0x1fd))||'mm',this['unitCategory']=this[_0x432904(0x213)](this[_0x432904(0x1fd)]),this[_0x432904(0x1e6)]=this[_0x432904(0x1a8)]('show-unit-arrow')?this[_0x432904(0x20c)](_0x432904(0x1da))===_0x432904(0x1b8):this[_0x432904(0x1d5)]!==_0x432904(0x1ba),this[_0x432904(0x1dc)]();}['disconnectedCallback'](){const _0x59bdd4=_0x4f68f5;this['shadowRoot']['removeEventListener'](_0x59bdd4(0x1fa),this['handleUnitChange'][_0x59bdd4(0x1de)](this));}[_0x4f68f5(0x1a7)](_0x1e2df1){const _0x32f16b=_0x4f68f5;if(_0x1e2df1[_0x32f16b(0x1c5)][_0x32f16b(0x1be)](_0x32f16b(0x1ac))){const _0x55153a=this[_0x32f16b(0x1f2)]['querySelector'](_0x32f16b(0x1c8));_0x55153a&&(_0x55153a[_0x32f16b(0x1b3)](),_0x55153a[_0x32f16b(0x209)]());}}[_0x4f68f5(0x215)](_0xcd6a8a){const _0x721f8=_0x4f68f5;let _0x36700f=0x1,_0x433e28=0x1,_0x43691d=0x0,_0x566b05=0x0;if(_0xcd6a8a[_0x721f8(0x1c5)]['tagName']===_0x721f8(0x1f5)){const _0x373cd0=_0xcd6a8a[_0x721f8(0x1c5)]['value'];if(this['unitCategory']!==_0x721f8(0x1b7)){const _0x206b4c=this['unitConversion'][this['unitCategory']][this[_0x721f8(0x1fd)]]/this[_0x721f8(0x1b4)][this['unitCategory']][_0x373cd0];this['value']=this['value']*_0x206b4c;}else console[_0x721f8(0x1c2)](_0x721f8(0x217)+this[_0x721f8(0x1d5)]),console['log'](_0x721f8(0x1bb)+this[_0x721f8(0x1fd)]),console['log'](_0x721f8(0x206)+_0x373cd0),_0x36700f=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][this[_0x721f8(0x1fd)]]['c0'],_0x433e28=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][this['unit']]['c1'],_0x43691d=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][_0x373cd0]['c0'],_0x566b05=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][_0x373cd0]['c1'],this['value']=(this[_0x721f8(0x1c9)]*_0x36700f+_0x433e28-_0x566b05)/_0x43691d;this[_0x721f8(0x1fd)]=_0x373cd0,this[_0x721f8(0x1dc)]();}this[_0x721f8(0x1f1)]();}['formatValue'](_0x4cb3eb){const _0x176b1a=_0x4f68f5;return Number[_0x176b1a(0x1fc)](_0x4cb3eb)?_0x4cb3eb['toString']():Math[_0x176b1a(0x1e2)](_0x4cb3eb)!==0x0?_0x4cb3eb[_0x176b1a(0x1e4)](this[_0x176b1a(0x1c1)])[_0x176b1a(0x1c7)](/0+$/,'')[_0x176b1a(0x1c7)](/\.$/,''):_0x4cb3eb[_0x176b1a(0x1cb)](0x3);}['render'](){const _0xdc4670=_0x4f68f5;this['shadowRoot'][_0xdc4670(0x20a)]=_0xdc4670(0x216)+(this['showUnitArrow']?_0xdc4670(0x1df):_0xdc4670(0x1e8))+_0xdc4670(0x1d8)+(this['showUnitArrow']?_0xdc4670(0x1df):_0xdc4670(0x1e8))+_0xdc4670(0x20d)+(this[_0xdc4670(0x1e6)]?'auto':_0xdc4670(0x1e8))+_0xdc4670(0x1d0)+this[_0xdc4670(0x211)](this[_0xdc4670(0x1c9)])+_0xdc4670(0x1f6)+(this[_0xdc4670(0x1c3)][this[_0xdc4670(0x1d5)]]||[this[_0xdc4670(0x1fd)]])[_0xdc4670(0x1d3)](_0x116e9e=>_0xdc4670(0x1f9)+_0x116e9e+'\x22\x20'+(_0x116e9e===this[_0xdc4670(0x1fd)]?_0xdc4670(0x1cd):'')+_0xdc4670(0x21b)+_0x116e9e+'</option>')[_0xdc4670(0x1ce)]('')+_0xdc4670(0x1b6)+(this['showUnitArrow']&&this[_0xdc4670(0x1d5)]!=='Custom'?_0xdc4670(0x21e)+this[_0xdc4670(0x1e3)]+_0xdc4670(0x204):'')+_0xdc4670(0x1d9);const _0x446683=this['shadowRoot'][_0xdc4670(0x1aa)](_0xdc4670(0x1ac)),_0x49aaef=this['shadowRoot'][_0xdc4670(0x1fb)](_0xdc4670(0x1a9))[0x0];_0x446683&&_0x49aaef&&(_0x446683['addEventListener']('mouseover',()=>{const _0x1fad54=_0xdc4670;this[_0x1fad54(0x1ad)]=setTimeout(()=>{const _0x40cf11=_0x1fad54;_0x49aaef[_0x40cf11(0x207)][_0x40cf11(0x1ff)]=_0x40cf11(0x1e1);},0x3e8);}),_0x446683[_0xdc4670(0x1cf)](_0xdc4670(0x1af),()=>{const _0x574934=_0xdc4670;setTimeout(()=>{const _0x682d7=_0x509f;_0x49aaef[_0x682d7(0x207)][_0x682d7(0x1ff)]='none';},0x7d0),clearTimeout(this[_0x574934(0x1ad)]);}),_0x49aaef[_0xdc4670(0x1cf)](_0xdc4670(0x1af),()=>{setTimeout(()=>{const _0x7a62f=_0x509f;_0x49aaef['style']['display']=_0x7a62f(0x1e8);},0x7d0);})),this[_0xdc4670(0x1f1)]();}['updateDropdownWidth'](){const _0x2ab2af=_0x4f68f5,_0x5854e6=this[_0x2ab2af(0x1f2)][_0x2ab2af(0x1aa)]('select'),_0x50511c=_0x5854e6[_0x2ab2af(0x1cc)][_0x5854e6[_0x2ab2af(0x1a4)]],_0x21017f=document[_0x2ab2af(0x1b0)](_0x2ab2af(0x210));_0x21017f[_0x2ab2af(0x207)][_0x2ab2af(0x1ef)]=_0x2ab2af(0x1f0),_0x21017f['style'][_0x2ab2af(0x1bf)]='hidden',_0x21017f[_0x2ab2af(0x207)][_0x2ab2af(0x1d4)]=getComputedStyle(_0x5854e6)[_0x2ab2af(0x1d4)],document[_0x2ab2af(0x1e0)]['appendChild'](_0x21017f),_0x21017f[_0x2ab2af(0x1d2)]=_0x50511c['text'];const _0x2c2fdb=_0x21017f['offsetWidth'];document[_0x2ab2af(0x1e0)][_0x2ab2af(0x1bc)](_0x21017f);const _0x5bdc32=parseInt(getComputedStyle(_0x5854e6)[_0x2ab2af(0x1dd)])+parseInt(getComputedStyle(_0x5854e6)[_0x2ab2af(0x1fe)]);_0x5854e6['style']['width']=this[_0x2ab2af(0x1e6)]?_0x2c2fdb+_0x5bdc32+0x16+'px':_0x2c2fdb+_0x5bdc32+0x4+'px';}}customElements[_0x4f68f5(0x202)]('physical-quantity',_0x3feca8);class _0x5fb682 extends _0x3feca8{}return customElements[_0x4f68f5(0x202)](_0x4f68f5(0x1ea),_0x5fb682),_0x3feca8;}));
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;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "physical-quantity",
3
- "version": "1.1.35",
3
+ "version": "1.1.42",
4
4
  "description": "A web component to represent a physical quantity with unit conversion.",
5
5
  "main": "dist/pq.umd.js",
6
6
  "module": "dist/pq.es.js",