{"version":3,"sources":["quantities.js"],"names":["global","factory","exports","module","define","amd","Qty","this","isQty","value","Qty$1","isString","String","isFiniteImpl","Number","isFinite","window","isNumber","identity","compareArray","array1","array2","length","i","assign","target","properties","Object","keys","forEach","key","mulSafe","result","decimals","arguments","arg","getFractional","round","divSafe","num","den","Error","factor","Math","pow","val","count","QtyError","err","create","prototype","apply","name","message","stack","throwIncompatibleUnits","left","right","constructor","UNITS","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","<1>","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","PI","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","BASE_UNITS","UNITY","UNITY_ARRAY","validateUnitDefinition","unitDef","definition","scalar","numerator","denominator","unit","undefined","PREFIX_VALUES","PREFIX_MAP","UNIT_VALUES","UNIT_MAP","OUTPUT_MAP","hasOwnProperty","j","SIGNATURE_VECTOR","unitSignature","signature","vector","unitSignatureVector","isBase","call","toBase","Array","r","n","indexOf","k","reduce","previous","current","QTY_STRING_REGEX","RegExp","POWER_OP","SAFE_POWER","TOP_REGEX","BOTTOM_REGEX","parse","toString","trim","exec","scalarMatch","replace","parseFloat","x","nx","top","bottom","isNaN","UNIT_TEST_REGEX","test","abs","parseUnits","UNIT_MATCH","sort","a","b","join","UNIT_MATCH_REGEX","parsedUnitsCache","units","cached","unitMatch","normalizedUnits","push","slice","map","item","concat","filter","initValue","initUnits","isDefinitionObject","baseScalar","_conversionCache","base","isTemperature","KINDS","-312078","-312058","-312038","-152058","-152040","-152038","-7997","-79","-59","-39","-38","-20","-19","-18","-17","-1","0","1","2","3","20","400","7941","7942","7959","7961","7962","7979","7981","7982","7997","7998","8000","152020","159999","160000","160020","312058","312078","3199980","3199997","3200000","63999998","64000000","1280000000","25599999980","25600000000","511999999980","512000000000","addTempDegrees","temp","deg","tempDegrees","to","getDegreeUnits","toDegrees","src","dst","dstScalar","srcDegK","qty","q","match","toDegK","dstUnits","kind","isDegrees","other","isCompatible","toTemp","isInverse","inverse","toTempK","baseUnitCache","toBaseUnits","mul","toFloat","isUnitless","toPrec","precQuantity","cleanTerms","combined","prop","NestedMap","e","getUnits","unitKeys","substr","getKinds","toLowerCase","getAliases","unitName","strings","knownSignature","seen","swiftConverter","srcUnits","convert","srcQty","dstQty","eq","isArray","add","sub","rhs","lhsUnits","lhs","rhsConverted","dstDegrees","op1","op2","numden","div","compareTo","lt","lte","gt","gte","same","every","_isBase","get","index","childMap","data","set","formatter","_units","numIsUnity","denIsUnity","numUnits","stringifyUnits","denUnits","targetUnitsOrMaxDecimalsOrPrec","maxDecimals","targetUnits","out","format","targetQty","stringifiedUnitsCache","stringified","token","tokenNext","unitNames","getOutputNames","acc","unitCounter","unitCount","version"],"mappings":"CAuBC,SAAUA,EAAQC,GACC,iBAAZC,SAA0C,oBAAXC,OAAyBA,OAAOD,QAAUD,IAC9D,mBAAXG,QAAyBA,OAAOC,IAAMD,OAAOH,GACnDD,EAAOM,IAAML,IAHf,CAIEM,KAAM,WAAe,aASvB,SAASC,EAAMC,GACb,OAAOA,aAAiBC,EAU1B,SAASC,EAASF,GAChB,MAAwB,iBAAVA,GAAsBA,aAAiBG,OAQvD,IAAIC,EAAeC,OAAOC,UAAYC,OAAOD,SAQ7C,SAASE,EAASR,GAEhB,OAAOI,EAAaJ,GAMtB,SAASS,EAAST,GAChB,OAAOA,EAkBT,SAASU,EAAaC,EAAQC,GAC5B,GAAIA,EAAOC,SAAWF,EAAOE,OAC3B,OAAO,EAET,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAOE,OAAQC,IAAK,CACtC,GAAIF,EAAOE,GAAGJ,eACPE,EAAOE,GAAGJ,aAAaC,EAAOG,IACjC,OAAO,EAGX,GAAIF,EAAOE,KAAOH,EAAOG,GACvB,OAAO,EAGX,OAAO,EAGT,SAASC,EAAOC,EAAQ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