{"version":3,"sources":["quantities.js"],"names":["root","factory","exports","module","define","amd","Qty","this","UNITS","","","Math","pow","","","","","","","","","","","","","","","","","","","","","","","","","","","","<1>","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","PI","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","7961","7997","8000","159999","160000","160020","312058","3199980","3199997","3200000","63999998","64000000","1280000000","25600000000","25599999980","511999999980","512000000000","10240000000000","baseUnitCache","initValue","initUnits","value","units","isNumber","isString","QtyError","isQty","isDefinitionObject","apply","arguments","scalar","baseScalar","signature","_conversionCache","numerator","denominator","length","parse","call","join","indexOf","compareArray","updateBaseScalar","isTemperature","e","swiftConverter","srcUnits","dstUnits","convert","srcQty","dstQty","eq","identity","mul","to","i","result","Array","isArray","push","getKinds","strings","Object","keys","map","knownSignature","seen","filter","item","hasOwnProperty","getUnits","kind","unitKeys","substr","sort","a","b","toLowerCase","getAliases","unitName","UNIT_MAP","formatter","trim","isBase","unitSignature","base","toBase","vector","unitSignatureVector","reduce","previous","current","r","n","j","k","val","toString","exec","scalarMatch","replace","parseFloat","x","nx","top","bottom","isNaN","UNIT_TEST_REGEX","test","abs","parseUnits","throwIncompatibleUnits","prototype","constructor","toFloat","isUnitless","isCompatible","other","undefined","isInverse","inverse","_isBase","isDegrees","match","concat","forEach","qty","q","toTempK","cached","unit","num","den","PREFIX_VALUES","mulSafe","UNIT_VALUES","toBaseUnits","_units","numIsUnity","denIsUnity","numUnits","stringifyUnits","denUnits","compareTo","lt","lte","gt","gte","toPrec","precQuantity","round","targetUnitsOrMaxDecimalsOrPrec","maxDecimals","targetUnits","out","format","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","PREFIX_MAP","NestedMap","get","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","String","Number","window","unitDef","definition","UNIT_MATCH","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,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