{"version":3,"file":"build/mona.min.js","sources":["build/mona.js"],"names":["e","bootstrap","exports","module","define","amd","ses","ok","makeMona","window","mona","global","t","n","r","s","o","u","a","require","i","Error","f","call","length","1","parse","parser","string","opts","throwOnError","allowTrailing","followedBy","eof","parserState","ParserState","undefined","userState","position","SourcePosition","fileName","failed","error","returnState","value","parseAsync","callback","exec","done","buffer","res","collect","min","input","slice","offset","wasEof","forEach","val","errIfDone","cb","apply","arguments","copy","handle","data","name","line","column","this","ParserError","pos","messages","type","captureStackTrace","message","join","newState","bind","fun","newParserState","fail","msg","newError","mergeErrors","label","token","count","newOffset","newPosition","charAt","delay","constructor","args","log","tag","level","console","map","transformer","result","key","x","ret","lookAhead","is","predicate","isNot","and","firstParser","moreParsers","or","orHelper","parsers","errors","push","finalState","reduce","err1","err2","labelMsg","maybe","not","unless","concat","sequence","state","failwhale","split","separator","max","xs","splitEnd","enforceEnd","last","Infinity","results","prev","exactly","between","open","close","skip","range","start","end","y","stringOf","hasOwnProperty","oneOf","_matches","caseSensitive","matches","m","noneOf","str","toLowerCase","alphaUpper","alphaLower","alpha","digit","base","isNaN","parseInt","alphanum","space","spaces","text","trim","trimLeft","trimRight","natural","integer","sign","num","real","leftSide","rightSide","Math","pow","cardinal","numeralUpToVeryBig","ordinal","shortOrdinal","strict","substr","ordinalMode","numOfBigs","numeralUpToThreeNines","numeralSeparator","bigUnit","CARDINALS","bigUnitIndex","evenBigger","indexOf","bigUnitMultiplier","lesserUnit","numeralHundreds","numeralUpToNinetyNine","nextParser","multiplier","numOfHundreds","numeralOneThroughNine","smallNum","ten","tenIndex","tens","small","ORDINALS","numeralUpToNineteen","source","_sortByLength","b","obj","newObj","Object","create","getPrototypeOf","comparePositions","newMessages","acc","pos1","pos2","hasConsumed","VERSION","prototype","1-9","0-19","group","sort","version","float"],"mappings":"CAAA,SAAUA,GAAG,GAAG,kBAAmBC,WAAUA,UAAU,OAAOD,OAAQ,IAAG,gBAAiBE,SAAQC,OAAOD,QAAQF,QA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