1import{c as s}from"./babel-polyfills-e94b577f.js";var t,e={exports:{}};e.exports=((t={configs:{allowPassphrases:!0,maxLength:128,minLength:10,minPhraseLength:20,minOptionalTestsToPass:4},config:function(s){for(var t in s)s.hasOwnProperty(t)&&this.configs.hasOwnProperty(t)&&(this.configs[t]=s[t])}}).tests={required:[function(s){if(s.length<t.configs.minLength)return"The password must be at least "+t.configs.minLength+" characters long."},function(s){if(s.length>t.configs.maxLength)return"The password must be fewer than "+t.configs.maxLength+" characters."},function(s){if(/(.)\1{2,}/.test(s))return"The password may not contain sequences of three or more repeated characters."}],optional:[function(s){if(!/[a-z]/.test(s))return"The password must contain at least one lowercase letter."},function(s){if(!/[A-Z]/.test(s))return"The password must contain at least one uppercase letter."},function(s){if(!/[0-9]/.test(s))return"The password must contain at least one number."},function(s){if(!/[^A-Za-z0-9]/.test(s))return"The password must contain at least one special character."}]},t.test=function(s){var t={errors:[],failedTests:[],passedTests:[],requiredTestErrors:[],optionalTestErrors:[],isPassphrase:!1,strong:!0,optionalTestsPassed:0},e=0;if(this.tests.required.forEach((function(r){var n=r(s);"string"==typeof n?(t.strong=!1,t.errors.push(n),t.requiredTestErrors.push(n),t.failedTests.push(e)):t.passedTests.push(e),e++})),!0===this.configs.allowPassphrases&&s.length>=this.configs.minPhraseLength&&(t.isPassphrase=!0),!t.isPassphrase){var r=this.tests.required.length;this.tests.optional.forEach((function(e){var n=e(s);"string"==typeof n?(t.errors.push(n),t.optionalTestErrors.push(n),t.failedTests.push(r)):(t.optionalTestsPassed++,t.passedTests.push(r)),r++}))}return!t.isPassphrase&&t.optionalTestsPassed<this.configs.minOptionalTestsToPass&&(t.strong=!1),t},t);export{e as o};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.