"use strict";(self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[7833],{"./src/utils/PasswordScorer.ts"(e,n,s){s.d(n,{scorePassword:()=>l});var t=s("../../node_modules/.pnpm/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=s("../../node_modules/.pnpm/@zxcvbn-ts+core@4.1.2/node_modules/@zxcvbn-ts/core/dist/index.mjs"),o=s("../../node_modules/.pnpm/@zxcvbn-ts+language-common@4.1.2/node_modules/@zxcvbn-ts/language-common/dist/index.mjs"),a=s("../../node_modules/.pnpm/@zxcvbn-ts+language-en@4.1.1/node_modules/@zxcvbn-ts/language-en/dist/index.mjs"),c=s("../../node_modules/.pnpm/@zxcvbn-ts+language-en@4.1.1/node_modules/@zxcvbn-ts/language-en/dist/translations.mjs"),i=s("./src/languageHandler.tsx"),g=s("./src/SdkConfig.ts");function u(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),s.push.apply(s,t)}return s}function d(e){for(var n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{};n%2?u(Object(s),!0).forEach(function(n){(0,t.A)(e,n,s[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):u(Object(s)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(s,n))})}return e}const b={dictionary:d(d(d({},o.z),a.z),{},{userInputs:["riot","matrix","element",g.A.get().brand]}),graphs:o.K,useLevenshteinDistance:!0};function l(e,n,s=[]){if(0===n.length)return null;const t=[...s];if(e){t.push(e.getUserIdLocalpart());try{const n=e.getDomain();t.push(n)}catch{}}const o=new r.Qn(d(d({},b),{},{translations:{warnings:{straightRow:(0,i._t)("zxcvbn|warnings|straightRow"),keyPattern:(0,i._t)("zxcvbn|warnings|keyPattern"),simpleRepeat:(0,i._t)("zxcvbn|warnings|simpleRepeat"),extendedRepeat:(0,i._t)("zxcvbn|warnings|extendedRepeat"),sequences:(0,i._t)("zxcvbn|warnings|sequences"),recentYears:(0,i._t)("zxcvbn|warnings|recentYears"),dates:(0,i._t)("zxcvbn|warnings|dates"),topTen:(0,i._t)("zxcvbn|warnings|topTen"),topHundred:(0,i._t)("zxcvbn|warnings|topHundred"),common:(0,i._t)("zxcvbn|warnings|common"),similarToCommon:(0,i._t)("zxcvbn|warnings|similarToCommon"),wordByItself:(0,i._t)("zxcvbn|warnings|wordByItself"),namesByThemselves:(0,i._t)("zxcvbn|warnings|namesByThemselves"),commonNames:(0,i._t)("zxcvbn|warnings|commonNames"),userInputs:(0,i._t)("zxcvbn|warnings|userInputs"),pwned:(0,i._t)("zxcvbn|warnings|pwned")},suggestions:{l33t:(0,i._t)("zxcvbn|suggestions|l33t"),reverseWords:(0,i._t)("zxcvbn|suggestions|reverseWords"),allUppercase:(0,i._t)("zxcvbn|suggestions|allUppercase"),capitalization:(0,i._t)("zxcvbn|suggestions|capitalization"),dates:(0,i._t)("zxcvbn|suggestions|dates"),recentYears:(0,i._t)("zxcvbn|suggestions|recentYears"),associatedYears:(0,i._t)("zxcvbn|suggestions|associatedYears"),sequences:(0,i._t)("zxcvbn|suggestions|sequences"),repeated:(0,i._t)("zxcvbn|suggestions|repeated"),longerKeyboardPattern:(0,i._t)("zxcvbn|suggestions|longerKeyboardPattern"),anotherWord:(0,i._t)("zxcvbn|suggestions|anotherWord"),useWords:(0,i._t)("zxcvbn|suggestions|useWords"),noNeed:(0,i._t)("zxcvbn|suggestions|noNeed"),pwned:(0,i._t)("zxcvbn|suggestions|pwned")},timeEstimation:c.A.timeEstimation}}));let a=o.check(n,t);if(n.includes(" ")){const e=o.check(n.replace(/ /g,""),t);e.score<a.score&&(a=e)}return a}}}]);
//# sourceMappingURL=7833.js.map