(()=>{var e={13605:e=>{"use strict";e.exports=function(e){var r=e[1],t=e[3];if(!t)return r;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(t))));return[r].concat(["/*# ".concat("sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n)," */")]).join(`
`)}return[r].join(`
`)}},14299:(e,r,t)=>{"use strict";var n=t(13605),o=t.n(n),s=t(72485);t.n(s)()(o()).push([e.id,":host{margin-left:unset;padding:0 !important;outline:none !important;outline-color:none !important;background-color:rgba(0,0,0,0) !important;border:none !important;box-shadow:none !important;min-width:unset !important;min-height:unset !important;overflow:unset !important;pointer-events:none;position:absolute !important;isolation:unset !important;margin:0 !important;opacity:1;z-index:unset !important;order:0 !important;height:0 !important;width:0 !important;float:left !important;animation:none !important;flex:0 0 0;grid-row:auto/span 1 !important;grid-column:auto/span 1 !important}:host>input{pointer-events:all}button{margin-left:unset;padding:0 !important;outline:none !important;outline-color:none !important;background-color:rgba(0,0,0,0) !important;border:none !important;box-shadow:none !important;min-width:unset !important;min-height:unset !important;overflow:unset !important;pointer-events:all;margin:auto;top:0;right:.3571428571em;opacity:.9;max-width:0;animation:icon-fade-in .25s ease-in-out .05s both !important;transition:opacity .2s ease-in-out;margin-top:0 !important;cursor:pointer !important;position:absolute !important;background-size:cover !important;border-radius:unset !important}button:hover,button:focus,button:active{transform:none !important}button::before{content:none !important}button::after{content:var(--control-count) !important;position:absolute !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;margin:auto !important;width:var(--control-lineheight) !important;color:#fff !important;text-align:center !important;font-family:system-ui,sans-serif !important;line-height:var(--control-lineheight) !important;font-size:var(--control-fontsize) !important;display:block !important;font-weight:bold !important;text-shadow:0 .5px 3px #320dc5 !important;opacity:0;animation:counter-fade-in .15s ease-in-out .15s both !important}button:hover{opacity:1}@keyframes icon-fade-in{from{opacity:0;max-width:0}to{opacity:.9;max-width:2.5em}}@keyframes counter-fade-in{from{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./src/app/content/injections/custom-elements/ProtonPassControl.raw.scss","webpack://./src/app/content/injections/styles/reset.scss"],names:[],mappings:"AAMA,MCLC,iBAAA,CACA,oBAAA,CACA,uBAAA,CACA,6BAAA,CACA,yCAAA,CACA,sBAAA,CACA,0BAAA,CACA,0BAAA,CACA,2BAAA,CACA,yBAAA,CDDA,mBAAA,CACA,4BAAA,CACA,0BAAA,CAGA,mBAAA,CACA,SAAA,CACA,wBAAA,CACA,kBAAA,CACA,mBAAA,CACA,kBAAA,CAEA,qBAAA,CACA,yBAAA,CAGA,UAAA,CAGA,+BAAA,CACA,kCAAA,CAEA,YACC,kBAAA,CAIF,OCnCC,iBAAA,CACA,oBAAA,CACA,uBAAA,CACA,6BAAA,CACA,yCAAA,CACA,sBAAA,CACA,0BAAA,CACA,0BAAA,CACA,2BAAA,CACA,yBAAA,CD6BA,kBAAA,CACA,WAAA,CACA,KAAA,CACA,mBAAA,CACA,UAAA,CACA,WAAA,CACA,4DAAA,CACA,kCAAA,CACA,uBAAA,CACA,yBAAA,CACA,4BAAA,CACA,gCAAA,CACA,8BAAA,CAEA,wCAGC,yBAAA,CAGD,eACC,uBAAA,CAGD,cACC,uCAAA,CACA,4BAAA,CACA,gBAAA,CAAA,kBAAA,CAAA,mBAAA,CAAA,iBAAA,CACA,sBAAA,CACA,0CAAA,CACA,qBAAA,CACA,4BAAA,CACA,2CAAA,CACA,gDAAA,CACA,4CAAA,CACA,wBAAA,CACA,2BAAA,CACA,yCAAA,CACA,SAAA,CACA,+DAAA,CAGD,aACC,SAAA,CAIF,wBACC,KACC,SAAA,CACA,WAAA,CAGD,GACC,UAAA,CACA,eAAA,CAAA,CAIF,2BACC,KACC,SAAA,CAGD,GACC,SAAA,CAAA",sourcesContent:[`$base-font-size: 14 !default;

@use 'sass:meta';
@import '@proton/styles/scss/lib/em';
@import '../styles/reset';

:host {
	@include reset;

	pointer-events: none;
	position: absolute !important;
	isolation: unset !important;

	/* force reset element */
	margin: 0 !important;
	opacity: 1;
	z-index: unset !important;
	order: 0 !important;
	block-size: 0 !important;
	inline-size: 0 !important;
	/* stylelint-disable-next-line */
	float: left !important;
	animation: none !important;

	/* if parent display: flex */
	flex: 0 0 0;

	/* if parent display: grid */
	grid-row: auto / span 1 !important;
	grid-column: auto / span 1 !important;

	> input {
		pointer-events: all;
	}
}

button {
	@include reset;

	pointer-events: all;
	margin: auto;
	inset-block-start: 0;
	inset-inline-end: em(5);
	opacity: 0.9;
	max-inline-size: 0;
	animation: icon-fade-in 0.25s ease-in-out 0.05s both !important;
	transition: opacity 0.2s ease-in-out;
	margin-block-start: 0 !important;
	cursor: pointer !important;
	position: absolute !important;
	background-size: cover !important;
	border-radius: unset !important;

	&:hover,
	&:focus,
	&:active {
		transform: none !important;
	}

	&::before {
		content: none !important;
	}

	&::after {
		content: var(--control-count) !important;
		position: absolute !important;
		inset: 0 !important;
		margin: auto !important;
		inline-size: var(--control-lineheight) !important;
		color: white !important;
		text-align: center !important;
		font-family: system-ui, sans-serif !important;
		line-height: var(--control-lineheight) !important;
		font-size: var(--control-fontsize) !important;
		display: block !important;
		font-weight: bold !important;
		text-shadow: 0 0.5px 3px #320dc5 !important;
		opacity: 0;
		animation: counter-fade-in 0.15s ease-in-out 0.15s both !important;
	}

	&:hover {
		opacity: 1;
	}
}

@keyframes icon-fade-in {
	from {
		opacity: 0;
		max-inline-size: 0;
	}

	to {
		opacity: 0.9;
		max-inline-size: em(35);
	}
}

@keyframes counter-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}
`,`@mixin reset {
	margin-inline-start: unset;
	padding: 0 !important;
	outline: none !important;
	outline-color: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	min-inline-size: unset !important;
	min-block-size: unset !important;
	overflow: unset !important;
}
`],sourceRoot:""}])},35567:(e,r,t)=>{"use strict";t.d(r,{vF:()=>A});var n=t(97886),o=t.n(n),s=t(80262);o().methodFactory=()=>s.A,o().setLevel("INFO",!1);let A=o()},72485:e=>{"use strict";e.exports=function(e){var r=[];return r.toString=function(){return this.map(function(r){var t="",n=void 0!==r[5];return r[4]&&(t+="@supports (".concat(r[4],") {")),r[2]&&(t+="@media ".concat(r[2]," {")),n&&(t+="@layer".concat(r[5].length>0?" ".concat(r[5]):""," {")),t+=e(r),n&&(t+="}"),r[2]&&(t+="}"),r[4]&&(t+="}"),t}).join("")},r.i=function(e,t,n,o,s){"string"==typeof e&&(e=[[null,e,void 0]]);var A={};if(n)for(var a=0;a<this.length;a++){var i=this[a][0];null!=i&&(A[i]=!0)}for(var m=0;m<e.length;m++){var g=[].concat(e[m]);n&&A[g[0]]||(void 0!==s&&(void 0===g[5]||(g[1]="@layer".concat(g[5].length>0?" ".concat(g[5]):""," {").concat(g[1],"}")),g[5]=s),t&&(g[2]&&(g[1]="@media ".concat(g[2]," {").concat(g[1],"}")),g[2]=t),o&&(g[4]?(g[1]="@supports (".concat(g[4],") {").concat(g[1],"}"),g[4]=o):g[4]="".concat(o)),r.push(g))}},r}},77169:(e,r,t)=>{"use strict";let n;t.d(r,{Ay:()=>g,uE:()=>m});var o=t(80320),s=t.n(o),A=t(35567);let a=globalThis,i={allowProxy:!0,globals:{chrome:a.chrome,browser:a.browser}},m=()=>i.allowProxy=!1,g=(n=s(),setTimeout(()=>i.allowProxy&&Object.entries(i.globals).filter(([,e])=>e).forEach(([e,r])=>{a[e]=new Proxy(r,{get(e,r,t){if("app"!==r)return A.vF.error("[Extension::Error] extension API is protected")},set:()=>(A.vF.error("[Extension::Error] extension API is read-only"),!1)})}),0),n);i.globals.chrome},80262:(e,r,t)=>{"use strict";function n(){}t.d(r,{A:()=>n})},80320:function(e,r){var t;"undefined"!=typeof globalThis||"undefined"!=typeof self&&self,void 0===(t=(function(e){"use strict";if(!(globalThis.chrome&&globalThis.chrome.runtime&&globalThis.chrome.runtime.id))throw Error("This script should only be loaded in a browser extension.");globalThis.browser&&globalThis.browser.runtime&&globalThis.browser.runtime.id?e.exports=globalThis.browser:e.exports=(e=>{let r={alarms:{clear:{minArgs:0,maxArgs:1},clearAll:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getAll:{minArgs:0,maxArgs:0}},bookmarks:{create:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},getChildren:{minArgs:1,maxArgs:1},getRecent:{minArgs:1,maxArgs:1},getSubTree:{minArgs:1,maxArgs:1},getTree:{minArgs:0,maxArgs:0},move:{minArgs:2,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeTree:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}},browserAction:{disable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},enable:{minArgs:0,maxArgs:1,fallbackToNoCallback:!0},getBadgeBackgroundColor:{minArgs:1,maxArgs:1},getBadgeText:{minArgs:1,maxArgs:1},getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},openPopup:{minArgs:0,maxArgs:0},setBadgeBackgroundColor:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setBadgeText:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},browsingData:{remove:{minArgs:2,maxArgs:2},removeCache:{minArgs:1,maxArgs:1},removeCookies:{minArgs:1,maxArgs:1},removeDownloads:{minArgs:1,maxArgs:1},removeFormData:{minArgs:1,maxArgs:1},removeHistory:{minArgs:1,maxArgs:1},removeLocalStorage:{minArgs:1,maxArgs:1},removePasswords:{minArgs:1,maxArgs:1},removePluginData:{minArgs:1,maxArgs:1},settings:{minArgs:0,maxArgs:0}},commands:{getAll:{minArgs:0,maxArgs:0}},contextMenus:{remove:{minArgs:1,maxArgs:1},removeAll:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},cookies:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:1,maxArgs:1},getAllCookieStores:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},devtools:{inspectedWindow:{eval:{minArgs:1,maxArgs:2,singleCallbackArg:!1}},panels:{create:{minArgs:3,maxArgs:3,singleCallbackArg:!0},elements:{createSidebarPane:{minArgs:1,maxArgs:1}}}},downloads:{cancel:{minArgs:1,maxArgs:1},download:{minArgs:1,maxArgs:1},erase:{minArgs:1,maxArgs:1},getFileIcon:{minArgs:1,maxArgs:2},open:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},pause:{minArgs:1,maxArgs:1},removeFile:{minArgs:1,maxArgs:1},resume:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},extension:{isAllowedFileSchemeAccess:{minArgs:0,maxArgs:0},isAllowedIncognitoAccess:{minArgs:0,maxArgs:0}},history:{addUrl:{minArgs:1,maxArgs:1},deleteAll:{minArgs:0,maxArgs:0},deleteRange:{minArgs:1,maxArgs:1},deleteUrl:{minArgs:1,maxArgs:1},getVisits:{minArgs:1,maxArgs:1},search:{minArgs:1,maxArgs:1}},i18n:{detectLanguage:{minArgs:1,maxArgs:1},getAcceptLanguages:{minArgs:0,maxArgs:0}},identity:{launchWebAuthFlow:{minArgs:1,maxArgs:1}},idle:{queryState:{minArgs:1,maxArgs:1}},management:{get:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},getSelf:{minArgs:0,maxArgs:0},setEnabled:{minArgs:2,maxArgs:2},uninstallSelf:{minArgs:0,maxArgs:1}},notifications:{clear:{minArgs:1,maxArgs:1},create:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:0},getPermissionLevel:{minArgs:0,maxArgs:0},update:{minArgs:2,maxArgs:2}},pageAction:{getPopup:{minArgs:1,maxArgs:1},getTitle:{minArgs:1,maxArgs:1},hide:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setIcon:{minArgs:1,maxArgs:1},setPopup:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},setTitle:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0},show:{minArgs:1,maxArgs:1,fallbackToNoCallback:!0}},permissions:{contains:{minArgs:1,maxArgs:1},getAll:{minArgs:0,maxArgs:0},remove:{minArgs:1,maxArgs:1},request:{minArgs:1,maxArgs:1}},runtime:{getBackgroundPage:{minArgs:0,maxArgs:0},getPlatformInfo:{minArgs:0,maxArgs:0},openOptionsPage:{minArgs:0,maxArgs:0},requestUpdateCheck:{minArgs:0,maxArgs:0},sendMessage:{minArgs:1,maxArgs:3},sendNativeMessage:{minArgs:2,maxArgs:2},setUninstallURL:{minArgs:1,maxArgs:1}},sessions:{getDevices:{minArgs:0,maxArgs:1},getRecentlyClosed:{minArgs:0,maxArgs:1},restore:{minArgs:0,maxArgs:1}},storage:{local:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}},managed:{get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1}},sync:{clear:{minArgs:0,maxArgs:0},get:{minArgs:0,maxArgs:1},getBytesInUse:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}}},tabs:{captureVisibleTab:{minArgs:0,maxArgs:2},create:{minArgs:1,maxArgs:1},detectLanguage:{minArgs:0,maxArgs:1},discard:{minArgs:0,maxArgs:1},duplicate:{minArgs:1,maxArgs:1},executeScript:{minArgs:1,maxArgs:2},get:{minArgs:1,maxArgs:1},getCurrent:{minArgs:0,maxArgs:0},getZoom:{minArgs:0,maxArgs:1},getZoomSettings:{minArgs:0,maxArgs:1},goBack:{minArgs:0,maxArgs:1},goForward:{minArgs:0,maxArgs:1},highlight:{minArgs:1,maxArgs:1},insertCSS:{minArgs:1,maxArgs:2},move:{minArgs:2,maxArgs:2},query:{minArgs:1,maxArgs:1},reload:{minArgs:0,maxArgs:2},remove:{minArgs:1,maxArgs:1},removeCSS:{minArgs:1,maxArgs:2},sendMessage:{minArgs:2,maxArgs:3},setZoom:{minArgs:1,maxArgs:2},setZoomSettings:{minArgs:1,maxArgs:2},update:{minArgs:1,maxArgs:2}},topSites:{get:{minArgs:0,maxArgs:0}},webNavigation:{getAllFrames:{minArgs:1,maxArgs:1},getFrame:{minArgs:1,maxArgs:1}},webRequest:{handlerBehaviorChanged:{minArgs:0,maxArgs:0}},windows:{create:{minArgs:0,maxArgs:1},get:{minArgs:1,maxArgs:2},getAll:{minArgs:0,maxArgs:1},getCurrent:{minArgs:0,maxArgs:1},getLastFocused:{minArgs:0,maxArgs:1},remove:{minArgs:1,maxArgs:1},update:{minArgs:2,maxArgs:2}}};if(0===Object.keys(r).length)throw Error("api-metadata.json has not been included in browser-polyfill");class t extends WeakMap{constructor(e,r){super(r),this.createItem=e}get(e){return this.has(e)||this.set(e,this.createItem(e)),super.get(e)}}let n=(r,t)=>(...n)=>{e.runtime.lastError?r.reject(Error(e.runtime.lastError.message)):t.singleCallbackArg||n.length<=1&&!1!==t.singleCallbackArg?r.resolve(n[0]):r.resolve(n)},o=e=>1==e?"argument":"arguments",s=(e,r,t)=>new Proxy(r,{apply:(r,n,o)=>t.call(n,e,...o)}),A=Function.call.bind(Object.prototype.hasOwnProperty),a=(e,r={},t={})=>{let i=Object.create(null);return new Proxy(Object.create(e),{has:(r,t)=>t in e||t in i,get(m,g,l){if(g in i)return i[g];if(!(g in e))return;let c=e[g];if("function"==typeof c)if("function"==typeof r[g])c=s(e,e[g],r[g]);else if(A(t,g)){let r,A=(r=t[g],function(e,...t){if(t.length<r.minArgs)throw Error(`Expected at least ${r.minArgs} ${o(r.minArgs)} for ${g}(), got ${t.length}`);if(t.length>r.maxArgs)throw Error(`Expected at most ${r.maxArgs} ${o(r.maxArgs)} for ${g}(), got ${t.length}`);return new Promise((o,s)=>{if(r.fallbackToNoCallback)try{e[g](...t,n({resolve:o,reject:s},r))}catch(n){console.warn(`${g} API method doesn't seem to support the callback parameter, falling back to call it without a callback: `,n),e[g](...t),r.fallbackToNoCallback=!1,r.noCallback=!0,o()}else r.noCallback?(e[g](...t),o()):e[g](...t,n({resolve:o,reject:s},r))})});c=s(e,e[g],A)}else c=c.bind(e);else if("object"==typeof c&&null!==c&&(A(r,g)||A(t,g)))c=a(c,r[g],t[g]);else{if(!A(t,"*"))return Object.defineProperty(i,g,{configurable:!0,enumerable:!0,get:()=>e[g],set(r){e[g]=r}}),c;c=a(c,r[g],t["*"])}return i[g]=c,c},set:(r,t,n,o)=>(t in i?i[t]=n:e[t]=n,!0),defineProperty:(e,r,t)=>Reflect.defineProperty(i,r,t),deleteProperty:(e,r)=>Reflect.deleteProperty(i,r)})},i=e=>({addListener(r,t,...n){r.addListener(e.get(t),...n)},hasListener:(r,t)=>r.hasListener(e.get(t)),removeListener(r,t){r.removeListener(e.get(t))}}),m=new t(e=>"function"!=typeof e?e:function(r){e(a(r,{},{getContent:{minArgs:0,maxArgs:0}}))}),g=new t(e=>"function"!=typeof e?e:function(r,t,n){let o,s,A,a=!1,i=new Promise(e=>{s=function(r){a=!0,e(r)}});try{A=e(r,t,s)}catch(e){A=Promise.reject(e)}let m=!0!==A&&(o=A)&&"object"==typeof o&&"function"==typeof o.then;return(!0===A||!!m||!!a)&&((m?A:i).then(e=>{n(e)},e=>{n({__mozWebExtensionPolyfillReject__:!0,message:e&&(e instanceof Error||"string"==typeof e.message)?e.message:"An unexpected error occurred"})}).catch(e=>{console.error("Failed to send onMessage rejected reply",e)}),!0)}),l=({reject:r,resolve:t},n)=>{e.runtime.lastError?"The message port closed before a response was received."===e.runtime.lastError.message?t():r(Error(e.runtime.lastError.message)):n&&n.__mozWebExtensionPolyfillReject__?r(Error(n.message)):t(n)},c=(e,r,t,...n)=>{if(n.length<r.minArgs)throw Error(`Expected at least ${r.minArgs} ${o(r.minArgs)} for ${e}(), got ${n.length}`);if(n.length>r.maxArgs)throw Error(`Expected at most ${r.maxArgs} ${o(r.maxArgs)} for ${e}(), got ${n.length}`);return new Promise((e,r)=>{let o=l.bind(null,{resolve:e,reject:r});n.push(o),t.sendMessage(...n)})},p={devtools:{network:{onRequestFinished:i(m)}},runtime:{onMessage:i(g),onMessageExternal:i(g),sendMessage:c.bind(null,"sendMessage",{minArgs:1,maxArgs:3})},tabs:{sendMessage:c.bind(null,"sendMessage",{minArgs:2,maxArgs:3})}},u={clear:{minArgs:1,maxArgs:1},get:{minArgs:1,maxArgs:1},set:{minArgs:1,maxArgs:1}};return r.privacy={network:{"*":u},services:{"*":u},websites:{"*":u}},a(e,p,r)})(chrome)}).apply(r,[e]))||(e.exports=t)},97886:function(e,r,t){var n,o;!function(s,A){"use strict";void 0===(o="function"==typeof(n=A)?n.call(r,t,r,e):n)||(e.exports=o)}(0,function(){"use strict";var e=function(){},r="undefined",t=typeof window!==r&&typeof window.navigator!==r&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],o={},s=null;function A(e,r){var t=e[r];if("function"==typeof t.bind)return t.bind(e);try{return Function.prototype.bind.call(t,e)}catch(r){return function(){return Function.prototype.apply.apply(t,[e,arguments])}}}function a(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function i(){for(var t=this.getLevel(),o=0;o<n.length;o++){var s=n[o];this[s]=o<t?e:this.methodFactory(s,t,this.name)}if(this.log=this.debug,typeof console===r&&t<this.levels.SILENT)return"No console available for logging"}function m(e){return function(){typeof console!==r&&(i.call(this),this[e].apply(this,arguments))}}function g(n,o,s){var i;return"debug"===(i=n)&&(i="log"),typeof console!==r&&("trace"===i&&t?a:void 0!==console[i]?A(console,i):void 0!==console.log?A(console,"log"):e)||m.apply(this,arguments)}function l(e,t){var A,a,m,l=this,c="loglevel";function p(){var e;if(typeof window!==r&&c){try{e=window.localStorage[c]}catch(e){}if(typeof e===r)try{var t=window.document.cookie,n=encodeURIComponent(c),o=t.indexOf(n+"=");-1!==o&&(e=/^([^;]+)/.exec(t.slice(o+n.length+1))[1])}catch(e){}return void 0===l.levels[e]&&(e=void 0),e}}function u(e){var r=e;if("string"==typeof r&&void 0!==l.levels[r.toUpperCase()]&&(r=l.levels[r.toUpperCase()]),"number"==typeof r&&r>=0&&r<=l.levels.SILENT)return r;throw TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?c+=":"+e:"symbol"==typeof e&&(c=void 0),l.name=e,l.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},l.methodFactory=t||g,l.getLevel=function(){return null!=m?m:null!=a?a:A},l.setLevel=function(e,t){return m=u(e),!1!==t&&function(e){var t=(n[e]||"silent").toUpperCase();if(typeof window!==r&&c){try{window.localStorage[c]=t;return}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+t+";"}catch(e){}}}(m),i.call(l)},l.setDefaultLevel=function(e){a=u(e),p()||l.setLevel(e,!1)},l.resetLevel=function(){if(m=null,typeof window!==r&&c){try{window.localStorage.removeItem(c)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}i.call(l)},l.enableAll=function(e){l.setLevel(l.levels.TRACE,e)},l.disableAll=function(e){l.setLevel(l.levels.SILENT,e)},l.rebuild=function(){if(s!==l&&(A=u(s.getLevel())),i.call(l),s===l)for(var e in o)o[e].rebuild()},A=u(s?s.getLevel():"WARN");var C=p();null!=C&&(m=u(C)),i.call(l)}(s=new l).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw TypeError("You must supply a name when creating a logger.");var r=o[e];return r||(r=o[e]=new l(e,s.methodFactory)),r};var c=typeof window!==r?window.log:void 0;return s.noConflict=function(){return typeof window!==r&&window.log===s&&(window.log=c),s},s.getLoggers=function(){return o},s.default=s,s})}},r={};function t(n){var o=r[n];if(void 0!==o)return o.exports;var s=r[n]={id:n,exports:{}};return e[n].call(s.exports,s,s.exports,t),s.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.d=(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{"use strict";let e=((r={}).ACCOUNT_EXTENSION="auth-ext",r.ACCOUNT_FORK="fork",r.ACCOUNT_ONBOARDING="pass-onboarding",r.ACCOUNT_PROBE="pass-installed",r.ALIAS_CREATE="ALIAS_CREATE",r.ALIAS_OPTIONS="ALIAS_OPTIONS",r.AUTH_CHECK="AUTH_CHECK",r.AUTH_CONFIRM_PASSWORD="AUTH_CONFIRM_PASSWORD",r.AUTH_INIT="AUTH_INIT",r.AUTH_PULL_FORK="AUTH_PULL_FORK",r.AUTH_UNLOCK="AUTH_UNLOCK",r.AUTOFILL_CHECK_FORM="AUTOFILL_CHECK_FORM",r.AUTOFILL_IDENTITY="AUTOFILL_IDENTITY",r.AUTOFILL_IDENTITY_QUERY="AUTOFILL_IDENTITY_QUERY",r.AUTOFILL_LOGIN="AUTOFILL_LOGIN",r.AUTOFILL_LOGIN_QUERY="AUTOFILL_LOGIN_QUERY",r.AUTOFILL_OTP_CHECK="AUTOFILL_OTP_CHECK",r.AUTOFILL_SYNC="AUTOFILL_SYNC",r.AUTOSAVE_REQUEST="AUTOSAVE_REQUEST",r.AUTOSUGGEST_PASSWORD="AUTOSUGGEST_PASSWORD",r.B2B_EVENT="B2B_EVENT",r.CLIENT_INIT="CLIENT_INIT",r.CLIPBOARD_OFFSCREEN_READ="CLIPBOARD_OFFSCREEN_READ",r.CLIPBOARD_OFFSCREEN_WRITE="CLIPBOARD_OFFSCREEN_WRITE",r.CLIPBOARD_AUTOCLEAR="CLIPBOARD_AUTOCLEAR",r.DEBUG="DEBUG",r.FEATURE_FLAGS_UPDATE="FEATURE_FLAGS_UPDATE",r.FETCH_ABORT="FETCH_ABORT",r.FETCH_DOMAINIMAGE="FETCH_DOMAINIMAGE",r.FORM_ENTRY_COMMIT="FORM_ENTRY_COMMIT",r.FORM_ENTRY_REQUEST="FORM_ENTRY_REQUEST",r.FORM_ENTRY_STAGE="FORM_ENTRY_STAGE",r.FORM_ENTRY_STASH="FORM_ENTRY_STASH",r.FORM_STATUS="FORM_STATUS",r.FS_WRITE="FS_WRITE",r.FS_ERROR="FS_ERROR",r.LOAD_CONTENT_SCRIPT="LOAD_CONTENT_SCRIPT",r.LOCALE_UPDATED="LOCALE_UPDATED",r.LOG_EVENT="LOG_EVENT",r.LOG_REQUEST="LOG_REQUEST",r.MONITOR_2FAS="MONITOR_2FAS",r.MONITOR_WEAK_PASSWORDS="MONITOR_WEAK_PASSWORDS",r.NOTIFICATION="NOTIFICATION",r.OTP_CODE_GENERATE="OTP_CODE_GENERATE",r.PASS_CORE_RPC="PASS_CORE_RPC",r.PASSKEY_CREATE="PASSKEY_CREATE",r.PASSKEY_GET="PASSKEY_GET",r.PASSKEY_INTERCEPT="PASSKEY_INTERCEPT",r.PASSKEY_QUERY="PASSKEY_QUERY",r.PAUSE_WEBSITE="PAUSE_WEBSITE",r.PERMISSIONS_UPDATE="PERMISSIONS_UPDATE",r.PING="PING",r.POPUP_INIT="POPUP_INIT",r.PORT_FORWARDING_MESSAGE="PORT_FORWARDING",r.PORT_UNAUTHORIZED="PORT_UNAUTHORIZED",r.REGISTER_ELEMENTS="REGISTER_ELEMENTS",r.RESOLVE_EXTENSION_KEY="RESOLVE_EXTENSION_KEY",r.RESOLVE_USER="RESOLVE_USER",r.SENTRY_CS_EVENT="SENTRY_CS_EVENT",r.SETTINGS_UPDATE="SETTINGS_UPDATE",r.SPOTLIGHT_ACK="SPOTLIGHT_ACK",r.SPOTLIGHT_CHECK="SPOTLIGHT_CHECK",r.SPOTLIGHT_REQUEST="SPOTLIGHT_REQUEST",r.STORE_DISPATCH="STORE_DISPATCH",r.TABS_QUERY="TABS_QUERY",r.TELEMETRY_EVENT="TELEMETRY_EVENT",r.UNLOAD_CONTENT_SCRIPT="UNLOAD_CONTENT_SCRIPT",r.UPDATE_AVAILABLE="UPDATE_AVAILABLE",r.VAULTS_QUERY="VAULTS_QUERY",r.WEBSITE_RULES_REQUEST="WEBSITE_RULES_REQUEST",r.WORKER_RELOAD="WORKER_RELOAD",r.WORKER_STATE_CHANGE="WORKER_STATE_CHANGE",r);var r,n=t(77169);class o extends Error{name="CriticalMessageResponseError";message="Worker failed to respond"}let s=async e=>{try{let r=await n.Ay.runtime.sendMessage(n.Ay.runtime.id,e);if(void 0===r)throw new o;return r}catch(e){return{type:"error",error:e instanceof Error?e.message:"Unknown error",critical:e instanceof o}}};s.on=async(e,r)=>r(await s(e)),s.onSuccess=async(e,r)=>s.on(e,e=>{"success"===e.type&&r(e)});let A=e=>r=>({...r,sender:e,version:"1.33.1"});A("background"),A("popup"),A("page");let a=A("contentscript");A("offscreen");var i=t(80262);let m="data-protonpass-base-css";t(14299);let g=()=>s(a({type:e.UNLOAD_CONTENT_SCRIPT}));(async()=>{try{let r=document.ownerDocument||document;if(!r?.body)return;await new Promise(e=>{let r,t,n=(r=[],t=e=>e?.cancel?.(),{addListener:(e,t,n,o)=>{if(void 0!==e){let s={kind:"listener",element:e,type:t,fn:n};return r.push(s),e.addEventListener(t,n,o),()=>{e.removeEventListener(t,n);let o=r.indexOf(s);r.splice(o,1)}}return i.A},addObserver:(e,n,o)=>{let s=new MutationObserver(n),A=s.disconnect;return s.disconnect=()=>{t(n),A.bind(s)()},r.push({kind:"observer",observer:s}),s.observe(e,o),s},addResizeObserver:(e,n)=>{let o=new ResizeObserver(n),s=o.disconnect;o.disconnect=()=>{t(n),s.bind(o)()},r.push({kind:"resizeObserver",observer:o}),o.observe(e)},removeAll:()=>{r.forEach(e=>{switch(e.kind){case"observer":case"resizeObserver":return e.observer.disconnect();case"listener":return t(e.fn),e.element.removeEventListener(e.type,e.fn)}}),r.length=0}}),o=()=>{("complete"===document.readyState||"interactive"===document.readyState)&&(n.removeAll(),e())};n.addListener(window,"load",()=>{n.removeAll(),e()}),n.addListener(document,"readystatechange",o),o()}),(({root:e,control:r})=>{document.querySelectorAll(`${e}, ${r}`).forEach(e=>e.remove()),document.querySelectorAll(`input[${m}]`).forEach(e=>{let r;Object.entries((r=e.getAttribute(m))?JSON.parse(r):{}).forEach(([r,t])=>t?e.style.setProperty(r,t):e.style.removeProperty(r)),e.removeAttribute(m)})})({root:'[data-protonpass-role="root"]',control:'[data-protonpass-role="icon"]'}),await g(),await s(a({type:e.LOAD_CONTENT_SCRIPT}))}catch(e){g()}})()})(),(()=>{"use strict";(0,t(77169).uE)()})()})();
