Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6 System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64 User : User ( 0) PHP Version : 7.4.6 Disable Function : NONE Directory : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/ |
//{"name":"DarkWebMonitor","version":"1.2.361","created":"2021-09-06T13:05:40.463Z"} import{burgerTracker as e,windowApi as t,napiTracker as n,eventer as s,serviceRequest as i,onlineChecker as o,importModule as l}from"./napi.js";import{nls as a,moment as r}from"./i18n.js";import{productModel as c,lifAccount as u,settingsService as d,ipmService as h}from"./napiExtensions.js";import{TabableToggler as p,trapTabNavigation as m,stringUtils as g}from"./libs.js";function v(){}function k(e){return e()}function b(){return Object.create(null)}function f(e){e.forEach(k)}function _(e){return"function"==typeof e}function w(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function $(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function y(e,t,n){e.$$.on_destroy.push($(t,n))}function x(e,t,n,s){if(e){const i=M(e,t,n,s);return e[0](i)}}function M(e,t,n,s){return e[1]&&s?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](s(t))):n.ctx}function z(e,t,n,s,i,o,l){const a=function(e,t,n,s){if(e[2]&&s){const i=e[2](s(n));if(void 0===t.dirty)return i;if("object"==typeof i){const e=[],n=Math.max(t.dirty.length,i.length);for(let s=0;s<n;s+=1)e[s]=t.dirty[s]|i[s];return e}return t.dirty|i}return t.dirty}(t,s,i,o);if(a){const i=M(t,n,s,l);e.p(i,a)}}function E(e){return e&&_(e.destroy)?e.destroy:v}function C(e,t){e.appendChild(t)}function D(e,t,n){e.insertBefore(t,n||null)}function I(e){e.parentNode.removeChild(e)}function q(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function W(e){return document.createElement(e)}function T(e){return document.createTextNode(e)}function L(){return T(" ")}function S(){return T("")}function H(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function P(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function O(e,t,n){t in e?e[t]=n:P(e,t,n)}function j(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function A(e,t,n,s){e.style.setProperty(t,n,s?"important":"")}function B(e,t,n){e.classList[n?"add":"remove"](t)}class N{constructor(e=null){this.a=e,this.e=this.n=null}m(e,t,n=null){this.e||(this.e=W(t.nodeName),this.t=t,this.h(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)D(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(I)}}let U;function R(e){U=e}function F(){if(!U)throw new Error("Function called outside component initialization");return U}function V(e){F().$$.on_mount.push(e)}function J(e){F().$$.on_destroy.push(e)}function G(){const e=F();return(t,n)=>{const s=e.$$.callbacks[t];if(s){const i=function(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}(t,n);s.slice().forEach((t=>{t.call(e,i)}))}}}const X=[],Y=[],Z=[],K=[],Q=Promise.resolve();let ee=!1;function te(e){Z.push(e)}let ne=!1;const se=new Set;function ie(){if(!ne){ne=!0;do{for(let e=0;e<X.length;e+=1){const t=X[e];R(t),oe(t.$$)}for(R(null),X.length=0;Y.length;)Y.pop()();for(let e=0;e<Z.length;e+=1){const t=Z[e];se.has(t)||(se.add(t),t())}Z.length=0}while(X.length);for(;K.length;)K.pop()();ee=!1,ne=!1,se.clear()}}function oe(e){if(null!==e.fragment){e.update(),f(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(te)}}const le=new Set;let ae;function re(){ae={r:0,c:[],p:ae}}function ce(){ae.r||f(ae.c),ae=ae.p}function ue(e,t){e&&e.i&&(le.delete(e),e.i(t))}function de(e,t,n,s){if(e&&e.o){if(le.has(e))return;le.add(e),ae.c.push((()=>{le.delete(e),s&&(n&&e.d(1),s())})),e.o(t)}}const he="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function pe(e){e&&e.c()}function me(e,t,n,s){const{fragment:i,on_mount:o,on_destroy:l,after_update:a}=e.$$;i&&i.m(t,n),s||te((()=>{const t=o.map(k).filter(_);l?l.push(...t):f(t),e.$$.on_mount=[]})),a.forEach(te)}function ge(e,t){const n=e.$$;null!==n.fragment&&(f(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ve(e,t){-1===e.$$.dirty[0]&&(X.push(e),ee||(ee=!0,Q.then(ie)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ke(e,t,n,s,i,o,l=[-1]){const a=U;R(e);const r=e.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:b(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:b(),dirty:l,skip_bound:!1};let c=!1;if(r.ctx=n?n(e,t.props||{},((t,n,...s)=>{const o=s.length?s[0]:n;return r.ctx&&i(r.ctx[t],r.ctx[t]=o)&&(!r.skip_bound&&r.bound[t]&&r.bound[t](o),c&&ve(e,t)),n})):[],r.update(),c=!0,f(r.before_update),r.fragment=!!s&&s(r.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);r.fragment&&r.fragment.l(e),e.forEach(I)}else r.fragment&&r.fragment.c();t.intro&&ue(e.$$.fragment),me(e,t.target,t.anchor,t.customElement),ie()}R(a)}class be{$destroy(){ge(this,1),this.$destroy=v}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const{document:fe}=he;const _e=e=>({}),we=e=>({}),$e=e=>({}),ye=e=>({}),xe=e=>({}),Me=e=>({}),ze=e=>({}),Ee=e=>({}),Ce=e=>({}),De=e=>({}),Ie=e=>({}),qe=e=>({});function We(e){let t,n,s,i,o;const l=[Le,Te],a=[];function r(e,t){return""!=e[0]?0:1}return t=r(e),n=a[t]=l[t](e),{c(){n.c(),s=L(),i=W("kin-loading"),O(i,"fullscreen","true"),O(i,"class","svelte-13u5uhu")},m(e,n){a[t].m(e,n),D(e,s,n),D(e,i,n),o=!0},p(e,i){let o=t;t=r(e),t===o?a[t].p(e,i):(re(),de(a[o],1,1,(()=>{a[o]=null})),ce(),n=a[t],n?n.p(e,i):(n=a[t]=l[t](e),n.c()),ue(n,1),n.m(s.parentNode,s))},i(e){o||(ue(n),o=!0)},o(e){de(n),o=!1},d(e){a[t].d(e),e&&I(s),e&&I(i)}}}function Te(e){let t,n;const s=e[16]["page-title"],i=x(s,e,e[15],qe);return{c(){t=W("div"),i&&i.c(),P(t,"class","kin_loading__title svelte-13u5uhu"),A(t,"color","transparent")},m(e,s){D(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&z(i,s,e,e[15],t,Ie,qe)},i(e){n||(ue(i,e),n=!0)},o(e){de(i,e),n=!1},d(e){e&&I(t),i&&i.d(e)}}}function Le(e){let t;return{c(){t=W("h1"),P(t,"class","kin_loading__title svelte-13u5uhu"),A(t,"color","transparent")},m(n,s){D(n,t,s),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:v,o:v,d(e){e&&I(t)}}}function Se(e){let t,n;const s=e[16]["page-title"],i=x(s,e,e[15],Ee);return{c(){t=W("div"),i&&i.c(),P(t,"class","kin_header__title svelte-13u5uhu")},m(e,s){D(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&z(i,s,e,e[15],t,ze,Ee)},i(e){n||(ue(i,e),n=!0)},o(e){de(i,e),n=!1},d(e){e&&I(t),i&&i.d(e)}}}function He(e){let t;return{c(){t=W("h1"),P(t,"class","kin_header__title svelte-13u5uhu")},m(n,s){D(n,t,s),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:v,o:v,d(e){e&&I(t)}}}function Pe(e){let t,n,s;const i=e[16].controls,o=x(i,e,e[15],Me);let l=e[4]&&e[5]&&Oe(e);return{c(){t=W("div"),o&&o.c(),n=L(),l&&l.c(),P(t,"class","kin_header__controls svelte-13u5uhu")},m(e,i){D(e,t,i),o&&o.m(t,null),C(t,n),l&&l.m(t,null),s=!0},p(e,n){o&&o.p&&32768&n&&z(o,i,e,e[15],n,xe,Me),e[4]&&e[5]?l?l.p(e,n):(l=Oe(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},i(e){s||(ue(o,e),s=!0)},o(e){de(o,e),s=!1},d(e){e&&I(t),o&&o.d(e),l&&l.d()}}}function Oe(e){let t,n;return{c(){t=W("div"),n=T(e[5]),P(t,"class","kin_header__tooltip tooltip -onboarding -arrow-top svelte-13u5uhu")},m(e,s){D(e,t,s),C(t,n)},p(e,t){32&t&&j(n,e[5])},d(e){e&&I(t)}}}function je(e){let t,n,s,i;return{c(){t=W("button"),n=W("kin-icon"),O(n,"name","icon-s-controls-arrow-left"),O(n,"size","20"),O(n,"class","svelte-13u5uhu"),P(t,"class","kin_back-btn svelte-13u5uhu"),P(t,"title",a("global.goBack"))},m(o,l){D(o,t,l),C(t,n),s||(i=H(t,"click",e[17]),s=!0)},p:v,d(e){e&&I(t),s=!1,i()}}}function Ae(e){let t,n,s;return{c(){t=W("a"),n=W("kin-icon"),O(n,"name","icon-s-controls-arrow-left"),O(n,"size","20"),O(n,"class","svelte-13u5uhu"),P(t,"class","kin_back-btn svelte-13u5uhu"),P(t,"href",s=e[9]||"#Dashboard"),P(t,"title",a("global.goBack"))},m(e,s){D(e,t,s),C(t,n)},p(e,n){512&n&&s!==(s=e[9]||"#Dashboard")&&P(t,"href",s)},d(e){e&&I(t)}}}function Be(e){let t,n;return{c(){t=W("a"),n=W("kin-icon"),O(n,"name","icon-s-settings-button"),O(n,"size","20"),O(n,"class","svelte-13u5uhu"),P(t,"class","kin_settings-btn svelte-13u5uhu"),P(t,"href",e[1]),P(t,"title",a("settings"))},m(e,s){D(e,t,s),C(t,n)},p(e,n){2&n&&P(t,"href",e[1])},d(e){e&&I(t)}}}function Ne(e){let t,n,s,i;const o=e[16]["page-content"],l=x(o,e,e[15],we);return{c(){t=W("div"),l&&l.c(),P(t,"class","kin_page__content svelte-13u5uhu"),B(t,"-disabled",e[4])},m(o,a){D(o,t,a),l&&l.m(t,null),n=!0,s||(i=E(e[13].call(null,t)),s=!0)},p(e,n){l&&l.p&&32768&n&&z(l,o,e,e[15],n,_e,we),16&n&&B(t,"-disabled",e[4])},i(e){n||(ue(l,e),n=!0)},o(e){de(l,e),n=!1},d(e){e&&I(t),l&&l.d(e),s=!1,i()}}}function Ue(e){let t,n;const s=e[16].upsell,i=x(s,e,e[15],ye);return{c(){t=W("div"),i&&i.c(),P(t,"class","kin_page__content svelte-13u5uhu")},m(e,s){D(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&z(i,s,e,e[15],t,$e,ye)},i(e){n||(ue(i,e),n=!0)},o(e){de(i,e),n=!1},d(e){e&&I(t),i&&i.d(e)}}}function Re(e){let t,n,s,i,o,l,a,r,c,u,d,h,p,m,g,v,k,b=e[10]&&We(e);const f=e[16].breadcrumbs,_=x(f,e,e[15],De),w=[He,Se],$=[];function y(e,t){return e[0]?0:1}r=y(e),c=$[r]=w[r](e);let M=!e[3]&&Pe(e);function E(e,t){return e[7]&&!e[8]?Ae:e[8]?je:void 0}let q=E(e),T=q&&q(e),S=e[1]&&!e[3]&&Be(e);const H=[Ue,Ne],O=[];function j(e,t){return e[3]?0:1}return m=j(e),g=O[m]=H[m](e),{c(){t=W("div"),b&&b.c(),n=L(),s=W("div"),i=W("header"),o=W("div"),_&&_.c(),l=L(),a=W("div"),c.c(),u=L(),M&&M.c(),d=L(),T&&T.c(),h=L(),S&&S.c(),p=L(),g.c(),P(o,"class","kin_header__crumbs crumbs svelte-13u5uhu"),P(a,"class","kin_header__content svelte-13u5uhu"),P(i,"class","kin_header svelte-13u5uhu"),P(s,"class","svelte-13u5uhu"),B(s,"invisible",e[10]),P(t,"class",v="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-13u5uhu")},m(e,c){D(e,t,c),b&&b.m(t,null),C(t,n),C(t,s),C(s,i),C(i,o),_&&_.m(o,null),C(i,l),C(i,a),$[r].m(a,null),C(a,u),M&&M.m(a,null),C(i,d),T&&T.m(i,null),C(i,h),S&&S.m(i,null),C(s,p),O[m].m(s,null),k=!0},p(e,[o]){e[10]?b?(b.p(e,o),1024&o&&ue(b,1)):(b=We(e),b.c(),ue(b,1),b.m(t,n)):b&&(re(),de(b,1,1,(()=>{b=null})),ce()),_&&_.p&&32768&o&&z(_,f,e,e[15],o,Ce,De);let l=r;r=y(e),r===l?$[r].p(e,o):(re(),de($[l],1,1,(()=>{$[l]=null})),ce(),c=$[r],c?c.p(e,o):(c=$[r]=w[r](e),c.c()),ue(c,1),c.m(a,u)),e[3]?M&&(re(),de(M,1,1,(()=>{M=null})),ce()):M?(M.p(e,o),8&o&&ue(M,1)):(M=Pe(e),M.c(),ue(M,1),M.m(a,null)),q===(q=E(e))&&T?T.p(e,o):(T&&T.d(1),T=q&&q(e),T&&(T.c(),T.m(i,h))),e[1]&&!e[3]?S?S.p(e,o):(S=Be(e),S.c(),S.m(i,null)):S&&(S.d(1),S=null);let d=m;m=j(e),m===d?O[m].p(e,o):(re(),de(O[d],1,1,(()=>{O[d]=null})),ce(),g=O[m],g?g.p(e,o):(g=O[m]=H[m](e),g.c()),ue(g,1),g.m(s,null)),1024&o&&B(s,"invisible",e[10]),(!k||2116&o&&v!==(v="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-13u5uhu"))&&P(t,"class",v)},i(e){k||(ue(b),ue(_,e),ue(c),ue(M),ue(g),k=!0)},o(e){de(b),de(_,e),de(c),de(M),de(g),k=!1},d(e){e&&I(t),b&&b.d(),_&&_.d(e),$[r].d(),M&&M.d(),T&&T.d(),S&&S.d(),O[m].d()}}}function Fe(e,t,n){let{$$slots:s={},$$scope:i}=t,{heading:o}=t,{settingsUrl:l}=t,{cssCls:a}=t,{upsell:r=!1}=t,{inactive:c=!1}=t,{inactiveMsg:u}=t,{layout:d}=t,{back:h=!0}=t,{backEvent:m=!1}=t,{backHash:g}=t,{loading:v=!1}=t;const k=G();let b,f="ltr";V((()=>{n(11,f=document.body.dir)})),J((()=>{n(11,f=null)}));return e.$$set=e=>{"heading"in e&&n(0,o=e.heading),"settingsUrl"in e&&n(1,l=e.settingsUrl),"cssCls"in e&&n(2,a=e.cssCls),"upsell"in e&&n(3,r=e.upsell),"inactive"in e&&n(4,c=e.inactive),"inactiveMsg"in e&&n(5,u=e.inactiveMsg),"layout"in e&&n(6,d=e.layout),"back"in e&&n(7,h=e.back),"backEvent"in e&&n(8,m=e.backEvent),"backHash"in e&&n(9,g=e.backHash),"loading"in e&&n(10,v=e.loading),"$$scope"in e&&n(15,i=e.$$scope)},e.$$.update=()=>{16400&e.$$.dirty&&b&&b.set(!c)},[o,l,a,r,c,u,d,h,m,g,v,f,k,function(e){return n(14,b=new p(e)),{destroy:()=>{b.destroy(),n(14,b=null)}}},b,i,s,()=>k("backClick")]}class Ve extends be{constructor(e){var t;super(),fe.getElementById("svelte-13u5uhu-style")||((t=W("style")).id="svelte-13u5uhu-style",t.textContent=".invisible.svelte-13u5uhu.svelte-13u5uhu{display:none}.svelte-13u5uhu.svelte-13u5uhu,.svelte-13u5uhu.svelte-13u5uhu:before,.svelte-13u5uhu.svelte-13u5uhu:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.kin_page.svelte-13u5uhu.svelte-13u5uhu{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--page-background);overflow:hidden}.kin_loading__title.svelte-13u5uhu.svelte-13u5uhu{position:absolute;opacity:0.01}.kin_header.svelte-13u5uhu.svelte-13u5uhu{padding:1.5rem var(--page-padding) 0;height:var(--header-height);position:relative;text-align:var(--page-header-align)}.kin_header__crumbs.svelte-13u5uhu.svelte-13u5uhu,.kin_header__content.svelte-13u5uhu.svelte-13u5uhu{position:absolute;left:var(--page-padding);right:var(--page-padding)}.kin_header__crumbs.svelte-13u5uhu.svelte-13u5uhu{display:var(--breadcrumbs-vis)}.kin_header__content.svelte-13u5uhu.svelte-13u5uhu{bottom:1.1rem}.kin_header__title.svelte-13u5uhu.svelte-13u5uhu,.kin_header__controls.svelte-13u5uhu.svelte-13u5uhu{display:inline-block;vertical-align:middle;position:relative}.kin_header__title.svelte-13u5uhu.svelte-13u5uhu{margin-top:0;margin-bottom:0;padding:0;line-height:1.1;font-size:var(--font-size-header);font-weight:var(--font-weight-h1);max-width:100%}.kin_header__tooltip.svelte-13u5uhu.svelte-13u5uhu{position:absolute;width:24rem;margin-top:calc(var(--switch-height) + 1.5rem);padding-top:1.2rem;padding-bottom:1.2rem;z-index:20;transform:translateX(-50%);left:50%}.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu{position:absolute;left:0;top:var(--back-button-top);border:0;background-color:var(--ds-on-background-extra-light);transition:background-color 0.2s, width 0.2s;cursor:pointer;color:inherit;text-decoration:none;width:4.8rem;height:var(--back-button-height);border-radius:0 var(--back-button-height) var(--back-button-height) 0;display:flex;align-items:center;justify-content:center;z-index:9}.kin_back-btn.svelte-13u5uhu kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu kin-icon.svelte-13u5uhu{opacity:0.75}.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu:focus,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu:focus,.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu:hover,.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu:hover{width:5.6rem;background-color:var(--ds-on-background-light);outline:0}.kin_back-btn.svelte-13u5uhu:focus kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu:focus kin-icon.svelte-13u5uhu,.kin_back-btn.svelte-13u5uhu:hover kin-icon.svelte-13u5uhu,.kin_settings-btn.svelte-13u5uhu:hover kin-icon.svelte-13u5uhu{opacity:1}.kin_settings-btn.svelte-13u5uhu.svelte-13u5uhu{left:auto;right:0;border-radius:var(--back-button-height) 0 0 var(--back-button-height)}.kin_settings-btn__tooltip.svelte-13u5uhu.svelte-13u5uhu{display:none;position:absolute;right:105%}.kin_back-btn.svelte-13u5uhu.svelte-13u5uhu{display:var(--back-btn-vis)}.kin_back-btn.-static.svelte-13u5uhu.svelte-13u5uhu{position:fixed;top:6.4rem}.kin_page__content.svelte-13u5uhu.svelte-13u5uhu{position:absolute;top:var(--header-height);right:0;bottom:0;left:0;display:block}.kin_page__content.-disabled.svelte-13u5uhu.svelte-13u5uhu{opacity:0.2;pointer-events:none}.kin_upsell.svelte-13u5uhu.svelte-13u5uhu{top:var(--header-height);bottom:0;left:0;right:0;position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center}.kin_upsell__icon.svelte-13u5uhu.svelte-13u5uhu{font-size:18rem;margin-bottom:2rem}.kin_upsell__cta.svelte-13u5uhu.svelte-13u5uhu{margin-top:1rem}.kin_page.-no-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{display:none}.kin_page.-no-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:0}.kin_page.-cover-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{position:absolute;width:100%;z-index:1}.kin_page.-cover-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:0}.kin_page.-large-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-large)}.kin_page.-large-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-large-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-large)}.kin_page.-medium-header.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-medium)}.kin_page.-medium-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-medium-header.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-medium)}.kin_page.-tabs-page.svelte-13u5uhu .kin_header.svelte-13u5uhu{height:var(--header-height-tabs);text-align:center}.kin_page.-tabs-page.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block;text-align:center}.kin_page.-tabs-page.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:block;text-align:center;padding:0}.kin_page.-tabs-page.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:var(--header-height-tabs);text-align:center}.kin_page.-center-header.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu,.kin_page.-center-header.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block;text-align:center}.kin_page.-center.svelte-13u5uhu.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu.svelte-13u5uhu{text-align:center}.kin_page.-center.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:none}.kin_page.-center.svelte-13u5uhu .kin_header__title.svelte-13u5uhu,.kin_page.-center-all.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-center-all.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{display:flex;align-items:center;justify-content:center;text-align:center}.kin_page.-flex-between.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{display:none}.kin_page.-flex-between.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{display:block}.kin_page.-flex-between.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{display:flex;align-items:center;justify-content:space-between;text-align:center}.kin_page.-profile.svelte-13u5uhu .kin_header.svelte-13u5uhu{position:static;height:auto;text-align:start}.kin_page.-profile.svelte-13u5uhu .kin_header__content.svelte-13u5uhu{position:static}.kin_page.-profile.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{position:static;display:block;padding:0;max-height:none}.kin_page.-profile.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{max-height:none;max-width:100%}.kin_page.-profile.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:calc(var(--header-height) + 6rem)}.kin_page.-detail.svelte-13u5uhu .kin_header.svelte-13u5uhu{text-align:center;height:calc(var(--header-height-large) + 4rem)}.kin_page.-detail.svelte-13u5uhu .kin_header__content.svelte-13u5uhu{display:block}.kin_page.-detail.svelte-13u5uhu .kin_header__title.svelte-13u5uhu{max-height:none;display:block;font-weight:var(--font-weight-h1);padding:0 8%}.kin_page.-detail.svelte-13u5uhu .kin_header__controls.svelte-13u5uhu{padding:1rem 0 0;position:static;display:block;max-height:none}.kin_page.-detail.svelte-13u5uhu .kin_page__content.svelte-13u5uhu{top:calc(var(--header-height-large) + 4rem)}.kin_page.-rtl.svelte-13u5uhu .kin_header__tooltip.svelte-13u5uhu{transform:translateX(50%);left:auto;right:50%}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu,.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu{transform:scale(-1)}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu:hover,.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu:hover{transform:scale(-1.1)}.kin_page.-rtl.svelte-13u5uhu .kin_back-btn.svelte-13u5uhu{left:auto;right:0}.kin_page.-rtl.svelte-13u5uhu .kin_settings-btn.svelte-13u5uhu{right:auto;left:0}",C(fe.head,t)),ke(this,e,Fe,Re,w,{heading:0,settingsUrl:1,cssCls:2,upsell:3,inactive:4,inactiveMsg:5,layout:6,back:7,backEvent:8,backHash:9,loading:10})}get heading(){return this.$$.ctx[0]}set heading(e){this.$set({heading:e}),ie()}get settingsUrl(){return this.$$.ctx[1]}set settingsUrl(e){this.$set({settingsUrl:e}),ie()}get cssCls(){return this.$$.ctx[2]}set cssCls(e){this.$set({cssCls:e}),ie()}get upsell(){return this.$$.ctx[3]}set upsell(e){this.$set({upsell:e}),ie()}get inactive(){return this.$$.ctx[4]}set inactive(e){this.$set({inactive:e}),ie()}get inactiveMsg(){return this.$$.ctx[5]}set inactiveMsg(e){this.$set({inactiveMsg:e}),ie()}get layout(){return this.$$.ctx[6]}set layout(e){this.$set({layout:e}),ie()}get back(){return this.$$.ctx[7]}set back(e){this.$set({back:e}),ie()}get backEvent(){return this.$$.ctx[8]}set backEvent(e){this.$set({backEvent:e}),ie()}get backHash(){return this.$$.ctx[9]}set backHash(e){this.$set({backHash:e}),ie()}get loading(){return this.$$.ctx[10]}set loading(e){this.$set({loading:e}),ie()}}const{document:Je}=he;const Ge=e=>({}),Xe=e=>({}),Ye=e=>({}),Ze=e=>({}),Ke=e=>({}),Qe=e=>({}),et=e=>({}),tt=e=>({});function nt(e){let t;return{c(){t=W("kin-loading"),O(t,"fullscreen","true")},m(e,n){D(e,t,n)},d(e){e&&I(t)}}}function st(e){let t,n,s,i,o,l,a,r,c,u,d,h,p,m,g,v,k=("true"===e[1]||!0===e[1])&&nt();const b=e[15].description,_=x(b,e,e[14],tt),w=e[15].cta,$=x(w,e,e[14],Qe),y=e[15]["view-content"],M=x(y,e,e[14],Ze),q=e[15]["view-actions"],T=x(q,e,e[14],Xe);return{c(){t=W("div"),k&&k.c(),n=L(),s=W("div"),i=W("div"),_&&_.c(),o=L(),l=W("div"),$&&$.c(),a=L(),r=W("div"),M&&M.c(),d=L(),h=W("div"),T&&T.c(),P(i,"class","kin_description svelte-1kq23zh"),A(i,"opacity",e[3]),B(i,"-no-events",e[3]<.1),P(l,"class","kin_cta svelte-1kq23zh"),A(l,"opacity",e[4]),B(l,"-no-events",e[4]<.1),P(r,"class","kin_view__content svelte-1kq23zh"),s.hidden=c="true"===e[1]||!0===e[1],P(s,"class","svelte-1kq23zh"),P(t,"class",u="kin_view "+(e[2]&&"ltr"!=e[2]?"-"+e[2]:"")+" "+e[0]+" svelte-1kq23zh"),B(t,"-actions",!0===e[5]||e[6]),P(h,"class","kin_actions svelte-1kq23zh"),h.hidden=p=e[7]||!(!0===e[5]||e[6])},m(c,u){D(c,t,u),k&&k.m(t,null),C(t,n),C(t,s),C(s,i),_&&_.m(i,null),C(s,o),C(s,l),$&&$.m(l,null),C(s,a),C(s,r),M&&M.m(r,null),D(c,d,u),D(c,h,u),T&&T.m(h,null),m=!0,g||(v=[E(e[9].call(null,r)),H(t,"scroll",e[10]),H(t,"content-scrollto",e[11]),H(t,"kin-view:fire-scrolling",e[12]),E(e[8].call(null,t))],g=!0)},p(e,[o]){"true"===e[1]||!0===e[1]?k||(k=nt(),k.c(),k.m(t,n)):k&&(k.d(1),k=null),_&&_.p&&16384&o&&z(_,b,e,e[14],o,et,tt),(!m||8&o)&&A(i,"opacity",e[3]),8&o&&B(i,"-no-events",e[3]<.1),$&&$.p&&16384&o&&z($,w,e,e[14],o,Ke,Qe),(!m||16&o)&&A(l,"opacity",e[4]),16&o&&B(l,"-no-events",e[4]<.1),M&&M.p&&16384&o&&z(M,y,e,e[14],o,Ye,Ze),(!m||2&o&&c!==(c="true"===e[1]||!0===e[1]))&&(s.hidden=c),(!m||5&o&&u!==(u="kin_view "+(e[2]&&"ltr"!=e[2]?"-"+e[2]:"")+" "+e[0]+" svelte-1kq23zh"))&&P(t,"class",u),101&o&&B(t,"-actions",!0===e[5]||e[6]),T&&T.p&&16384&o&&z(T,q,e,e[14],o,Ge,Xe),(!m||224&o&&p!==(p=e[7]||!(!0===e[5]||e[6])))&&(h.hidden=p)},i(e){m||(ue(_,e),ue($,e),ue(M,e),ue(T,e),m=!0)},o(e){de(_,e),de($,e),de(M,e),de(T,e),m=!1},d(e){e&&I(t),k&&k.d(),_&&_.d(e),$&&$.d(e),M&&M.d(e),e&&I(d),e&&I(h),T&&T.d(e),g=!1,f(v)}}}function it(e,t,n){let s,i,{$$slots:o={},$$scope:l}=t,{csscls:a=""}=t,{loading:r=!1}=t,{actionbar:c=null}=t;const u=G();let d=!1,h="ltr",p=1,m=1,g=!1,v=null,k=null;function b(e){n(5,g=e.detail.isVisible),u("propUpdate",{keyPath:"isAction",value:g})}return V((()=>{n(2,h=document.body.dir),s||i||window.addEventListener("kin-isActionBarVisible",b)})),J((()=>{s||i||window.removeEventListener("kin-isActionBarVisible",b),n(2,h=null);let e=v?.querySelector("kin-table");e?.$destroy(),e=null,v=null,k=null})),e.$$set=e=>{"csscls"in e&&n(0,a=e.csscls),"loading"in e&&n(1,r=e.loading),"actionbar"in e&&n(13,c=e.actionbar),"$$scope"in e&&n(14,l=e.$$scope)},e.$$.update=()=>{8192&e.$$.dirty&&n(6,s=!0===c||"true"===c),8192&e.$$.dirty&&n(7,i=!1===c||"false"===c)},[a,r,h,p,m,g,s,i,function(e){v=e},function(e){k=e},function(){const e=k?k.offsetTop:0,t=v?v.scrollTop:0;t>e?(n(3,p=0),n(4,m=0)):(n(3,p=.01*(100-4*t)),n(4,m=.01*(100-1.5*t))),d&&v?.dispatchEvent(new CustomEvent("kinview-scroll",{detail:{scrollPos:t,slotPos:e}}))},function(e){v&&v.scrollTo({top:e.detail.scrollTo,left:0,behavior:"smooth"})},function(){d=!0},c,l,o]}class ot extends be{constructor(e){var t;super(),Je.getElementById("svelte-1kq23zh-style")||((t=W("style")).id="svelte-1kq23zh-style",t.textContent=".kin_description.svelte-1kq23zh.svelte-1kq23zh{display:block;position:sticky;top:0;z-index:9;text-align:var(--page-header-align)}.kin_description.-no-events.svelte-1kq23zh.svelte-1kq23zh{pointer-events:none}.kin_cta.svelte-1kq23zh.svelte-1kq23zh{display:block;text-align:var(--page-header-align)}.kin_cta.-no-events.svelte-1kq23zh.svelte-1kq23zh{pointer-events:none}.kin_cta__links.svelte-1kq23zh.svelte-1kq23zh{position:absolute;right:0;top:50%;transform:translateY(-50%)}.kin_view.svelte-1kq23zh.svelte-1kq23zh{display:block;position:absolute;top:0;right:0;bottom:0;left:0;padding:0 calc(var(--page-padding) - var(--page-scrollbar-width)) 2rem var(--page-padding);overflow-y:scroll;overflow-x:hidden}.kin_view__content.svelte-1kq23zh.svelte-1kq23zh{position:relative}.kin_view__icon.svelte-1kq23zh.svelte-1kq23zh{font-size:20rem;width:100%;margin-top:14vh;text-align:center;color:var(--color-graphics)}.kin_view.-actions.svelte-1kq23zh.svelte-1kq23zh{bottom:var(--action-bar-height);-webkit-mask-image:none}.kin_view.-center.svelte-1kq23zh.svelte-1kq23zh{text-align:center}.kin_view.-center.svelte-1kq23zh .kin_description.svelte-1kq23zh,.kin_view.-center.svelte-1kq23zh .kin_cta.svelte-1kq23zh,.kin_view.-center.svelte-1kq23zh .kin_view__content.svelte-1kq23zh{text-align:center}.kin_view.-center.svelte-1kq23zh .kin_description.svelte-1kq23zh{margin-left:auto;margin-right:auto}.kin_view.-tab-pane.svelte-1kq23zh.svelte-1kq23zh{padding-top:2rem}.kin_view.-detail.svelte-1kq23zh.svelte-1kq23zh{transform:scale(1)}.kin_view.-detail.svelte-1kq23zh .kin_cta.svelte-1kq23zh,.kin_view.-detail.svelte-1kq23zh .kin_description.svelte-1kq23zh{text-align:center}.kin_view.-detail.svelte-1kq23zh .kin_view__content.svelte-1kq23zh{padding-left:10%;padding-right:10%}.kin_actions.svelte-1kq23zh.svelte-1kq23zh{position:absolute;right:0;bottom:0;left:0;height:var(--action-bar-height);padding:1rem var(--page-padding);background-color:var(--action-bar-background);border-top:solid 1px var(--action-bar-border);box-shadow:var(--action-bar-shadow);font-size:var(--action-bar-font);z-index:9}.kin_view.-rtl.svelte-1kq23zh.svelte-1kq23zh{padding-left:calc(var(--page-padding) - var(--page-scrollbar-width));padding-right:var(--page-padding)}[hidden].svelte-1kq23zh.svelte-1kq23zh{visibility:hidden !important}",C(Je.head,t)),ke(this,e,it,st,w,{csscls:0,loading:1,actionbar:13})}}var lt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},at="object"==typeof lt&<&<.Object===Object&<,rt="object"==typeof self&&self&&self.Object===Object&&self;at||rt||Function("return this")();const ct=e=>({}),ut=e=>({}),dt=e=>({}),ht=e=>({}),pt=e=>({}),mt=e=>({}),gt=e=>({}),vt=e=>({});function kt(e){let t,n,s;return{c(){t=W("div"),P(t,"class","sve_modal__overlay__close")},m(i,o){D(i,t,o),n||(s=H(t,"click",e[16]),n=!0)},p:v,d(e){e&&I(t),n=!1,s()}}}function bt(e){let t,n,s,i;return{c(){t=W("button"),n=W("kin-icon"),O(n,"name","icon-s-controls-close"),O(n,"size","12"),P(t,"class","sve_modal__close"),P(t,"data-test","close"),P(t,"title",a("global.closeModalWindow"))},m(o,l){D(o,t,l),C(t,n),s||(i=H(t,"click",e[17]),s=!0)},p:v,d(e){e&&I(t),s=!1,i()}}}function ft(e){let t,n,s,i,o=e[0]&&_t(e),l=e[1]&&wt(e);const a=e[15]["modal-header"],r=x(a,e,e[14],vt);return{c(){t=W("div"),o&&o.c(),n=L(),l&&l.c(),s=L(),r&&r.c(),P(t,"class","sve_modal__header")},m(e,a){D(e,t,a),o&&o.m(t,null),C(t,n),l&&l.m(t,null),C(t,s),r&&r.m(t,null),i=!0},p(e,i){e[0]?o?o.p(e,i):(o=_t(e),o.c(),o.m(t,n)):o&&(o.d(1),o=null),e[1]?l?l.p(e,i):(l=wt(e),l.c(),l.m(t,s)):l&&(l.d(1),l=null),r&&r.p&&16384&i&&z(r,a,e,e[14],i,gt,vt)},i(e){i||(ue(r,e),i=!0)},o(e){de(r,e),i=!1},d(e){e&&I(t),o&&o.d(),l&&l.d(),r&&r.d(e)}}}function _t(e){let t,n;return{c(){t=W("h2"),n=T(e[0]),P(t,"class","sve_modal__title")},m(e,s){D(e,t,s),C(t,n)},p(e,t){1&t&&j(n,e[0])},d(e){e&&I(t)}}}function wt(e){let t,n;return{c(){t=W("p"),n=T(e[1]),P(t,"class","sve_modal__subtitle")},m(e,s){D(e,t,s),C(t,n)},p(e,t){2&t&&j(n,e[1])},d(e){e&&I(t)}}}function $t(e){let t,n;const s=e[15]["modal-footer"],i=x(s,e,e[14],ht);return{c(){t=W("div"),i&&i.c(),P(t,"class","sve_modal__footer")},m(e,s){D(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&16384&t&&z(i,s,e,e[14],t,dt,ht)},i(e){n||(ue(i,e),n=!0)},o(e){de(i,e),n=!1},d(e){e&&I(t),i&&i.d(e)}}}function yt(e){let t,n,s;const i=e[15]["modal-ipm"],o=x(i,e,e[14],ut);return{c(){t=W("div"),o&&o.c(),P(t,"class","sve_modal__ipm"),P(t,"style",n=`${e[9]} margin-top: 0;`)},m(e,n){D(e,t,n),o&&o.m(t,null),s=!0},p(e,l){o&&o.p&&16384&l&&z(o,i,e,e[14],l,ct,ut),(!s||512&l&&n!==(n=`${e[9]} margin-top: 0;`))&&P(t,"style",n)},i(e){s||(ue(o,e),s=!0)},o(e){de(o,e),s=!1},d(e){e&&I(t),o&&o.d(e)}}}function xt(e){let t,n,s,i,o,l,a,r,c,u,d,h,p,g,v,k=e[4]&&kt(e),b=e[4]&&bt(e),_=!e[7]&&ft(e);const w=e[15]["modal-content"],$=x(w,e,e[14],mt);let y=!e[7]&&$t(e),M=e[6]&&yt(e);return{c(){t=W("div"),k&&k.c(),n=L(),s=W("div"),b&&b.c(),i=L(),_&&_.c(),o=L(),l=W("div"),$&&$.c(),a=L(),y&&y.c(),r=L(),M&&M.c(),P(l,"class","sve_modal__content"),P(s,"class","sve_modal"),P(s,"style",c=`${e[8]}`),P(t,"class",u="sve_modal__overlay "+e[5]),P(t,"data-test",e[3]),P(t,"role","dialog"),P(t,"aria-labelledby",d=e[0]?e[0]:e[2]),P(t,"aria-describedby",h=e[1]?e[1]:"")},m(c,u){D(c,t,u),k&&k.m(t,null),C(t,n),C(t,s),b&&b.m(s,null),C(s,i),_&&_.m(s,null),C(s,o),C(s,l),$&&$.m(l,null),C(s,a),y&&y.m(s,null),C(s,r),M&&M.m(s,null),p=!0,g||(v=[H(window,"keydown",e[11],!0),E(m.call(null,t))],g=!0)},p(e,[l]){e[4]?k?k.p(e,l):(k=kt(e),k.c(),k.m(t,n)):k&&(k.d(1),k=null),e[4]?b?b.p(e,l):(b=bt(e),b.c(),b.m(s,i)):b&&(b.d(1),b=null),e[7]?_&&(re(),de(_,1,1,(()=>{_=null})),ce()):_?(_.p(e,l),128&l&&ue(_,1)):(_=ft(e),_.c(),ue(_,1),_.m(s,o)),$&&$.p&&16384&l&&z($,w,e,e[14],l,pt,mt),e[7]?y&&(re(),de(y,1,1,(()=>{y=null})),ce()):y?(y.p(e,l),128&l&&ue(y,1)):(y=$t(e),y.c(),ue(y,1),y.m(s,r)),e[6]?M?(M.p(e,l),64&l&&ue(M,1)):(M=yt(e),M.c(),ue(M,1),M.m(s,null)):M&&(re(),de(M,1,1,(()=>{M=null})),ce()),(!p||256&l&&c!==(c=`${e[8]}`))&&P(s,"style",c),(!p||32&l&&u!==(u="sve_modal__overlay "+e[5]))&&P(t,"class",u),(!p||8&l)&&P(t,"data-test",e[3]),(!p||5&l&&d!==(d=e[0]?e[0]:e[2]))&&P(t,"aria-labelledby",d),(!p||2&l&&h!==(h=e[1]?e[1]:""))&&P(t,"aria-describedby",h)},i(e){p||(ue(_),ue($,e),ue(y),ue(M),p=!0)},o(e){de(_),de($,e),de(y),de(M),p=!1},d(e){e&&I(t),k&&k.d(),b&&b.d(),_&&_.d(),$&&$.d(e),y&&y.d(),M&&M.d(),g=!1,f(v)}}}function Mt(e,t,n){let{$$slots:s={},$$scope:i}=t;const o=G();let l,{title:a=null}=t,{subtitle:r=null}=t,{hiddenTitle:c=null}=t,{testId:u=""}=t,{closable:d=!0}=t,{cssCls:h=""}=t,{ipm:p=!1}=t,{customContent:m=!1}=t,{width:g}=t,{ipmHeight:v}=t,k="",b="";V((()=>{l=document.activeElement})),J((()=>{document.body.contains(l)&&l.focus()}));return e.$$set=e=>{"title"in e&&n(0,a=e.title),"subtitle"in e&&n(1,r=e.subtitle),"hiddenTitle"in e&&n(2,c=e.hiddenTitle),"testId"in e&&n(3,u=e.testId),"closable"in e&&n(4,d=e.closable),"cssCls"in e&&n(5,h=e.cssCls),"ipm"in e&&n(6,p=e.ipm),"customContent"in e&&n(7,m=e.customContent),"width"in e&&n(12,g=e.width),"ipmHeight"in e&&n(13,v=e.ipmHeight),"$$scope"in e&&n(14,i=e.$$scope)},e.$$.update=()=>{4096&e.$$.dirty&&g&&n(8,k=`width: ${g}px;`),8256&e.$$.dirty&&p&&v&&n(9,b=`height: ${v}px;`)},[a,r,c,u,d,h,p,m,k,b,o,function(e){"Escape"===e.code&&(o("close"),e.preventDefault(),e.stopPropagation())},g,v,i,s,()=>o("close"),()=>o("close")]}class zt extends be{constructor(e){super(),ke(this,e,Mt,xt,w,{title:0,subtitle:1,hiddenTitle:2,testId:3,closable:4,cssCls:5,ipm:6,customContent:7,width:12,ipmHeight:13})}}function Et(e){let t,n,s,i;return{c(){t=W("div"),n=W("kin-icon"),O(n,"name",e[4]),P(t,"class",s="sve_toaster__theme "+(e[3]?"color-"+e[3]:"color-dark -bg")),P(t,"style",i=e[5]?"font-size:"+e[5]:"")},m(e,s){D(e,t,s),C(t,n)},p(e,o){16&o&&O(n,"name",e[4]),8&o&&s!==(s="sve_toaster__theme "+(e[3]?"color-"+e[3]:"color-dark -bg"))&&P(t,"class",s),32&o&&i!==(i=e[5]?"font-size:"+e[5]:"")&&P(t,"style",i)},d(e){e&&I(t)}}}function Ct(e){let t,n;return{c(){t=W("kin-icon"),O(t,"name",e[4]),O(t,"class",n="g-margin-bottom--20 "+(e[3]?"color-"+e[3]+" -text":""))},m(e,n){D(e,t,n)},p(e,s){16&s&&O(t,"name",e[4]),8&s&&n!==(n="g-margin-bottom--20 "+(e[3]?"color-"+e[3]+" -text":""))&&O(t,"class",n)},d(e){e&&I(t)}}}function Dt(e){let t,n;return{c(){t=W("h2"),n=T(e[6]),P(t,"class","sve_toaster__title h3")},m(e,s){D(e,t,s),C(t,n)},p(e,t){64&t&&j(n,e[6])},d(e){e&&I(t)}}}function It(e){let t,n;function s(e,t){return e[10]?Wt:qt}let i=s(e),o=i(e),l=e[8]&&Tt(e);return{c(){t=W("p"),o.c(),n=L(),l&&l.c(),P(t,"class","sve_toaster__text p -small")},m(e,s){D(e,t,s),o.m(t,null),C(t,n),l&&l.m(t,null)},p(e,a){i===(i=s(e))&&o?o.p(e,a):(o.d(1),o=i(e),o&&(o.c(),o.m(t,n))),e[8]?l?l.p(e,a):(l=Tt(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},d(e){e&&I(t),o.d(),l&&l.d()}}}function qt(e){let t;return{c(){t=T(e[7])},m(e,n){D(e,t,n)},p(e,n){128&n&&j(t,e[7])},d(e){e&&I(t)}}}function Wt(e){let t,n;return{c(){n=S(),t=new N(n)},m(s,i){t.m(e[7],s,i),D(s,n,i)},p(e,n){128&n&&t.p(e[7])},d(e){e&&I(n),e&&t.d()}}}function Tt(e){let t,n,s,i,o;return{c(){t=T(" "),n=W("button"),s=T(e[8]),P(n,"class","a g-font--capital")},m(l,a){D(l,t,a),D(l,n,a),C(n,s),i||(o=H(n,"click",e[14]),i=!0)},p(e,t){256&t&&j(s,e[8])},d(e){e&&I(t),e&&I(n),i=!1,o()}}}function Lt(e){let t;function n(e,t){return e[11]<0||100<e[11]?Ht:St}let s=n(e),i=s(e);return{c(){t=W("div"),i.c(),P(t,"class","sve_toaster__progress")},m(e,n){D(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&I(t),i.d()}}}function St(e){let t,n,s,i,o;return{c(){t=W("kin-progress"),n=L(),s=W("p"),i=T(e[11]),o=T("%"),O(t,"percentage",e[11]),O(t,"csscls","-standalone"),P(s,"class","p")},m(e,l){D(e,t,l),D(e,n,l),D(e,s,l),C(s,i),C(s,o)},p(e,n){2048&n&&O(t,"percentage",e[11]),2048&n&&j(i,e[11])},d(e){e&&I(t),e&&I(n),e&&I(s)}}}function Ht(e){let t;return{c(){t=W("kin-progress"),O(t,"percentage",e[11]),O(t,"csscls","-standalone -unknown")},m(e,n){D(e,t,n)},p(e,n){2048&n&&O(t,"percentage",e[11])},d(e){e&&I(t)}}}function Pt(e){let t,n,s,i;return{c(){t=W("kin-button"),n=T(e[9]),O(t,"class","sve_toaster__btn")},m(o,l){D(o,t,l),C(t,n),s||(i=H(t,"click",e[15]),s=!0)},p(e,t){512&t&&j(n,e[9])},d(e){e&&I(t),s=!1,i()}}}function Ot(e){let t,n,s,i,o,l,r,c,u,d,h,p,m,g,v,k,b,_,w=e[1]&&Et(e),$=e[4]&&!e[1]&&Ct(e),y=e[6]&&Dt(e),M=e[7]&&It(e),q=(e[11]||0===e[11])&&Lt(e);const T=e[23].default,S=x(T,e,e[22],null);let O=e[9]&&Pt(e);return{c(){t=W("div"),n=W("div"),s=W("h1"),s.innerHTML='<span class="logo -white -width-70"></span>',i=L(),o=W("div"),l=W("button"),r=L(),c=W("div"),w&&w.c(),u=L(),$&&$.c(),d=L(),y&&y.c(),h=L(),M&&M.c(),p=L(),q&&q.c(),m=L(),S&&S.c(),g=L(),O&&O.c(),P(s,"class","nui_logo"),P(l,"class","nui_controls__item -close nui_caption_client"),P(l,"title",a("global.closeModalWindow")),P(o,"class","nui_controls"),P(n,"class","nui_titlebar -toaster nui_caption"),P(c,"class",v="nui_main -toaster\n\t\t"+(e[2]?"color-"+e[2]+" -bg":"")+"\n\t\t"+(e[1]?e[1]+"-toaster-icon":"")+"\n\t"),P(t,"class","sve_toaster"),A(t,"width",e[0]+"px")},m(a,v){D(a,t,v),C(t,n),C(n,s),C(n,i),C(n,o),C(o,l),C(t,r),C(t,c),w&&w.m(c,null),C(c,u),$&&$.m(c,null),C(c,d),y&&y.m(c,null),C(c,h),M&&M.m(c,null),C(c,p),q&&q.m(c,null),C(c,m),S&&S.m(c,null),C(c,g),O&&O.m(c,null),k=!0,b||(_=[H(l,"click",e[13]),E(e[16].call(null,n)),E(e[17].call(null,c)),H(t,"click",e[12])],b=!0)},p(e,[n]){e[1]?w?w.p(e,n):(w=Et(e),w.c(),w.m(c,u)):w&&(w.d(1),w=null),e[4]&&!e[1]?$?$.p(e,n):($=Ct(e),$.c(),$.m(c,d)):$&&($.d(1),$=null),e[6]?y?y.p(e,n):(y=Dt(e),y.c(),y.m(c,h)):y&&(y.d(1),y=null),e[7]?M?M.p(e,n):(M=It(e),M.c(),M.m(c,p)):M&&(M.d(1),M=null),e[11]||0===e[11]?q?q.p(e,n):(q=Lt(e),q.c(),q.m(c,m)):q&&(q.d(1),q=null),S&&S.p&&4194304&n&&z(S,T,e,e[22],n,null,null),e[9]?O?O.p(e,n):(O=Pt(e),O.c(),O.m(c,null)):O&&(O.d(1),O=null),(!k||6&n&&v!==(v="nui_main -toaster\n\t\t"+(e[2]?"color-"+e[2]+" -bg":"")+"\n\t\t"+(e[1]?e[1]+"-toaster-icon":"")+"\n\t"))&&P(c,"class",v),(!k||1&n)&&A(t,"width",e[0]+"px")},i(e){k||(ue(S,e),k=!0)},o(e){de(S,e),k=!1},d(e){e&&I(t),w&&w.d(),$&&$.d(),y&&y.d(),M&&M.d(),q&&q.d(),S&&S.d(e),O&&O.d(),b=!1,f(_)}}}function jt(s,i,o){let l,{$$slots:a={},$$scope:r}=i,{windowWidth:c=360}=i,{windowHeight:u=360}=i,{theme:d}=i,{skin:h}=i,{severity:p}=i,{icon:m}=i,{iconSize:g}=i,{title:v}=i,{text:k}=i,{progress:b}=i,{textActionLabel:f}=i,{buttonLabel:_}=i,{burgerToasterTracker:w}=i,{handleClose:$}=i,{allowHtml:y}=i;const x=G();let M,z,E;var C;function D(){o(18,u=z.scrollHeight+M.scrollHeight),t.resize(c,u)}return C=()=>{D(),E=new MutationObserver(D.bind(this)),E.observe(z,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),w?.toasterView&&e.toaster.view()},F().$$.after_update.push(C),J((()=>{E&&E.disconnect()})),s.$$set=e=>{"windowWidth"in e&&o(0,c=e.windowWidth),"windowHeight"in e&&o(18,u=e.windowHeight),"theme"in e&&o(1,d=e.theme),"skin"in e&&o(2,h=e.skin),"severity"in e&&o(3,p=e.severity),"icon"in e&&o(4,m=e.icon),"iconSize"in e&&o(5,g=e.iconSize),"title"in e&&o(6,v=e.title),"text"in e&&o(7,k=e.text),"progress"in e&&o(19,b=e.progress),"textActionLabel"in e&&o(8,f=e.textActionLabel),"buttonLabel"in e&&o(9,_=e.buttonLabel),"burgerToasterTracker"in e&&o(20,w=e.burgerToasterTracker),"handleClose"in e&&o(21,$=e.handleClose),"allowHtml"in e&&o(10,y=e.allowHtml),"$$scope"in e&&o(22,r=e.$$scope)},s.$$.update=()=>{524288&s.$$.dirty&&o(11,l=Number.isNaN(parseInt(b))?b:parseInt(b))},[c,d,h,p,m,g,v,k,f,_,y,l,function(){n.event("Toaster","Click","Area"),x("areaAction")},function(){n.event("Toaster","Close"),w?.toasterClose&&e.toaster.close(),$?x("close"):t.close()},function(){x("doTextAction")},function(){x("doAction")},function(e){M=e},function(e){z=e},u,b,w,$,r,a]}class At extends be{constructor(e){super(),ke(this,e,jt,Ot,w,{windowWidth:0,windowHeight:18,theme:1,skin:2,severity:3,icon:4,iconSize:5,title:6,text:7,progress:19,textActionLabel:8,buttonLabel:9,burgerToasterTracker:20,handleClose:21,allowHtml:10})}}const Bt=[];function Nt(e,t=v){let n;const s=[];function i(t){if(w(e,t)&&(e=t,n)){const t=!Bt.length;for(let n=0;n<s.length;n+=1){const t=s[n];t[1](),Bt.push(t,e)}if(t){for(let e=0;e<Bt.length;e+=2)Bt[e][0](Bt[e+1]);Bt.length=0}}}return{set:i,update:function(t){i(t(e))},subscribe:function(o,l=v){const a=[o,l];return s.push(a),1===s.length&&(n=t(i)||v),o(e),()=>{const e=s.indexOf(a);-1!==e&&s.splice(e,1),0===s.length&&(n(),n=null)}}}}function Ut(e,t,n){const s=!Array.isArray(e),i=s?[e]:e,o=t.length<2;return{subscribe:Nt(n,(e=>{let n=!1;const l=[];let a=0,r=v;const c=()=>{if(a)return;r();const n=t(s?l[0]:l,e);o?e(n):r=_(n)?n:v},u=i.map(((e,t)=>$(e,(e=>{l[t]=e,a&=~(1<<t),n&&c()}),(()=>{a|=1<<t}))));return n=!0,c(),function(){f(u),r()}})).subscribe}}c.isFreeProduct();const Rt="loading",Ft="ready",Vt="error";let Jt,Gt,Xt,Yt,Zt=0;const Kt=Nt(Rt),Qt=Nt({},(function(){const e=()=>{xn(Rt,!0),dn(!0).then((e=>{if(e.loggedIn)return fn().then((()=>Promise.all([gn(),hn()]))).then((([t,n])=>!Object.keys(t).length&&n?wn(e.email):pn(!0)))})).then((()=>xn(Ft))).catch((()=>xn(Vt)))};e();const t=[];return t.push(s.on("app.lif.account.logged_in",(()=>{xn(Rt),dn(!0).then((e=>{if(e.loggedIn)return tn.set({}),fn().then((()=>Promise.all([gn(!0),kn(!0)]))).then((([t])=>t[e.email]?pn(!0):wn(e.email)))})).then((()=>xn(Ft))).catch((()=>xn(Vt)))}))),t.push(s.on("app.lif.account.logged_out",(()=>{Qt.set({loggedIn:!1,email:null}),nn.set({}),tn.set({})}))),t.push(s.on("app.dwm.OnDataChanged",(()=>{xn(Rt),Promise.all([gn(!0),pn(!0)]).then((()=>xn(Ft))).catch((()=>xn(Vt)))}))),t.push(s.on("online",(()=>{e()}))),()=>{Jt=null,t.forEach((e=>e()))}})),en=Nt(void 0,(function(){const e=()=>{xn(Rt),hn(!0).then((()=>xn(Ft))).catch((()=>xn(Vt)))};e();const t=[];return t.push(s.on("online",(()=>{e()}))),()=>{Gt=null,t.forEach((e=>e()))}})),tn=Nt({},(function(){const e=()=>{xn(Rt),dn(!0).then((e=>e.loggedIn?pn(!0):e.email?mn(e.email):void 0)).then((()=>xn(Ft))).catch((()=>xn(Vt)))};e();const t=[];return t.push(s.on("online",(()=>{e()}))),()=>{t.forEach((e=>e())),Xt=null}})),nn=Nt({},(function(){const e=()=>{xn(Rt),gn(!0).then((()=>xn(Ft))).catch((()=>xn(Vt)))};e();const t=[];return t.push(s.on("online",(()=>{e()}))),()=>{t.forEach((e=>e())),Yt=null}})),sn=Nt({},(function(){xn(Rt);const e=[];return vn().then((()=>xn(Ft))).catch((()=>xn(Vt))),e.push(s.on("app.lis.install.event",(()=>{vn()}))),()=>{e.forEach((e=>e()))}})),on=Ut(Kt,(e=>e)),ln=Ut(Qt,(e=>e)),an=Ut(en,(e=>e)),rn=Ut(tn,(e=>function(e){if(!e.data)return e;const t=[],n=e.breaches,s=e.data,i=e.authEmails;for(const l in s)for(const e in s[l]){s[l][e].forEach((s=>{const o=n[s.breachId];let a=null;for(const e in s.password)if(s.password[e].plaintext){a=s.password[e].value;break}const r={breachId:s.breachId,breachDescription:o.description,siteTitle:o.title,siteDescription:o.siteDescription,siteUrl:l,publishDate:Date.parse(o.publishDate),resolutionState:s.resolutionState,resolutionDate:s.resolutionDate?Date.parse(s.resolutionDate):null,email:e,emailAuthorized:i.includes(e),password:a,resolved:"RESOLVED"===s.resolutionState};t.push(r)}))}const o=function(e,t){return!e.resolved&&t.resolved?-1:e.resolved&&!t.resolved?1:e.publishDate>t.publishDate?-1:e.publishDate<t.publishDate?1:0};return t.sort(o),e.leaks=t,e}(e))),cn=Ut(nn,(e=>e)),un=Ut(sn,(e=>e));function dn(e){return!e&&Jt||(xn(Rt),Jt=u.getAccountInfo().then((e=>{const t={loggedIn:e&&e.logged_in,email:e&&e.email};return Qt.set(t),t})).then((e=>(xn(Ft),e))).catch((e=>(console.error("Getting account info failed",e),xn(Vt),Promise.reject(e))))),Jt}function hn(e){return!e&&Gt||(xn(Rt),Gt=dn().then((e=>!!e.loggedIn&&Mn("/v1/query/notification-subscriptions/application/new-breaches").then((e=>!(!e||!e.enabled))))).then((e=>(en.set(e),s.emit("dwmMonitoring",e),xn(Ft),e))).catch((()=>xn(Vt)))),Gt}function pn(e,t){return!e&&Xt||(xn(Rt),Xt=dn().then((e=>{if(e.loggedIn)return Promise.all([Mn("/v2/query/site-breaches/authorized-data"),Mn("/v2/query/site-breaches/unauthorized-data")]).then((([e,t])=>{const n={breaches:Object.assign(t.breaches,e.breaches),data:e.data,summary:Object.assign(t.summary,e.summary),authEmails:Object.keys(e.summary),leaksCount:{}};for(const s in t.data)n.data[s]=Object.assign(t.data[s],e.data[s]||{});let i=0,o=0;const l={};for(const s in n.data)for(const e in n.data[s])for(const t in n.data[s][e])"RESOLVED"!==n.data[s][e][t].resolutionState?(o++,l[e]=l[e]||[],l[e].push(n.data[s][e][t].breachId)):i++;return localStorage.setItem("dwmBreaches",JSON.stringify({lastCheck:Date.now(),leaks:l})),s.emit("dwmLeaksUpdated"),n.leaksCount={total:i+o,resolved:i,unresolved:o},tn.set(n),$n(n.leaksCount),n}));tn.set({})})).then((e=>(xn(Ft),e))).catch((()=>xn(Vt)))),Xt}function mn(e){return xn(Rt),Xt=Mn("/v1/query/site-breaches/unauthorized-data/anonymous",{emailAddresses:[e]}).then((e=>{e.authEmails=[];let t=0;const n={};for(const s in e.data)for(const i in e.data[s])for(const o in e.data[s][i])t++,n[i]=n[i]||[],n[i].push(e.data[s][i][o].breachId);return e.leaksCount={total:t,resolved:0,unresolved:t},tn.set(e),yn(1),$n(e.leaksCount),e})).then((e=>(xn(Ft),e))).catch((()=>xn(Vt))),Xt}function gn(e,t){return!e&&Yt||(t||xn(Rt),Yt=dn().then((e=>e.loggedIn?Mn("/v1/query/authorizations/email-address").then((e=>{const t=e.account||{};return yn(Object.keys(t).length),t})):{})).then((e=>(nn.set(e),xn(Ft),e))).catch((()=>xn(Vt)))),Yt}function vn(){return i("app.lis.get.all",{ids:["bg"]}).then((e=>{const t=e.products.bg;sn.set({installed:t.installed,licensed:t.license&&"paid"===t.license.type})}))}function kn(e){return xn(Rt),hn().then((t=>{if(e!==t){return Mn(e?"/v1/command/subscribe-to-notifications/application/new-breaches":"/v1/command/unsubscribe-from-notifications/application/new-breaches",{},(e=>e instanceof zn&&1===e.status)).then((()=>{var t;return t=e,Gt=Promise.resolve(t),en.set(t),s.emit("dwmMonitoring",e),Promise.all([gn(),dn()]).then((([t,n])=>e&&!t[n.email]?wn(n.email):t[n.email]?bn(n.email,e):void 0))}))}})).then((()=>xn(Ft))).catch((()=>xn(Vt)))}function bn(e,t=!0){return Mn(t?"/v1/command/subscribe-to-notifications/email":"/v1/command/unsubscribe-from-notifications/email",{emailAddress:e,notifications:["NEW_BREACH_ALERT"]},(e=>e instanceof zn&&(1===e.status||2===e.status)))}function fn(){return xn(Rt),Mn("/v1/command/pair-device").then((()=>xn(Ft))).catch((()=>xn(Vt)))}function _n(e){return Mn("/v1/command/resolve-site-breach/email-address",{breachId:e.breachId,emailAddress:e.email}).then((()=>pn(!0))).then((t=>{var n;e.resolved=!0,e.resolutionDate=Date.now(),n=t,Xt=Promise.resolve(n),tn.set(n),s.emit("dwmLeakResolved")})).catch((()=>xn(Vt,!1,!1)))}function wn(e,t=!1){return xn(Rt),gn().then((n=>{if(!n[e]||t)return Mn("/v1/command/request-authorization/email-address/account",{emailAddress:e},(e=>e instanceof zn&&(1===e.status||2===e.status||3===e.status))).then((()=>kn(!0))).then((()=>bn(e,!0))).then((()=>Promise.all([pn(!0),gn(!0)]))).then((([t])=>{t?.emailsData?.[e]}))})).then((()=>xn(Ft))).catch((()=>xn(Vt)))}function $n(e){d.set("avcfg://settings/common/DWMBreachesTotal",e.total),d.set("avcfg://settings/common/DWMBreachesUnresolved",e.unresolved)}function yn(e){d.set("avcfg://settings/common/DWMEmailsEntered",e)}function xn(e,t,n=!0){n&&(e===Rt?Zt+=1:Zt-=1),Zt>0&&e==Ft&&!t||Kt.update((n=>n!==Vt||t?e:n))}function Mn(e,t,n){const s=Date.now();return i("app.dwm.DoRequest",{endpoint:e,payload:t}).then((n=>{const i=n.response,o=parseInt(n.headers["Vaar-Status"]);return 0!==o?Promise.reject(new zn(o)):(console.groupCollapsed("%c 🕵️♂ DarkWebMonitor %c "+e+" %c in "+(Date.now()-s)+"ms ","background: #000; color: #fff","background: #00b81d; color: #FFF","background: #FFF; color: #009cff"),console.log("❯",t),console.log("❮",i),console.groupEnd(),i)})).catch((i=>{if(console.groupCollapsed("%c 🕵️♂ DarkWebMonitor %c "+e+" %c in "+(Date.now()-s)+"ms ","background: #000; color: #fff","background: #ff0000; color: #FFF","background: #FFF; color: #009cff"),console.error("❯",t),console.error("❮",i),console.groupEnd(),!n||!n(i))return console.error(e,i),Promise.reject(i)}))}class zn{constructor(e){this.status=e}toString(){return"Server return status "+this.status}}const En={resolved:"resolved",resolving:"resolving",openingSite:"openingSite",changingPassword:"changingPassword"};class Cn{constructor(e){this.STATES=En,this.siteUrl=e.siteUrl,this.breach=Object.assign({},e),this.store=Nt({hiddenPassword:this.getHiddenPassword(e.password),isExpanded:!1,showPassword:!1,state:e.resolved?En.resolved:null,resolutionDate:e.resolutionDate})}getStore(){return this.store}getHiddenPassword(e){let t="************";if(e){t=e.replace(/./g,"*");const n=t.length;n>=3&&(t=t.substr(0,1)+e[1]+t.substr(2,n-3)+e[n-1])}return t}toggleDetail(){this.store.update((e=>(e.isExpanded=!e.isExpanded,e)))}changePassword(){this.setState(En.openingSite),Promise.all([new Promise((e=>setTimeout(e,1e3))),t.browse("http://"+this.siteUrl)]).finally((()=>{this.setState(En.changingPassword)}))}showPassword(e){this.store.update((t=>(t.showPassword=e,t)))}resolve(){this.setState(En.resolving),_n(this.breach).finally((()=>{this.store.update((e=>(e.resolutionDate=Date.now(),e))),this.setState(En.resolved)}))}setState(e){this.store.update((t=>(t.state=e,t)))}}function Dn(e){let t;return{c(){t=W("kin-icon"),O(t,"class","dwm__sub-icon svelte-olalp4"),O(t,"name","badge-critical"),O(t,"size","16"),O(t,"data-test","badge-critical")},m(e,n){D(e,t,n)},d(e){e&&I(t)}}}function In(e){let t;return{c(){t=W("kin-icon"),O(t,"class","dwm__sub-icon svelte-olalp4"),O(t,"name","badge-ok"),O(t,"size","16"),O(t,"data-test","badge-ok")},m(e,n){D(e,t,n)},d(e){e&&I(t)}}}function qn(e){let t,n=a("darkWebMonitor.breach.discovered",r(e[0].publishDate).format("LL"))+"";return{c(){t=T(n)},m(e,n){D(e,t,n)},p(e,s){1&s&&n!==(n=a("darkWebMonitor.breach.discovered",r(e[0].publishDate).format("LL"))+"")&&j(t,n)},d(e){e&&I(t)}}}function Wn(e){let t,n=a("darkWebMonitor.breach.solved",r(e[0].resolutionDate).format("LL"))+"";return{c(){t=T(n)},m(e,n){D(e,t,n)},p(e,s){1&s&&n!==(n=a("darkWebMonitor.breach.solved",r(e[0].resolutionDate).format("LL"))+"")&&j(t,n)},d(e){e&&I(t)}}}function Tn(e){let t,n,s;return{c(){t=W("kin-button"),t.innerHTML='<kin-icon name="icon-s-controls-arrow-down" size="14"></kin-icon>',O(t,"type","blank"),O(t,"size","tiny"),O(t,"icononly","")},m(i,o){D(i,t,o),n||(s=H(t,"click",e[8]),n=!0)},p:v,d(e){e&&I(t),n=!1,s()}}}function Ln(e){let t,n,s;return{c(){t=W("kin-button"),t.innerHTML='<kin-icon name="icon-s-controls-arrow-up" size="14"></kin-icon>',O(t,"type","blank"),O(t,"size","tiny"),O(t,"icononly","")},m(i,o){D(i,t,o),n||(s=H(t,"click",e[7]),n=!0)},p:v,d(e){e&&I(t),n=!1,s()}}}function Sn(e){let t,n,s,i,o,l,r,c,u,d,h,p,m,g,v=e[0].email+"",k=e[0].breachDescription&&Hn(e);function b(e,t){return e[2].showPassword&&e[0].password?An:jn}let f=b(e),_=f(e),w=e[0].emailAuthorized&&Nn(e);return{c(){t=W("div"),n=W("div"),k&&k.c(),s=L(),i=W("div"),o=W("span"),o.textContent=`${a("darkWebMonitor.breach.detail.account")}`,l=L(),r=W("span"),c=T(v),u=L(),d=W("div"),h=W("span"),h.textContent=`${a("darkWebMonitor.breach.detail.password")}`,p=L(),m=W("span"),_.c(),g=L(),w&&w.c(),P(i,"class","dwm__account_row svelte-olalp4"),P(d,"class","dwm__account_row g-margin-bottom--20 svelte-olalp4"),P(n,"class","dwm__breach_detail svelte-olalp4"),P(t,"class","kin_table__row dwm__breach_row_details dwm__breach_row svelte-olalp4")},m(e,a){D(e,t,a),C(t,n),k&&k.m(n,null),C(n,s),C(n,i),C(i,o),C(i,l),C(i,r),C(r,c),C(n,u),C(n,d),C(d,h),C(d,p),C(d,m),_.m(m,null),C(n,g),w&&w.m(n,null)},p(e,t){e[0].breachDescription?k?k.p(e,t):(k=Hn(e),k.c(),k.m(n,s)):k&&(k.d(1),k=null),1&t&&v!==(v=e[0].email+"")&&j(c,v),f===(f=b(e))&&_?_.p(e,t):(_.d(1),_=f(e),_&&(_.c(),_.m(m,null))),e[0].emailAuthorized?w?w.p(e,t):(w=Nn(e),w.c(),w.m(n,null)):w&&(w.d(1),w=null)},d(e){e&&I(t),k&&k.d(),_.d(),w&&w.d()}}}function Hn(e){let t;function n(e,t){return e[0].breachDescription.length<=Gn||e[1]?On:Pn}let s=n(e),i=s(e);return{c(){t=W("p"),i.c(),P(t,"class","g-margin-bottom--20")},m(e,n){D(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&I(t),i.d()}}}function Pn(e){let t,n,s,i,o,l=g.ellipsis(e[0].breachDescription,Gn)+"";return{c(){t=T(l),n=L(),s=W("button"),s.textContent=`${a("darkWebMonitor.breach.detail.more")}`,P(s,"class","a -small -secondary")},m(l,a){D(l,t,a),D(l,n,a),D(l,s,a),i||(o=H(s,"click",e[9]),i=!0)},p(e,n){1&n&&l!==(l=g.ellipsis(e[0].breachDescription,Gn)+"")&&j(t,l)},d(e){e&&I(t),e&&I(n),e&&I(s),i=!1,o()}}}function On(e){let t,n=e[0].breachDescription+"";return{c(){t=T(n)},m(e,n){D(e,t,n)},p(e,s){1&s&&n!==(n=e[0].breachDescription+"")&&j(t,n)},d(e){e&&I(t)}}}function jn(e){let t,n,s,i,o=e[2].hiddenPassword+"",l=e[0].password&&Bn(e);return{c(){t=W("span"),n=T(o),s=L(),l&&l.c(),i=S(),P(t,"class","dwm__account_hiddenPassword svelte-olalp4")},m(e,o){D(e,t,o),C(t,n),D(e,s,o),l&&l.m(e,o),D(e,i,o)},p(e,t){4&t&&o!==(o=e[2].hiddenPassword+"")&&j(n,o),e[0].password?l?l.p(e,t):(l=Bn(e),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},d(e){e&&I(t),e&&I(s),l&&l.d(e),e&&I(i)}}}function An(e){let t,n,s,i,o,l=e[0].password+"";return{c(){t=T(l),n=L(),s=W("button"),s.textContent=`${a("global.hidePassword")}`,P(s,"class","a -small -secondary g-margin-left--10")},m(l,a){D(l,t,a),D(l,n,a),D(l,s,a),i||(o=H(s,"click",e[5]),i=!0)},p(e,n){1&n&&l!==(l=e[0].password+"")&&j(t,l)},d(e){e&&I(t),e&&I(n),e&&I(s),i=!1,o()}}}function Bn(e){let t,n,s;return{c(){t=W("button"),t.textContent=`${a("global.showPassword")}`,P(t,"class","a -small -secondary g-margin-left--10")},m(i,o){D(i,t,o),n||(s=H(t,"click",e[5]),n=!0)},p:v,d(e){e&&I(t),n=!1,s()}}}function Nn(e){let t;function n(e,t){return e[2].state===e[3].STATES.resolved?Vn:e[2].state===e[3].STATES.resolving||e[2].state===e[3].STATES.openingSite?Fn:e[2].state===e[3].STATES.changingPassword?Rn:Un}let s=n(e),i=s(e);return{c(){i.c(),t=S()},m(e,n){i.m(e,n),D(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&I(t)}}}function Un(e){let t,n,s,i,o,l,r,c,u,d,h,p=a("darkWebMonitor.breach.detail.resolve.passwordChanged.tooltip")+"";return{c(){t=W("kin-button"),t.textContent=`${a("darkWebMonitor.breach.detail.password.change")}`,n=L(),s=W("button"),s.textContent=`${a("darkWebMonitor.breach.detail.resolve.passwordChanged")}`,i=L(),o=W("kin-tooltip"),l=W("div"),l.innerHTML='<kin-icon name="icon-m-action-info" size="20"></kin-icon>',r=L(),c=W("div"),u=W("p"),O(t,"type","secondary"),O(t,"class","g-margin-right--20"),O(t,"data-test","dwm_change-pass"),P(s,"class","a -small -secondary"),P(l,"slot","tooltip-activator"),P(u,"class","p -small"),P(c,"slot","tooltip")},m(a,m){D(a,t,m),D(a,n,m),D(a,s,m),D(a,i,m),D(a,o,m),C(o,l),C(o,r),C(o,c),C(c,u),u.innerHTML=p,d||(h=[H(t,"click",e[12]),H(s,"click",e[13])],d=!0)},p:v,d(e){e&&I(t),e&&I(n),e&&I(s),e&&I(i),e&&I(o),d=!1,f(h)}}}function Rn(e){let t,n,s,i,o,l=a("darkWebMonitor.breach.detail.site.reopen",e[0].siteTitle)+"";return{c(){t=W("kin-button"),t.textContent=`${a("darkWebMonitor.breach.detail.resolve.markPasswordChanged")}`,n=L(),s=W("button"),O(t,"type","secondary"),O(t,"class","g-margin-right--20"),O(t,"data-test","dwm_breach-resolve"),P(s,"class","a -small -secondary")},m(a,r){D(a,t,r),D(a,n,r),D(a,s,r),s.innerHTML=l,i||(o=[H(t,"click",e[10]),H(s,"click",e[11])],i=!0)},p(e,t){1&t&&l!==(l=a("darkWebMonitor.breach.detail.site.reopen",e[0].siteTitle)+"")&&(s.innerHTML=l)},d(e){e&&I(t),e&&I(n),e&&I(s),i=!1,f(o)}}}function Fn(e){let t;return{c(){t=W("kin-loading")},m(e,n){D(e,t,n)},p:v,d(e){e&&I(t)}}}function Vn(e){let t,n,s,i=a("darkWebMonitor.breach.detail.resolved")+"";return{c(){t=W("kin-icon"),n=L(),s=T(i),O(t,"name","badge-ok"),O(t,"size","16")},m(e,i){D(e,t,i),D(e,n,i),D(e,s,i)},p:v,d(e){e&&I(t),e&&I(n),e&&I(s)}}}function Jn(e){let t,n,s,i,o,l,a,r,c,u,d,h,p,m=e[0].siteTitle+"";function g(e,t){return e[2].state===e[3].STATES.resolved?In:Dn}let k=g(e),b=k(e);function f(e,t){return e[2].state===e[3].STATES.resolved?Wn:qn}let _=f(e),w=_(e);function $(e,t){return e[2].isExpanded?Ln:Tn}let y=$(e),x=y(e),M=e[2].isExpanded&&Sn(e);return{c(){t=W("div"),n=W("div"),s=W("kin-icon"),i=L(),b.c(),o=L(),l=W("div"),a=T(m),r=L(),c=W("div"),w.c(),u=L(),d=W("div"),x.c(),h=L(),M&&M.c(),p=S(),O(s,"name","icon-m-profile"),O(s,"size","24"),P(n,"class","kin_table__icon"),P(d,"class","kin_table__actions"),P(t,"class","kin_table__row dwm__breach_row svelte-olalp4")},m(e,m){D(e,t,m),C(t,n),C(n,s),C(n,i),b.m(n,null),C(t,o),C(t,l),C(l,a),C(t,r),C(t,c),w.m(c,null),C(t,u),C(t,d),x.m(d,null),D(e,h,m),M&&M.m(e,m),D(e,p,m)},p(e,[t]){k!==(k=g(e))&&(b.d(1),b=k(e),b&&(b.c(),b.m(n,null))),1&t&&m!==(m=e[0].siteTitle+"")&&j(a,m),_===(_=f(e))&&w?w.p(e,t):(w.d(1),w=_(e),w&&(w.c(),w.m(c,null))),y===(y=$(e))&&x?x.p(e,t):(x.d(1),x=y(e),x&&(x.c(),x.m(d,null))),e[2].isExpanded?M?M.p(e,t):(M=Sn(e),M.c(),M.m(p.parentNode,p)):M&&(M.d(1),M=null)},i:v,o:v,d(e){e&&I(t),b.d(),w.d(),x.d(),e&&I(h),M&&M.d(e),e&&I(p)}}}const Gn=150;function Xn(e,t,n){let s,i;y(e,un,(e=>n(14,i=e)));let{ipmElementId:o}=t,{breachData:l={}}=t;const a=new Cn(l),r=a.getStore();y(e,r,(e=>n(2,s=e)));let c=!1;return e.$$set=e=>{"ipmElementId"in e&&n(6,o=e.ipmElementId),"breachData"in e&&n(0,l=e.breachData)},[l,c,s,a,r,function(){s.showPassword||!o||i.installed?a.showPassword(!s.showPassword):h.openWindow(o,{p_scr:"passwordscanresults"})},o,()=>a.toggleDetail(),()=>a.toggleDetail(),()=>n(1,c=!0),()=>a.resolve(),()=>a.changePassword(),()=>a.changePassword(),()=>a.resolve()]}class Yn extends be{constructor(e){var t;super(),document.getElementById("svelte-olalp4-style")||((t=W("style")).id="svelte-olalp4-style",t.textContent=".dwm__breach_row.svelte-olalp4.svelte-olalp4:not(.dwm__breach_row_details){grid-template-columns:6% 30% 50% 14%}.dwm__breach_row.dwm__breach_row_details.svelte-olalp4 .dwm__breach_detail.svelte-olalp4{display:block;padding:20px;font-size:var(--font-size)}.dwm__sub-icon.svelte-olalp4.svelte-olalp4{position:absolute;top:2rem;left:2.4rem}.dwm__account_row.svelte-olalp4.svelte-olalp4{display:grid;grid-template-columns:30% 70%}.dwm__account_hiddenPassword.svelte-olalp4.svelte-olalp4{letter-spacing:4px}",C(document.head,t)),ke(this,e,Xn,Jn,w,{ipmElementId:6,breachData:0})}}function Zn(e,t,n){const s=e.slice();return s[7]=t[n],s}function Kn(e,t,n){const s=e.slice();return s[7]=t[n],s}function Qn(e){let t,n,s,i=a("darkWebMonitor.scan.noLeaks")+"";return{c(){t=W("kin-icon"),n=L(),s=T(i),O(t,"name","circle-ok"),O(t,"size","20"),O(t,"class","g-margin-right--10")},m(e,i){D(e,t,i),D(e,n,i),D(e,s,i)},p:v,i:v,o:v,d(e){e&&I(t),e&&I(n),e&&I(s)}}}function es(e){let t,n,s,i,o=e[1],l=[];for(let r=0;r<o.length;r+=1)l[r]=ts(Kn(e,o,r));const a=e=>de(l[e],1,1,(()=>{l[e]=null}));return{c(){t=W("kin-table"),n=W("div");for(let e=0;e<l.length;e+=1)l[e].c();P(n,"slot","table-body"),O(t,"datalength",s=e[1].length)},m(e,s){D(e,t,s),C(t,n);for(let t=0;t<l.length;t+=1)l[t].m(n,null);i=!0},p(e,r){if(3&r){let t;for(o=e[1],t=0;t<o.length;t+=1){const s=Kn(e,o,t);l[t]?(l[t].p(s,r),ue(l[t],1)):(l[t]=ts(s),l[t].c(),ue(l[t],1),l[t].m(n,null))}for(re(),t=o.length;t<l.length;t+=1)a(t);ce()}(!i||2&r&&s!==(s=e[1].length))&&O(t,"datalength",s)},i(e){if(!i){for(let e=0;e<o.length;e+=1)ue(l[e]);i=!0}},o(e){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)de(l[t]);i=!1},d(e){e&&I(t),q(l,e)}}}function ts(e){let t,n;return t=new Yn({props:{breachData:e[7],ipmElementId:e[0]}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};2&n&&(s.breachData=e[7]),1&n&&(s.ipmElementId=e[0]),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function ns(e){let t,n,s,i,o,l,a;function r(e,t){return e[3]?is:ss}let c=r(e),u=c(e),d=e[3]&&os(e);return{c(){t=W("div"),n=W("button"),u.c(),s=L(),d&&d.c(),i=S(),P(n,"class","a -small -secondary"),P(n,"data-test","dwm_toggle-history"),P(t,"class","g-margin-top--20 g-margin-bottom--20")},m(r,c){D(r,t,c),C(t,n),u.m(n,null),D(r,s,c),d&&d.m(r,c),D(r,i,c),o=!0,l||(a=H(n,"click",e[4]),l=!0)},p(e,t){c===(c=r(e))&&u?u.p(e,t):(u.d(1),u=c(e),u&&(u.c(),u.m(n,null))),e[3]?d?(d.p(e,t),8&t&&ue(d,1)):(d=os(e),d.c(),ue(d,1),d.m(i.parentNode,i)):d&&(re(),de(d,1,1,(()=>{d=null})),ce())},i(e){o||(ue(d),o=!0)},o(e){de(d),o=!1},d(e){e&&I(t),u.d(),e&&I(s),d&&d.d(e),e&&I(i),l=!1,a()}}}function ss(e){let t,n=a("darkWebMonitor.breaches.history.show",e[2].length)+"";return{c(){t=T(n)},m(e,n){D(e,t,n)},p(e,s){4&s&&n!==(n=a("darkWebMonitor.breaches.history.show",e[2].length)+"")&&j(t,n)},d(e){e&&I(t)}}}function is(e){let t,n=a("darkWebMonitor.breaches.history.hide")+"";return{c(){t=T(n)},m(e,n){D(e,t,n)},p:v,d(e){e&&I(t)}}}function os(e){let t,n,s,i,o,l,r=e[2],c=[];for(let a=0;a<r.length;a+=1)c[a]=ls(Zn(e,r,a));const u=e=>de(c[e],1,1,(()=>{c[e]=null}));return{c(){t=W("div"),t.textContent=`${a("darkWebMonitor.breaches.history")}`,n=L(),s=W("kin-table"),i=W("div");for(let e=0;e<c.length;e+=1)c[e].c();P(t,"class","dwm__heading h6 svelte-1ev2tww"),P(i,"slot","table-body"),O(s,"datalength",o=e[2].length)},m(e,o){D(e,t,o),D(e,n,o),D(e,s,o),C(s,i);for(let t=0;t<c.length;t+=1)c[t].m(i,null);l=!0},p(e,t){if(5&t){let n;for(r=e[2],n=0;n<r.length;n+=1){const s=Zn(e,r,n);c[n]?(c[n].p(s,t),ue(c[n],1)):(c[n]=ls(s),c[n].c(),ue(c[n],1),c[n].m(i,null))}for(re(),n=r.length;n<c.length;n+=1)u(n);ce()}(!l||4&t&&o!==(o=e[2].length))&&O(s,"datalength",o)},i(e){if(!l){for(let e=0;e<r.length;e+=1)ue(c[e]);l=!0}},o(e){c=c.filter(Boolean);for(let t=0;t<c.length;t+=1)de(c[t]);l=!1},d(e){e&&I(t),e&&I(n),e&&I(s),q(c,e)}}}function ls(e){let t,n;return t=new Yn({props:{breachData:e[7],ipmElementId:e[0]}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.breachData=e[7]),1&n&&(s.ipmElementId=e[0]),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function as(e){let t,n,s,i,o,l,r;const c=[es,Qn],u=[];function d(e,t){return e[1].length?0:1}s=d(e),i=u[s]=c[s](e);let h=e[2].length&&ns(e);return{c(){t=W("div"),t.textContent=`${a("darkWebMonitor.breaches.recent")}`,n=L(),i.c(),o=L(),h&&h.c(),l=S(),P(t,"class","dwm__heading h6 svelte-1ev2tww")},m(e,i){D(e,t,i),D(e,n,i),u[s].m(e,i),D(e,o,i),h&&h.m(e,i),D(e,l,i),r=!0},p(e,[t]){let n=s;s=d(e),s===n?u[s].p(e,t):(re(),de(u[n],1,1,(()=>{u[n]=null})),ce(),i=u[s],i?i.p(e,t):(i=u[s]=c[s](e),i.c()),ue(i,1),i.m(o.parentNode,o)),e[2].length?h?(h.p(e,t),4&t&&ue(h,1)):(h=ns(e),h.c(),ue(h,1),h.m(l.parentNode,l)):h&&(re(),de(h,1,1,(()=>{h=null})),ce())},i(e){r||(ue(i),ue(h),r=!0)},o(e){de(i),de(h),r=!1},d(e){e&&I(t),e&&I(n),u[s].d(e),e&&I(o),h&&h.d(e),e&&I(l)}}}function rs(e,t,n){let{ipmElementId:s}=t;const i=[],o=[];let l,a=!1;function r(e){n(1,i.length=0,i),n(2,o.length=0,o),e.leaks&&e.leaks.forEach((e=>{i.length<5&&!e.resolved?i.push(e):o.push(e)}))}V((()=>{l=rn.subscribe(r)})),J((()=>{l()}));return e.$$set=e=>{"ipmElementId"in e&&n(0,s=e.ipmElementId)},[s,i,o,a,()=>n(3,a=!a)]}class cs extends be{constructor(e){var t;super(),document.getElementById("svelte-1ev2tww-style")||((t=W("style")).id="svelte-1ev2tww-style",t.textContent=".dwm__heading.svelte-1ev2tww{margin:2rem 0rem}",C(document.head,t)),ke(this,e,rs,as,w,{ipmElementId:0})}}let us;const ds=Nt({},(function(){return(()=>{xn(Rt),dn(!0).then((e=>e.loggedIn?hs(!0):e.email?hs(!0,e.email):void 0)).then((()=>xn(Ft))).catch((()=>xn(Vt)))})(),()=>{us=null}}));function hs(e,t){return!e&&us||(xn(Rt),us=dn().then((e=>(e.loggedIn||ds.set({}),Promise.all([Mn("/v2/query/site-breaches/authorized-data"),Mn("/v2/query/site-breaches/unauthorized-data"),t?Mn("/v1/query/site-breaches/unauthorized-data/anonymous",{emailAddresses:[t]}):null]).then((([e,n,s])=>{const i={breaches:Object.assign(n.breaches,e.breaches),data:e.data,summary:Object.assign(n.summary,e.summary),authEmails:Object.keys(e.summary),anonymousEmails:t?[t]:[],leaksCount:{}};Object.keys(n.data).forEach((t=>{i.data[t]=Object.assign(n.data[t],e.data[t]||{})})),s&&(i.breaches=Object.assign(s.breaches,i.breaches),i.summary=Object.assign(s.summary,i.summary),Object.keys(s.data).forEach((e=>{i.data[e]=Object.assign(s.data[e]||{},i.data[e])})));const o={},l={};let a=0,r=0;return Object.keys(i.summary).forEach((e=>{const t=i.summary[e].breaches;l[e]=t,o[e]={leaks:[],leaksHistory:[],leaksCount:t.length,hasAnyBreach:t.length>0,isMonitored:i.authEmails.includes(e),resolved:0,unresolved:0},t.forEach((t=>{const n=i.breaches[t];i.data[n.site][e]?.forEach((s=>{let l;Object.keys(s.password||{}).forEach((e=>{s.password[e].plaintext&&!l&&(l=s.password[e].value)}));let c="leaksHistory";const u="RESOLVED"===s.resolutionState;!(o[e].leaks.length<5)||u&&o[e].unresolved||(u||(i.hasAnyBreach=!0),c="leaks"),o[e][c].push({breachId:t,breachDescription:n.description,siteTitle:n.title,siteDescription:n.siteDescription,siteUrl:n.site,publishDate:Date.parse(n.publishDate),resolutionState:s.resolutionState,resolutionDate:s.resolutionDate,email:e,emailAuthorized:i.authEmails.includes(e),password:l,resolved:u}),u?(a++,o[e].resolved++):(r++,o[e].unresolved++)}))}))})),localStorage.setItem("dwmBreaches",JSON.stringify({lastCheck:Date.now(),leaks:l})),i.leaksCount={total:a+r,resolved:a,unresolved:r},i.emailsData=o,ds.set(i),$n(i.leaksCount),i})).then((e=>(xn(Ft),e))))))),us}Ut(on,(e=>e)),Ut(cn,(e=>e)),Ut(ln,(e=>e)),Ut(an,(e=>e)),Ut(ds,(e=>e)),Ut(ds,(e=>e?.authEmails?.length));const ps=c.isTheOne(),ms="scanning",gs="scanned";let vs,ks=null;const bs=Nt(!1),fs=Nt(""),_s=Nt(!1),ws=Nt({},(()=>Is));Ut(bs,(e=>e)),Ut(fs,(e=>e));const $s=Ut(_s,(e=>e)),ys=Ut(ws,(e=>e));function xs(){kn(!0)}function Ms(){_s.set(!0)}function zs(){_s.set(!1),kn(!1)}function Es(){_s.set(!1)}function Cs(e=null){return ws.update((e=>(e.state=ms,e.progress=0,e.results=!1,e))),ps?hs(!0,e).then((t=>{const s=t?.emailsData?.[e];s&&n.automatedActivity("L3 Breach Guard","AutomatedEvent","Data breach detected","Breach Guard",{a1:s.leaksCount})})):e?mn(e):pn(!0),function(){const e=new Promise((e=>{ks=e}));return vs=setInterval((()=>{ws.update((e=>{if(e.progress<100)e.progress=Math.ceil(e.progress+.15*(100-e.progress));else{Is();(ps?hs:pn)().then((e=>{ws.update((t=>(t.state=gs,t.results=!e.leaksCount.unresolved,t))),ks()}))}return e}))}),200),e}()}function Ds(){ws.set({}),ks&&ks()}function Is(){vs=clearInterval(vs)}function qs(e){let t,n;return{c(){t=W("div"),n=W("kin-crumbs"),O(n,"section","privacy"),O(n,"sectionlabel",a("privacy")),O(n,"modulelabel",a("darkWebMonitor")),P(t,"slot","breadcrumbs")},m(e,s){D(e,t,s),C(t,n)},p:v,d(e){e&&I(t)}}}function Ws(e){let t,n;return t=new ot({props:{$$slots:{"view-content":[Ns],cta:[Bs],description:[As]},$$scope:{ctx:e}}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};131106&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function Ts(e){let t,n;return t=new ot({props:{$$slots:{"view-content":[Us]},$$scope:{ctx:e}}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};131072&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function Ls(e){let t,n;return t=new ot({props:{$$slots:{"view-content":[Rs]},$$scope:{ctx:e}}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};131080&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function Ss(e){let t,n;return t=new ot({props:{$$slots:{"view-content":[Js],cta:[Vs],description:[Fs]},$$scope:{ctx:e}}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};131104&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function Hs(e){let t,n,s,i,o,l,r,c,u,d,h,p,m,g,v,k,b,f,_,w,$,y;return t=new ot({props:{$$slots:{"view-content":[Ys],cta:[Xs],description:[Gs]},$$scope:{ctx:e}}}),{c(){pe(t.$$.fragment),n=L(),s=W("div"),i=W("div"),o=W("div"),o.textContent=`${a("darkWebMonitor.howitworks.title")}`,l=L(),r=W("ul"),c=W("li"),u=W("kin-icon"),d=L(),h=W("p"),h.textContent=`${a("darkWebMonitor.howitworks.step1")}`,p=L(),m=W("li"),g=W("kin-icon"),v=L(),k=W("p"),k.textContent=`${a("darkWebMonitor.howitworks.step2")}`,b=L(),f=W("li"),_=W("kin-icon"),w=L(),$=W("p"),$.textContent=`${a("darkWebMonitor.howitworks.step3")}`,P(o,"class","dwm__how-it-works_heading svelte-161u31g"),O(u,"name","icon-l-hacker"),O(u,"size","50"),P(h,"class","dwm__how-it-works-list-item-text svelte-161u31g"),P(c,"class","dwm__how-it-works-list-item svelte-161u31g"),O(g,"name","icon-l-send"),O(g,"size","50"),P(k,"class","dwm__how-it-works-list-item-text svelte-161u31g"),P(m,"class","dwm__how-it-works-list-item svelte-161u31g"),O(_,"name","icon-l-warning-sign"),O(_,"size","50"),P($,"class","dwm__how-it-works-list-item-text svelte-161u31g"),P(f,"class","dwm__how-it-works-list-item svelte-161u31g"),P(r,"class","dwm__how-it-works-list svelte-161u31g"),P(i,"class","dwm__how-it-works svelte-161u31g"),P(s,"class","dwm__how-it-works_container svelte-161u31g")},m(e,a){me(t,e,a),D(e,n,a),D(e,s,a),C(s,i),C(i,o),C(i,l),C(i,r),C(r,c),C(c,u),C(c,d),C(c,h),C(r,p),C(r,m),C(m,g),C(m,v),C(m,k),C(r,b),C(r,f),C(f,_),C(f,w),C(f,$),y=!0},p(e,n){const s={};131073&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){y||(ue(t.$$.fragment,e),y=!0)},o(e){de(t.$$.fragment,e),y=!1},d(e){ge(t,e),e&&I(n),e&&I(s)}}}function Ps(e){let t,n;return t=new ot({props:{$$slots:{"view-content":[Zs]},$$scope:{ctx:e}}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};131072&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function Os(e){let t,n;return t=new ot({props:{$$slots:{"view-content":[Ks]},$$scope:{ctx:e}}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};131072&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function js(e){let t,n;return t=new ot({props:{loading:!0}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p:v,i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function As(e){let t,n,s,i,o,l,r,c=a("darkWebMonitor.desc.on",e[5].email)+"";return{c(){t=W("div"),n=W("div"),i=L(),o=W("button"),o.textContent=`${a("darkWebMonitor.monitor.stop")}`,s=new N(i),P(o,"class","a -small -secondary"),P(o,"data-test","dwm_stop-monitor"),P(n,"class","kin_description__text"),P(t,"slot","description")},m(e,a){D(e,t,a),C(t,n),s.m(c,n),C(n,i),C(n,o),l||(r=H(o,"click",Ms),l=!0)},p(e,t){32&t&&c!==(c=a("darkWebMonitor.desc.on",e[5].email)+"")&&s.p(c)},d(e){e&&I(t),l=!1,r()}}}function Bs(e){let t,n,s,i,o,l;return{c(){t=W("div"),n=W("kin-button"),n.textContent=`${a("darkWebMonitor.scan.start")}`,s=L(),i=W("kin-button"),i.textContent=`${a("darkWebMonitor.monitorMoreEmails")}`,O(n,"data-test","dwm_scan"),O(i,"type","secondary"),O(i,"class","g-margin-left--10"),P(t,"slot","cta")},m(a,r){D(a,t,r),C(t,n),C(t,s),C(t,i),o||(l=[H(n,"click",e[11]),H(i,"click",e[12])],o=!0)},p:v,d(e){e&&I(t),o=!1,f(l)}}}function Ns(e){let t,n,s;return n=new cs({props:{ipmElementId:e[1]}}),{c(){t=W("div"),pe(n.$$.fragment),P(t,"slot","view-content")},m(e,i){D(e,t,i),me(n,t,null),s=!0},p(e,t){const s={};2&t&&(s.ipmElementId=e[1]),n.$set(s)},i(e){s||(ue(n.$$.fragment,e),s=!0)},o(e){de(n.$$.fragment,e),s=!1},d(e){e&&I(t),ge(n)}}}function Us(e){let t,n,s,i,o,l,r,c,u,d,h,p,m;return{c(){t=W("div"),n=W("kin-icon"),s=L(),i=W("h2"),i.textContent=`${a("darkWebMonitor.scan.finished")}`,o=L(),l=W("div"),l.textContent=`${a("darkWebMonitor.scan.noLeaks")}`,r=L(),c=W("div"),u=W("kin-button"),u.textContent=`${a("global.next")}`,d=L(),h=W("kin-button"),h.textContent=`${a("darkWebMonitor.monitorMoreEmails")}`,O(n,"name","circle-ok"),O(n,"size","96"),O(n,"class","dwm__bigicon g-margin-bottom--20 svelte-161u31g"),P(i,"class","h2"),O(h,"type","secondary"),O(h,"class","g-margin-left--10"),P(c,"class","dwm__results-actions svelte-161u31g"),P(t,"slot","view-content"),P(t,"class","g-align--center")},m(a,g){D(a,t,g),C(t,n),C(t,s),C(t,i),C(t,o),C(t,l),C(t,r),C(t,c),C(c,u),C(c,d),C(c,h),p||(m=[H(u,"click",Ds),H(h,"click",e[10])],p=!0)},p:v,d(e){e&&I(t),p=!1,f(m)}}}function Rs(e){let t,n,s,i,o,l,r=a("darkWebMonitor.scan.desc")+"";return{c(){t=W("div"),n=W("div"),s=W("kin-progress"),o=L(),l=T(r),O(s,"percentage",i=e[3].progress),O(s,"dotted","true"),P(n,"class","kin_scan__progress"),P(t,"slot","view-content"),P(t,"class","g-align--center")},m(e,i){D(e,t,i),C(t,n),C(n,s),C(t,o),C(t,l)},p(e,t){8&t&&i!==(i=e[3].progress)&&O(s,"percentage",i)},d(e){e&&I(t)}}}function Fs(e){let t,n,s=a("darkWebMonitor.desc.off",e[5].email)+"";return{c(){t=W("div"),n=W("div"),P(n,"class","kin_description__text"),P(t,"slot","description")},m(e,i){D(e,t,i),C(t,n),n.innerHTML=s},p(e,t){32&t&&s!==(s=a("darkWebMonitor.desc.off",e[5].email)+"")&&(n.innerHTML=s)},d(e){e&&I(t)}}}function Vs(e){let t,n,s,i;return{c(){t=W("div"),n=W("kin-button"),n.textContent=`${a("darkWebMonitor.monitor.start")}`,O(n,"data-test","dwm_start-monitor"),P(t,"slot","cta")},m(e,o){D(e,t,o),C(t,n),s||(i=H(n,"click",xs),s=!0)},p:v,d(e){e&&I(t),s=!1,i()}}}function Js(e){let t;return{c(){t=W("div"),t.innerHTML='<div class="g-align--center g-margin-top--40"><kin-icon name="icon-xl-darkweb-scan" size="220"></kin-icon></div>',P(t,"slot","view-content")},m(e,n){D(e,t,n)},d(e){e&&I(t)}}}function Gs(e){let t,n;return{c(){t=W("div"),n=W("p"),n.textContent=`${a("darkWebMonitor.desc.disconnected")}`,P(n,"class","kin_description__text"),P(t,"slot","description")},m(e,s){D(e,t,s),C(t,n)},p:v,d(e){e&&I(t)}}}function Xs(e){let t,n,s,i;return{c(){t=W("div"),n=W("kin-button"),n.textContent=`${a("darkWebMonitor.monitor.login")}`,O(n,"data-test","dwm_login"),P(t,"slot","cta")},m(o,l){D(o,t,l),C(t,n),s||(i=H(n,"click",e[9]),s=!0)},p:v,d(e){e&&I(t),s=!1,i()}}}function Ys(e){let t;return{c(){t=W("div"),P(t,"slot","view-content")},m(e,n){D(e,t,n)},d(e){e&&I(t)}}}function Zs(e){let t,n,s,i,o,l,r;return{c(){t=W("div"),n=W("kin-icon"),s=L(),i=W("div"),o=W("h2"),o.textContent=`${a("darkWebMonitor.error.line1")}`,l=L(),r=W("p"),r.textContent=`${a("darkWebMonitor.error.line2")}`,O(n,"name","circle-error"),O(n,"size","96"),O(n,"class","dwm__bigicon svelte-161u31g"),P(o,"class","h2 g-margin-bottom--10"),P(i,"class","dwm__error_text g-margin-top--20 svelte-161u31g"),P(t,"slot","view-content"),P(t,"class","g-align--center")},m(e,a){D(e,t,a),C(t,n),C(t,s),C(t,i),C(i,o),C(i,l),C(i,r)},p:v,d(e){e&&I(t)}}}function Ks(e){let t,n,s,i,o,l,r;return{c(){t=W("div"),n=W("div"),s=L(),i=W("div"),o=W("h2"),o.textContent=`${a("darkWebMonitor.offline.heading")}`,l=L(),r=W("p"),r.textContent=`${a("darkWebMonitor.offline.desc")}`,P(n,"class","svg -disconnected sve_offline-page__icon"),P(o,"class","h2 g-margin-bottom--10"),P(i,"class","dwm__error_text g-margin-top--20 svelte-161u31g"),P(t,"slot","view-content"),P(t,"class","g-align--center")},m(e,a){D(e,t,a),C(t,n),C(t,s),C(t,i),C(i,o),C(i,l),C(i,r)},p:v,d(e){e&&I(t)}}}function Qs(e){let t,n,s,i;const o=[js,Os,Ps,Hs,Ss,Ls,Ts,Ws],l=[];function a(e,t){return e[2]===Rt&&e[3].state!==ms?0:e[4].online?e[2]===Vt?2:e[5].loggedIn?e[6]?e[3].state===ms?5:e[3].state===gs&&e[3].results?6:7:4:3:1}return n=a(e),s=l[n]=o[n](e),{c(){t=W("div"),s.c(),P(t,"slot","page-content"),P(t,"class","dwm_pagecontent svelte-161u31g")},m(e,s){D(e,t,s),l[n].m(t,null),i=!0},p(e,i){let r=n;n=a(e),n===r?l[n].p(e,i):(re(),de(l[r],1,1,(()=>{l[r]=null})),ce(),s=l[n],s?s.p(e,i):(s=l[n]=o[n](e),s.c()),ue(s,1),s.m(t,null))},i(e){i||(ue(s),i=!0)},o(e){de(s),i=!1},d(e){e&&I(t),l[n].d()}}}function ei(e){let t,n;return t=new zt({props:{$$slots:{"modal-footer":[ni],"modal-content":[ti]},$$scope:{ctx:e}}}),t.$on("close",Es),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,n){const s={};131104&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function ti(e){let t,n,s,i,o,l,r=a("darkWebMonitor.modal.stop.desc",e[5].email)+"";return{c(){t=W("div"),n=W("kin-icon"),s=L(),i=W("h2"),i.textContent=`${a("darkWebMonitor.modal.stop.title")}`,o=L(),l=W("p"),O(n,"name","circle-error"),O(n,"size","96"),P(i,"class","h2 modal__title g-margin-top--30"),P(l,"class","p"),P(t,"slot","modal-content")},m(e,a){D(e,t,a),C(t,n),C(t,s),C(t,i),C(t,o),C(t,l),l.innerHTML=r},p(e,t){32&t&&r!==(r=a("darkWebMonitor.modal.stop.desc",e[5].email)+"")&&(l.innerHTML=r)},d(e){e&&I(t)}}}function ni(e){let t,n,s,i,o,l;return{c(){t=W("div"),n=W("kin-button"),n.textContent=`${a("darkWebMonitor.modal.stop.btn.stop")}`,s=L(),i=W("kin-button"),i.textContent=`${a("global.cancel")}`,O(n,"type","critical"),O(i,"type","secondary"),P(t,"slot","modal-footer")},m(e,a){D(e,t,a),C(t,n),C(t,s),C(t,i),o||(l=[H(n,"click",zs),H(i,"click",Es)],o=!0)},p:v,d(e){e&&I(t),o=!1,f(l)}}}function si(e){let t,n,s,i;t=new Ve({props:{heading:a("darkWebMonitor"),backHash:"#privacy",$$slots:{"page-content":[Qs],breadcrumbs:[qs]},$$scope:{ctx:e}}});let o=e[7]&&ei(e);return{c(){pe(t.$$.fragment),n=L(),o&&o.c(),s=S()},m(e,l){me(t,e,l),D(e,n,l),o&&o.m(e,l),D(e,s,l),i=!0},p(e,[n]){const i={};131199&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i),e[7]?o?(o.p(e,n),128&n&&ue(o,1)):(o=ei(e),o.c(),ue(o,1),o.m(s.parentNode,s)):o&&(re(),de(o,1,1,(()=>{o=null})),ce())},i(e){i||(ue(t.$$.fragment,e),ue(o),i=!0)},o(e){de(t.$$.fragment,e),de(o),i=!1},d(e){ge(t,e),e&&I(n),o&&o.d(e),e&&I(s)}}}function ii(e,t,n){let s,a,r,u,d,p,m;y(e,un,(e=>n(14,s=e))),y(e,on,(e=>n(2,a=e))),y(e,ys,(e=>n(3,r=e))),y(e,o,(e=>n(4,u=e))),y(e,ln,(e=>n(5,d=e))),y(e,an,(e=>n(6,p=e))),y(e,$s,(e=>n(7,m=e)));let{featureHash:g}=t,{ipmElementId:v}=t;const k=c.getBrand()||"avast";let b;function f(e){s.installed?i("app."+k+".lis.open.ui",{id:"bg"}):s.licensed?l("MyLicenses","licenses").then((e=>e())).then((e=>e.installBestProductOf(k+"_bg"))).catch((e=>{console.error(e)})):h.openWindow(v,{p_scr:e})}V((()=>{b=[ln.subscribe((()=>{})),an.subscribe((()=>{})),rn.subscribe((()=>{})),cn.subscribe((()=>{})),un.subscribe((()=>{}))]})),J((()=>{b.forEach((e=>e())),ws.update((e=>(e.state=null,e))),ks&&ks()}));return e.$$set=e=>{"featureHash"in e&&n(0,g=e.featureHash),"ipmElementId"in e&&n(1,v=e.ipmElementId)},[g,v,a,r,u,d,p,m,f,()=>{return e=g,void(location.hash="#MyLicenses/login?backHash="+e);var e},()=>f("monitorscanfinished"),()=>Cs(),()=>f("monitorscanresults")]}class oi extends be{constructor(e){var t;super(),document.getElementById("svelte-161u31g-style")||((t=W("style")).id="svelte-161u31g-style",t.textContent='.dwm_pagecontent.svelte-161u31g{position:relative;min-height:100%}.dwm__bigicon.svelte-161u31g{margin-top:18vh}.dwm__error_text.svelte-161u31g{width:70%;margin-left:auto;margin-right:auto;line-height:2rem}.dwm__how-it-works_container.svelte-161u31g{padding:0 var(--page-padding) 2rem var(--page-padding);position:absolute;bottom:0em;width:100%}.dwm__how-it-works.svelte-161u31g{border-top:1px solid var(--color-neutral);margin-bottom:1em}.dwm__how-it-works_heading.svelte-161u31g{text-align:center;padding:1rem}.dwm__how-it-works-list.svelte-161u31g{margin-top:2rem;display:flex}.dwm__how-it-works-list-item.svelte-161u31g{text-align:center;width:33.3%;padding:0 5%;position:relative}.dwm__how-it-works-list-item-text.svelte-161u31g{margin-top:1rem}.dwm__how-it-works-list-item.svelte-161u31g:after{content:"";display:inline-block;width:100px;height:2px;background:var(--color-neutral);position:absolute;top:25px;right:-50px}.dwm__how-it-works-list-item.svelte-161u31g:last-child:after{content:initial}.dwm__results-actions.svelte-161u31g{margin-top:14rem}',C(document.head,t)),ke(this,e,ii,si,w,{featureHash:0,ipmElementId:1})}}function li(e){let t,n=a("darkWebMonitor.toaster.text.leaks",e[1])+"";return{c(){t=T(n)},m(e,n){D(e,t,n)},p:v,d(e){e&&I(t)}}}function ai(e){let t,n=a("darkWebMonitor.toaster.text.account",e[2])+"";return{c(){t=T(n)},m(e,n){D(e,t,n)},p:v,d(e){e&&I(t)}}}function ri(e){let t,n,s,i,o,l,r,c,u,d;let h=function(e,t){return 1===e[1]?ai:li}(e)(e);return{c(){t=W("div"),n=W("div"),n.innerHTML='<kin-icon name="icon-m-tools-darkweb"></kin-icon> \n\t\t\t<kin-icon class="dwm_toaster_sub_icon svelte-hjiqk2" name="badge-critical" size="20"></kin-icon>',s=L(),i=W("h2"),i.textContent=`${a("darkWebMonitor.toaster.title")}`,o=L(),l=W("p"),h.c(),r=L(),c=W("kin-button"),c.textContent=`${a("darkWebMonitor.protect")}`,P(n,"class","dwm_toaster_icon svelte-hjiqk2"),P(i,"class","sve_toaster__title h3"),P(l,"class","p -secondary g-margin-bottom--20"),O(c,"class","g-margin-bottom--20")},m(a,p){D(a,t,p),C(t,n),C(t,s),C(t,i),C(t,o),C(t,l),h.m(l,null),C(t,r),C(t,c),u||(d=H(c,"click",e[3]),u=!0)},p(e,t){h.p(e,t)},d(e){e&&I(t),h.d(),u=!1,d()}}}function ci(e){let t,n;return t=new At({props:{burgerToasterTracker:e[0],$$slots:{default:[ri]},$$scope:{ctx:e}}}),{c(){pe(t.$$.fragment)},m(e,s){me(t,e,s),n=!0},p(e,[n]){const s={};64&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(ue(t.$$.fragment,e),n=!0)},o(e){de(t.$$.fragment,e),n=!1},d(e){ge(t,e)}}}function ui(n,s,i){let{featureHash:o}=s;const l=t.getUrlParams(),a=parseInt(l.leak_count),r=l.site;return n.$$set=e=>{"featureHash"in e&&i(4,o=e.featureHash)},[{toasterView:!0,toasterClose:!0},a,r,function(){e.toaster.click({label:"open_feature"}),t.openMainWindow({route:o}).then((()=>{t.close({reason:t.CLOSE_REASONS.navigateToOtherWindow})}))},o]}class di extends be{constructor(e){var t;super(),document.getElementById("svelte-hjiqk2-style")||((t=W("style")).id="svelte-hjiqk2-style",t.textContent=".dwm_toaster_icon.svelte-hjiqk2{display:inline-block;position:relative}.dwm_toaster_sub_icon.svelte-hjiqk2{position:absolute;bottom:-0.4rem;right:-0.2rem}",C(document.head,t)),ke(this,e,ui,ci,w,{featureHash:4})}}const hi=new class{constructor(){this.dwmMonitoring=!1,this.dwmIssues=[],this.dwmIssuesLoadedResolve=null,this.dwmIssuesLoaded=new Promise((e=>{this.dwmIssuesLoadedResolve=e})),this.init()}init(){this._updateLeaks(!0),this._updateMonitoring(!0),this._checkLeaks(),s.on("dwmMonitoring",(e=>this._setMonitoring(e))),s.on("dwmLeakResolved",(()=>this._checkLeaks())),s.on("dwmLeaksUpdated",(()=>this._updateLeaks(!0))),s.on("app.dwm.OnDataChanged",(()=>this._checkLeaks())),s.on("app.lif.account.logged_out",(()=>{this._resetLeaks()})),s.on("app.lif.account.logged_in",(()=>{location.hash.match(/darkweb/i)&&(this._updateLeaks(!1,!1),this._updateMonitoring(!1))}))}loadNotifications(){return this.dwmIssuesLoaded.then((()=>this.dwmMonitoring?this.dwmIssues:[]))}_setDwmIssues(e){const t=Object.keys(e);this.dwmIssues=[],t.forEach((e=>{this.dwmIssues.push({Title:a("darkWebMonitor.notification.title"),Desc:a("darkWebMonitor.notification.text",e),ButtonCaption:a("darkWebMonitor.show"),Link:"#DarkWebMonitor",ItemUID:"dwmItem",Timestamp:Date.now(),Viewed:!0,DarkWebMonitor:!0})}))}_setMonitoring(e){this.dwmMonitoring=e,localStorage.setItem("dwmMonitoring",e?"1":"0"),s.emit("dwmIssuesUpdate")}_updateMonitoring(e=!1){e?(this.dwmMonitoring="1"===localStorage.getItem("dwmMonitoring"),s.emit("dwmIssuesUpdate")):i("app.dwm.DoRequest",{endpoint:"/v1/query/notification-subscriptions/application/new-breaches"}).then((e=>{if(!e||!e.response)return;const t=!!e.response.enabled;this._setMonitoring(t)}))}_resetLeaks(){this.dwmIssues=[],localStorage.setItem("dwmBreaches",JSON.stringify({})),s.emit("dwmIssuesUpdate")}_checkLeaks(){if(!this.dwmMonitoring)return;const e=JSON.parse(localStorage.getItem("dwmBreaches"))||{},t={};e&&e.lastCheck&&(t.sinceTimestamp=e.lastCheck),i("app.dwm.DoRequest",{endpoint:"/v1/query/state-changes",payload:t}).then((t=>{e.lastCheck=Date.now(),localStorage.setItem("dwmBreaches",JSON.stringify(e)),t.response&&t.response.entities&&!t.response.entities.includes("BREACH")||this._updateLeaks()}))}_updateLeaks(e=!1,t=!0){if(e){const e=JSON.parse(localStorage.getItem("dwmBreaches"));e&&e.leaks?this._setDwmIssues(e.leaks):this.dwmIssues=[],this.dwmIssuesLoadedResolve(),s.emit("dwmIssuesUpdate")}else Promise.all([i("app.dwm.DoRequest",{endpoint:"/v2/query/site-breaches/authorized-data"}),i("app.dwm.DoRequest",{endpoint:"/v2/query/site-breaches/unauthorized-data"})]).then((([e,n])=>{const o=e.response,l=n.response;if(!o||!l)return;const a=[o.data,l.data],r={};let c=0,u="";a.forEach((e=>{for(const t in e)for(const n in e[t])for(const s in e[t][n])"RESOLVED"!==e[t][n][s].resolutionState&&(c+=1,u=t,r[n]=r[n]||[],r[n].push(e[t][n][s].breachId))}));const d=(JSON.parse(localStorage.getItem("dwmBreaches"))||{}).leaks||{};let h=!1;for(const t in r)if(h=!d[t]||(h||r[t].some((e=>!d[t].includes(e)))),h)break;if(localStorage.setItem("dwmBreaches",JSON.stringify({lastCheck:Date.now(),leaks:r})),this._setDwmIssues(r),s.emit("dwmIssuesUpdate"),h&&t&&this.dwmMonitoring){const e="?module=DarkWebMonitor&view=leakAlertToaster&leak_count="+c+"&site="+u;i("app.windowManager.ShowToaster",{url:location.origin+location.pathname+e,popupDuration:0})}this.dwmIssuesLoadedResolve()}))}};class pi extends di{constructor(e){e.props=e.props||{},e.props.featureHash="DarkWebMonitor",super(e)}}export default class extends oi{constructor(e){e.props=e.props||{},e.props.featureHash="DarkWebMonitor",e.props.ipmElementId=434,super(e)}}export{pi as leakAlertToaster,hi as notificationService};const mi={name:"DarkWebMonitor",version:"1.2.361",created:"2021-09-06T13:05:40.463Z"};export{mi as metadata};