{"version":3,"sources":["jsdelivr-header.js","/npm/@contentpass/zxcvbn@4.4.3/lib/main.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,IAAI,SAAU,SAAU,QAAS,KAAM,eAAgB,OAEvD,SAAW,QAAQ,cAEnB,QAAU,QAAQ,aAElB,eAAiB,QAAQ,oBAEzB,SAAW,QAAQ,cAEnB,KAAO,WACL,OAAO,IAAK,MAAQ,SACtB,EAEA,OAAS,SAAS,EAAU,GAC1B,IAAI,EAAK,EAAc,EAAmB,EAAG,EAAK,EAAS,EAAM,EAAK,EAAM,EAAM,EAAQ,EAAkB,EAAO,EAAa,EAchI,IAbe,MAAX,IACF,EAAU,CAAC,GAET,aAAmB,MACrB,EAAc,EACc,iBAAZ,GAChB,EAA6C,OAA9B,EAAM,EAAQ,aAAuB,EAAM,GAAI,EAA0D,OAArC,EAAO,EAAQ,mBAA6B,EAAO,CAAC,IAEvI,EAAc,GACd,EAAoB,CAAC,GAEvB,EAAQ,OACR,EAAmB,GACd,EAAI,EAAG,EAAM,EAAY,OAAQ,EAAI,EAAK,IAEjB,WAAvB,SADL,EAAM,EAAY,MAC+B,WAAT,GAA8B,YAAT,GAC3D,EAAiB,KAAK,EAAI,WAAW,eAQzC,IAAK,KALL,SAAS,0BAA0B,GACnC,EAAU,SAAS,UAAU,IAC7B,EAAS,QAAQ,8BAA8B,EAAU,IAClD,UAAY,OAAS,EAC5B,EAAe,eAAe,sBAAsB,EAAO,SAEzD,EAAM,EAAa,GACnB,EAAO,GAAQ,EAGjB,OADA,EAAO,SAAW,SAAS,aAAa,EAAO,MAAO,EAAO,SAAU,GAChE,CACT,EAEA,OAAO,QAAU","file":"/npm/@contentpass/zxcvbn@4.4.3/lib/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@contentpass/zxcvbn@4.4.3/lib/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// Generated by CoffeeScript 1.12.7\nvar feedback, matching, scoring, time, time_estimates, zxcvbn;\n\nmatching = require('./matching');\n\nscoring = require('./scoring');\n\ntime_estimates = require('./time_estimates');\n\nfeedback = require('./feedback');\n\ntime = function() {\n  return (new Date()).getTime();\n};\n\nzxcvbn = function(password, options) {\n  var arg, attack_times, feedback_messages, i, len, matches, prop, ref, ref1, ref2, result, sanitized_inputs, start, user_inputs, val;\n  if (options == null) {\n    options = {};\n  }\n  if (options instanceof Array) {\n    user_inputs = options;\n  } else if (typeof options === 'object') {\n    user_inputs = (ref = options.user_inputs) != null ? ref : [], feedback_messages = (ref1 = options.feedback_messages) != null ? ref1 : {};\n  } else {\n    user_inputs = [];\n    feedback_messages = {};\n  }\n  start = time();\n  sanitized_inputs = [];\n  for (i = 0, len = user_inputs.length; i < len; i++) {\n    arg = user_inputs[i];\n    if ((ref2 = typeof arg) === \"string\" || ref2 === \"number\" || ref2 === \"boolean\") {\n      sanitized_inputs.push(arg.toString().toLowerCase());\n    }\n  }\n  matching.set_user_input_dictionary(sanitized_inputs);\n  matches = matching.omnimatch(password);\n  result = scoring.most_guessable_match_sequence(password, matches);\n  result.calc_time = time() - start;\n  attack_times = time_estimates.estimate_attack_times(result.guesses);\n  for (prop in attack_times) {\n    val = attack_times[prop];\n    result[prop] = val;\n  }\n  result.feedback = feedback.get_feedback(result.score, result.sequence, feedback_messages);\n  return result;\n};\n\nmodule.exports = zxcvbn;\n\n\n"]}