{"version":3,"sources":["quantities.js"],"names":["root","factory","exports","module","define","amd","Qty","this","UNITS","<googol>","<kibi>","Math","pow","<mebi>","<gibi>","<tebi>","<pebi>","<exi>","<zebi>","<yebi>","<yotta>","<zetta>","<exa>","<peta>","<tera>","<giga>","<mega>","<kilo>","<hecto>","<deca>","<deci>","<centi>","<milli>","<micro>","<nano>","<pico>","<femto>","<atto>","<zepto>","<yocto>","<1>","<meter>","<inch>","<foot>","<yard>","<mile>","<naut-mile>","<league>","<furlong>","<rod>","<mil>","<angstrom>","<fathom>","<pica>","<point>","<redshift>","<AU>","<light-second>","<light-minute>","<light-year>","<parsec>","<kilogram>","<AMU>","<dalton>","<slug>","<short-ton>","<metric-ton>","<carat>","<pound>","<ounce>","<gram>","<grain>","<dram>","<stone>","<hectare>","<acre>","<sqft>","<liter>","<gallon>","<quart>","<pint>","<cup>","<fluid-ounce>","<tablespoon>","<teaspoon>","<bushel>","<kph>","<mph>","<knot>","<fps>","<gee>","<kelvin>","<celsius>","<fahrenheit>","<rankine>","<temp-K>","<temp-C>","<temp-F>","<temp-R>","<second>","<minute>","<hour>","<day>","<week>","<fortnight>","<year>","<decade>","<century>","<pascal>","<bar>","<mmHg>","<inHg>","<torr>","<atm>","<psi>","<cmh2o>","<inh2o>","<poise>","<stokes>","<mole>","<molar>","<wtpercent>","<katal>","<unit>","<farad>","<coulomb>","<ampere>","<siemens>","<henry>","<volt>","<ohm>","<weber>","<tesla>","<gauss>","<maxwell>","<oersted>","PI","<joule>","<erg>","<btu>","<calorie>","<Calorie>","<therm-US>","<newton>","<dyne>","<pound-force>","<hertz>","<radian>","<degree>","<grad>","<steradian>","<rotation>","<rpm>","<byte>","<bit>","<dollar>","<cents>","<candela>","<lumen>","<lux>","<watt>","<horsepower>","<gray>","<roentgen>","<sievert>","<becquerel>","<curie>","<cpm>","<dpm>","<bpm>","<dot>","<pixel>","<ppi>","<dpi>","<cell>","<each>","<count>","<base-pair>","<nucleotide>","<molecule>","<dozen>","<percent>","<ppm>","<ppt>","<gross>","<decibel>","BASE_UNITS","UNITY","UNITY_ARRAY","QTY_STRING_REGEX","RegExp","POWER_OP","TOP_REGEX","BOTTOM_REGEX","SIGNATURE_VECTOR","KINDS","-312058","-312038","-152040","-152038","-152058","-39","-38","-20","-19","-18","0","1","2","3","20","400","7942","7959","7962","7979","7981","7997","8000","159999","160000","160020","312058","3199980","3199997","3200000","63999998","64000000","1280000000","25600000000","511999999980","512000000000","10240000000000","baseUnitCache","initValue","scalar","baseScalar","signature","_conversionCache","numerator","denominator","isString","trim","parse","call","length","join","indexOf","QtyError","compareArray","updateBaseScalar","isTemperature","value","e","swiftConverter","srcUnits","dstUnits","convert","srcQty","dstQty","eq","identity","mul","to","i","result","Array","isArray","push","formatter","units","isBase","unitSignature","base","toBase","vector","unitSignatureVector","reduce","previous","current","r","n","j","k","val","exec","parseFloat","x","nx","top","bottom","isNaN","UNIT_TEST_REGEX","test","abs","replace","parseUnits","throwIncompatibleUnits","prototype","constructor","toFloat","isUnitless","isCompatible","other","undefined","isInverse","inverse","kind","toString","_isBase","isDegrees","match","concat","forEach","item","qty","q","toTempK","cached","unit","num","den","PREFIX_VALUES","mulSafe","UNIT_VALUES","a","b","toBaseUnits","_units","numIsUnity","denIsUnity","numUnits","stringifyUnits","denUnits","compareTo","lt","lte","gt","gte","toPrec","precQuantity","round","targetUnitsOrMaxDecimalsOrPrec","maxDecimals","targetUnits","out","format","arguments","targetQty","same","target","src","dst","dstScalar","toTemp","srcDegK","toDegK","toDegrees","divSafe","add","addTempDegrees","sub","rhs","lhsUnits","lhs","rhsConverted","dstDegrees","getDegreeUnits","temp","tempDegrees","op1","op2","numden","cleanTerms","div","parsedUnitsCache","unitMatch","normalizedUnits","UNIT_MATCH_REGEX","slice","map","PREFIX_MAP","UNIT_MAP","filter","NestedMap","get","keys","apply","key","index","childMap","data","set","stringifiedUnitsCache","stringified","token","tokenNext","unitNames","OUTPUT_MAP","getOutputNames","acc","unitCounter","unitCount","array1","array2","decimals","deg","arg","getFractional","factor","isFinite","count","combined","prop","hasOwnProperty","String","unitDef","definition","UNIT_MATCH","Object","sort","err","create","Error","name","message","stack"],"mappings":"CAYC,SAAUA,EAAMC,GACb,aAEuB,iBAAZC,QAIPC,OAAOD,QAAUD,IACQ,mBAAXG,QAAyBA,OAAOC,IAE9CD,OAAOH,GAGPD,EAAKM,IAAML,IAbnB,CAeEM,KAAM,WACN,aAEA,IAAIC,GAEFC,aAAe,UAAW,MAAO,UACjCC,WAAe,KAAK,OAAO,QAASC,KAAKC,IAAI,EAAE,IAAK,UACpDC,WAAe,KAAK,OAAO,QAASF,KAAKC,IAAI,EAAE,IAAK,UACpDE,WAAe,KAAK,OAAO,QAASH,KAAKC,IAAI,EAAE,IAAK,UACpDG,WAAe,KAAK,OAAO,QAASJ,KAAKC,IAAI,EAAE,IAAK,UACpDI,WAAe,KAAK,OAAO,QAASL,KAAKC,IAAI,EAAE,IAAK,UACpDK,UAAe,KAAK,MAAM,OAAQN,KAAKC,IAAI,EAAE,IAAK,UAClDM,WAAe,KAAK,OAAO,QAASP,KAAKC,IAAI,EAAE,IAAK,UACpDO,WAAe,KAAK,OAAO,QAASR,KAAKC,IAAI,EAAE,IAAK,UACpDQ,YAAe,IAAI,QAAQ,SAAU,KAAM,UAC3CC,YAAe,IAAI,QAAQ,SAAU,KAAM,UAC3CC,UAAe,IAAI,MAAM,OAAQ,KAAM,UACvCC,WAAe,IAAI,OAAO,QAAS,KAAM,UACzCC,WAAe,IAAI,OAAO,QAAS,KAAM,UACzCC,WAAe,IAAI,OAAO,QAAS,IAAK,UACxCC,WAAe,IAAI,OAAO,QAAS,IAAK,UACxCC,WAAe,IAAI,QAAS,IAAK,UACjCC,YAAe,IAAI,QAAQ,SAAU,IAAK,UAC1CC,WAAe,KAAK,OAAO,OAAO,QAAS,GAAK,UAChDC,WAAe,IAAI,OAAO,QAAS,GAAM,UACzCC,YAAe,IAAI,QAAQ,SAAU,IAAM,UAC3CC,YAAe,IAAI,QAAQ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