//{"name":"scans","version":"1.3.2710","created":"2025-10-02T14:41:06.100Z"}
import*as e from"./svelteInternal.js";import{untrack as t,createEventDispatcher as s,onDestroy as n,onMount as a}from"./svelteInternal.js";import{stringUtils as i,Focuser as o,debounce as l,Router as r,logger as c,deepExtend as d}from"./libs.js";import u,{RescueDiskTab as p,showProgressInfo as m}from"./rescueDisk.js";import{productModel as h,settingsService as g,features as f,soundService as _,ipmService as v,napiUtils as b}from"./napiExtensions.js";import{Row as w,modals as y,TextInput as x,Select as S,Checkbox as k,Radio as T,Modal as C,Illustration as I,UberPage as D,Tabs as A,Crumbs as $,UberPageActions as P,ScanProgress as R,UnterPage as N,SmartTextTrim as E,PageDesc as F,DetectionDialog as W,Widget as O,TextAction as L,Toaster as M,Container as B}from"./svelteComponents.js";import{nls as z,dayjs as U,nlsShort as q,format as V,nlst as j}from"./i18n.js";import{SchedulerModal as H,ScanningView as G,NoIssuesView as K}from"./smartScan.js";import{serviceRequest as Z,eventer as Y,napiTracker as J,windowApi as X,EventEmitter as Q,onlineChecker as ee}from"./napi.js";import{writableStore as te,settingsProps as se,goToHash as ne,TableSmartScroll as ae}from"./plugins.js";import{reportAsFalsePositive as ie}from"./virusChest.js";var oe=e.template('<span class="-text color-ok"> </span>'),le=e.template(" <!>",1),re=e.template('<span class="color-critical -text"> </span>'),ce=e.template(' <span class="color-ok -text"> </span>',1);function de(t,s){e.push(s,!1);let n=e.prop(s,"tileDesc",8),a=e.prop(s,"status",8);e.init();var i=e.comment(),o=e.first_child(i),l=t=>{var s=e.comment(),i=e.first_child(s),o=t=>{var s=e.comment(),i=e.first_child(s),o=t=>{var s=oe(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.scanTile.status.boottime.setOnNextBoot")],e.derived_safe_equal),e.append(t,s)},l=t=>{var s=e.text();e.template_effect((()=>e.set_text(s,n()))),e.append(t,s)};e.if(i,(e=>{a().boottimeScanScheduled?e(o):e(l,!1)})),e.append(t,s)},l=(t,s)=>{var i=t=>{var s=le(),n=e.first_child(s),i=e.sibling(n),o=t=>{var s=e.comment(),n=e.first_child(s);e.html(n,(()=>z("global.progress.percent",a().progress))),e.append(t,s)};e.if(i,(e=>{a().progress&&e(o)})),e.template_effect((t=>e.set_text(n,`${t??""} `)),[()=>z("scans.running")],e.derived_safe_equal),e.append(t,s)},o=(t,s)=>{var i=t=>{var s=e.comment(),n=e.first_child(s),i=t=>{var s=re(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.scanTile.status.issuesFound")],e.derived_safe_equal),e.append(t,s)},o=t=>{var s=ce(),n=e.first_child(s),i=e.sibling(n),o=e.child(i);e.reset(i),e.template_effect(((t,s)=>{e.set_text(n,`${t??""} `),e.set_text(o,`(${s??""})`)}),[()=>{return z("scans.scanNow.lastScan",(e=a().scanStarted,U(e).fromNow()));var e},()=>z("scans.scanTile.status.allClear")],e.derived_safe_equal),e.append(t,s)};e.if(n,(e=>{a().hasIssue?e(i):e(o,!1)})),e.append(t,s)},o=t=>{var s=e.text();e.template_effect((()=>e.set_text(s,n()))),e.append(t,s)};e.if(t,(e=>{a().hasUnseenResults?e(i):e(o,!1)}),s)};e.if(t,(e=>{a().isRunning?e(i):e(o,!1)}),s)};e.if(i,(e=>{Object.prototype.hasOwnProperty.call(a(),"boottimeScanScheduled")?e(o):e(l,!1)})),e.append(t,s)},r=t=>{var s=e.text();e.template_effect((()=>e.set_text(s,n()))),e.append(t,s)};e.if(o,(e=>{a()?e(l):e(r,!1)})),e.append(t,i),e.pop()}const ue=globalThis.process?.env?.NODE_ENV,pe=ue&&!ue.toLowerCase().startsWith("prod"),me=()=>{};let he=!1;if(pe){function Hd(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(pe){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}}Hd("$state"),Hd("$effect"),Hd("$derived"),Hd("$inspect"),Hd("$props"),Hd("$bindable")}function ge(e,t,s){if(null==e)return t(void 0),s&&s(void 0),me;const n=function(e){var t=he;try{return he=!0,e()}finally{he=t}}((()=>e.subscribe(t,s)));return n.unsubscribe?()=>n.unsubscribe():n}const fe=[];function _e(e,t){return{subscribe:ve(e,t).subscribe}}function ve(e,t=me){let s=null;const n=new Set;function a(t){if(i=t,((a=e)!=a?i==i:a!==i||null!==a&&"object"==typeof a||"function"==typeof a)&&(e=t,s)){const t=!fe.length;for(const s of n)s[1](),fe.push(s,e);if(t){for(let e=0;e<fe.length;e+=2)fe[e][0](fe[e+1]);fe.length=0}}var a,i}function i(t){a(t(e))}return{set:a,update:i,subscribe:function(o,l=me){const r=[o,l];return n.add(r),1===n.size&&(s=t(a,i)||me),o(e),()=>{n.delete(r),0===n.size&&s&&(s(),s=null)}}}}function be(e,t,s){const n=!Array.isArray(e),a=n?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return _e(s,((e,s)=>{let o=!1;const l=[];let r=0,c=me;const d=()=>{if(r)return;c();const a=t(n?l[0]:l,e,s);i?e(a):c="function"==typeof a?a:me},u=a.map(((e,t)=>ge(e,(e=>{l[t]=e,r&=~(1<<t),o&&d()}),(()=>{r|=1<<t}))));return o=!0,d(),function(){!function(e){for(var t=0;t<e.length;t++)e[t]()}(u),c(),o=!1}}))}function we(e){let t;return ge(e,(e=>t=e))(),t}const ye=["Label","Job","SchedulerEnabled","SchedType","SchedDays","SchedTime","ScanAreas"];let xe=class{#e;#t;#s;constructor(e){this.#s=te(),this.data=be(this.#s,(e=>e)),"string"==typeof e?(this.#e=e,this.#n()):this.setData(e)}get id(){return this.#e}get type(){return this.#t}async#n(){const e=await Z("app.scans.GetScanProps",{id:this.#e}),t=(await this.loadProp("ScanAreas")).value.split(";");if(""===e.label||"????"===e.label)throw"scan "+this.#e+" not found";this.setData({id:this.#e,job:e.job,label:e.label,scanAreas:t,schedule:e.schedule,type:e.scanType,boottimeScanScheduled:e.boottimeScanScheduled})}setData(e={}){e.type=e.type||e.scanType,e.label=i.escapeHtml(e.label),this.#s.set(e),this.#e=e.id||this.#e,this.#t=e.type||this.#t}isInstalled(){return"boottime"!==this.#t||h.isInstalled("VpsBoot32")}async loadProp(e){return await g.get(this.#a(e))}async saveProp(e,t){await g.set(this.#a(e),t),ye.includes(e)&&this.#n(),Y.emit("scan.updated",this)}async saveProps(e){const t=e.map((e=>g.set(this.#a(e.name),e.value)));await Promise.all(t),e.some((e=>ye.includes(e.name)))&&this.#n(),Y.emit("scan.updated",this)}#a(e){return["avcfg://settings/***TaskGUID***/"+e,this.#e]}getPropTestAttr(e,t){return void 0!==t?{name:"avcfg://settings/***TaskGUID***/"+e,param:t,objectId:this.#e}:{name:"avcfg://settings/***TaskGUID***/"+e,objectId:this.#e}}};const Se={RUNNING:"running",READY:"ready",PAUSED:"paused",CANCELED:"canceled",DONE:"done",SUSPENDED:"suspended",RESOLVING:"resolving"},ke=1e3;let Te;class Ce{#i;#o;#l;#r;#c;#d;#u;constructor(e,t,s=!1){this.#i=e,this.#o=t,this.#l=s,this.#r=te(null),this.status=be(this.#r,(e=>e)),this.#u=this.#p().then((()=>{this.#r.get()?.status===Se.RUNNING&&this.#m()}))}destroy(){this.#h()}async waitForStatus(){await this.#u}get sessionId(){return this.#o}async#g(){if(null!==this.#o){return await Z("app.scanViruses.GetStatus",{scanId:this.#i,session:this.#o,includeResults:this.#l})}return null}async#p(){const e=await this.#g();this.#r.set(e)}async startScan(e={}){if(this.#r.get()?.status===Se.RUNNING)return;let t;this.#r.update((e=>(e?.status&&(e.status="loading"),e))),this.#c=Y.on("scans.onStatusChanged.ASW_NOTIF_SESSION_CHANGED",(async e=>{const t=e.find((e=>e.id===this.#i));t&&(this.#o=t.sessionId||Te,Te=this.#o,await this.#m()),this.#f()})),t=e.path?{guid:this.#i,path:e.path}:this.#i;const s=await Z("app.scanViruses.Start",t);this.#o=s.session,await this.#m(!0)}#f(){this.#c=this.#c&&this.#c()}async stopScan(){if(this.#r.get()?.status===Se.RUNNING)try{await Z("app.scanViruses.Stop",this.#i)}catch(e){console.error(`Stopping scan ${this.#i} failed`,e),await this.#p()}}async#m(e=!1){this.#h();let t=e?10:0;const s=e=>{clearTimeout(this.#d),this.#d=setTimeout((async()=>{let e;try{e=await this.#g()}catch(n){console.error(`Polling status of scan ${this.#i} failed`,n)}if(!!(t-- >0&&[Se.CANCELED,Se.DONE].includes(e?.status)))return this.#o=Te,e?.status&&(e.status="loading"),this.#r.set(e),void s(ke);this.#r.set(e),t=0,e?.status===Se.RUNNING?s(ke):(this.#h(),this.#f(),Te=null)}),e)};this.#d||s(ke),e?this.#r.set(null):await this.#p()}#h(){this.#d=clearTimeout(this.#d)}}const Ie="{D93EF81A-B92F-27FE-AF54-9278EA8BF910}",De="{7C4966F0-D502-412D-A636-ACCC39A24BB2}",Ae="{C6156735-F7A2-4387-94A7-0479004A7310}",$e="{EC4ECEDA-3E3B-4027-ABFE-29A5122D64D6}",Pe="{CC13CA7D-229B-4D0A-8D27-E26129CDDF10}",Re="new",Ne=["auto","delete","repair","chest","nothing"],Ee="quick",Fe="full",We="folder",Oe="explorer",Le=["SystemDisk","*RTK-SUPERQUICK","QuickStartup"],Me=4,Be=["full","folder","boottime"],ze={},Ue={};let qe,Ve=null,je=null,He=null;const Ge=_e(null,(e=>{qe=e,Ve=null,tt();const t=Y.on("app.settings.onStatusChanged",(()=>tt(!0))),s=Y.on("scan.updated",(()=>tt(!0)));return()=>{qe=null,t(),s()}})),Ke=function(){const e=ve([],(e=>(s(),Y.on("scans.onStatusChanged.ASW_NOTIF_SESSION_CHANGED",(function(s){s.forEach((e=>_t(e.id))),e(t(s))})))));function t(e){return e.filter((e=>"hns"!==e.id))}function s(){return Z("app.scans.GetStatus").then((s=>{e.set(t(s.runningScans))}))}return{subscribe:e.subscribe,reload:s}}(),Ze={},Ye={},Je=_e({},(e=>{const t=s=>{void 0===Ze[s]&&(Ze[s]=null,Z("app.scanViruses.GetStatus",{scanId:s}).then((n=>{Ye[s]=n,e(Ye),null===Ze[s]&&(Ze[s]=setTimeout((()=>{delete Ze[s],t(s)}),1e3))})))},s=t=>{delete Ye[t],e(Ye),void 0!==Ze[t]&&(null!==Ze[t]&&clearTimeout(Ze[t]),delete Ze[t])},n=Ke.subscribe((e=>{null!==e&&(Object.keys(Ze).forEach((t=>{e.some((e=>e.id===t))||s(t)})),e.forEach((e=>{t(e.id)})))}));return()=>{n(),Object.keys(Ze).forEach((e=>{s(e)}))}})),Xe=be(Ke,(e=>e?.some((e=>xt(e))))),Qe=be(Xe,((e,t)=>{null==e?t(null):e?t(!1):yt().then((e=>t("scan_report"===e.statusPrimary)))}));function et(){return tt()}function tt(e){return Ve&&!e?(qe?.(Ve),Promise.resolve(Ve)):He&&!e?He:He=Z("app.scanViruses.GetScans").then((e=>{Ve&&"Unnamed scan"===e[e.length-1]?.label||(Ve=e,Ve.forEach((e=>{if(ze[e.id])ze[e.id].setData(e);else{const t=new xe(e);Ue[e.id]=t.data.subscribe((e=>{const t=Ve.findIndex((t=>t.id===e.id));Ve[t]=e,qe?.(Ve)})),ze[e.id]=t}})),Object.keys(ze).forEach((e=>{Ve.some((t=>t.id===e))||(Ue[e](),delete Ue[e],delete ze[e])})),qe?.(Ve),He=null)}))}async function st(){return(await Z("app.scans.GetStatus")).runningScans}async function nt(e){if(!e)throw"missing scanId";return await et(),ze[e]?ze[e]:new xe(e)}function at(e,t){return new Ce(e,t)}async function it(e={}){let t,s;if(e.scan)t=e.scan;else{if(!e.scanType)throw"no scan identificator";if("custom"===e.scanType)throw'"custom" scan type is not accepted';await et(),t=Ve.find((t=>t.type===e.scanType))}if(t)return xt(t)?s="#smartScan/scan/"+t.id+"/?origin=Custom scans":(s="#scans/scan/"+t.id,e.scanPath&&(s+="/path/"+e.scanPath)),s}async function ot(e){window.location.hash=await it({scan:e})}function lt(){return je||(je=Z("app.scanViruses.GetHistory").then((e=>e.filter((e=>e.scanId!==Ie)))).then((e=>e.map((e=>({...e,startTimeMs:1e3*e.startTime}))))).finally((()=>je=null)),je)}async function rt(){return(await lt()).sort(((e,t)=>t.startTime-e.startTime))}async function ct(e,t){return(await lt()).find((s=>s.scanId===e&&s.sessionId===t))}async function dt(){const e=await lt(),t={};return e.forEach((e=>t[e.scanId]=!0)),t}function ut(){return Z("app.scanViruses.CreateScanOnly")}function pt(e){return Z("app.scanViruses.DeleteScan",{id:e})}async function mt(e){(await nt(e)).saveProp("SchedulerEnabled",0)}function ht(){return localStorage.scansDone&&JSON.parse(localStorage.scansDone)||[]}function gt(e){return ht().indexOf(e)>-1}function ft(e){const t=ht();t.indexOf(e)<0&&(t.push(e),localStorage.scansDone=JSON.stringify(t))}function _t(e){const t=ht();if(t.indexOf(e)>-1){const s=t.filter((t=>t!==e));localStorage.scansDone=JSON.stringify(s)}}function vt(){return localStorage.scansFinished&&JSON.parse(localStorage.scansFinished)||{}}function bt(e){const t=vt();t[e]=new Date/1e3,localStorage.scansFinished=JSON.stringify(t)}function wt(e,t){return Z("app.scanViruses.Skip",{scanId:e,session:t}).catch((()=>{}))}function yt(){return Z("app.smartScan.GetStatus")}function xt(e){return"SmartScan"===e.job||e.id===Ie||"smart_scan"===e.id}const St=Object.freeze({__proto__:null,createScan:ut,deleteScan:pt,dontShowResultAfterRestart:wt,getRunScans:dt,getRunningScans:st,getScan:nt,getScanHistory:rt,getScanHistoryDetail:ct,getScanRoute:it,getScanSession:at,getSmartScanStatus:yt,isScanFinished:function(e,t){const s=vt();return!!s[e]&&t<s[e]},isScanStoredAsDone:gt,isSmartScan:xt,isSmartScanDone:Qe,isSmartScanRunning:Xe,openScan:ot,openScanSettings:function(e){Be.includes(e.scanType)?window.location.hash="settings/scans/"+e.scanType:window.location.hash="scans/customScans/"+e.scanId+"/settings"},removeScanAsDone:_t,runningScans:Ke,runningScansStatuses:Je,scans:Ge,setScanFinished:bt,storeScanAsDone:ft,unscheduleScan:mt});function kt(e,t){void 0===t&&(t={});var s=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===s&&n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}kt('.avs .scn_no-decoration.-small-radius .sve_row.-tile {\n  border-radius: 0.8rem;\n}\n.scn_no-decoration.svelte-7mgez5 {\n  text-decoration: none;\n  display: block;\n  border-radius: var(--cube-radius);\n}\n.scn_no-decoration.-small-radius.svelte-7mgez5 {\n  border-radius: 0.8rem;\n}\n.scn_loading-placeholder.svelte-7mgez5 {\n  min-height: 7.2rem;\n  margin-bottom: 2rem;\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n.scn_no-decoration.svelte-7mgez5,\n.scn_loading-placeholder.svelte-7mgez5 {\n  flex-grow: 1;\n  margin-bottom: 1.6rem;\n}\n.scn_no-decoration.svelte-7mgez5:last-child,\n.scn_loading-placeholder.svelte-7mgez5:last-child {\n  margin-bottom: 0;\n}\n.scn_no-decoration.svelte-7mgez5 .scn_scannow_row,\n.scn_loading-placeholder.svelte-7mgez5 .scn_scannow_row {\n  height: 100%;\n  grid-template-columns: auto minmax(0, 1fr) auto;\n}\n.scn_no-decoration.svelte-7mgez5 .sve_row__main [slot="main-content"],\n.scn_loading-placeholder.svelte-7mgez5 .sve_row__main [slot="main-content"] {\n  max-width: 100%;\n}\n');const Tt=!0;var Ct=e.template("<div><kin-loading></kin-loading></div>",2),It=e.template("<kin-loading></kin-loading>",2),Dt=e.template("<kin-icon></kin-icon>",2),At=e.template('<div slot="icon"><!></div>'),$t=e.template('<div slot="main-content"><h4 class="h4"> </h4> <kin-tooltip><div slot="tooltip-activator" class="p -secondary -small"><!></div> <div slot="tooltip"><!></div></kin-tooltip></div>',2),Pt=e.template('<div slot="actions"><kin-icon></kin-icon></div>',2),Rt=e.template("<a><!></a>");function Nt(t,s){e.push(s,!1);const[n,a]=e.setup_stores();let i=e.prop(s,"icon",8),o=e.prop(s,"title",8),l=e.prop(s,"tileDesc",8),r=e.prop(s,"route",8),c=e.prop(s,"status",8),d=e.prop(s,"loading",8),u=e.prop(s,"burgerLabel",8),p=e.prop(s,"napiCategory",8,"L2 Scan Center"),m=e.prop(s,"shortCutsTracker",8);function h(){const e=m()?"L1 Shortcuts":p(),t=m()?"Dashboard":"Scan Center";J.click(e,"Click",u(),t)}e.init();var g=e.comment(),f=e.first_child(g),_=t=>{var s=Ct();let a;e.template_effect((t=>a=e.set_class(s,1,"scn_loading-placeholder svelte-7mgez5",null,a,t)),[()=>({"g-visibility--hidden":e.store_get(Ge,"$scans",n)})],e.derived_safe_equal),e.append(t,s)},v=t=>{var s=Rt();let n;var a=e.child(s);const d=e.derived_safe_equal((()=>o().toLowerCase().replaceAll(" ","_")));w(a,{tile:!0,cssCls:"-hoverable scn_scannow_row",get dataTest(){return`scn_scan-${e.get(d)??""}-start`},$$slots:{icon:(t,s)=>{var n=At(),a=e.child(n),o=t=>{var s=It();e.append(t,s)},l=t=>{var s=Dt();e.template_effect((()=>e.set_custom_element_data(s,"name",i().name))),e.template_effect((()=>e.set_custom_element_data(s,"size",i().size))),e.append(t,s)};e.if(a,(e=>{c().isRunning?e(o):e(l,!1)})),e.reset(n),e.append(t,n)},"main-content":(t,s)=>{var n=$t(),a=e.child(n),i=e.child(a,!0);e.reset(a);var r=e.sibling(a,2);e.set_custom_element_data(r,"ellipsis",!0);var d=e.child(r);de(e.child(d),{get status(){return c()},get tileDesc(){return l()}}),e.reset(d);var u=e.sibling(d,2);de(e.child(u),{get status(){return c()},get tileDesc(){return l()}}),e.reset(u),e.reset(r),e.reset(n),e.template_effect((()=>e.set_text(i,o()))),e.append(t,n)},actions:(t,s)=>{var n=Pt(),a=e.child(n);e.set_custom_element_data(a,"name","icon-m-arrow-forward"),e.set_custom_element_data(a,"size","24"),e.set_custom_element_data(a,"rtlflip","true"),e.set_class(a,1,"color-accent -text"),e.reset(n),e.append(t,n)}}}),e.reset(s),e.template_effect((t=>{e.set_attribute(s,"href",`#${r()??""}`),n=e.set_class(s,1,"scn_no-decoration svelte-7mgez5",null,n,t)}),[()=>({"-small-radius":Tt})],e.derived_safe_equal),e.event("click",s,h),e.append(t,s)};e.if(f,(e=>{d()||!r()?e(_):e(v,!1)})),e.append(t,g),e.pop(),a()}const Et={icon:{name:"icon-m-scan-deep",size:24},title:z("scans.scanType.full"),desc:z("scans.scanType.full.caption"),tileDesc:z("scans.scanType.full.tileDesc"),burgerLabel:"Deep Virus Scan"},Ft={icon:{name:"icon-m-scan-folder",size:24},title:z("scans.scanType.folder"),desc:z("scans.scanType.folder.caption.one"),tileDesc:z("scans.scanType.folder.tileDesc"),burgerLabel:"Targeted scan"},Wt={icon:{name:"icon-m-boot-time-scan",size:24},title:z("scans.scanType.boottime"),desc:z("scans.scanType.boottime.caption"),tileDesc:z("scans.scanType.boottime.tileDesc"),route:"scans/boottimescan",burgerLabel:"Boot Time Scan"};z("smartscan"),z("scans.scanNow.desc");const Ot={folder:{isRunning:!1,hasUnseenResults:!1,hasIssue:!1,progress:0,scanStarted:0,type:"folder",initialized:!1},full:{isRunning:!1,hasUnseenResults:!1,hasIssue:!1,progress:0,scanStarted:0,type:"full",initialized:!1},boottime:{boottimeScanScheduled:!1,scanStarted:0,type:"boottime",initialized:!1}},Lt=[],Mt={},Bt={},zt=_e(null,(e=>(dt().then(e),()=>{}))),Ut=_e(null,(e=>(rt().then(e),()=>{}))),qt=be([Ge,Ke,zt,Ut],(([e,t,s,n],a)=>{if(e&&t&&s&&n)for(const i in Ot){const o=e.find((e=>e.type===i));if(!o)continue;const l=Boolean(s[o.id])&&!gt(o.id),r=t.includes(o.id),c=n.find((e=>e.scanId===o.id))||{},d=Kt(c.scanVerdict);Ot[o.type].hasUnseenResults=l,Ot[o.type].isRunning=r,Ot[o.type].hasIssue=d,Ot[o.type].scanStarted=c.startTimeMs||0,Ot[o.type].latestSessionId=c.sessionId||null,Ot[o.type].initialized=!0,"boottime"===o.type?Ot[o.type].boottimeScanScheduled=o.boottimeScanScheduled:Lt.push(Ke.subscribe((e=>{const t=e.find((e=>e.type===o.type));Gt(t||o,Boolean(t),a)})))}return a(Ot),()=>{Lt.forEach((e=>e())),Lt.length=0,Object.keys(Mt).forEach((e=>{Mt[e](),delete Mt[e]})),Object.keys(Bt).forEach((e=>{Bt[e].destroy(),delete Bt[e]}))}})),Vt=be(qt,(e=>e.full)),jt=be(qt,(e=>e.folder)),Ht=be(qt,(e=>e.boottime));function Gt(e,t,s){if(Ot[e.type].isRunning&&!t)!function(e,t){rt().then((s=>{const n=s.find((t=>t.scanId===e.id))||{},a=e.type;Ot[a].hasIssue=Kt(n.scanVerdict),Ot[a].isRunning=!1,t(Ot)}))}(e,s);else{const n=e.type;if(Ot[n].isRunning=t,s(Ot),t&&!Mt[e.id]){const t=at(e.id,e.sessionId);Bt[e.id]=t,Mt[e.id]=t.status.subscribe((e=>{null!==e&&(Ot[n].progress=e.progress,s(Ot))}))}else!t&&Mt[e.id]&&(Mt[e.id](),delete Mt[e.id],Bt[e.id].destroy(),delete Bt[e.id])}}function Kt(e){if(e)return e.found_resolved||e.found_unresolved||e.found_resolved_with_error}const Zt="scans/scan/",Yt="scans/scan/",Jt="scans/boottimescan/",Xt=be(Ge,(e=>{const t=e?.find((e=>"boottime"===e.type));return t&&`${Jt}${t.id}`})),Qt=be([Ge,jt],(([e,t])=>{const s=e?.find((e=>"folder"===e.type));return t.hasUnseenResults&&t.hasIssue&&t.latestSessionId?s&&`${Yt}${s.id}/${t.latestSessionId}`:s&&`${Yt}${s.id}`})),es=be([Ge,Vt],(([e,t])=>{const s=e?.find((e=>"full"===e.type));return t.hasUnseenResults&&t.hasIssue&&t.latestSessionId?s&&`${Zt}${s.id}/${t.latestSessionId}`:s&&`${Zt}${s.id}`}));function ts(t,s){const[n,a]=e.setup_stores();let i=e.prop(s,"shortCutsTracker",8,!1);Nt(t,e.spread_props(Et,{get shortCutsTracker(){return i()},get status(){return e.store_get(Vt,"$deepScanStatus",n)},get route(){return e.store_get(es,"$deepScanRoute",n)}})),a()}function ss(t,s){const[n,a]=e.setup_stores();let i=e.prop(s,"shortCutsTracker",8,!1);Nt(t,e.spread_props(Ft,{get shortCutsTracker(){return i()},get status(){return e.store_get(jt,"$targetedScanStatus",n)},get route(){return e.store_get(Qt,"$targetedScanRoute",n)}})),a()}function ns(t,s){const[n,a]=e.setup_stores();let i=e.prop(s,"shortCutsTracker",8,!1);Nt(t,e.spread_props(Wt,{get shortCutsTracker(){return i()},get status(){return e.store_get(Ht,"$boottimeScanStatus",n)},get route(){return e.store_get(Xt,"$boottimeScanRoute",n)}})),a()}const as={isRunning:!1,currentScanner:null,hasUnseenResults:!1,hasIssue:!1,scanStarted:0,type:"smartScan",initialized:!1,progress:0};let is;const os=_e(as,(e=>{n(!0);const t=Y.on("scans.onStatusChanged.ASW_NOTIF_SESSION_CHANGED",n),s=Y.on("smartScan.ResetFlow",n);return()=>{i(),t?.(),s?.()};function n(e){return yt().then((t=>a(t,e)))}async function a(t,s){s&&(as.scanStarted=1e3*t.lastRun||0,as.initialized=!0);const n="scanning"===t.statusPrimary;if(n)!function(){if(is)return;is=setInterval((()=>yt().then(a)),500)}(),as.currentScanner=t.currentScanner;else{i();const e="scan_report"===t.statusPrimary;as.hasUnseenResults=e;const s=await f.smartscan.getIssuesCount(t);as.hasIssue=s>0,as.problemsCount=s}as.isRunning=n,as.progress=t.progressPrimary,e(as)}function i(){is=is&&clearInterval(is)}}));kt(".scn_container.svelte-rrb2ic {\n  display: flex;\n  justify-content: space-between;\n}\n.scn_column-1.svelte-rrb2ic {\n  flex: 0.38;\n}\n.scn_column-2.svelte-rrb2ic {\n  flex: 0.6;\n  display: flex;\n  flex-direction: column;\n}\n.scn_ss__box.svelte-rrb2ic {\n  padding: 2.4rem 2.4rem 2rem;\n  background-color: var(--o2-colors-surface);\n  box-shadow: var(--e-tile);\n  border-radius: 36px;\n  min-height: 24.8rem;\n}\n.scn_ss__box.-small-radius.svelte-rrb2ic {\n  border-radius: 0.8rem;\n}\n.scn_ss__icon.svelte-rrb2ic {\n  background-color: var(--o2-colors-main);\n  color: var(--o2-colors-on-main);\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border-radius: 5rem;\n  width: 4rem;\n  height: 4rem;\n  margin: 0 0 2rem 0;\n}\n.scn_ss__schedule.svelte-rrb2ic {\n  display: inline-flex;\n}\n");const ls=!0;var rs=e.template('<div class="scn_container g-margin-top--3x svelte-rrb2ic"><div class="scn_column-1 svelte-rrb2ic"><div><kin-icon></kin-icon> <h4 class="h4"> </h4> <p class="p -secondary -small"> </p> <kin-button><span><!></span></kin-button> <div class="scn_ss__schedule svelte-rrb2ic"><kin-dropdown><kin-button><kin-icon></kin-icon></kin-button> <kin-dropdown-item> </kin-dropdown-item></kin-dropdown></div></div></div> <div class="scn_column-2 svelte-rrb2ic"><!> <!> <!></div></div> <!>',3);function cs(t,s){e.push(s,!1);const[n,a]=e.setup_stores(),i=()=>e.store_get(os,"$smartScanStatus",n);let o=e.mutable_source();function l(){e.set(o,!1)}e.init();var r=rs(),c=e.first_child(r),d=e.child(c),u=e.child(d);let p;var m=e.child(u);e.set_class(m,1,"scn_ss__icon svelte-rrb2ic"),e.set_custom_element_data(m,"name","icon-m-smart-scan"),e.set_custom_element_data(m,"size","24");var h=e.sibling(m,2),g=e.child(h,!0);e.reset(h);var f=e.sibling(h,2),_=e.child(f,!0);e.reset(f);var v=e.sibling(f,2);e.template_effect((()=>e.set_custom_element_data(v,"processing",i().isRunning))),e.set_class(v,1,"g-margin-top--2x g-margin-right--1x"),e.set_custom_element_data(v,"data-test","scn_scan-smart_scan-start"),e.set_custom_element_data(v,"size","small");var b=e.child(v),w=e.child(b),y=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.showProgress")],e.derived_safe_equal),e.append(t,s)},x=(t,s)=>{var n=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.showResults")],e.derived_safe_equal),e.append(t,s)},a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>q("scans.startSmartScan",17)],e.derived_safe_equal),e.append(t,s)};e.if(t,(e=>{i().hasUnseenResults?e(n):e(a,!1)}),s)};e.if(w,(e=>{i().isRunning?e(y):e(x,!1)})),e.reset(b),e.reset(v);var S=e.sibling(v,2),k=e.child(S),T=e.child(k);e.set_custom_element_data(T,"type","blank"),e.set_class(T,1,"g-margin-left--half"),e.set_custom_element_data(T,"icononly",!0),e.set_custom_element_data(T,"size","small"),e.set_custom_element_data(T,"slot","dropdown-activator");var C=e.child(T);e.set_custom_element_data(C,"name","icon-m-more-horiz"),e.set_custom_element_data(C,"size","20"),e.reset(T);var I=e.sibling(T,2);e.set_custom_element_data(I,"type","button");var D=e.child(I,!0);e.reset(I),e.reset(k),e.reset(S),e.reset(u),e.reset(d);var A=e.sibling(d,2),$=e.child(A);ts($,{});var P=e.sibling($,2);ss(P,{}),ns(e.sibling(P,2),{}),e.reset(A),e.reset(c);var R=e.sibling(c,2),N=e=>{H(e,{onSchedulerModalClosed:l})};e.if(R,(t=>{e.get(o)&&t(N)})),e.template_effect(((t,s,n,a)=>{p=e.set_class(u,1,"scn_ss__box svelte-rrb2ic",null,p,t),e.set_text(g,s),e.set_text(_,n),e.set_text(D,a)}),[()=>({"-small-radius":ls}),()=>z("smartscan"),()=>z("scans.scanNow.desc"),()=>z("scans.scheduleScan")],e.derived_safe_equal),e.event("click",v,(function(){window.location.hash="smartScan?origin=Scan center"})),e.event("click",I,(()=>e.set(o,!0))),e.append(t,r),e.pop(),a()}const ds={cleaningOfferIcon:null,cleaningOfferCancel:"global.notNow"};function us(e){return e?.schedule&&Object.keys(e.schedule).length}function ps(e,t){const s=e.schedule,n=s.type?.toLowerCase?.()||s.frequency,a=s.launchTime?1e3*s.launchTime:1e3*s.time,i=s.param,o=U.utc(a),l=s.days,r=U.localeData().firstDayOfWeek(),c=t?`.${t}`:"";let d,u;switch(n){case"relative":return z(`scans.schedule.relative${c}`,V.dateTimeCustom(a,{month:"long",day:"numeric",hour:"2-digit",minute:"numeric"}));case"once":u=z(`scans.schedule.once${c}`,V.dateExtraShort(a),V.time(a));break;case"daily":if(null==l||7===l?.length)u=z(`scans.schedule.daily${c}`,V.time(o,!0));else{const e=l.map((function(e){return U().isoWeekday(e-1).format("dd")}));u=z(`scans.schedule.specificDays${c}`,e.join(", "),V.time(o,!0))}break;case"weekly":d=i??(parseInt(a/864e5)+7-r)%7,u=z(`scans.schedule.weekly${c}`,U.weekdays(!0)[d],V.time(o,!0));break;case"monthly":u=z(`scans.schedule.monthly${c}`,i?U().date(i).format("Do"):o.format("Do"),V.time(o,!0))}return u}function ms(e){const t=e.scanId||e.id;let s="";return s="custom"===e.type||t===$e?e.label:z("scans.scanType."+e.type),s}async function hs(){const e=localStorage.threatsCleaningOffer;if(!e)return;const t="boot_time_scan"===e,s=z(t?"scans.postponedUntilNextReboot.restartDialog.boottime.message":"scans.postponedUntilNextReboot.restartDialog.message");await y.restart({icon:ds.cleaningOfferIcon,message:s,cancel:z(ds.cleaningOfferCancel),runBootTimeScan:t})}const gs=Object.freeze({__proto__:null,getScanName:ms,getScanScheduleNext:function(e){const t=e.schedule,s=1e3*t.launchTime,n=U();let a;return t.nextRun?t.nextRun:("Once"===t.type?a=U.utc(s):"Daily"===t.type?(a=U().startOf("day").add(s,"ms"),a.isBefore(n)&&(a=a.add(1,"day"))):"Weekly"===t.type?(a=U().startOf("week").add(s,"ms"),a.isBefore(n)&&(a=a.add(1,"week"))):"Monthly"===t.type&&(a=U().startOf("month").add(s,"ms"),a.isBefore(n)&&(a=a.add(1,"month"))),a)},getScanScheduledTimeString:ps,isScanScheduled:us,processCleaningOffer:hs,setBrandConfig:function(e){Object.assign(ds,e)}}),fs={customScanTypes:["custom","quick"],newScanHash:"scans/customScans/"},_s=_e(null,(e=>(dt().then(e),()=>{}))),vs=_e(null,(e=>(yt().then((t=>e(t.statusPrimary))),()=>{}))),bs=be(Ge,(e=>e?.filter((e=>function(e){if(e.id===Ie)return!1;return fs.customScanTypes.includes(e.type)||us(e)}(e))))),ws=be([bs,_s,Ke,vs],(([e,t,s,n])=>{if(null==e||null==t||null==s||null==n)return;const a={};return e.forEach((e=>{xt(e)?a[e.id]="scan_report"===n:a[e.id]=s?s.some((t=>t.id===e.id)):Boolean(t[e.id])})),a})),ys=be([bs,ws],(([e,t])=>null==e||null==t));function xs(){J.click("Scans","Open","Create new scan","custom scans"),window.location.hash=fs.newScanHash+Re}var Ss=e.template("<kin-loading></kin-loading>",2),ks=e.template("<kin-icon></kin-icon>",2),Ts=e.template("<kin-dropdown-item><span> </span></kin-dropdown-item>",2),Cs=e.template("<kin-dropdown><kin-button><kin-icon></kin-icon></kin-button> <!> <kin-dropdown-item><span> </span></kin-dropdown-item></kin-dropdown>",2),Is=e.template('<div role="row" class="kin_table__row scn_custom__row"><div role="cell" class="kin_table__icon"><!></div> <div role="cell" class="kin_table__name" dir="ltr"><div class="g-ellipsis"><kin-tooltip><div data-test="scn_scan-custom-name" slot="tooltip-activator" class="g-font--bold"> </div> <div slot="tooltip"> </div></kin-tooltip> <div class="text -small -secondary" data-test="scn_scan-custom-launch"> </div></div></div> <div role="cell" class="kin_table__end"><kin-button><span> </span></kin-button></div> <div role="cell" class="kin_table__actions"><!></div></div>',2);function Ds(t,s){e.push(s,!1);const[n,a]=e.setup_stores(),i=()=>e.store_get(Ke,"$runningScans",n),o=e.mutable_source(),l=e.mutable_source(),r=e.mutable_source();let c=e.prop(s,"scan",8),d=e.prop(s,"index",8),u=e.prop(s,"showResult",8),p=e.prop(s,"onConfigureScan",8);e.legacy_pre_effect((()=>(i(),e.deep_read_state(c()))),(()=>{e.set(o,i()?.some((e=>e.id===c().id)))})),e.legacy_pre_effect((()=>e.deep_read_state(c())),(()=>{e.set(l,function(e){return us(e)?ps(e):""}(c()))})),e.legacy_pre_effect((()=>(e.get(o),e.deep_read_state(u()))),(()=>{e.set(r,e.get(o)?z("scans.running"):u()?z("scans.seeResults"):z("scans.customScan.btnCaption"))})),e.legacy_pre_effect_reset(),e.init();var m=Is(),h=e.child(m),g=e.child(h),f=t=>{var s=Ss();e.set_custom_element_data(s,"size","small"),e.append(t,s)},_=t=>{var s=ks();e.set_custom_element_data(s,"name","icon-m-scan-folder"),e.set_custom_element_data(s,"size","24"),e.append(t,s)};e.if(g,(t=>{e.get(o)?t(f):t(_,!1)})),e.reset(h);var v=e.sibling(h,2),b=e.child(v),w=e.child(b);e.set_custom_element_data(w,"ellipsis",!0);var y=e.child(w),x=e.child(y,!0);e.reset(y);var S=e.sibling(y,2),k=e.child(S,!0);e.reset(S),e.reset(w);var T=e.sibling(w,2),C=e.child(T,!0);e.reset(T),e.reset(b),e.reset(v);var I=e.sibling(v,2),D=e.child(I);e.set_class(D,1,"g-margin-right--half"),e.set_custom_element_data(D,"data-test","scn_scan-custom-start"),e.set_custom_element_data(D,"size","tiny"),e.set_custom_element_data(D,"type","secondary"),e.template_effect((()=>e.set_custom_element_data(D,"aria-label",`${c().label??""} ${e.get(r)??""}`)));var A=e.child(D),$=e.child(A,!0);e.reset(A),e.reset(D),e.reset(I);var P=e.sibling(I,2),R=e.child(P),N=t=>{var s=Cs();e.set_class(s,1,"g-margin-right--1x");var n=e.child(s);e.set_custom_element_data(n,"slot","dropdown-activator"),e.set_custom_element_data(n,"icononly",!0),e.set_custom_element_data(n,"type","blank"),e.set_custom_element_data(n,"size","tiny"),e.template_effect((()=>e.set_custom_element_data(n,"aria-label",`${c().label??""} ${z("global.moreOptions")??""}`))),e.set_custom_element_data(n,"data-test","kin_table-item-options");var a=e.child(n);e.set_custom_element_data(a,"name","icon-s-controls-menu-more"),e.set_custom_element_data(a,"size","14"),e.reset(n);var i=e.sibling(n,2),o=t=>{var s=Ts();e.set_custom_element_data(s,"data-test","scn_scan-custom-settings"),e.template_effect((()=>e.set_custom_element_data(s,"aria-label",`${c().label??""} ${z("global.edit")??""}`)));var n=e.child(s),a=e.child(n,!0);e.reset(n),e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>z("global.edit")],e.derived_safe_equal),e.event("click",s,(()=>p()(c().id))),e.append(t,s)};e.if(i,(e=>{"custom"!==c().type&&"quick"!==c().type||e(o)}));var l=e.sibling(i,2);e.set_custom_element_data(l,"data-test","scn_scan-custom-delete"),e.template_effect((()=>e.set_custom_element_data(l,"aria-label",`${c().label??""} ${z("global.delete")??""}`)));var r=e.child(l),u=e.child(r,!0);e.reset(r),e.reset(l),e.reset(s),e.template_effect((t=>{e.set_class(n,1,`moreOptions-tooltip-${d()??""}`),e.set_text(u,t)}),[()=>z("global.delete")],e.derived_safe_equal),e.event("click",l,(()=>async function(e){if(fs.customScanTypes.includes(e.type))try{J.click("Scans","Click","Delete scan","custom scans"),await pt(e.id)}catch(t){"unauthorized"===t.code?console.log("Deleting scan not authorized.",t):console.error("Deleting scan failed.",t)}else J.click("Scans","Click","Unschedule scan","custom scans",{a1:`${e.type} scan`}),mt(e.id)}(c()))),e.append(t,s)};e.if(R,(t=>{e.get(o)||t(N)})),e.reset(P),e.reset(m),e.template_effect((t=>{e.set_attribute(m,"data-test",`table-row-${d()??""}`),e.set_text(x,c().label),e.set_text(k,c().label),e.set_text(C,t),v.dir=v.dir,e.set_text($,e.get(r))}),[()=>e.get(l)?e.get(l):z("scans.customScans.notScheduled")],e.derived_safe_equal),e.event("click",D,(()=>function(e){ot(e)}(c()))),e.append(t,m),e.pop(),a()}var As=e.template('<h3 class="h3"> </h3> <div class="g-margin-left--3x"><div class="scn_settings"><!></div> <div class="scn_settings"><!></div></div>',1);var $s=e.template('<tr><td><kin-tooltip><div slot="tooltip-activator"> </div> <div slot="tooltip"> </div></kin-tooltip></td><td class="table__delete"><kin-tooltip><kin-button><kin-icon></kin-icon></kin-button> <div slot="tooltip"> </div></kin-tooltip></td></tr>',2),Ps=e.template('<table class="table -small -fixed g-margin-top--2x"><colgroup><col width="90%"><col width="10%"></colgroup><tbody></tbody></table>'),Rs=e.template("<p> </p>"),Ns=e.template('<div class="g-margin-left--3x"><div class="g-margin-top--2x"><kin-button> </kin-button></div> <!></div>',2);kt(".scn_settings__schedule kin-dropdown {\n  width: 100%;\n}\n");var Es=e.template('<h3 class="h3 g-margin-top--4x"> </h3>'),Fs=e.template("<!> <!> <!> <!>",1),Ws=e.template('<div class="p -small g-margin-top--1x"><kin-icon></kin-icon> <span class="g-margin-left--half"> </span></div>',2),Os=e.template('<!> <div><div class="scn_settings"><div class="scn_settings__schedule"><!> <!></div></div> <!></div>',1);const Ls="scans",Ms="scans.settings.desc",Bs={full:"scans.scanType.full",folder:"scans.scanType.folder",explorer:"scans.scanType.explorer",boottime:"scans.scanType.boottime"},zs="settings.pup",Us="settings.pup.desc",qs="settings.pup.tools",Vs="settings.pup.tools.desc",js="scans.settings.scanLinks",Hs="scans.settings.scanLinksDesc",Gs={label:"scans.settings.scanPackers.label",mostCommonTypes:"scans.settings.scanPackers.mostCommonTypes",mostCommonTypesDesc:"scans.settings.scanPackers.mostCommonTypes.desc",allTypes:"scans.settings.scanPackers.allTypes",allTypesDesc:"scans.settings.scanPackers.allTypes.desc",dontScanArchives:"scans.settings.scanPackers.dontScanArchives",dontScanArchivesDesc:"scans.settings.scanPackers.dontScanArchives.desc"},Ks="scans.settings.unpackArchives",Zs={label:"scans.settings.scanAreas",allHardDisks:"scans.settings.scanAreas.allHardDisks",systemDisk:"scans.settings.scanAreas.systemDisk",allRemovableMedia:"scans.settings.scanAreas.allRemovableMedia",rootkits:"scans.settings.scanAreas.rootkits",uefi:"scans.settings.scanAreas.uefi",cdDvd:"scans.settings.scanAreas.cdDvd",memory:"scans.settings.scanAreas.memory",startup:"scans.settings.scanAreas.startup"},Ys="scans.settings.useAutomaticActions",Js="scans.settings.automaticActions",Xs={fix:"scans.settings.actions.fix",fixDesc:"scans.settings.actions.fix.desc",chest:"scans.settings.actions.chest",delete:"global.delete",nothing:"scans.settings.doNothing"},Qs="scans.settings.shutDownAfterScan",en="scans.settings.generateReport",tn="scans.settings.generateReport.desc",sn={label:"scans.settings.scanTypes",content:"scans.settings.scanTypes.content",contentDesc:"scans.settings.scanTypes.content.desc",extensions:"scans.settings.scanTypes.extensions",extensionsDesc:"scans.settings.scanTypes.extensions.desc",allFiles:"scans.settings.scanTypes.allFiles"},nn="EXE;WinExec;Drop;Install;Streams";class an{#_;#v;#b;#w;#y;#x;#S;#k;constructor(e,t,s,n,a){this.#_=e,this.#v=t||e.type,this.#b=s,this.#w=n,this.#y=a,this.#k={}}get scanType(){return this.#v}static generateReportDesc(){return g.getReportDestination().then((e=>[tn,e,"event.stopPropagation(); NAPI.request('app.utils.BrowseFolder', '"+e.replace(/\\/g,"\\\\")+"')"]))}static getPropertyDefs(e,t){const s={scanPup:{id:"stg-scans-"+e+"-scanPup",label:zs,desc:Us,track:{subject:"Scan PUP"}},scanLinks:{id:"stg-scans-"+e+"-scanLinks",label:js,desc:Hs,track:{subject:"Scan links"}},scanPackers:{id:"stg-scans-"+e+"-scanPackers",label:Gs.label,options:[...t!==Pe?[{label:Gs.mostCommonTypes,desc:Gs.mostCommonTypesDesc,value:nn,isRecommended:e!==We&&e!==Oe}]:[],{label:Gs.allTypes,desc:Gs.allTypesDesc,value:"All",isRecommended:e===We||e===Oe||t===Pe},{label:Gs.dontScanArchives,desc:Gs.dontScanArchivesDesc,value:""}],track:{subject:"Scan packers and archives",valueMap:{"EXE;WinExec;Drop;Install;Streams":"Most common types","":"Do not scan archives"}}},scanTypes:{id:"stg-scans-"+e+"-scanTypes",label:sn.label,options:[{label:sn.content,desc:sn.contentDesc,value:"Content",isRecommended:e!==We&&e!==Oe},{label:sn.extensions,desc:sn.extensionsDesc,value:"Extensions"},{label:sn.allFiles,value:"AllFiles",isRecommended:e===We||e===Oe}],track:{subject:"Scan types"}},useAutomaticActions:{id:"stg-scans-"+e+"-useAutomaticActions",label:Ys,track:{subject:"Use automatic actions"}},automaticActions:{id:"stg-scans-"+e+"-automaticActions",options:[{label:Xs.fix,desc:Xs.fixDesc,value:"fix",isRecommended:!0},{label:Xs.chest,value:"trezor"},{label:Xs.delete,value:"delete"}],track:{subject:"Automatic actions"}},automaticActionsExt:{id:"stg-scans-"+e+"-automaticActions",label:Js,options:[{label:Xs.fix,desc:Xs.fixDesc,value:"fix",isRecommended:!0},{label:Xs.chest,value:"trezor"},{label:Xs.delete,value:"delete"},{label:Xs.nothing,value:""}],track:{subject:"Automatic actions"}},shutdown:{id:"stg-scans-"+e+"-shutDownAfterScan",label:Qs,track:{subject:"Shutdown after scan"}},generateReport:{id:"stg-scans-"+e+"-generateReport",label:en,desc:()=>this.generateReportDesc(),descSanitized:!0,track:{subject:"Generate report file"}}};return s.scanTools={id:"stg-scans-"+e+"-scanTools",label:qs,desc:Vs,track:{subject:"Scan Tools"}},e!==Fe&&t!==Pe||Object.assign(s,{scanAreas:{id:e+"Scan_scanAreas",label:Zs.label,options:[{label:Zs.allHardDisks,value:"AllHarddisks",isRecommended:!0},{label:Zs.systemDisk,value:"SystemDisk"}],track:{subject:"Scan areas"}},scanAllRemovableMedia:{id:e+"Scan_scanAllRemovableMedia",label:Zs.allRemovableMedia,track:{subject:"Scan all removable media"}},scanRootkits:{id:e+"Scan_scanRootkits",label:Zs.rootkits,track:{subject:"Scan rootkits"}},scanUEFI:{id:e+"Scan_scanUEFI",label:Zs.uefi,track:{subject:"Scan UEFI"}},scanCdDvd:{id:e+"Scan_scanCdDvd",label:Zs.cdDvd,track:{subject:"Scan CD/DVD"}},scanMemory:{id:e+"Scan_scanMemory",label:Zs.memory,track:{subject:"Scan quick memory"}},scanStartup:{id:e+"Scan_scanStartup",label:Zs.startup,track:{subject:"Scan auto start programs"}}}),s}static getSearchItems(e,t){const s=this.getPropertyDefs(e,t);return se.props2searchItems(s)}getProps(){const e=this.#_.id,t=this.#v,s=this.constructor.getPropertyDefs(t,e),n={scanPup:{load:()=>this.loadScanProp("ScanPUP").then((e=>({locked:e.locked,value:e.value>0}))),change:e=>this.changeScanProp("ScanPUP",e?1:0),changeEvent:"scan."+e+".scanPup"},scanLinks:{load:()=>this.loadScanProp("ScanLinks"),change:e=>this.changeScanProp("ScanLinks",e)},scanPackers:{load:()=>this.getScanPackers(),change:e=>this.changeScanProp("ScanPackers",e),testAttr:this.#_.getPropTestAttr("ScanPackers")},scanTypes:{load:()=>this.getScanTypes(),change:e=>this.changeScanTypes(e),testAttr:[this.#_.getPropTestAttr("ScanTypes"),this.#_.getPropTestAttr("ScanType")]},useAutomaticActions:{load:()=>this.loadScanProp("AutomaticallyApplyActionsDuringScan"),change:e=>this.changeScanProp("AutomaticallyApplyActionsDuringScan",e)},automaticActions:{load:()=>this.loadAutomaticActions(),change:e=>this.changeAutomaticActions(e),testAttr:[this.#_.getPropTestAttr("VirusAction"),this.#_.getPropTestAttr("SuspiciousAction"),this.#_.getPropTestAttr("PUPAction")]},automaticActionsExt:{load:()=>this.loadAutomaticActions(),change:e=>this.changeAutomaticActions(e),testAttr:[this.#_.getPropTestAttr("VirusAction"),this.#_.getPropTestAttr("SuspiciousAction"),this.#_.getPropTestAttr("PUPAction")]},shutdown:{load:()=>this.loadScanProp("ShutDownMachine"),change:e=>this.changeScanProp("ShutDownMachine",e)},generateReport:{load:()=>this.loadGenerateReport(),change:e=>this.changeGenerateReport(e),testAttr:this.#_.getPropTestAttr("Report")}};return s.priority&&(n.priority={load:()=>this.loadScanProp("Priority"),change:e=>this.changeScanProp("Priority",e)}),s.scanFullFiles&&(n.scanFullFiles={load:()=>this.loadScanProp("ScanFullFiles"),change:e=>this.changeScanProp("ScanFullFiles",e)}),s.scanTools&&(n.scanTools={load:()=>{const e=this.#k.ScanPUP;let t;return t=this.#b&&void 0!==e?Promise.resolve({locked:n.scanPup.locked,value:e}):this.loadScanProp("ScanPUP"),t.then((e=>({locked:e.locked,value:2==e.value})))},change:e=>this.changeScanProp("ScanPUP",e?2:1),updateOnEvent:"settings.change.scan."+e+".scanPup"}),t!==Fe&&e!==Pe||Object.assign(n,{scanAreas:{load:()=>this.getScanAreaForRadio(["AllHarddisks","SystemDisk"]),change:e=>this.changeScanArea(["AllHarddisks","SystemDisk"],e),testAttr:[this.#_.getPropTestAttr("ScanAreas","AllHarddisks"),this.#_.getPropTestAttr("ScanAreas","SystemDisk")]},scanAllRemovableMedia:{load:()=>this.getScanArea(["AllMedia"]),change:e=>this.changeScanArea(["AllMedia"],e),testAttr:this.#_.getPropTestAttr("ScanAreas","AllMedia")},scanRootkits:{load:()=>this.getScanArea(["*RTK-FULL"]),change:e=>this.changeScanArea(["*RTK-FULL"],e),testAttr:this.#_.getPropTestAttr("ScanAreas","*RTK-FULL")},scanUEFI:{load:()=>this.getScanArea(["*RTK-UEFI"]),change:e=>this.changeScanArea(["*RTK-UEFI"],e),testAttr:this.#_.getPropTestAttr("ScanAreas","*RTK-UEFI")},scanCdDvd:{load:()=>this.getScanArea(["MediaCDDVD"]),change:e=>this.changeScanArea(["MediaCDDVD"],e),testAttr:this.#_.getPropTestAttr("ScanAreas","MediaCDDVD")},scanMemory:{load:()=>this.getScanArea(["QuickStartupMem"]),change:e=>this.changeScanArea(["QuickStartupMem"],e),testAttr:this.#_.getPropTestAttr("ScanAreas","QuickStartupMem")},scanStartup:{load:()=>this.getScanArea(["Startup"]),change:e=>this.changeScanArea(["Startup"],e),testAttr:this.#_.getPropTestAttr("ScanAreas","Startup")}}),Object.keys(s).forEach((e=>{n[e]=n[e]||{},Object.assign(n[e],s[e])})),n}getScanPackers(){const e="ScanPackers";return this.#_.loadProp(e).then((t=>(["","All"].includes(t.value)||(t.value=nn),this.handleNewScanCreation(e,t.value),t)))}getScanAreas(e){const t="ScanAreas";return this.#S&&!e||(this.#S=this.#_.loadProp(t).then((e=>(this.#x={locked:e.locked,areas:{}},e.value.replace(/"/g,"").split(";").forEach((e=>{this.#x.areas[e]=!0})),this.#S=null,this.handleNewScanCreation(t,e.value),this.#x)))),this.#S}changeScanAreas(){const e=Object.keys(this.#x.areas).map((e=>'"'+e+'"')).join(";");return this.changeScanProp("ScanAreas",e)}getScanAreaForRadio(e,t){return this.getScanAreas(t).then((t=>({locked:t.locked,value:e.find((e=>t.areas[e]))})))}getScanArea(e,t){return this.getScanAreas(t).then((t=>({locked:t.locked,value:e.every((e=>t.areas[e]))})))}changeScanArea(e,t){return e.forEach((e=>{e===t||!0===t?this.#x.areas[e]=!0:delete this.#x.areas[e]})),this.changeScanAreas()}getScanTypes(){return Promise.all([this.loadScanProp("ScanTypes"),this.loadScanProp("ScanType")]).then((e=>{const t=e[0]||{},s=e[1]||{};let n="";return n="AllFiles"===t.value?t.value:s.value,{value:n,locked:t.locked||s.locked}}))}changeScanTypes(e){let t="",s="";return"AllFiles"===e?t=e:(s=e,"Extensions"===e&&(t="exe;bat;com")),Promise.all([this.changeScanProp("ScanTypes",t),this.changeScanProp("ScanType",s)])}loadAutomaticActions(){return Promise.all([this.loadScanProp("VirusAction"),this.loadScanProp("AutomaticallyApplyActionsDuringScan")]).then((e=>{const t=e[0];return"0"===e[1].value&&(t.value=""),t}))}changeAutomaticActions(e){return e?Promise.all([this.changeScanProp("AutomaticallyApplyActionsDuringScan",1),this.changeScanProp("VirusAction",e),this.changeScanProp("SuspiciousAction",e),this.changeScanProp("PUPAction",e)]):this.changeScanProp("AutomaticallyApplyActionsDuringScan",0)}loadGenerateReport(){const e="Report";return this.#_.loadProp(e).then((t=>(this.handleNewScanCreation(e,t.value),{locked:t.locked,value:"None"!==t.value})))}changeGenerateReport(e){return this.changeScanProp("Report",e?"TXT":"None")}loadScanProp(e){return this.#_.loadProp(e).then((t=>(this.handleNewScanCreation(e,t.value),t)))}changeScanProp(e,t){return this.#b?(this.#k[e]=t,this.#y(e,t),Promise.resolve()):this.#_.saveProp(e,t)}handleNewScanCreation(e,t){this.#w&&this.#y(e,t)}}var on=e.template('<div class="settings__indent"><!></div>'),ln=e.template('<div class="g-margin-top--2x"><!></div>'),rn=e.template('<h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><!> <div class="g-margin-top--2x"><!> <!> <!> <!> <!></div></div>',1),cn=e.template('<h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><!> <!> <!> <!> <!> <!></div> <h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><!></div> <h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><!></div> <h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><!></div> <!>',1);function dn(s,n){e.push(n,!0);let a,i,o=e.prop(n,"scanType",7),l=e.state(void 0),r=e.state(void 0),c=e.state(!0),d=e.state(void 0),u=e.state(void 0),p=e.state(void 0),m=e.state(void 0);e.user_effect((()=>{n.scanId&&t((()=>{nt(n.scanId).then((t=>{var s;a=t,i=new an(a,o(),n.dontSave,n.isNewScan,n.onScanPropertyToSave),e.set(l,i.getProps(),!0),o(i.scanType),s=e.get(l),e.set(r,s.scanTools,!0),e.set(m,s.automaticActions,!0),e.set(d,{...e.get(l).scanPackers},!0),e.set(u,{...e.get(l).scanTypes},!0),e.set(p,{...e.get(l).scanAreas},!0),e.set(m,{...e.get(l).automaticActionsExt},!0),e.get(d).label=null,e.get(u).label=null,e.get(p).label=null,e.get(m).label=null,e.set(c,!1)})).catch((e=>{console.error("Scan settings: getting scan failed",e)}))}))}));var h=e.comment(),g=e.first_child(h),f=t=>{var s=cn(),a=e.first_child(s),i=e.child(a,!0);e.reset(a);var c=e.sibling(a,2),h=e.child(c);k(h,{get prop(){return e.get(l).scanPup},onValue:t=>{return s=t,void(e.get(r)&&(e.get(r).disabled=!s));var s},children:(t,s)=>{var n=e.comment(),a=e.first_child(n),i=t=>{var s=on(),n=e.child(s);k(n,{get prop(){return e.get(r)}}),e.reset(s),e.append(t,s)};e.if(a,(t=>{e.get(r)&&t(i)})),e.append(t,n)},$$slots:{default:!0}});var g=e.sibling(h,2);k(g,{get prop(){return e.get(l).scanLinks}});var f=e.sibling(g,2),_=t=>{k(t,{get prop(){return e.get(l).scanFullFiles}})};e.if(f,(t=>{e.get(l).scanFullFiles&&t(_)}));var v=e.sibling(f,2),b=t=>{var s=ln(),n=e.child(s);S(n,{get prop(){return e.get(l).priority},labelSmall:!0}),e.reset(s),e.append(t,s)};e.if(v,(t=>{e.get(l).priority&&t(b)}));var w=e.sibling(v,2),y=t=>{k(t,{get prop(){return e.get(l).shutdown}})};e.if(w,(e=>{n.isCustomScan||e(y)}));var x=e.sibling(w,2);k(x,{get prop(){return e.get(l).generateReport}}),e.reset(c);var C=e.sibling(c,2),I=e.child(C,!0);e.reset(C);var D=e.sibling(C,2),A=e.child(D);T(A,{get prop(){return e.get(d)}}),e.reset(D);var $=e.sibling(D,2),P=e.child($,!0);e.reset($);var R=e.sibling($,2),N=e.child(R);T(N,{get prop(){return e.get(u)}}),e.reset(R);var E=e.sibling(R,2),F=e.child(E,!0);e.reset(E);var W=e.sibling(E,2),O=e.child(W);T(O,{get prop(){return e.get(m)}}),e.reset(W);var L=e.sibling(W,2),M=t=>{var s=rn(),n=e.first_child(s),a=e.child(n,!0);e.reset(n);var i=e.sibling(n,2),o=e.child(i);T(o,{get prop(){return e.get(p)}});var r=e.sibling(o,2),c=e.child(r);k(c,{get prop(){return e.get(l).scanAllRemovableMedia}});var d=e.sibling(c,2);k(d,{get prop(){return e.get(l).scanRootkits}});var u=e.sibling(d,2);k(u,{get prop(){return e.get(l).scanUEFI}});var m=e.sibling(u,2);k(m,{get prop(){return e.get(l).scanCdDvd}});var h=e.sibling(m,2);k(h,{get prop(){return e.get(l).scanMemory}}),e.reset(r),e.reset(i),e.template_effect((t=>{e.set_text(a,t),e.set_attribute(i,"id",`${e.get(l).scanAreas.id??""}__container`)}),[()=>z(e.get(l).scanAreas.label)]),e.append(t,s)};e.if(L,(e=>{o()===Fe&&e(M)})),e.template_effect(((t,s,n,a)=>{e.set_text(i,t),e.set_text(I,s),e.set_text(P,n),e.set_text(F,a)}),[()=>z("settings.general"),()=>z(e.get(l).scanPackers.label),()=>z(e.get(l).scanTypes.label),()=>z("scans.settings.automaticActions")]),e.append(t,s)};e.if(g,(t=>{e.get(c)||t(f)})),e.append(s,h),e.pop()}kt(".scn_expand_line.svelte-ddovr5 {\n  display: flex;\n  align-items: center;\n}\n.scn_expand_line.svelte-ddovr5 > div:where(.svelte-ddovr5) {\n  flex-shrink: 0;\n}\n.scn_expand_line.svelte-ddovr5 > div:where(.svelte-ddovr5):last-child {\n  flex-grow: 1;\n}\n");var un=e.template('<button class="a -primary"> <kin-icon></kin-icon></button>',2),pn=e.template("<kin-loading></kin-loading>",2),mn=e.template('<div class="scn_expand_line g-margin-left--2x g-margin-top--1x svelte-ddovr5"><div class="svelte-ddovr5"><!></div> <div class="g-align--right svelte-ddovr5"><!></div></div> <div><!> <!></div>',1);const hn=!1,gn=!0,fn={nameType:function(t,s){e.push(s,!1);let n,a=e.prop(s,"props",8),i=e.prop(s,"propsStatus",12),o=e.prop(s,"propsInput",28,(()=>({})));function l(){n?.focus()}e.init();var r=As(),c=e.first_child(r),d=e.child(c,!0);e.reset(c);var u=e.sibling(c,2),p=e.child(u),m=e.child(p);const h=e.derived_safe_equal((()=>z("scans.scanName.placeholder")));x(m,{get prop(){return a().label},onValue:e=>i(i().label.value=e,!0),get placeholderText(){return e.get(h)},wrapCssCls:"g-margin-top--1x scn_settings__input -full_width",get propInput(){return o().label},set propInput(e){o(o().label=e,!0)},$$legacy:!0}),e.reset(p),e.action(p,(e=>(n=e.querySelector(`#${a().label.id}`),{destroy(){n=null}})));var g=e.sibling(p,2),f=e.child(g);return S(f,{get prop(){return a().scanType},onValue:e=>i(i().scanType.value=e,!0),onStoredValue:e=>i(i().scanType.storedValue=e,!0),wrapCssCls:"g-margin-top--1x scn_settings__input"}),e.reset(g),e.reset(u),e.template_effect((t=>e.set_text(d,t)),[()=>z("scans.settings.essentials")],e.derived_safe_equal),e.append(t,r),e.bind_prop(s,"focus",l),e.pop({focus:l})},schedule:function(t,s){e.push(s,!1);let n=e.prop(s,"props",8),a=e.prop(s,"propsStatus",12),i=e.prop(s,"inputElems",28,(()=>({}))),o=e.prop(s,"showHeading",8,!0);const l=e.mutable_source(a().schedule.frequency);e.legacy_pre_effect((()=>e.get(l)),(()=>{!function(e){for(const t in a().schedule)"frequency"!==t&&a(a().schedule[t].disabled=e,!0)}(e.get(l).disabled)})),e.legacy_pre_effect_reset(),e.init();var r=Os(),c=e.first_child(r),d=t=>{var s=Es(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.settings.scheduling")],e.derived_safe_equal),e.append(t,s)};e.if(c,(e=>{o()&&e(d)}));var u=e.sibling(c,2);let p;var m=e.child(u),h=e.child(m),g=e.child(h);S(g,{get prop(){return n().schedule.frequency},onValue:t=>e.mutate(l,e.get(l).value=t),onDisabled:t=>e.mutate(l,e.get(l).disabled=t),layout:"input-dropdown",wrapCssCls:"scn_settings__input"});var f=e.sibling(g,2),_=t=>{var s=Fs(),o=e.first_child(s),r=e=>{x(e,{get prop(){return n().schedule.date},onValue:e=>a(a().schedule.date.value=e,!0),onInvalid:e=>a(a().schedule.date.invalid=e,!0),wrapCssCls:"scn_settings__input -quarter_width",get inputElem(){return i().date},set inputElem(e){i(i().date=e,!0)},$$legacy:!0})};e.if(o,(t=>{"Once"===e.get(l).value&&t(r)}));var c=e.sibling(o,2),d=e=>{S(e,{get prop(){return n().schedule.dayOfWeek},onValue:e=>a(a().schedule.dayOfWeek.value=e,!0),layout:"input-dropdown",wrapCssCls:"scn_settings__input -quarter_width",get inputElem(){return i().dayOfWeek},set inputElem(e){i(i().dayOfWeek=e,!0)},$$legacy:!0})};e.if(c,(t=>{"Weekly"===e.get(l).value&&t(d)}));var u=e.sibling(c,2),p=e=>{x(e,{get prop(){return n().schedule.dayOfMonth},onValue:e=>a(a().schedule.dayOfMonth.value=e,!0),onInvalid:e=>a(a().schedule.dayOfMonth.invalid=e,!0),wrapCssCls:"scn_settings__input -quarter_width",get inputElem(){return i().dayOfMonth},set inputElem(e){i(i().dayOfMonth=e,!0)},$$legacy:!0})};e.if(u,(t=>{"Monthly"===e.get(l).value&&t(p)}));var m=e.sibling(u,2);x(m,{get prop(){return n().schedule.time},onValue:e=>a(a().schedule.time.value=e,!0),onInvalid:e=>a(a().schedule.time.invalid=e,!0),wrapCssCls:"scn_settings__input -quarter_width",get inputElem(){return i().time},set inputElem(e){i(i().time=e,!0)},$$legacy:!0}),e.append(t,s)};e.if(f,(t=>{e.get(l).value&&t(_)})),e.reset(h),e.reset(m);var v=e.sibling(m,2),b=t=>{var s=Ws(),n=e.child(s);e.set_custom_element_data(n,"name","icon-m-action-info"),e.set_custom_element_data(n,"size","24");var a=e.sibling(n,2),i=e.child(a,!0);e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(i,t)),[()=>z("scans.settings.info")],e.derived_safe_equal),e.append(t,s)};e.if(v,(t=>{e.get(l).value&&!e.get(l).disabled&&t(b)})),e.reset(u),e.template_effect((t=>p=e.set_class(u,1,"",null,p,t)),[()=>({"g-margin-left--3x":o()})],e.derived_safe_equal),e.append(t,r),e.pop()},folders:function(t,s){e.push(s,!1);const n=/"/g;let a,i=e.prop(s,"targets",12),o=e.prop(s,"error",8),l=e.prop(s,"onTargetsChanged",8,null);function r(){a?.focus()}async function c(){const e=await Z("app.utils.SelectFolders",{alsoFiles:!1});"ok"===e.dialogReturnCode&&(e.paths.split(";").forEach((e=>{e=e.replace(n,""),i().includes(e)||i([...i(),e])})),l()?.(i()))}e.init();var d=Ns(),u=e.child(d),p=e.child(u);e.set_custom_element_data(p,"data-test","scn_scan-custom-add-folders");var m=e.child(p,!0);e.reset(p),e.effect((()=>e.event("click",p,c))),e.action(p,(e=>(a=e,{destroy(){a=null}}))),e.reset(u);var h=e.sibling(u,2),g=t=>{var s=Ps(),n=e.sibling(e.child(s));e.each(n,5,i,e.index,((t,s)=>{var n=$s(),a=e.child(n),o=e.child(a);e.set_custom_element_data(o,"ellipsis","true");var r=e.child(o),c=e.child(r,!0);e.reset(r);var d=e.sibling(r,2),u=e.child(d,!0);e.reset(d),e.reset(o),e.reset(a);var p=e.sibling(a),m=e.child(p);e.set_custom_element_data(m,"size","small");var h=e.child(m);e.set_custom_element_data(h,"slot","tooltip-activator"),e.set_custom_element_data(h,"data-test","scans_custom-scan-settings-folder-remove"),e.set_custom_element_data(h,"type","blank"),e.set_custom_element_data(h,"size","tiny"),e.set_custom_element_data(h,"icononly",!0);var g=e.child(h);e.set_custom_element_data(g,"name","icon-m-close"),e.set_custom_element_data(g,"size","16"),e.reset(h);var f=e.sibling(h,2),_=e.child(f,!0);e.reset(f),e.reset(m),e.reset(p),e.reset(n),e.template_effect((t=>{e.set_text(c,e.get(s)),e.set_text(u,e.get(s)),e.set_text(_,t)}),[()=>z("global.remove")],e.derived_safe_equal),e.event("click",h,(()=>function(e){const t=i().findIndex((t=>t===e));i().splice(t,1),i(i()),l()?.(i())}(e.get(s)))),e.append(t,n)})),e.reset(n),e.reset(s),e.append(t,s)},f=t=>{var s=Rs(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>{e.set_class(s,1,"g-margin-top--1x g-margin-bottom--2x p -small "+(o()?"color-critical -text":"-secondary")),e.set_text(n,t)}),[()=>z("global.noFolderAdded")],e.derived_safe_equal),e.append(t,s)};return e.if(h,(e=>{i().length?e(g):e(f,!1)})),e.reset(d),e.template_effect((t=>e.set_text(m,t)),[()=>z("global.chooseFolder")],e.derived_safe_equal),e.append(t,d),e.bind_prop(s,"focus",r),e.pop({focus:r})},advanced:function(t,s){e.push(s,!1);let n=e.prop(s,"scanId",8),a=e.prop(s,"scanType",8),i=e.prop(s,"isNewScan",8),o=e.prop(s,"expanded",12),l=e.prop(s,"expandable",8),r=e.prop(s,"loading",8),c=e.prop(s,"onScanPropertyToSave",8),d=e.mutable_source();nt(n()).then((t=>{const s=new an(t,a(),!0,i(),c()).getProps();e.set(d,s.shutdown)})).catch((e=>{console.error("Scan settings: getting scan failed",e)})),e.init();var u=mn(),p=e.first_child(u),m=e.child(p),h=e.child(m),g=t=>{k(t,{get prop(){return e.get(d)}})};e.if(h,(t=>{e.get(d)&&t(g)})),e.reset(m);var f=e.sibling(m,2),_=e.child(f),v=t=>{var s=un(),n=e.child(s),a=e.sibling(n);e.set_class(a,1,"g-margin-left--half"),e.template_effect((()=>e.set_custom_element_data(a,"name",o()?"icon-s-controls-arrow-up":"icon-s-controls-arrow-down"))),e.set_custom_element_data(a,"size","16"),e.reset(s),e.template_effect(((t,s)=>e.set_text(n,`${t??""} ${s??""} `)),[()=>o()?z("global.hide"):z("global.show"),()=>z("settings.advanced").toLowerCase()],e.derived_safe_equal),e.event("click",s,e.preventDefault((()=>o(!o())))),e.append(t,s)};e.if(_,(e=>{l()&&e(v)})),e.reset(f),e.reset(p);var b=e.sibling(p,2),w=e.child(b),y=t=>{var s=pn();e.set_custom_element_data(s,"size","small"),e.set_custom_element_data(s,"inline","true"),e.append(t,s)};e.if(w,(e=>{r()&&e(y)}));var x=e.sibling(w,2),S=e=>{dn(e,{get scanId(){return n()},get scanType(){return a()},get isNewScan(){return i()},dontSave:!0,isCustomScan:!0,onScanPropertyToSave:(e,t)=>function(e,t){c()(e,t)}(e,t)})};e.if(x,(e=>{n()&&!r()&&e(S)})),e.reset(b),e.template_effect((()=>e.set_class(b,1,e.clsx(o()?"g-margin-top--2x":"g-display--none")))),e.append(t,u),e.pop()}};var _n=e.template("<div><!></div> <!> <!> <!>",1);function vn(t,n){e.push(n,!1);let a=e.prop(n,"scanId",12),o=e.prop(n,"isSmartScanSettings",8),l=e.prop(n,"recommendedFrequency",12);const r=async function(){if(function(){e.mutate(m,e.get(m).label.value=e.get(m).label.value?.trim())}(),O())return!1;const t=[];for(const e in g)t.push({name:e,value:g[e]});if(t.length)try{u?(e.set(D,!0),await async function(e){const t=await ut(),s=await nt(t);await L(s,e)}(t),e.set(D,!1)):await L(e.get(C),t)}catch(s){return"unauthorized"===s.code?console.log("Saving scan not authorized.",s):console.error("Saving scan failed.",s),e.set(D,!1),!1}return!0},c=s(),d=/"/g,u=a()===Re,p=a()===Ie;let m=e.mutable_source({scanType:{},scanStatus:{},label:{},schedule:{frequency:{},date:{},dayOfWeek:{},dayOfMonth:{},time:{}}}),h=e.mutable_source({});const g={};let _,v,b,w=e.mutable_source(),y=e.mutable_source([]),x=e.mutable_source(!0),S=e.mutable_source(!1),k=!1,T=e.mutable_source(),C=e.mutable_source(),I=e.mutable_source(!1),D=e.mutable_source(!0),A=e.mutable_source(),$=e.mutable_source(),P=e.mutable_source(),R=e.mutable_source(),N=e.mutable_source(),E=e.mutable_source({}),F=e.mutable_source(!1);function W(){const e=[{label:"scans.schedule.manually.label",value:""},{label:"scans.schedule.daily.label",value:"Daily"},{label:"scans.schedule.weekly.label",value:"Weekly"},{label:"scans.schedule.monthly.label",value:"Monthly"}];return p||e.splice(1,0,{label:"scans.schedule.once.label",value:"Once"}),l()&&e.map((e=>(e.value===l()&&(e.isRecommended=!0),e))),e}function O(){return!![M,q.bind(null,"date"),q.bind(null,"dayOfWeek"),q.bind(null,"dayOfMonth"),q.bind(null,"time"),B].reduce(((e,t)=>e|t(e)),!1)}async function L(e,t){if(e.id!==De)try{await e.saveProps(t),k&&le(!0).then(ce).then((()=>Z("app.scanViruses.ReloadScheduler")))}catch(s){console.error("Failed to save Custom scan settings",s)}else console.error("Cannot save default scan as custom",De)}function M(t){if("custom"===e.get(C)?.type||u){const s=!e.get(h).label.validateValue();return!t&&s&&e.get(A)?.focus(),s}}function B(t){const s=e.get(m).scanType.value===We&&(!e.get(y)||"Interactive"===e.get(y)||Array.isArray(e.get(y))&&e.get(y).length<1);return e.set(S,s),!t&&s&&e.get($)?.focus(),s}function q(t,s){if(!e.get(m).schedule.frequency.value)return;const n=e.get(m).schedule[t].invalid;return!s&&n&&e.get(E)[t]?.focus(),n}async function V(t){!t&&v||(v=e.get(C).loadProp("ScanAreas"));const s=await v;let n=[];return s&&s.value&&(n=s.value.split(";").map((e=>e.replace(d,"")))),n}function j(e){H("ScanAreas",e.map((e=>'"'+e+'"')).join(";"))}function H(e,t){g[e]=t}async function G(){return u?{locked:!1,value:null}:await e.get(C).loadProp("Label")}async function K(t){const s=await e.get(C).loadProp("Job");if("SmartScan"===s.value)return{locked:s.locked,value:"smartscan"};{const e=await V(t);let s;return s=Le.every((t=>e.includes(t)))?Ee:e.includes("AllHarddisks")||e.includes("SystemDisk")?Fe:We,{locked:!1,value:s}}}async function Y(e,t){H(e,t)}async function J(e){!function(e){for(const t of e)delete g[t]}(["ScanType","TaskSensitivity","UseCodeEmulation","Job","ScanAreas"]);let t=[];const s={ScanType:"Content",TaskSensitivity:"80",UseCodeEmulation:"1",Job:"Scan"};switch(e){case Ee:t=Le,s.ScanType="Extensions",s.TaskSensitivity="40",s.UseCodeEmulation="0";break;case"smartscan":s.Job="SmartScan"}for(const n in s)H(n,s[n]);j(t)}async function X(){if(u)return{locked:!1,value:""};return"1"==(await e.get(C).loadProp("SchedulerEnabled")).value?await e.get(C).loadProp("SchedType"):{locked:!1,value:""}}async function Q(e){H("SchedulerEnabled",e?"1":"0"),e&&(H("SchedType",e),H("SchedDays","127"));const t=await le(!0);k=!0,ce(t)}async function ee(e){return{locked:!1,value:(await le(e)).date}}async function te(e){ce({date:e})}async function se(e){return{locked:!1,value:(await le(e)).day}}async function ne(e){ce({day:e})}async function ae(e){if(+e>31)throw new Error("invalid date "+e);return await ne(e)}async function ie(e){return{locked:!1,value:(await le(e)).time}}async function oe(e){ce({time:e})}async function le(t){!t&&b||(b=g.SchedTime?Promise.resolve({value:g.SchedTime}):e.get(C).loadProp("SchedTime"));return function(t){const s=new Date(1e3*t),n="Once"===e.get(m).schedule.frequency.value,a=s.getFullYear()>1970;let i;i=!s.getTime()||!a&&n?function(e){const t=re(e),s=new Date;return{day:1,date:s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate(),time:t||s.getHours()+":"+s.getMinutes()}}(s):{day:s.getUTCDate(),date:s.getFullYear()+"-"+(s.getMonth()+1)+"-"+s.getDate(),time:re(s)};return de(i)}((await b).value)}function re(e){const t=e.getFullYear()<1971;return!!e.getTime()&&(t?e.getUTCHours()+":"+e.getUTCMinutes():e.getHours()+":"+e.getMinutes())}function ce(t){const s=e.get(m).schedule.frequency.value,n="Once"!==s;let a;switch(t.time=t.time||e.get(m).schedule.time.value,s){case"Once":t.date=t.date||e.get(m).schedule.date.value;break;case"Daily":t.date="1970-01-01";break;case"Weekly":a=t.day||e.get(m).schedule.dayOfWeek.value,t.date="1970-01-"+a;break;case"Monthly":a=t.day||e.get(m).schedule.dayOfMonth.value,t.date="1970-01-"+a;break;default:return}de(t);const i=new Date(t.date+"T"+t.time+(n?"Z":""));isNaN(i)&&console.error("invalid date or time: "+JSON.stringify(t)),H("SchedTime",i/1e3),k=!0}function de(e){return e.time=e.time.split(":").map((e=>("0"+e).slice(-2))).join(":"),e.date&&(e.date=e.date.split("-").map((e=>1===e.length?"0"+e:e)).join("-")),e}a()===Re?(e.set(T,De),a(De)):e.set(T,a()),nt(a()).then((t=>{e.set(C,t);const s=a()===$e||"custom"===e.get(C).type;_=!u&&!s,function(){if(!l()&&p)return f.smartscan.getRecommendedFrequency().then((e=>l(e)));return Promise.resolve()}().then((()=>{e.set(w,function(e){const t=[{label:"scans.scanType.full",value:Fe},{label:"scans.scanType.folder",value:We},{label:"scans.scanType.quick",value:Ee}];!u&&f.smartscan.isSchedulingAllowed()&&"custom"===e.type&&t.push({label:"scans.scanType.smartscan",value:"smartscan"});return{label:{id:"scans-custom-settings-label",label:"scans.scanName",load:G,change:Y.bind(null,"Label"),required:!0,regex:/^[^<>&'"]+$/,testAttr:"scn_scan-custom-scan-name",maxLength:60,disabled:_},scanType:{id:"scans-custom-settings-scanType",label:"scans.scanType",load:K,change:J,options:t,testAttr:"scn_scan-custom-scan-type",disabled:_},schedule:{frequency:{id:"scans-custom-settings-schedule-frequency",label:"scans.schedule.frequency",load:X,change:Q,options:W(),testAttr:"scn_scan-custom-scan-frequency"},date:{id:"scans-custom-settings-schedule-date",label:"scans.schedule.date",type:"date",load:ee,change:te,required:!0,testAttr:"scn_scan-custom-scan-schedule-date"},dayOfWeek:{id:"scans-custom-settings-schedule-dayOfWeek",label:"scans.schedule.dayOfWeek",load:se,change:ne,options:U.weekdays(!0).map(((e,t)=>({label:e,value:(t+U.localeData().firstDayOfWeek())%7+1}))),testAttr:"scn_scan-custom-scan-schedule-day-of-week"},dayOfMonth:{id:"scans-custom-settings-schedule-dayOfMonth",label:"scans.schedule.dayOfMonth",load:se,change:ae,required:!0,testAttr:"scn_scan-custom-scan-schedule-day-of-month"},time:{id:"scans-custom-settings-schedule-time",label:"scans.schedule.time",type:"time",load:ie,change:oe,required:!0,testAttr:"scn_scan-custom-scan-schedule-time"}}}}(e.get(C))),e.set(D,!1)}))})).catch((e=>{console.error("Loading scan failed",e)})),e.legacy_pre_effect((()=>(e.get(D),e.get(m))),(()=>{e.get(D)||e.get(m).scanType.value===e.get(m).scanType.storedValue||e.set(x,!0)})),e.legacy_pre_effect((()=>(e.get(D),e.get(m))),(()=>{e.get(D)||null==e.get(m).scanType.storedValue||e.set(x,!1)})),e.legacy_pre_effect((()=>(e.deep_read_state(o()),e.get(m))),(()=>{o()&&e.get(m)&&e.set(F,O())})),e.legacy_pre_effect((()=>e.get(F)),(()=>{c("invalidProps",e.get(F))})),e.legacy_pre_effect((()=>(e.get(w),e.get(m),U)),(()=>{e.get(w)&&(e.mutate(w,e.get(w).scanType.disabled=!u&&Boolean(e.get(m).scanType.value)),"Once"===e.get(m).schedule.frequency.value?(e.mutate(w,e.get(w).schedule.date.minValue="now"),e.get(m).schedule.date.value===U().format("YYYY-MM-DD")?e.mutate(w,e.get(w).schedule.time.minValue="now"):e.mutate(w,e.get(w).schedule.time.minValue=null)):(e.mutate(w,e.get(w).schedule.date.minValue=null),e.mutate(w,e.get(w).schedule.time.minValue=null)))})),e.legacy_pre_effect((()=>(e.get(D),e.get(m),e.get(N))),(()=>{e.get(D)||e.get(m).scanType.storedValue!==We||e.get(N)===We||u||(V(!0).then((t=>e.set(y,t))),e.set(N,e.get(m).scanType.storedValue))})),e.legacy_pre_effect((()=>e.get(m)),(()=>{Object.prototype.hasOwnProperty.call(e.get(m).label,"value")&&(c("title",u?z("scans.customScan.modal.title"):i.escapeHtml(e.get(m).label.value||"")),e.set(I,!0))})),e.legacy_pre_effect((()=>(e.get(I),e.get(D))),(()=>{e.get(I)&&c("loading",e.get(D))})),e.legacy_pre_effect_reset(),e.init();var ue=e.comment(),pe=e.first_child(ue),me=t=>{var s=_n(),n=e.first_child(s);let a;var i=e.child(n);e.component(i,(()=>fn.nameType),((t,s)=>{e.bind_this(s(t,{get scan(){return e.get(C)},isNewScan:u,get props(){return e.get(w)},get propsStatus(){return e.get(m)},set propsStatus(t){e.set(m,t)},get propsInput(){return e.get(h)},set propsInput(t){e.set(h,t)},$$legacy:!0}),(t=>e.set(A,t)),(()=>e.get(A)))})),e.reset(n);var l=e.sibling(n,2),r=t=>{var s=e.comment(),n=e.first_child(s);e.component(n,(()=>fn.folders),((t,s)=>{e.bind_this(s(t,{onTargetsChanged:j,get error(){return e.get(S)},get targets(){return e.get(y)},set targets(t){e.set(y,t)},$$legacy:!0}),(t=>e.set($,t)),(()=>e.get($)))})),e.append(t,s)};e.if(l,(t=>{p||"folder"!==e.get(m).scanType.value||"folder"===e.get(C).type||t(r)}));var c=e.sibling(l,2),d=t=>{var s=e.comment(),n=e.first_child(s);e.component(n,(()=>fn.schedule),((t,s)=>{e.bind_this(s(t,{get props(){return e.get(w)},showHeading:!p,get propsStatus(){return e.get(m)},set propsStatus(t){e.set(m,t)},get inputElems(){return e.get(E)},set inputElems(t){e.set(E,t)},$$legacy:!0}),(t=>e.set(P,t)),(()=>e.get(P)))})),e.append(t,s)};e.if(c,(t=>{e.get(C).type&&"folder"!==e.get(C).type&&"boottime"!==e.get(C).type&&t(d)}));var g=e.sibling(c,2),f=t=>{var s=e.comment(),n=e.first_child(s);e.component(n,(()=>fn.advanced),((t,s)=>{e.bind_this(s(t,{get scanId(){return e.get(T)},get scanType(){return e.get(m).scanType.value},isNewScan:u,dontSave:!0,onScanPropertyToSave:(e,t)=>H(e,t),get expanded(){return hn},get expandable(){return gn},get loading(){return e.get(x)},$$legacy:!0}),(t=>e.set(R,t)),(()=>e.get(R)))})),e.append(t,s)};e.if(g,(t=>{p||"smartscan"===e.get(m).scanType.value||t(f)})),e.template_effect((t=>a=e.set_class(n,1,"",null,a,t)),[()=>({"g-display--none":o()})],e.derived_safe_equal),e.append(t,s)};return e.if(pe,(t=>{e.get(D)||t(me)})),e.append(t,ue),e.bind_prop(n,"save",r),e.pop({save:r})}kt(".hidden.svelte-1wnlnbm {\n  visibility: hidden;\n}\n");const bn=900;var wn=e.template("<kin-loading></kin-loading>",2),yn=e.template('<div class="scn_settings__modal g-align--left"><!> <div><!></div></div>'),xn=e.template("<kin-button> </kin-button> <kin-button> </kin-button>",3),Sn=e.template('<div slot="modal-footer"><!></div>');function kn(t,n){e.push(n,!1);let a=e.prop(n,"scanId",8);const i=s(),o=a()===Re,l={[Ie]:z("scans.scanType.smartscan"),[De]:z("scans.scanType.full"),[Ae]:z("scans.scanType.folder"),[$e]:z("scans.scanType.quick"),[Pe]:z("scans.scanType.boottime")};let r=e.mutable_source(!1),c=e.mutable_source(!0),d=e.mutable_source(l[a()]||""),u=e.mutable_source(!1),p=e.mutable_source();function m(){return e.set(r,!0),new Promise((t=>{e.get(p)().then((t=>{e.set(r,!1),t&&(J.click("Scans","Save",o?"Create new scan":"Update custom scan","custom scans"),i("close"))}))}))}function h(){J.click("Scans","Close",o?"Create new scan":"Update custom scan","custom scans"),i("close")}e.init(),C(t,{get title(){return e.get(d)},testId:"scn-custom_scan-modal",get width(){return bn},$$events:{close:h},children:(t,s)=>{var n=yn(),i=e.child(n),o=t=>{var s=wn();e.set_custom_element_data(s,"fullscreen",!0),e.append(t,s)};e.if(i,(t=>{e.get(c)&&t(o)}));var r=e.sibling(i,2);let m;vn(e.child(r),{get scanId(){return a()},get save(){return e.get(p)},set save(t){e.set(p,t)},$$events:{loading:t=>e.set(c,t.detail),title:t=>{return s=t.detail,void(l[a()]||e.set(d,s));var s},invalidProps:t=>e.set(u,t.detail)},$$legacy:!0}),e.reset(r),e.reset(n),e.template_effect((t=>m=e.set_class(r,1,"svelte-1wnlnbm",null,m,t)),[()=>({hidden:e.get(c)})],e.derived_safe_equal),e.append(t,n)},$$slots:{default:!0,"modal-footer":(t,s)=>{var n=Sn(),a=e.child(n),i=t=>{var s=xn(),n=e.first_child(s);e.template_effect((()=>e.set_custom_element_data(n,"kin-disabled",e.get(r)||e.get(u)))),e.template_effect((()=>e.set_custom_element_data(n,"processing",e.get(r)))),e.set_custom_element_data(n,"data-test","scans_custom_save");var a=e.child(n,!0);e.reset(n);var i=e.sibling(n,2);e.set_class(i,1," g-margin-left--half"),e.set_custom_element_data(i,"type","secondary"),e.set_custom_element_data(i,"data-test","scans_custom_cancel");var l=e.child(i,!0);e.reset(i),e.template_effect(((t,s)=>{e.set_text(a,t),e.set_text(l,s)}),[()=>z(o?"global.create":"global.save"),()=>z("global.cancel")],e.derived_safe_equal),e.event("click",n,m),e.event("click",i,h),e.append(t,s)};e.if(a,(t=>{e.get(c)||t(i)})),e.reset(n),e.append(t,n)}}}),e.pop()}kt(".scn_custom__header kin-button {\n  margin-bottom: 1.2rem;\n}\n.scn_custom__header.svelte-1xybz90 {\n  grid-template-columns: 50% 50%;\n}\n.scn .scn_custom_empty_icon {\n  font-size: 10rem;\n  margin-top: 6.4rem;\n}\n.scn .scn_custom_empty_icon.-small {\n  font-size: 7rem;\n  margin-top: 4rem;\n}\n");var Tn=e.template("<kin-loading></kin-loading>",2),Cn=e.template('<p class="p"> </p>'),In=e.template("<kin-button> </kin-button>",2),Dn=e.template("<kin-button><kin-icon></kin-icon> </kin-button>",2),An=e.template('<div class="g-margin-top--3x g-margin-bottom--6x"><!> <kin-table><div slot="table-header" class="scn_custom__header svelte-1xybz90"><div> </div> <div class="kin_table__end"><!></div></div> <div slot="table-body"></div></kin-table> <!></div>',2),$n=e.template('<div class="g-align--center"><!> <div class="p -secondary g-margin-bottom--4x"><!></div> <kin-button> </kin-button></div>',2),Pn=e.template("<!> <!>",1);function Rn(t,s){e.push(s,!0);const[n,a]=e.setup_stores(),i=()=>e.store_get(bs,"$customScans",n);let o=e.prop(s,"scanId",7),l=e.prop(s,"actionButtonPos",3,"header"),r=e.prop(s,"showDesc",3,!0),c=e.prop(s,"fullSize",3,!1);var d=Pn(),u=e.first_child(d),p=t=>{var s=Tn();e.append(t,s)},m=t=>{var s=e.comment(),a=e.first_child(s),d=t=>{var s=An(),a=e.child(s),c=t=>{var s=Cn(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.customScan.desc")]),e.append(t,s)};e.if(a,(e=>{r()&&e(c)}));var d=e.sibling(a,2),u=e.child(d),p=e.child(u),m=e.child(p,!0);e.reset(p);var h=e.sibling(p,2),g=e.child(h),f=t=>{var s=In();e.set_custom_element_data(s,"size","small"),s.__click=function(...e){xs?.apply(this,e)},e.set_custom_element_data(s,"data-test","scn_scan-custom-create");var n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.customScan.btnPageAction")]),e.append(t,s)};e.if(g,(e=>{"header"===l()&&e(f)})),e.reset(h),e.reset(u);var _=e.sibling(u,2);e.each(_,5,i,e.index,((t,s,a)=>{Ds(t,{get scan(){return e.get(s)},index:a,get showResult(){return e.store_get(ws,"$showResultMap",n)[e.get(s).id]},onConfigureScan:e=>o(e)})})),e.reset(_),e.reset(d);var v=e.sibling(d,2),b=t=>{var s=Dn();let n;e.set_custom_element_data(s,"size","large"),s.__click=function(...e){xs?.apply(this,e)},e.set_custom_element_data(s,"data-test","scn_scan-custom-create");var a=e.child(s);e.set_custom_element_data(a,"name","icon-s-add"),e.set_custom_element_data(a,"size","24");var i=e.sibling(a);e.reset(s),e.template_effect(((t,a)=>{n=e.set_class(s,1,"",null,n,t),e.set_text(i,` ${a??""}`)}),[()=>({"sve_one-page__action-single-button":"float"===l()}),()=>z("scans.customScan.btnPageAction")]),e.append(t,s)};e.if(v,(e=>{"float"===l()&&e(b)})),e.reset(s),e.template_effect((t=>e.set_text(m,t)),[()=>z("scans.scanName")]),e.append(t,s)},u=t=>{var s=$n(),n=e.child(s);const a=e.derived((()=>"scn_custom_empty_icon g-margin-bottom--4x "+(c()?"":"-small")));I(n,{name:"l038",nameSpaghetti:"i-057",get cssCls(){return e.get(a)},size:"240",width:"608"});var i=e.sibling(n,2),o=e.child(i);e.html(o,(()=>z("scans.customScans.empty"))),e.reset(i);var l=e.sibling(i,2);l.__click=function(...e){xs?.apply(this,e)},e.set_custom_element_data(l,"data-test","scn_scan-custom-create");var r=e.child(l,!0);e.reset(l),e.reset(s),e.template_effect((t=>e.set_text(r,t)),[()=>z("scans.customScan.btnPageAction")]),e.append(t,s)};e.if(a,(e=>{i().length?e(d):e(u,!1)})),e.append(t,s)};e.if(u,(t=>{e.store_get(ys,"$loading",n)?t(p):t(m,!1)}));var h=e.sibling(u,2),g=e=>{kn(e,{get scanId(){return o()},$$events:{close:()=>(o(null),void(s.closeDetail&&s.closeDetail()))}})};e.if(h,(e=>{o()&&e(g)})),e.append(t,d),e.pop(),a()}e.delegate(["click"]);const Nn={actionButtonPos:"header",useRouter:!0,showDesc:!0,fullSize:!1};function En(t,s){e.push(s,!1);let a=e.prop(s,"scanId",12),i=e.prop(s,"router",8);const o=[];function l(e={}){a(e.scanId)}Nn.useRouter&&(o.push(i()?.on("/customScans/:scanId",l)),l(i()?.getRouteChunks("/customScans/:scanId"))),n((()=>{o.forEach((e=>e?.()))})),e.init(),Rn(t,e.spread_props({get scanId(){return a()},closeDetail:function(){a(null),Nn.useRouter&&ne("#scans/customScans")}},Nn)),e.pop()}const Fn={learnMore:null,breadcrumbs:{section:"security",moduleId:"scans",subsections:null},tabScanHistoryCompo:null};var Wn=e.template('<div slot="page-breadcrumbs"><!></div>'),On=e.template('<div slot="page-content"><!></div>');function Ln(t,s){e.push(s,!1);let i=e.prop(s,"router",8);const o={tabId:"rescueDisk",rawTitle:"rescuedisk",compo:p},l=[{tabId:"scans",rawTitle:"global.scanNow",compo:cs},{tabId:"customScans",rawTitle:"scans.customScans",compo:{constructor:En,props:{router:i()}}},{tabId:"scanHistory",rawTitle:"scans.scanHistory",compo:Fn.tabScanHistoryCompo}],r=[];let c=e.mutable_source(),d=e.mutable_source(!0);function u(t={}){l.some((e=>e.tabId===t.tabId))&&e.set(c,t.tabId)}function m(e){const t=e.detail;window.location.hash="#scans/"+t}r.push(i()?.on("/:tabId",u)),r.push(i()?.on("/:tabId/:scanId",u)),n((()=>{r.forEach((e=>e()))})),a((async()=>{await async function(){const t=await g.getValue("avdef://config/GuiCache/HideRescueDisk").then((e=>1==e)),s=h.isAfbManaged()&&!h.isInstalled("RescueDisk");t||s||l.push(o);e.set(d,!1)}()})),e.init();const f=e.derived_safe_equal((()=>z("scans"))),_=e.derived_safe_equal((()=>z("scans.module.desc")));D(t,{get title(){return e.get(f)},get desc(){return e.get(_)},get loading(){return e.get(d)},cssCls:"scn",settingsHash:"#settings/scans",backHash:"#security",get learnMore(){return Fn.learnMore},$$slots:{"page-breadcrumbs":(t,s)=>{var n=Wn(),a=e.child(n);$(a,{get section(){return Fn.breadcrumbs.section},get moduleId(){return Fn.breadcrumbs.moduleId},get subsections(){return Fn.breadcrumbs.subsections}}),e.reset(n),e.append(t,n)},"page-content":(t,s)=>{var n=On(),a=e.child(n);A(a,{tabs:l,get selectedTabId(){return e.get(c)},hashPath:"#antivirus/scans",$$events:{tabClick:m}}),e.reset(n),e.append(t,n)}}}),e.pop()}const Mn="global.cancel";var Bn=e.template('<div class="g-margin-top--1x"><kin-tooltip><div slot="tooltip-activator"> </div> <div slot="tooltip"> </div></kin-tooltip></div>',2),zn=e.template('<div class="p"> </div> <!> <div class="modal__footer g-margin-top--3x"><kin-button> </kin-button> <kin-button> </kin-button></div>',3);kt(".scn_threat_loading.svelte-oufrm8 {\n  transform: scale(0.8);\n  position: relative;\n  width: 2.4rem;\n  left: -0.5rem;\n}\n");const Un={pathColumnLabel:"viruschest.tableHeader.infectedFile",statusColumnLabel:"",secondaryColumnsSmall:!1,tooltipSize:null,disabledOnResolving:!0,scrollRootSelector:".sve_page__scroll"};e.template('<div class="g-margin-top--4x"><kin-progress></kin-progress></div>',2);var qn=e.template('<kin-tooltip><div slot="tooltip-activator"><kin-icon></kin-icon></div> <div slot="tooltip" class="p -small"> </div></kin-tooltip>',2);e.template('<span class="scn_threat_loading svelte-oufrm8"><kin-loading></kin-loading></span>',2);var Vn=e.template("<kin-icon></kin-icon>",2),jn=e.template("<kin-icon></kin-icon>",2),Hn=e.template("<kin-icon></kin-icon>",2),Gn=e.template('<span class="spinner -tiny g-margin-right--half"></span>'),Kn=e.template('<div class="kin_table__end"><p class="p text -secondary"><!> </p></div>'),Zn=e.template('<div class="kin_table__end"><kin-tooltip><div slot="tooltip-activator"> </div> <div slot="tooltip"> </div></kin-tooltip></div>',2),Yn=e.template('<div class="kin_table__end"><kin-tooltip><div slot="tooltip-activator"><kin-icon></kin-icon></div> <div slot="tooltip" class="p -small"> </div></kin-tooltip></div>',2),Jn=e.template('<div class="kin_table__end"><kin-tooltip><div slot="tooltip-activator"><kin-icon></kin-icon></div> <div slot="tooltip" class="p -small"> </div></kin-tooltip></div>',2),Xn=e.template("<div><kin-dropdown><kin-button><kin-icon></kin-icon></kin-button> <kin-dropdown-item> </kin-dropdown-item></kin-dropdown></div>",2),Qn=e.template('<div role="row"><label><div class="kin_table__checkbox"><input class="checkbox" type="checkbox"></div> <div class="kin_table__icon"><!></div> <div class="kin_table__name g-ltr"><kin-tooltip><div slot="tooltip-activator"> </div> <div slot="tooltip"> </div></kin-tooltip></div></label> <div class="g-ltr"><kin-tooltip><div slot="tooltip-activator"> </div> <div slot="tooltip"> </div></kin-tooltip></div> <!></div>',2),ea=e.template('<kin-table><div slot="table-header" role="row" class="kin_table__header scn_table__header -threatslist"><div class="kin_table__checkbox"><input type="checkbox"></div> <div> </div> <div> </div> <div class="kin_table__end"> </div></div> <div slot="table-body"></div></kin-table>',2),ta=e.template("<div><!></div> <!>",1);function sa(t,s){e.push(s,!1);const[a,i]=e.setup_stores(),o=()=>e.store_get(v,"$threats",a),l=()=>e.store_get(k,"$allResolved",a),r=()=>e.store_get(T,"$threatsCounts",a),c=()=>e.store_get(w,"$selectedThreatsIds",a),d=()=>e.store_get(x,"$resolving",a),u=()=>e.store_get(D,"$ssThreats",a),p=()=>e.store_get(b,"$exceptions",a),m=e.mutable_source(),h=e.mutable_source();let g=e.prop(s,"threatsManager",8),f=e.prop(s,"disableAddingException",8,!1);const _=g().deselectAllThreats.bind(g()),{threats:v,exceptions:b,selectedThreatsIds:w,loading:y,resolving:x,progress:S,allResolved:k,threatsCounts:T}=g(),I=new ae(o()),D=I.getItems();let A=e.mutable_source();function $(e){d()||(e.target.checked?g().selectAllThreats():g().deselectAllThreats())}window.addEventListener("kin-deselectAll",_),n((()=>window.removeEventListener("kin-deselectAll",_))),e.legacy_pre_effect((()=>o()),(()=>{I.update(o())})),e.legacy_pre_effect((()=>(l(),r(),c())),(()=>{e.set(m,l()||r().selectable===c().length&&c().length)})),e.legacy_pre_effect((()=>(l(),r(),c())),(()=>{e.set(h,!l()&&r().selectable!==c().length&&c().length?"mixed":"")})),e.legacy_pre_effect_reset(),e.init();var P=ta(),R=e.first_child(P),N=e.child(R),E=t=>{var s=ea();e.template_effect((()=>e.set_custom_element_data(s,"datalength",o().length))),e.template_effect((()=>e.set_custom_element_data(s,"selecteditems",c().length||o().length))),e.template_effect((()=>e.set_custom_element_data(s,"inactive",d()&&Un.disabledOnResolving))),e.template_effect((()=>e.set_custom_element_data(s,"loading",e.store_get(y,"$loading",a)))),e.template_effect((()=>e.set_custom_element_data(s,"scrollRootSelector",Un.scrollRootSelector))),e.set_custom_element_data(s,"dataname","scan_result_threats_list");var n=e.child(s),i=e.child(n),_=e.child(i);let v;e.remove_input_defaults(_),e.reset(i);var b=e.sibling(i,2),w=e.child(b,!0);e.reset(b);var x=e.sibling(b,2),S=e.child(x,!0);e.reset(x);var k=e.sibling(x,2),T=e.child(k,!0);e.reset(k),e.reset(n);var C=e.sibling(n,2);e.each(C,5,u,e.index,((t,s,n)=>{var a=Qn();let i;e.set_attribute(a,"data-test",`table-row-${n}`),e.set_attribute(a,"aria-rowindex",n);var o=e.child(a),l=e.child(o),r=e.child(l);e.remove_input_defaults(r),e.set_attribute(r,"id",`scn-threatlist-item-${n}`),e.reset(l);var u=e.sibling(l,2),m=e.child(u),h=t=>{var s=qn();e.template_effect((()=>e.set_custom_element_data(s,"size",Un.tooltipSize)));var n=e.child(s),a=e.child(n);e.set_custom_element_data(a,"name","icon-m-virus"),e.set_custom_element_data(a,"badge","badge-attention"),e.set_custom_element_data(a,"size","28"),e.reset(n);var i=e.sibling(n,2),o=e.child(i,!0);e.reset(i),e.reset(s),e.template_effect((t=>e.set_text(o,t)),[()=>z("scans.result.exception.tooltip")],e.derived_safe_equal),e.append(t,s)},_=t=>{var n=e.comment(),a=e.first_child(n),i=t=>{var n=e.comment(),a=e.first_child(n),i=t=>{var s=Vn();e.set_custom_element_data(s,"name","icon-m-virus"),e.set_custom_element_data(s,"badge","badge-ok"),e.set_custom_element_data(s,"size","28"),e.append(t,s)},o=(t,n)=>{var a=t=>{var s=jn();e.set_custom_element_data(s,"name","icon-m-virus"),e.set_custom_element_data(s,"badge","badge-attention"),e.set_custom_element_data(s,"size","28"),e.append(t,s)},i=t=>{var s=Hn();e.set_custom_element_data(s,"name","icon-m-virus"),e.set_custom_element_data(s,"badge","badge-critical"),e.set_custom_element_data(s,"size","28"),e.append(t,s)};e.if(t,(t=>{"warning"===e.get(s).statusCode?t(a):t(i,!1)}),n)};e.if(a,(t=>{"ok"===e.get(s).statusCode?t(i):t(o,!1)})),e.append(t,n)};e.if(a,(e=>{e(i,!1)})),e.append(t,n)};e.if(m,(t=>{p().includes(e.get(s).path)?t(h):t(_,!1)})),e.reset(u);var v=e.sibling(u,2),b=e.child(v);e.set_custom_element_data(b,"ellipsis","true"),e.template_effect((()=>e.set_custom_element_data(b,"size",Un.tooltipSize)));var w=e.child(b),y=e.child(w,!0);e.reset(w);var x=e.sibling(w,2),S=e.child(x,!0);e.reset(x),e.reset(b),e.reset(v),e.reset(o);var k=e.sibling(o,2),T=e.child(k);e.set_custom_element_data(T,"ellipsis","true"),e.template_effect((()=>e.set_custom_element_data(T,"size",Un.tooltipSize)));var C=e.child(T);let I;var D=e.child(C,!0);e.reset(C);var $=e.sibling(C,2),P=e.child($,!0);e.reset($),e.reset(T),e.reset(k);var R=e.sibling(k,2),N=t=>{var s=Kn(),n=e.child(s),a=e.child(n),i=t=>{var s=Gn();e.append(t,s)};e.if(a,(e=>{e(i)}));var o=e.sibling(a);e.reset(n),e.reset(s),e.template_effect((t=>e.set_text(o,` ${t??""}`)),[()=>z("global.resolvingEllipsis")],e.derived_safe_equal),e.append(t,s)},E=(t,a)=>{var i=t=>{var n=Zn(),a=e.child(n);e.set_custom_element_data(a,"ellipsis","true"),e.template_effect((()=>e.set_custom_element_data(a,"size",Un.tooltipSize)));var i=e.child(a);let o;var l=e.child(i,!0);e.reset(i);var r=e.sibling(i,2),c=e.child(r,!0);e.reset(r),e.reset(a),e.reset(n),e.template_effect(((t,s,n)=>{o=e.set_class(i,1,e.clsx("color-ok -text"),null,o,t),e.set_text(l,s),e.set_text(c,n)}),[()=>({"-small":Un.secondaryColumnsSmall}),()=>z("detection.status."+e.get(s).action),()=>z("detection.status."+e.get(s).action)],e.derived_safe_equal),e.append(t,n)},o=(t,a)=>{var i=t=>{var s=Yn(),a=e.child(s);e.template_effect((()=>e.set_custom_element_data(a,"size",Un.tooltipSize)));var i=e.child(a),o=e.child(i);e.set_custom_element_data(o,"name","icon-m-action-info"),e.set_custom_element_data(o,"size","20"),e.set_custom_element_data(o,"id",`error-tooltip-${n}`),e.reset(i);var l=e.sibling(i,2),r=e.child(l,!0);e.reset(l),e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(r,t)),[()=>z("scans.statusDetail.postponedUntilNextReboot")],e.derived_safe_equal),e.append(t,s)},o=(t,a)=>{var i=t=>{var s=Jn(),a=e.child(s);e.template_effect((()=>e.set_custom_element_data(a,"size",Un.tooltipSize)));var i=e.child(a),o=e.child(i);e.set_custom_element_data(o,"name","icon-m-action-info"),e.set_custom_element_data(o,"size","20"),e.set_custom_element_data(o,"id",`error-tooltip-${n}`),e.reset(i);var l=e.sibling(i,2),r=e.child(l,!0);e.reset(l),e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(r,t)),[()=>z("detection.status.resolved.error.tooltip")],e.derived_safe_equal),e.append(t,s)},o=(t,n)=>{var a=t=>{var n=Xn(),a=e.child(n),i=e.child(a);e.set_custom_element_data(i,"slot","dropdown-activator"),e.set_custom_element_data(i,"icononly",!0),e.set_custom_element_data(i,"type","blank"),e.set_custom_element_data(i,"size","tiny"),e.template_effect((()=>e.set_custom_element_data(i,"aria-label",z("global.moreOptions"))));var o=e.child(i);e.set_custom_element_data(o,"name","icon-s-controls-menu-more"),e.set_custom_element_data(o,"size","14"),e.reset(i);var l=e.sibling(i,2);e.template_effect((()=>e.set_custom_element_data(l,"aria-label",z("scans.result.exception.create"))));var r=e.child(l,!0);e.reset(l),e.reset(a),e.reset(n),e.template_effect((t=>{e.set_class(n,1,e.clsx("kin_table__end")),e.set_text(r,t)}),[()=>z("scans.result.exception.create")],e.derived_safe_equal),e.event("click",l,(()=>e.set(A,e.get(s)))),e.append(t,n)};e.if(t,(t=>{p().includes(e.get(s).path)||f()||t(a)}),n)};e.if(t,(t=>{"err"===e.get(s).statusCode||"warning"===e.get(s).statusCode?t(i):t(o,!1)}),a)};e.if(t,(t=>{"warning"===e.get(s).statusCode&&"postponed_to_next_reboot"===e.get(s).statusDetail?t(i):t(o,!1)}),a)};e.if(t,(t=>{"ok"===e.get(s).statusCode?t(i):t(o,!1)}),a)};e.if(R,(t=>{d()&&c().includes(e.get(s).id)?t(N):t(E,!1)})),e.reset(a),e.template_effect(((t,n,o,l,c)=>{i=e.set_class(a,1,"kin_table__row scn_table__row -threatslist",null,i,t),e.set_checked(r,n),r.disabled=o,e.set_attribute(r,"aria-label",l),e.set_text(y,e.get(s).threat),e.set_text(S,e.get(s).threat),I=e.set_class(C,1,"g-ltr",null,I,c),e.set_text(D,e.get(s).path),e.set_text(P,e.get(s).path)}),[()=>({"-selected":c().includes(e.get(s).id)||"ok"===e.get(s).statusCode,"-disabled":["ok","warning","err"].includes(e.get(s).statusCode)}),()=>c().includes(e.get(s).id)||"ok"===e.get(s).statusCode,()=>e.get(s).statusCode||p().includes(e.get(s).path)||d(),()=>z("global.selectItem"),()=>({p:Un.secondaryColumnsSmall,"-small":Un.secondaryColumnsSmall})],e.derived_safe_equal),e.event("click",r,(t=>function(e,t){d()||(e.target.checked?g().selectThreat(t):g().deselectThreat(t))}(t,e.get(s)))),e.append(t,a)})),e.reset(C),e.reset(s),e.action(s,(e=>{return t=e,void I.init(t);var t})),e.template_effect(((t,s,n,a,i)=>{v=e.set_class(_,1,"checkbox",null,v,t),e.set_attribute(_,"aria-checked",e.get(h)),_.disabled=0===r().selectable.length||l()||d(),e.set_checked(_,l()||c().length>0),e.set_attribute(_,"aria-label",s),e.set_text(w,n),e.set_text(S,a),e.set_text(T,i)}),[()=>({"-checked":e.get(m)}),()=>z("global.selectAllItems"),()=>z("scans.threatName"),()=>z(Un.pathColumnLabel),()=>z(Un.statusColumnLabel)],e.derived_safe_equal),e.event("click",_,$),e.append(t,s)};e.if(N,(e=>{e(E,!1)})),e.reset(R);var F=e.sibling(R,2),W=t=>{!function(t,s){e.push(s,!1);let n=e.prop(s,"threatsManager",8),a=e.prop(s,"threat",8),i=e.prop(s,"onClose",8),o=e.prop(s,"onExceptionAdded",8,null);async function l(){J.click("Results","click","Create exception","Scans",{a1:1}),await n().addException(a()),o()?.()}e.init();const r=e.derived_safe_equal((()=>z("scans.result.exception.modal.title")));C(t,{get title(){return e.get(r)},get onClose(){return i()},children:(t,s)=>{var n=zn(),o=e.first_child(n),r=e.child(o,!0);e.reset(o);var c=e.sibling(o,2),d=t=>{var s=Bn(),n=e.child(s);e.set_custom_element_data(n,"ellipsis","true");var i=e.child(n),o=e.child(i,!0);e.reset(i);var l=e.sibling(i,2),r=e.child(l,!0);e.reset(l),e.reset(n),e.reset(s),e.template_effect((()=>{e.set_text(o,a().path),e.set_text(r,a().path)})),e.append(t,s)};e.if(c,(e=>{e(d)}));var u=e.sibling(c,2),p=e.child(u),m=e.child(p,!0);e.reset(p);var h=e.sibling(p,2);e.set_custom_element_data(h,"type","secondary"),e.set_class(h,1,"g-margin-left--1x");var g=e.child(h,!0);e.reset(h),e.reset(u),e.template_effect(((t,s,n)=>{e.set_text(r,t),e.set_text(m,s),e.set_text(g,n)}),[()=>z("scans.result.exception.modal.desc"),()=>z("scans.result.exception.modal.add"),()=>z(Mn)],e.derived_safe_equal),e.event("click",p,l),e.event("click",h,(()=>i()())),e.append(t,n)},$$slots:{default:!0}}),e.pop()}(t,{get threatsManager(){return g()},get threat(){return e.get(A)},onExceptionAdded:()=>e.set(A,null),onClose:()=>e.set(A,null)})};e.if(F,(t=>{e.get(A)&&t(W)})),e.template_effect((()=>e.set_class(R,1,e.clsx(Un.wrapCssCls),"svelte-oufrm8"))),e.append(t,P),e.pop(),i()}kt(".scn_page-actions__resolvebtn.svelte-1v2qye9 {\n  max-width: 22rem;\n}\n");const na="global.resolveSelected",aa="global.maybeLater",ia=!1;var oa=e.template('<div slot="page-actions-progress"><h4 class="h4"> </h4></div>'),la=e.template("<kin-button> </kin-button> <kin-button> </kin-button>",3),ra=e.template("<kin-button><!></kin-button>",2),ca=e.template("<kin-button> </kin-button>",2),da=e.template("<kin-dropdown-item> </kin-dropdown-item>",2),ua=e.template('<kin-dropdown><div slot="dropdown-activator"><kin-button><kin-icon></kin-icon></kin-button></div> <div></div></kin-dropdown>',2),pa=e.template("<kin-button><span><!></span></kin-button> <!>",3),ma=e.template("<kin-button> </kin-button>",2),ha=e.template('<button class="a sve_page__actions__skip" data-test="scn_progress_skipBtn"> </button> <!>',1),ga=e.template('<div slot="page-actions-cta"><!> <!></div>');e.template("<span> </span> ",1);var fa=e.template("<p><!></p> <p> </p>",1);e.template("<span> </span> ",1),e.template("<p><!></p> <p> </p>",1),e.template("<span> </span> ",1);var _a=e.template("<p><!></p> <p> </p>",1),va=e.template('<div slot="page-actions-desc"><!></div>');function ba(t,s){e.push(s,!1);const[n,a]=e.setup_stores(),i=()=>e.store_get(v,"$resolving",n),o=()=>e.store_get(S,"$threatsCounts",n),l=()=>e.store_get(w,"$selectableThreats",n),r=()=>e.store_get(x,"$allResolved",n),c=()=>e.store_get(y,"$selectedThreatsIds",n),d=e.mutable_source();let u=e.prop(s,"threatsManager",8),p=e.prop(s,"showActions",8,!1),m=e.prop(s,"cta",8),h=e.prop(s,"showStatusColor",8,!1),g=e.prop(s,"onSkip",8),f=e.prop(s,"onResolved",8);const{loading:_,resolving:v,progress:b,selectableThreats:w,selectedThreatsIds:y,allResolved:x,threatsCounts:S}=u();let k=e.mutable_source();function T(e,t){switch(e){case"skip":g()(t);break;case"resolved":f()(t)}}e.legacy_pre_effect((()=>(e.deep_read_state(h()),i(),o(),l())),(()=>{h()?i()?e.set(k,"progress"):o().error>0||l().length>0?e.set(k,"critical"):e.set(k,"ok"):e.set(k,null)})),e.legacy_pre_effect((()=>(r(),c(),e.deep_read_state(p()))),(()=>{e.set(d,r()||!c().length||!p())})),e.legacy_pre_effect_reset(),e.init();var C=e.comment(),I=e.first_child(C),D=t=>{const s=e.derived_safe_equal((()=>i()?e.store_get(b,"$progress",n):null));P(t,{get progress(){return e.get(s)},get status(){return e.get(k)},$$slots:{"page-actions-progress":(t,s)=>{var n=oa(),a=e.child(n),i=e.child(a,!0);e.reset(a),e.reset(n),e.template_effect((t=>e.set_text(i,t)),[()=>z("scans.ss2.resolveInProgress.desc",c().length)],e.derived_safe_equal),e.append(t,n)},"page-actions-cta":(t,s)=>{var n=ga(),a=e.child(n),i=t=>{var s=la(),n=e.first_child(s);e.set_custom_element_data(n,"data-test","scn_progress_restartBtn");var a=e.child(n,!0);e.reset(n);var i=e.sibling(n,2);e.set_custom_element_data(i,"type","secondary"),e.set_class(i,1,"sve_page__actions__later"),e.set_custom_element_data(i,"data-test","scn_progress_skipBtn");var o=e.child(i,!0);e.reset(i),e.template_effect(((t,s)=>{e.set_text(a,t),e.set_text(o,s)}),[()=>z("global.restartNow"),()=>z(aa)],e.derived_safe_equal),e.event("click",n,(()=>T("resolved"))),e.event("click",i,(()=>T("skip",!1))),e.append(t,s)},l=(t,s)=>{var n=t=>{var s=ra();e.set_custom_element_data(s,"data-test","scn_progress_doneBtn");var n=e.child(s),a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.boottime.winRe.reboot.btn")],e.derived_safe_equal),e.append(t,s)},i=(t,s)=>{var n=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("global.done")],e.derived_safe_equal),e.append(t,s)},a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("global.next")],e.derived_safe_equal),e.append(t,s)};e.if(t,(e=>{"done"===m()?e(n):e(a,!1)}),s)};e.if(n,(e=>{"forceWinReRestart"===m()?e(a):e(i,!1)})),e.reset(s),e.event("click",s,(()=>T("resolved"))),e.append(t,s)},a=(t,s)=>{var n=t=>{var s=ca();e.set_custom_element_data(s,"data-test","scn_table_mainCTA");var n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("global.selectAll")],e.derived_safe_equal),e.event("click",s,(()=>u().selectAllThreats())),e.append(t,s)},a=t=>{var s=pa(),n=e.first_child(s);e.set_class(n,1,"scn_page-actions__resolvebtn svelte-1v2qye9"),e.set_custom_element_data(n,"data-test","scn_table_mainCTA");var a=e.child(n),i=e.child(a),l=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("global.resolveAll")],e.derived_safe_equal),e.append(t,s)},r=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z(na)],e.derived_safe_equal),e.append(t,s)};e.if(i,(e=>{o().selectable===c().length?e(l):e(r,!1)})),e.reset(a),e.reset(n);var d=e.sibling(n,2),m=t=>{var s=ua();e.set_class(s,1,"g-margin-left--1x");var n=e.child(s),a=e.child(n);e.set_custom_element_data(a,"type","secondary"),e.set_custom_element_data(a,"icononly","true");var i=e.child(a);e.set_custom_element_data(i,"name","icon-s-controls-menu-more"),e.set_custom_element_data(i,"size","16"),e.reset(a),e.reset(n);var o=e.sibling(n,2);e.each(o,5,(()=>Ne),e.index,((t,s)=>{var n=e.comment(),a=e.first_child(n),i=t=>{var n=da();e.template_effect((()=>e.set_custom_element_data(n,"data-test",`scn_action-${e.get(s)??""}`)));var a=e.child(n,!0);e.reset(n),e.template_effect((t=>e.set_text(a,t)),[()=>z("scans.threatAction."+e.get(s))],e.derived_safe_equal),e.event("click",n,(()=>u().doAction(e.get(s)))),e.append(t,n)};e.if(a,(t=>{"auto"!==e.get(s)&&"nothing"!=e.get(s)&&t(i)})),e.append(t,n)})),e.reset(o),e.reset(s),e.append(t,s)};e.if(d,(e=>{p()&&e(m)})),e.event("click",n,(()=>u().doAction("auto"))),e.append(t,s)};e.if(t,(e=>{0===c().length?e(n):e(a,!1)}),s)};e.if(t,(e=>{r()?e(n):e(a,!1)}),s)};e.if(a,(e=>{r()&&o().needReboot?e(i):e(l,!1)}));var h=e.sibling(a,2),g=t=>{var s=ha(),n=e.first_child(s),a=e.child(n,!0);e.reset(n);var i=e.sibling(n,2),o=t=>{var s=ma();e.set_custom_element_data(s,"type","secondary"),e.set_class(s,1,"sve_page__actions__later"),e.set_custom_element_data(s,"data-test","scn_progress_skipBtn");var n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z(aa)],e.derived_safe_equal),e.event("click",s,(()=>T("skip",!0))),e.append(t,s)};e.if(i,(t=>{e.get(d)&&t(o)})),e.template_effect((t=>e.set_text(a,t)),[()=>z("global.skipForNow")],e.derived_safe_equal),e.event("click",n,(()=>T("skip",!0))),e.append(t,s)};e.if(h,(e=>{r()||e(g)})),e.reset(n),e.append(t,n)},"page-actions-desc":(t,s)=>{var n=va(),a=e.child(n),i=t=>{var s=fa(),n=e.first_child(s),a=e.child(n),i=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.threatsNeedReboot",o().needReboot)],e.derived_safe_equal),e.append(t,s)};e.if(a,(e=>{e(i,!1)})),e.reset(n);var l=e.sibling(n,2),r=e.child(l,!0);e.reset(l),e.template_effect((t=>e.set_text(r,t)),[()=>z("scans.threatsNeedReboot.desc")],e.derived_safe_equal),e.append(t,s)},l=(t,s)=>{var n=(t,s)=>{var n=t=>{var s=_a(),n=e.first_child(s),a=e.child(n),i=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("viruschest.threatsSelected",c().length)],e.derived_safe_equal),e.append(t,s)};e.if(a,(e=>{e(i,!1)})),e.reset(n);var o=e.sibling(n,2),l=e.child(o,!0);e.reset(o),e.template_effect((t=>e.set_text(l,t)),[()=>z("scans.threatsSelected.desc")],e.derived_safe_equal),e.append(t,s)};e.if(t,(e=>{r()||e(n)}),s)};e.if(t,(e=>{r()&&ia||e(n,!1)}),s)};e.if(a,(e=>{r()&&o().needReboot?e(i):e(l,!1)})),e.reset(n),e.append(t,n)}}})};e.if(I,(t=>{e.store_get(_,"$loading",n)||t(D)})),e.append(t,C),e.pop(),a()}var wa=e.template('<div class="smart-text-trim"><span></span> <div class="ellipsis-elm"> </div></div>');function ya(t,s){e.push(s,!1);const n="100%",a=/^\d+(px|%)?$/,i=/^\d+$/i;let o,l,r,c=e.prop(s,"text",8,""),d=e.prop(s,"width",12,""),u=e.prop(s,"ellipsisInMiddle",8,!1),p=e.mutable_source(""),m=e.mutable_source(""),h=e.mutable_source(!1);function g(){var t;(t=l).offsetWidth<t.scrollWidth||u()?(o.classList.add("-ellipsis-active"),l.style.display="none",r.style.display="block",function(){try{const t=Math.floor(c().length/2);e.set(p,c().substr(0,t)),e.set(m,function(e){if(e){const t=function(e){const t={"(":")",")":"(","[":"]","]":"[","{":"}","}":"{","<":">",">":"<"};return void 0!==t[e]?t[e]:e};return e.split("").reverse().map(t).join("")}return""}(c().substr(t)))}catch(t){e.set(p,""),e.set(m,""),console.error("SmartTextTrim failed on splitText, error:",t)}}()):(o.classList.remove("-ellipsis-active"),l.style.display="block",r.style.display="none")}a.test(d())?i.test(d())&&d(d()+"px"):(console.info("SmartTextTrim was initialized with nonInteger value:",d(),"setting to default value:",n),d(n)),e.legacy_pre_effect((()=>(e.get(h),e.deep_read_state(c()))),(()=>{e.get(h)&&c()&&g()})),e.legacy_pre_effect_reset(),e.init();var f=wa(),_=e.child(f),v=e.sibling(_,2),b=e.child(v,!0);e.reset(v),e.reset(f),e.action(f,(t=>{return o=s=t,l=s.querySelector(".ellipsis-elm"),r=s.querySelector("span"),void e.set(h,!0);var s})),e.template_effect((()=>{e.set_style(f,`width: ${d()??""}`),e.set_attribute(_,"data-content-start",e.get(p)),e.set_attribute(_,"data-content-end",e.get(m)),e.set_text(b,c())})),e.append(t,f),e.pop()}var xa=(e,t)=>t.scanManager.setShutDownMachine(e.target.checked),Sa=e.template('<input id="tempShutDownMachine" type="checkbox" class="checkbox"> <label for="tempShutDownMachine" class="span -secondary -small g-align--left g-margin-left--half"> </label>',1);function ka(t,s){e.push(s,!0);const[n,a]=e.setup_stores(),i=()=>e.store_get(d,"$scanType",n),o=()=>e.store_get(c,"$shutDownMachineOn",n),{lastScanned:l,scanProgress:r,shutDownMachineOn:c,scanType:d,scanLabel:u}=s.scanManager,p=e.derived((()=>"custom"===i()||"quick"===i()||"menu"===i()?z("scans.runningScan",e.store_get(u,"$scanLabel",n)):z("scans.scanType."+i()+".caption"))),m=e.derived((()=>({label:z("global.stopScan"),dataTest:"scn_progress_stopBtn",action:()=>s.scanManager.stopScan()})));{const a=t=>{ya(t,{get text(){return e.store_get(l,"$lastScanned",n)},width:"75%"})},i=t=>{var n=e.comment(),a=e.first_child(n),i=t=>{var n=Sa(),a=e.first_child(n);e.remove_input_defaults(a),a.__change=[xa,s];var i=e.sibling(a,2),l=e.child(i,!0);e.reset(i),e.template_effect((t=>{e.set_checked(a,o()),e.set_text(l,t)}),[()=>z("scans.settings.shutDownAfterScan")]),e.append(t,n)};e.if(a,(e=>{null!=o()&&e(i)})),e.append(t,n)};R(t,{illustration:"i-s-093",get progress(){return e.store_get(r,"$scanProgress",n)},get cancelBtn(){return e.get(m)},get desc(){return e.get(p)},progressLabelSlot:a,footnoteSlot:i,$$slots:{progressLabelSlot:!0,footnoteSlot:!0}})}e.pop(),a()}e.delegate(["change"]);const Ta={iconSize:96,titleTag:"h1",subtitleSecondary:!1},Ca="-center-header",Ia="#scans";var Da=e.template('<div slot="page-content" class="kin_scan -has-actions"><div class="kin_scan__result"><kin-icon></kin-icon> <!> <p><!></p></div> <div class="kin_scan__actions"><kin-button> </kin-button></div></div>',2),Aa=e.template('<div slot="page-desc"><!></div>'),$a=e.template('<div slot="page-content" class="kin_scan"><div class="kin_scan__result"><kin-icon></kin-icon> <h1 class="h2 kin_scan__title"> </h1> <p class="kin_scan__subtitle"> </p></div> <div class="kin_scan__actions"><kin-button> </kin-button> <kin-button> </kin-button></div></div>',2),Pa=e.template('<div slot="modal-footer"><kin-button> </kin-button> <kin-button> </kin-button></div>',2),Ra=e.template('<div slot="modal-footer"><kin-button> </kin-button> <kin-button> </kin-button></div>',2),Na=e.template("<!> <!>",1);function Ea(t,s){e.push(s,!1);const[a,i]=e.setup_stores(),o=()=>e.store_get(h,"$pageStatus",a),l=()=>e.store_get(v,"$threatsCounts",a),r=()=>e.store_get(g,"$scanLabel",a),c=()=>e.store_get(y,"$threatsLoading",a);let d=e.prop(s,"scanManager",8),u=e.prop(s,"title",8),p=e.prop(s,"titleSanitized",8,!1),m=e.prop(s,"onRefreshFocus",8);const{pageStatus:h,scanLabel:g,scanProgress:f,threatsManager:_}=d(),{threatsCounts:v,hasScanErrors:b,allResolved:w}=_,y=_.loading,x={action:()=>async function(){"scanning"===o()?I():l().selectable?e.set(S,"confirmLeaveModal"):(I(),await d().done())}()};let S=e.mutable_source(),k=e.mutable_source();async function T(e=!0){await d().done(),e&&await hs(),I()}function I(){window.location.hash=Ia}function A(t=!0){e.set(S,"confirmSkipModal"),e.set(k,t)}function P(){e.set(S,null)}d().init().catch((()=>I())),d().on("startFailed",I),n((()=>d().destroy())),e.legacy_pre_effect((()=>(o(),e.deep_read_state(m()))),(()=>{o()&&m()()})),e.legacy_pre_effect_reset(),e.init();const R=e.derived_safe_equal((()=>"canceled"!==o()?u():"")),E=e.derived_safe_equal((()=>"scanning"===o()?Ca:"")),F=e.derived_safe_equal((()=>"loading"===o()));D(t,{get title(){return e.get(R)},get titleSanitized(){return p()},get cssCls(){return e.get(E)},get loading(){return e.get(F)},backHandler:x,children:(t,s)=>{var n=e.comment(),i=e.first_child(n),r=t=>{var s=e.comment(),n=e.first_child(s),i=e=>{ka(e,{get scanManager(){return d()}})};e.if(n,(t=>{e.store_get(f,"$scanProgress",a)<100&&t(i)})),e.append(t,s)},u=(t,s)=>{var n=t=>{var s=e.comment(),n=e.first_child(s),i=t=>{N(t,{$$slots:{"page-content":(t,s)=>{var n=Da(),i=e.child(n),o=e.child(i);e.set_custom_element_data(o,"name","circle-ok"),e.set_class(o,1,"kin_scan__icon"),e.template_effect((()=>e.set_custom_element_data(o,"size",Ta.iconSize)));var l=e.sibling(o,2);e.element(l,(()=>Ta.titleTag),!1,((t,s)=>{let n;e.template_effect((()=>n=e.set_attributes(t,n,{class:`${Ta.titleTag} kin_scan__title`})));var a=e.comment(),i=e.first_child(a);e.html(i,(()=>z("scans.ss2.noIssues.title"))),e.append(s,a)}));var r=e.sibling(l,2);let c;var d=e.child(r),u=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.noIssues.subtitleWithErrors")],e.derived_safe_equal),e.append(t,s)},p=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.noIssues.subtitle")],e.derived_safe_equal),e.append(t,s)};e.if(d,(t=>{e.store_get(b,"$hasScanErrors",a)?t(u):t(p,!1)})),e.reset(r),e.reset(i);var m=e.sibling(i,2),h=e.child(m);e.set_custom_element_data(h,"data-test","scn_progress_doneBtn"),e.template_effect((()=>e.set_custom_element_data(h,"size",void 0)));var g=e.child(h,!0);e.reset(h),e.reset(m),e.reset(n),e.template_effect(((t,s)=>{c=e.set_class(r,1,"kin_scan__subtitle",null,c,t),e.set_text(g,s)}),[()=>({p:Ta.subtitleSecondary,"-secondary":Ta.subtitleSecondary}),()=>z("global.done")],e.derived_safe_equal),e.event("click",h,T),e.append(t,n)}}})},o=t=>{N(t,{actionbarVisible:!0,$$slots:{"page-desc":(t,s)=>{var n=Aa(),i=e.child(n),o=t=>{var s=e.comment(),n=e.first_child(s),i=t=>{var s=e.comment(),n=e.first_child(s),a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.resolvedWithError.subtitle",l().error)],e.derived_safe_equal),e.append(t,s)},i=(t,s)=>{var n=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.postponedUntilNextReboot.subtitle")],e.derived_safe_equal),e.append(t,s)},a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.allResolved.subtitle")],e.derived_safe_equal),e.append(t,s)};e.if(t,(e=>{l().needReboot?e(n):e(a,!1)}),s)};e.if(n,(e=>{l().error?e(a):e(i,!1)})),e.append(t,s)},o=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.results.subtitle")],e.derived_safe_equal),e.append(t,s)};e.if(n,(t=>{e.store_get(w,"$allResolved",a)?t(i):t(o,!1)})),e.append(t,s)};e.if(i,(e=>{c()||e(o)})),e.reset(n),e.append(t,n)},"page-content":(e,t)=>{sa(e,{threatsManager:_})},"page-actions":(e,t)=>{ba(e,{threatsManager:_,cta:"done",onResolved:()=>T(),onSkip:A})}}})};e.if(n,(e=>{c()||l().all?e(o,!1):e(i)})),e.append(t,s)},i=(t,s)=>{var n=t=>{N(t,{$$slots:{"page-content":(t,s)=>{var n=$a(),a=e.child(n),i=e.child(a);e.set_custom_element_data(i,"name","circle-critical"),e.set_class(i,1,"kin_scan__icon"),e.set_custom_element_data(i,"size","96");var o=e.sibling(i,2),l=e.child(o,!0);e.reset(o);var r=e.sibling(o,2),c=e.child(r,!0);e.reset(r),e.reset(a);var u=e.sibling(a,2),p=e.child(u);e.set_custom_element_data(p,"data-test","scn_progress_scanAgainBtn");var m=e.child(p,!0);e.reset(p);var h=e.sibling(p,2);e.set_custom_element_data(h,"type","secondary"),e.set_class(h,1,"g-margin-left--1x"),e.set_custom_element_data(h,"data-test","scn_progress_doneBtn");var g=e.child(h,!0);e.reset(h),e.reset(u),e.reset(n),e.template_effect(((t,s,n,a)=>{e.set_text(l,t),e.set_text(c,s),e.set_text(m,n),e.set_text(g,a)}),[()=>z("scans.scanStopped.title"),()=>z("scans.scanStopped.subtitle"),()=>z("smartscan.ss2.scanStopped.scanAgain"),()=>z("global.goBack")],e.derived_safe_equal),e.event("click",p,(()=>d().startScan())),e.event("click",h,T),e.append(t,n)}}})};e.if(t,(e=>{"canceled"===o()&&e(n)}),s)};e.if(t,(e=>{"report"===o()?e(n):e(i,!1)}),s)};e.if(i,(e=>{"scanning"===o()?e(r):e(u,!1)})),e.append(t,n)},$$slots:{default:!0,"page-breadcrumbs":(t,s)=>{var n=e.comment(),a=e.first_child(n),i=t=>{const s=e.derived_safe_equal((()=>r()&&[{title:r()}]));$(t,{section:"security",moduleId:"scans",get subsections(){return e.get(s)}})};e.if(a,(e=>{["loading","scanning"].includes(o())||e(i)})),e.append(t,n)},"page-modals":(t,s)=>{var n=Na(),a=e.first_child(n),i=t=>{const s=e.derived_safe_equal((()=>z("scans.leaveModal.title"))),n=e.derived_safe_equal((()=>z("scans.leaveModal.desc")));C(t,{get title(){return e.get(s)},get subtitle(){return e.get(n)},$$events:{close:P},$$slots:{"modal-footer":(t,s)=>{var n=Pa(),a=e.child(n);e.set_custom_element_data(a,"type","critical");var i=e.child(a,!0);e.reset(a);var o=e.sibling(a,2);e.set_custom_element_data(o,"type","secondary"),e.set_class(o,1," g-margin-left--half");var l=e.child(o,!0);e.reset(o),e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(l,s)}),[()=>z("scans.leaveModal.ignore"),()=>z("scans.leaveModal.dontExit")],e.derived_safe_equal),e.event("click",a,I),e.event("click",o,P),e.append(t,n)}}})};e.if(a,(t=>{"confirmLeaveModal"===e.get(S)&&t(i)}));var o=e.sibling(a,2),l=t=>{const s=e.derived_safe_equal((()=>z("scans.skipModal.title"))),n=e.derived_safe_equal((()=>z("scans.skipModal.desc")));C(t,{get title(){return e.get(s)},get subtitle(){return e.get(n)},$$events:{close:()=>P()},$$slots:{"modal-footer":(t,s)=>{var n=Ra(),a=e.child(n);e.set_custom_element_data(a,"type","critical");var i=e.child(a,!0);e.reset(a);var o=e.sibling(a,2);e.set_class(o,1,"g-margin-left--half"),e.set_custom_element_data(o,"type","secondary");var l=e.child(o,!0);e.reset(o),e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(l,s)}),[()=>z("global.skip"),()=>z("scans.skipModal.dontSkip")],e.derived_safe_equal),e.event("click",a,(()=>T(e.get(k)))),e.event("click",o,P),e.append(t,n)}}})};e.if(o,(t=>{"confirmSkipModal"===e.get(S)&&t(l)})),e.append(t,n)}}}),e.pop(),i()}const Fa={iconSize:96,titleTag:"h1",subtitleSecondary:!1};var Wa=e.template('<div slot="page-desc" class="kin_description__text -center"> </div>'),Oa=e.template('<div slot="page-content" class="kin_scan"><p class="scn_note"> </p> <div class="kin_scan__progress"><kin-progress></kin-progress> <div class="kin_scan__subtitle -overlay"><!></div></div> <div class="kin_scan__actions"><kin-button> </kin-button></div></div>',2),La=e.template('<div slot="page-content" class="kin_scan -banner"><div class="kin_scan__result"><kin-icon></kin-icon> <!> <p> <br> <!></p></div> <div class="kin_scan__actions"><kin-button> </kin-button></div></div>',2),Ma=e.template('<div slot="page-desc"><!></div>'),Ba=e.template('<div slot="page-content" class="kin_scan"><div class="kin_scan__result"><kin-icon></kin-icon> <h1 class="h2 kin_scan__title"> </h1> <p class="kin_scan__subtitle"> </p></div> <div class="kin_scan__actions"><kin-button> </kin-button> <kin-button> </kin-button></div></div>',2),za=e.template('<div class="modal__actions"><kin-button> </kin-button> <kin-button> </kin-button></div>',2);function Ua(t,s){e.push(s,!1);const[a,i]=e.setup_stores(),o=()=>e.store_get(h,"$pageStatus",a),l=()=>e.store_get(w,"$threatsLoading",a),r=()=>e.store_get(v,"$threatsCounts",a),c=()=>e.store_get(g,"$scanProgress",a),d=()=>e.store_get(f,"$lastScanned",a);let u=e.prop(s,"scanManager",8),p=e.prop(s,"title",8),m=e.prop(s,"titleSanitized",8,!1);const{pageStatus:h,scanProgress:g,lastScanned:f,threatsManager:_}=u(),{threatsCounts:v,allResolved:b}=_,w=_.loading;let x,S=e.mutable_source(),k=e.mutable_source(30);function T(){e.set(S,null)}function I(){T(),y.restart({winRE:!0,cancel:z("global.notNow")})}async function A(){await u().done(),await hs(),X.close()}function $(){P(),x=setInterval((()=>{const t=e.get(k)-1;t<=0?(e.set(k,0),P(),A()):(e.set(k,t),$())}),1e3)}function P(){x&&(x=clearInterval(x))}Y.emit("nui.mainLayout.view","smartscreen"),Y.emit("titlebar.hideAllButtons",!0),u().init(),n((()=>u().destroy())),e.legacy_pre_effect((()=>(o(),l(),r())),(()=>{"report"===o()&&!l()&&0===r().all&&$()})),e.legacy_pre_effect((()=>o()),(()=>{"report"!==o()&&P()})),e.legacy_pre_effect_reset(),e.init();const R=e.derived_safe_equal((()=>"scanning"===o()?"-center-header":"")),F=e.derived_safe_equal((()=>"loading"===o()));D(t,{get title(){return p()},get titleSanitized(){return m()},get cssCls(){return e.get(R)},get loading(){return e.get(F)},children:(t,s)=>{var n=e.comment(),i=e.first_child(n),p=t=>{var s=e.comment(),n=e.first_child(s),a=t=>{N(t,{$$slots:{"page-desc":(t,s)=>{var n=Wa(),a=e.child(n,!0);e.reset(n),e.template_effect((t=>e.set_text(a,t)),[()=>z("scans.boottime.desc")],e.derived_safe_equal),e.append(t,n)},"page-content":(t,s)=>{var n=Oa(),a=e.child(n),i=e.child(a,!0);e.reset(a);var o=e.sibling(a,2),l=e.child(o);e.template_effect((()=>e.set_custom_element_data(l,"percentage",c()))),e.set_custom_element_data(l,"dotted","true");var r=e.sibling(l,2),p=e.child(r),m=e=>{E(e,{get text(){return d()},width:"60%"})};e.if(p,(e=>{d()&&e(m)})),e.reset(r),e.reset(o);var h=e.sibling(o,2),g=e.child(h);e.set_custom_element_data(g,"type","secondary"),e.set_custom_element_data(g,"data-test","scn_progress_stopBtn");var f=e.child(g,!0);e.reset(g),e.reset(h),e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(f,s)}),[()=>z("scans.boottime.winRe.note"),()=>z("global.stopScan")],e.derived_safe_equal),e.event("click",g,(()=>u().stopScan())),e.append(t,n)}}})};e.if(n,(e=>{c()<100&&e(a)})),e.append(t,s)},m=(t,s)=>{var n=t=>{var s=e.comment(),n=e.first_child(s),i=t=>{N(t,{$$slots:{"page-content":(t,s)=>{var n=La(),a=e.child(n),i=e.child(a);e.set_custom_element_data(i,"name","circle-ok"),e.set_class(i,1,"kin_scan__icon"),e.template_effect((()=>e.set_custom_element_data(i,"size",Fa.iconSize)));var o=e.sibling(i,2);e.element(o,(()=>Fa.titleTag),!1,((t,s)=>{let n;e.template_effect((()=>n=e.set_attributes(t,n,{class:`${Fa.titleTag} kin_scan__title`})));var a=e.comment(),i=e.first_child(a);e.html(i,(()=>z("scans.ss2.noIssues.title"))),e.append(s,a)}));var l=e.sibling(o,2);let r;var c=e.child(l),d=e.sibling(c,3);e.html(d,(()=>z("scans.boottime.winRe.noIssues.desc.restart",e.get(k)))),e.reset(l),e.reset(a);var u=e.sibling(a,2),p=e.child(u);e.set_custom_element_data(p,"data-test","scn_progress_doneBtn"),e.template_effect((()=>e.set_custom_element_data(p,"size",void 0)));var m=e.child(p,!0);e.reset(p),e.reset(u),e.reset(n),e.template_effect(((t,s,n)=>{r=e.set_class(l,1,"kin_scan__subtitle",null,r,t),e.set_text(c,`${s??""} `),e.set_text(m,n)}),[()=>({p:Fa.subtitleSecondary,"-secondary":Fa.subtitleSecondary}),()=>z("scans.boottime.winRe.noIssues.desc"),()=>z("scans.boottime.winRe.reboot.btn")],e.derived_safe_equal),e.event("click",p,A),e.append(t,n)}}})},o=t=>{N(t,{actionbarVisible:!0,$$slots:{"page-desc":(t,s)=>{var n=Ma(),i=e.child(n),o=t=>{var s=e.comment(),n=e.first_child(s),i=t=>{var s=e.comment(),n=e.first_child(s),a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.resolvedWithError.subtitle",r().error)],e.derived_safe_equal),e.append(t,s)},i=(t,s)=>{var n=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.postponedUntilNextReboot.subtitle")],e.derived_safe_equal),e.append(t,s)},a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.allResolved.subtitle")],e.derived_safe_equal),e.append(t,s)};e.if(t,(e=>{r().needReboot?e(n):e(a,!1)}),s)};e.if(n,(e=>{r().error?e(a):e(i,!1)})),e.append(t,s)},o=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.results.subtitle")],e.derived_safe_equal),e.append(t,s)};e.if(n,(t=>{e.store_get(b,"$allResolved",a)?t(i):t(o,!1)})),e.append(t,s)};e.if(i,(e=>{l()||e(o)})),e.reset(n),e.append(t,n)},"page-content":(e,t)=>{sa(e,{threatsManager:_,disableAddingException:!0})},"page-actions":(t,s)=>{ba(t,{threatsManager:_,cta:"forceWinReRestart",onResolved:A,onSkip:()=>e.set(S,"confirmSkipModal")})}}})};e.if(n,(e=>{l()||0!==r().all?e(o,!1):e(i)})),e.append(t,s)},i=(t,s)=>{var n=t=>{N(t,{$$slots:{"page-content":(t,s)=>{var n=Ba(),a=e.child(n),i=e.child(a);e.set_custom_element_data(i,"name","circle-critical"),e.set_class(i,1,"kin_scan__icon"),e.set_custom_element_data(i,"size","96");var o=e.sibling(i,2),l=e.child(o,!0);e.reset(o);var r=e.sibling(o,2),c=e.child(r,!0);e.reset(r),e.reset(a);var d=e.sibling(a,2),p=e.child(d);e.set_custom_element_data(p,"data-test","scn_progress_scanAgainBtn");var m=e.child(p,!0);e.reset(p);var h=e.sibling(p,2);e.set_custom_element_data(h,"type","secondary"),e.set_class(h,1,"g-margin-left--1x"),e.set_custom_element_data(h,"data-test","scn_progress_doneBtn");var g=e.child(h,!0);e.reset(h),e.reset(d),e.reset(n),e.template_effect(((t,s,n,a)=>{e.set_text(l,t),e.set_text(c,s),e.set_text(m,n),e.set_text(g,a)}),[()=>z("scans.scanStopped.title"),()=>z("scans.scanStopped.subtitle"),()=>z("smartscan.ss2.scanStopped.scanAgain"),()=>z("scans.boottime.winRe.reboot.btn")],e.derived_safe_equal),e.event("click",p,(()=>u().startScan())),e.event("click",h,I),e.append(t,n)}}})};e.if(t,(e=>{"canceled"===o()&&e(n)}),s)};e.if(t,(e=>{"report"===o()?e(n):e(i,!1)}),s)};e.if(i,(e=>{"scanning"===o()?e(p):e(m,!1)})),e.append(t,n)},$$slots:{default:!0,"page-modals":(t,s)=>{var n=e.comment(),a=e.first_child(n),i=t=>{const s=e.derived_safe_equal((()=>z("scans.skipModal.title"))),n=e.derived_safe_equal((()=>z("scans.boottime.winRe.skipModal.desc")));C(t,{get title(){return e.get(s)},get subtitle(){return e.get(n)},children:(t,s)=>{var n=za(),a=e.child(n);e.set_custom_element_data(a,"type","critical");var i=e.child(a,!0);e.reset(a);var o=e.sibling(a,2);e.set_class(o,1,"g-margin-left--half"),e.set_custom_element_data(o,"type","secondary");var l=e.child(o,!0);e.reset(o),e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(l,s)}),[()=>z("scans.boottime.winRe.skipModal.reboot.btn"),()=>z("scans.skipModal.dontSkip")],e.derived_safe_equal),e.event("click",a,I),e.event("click",o,T),e.append(t,n)},$$slots:{default:!0}})};e.if(a,(t=>{"confirmSkipModal"===e.get(S)&&t(i)})),e.append(t,n)}}}),e.pop(),i()}class qa{#i;#o;#T;#C;#I;#D;#A;#$;#P;#R;constructor(e){this.#i=e.scanId,this.#o=e.sessionId,this.#T=te(!0),this.#C=te([]),this.#I=te([]),this.#D=te([]),this.#A=te(!1),this.#$=te(0),this.#P=te(!1),this.#R=te(),this.loading=be(this.#T,(e=>e)),this.threats=be(this.#C,(e=>e)),this.exceptions=be(this.#I,(e=>e)),this.selectedThreatsIds=be(this.#D,(e=>e)),this.resolving=be(this.#A,(e=>e)),this.progress=be(this.#$,(e=>e)),this.hasScanErrors=be(this.#P,(e=>e)),this.cleaningOffer=be(this.#R,(e=>e)),this.selectableThreats=be([this.#C,this.#I],(([e,t])=>e.filter((e=>"ok"!==e.statusCode&&"err"!==e.statusCode&&"warning"!==e.statusCode&&!t.includes(e.path))))),this.allResolved=be([this.resolving,this.threats,this.selectableThreats],(([e,t,s])=>Boolean(!e&&t.length&&!s.length))),this.threatsCounts=be([this.#C,this.selectableThreats],(([e,t])=>({all:e.length,selectable:t.length,error:e.filter((e=>"err"===e.statusCode)).length,nothing:e.filter((e=>""===e.statusCode)).length,needReboot:e.filter((e=>"warning"===e.statusCode&&"postponed_to_next_reboot"===e.statusDetail)).length}))),null!=e.sessionId&&this.init()}async init(e){this.#o=e?.sessionId??this.#o,delete localStorage.threatsCleaningOffer,await this.#N(),await this.#n(),e?.preselectAll&&this.selectAllThreats(),this.#T.set(!1)}updateThreatsFromSession(e){this.#C.set(e)}async#n(){try{const{threats:e,cleaningOffer:t,hasScanErrors:s}=await this.#E();this.#C.set(e),this.#R.set(t),this.#P.set(s);const n=we(this.selectableThreats),a=this.#D.get().filter((e=>n.some((t=>t.id===e))));this.#D.set(a),!we(this.threatsCounts).needReboot||"boot_time_scan"!==t&&"reboot"!==t||(localStorage.threatsCleaningOffer=t)}catch(e){console.error("Getting threats failed; error: "+e)}}async#N(){const e=/"/g,t=(await g.getValue("avcfg://exclusions/Global/ExcludeFiles")).split('";"').map((t=>{const s=t.match(/<(R|W|X|RW|RWX|WX)>(.+)/);let n;return n=s&&s.length>2?s[2]:t.replace(e,""),n}));this.#I.set(t)}selectAllThreats(){const e=we(this.selectableThreats).map((e=>e.id));this.#D.set(e)}deselectAllThreats(){this.#D.set([])}selectThreat(e){this.#D.update((t=>(t.includes(e.id)||t.push(e.id),t)))}deselectThreat(e){this.#D.update((t=>(t.includes(e.id)&&t.splice(t.indexOf(e.id),1),t)))}doAction(e){const t=[];this.#$.set(0),this.#A.set(!0),wt(this.#i,this.#o),this.#C.get().forEach((s=>{this.#D.get().includes(s.id)?t.push({id:s.id,action:e}):""===s.statusCode&&t.push({id:s.id,action:"nothing"})})),setTimeout((async()=>{await this.resolveThreats(t),this.#$.set(100),this.#n(),this.#A.set(!1)}),1e3)}async addException(e){const t="avcfg://exclusions/Global/ExcludeFiles",s=await g.getValue(t),n=s+(s?";":"")+'"'+e.path+'"';await g.set(t,n),await this.#N(),this.deselectThreat(e)}async#E(){const e=await Z("app.scanViruses.GetResult",{scanId:this.#i,session:this.#o}),t=e.scanner_errors?.length>0;return{threats:e.page,cleaningOffer:e.cleaningOffer,hasScanErrors:t}}resolveThreats(e){return Z("app.scanViruses.Resolve",{scanId:this.#i,session:this.#o,actions:e})}}const Va=!1,ja={[Se.RUNNING]:"scanning",[Se.PAUSED]:"scanning",[Se.SUSPENDED]:"scanning",[Se.CANCELED]:"canceled",[Se.DONE]:"report",[Se.READY]:"report",[Se.RESOLVING]:"report"};class Ha extends Q{#_;#F;#i;#o;#W;#O;#L;#M;#B;#z=!0;#U;#q;#V;#v;constructor(e){super(),this.#i=e.scanId,this.#o=e.sessionId,this.#W=e.path,this.threatsManager=new qa({scanId:this.#i}),this.#U=te(),this.#q=te(),this.#V=te(),this.#v=te(),this.scanType=be([this.#U,this.#v],(([e,t])=>e?.type||t)),this.scanLabel=be(this.#U,(e=>e?.label)),this.scanProgress=be(this.#q,(e=>e?.progress)),this.lastScanned=be(this.#q,(e=>e?.lastScanned)),this.problemsCount=be(this.#q,(e=>e?.problemsCount)),this.pageStatus=be(this.#q,(e=>ja[e?.status]||"loading")),this.statistics=be(this.#q,(e=>e?.statistics)),this.shutDownMachineOn=be(this.#V,(e=>e))}get scanId(){return this.#i}get sessionId(){return this.#o}async init(){if(this.#_=await nt(this.#i),this.#v=await this.#j(),this.#O=this.#_.data.subscribe((e=>{this.#U.set(e),this.#H()})),!this.#o){const e=await st(),t=e?.find((e=>e.id===this.#i));this.#o=t?.sessionId}this.#F=new Ce(this.#i,this.#o,Va),await this.#F.waitForStatus();const e=we(this.#F.status),t=e.status,s=e.lastScanned;await this.#G(t);const n=gt(this.#i)||!s;this.#o||!n&&!this.#W&&t!==Se.CANCELED?(this.#B=!0,this.#K()):(_t(this.#i),this.startScan())}destroy(){this.#O?.(),this.#O=null,this.#Z(),this.#F?.destroy(),this.removeAllListeners()}async startScan(){this.#M=Date.now();try{await this.#F.startScan({path:this.#W}),J.click("Scans","Click","Start",`${this.#v} scan`),this.#o=this.#F.sessionId,this.#K(),this.#B=!0}catch{ft(this.#i),this.emit("startFailed")}}async stopScan(){J.click("Scans","Click","Scan stop",`${this.#v} scan`),this.#q.update((e=>(e.status=null,e))),await this.#F.stopScan(),this.#q.update((e=>(e.status=Se.CANCELED,e))),await this.setShutDownMachine(!1),ft(this.#_.id),bt(this.#_.id)}async done(){ft(this.#i),bt(this.#i),await wt(this.#i,this.#o)}#K(){this.#L||(this.#L=this.#F.status.subscribe((e=>{const t=e?.status,s=this.#q.get()?.status;this.#o=this.#F.sessionId,t===Se.DONE&&t!==s&&this.#Y(),e?.results?.page&&this.threatsManager.updateThreatsFromSession(e.results.page),"report"===ja[t]&&t!==s&&this.threatsManager.init({sessionId:this.#o}),this.#q.set(Object.assign({},e)),this.#H()})))}#Z(){this.#L?.(),this.#L=null}#Y(){(!this.#M||Date.now()-this.#M>1e4)&&(_.play("done"),this.#M=null)}async#G(e){if("performance"===this.#i)return;let t;try{t=await this.#J()}catch{return}if(void 0!==t)if(e===Se.RUNNING)this.#V.set(t);else try{const e=await this.#X();e!==t?this.setShutDownMachine(e):this.#V.set(e)}catch{this.#V.set(t)}}async#J(){const e=await g.getValue(["avcfg://settings/***TaskGUID***/TempShutDownMachine",this.#i]);return e?Boolean(+e):void 0}async#X(){const e=await g.getValue(["avcfg://settings/***TaskGUID***/ShutDownMachine",this.#i]);return e?Boolean(+e):void 0}async setShutDownMachine(e){await g.set(["avcfg://settings/***TaskGUID***/TempShutDownMachine",this.#i],e?"1":"0"),this.#V.set(e)}async#j(){if(this.#_.type)return this.#_.type;const e=await Z("app.settings.Get",{name:"avcfg://settings/***TaskGUID***/TaskImage",objectId:this.#_.id});return e?.value}#H(){const e=this.#U.get(),t=this.#q.get();if(!e||!t)return;const s=t.status;if(this.#z&&s===Se.RUNNING&&(J.view(`${this.#v} scan`,{a4:"PROGRESS"}),this.#z=!1),this.#B&&s===Se.DONE){const e="clean"===t.cleanVerdict?"CLEAN":"DIRTY";J.view(`${this.#v} scan`,{a4:"RESULT",a5:e}),this.#B=!1}}}var Ga=e.template("<div><!></div>");function Ka(t,s){e.push(s,!0);const[n,a]=e.setup_stores(),i=()=>e.store_get(c,"$title",n),l=new Ha({scanId:s.scanId,sessionId:s.sessionId,path:s.path}),r=l.threatsManager,c=be([l.pageStatus,l.scanType,r.allResolved,r.threatsCounts],(([e,t,s,n],a)=>(async function(e,t,s,n){if("report"===e)return s?n.error>0?z("scans.ss2.resolvedWithError.title",n.error):n.needReboot>0?z("scans.postponedUntilNextReboot.title",n.needReboot):z("scans.ss2.allResolved.title"):n.all>0?z("scans.ss2.results.title",n.all):"";if("scanning"===e&&t)return z("scans.scanning.title",z("scans.scanType."+t));return""}(e,t,s,n).then(a),()=>{})));let d;var u=Ga(),p=e.child(u),m=e=>{Ua(e,{scanManager:l,get title(){return i()},titleSanitized:!0})},h=e=>{Ea(e,{scanManager:l,get title(){return i()},titleSanitized:!0,onRefreshFocus:()=>d?.setFocus({force:!0})})};e.if(p,(e=>{s.isWinReScan?e(m):e(h,!1)})),e.reset(u),e.action(u,(t=>(d=new o(t),void e.user_effect((()=>()=>d.destroy()))))),e.append(t,u),e.pop(),a()}class Za{#_;#i;#Q;#U;#ee;#te;#se;constructor(e){this.#i=e.scanId,this.#Q=h.getInstaller("VpsBoot32"),this.initPrivateStores(),this.loadScanData(),this.scanData=be(this.#U,(e=>e)),this.installState=be(this.#ee,(e=>e)),this.scheduleState=be(this.#te,(e=>e)),this.installProgress=be(this.#se,(e=>e)),this.installed=_e(h.isInstalled("VpsBoot32"),(e=>{const t=this.#Q.on("done",(()=>this.#Q.isInstalled().then(e)));return()=>t()}))}async loadScanData(){this.#_=await nt(this.#i),this.#U.set(this.#_.data),this.#te.set(we(this.#_.data).boottimeScanScheduled?"scheduled":"unscheduled")}initPrivateStores(){this.#U=ve(),this.#ee=ve(this.#ne()?"installed":null,(e=>(this.#Q.getStatus().then((t=>{"installing"===t.task?e("installing"):e(this.#ne()?"installed":"uninstalled")})),this.#Q.on("done",(()=>e("installed")))))),this.#te=ve(),this.#se=ve(0,(e=>{const t=this.#Q.on("progress",(t=>{e(t)}));return()=>{t()}}))}async schedule(){J.click("Scans","Click","Schedule","Boottime scan"),this.#te.set("scheduling"),await this.#ae(),await Z("app.scanViruses.ScheduleBoottimeScan",!0),this.#te.set("scheduled"),this.#ie(!0)}async unschedule(){J.click("Scans","Click","Unschedule","Boottime scan"),this.#te.set("unscheduling"),await Z("app.scanViruses.ScheduleBoottimeScan",!1),this.#te.set("unscheduled"),this.#ie(!1)}async#ae(){await this.#oe()&&await this.#le()}#ie(e){const t=we(this.#_.data);t.boottimeScanScheduled=e,this.#_.setData(t)}#ne(){return h.isInstalled("VpsBoot32")}#le(){return Z("app.BootTimeScan.WinRE.GetInitialized").then((e=>{if(e?.available&&!e.initialized)return new Promise((e=>{Y.once("app.BootTimeScan.WinRE.Initialized",(t=>{t.initialized&&t.available&&e()}))}))})).catch((()=>{}))}async#oe(){return 1==await g.getValue("avcfg://settings/BootTimeScan/AllowWinRE")}async install(){J.click("Scans","Click","Install definitions","Boottime scan"),this.#ee.set("installing"),await this.#Q.install()}}const Ya={skipCtaType:void 0,offlineIcon:"circle-critical"};var Ja=e.template('<div class="g-margin-top--2x"><button class="a -primary"> </button></div>'),Xa=e.template('<div slot="modal-footer"><kin-button> </kin-button> <kin-button> </kin-button> <!></div>',2),Qa=e.template('<div slot="modal-footer"><kin-button> </kin-button> <kin-button> </kin-button></div>',2),ei=e.template('<div slot="modal-footer"><kin-button> </kin-button> <kin-button> </kin-button></div>',2);kt(".scn_boot-time__link.svelte-12c4uww {\n  flex-basis: 100%;\n  margin-top: 0.8rem;\n}\n");var ti=e.template('<div class="scn_boot-time__link svelte-12c4uww"><button class="a text -secondary" data-test="scn_boot-skip"> </button></div>');function si(t,s){e.push(s,!0);const[n,a]=e.setup_stores(),i=()=>e.store_get(c,"$installed",n),o=()=>e.store_get(d,"$installProgress",n),{installState:l,scheduleState:r,installed:c,installProgress:d}=s.scanManager,u=e.derived((()=>i()||s.skipped?z("scans.boottime.scheduling"):z("scans.boottime.installing.info"))),p=e.derived((()=>z("scans.preparingScanProgress",i()||s.skipped||s.cancelled?"":V.percentage(o())))),m=e.derived((()=>i()||s.skipped||s.cancelled?-1:o())),h=e.derived((()=>z("scans.boottime.installing.desc"))),g=e.derived((()=>({label:z("global.cancel"),processing:"unscheduling"===e.store_get(r,"$scheduleState",n),dataTest:"scn_boot-cancel",action:()=>s.onCancel()})));{const a=t=>{var a=e.comment(),i=e.first_child(a),o=t=>{var n=ti(),a=e.child(n);a.__click=function(...e){s.onSkip?.apply(this,e)};var i=e.child(a,!0);e.reset(a),e.reset(n),e.template_effect((t=>{a.disabled=s.skipped,e.set_text(i,t)}),[()=>z("scans.boottime.installing.skipDefinitions")]),e.append(t,n)};e.if(i,(t=>{"installing"===e.store_get(l,"$installState",n)&&t(o)})),e.append(t,a)};R(t,{get progressLabel(){return e.get(u)},get customTitle(){return e.get(p)},get progress(){return e.get(m)},illustration:"i-s-094",get desc(){return e.get(h)},descSanitized:!0,get cancelBtn(){return e.get(g)},footnoteSlot:a,$$slots:{footnoteSlot:!0}})}e.pop(),a()}e.delegate(["click"]);kt(".scn_boot-time__defaultcolor.svelte-3khq7o {\n  color: var(--o2-colors-on-background);\n}\n.scn_boot-time__link.svelte-3khq7o {\n  flex-basis: 100%;\n  margin-top: 0.8rem;\n}\n");const ni={unscheduledCtaInContent:!1,splitUnscheduledDesc:!1,unscheduledIllustration:null,scheduledIllustration:null,scanningStatusCss:"-center-header"};var ai=e.template("<span> </span>"),ii=e.template('<div slot="page-desc"><!></div>'),oi=e.template("<kin-button> </kin-button>",2),li=e.template('<div slot="page-cta"><!></div>'),ri=e.template("<div><!></div>"),ci=e.template('<div class="kin_scan__actions"><kin-button> </kin-button></div>',2),di=e.template('<div slot="page-content"><!> <!></div>'),ui=e.template('<div class="g-margin-top--9 g-margin-bottom--2x"><!></div>'),pi=e.template("<kin-loading></kin-loading>",2),mi=e.template('<div slot="page-content" class="kin_scan -has-actions"><!> <div class="kin_scan__result"><h1 class="h2 kin_scan__title"><!></h1> <p class="kin_scan__subtitle"> </p></div> <div class="kin_scan__actions"><kin-button> </kin-button> <kin-button> </kin-button> <div class="scn_boot-time__link svelte-3khq7o"><button class="a" data-test="scn_boot-unschedule"> </button> <!></div></div></div>',2),hi=e.template('<div slot="page-breadcrumbs"><!></div>'),gi=e.template('<div slot="page-modals"><!></div>');function fi(t,n){e.push(n,!1);const[a,i]=e.setup_stores(),o=()=>e.store_get(w,"$scanData",a),l=()=>e.store_get(v,"$scheduleState",a),r=()=>e.store_get(_,"$installState",a),c=e.mutable_source(),d=e.mutable_source(),u=e.mutable_source(),p=e.mutable_source(),m=e.mutable_source();let h=e.prop(n,"scanId",8);const g=new Za({scanId:h()}),f="#scans",{installState:_,scheduleState:v,installed:b,scanData:w}=g;let x=e.mutable_source(null),S=e.mutable_source(!1),k=e.mutable_source(!1);function T(){e.set(x,null)}function A(){T(),e.set(S,!1),ee.isOnlineSync()?(g.schedule(),e.store_get(b,"$installed",a)||"installing"===r()||g.install()):e.set(x,"offline")}function P(){T(),e.set(k,e.get(p)),g.unschedule()}function R(){T(),"unscheduled"===l()&&g.schedule(),e.set(S,!0)}function E(){y.restart()}function W(){window.location.hash=f}e.legacy_pre_effect((()=>(o(),z)),(()=>{e.set(c,[{title:o()?.label||z("scans.scanType.boottime")}])})),e.legacy_pre_effect((()=>(l(),e.get(k),r(),e.get(S))),(()=>{e.set(p,"unscheduled"!==l()&&("scheduling"===l()||"unscheduling"===l()&&e.get(k)||"installing"===r()&&!e.get(S)))})),e.legacy_pre_effect((()=>(l(),e.get(p),z)),(()=>{e.set(d,"unscheduled"===l()||e.get(p)?z("scans.scanType.boottime"):null)})),e.legacy_pre_effect((()=>l()),(()=>{e.set(u,function(){switch(l()){case"unscheduled":return z("scans.boottime.desc");case"scheduling":return z("scans.boottime.desc.scheduling");default:return""}}(l()))})),e.legacy_pre_effect((()=>e.get(p)),(()=>{e.set(m,e.get(p)?ni.scanningStatusCss:"")})),e.legacy_pre_effect_reset(),e.init();const O=e.derived_safe_equal((()=>!l()||!r())),L=e.derived_safe_equal((()=>!e.get(p)&&"#settings/scans/boottime"));D(t,{get title(){return e.get(d)},descSanitized:!0,get cssCls(){return`scn ${e.get(m)??""}`},backHash:f,get loading(){return e.get(O)},get settingsHash(){return e.get(L)},children:(t,s)=>{var n=e.comment(),a=e.first_child(n),i=t=>{N(t,{$$slots:{"page-desc":(t,s)=>{var n=ii(),a=e.child(n);F(a,{get desc(){return e.get(u)},children:(t,s)=>{var n=ai(),a=e.child(n,!0);e.reset(n),e.template_effect((t=>{e.set_class(n,1,e.clsx(ni.splitUnscheduledDesc?"text -strong scn_boot-time__defaultcolor":""),"svelte-3khq7o"),e.set_text(a,t)}),[()=>z("scans.boottime.desc.line2")],e.derived_safe_equal),e.append(t,n)},$$slots:{default:!0}}),e.reset(n),e.append(t,n)},"page-cta":(t,s)=>{var n=li(),a=e.child(n),i=t=>{var s=oi();e.set_custom_element_data(s,"size","small"),e.set_custom_element_data(s,"data-test","scn_boot-schedule");var n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.boottime.schedule")],e.derived_safe_equal),e.event("click",s,A),e.append(t,s)};e.if(a,(e=>{ni.unscheduledCtaInContent||e(i)})),e.reset(n),e.append(t,n)},"page-content":(t,s)=>{var n=di(),a=e.child(n),i=t=>{var s=ri();let n;var a=e.child(s);I(a,{get name(){return ni.unscheduledIllustration},cssCls:"scn_boot-time__illustration"}),e.reset(s),e.template_effect((t=>n=e.set_class(s,1,"g-align--center",null,n,t)),[()=>({"g-margin-top--2x":ni.unscheduledCtaInContent,"g-margin-top--7x":!ni.unscheduledCtaInContent})],e.derived_safe_equal),e.append(t,s)};e.if(a,(e=>{ni.unscheduledIllustration&&e(i)}));var o=e.sibling(a,2),l=t=>{var s=ci(),n=e.child(s);e.set_custom_element_data(n,"data-test","scn_boot-schedule");var a=e.child(n,!0);e.reset(n),e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>z("scans.boottime.schedule")],e.derived_safe_equal),e.event("click",n,A),e.append(t,s)};e.if(o,(e=>{ni.unscheduledCtaInContent&&e(l)})),e.reset(n),e.append(t,n)}}})},o=(t,s)=>{var n=t=>{si(t,{scanManager:g,get skipped(){return e.get(S)},get cancelled(){return e.get(k)},onCancel:()=>e.set(x,"cancel"),onSkip:()=>e.set(x,"skip")})},a=t=>{N(t,{$$slots:{"page-content":(t,s)=>{var n=mi(),a=e.child(n),i=t=>{var s=ui(),n=e.child(s);I(n,{get name(){return ni.scheduledIllustration},cssCls:"scn_boot-time__illustration"}),e.reset(s),e.append(t,s)};e.if(a,(e=>{ni.scheduledIllustration&&e(i)}));var o=e.sibling(a,2),r=e.child(o),c=e.child(r);e.html(c,(()=>z("scans.boottime.ready.title"))),e.reset(r);var d=e.sibling(r,2),u=e.child(d,!0);e.reset(d),e.reset(o);var p=e.sibling(o,2),m=e.child(p);e.set_custom_element_data(m,"data-test","scn_boot-restart");var h=e.child(m,!0);e.reset(m);var g=e.sibling(m,2);e.set_custom_element_data(g,"type","secondary"),e.set_class(g,1,"g-margin-left--2x"),e.set_custom_element_data(g,"data-test","scn_boot-later");var f=e.child(g,!0);e.reset(g);var _=e.sibling(g,2),v=e.child(_),b=e.child(v,!0);e.reset(v);var w=e.sibling(v,2),y=t=>{var s=pi();e.set_custom_element_data(s,"size","small"),e.set_class(s,1,"scn_boot-time__unscheduling"),e.append(t,s)};e.if(w,(e=>{"unscheduling"===l()&&e(y)})),e.reset(_),e.reset(p),e.reset(n),e.template_effect(((t,s,n,a)=>{e.set_text(u,t),e.set_text(h,s),e.set_text(f,n),v.disabled="unscheduling"===l(),e.set_text(b,a)}),[()=>z("scans.boottime.ready.desc"),()=>z("global.restartNow"),()=>z("global.rebootLater"),()=>z("scans.boottime.ready.cancel")],e.derived_safe_equal),e.event("click",m,E),e.event("click",g,W),e.event("click",v,(()=>e.set(x,"cancel"))),e.append(t,n)}}})};e.if(t,(t=>{e.get(p)?t(n):t(a,!1)}),s)};e.if(a,(e=>{"unscheduled"===l()?e(i):e(o,!1)})),e.append(t,n)},$$slots:{default:!0,"page-breadcrumbs":(t,s)=>{var n=hi(),a=e.child(n),i=t=>{$(t,{section:"security",moduleId:"scans",get subsections(){return e.get(c)}})};e.if(a,(t=>{e.get(p)||t(i)})),e.reset(n),e.append(t,n)},"page-modals":(t,n)=>{var a=gi();!function(t,n){e.push(n,!1);let a=e.prop(n,"modal",8,null),i=e.prop(n,"withOfflineCancelLink",8,!1);const o=s();e.init();var l=e.comment(),r=e.first_child(l),c=t=>{const s=e.derived_safe_equal((()=>z("scans.modal.boottimeOffline.title"))),n=e.derived_safe_equal((()=>z("scans.modal.boottimeOffline.desc")));C(t,{get icon(){return Ya.offlineIcon},get title(){return e.get(s)},get subtitle(){return e.get(n)},$$events:{close:()=>o("back")},$$slots:{"modal-footer":(t,s)=>{var n=Xa(),a=e.child(n),l=e.child(a,!0);e.reset(a);var r=e.sibling(a,2);e.set_class(r,1,"g-margin-left--half"),e.set_custom_element_data(r,"type","secondary");var c=e.child(r,!0);e.reset(r);var d=e.sibling(r,2),u=t=>{var s=Ja(),n=e.child(s),a=e.child(n,!0);e.reset(n),e.reset(s),e.template_effect((t=>e.set_text(a,t)),[()=>z("global.cancel")],e.derived_safe_equal),e.event("click",n,(()=>o("close"))),e.append(t,s)};e.if(d,(e=>{i()&&e(u)})),e.reset(n),e.template_effect(((t,s)=>{e.set_text(l,t),e.set_text(c,s)}),[()=>z("global.tryAgain"),()=>z("scans.modal.boottimeOffline.continue")],e.derived_safe_equal),e.event("click",a,(()=>o("tryAgain"))),e.event("click",r,(()=>o("skip"))),e.append(t,n)}}})},d=(t,s)=>{var i=t=>{const s=e.derived_safe_equal((()=>z("scans.modal.boottimeSkip.title"))),a=e.derived_safe_equal((()=>z("scans.modal.boottimeSkip.desc")));C(t,{get title(){return e.get(s)},get subtitle(){return e.get(a)},$$events:{close(t){e.bubble_event.call(this,n,t)}},$$slots:{"modal-footer":(t,s)=>{var n=Qa(),a=e.child(n);e.template_effect((()=>e.set_custom_element_data(a,"type",Ya.skipCtaType))),e.set_custom_element_data(a,"data-test","modal_confirm");var i=e.child(a,!0);e.reset(a);var l=e.sibling(a,2);e.set_class(l,1,"g-margin-left--half"),e.set_custom_element_data(l,"type","secondary"),e.set_custom_element_data(l,"data-test","modal_cancel");var r=e.child(l,!0);e.reset(l),e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(r,s)}),[()=>z("scans.modal.boottimeSkip.skip"),()=>z("scans.modal.boottimeSkip.dontSkip")],e.derived_safe_equal),e.event("click",a,(()=>o("skip"))),e.event("click",l,(()=>o("close"))),e.append(t,n)}}})},l=(t,s)=>{var i=t=>{const s=e.derived_safe_equal((()=>z("scans.modal.boottimeCancel.title"))),a=e.derived_safe_equal((()=>z("scans.modal.boottimeCancel.desc")));C(t,{get title(){return e.get(s)},get subtitle(){return e.get(a)},$$events:{close(t){e.bubble_event.call(this,n,t)}},$$slots:{"modal-footer":(t,s)=>{var n=ei(),a=e.child(n);e.set_custom_element_data(a,"data-test","modal_confirm");var i=e.child(a,!0);e.reset(a);var l=e.sibling(a,2);e.set_class(l,1,"g-margin-left--half"),e.set_custom_element_data(l,"type","secondary"),e.set_custom_element_data(l,"data-test","modal_cancel");var r=e.child(l,!0);e.reset(l),e.reset(n),e.template_effect(((t,s)=>{e.set_text(i,t),e.set_text(r,s)}),[()=>z("scans.modal.boottimeCancel.cancel"),()=>z("scans.modal.boottimeCancel.continue")],e.derived_safe_equal),e.event("click",a,(()=>o("cancel"))),e.event("click",l,(()=>o("close"))),e.append(t,n)}}})};e.if(t,(e=>{"cancel"===a()&&e(i)}),s)};e.if(t,(e=>{"skip"===a()?e(i):e(l,!1)}),s)};e.if(r,(e=>{"offline"===a()?e(c):e(d,!1)})),e.append(t,l),e.pop()}(e.child(a),{get modal(){return e.get(x)},withOfflineCancelLink:!0,$$events:{close:T,back:T,tryAgain:A,skip:R,cancel:P}}),e.reset(a),e.append(t,a)}}}),e.pop(),i()}const _i={section:"security",moduleId:"scans",subsections:null};var vi=e.template('<div slot="page-desc"> </div>'),bi=e.template('<div slot="page-content"><!></div>'),wi=e.template('<div slot="page-actions"><!></div>'),yi=e.template('<div slot="page-breadcrumbs"><!></div>');function xi(t,a){e.push(a,!1);const[i,o]=e.setup_stores(),r=()=>e.store_get(b,"$resolvingThreats",i),c=()=>e.store_get(S,"$selectedThreatsIds",i),d=()=>e.store_get(y,"$allResolved",i),u=()=>e.store_get(x,"$threatsCounts",i),p=e.mutable_source();let m=e.prop(a,"title",12),h=e.prop(a,"scanId",8),g=e.prop(a,"sessionId",8),f=e.prop(a,"backHandler",8);const _=s(),v=new qa({scanId:h(),sessionId:g()}),b=v.resolving,w=v.threats,y=v.allResolved,x=v.threatsCounts,S=v.selectedThreatsIds,k=Y.on("scanViruses.ThreatResolved",l((()=>v.init()),1e3));let T=e.mutable_source(),C=e.mutable_source(),I=e.mutable_source(),A=e.mutable_source(),P=e.mutable_source(!0);async function R(e=!0){e&&await hs(),_("close")}n((()=>{k()})),ct(h(),g()).then((t=>{t&&(e.set(A,t),e.set(I,ms(e.get(A)))),e.set(P,!1)})),e.legacy_pre_effect((()=>e.get(A)),(()=>{_("scanData",e.get(A))})),e.legacy_pre_effect((()=>(r(),c())),(()=>{_("resolvingThreats",!!r()&&{count:c().length})})),e.legacy_pre_effect((()=>e.get(I)),(()=>{e.set(p,e.get(I)?[{title:e.get(I)}]:_i.subsections)})),e.legacy_pre_effect((()=>(e.deep_read_state(m()),e.get(A),d(),u(),z)),(()=>{m()?e.set(T,m()):e.get(A)?d()&&!u().error?e.set(T,z("scans.ss2.allResolved.title")):e.set(T,z("scans.smartScanV2.issuesFound.title",u().selectable)):m("")})),e.legacy_pre_effect((()=>(d(),u(),z)),(()=>{d()&&!u().error?e.set(C,z("scans.ss2.allResolved.subtitle")):e.set(C,z("scans.smartScanV2.issuesFound.subtitle"))})),e.legacy_pre_effect_reset(),e.init();const E=e.derived_safe_equal((()=>!e.get(A)));D(t,{get loading(){return e.get(E)},get title(){return e.get(T)},titleSanitized:!0,get backHandler(){return f()},cssCls:"scn",children:(t,s)=>{const n=e.derived_safe_equal((()=>e.get(P)||0===e.store_get(w,"$threats",i).length)),a=e.derived_safe_equal((()=>!0));N(t,{get loading(){return e.get(n)},get actionbarVisible(){return e.get(a)},$$slots:{"page-desc":(t,s)=>{var n=vi(),a=e.child(n,!0);e.reset(n),e.template_effect((()=>e.set_text(a,e.get(C)))),e.append(t,n)},"page-content":(t,s)=>{var n=bi();sa(e.child(n),{threatsManager:v}),e.reset(n),e.append(t,n)},"page-actions":(t,s)=>{var n=wi();ba(e.child(n),{threatsManager:v,showActions:!0,cta:"done",onResolved:()=>R(),onSkip:e=>R(e.detail)}),e.reset(n),e.append(t,n)}}})},$$slots:{default:!0,"page-breadcrumbs":(t,s)=>{var n=yi(),a=e.child(n);$(a,{get section(){return _i.section},get moduleId(){return _i.moduleId},get subsections(){return e.get(p)}}),e.reset(n),e.append(t,n)}}}),e.pop(),o()}kt(".scn {\n  text-align: var(--page-header-align);\n}\n.scn.-overlay {\n  text-align: start;\n}\n.scn_icon {\n  font-size: 80px;\n  margin-bottom: 4vh;\n  margin-top: 1vh;\n}\n.scn .scn_custom__row {\n  grid-template-columns: 5% 67% 22% 6%;\n}\n.scn .scn_history__row {\n  grid-template-columns: 6% 30% 49% 15%;\n}\n.scn .scn_history__row .scn_history__report {\n  position: absolute;\n  inset-inline-end: 0.5rem;\n  bottom: 1rem;\n}\n.scn .scn_boot-time__cta {\n  min-height: 6rem;\n  display: flex;\n  flex-flow: column;\n  justify-content: flex-end;\n}\n.scn .scn_boot-time__desc {\n  width: 46rem;\n}\n.scn .scn_boot-time__unscheduling {\n  position: absolute;\n  margin-inline-start: 0.8rem;\n}\n.scn .scn_boot-time__illustration {\n  font-size: 10rem;\n}\n.scn .scn_note {\n  background-color: rgba(255,255,255,0.05);\n  padding: 1rem 4rem;\n  margin: 5rem auto;\n  box-shadow: 0 0 90px -10px rgba(0,0,0,0.2);\n  border-radius: 1.2rem;\n  display: flex;\n  width: 80%;\n  flex-flow: column;\n  justify-content: center;\n  align-items: center;\n  min-height: 16rem;\n}\n.scn .scn_note__progress {\n  width: 100%;\n}\n.scn_table__header.-threatslist {\n  grid-template-columns: 4rem calc(4rem + 25%) auto 25%;\n}\n.scn_table__row.-threatslist {\n  grid-template-columns: calc(4rem + 4rem + 25%) auto 25%;\n}\n.scn_sub-icon {\n  position: absolute;\n  top: 50%;\n  left: 55%;\n}\n.scn_settings .scn_settings__schedule {\n  display: flex;\n  justify-content: flex-start;\n  align-items: flex-start;\n  margin-top: 1rem;\n}\n.scn_settings .scn_settings__schedule > div {\n  margin-inline-end: 1.6rem;\n}\n.scn_settings .scn_settings__schedule > div:last-child {\n  margin-inline-end: 0;\n}\n.scn_settings .scn_settings__day input {\n  max-width: 12rem;\n}\n.scn_settings .scn_settings__input {\n  width: 40%;\n}\n.scn_settings .scn_settings__input.-full_width {\n  width: 100%;\n}\n.scn_settings .scn_settings__input.-quarter_width {\n  width: 28%;\n}\n.scn_settings .scn_settings__input input,\n.scn_settings .scn_settings__input select {\n  width: 100%;\n}\n.scn_settings .scn_settings__modal {\n  text-align: start;\n}\n.scn_settings .scn_settings__modal .scn_settings__input {\n  width: 100%;\n}\n.scn_shutdown {\n  position: absolute;\n  height: 100%;\n  display: flex;\n  align-items: center;\n  left: 0;\n  max-width: 35%;\n}\n.scn_loader__banner {\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  height: 128px;\n}\n.scn_boot .scn_boot__desc {\n  width: 49rem;\n  margin: auto;\n}\n.scn_boot .scn_boot__table [slot=table-body] {\n  width: 49rem !important;\n  margin: 0 auto 3rem !important;\n}\n.scn_boot .scn_boot__row {\n  grid-template-columns: auto 13rem;\n  height: 4.8rem;\n}\n");const Si={handleRoute:null,customScansCompo:null,scanHistoryCompo:null};var ki=e.template('<div class="scn_render"></div>');function Ti(t,s){e.push(s,!1);const[a,i]=e.setup_stores(),o=new r;let l=e.mutable_source(),c=e.mutable_source(),d=e.mutable_source(),p=e.mutable_source(),h=e.mutable_source();function g(t={}){e.set(h,Si.handleRoute?.(t)),e.get(h)||(e.set(l,t.page?.toLowerCase()),e.set(c,t.scanId),e.set(d,+t.sessionId||void 0),e.set(p,t.path))}function f(){window.location.hash="#scans/scanHistory"}o.on("/",g),o.on("/:page",g),o.on("/:page/:scanId",g),o.on("/:page/:scanId/:sessionId",g),o.on("/:page/:scanId/path/:path",g),o.on("/:page/:scanId/:sessionId/path/:path",g),n((()=>{o.removeAllListeners()})),e.init();var _=e.comment(),v=e.first_child(_),b=t=>{var s=ki();e.action(s,(t=>e.get(h)?.(t))),e.append(t,s)},w=(t,s)=>{var n=t=>{Ka(t,{get scanId(){return e.get(c)},get sessionId(){return e.get(d)},get path(){return e.get(p)}})},i=(t,s)=>{var n=t=>{Ka(t,{get scanId(){return e.get(c)},get sessionId(){return e.get(d)},isWinReScan:!0})},i=(t,s)=>{var n=t=>{const s=e.derived_safe_equal((()=>e.get(c)||"boottime"));fi(t,{get scanId(){return e.get(s)}})},i=(t,s)=>{var n=t=>{xi(t,{get scanId(){return e.get(c)},get sessionId(){return e.get(d)},$$events:{close:f}})},i=(t,s)=>{var n=(t,s)=>{var n=(t,s)=>{var n=e=>{u(e,{})},i=e=>{Ln(e,{router:o})};e.if(t,(t=>{e.store_get(m,"$showRescueDiskProgress",a)?t(n):t(i,!1)}),s)};e.if(t,(t=>{"scanhistory"===e.get(l)&&Si.scanHistoryCompo||t(n,!1)}),s)};e.if(t,(t=>{"customscans"===e.get(l)&&Si.customScansCompo||t(n,!1)}),s)};e.if(t,(t=>{"scanhistory"===e.get(l)&&e.get(c)&&e.get(d)?t(n):t(i,!1)}),s)};e.if(t,(t=>{"boottimescan"===e.get(l)?t(n):t(i,!1)}),s)};e.if(t,(t=>{"winrescan"===e.get(l)?t(n):t(i,!1)}),s)};e.if(t,(t=>{"scan"===e.get(l)?t(n):t(i,!1)}),s)};e.if(v,(t=>{e.get(h)?t(b):t(w,!1)})),e.append(t,_),e.bind_prop(s,"router",o);var y=e.pop({router:o});return i(),y}function Ci(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ii(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Di,Ai={exports:{}},$i={},Pi={exports:{}},Ri=Pi.exports;var Ni,Ei={exports:{}},Fi=Ei.exports;var Wi,Oi={exports:{}},Li=Oi.exports;var Mi,Bi={exports:{}},zi=Bi.exports;var Ui,qi={exports:{}},Vi=qi.exports;var ji,Hi={exports:{}},Gi=Hi.exports;var Ki,Zi={exports:{}},Yi=Zi.exports;var Ji,Xi={exports:{}},Qi=Xi.exports;var eo,to={exports:{}},so=to.exports;var no,ao={exports:{}},io=ao.exports;var oo,lo={exports:{}},ro=lo.exports;var co,uo={exports:{}},po=uo.exports;var mo,ho={exports:{}},go=ho.exports;var fo,_o={exports:{}},vo=_o.exports;var bo,wo={exports:{}},yo=wo.exports;var xo,So={exports:{}},ko=So.exports;var To,Co={exports:{}},Io=Co.exports;var Do,Ao={exports:{}},$o=Ao.exports;var Po,Ro={exports:{}},No=Ro.exports;var Eo,Fo={exports:{}},Wo=Fo.exports;var Oo,Lo={exports:{}},Mo=Lo.exports;var Bo,zo={exports:{}},Uo=zo.exports;var qo,Vo={exports:{}},jo=Vo.exports;var Ho,Go={exports:{}},Ko=Go.exports;var Zo,Yo={exports:{}},Jo=Yo.exports;var Xo,Qo={exports:{}},el=Qo.exports;var tl,sl={exports:{}},nl=sl.exports;var al,il={exports:{}},ol=il.exports;var ll,rl={exports:{}},cl=rl.exports;var dl,ul={exports:{}},pl=ul.exports;var ml,hl={exports:{}},gl=hl.exports;var fl,_l={exports:{}},vl=_l.exports;var bl,wl={exports:{}},yl=wl.exports;var xl,Sl={exports:{}},kl=Sl.exports;var Tl,Cl={exports:{}},Il=Cl.exports;var Dl,Al={exports:{}},$l=Al.exports;var Pl,Rl={exports:{}},Nl=Rl.exports;var El,Fl={exports:{}},Wl=Fl.exports;var Ol,Ll={exports:{}},Ml=Ll.exports;var Bl,zl={exports:{}},Ul=zl.exports;var ql,Vl={exports:{}},jl=Vl.exports;var Hl,Gl={exports:{}},Kl=Gl.exports;var Zl,Yl={exports:{}};var Jl,Xl={exports:{}},Ql=Xl.exports;var er,tr={exports:{}},sr=tr.exports;var nr,ar={exports:{}},ir=ar.exports;var or,lr={exports:{}},rr=lr.exports;var cr,dr={exports:{}},ur=dr.exports;var pr,mr={exports:{}},hr=mr.exports;var gr,fr={exports:{}},_r=fr.exports;var vr,br={exports:{}},wr=br.exports;var yr,xr={exports:{}};var Sr,kr={exports:{}};var Tr,Cr={exports:{}},Ir=Cr.exports;var Dr,Ar={exports:{}},$r=Ar.exports;var Pr,Rr={exports:{}},Nr=Rr.exports;var Er,Fr={exports:{}},Wr=Fr.exports;var Or,Lr={exports:{}},Mr=Lr.exports;var Br,zr={exports:{}};var Ur,qr={exports:{}},Vr=qr.exports;var jr,Hr,Gr,Kr={exports:{}},Zr=Kr.exports;function Yr(){return Hr||(Hr=1,(e=$i).bg=(Di||(Di=1,t=Pi,function(){var e={langLocaleCode:"bg",cultureCode:"bg",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"И",million:"А",billion:"M",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"лв.",code:"BGN"}};t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&this.numbro.culture("bg",e)}.call("undefined"==typeof window?Ri:window)),Pi.exports),e["cs-CZ"]=function(){return Ni||(Ni=1,e=Ei,function(){var t={langLocaleCode:"cs-CZ",cultureCode:"cs-CZ",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},currency:{symbol:"Kč",position:"postfix",spaceSeparated:!0,code:"CZK"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Fi:window)),Ei.exports;var e}(),e["da-DK"]=function(){return Wi||(Wi=1,e=Oi,function(){var t={langLocaleCode:"da-DK",cultureCode:"da-DK",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",position:"postfix",code:"DKK"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Li:window)),Oi.exports;var e}(),e["de-AT"]=function(){return Mi||(Mi=1,e=Bi,function(){var t={langLocaleCode:"de-AT",cultureCode:"de-AT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?zi:window)),Bi.exports;var e}(),e["de-CH"]=function(){return Ui||(Ui=1,e=qi,function(){var t={langLocaleCode:"de-CH",cultureCode:"de-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix",code:"CHF"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Vi:window)),qi.exports;var e}(),e["de-DE"]=function(){return ji||(ji=1,e=Hi,function(){var t={langLocaleCode:"de-DE",cultureCode:"de-DE",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",spaceSeparated:!0,code:"EUR"},defaults:{currencyFormat:",4"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Gi:window)),Hi.exports;var e}(),e["de-LI"]=function(){return Ki||(Ki=1,e=Zi,function(){var t={langLocaleCode:"de-LI",cultureCode:"de-LI",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix",code:"CHF"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Yi:window)),Zi.exports;var e}(),e.el=function(){return Ji||(Ji=1,e=Xi,function(){var t={langLocaleCode:"el",cultureCode:"el",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"χ",million:"ε",billion:"δ",trillion:"τ"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("el",t)}.call("undefined"==typeof window?Qi:window)),Xi.exports;var e}(),e["en-AU"]=function(){return eo||(eo=1,e=to,function(){var t={langLocaleCode:"en-AU",cultureCode:"en-AU",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"AUD"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?so:window)),to.exports;var e}(),e["en-GB"]=function(){return no||(no=1,e=ao,function(){var t={langLocaleCode:"en-GB",cultureCode:"en-GB",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"£",position:"prefix",code:"GBP"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?io:window)),ao.exports;var e}(),e["en-IE"]=function(){return oo||(oo=1,e=lo,function(){var t={langLocaleCode:"en-IE",cultureCode:"en-IE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"€",code:"EUR"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("en-gb",t)}.call("undefined"==typeof window?ro:window)),lo.exports;var e}(),e["en-NZ"]=function(){return co||(co=1,e=uo,function(){var t={langLocaleCode:"en-NZ",cultureCode:"en-NZ",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix",code:"NZD"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?po:window)),uo.exports;var e}(),e["en-ZA"]=function(){return mo||(mo=1,e=ho,function(){var t={langLocaleCode:"en-ZA",cultureCode:"en-ZA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"R",position:"prefix",code:"ZAR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?go:window)),ho.exports;var e}(),e["es-AR"]=function(){return fo||(fo=1,e=_o,function(){var t={langLocaleCode:"es-AR",cultureCode:"es-AR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"postfix",code:"ARS"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?vo:window)),_o.exports;var e}(),e["es-CL"]=function(){return bo||(bo=1,e=wo,function(){var t={langLocaleCode:"es-CL",cultureCode:"es-CL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix",code:"CLP"},defaults:{currencyFormat:"$0,0"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?yo:window)),wo.exports;var e}(),e["es-CO"]=function(){return xo||(xo=1,e=So,function(){var t={langLocaleCode:"es-CO",cultureCode:"es-CO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?ko:window)),So.exports;var e}(),e["es-CR"]=function(){return To||(To=1,e=Co,function(){var t={langLocaleCode:"es-CR",cultureCode:"es-CR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"₡",position:"postfix",code:"CRC"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Io:window)),Co.exports;var e}(),e["es-ES"]=function(){return Do||(Do=1,e=Ao,function(){var t={langLocaleCode:"es-ES",cultureCode:"es-ES",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?$o:window)),Ao.exports;var e}(),e["es-MX"]=function(){return Po||(Po=1,e=Ro,function(){var t={langLocaleCode:"es-MX",cultureCode:"es-MX",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"postfix",code:"MXN"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?No:window)),Ro.exports;var e}(),e["es-NI"]=function(){return Eo||(Eo=1,e=Fo,function(){var t={langLocaleCode:"es-NI",cultureCode:"es-NI",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"C$",position:"prefix",code:"NIO"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Wo:window)),Fo.exports;var e}(),e["es-PE"]=function(){return Oo||(Oo=1,e=Lo,function(){var t={langLocaleCode:"es-PE",cultureCode:"es-PE",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"S/.",position:"prefix",code:"PEN"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Mo:window)),Lo.exports;var e}(),e["es-PR"]=function(){return Bo||(Bo=1,e=zo,function(){var t={langLocaleCode:"es-PR",cultureCode:"es-PR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix",code:"USD"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Uo:window)),zo.exports;var e}(),e["es-SV"]=function(){return qo||(qo=1,e=Vo,function(){var t={langLocaleCode:"es-SV",cultureCode:"es-SV",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"prefix",code:"SVC"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?jo:window)),Vo.exports;var e}(),e["et-EE"]=function(){return Ho||(Ho=1,e=Go,function(){var t={langLocaleCode:"et-EE",cultureCode:"et-EE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Ko:window)),Go.exports;var e}(),e["fa-IR"]=function(){return Zo||(Zo=1,e=Yo,function(){var t={langLocaleCode:"fa-IR",cultureCode:"fa-IR",delimiters:{thousands:"،",decimal:"."},abbreviations:{thousand:"هزار",million:"میلیون",billion:"میلیارد",trillion:"تریلیون"},ordinal:function(){return"ام"},currency:{symbol:"﷼",code:"IRR"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Jo:window)),Yo.exports;var e}(),e["fi-FI"]=function(){return Xo||(Xo=1,e=Qo,function(){var t={langLocaleCode:"fi-FI",cultureCode:"fi-FI",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?el:window)),Qo.exports;var e}(),e["fil-PH"]=function(){return tl||(tl=1,e=sl,function(){var t={langLocaleCode:"fil-PH",cultureCode:"fil-PH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"₱",code:"PHP"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?nl:window)),sl.exports;var e}(),e["fr-CA"]=function(){return al||(al=1,e=il,function(){var t={langLocaleCode:"fr-CA",cultureCode:"fr-CA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"$",position:"postfix",spaceSeparated:!0,code:"USD"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?ol:window)),il.exports;var e}(),e["fr-CH"]=function(){return ll||(ll=1,e=rl,function(){var t={langLocaleCode:"fr-CH",cultureCode:"fr-CH",delimiters:{thousands:" ",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"CHF",position:"postfix",code:"CHF"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?cl:window)),rl.exports;var e}(),e["fr-FR"]=function(){return dl||(dl=1,e=ul,function(){var t={langLocaleCode:"fr-FR",cultureCode:"fr-FR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?pl:window)),ul.exports;var e}(),e["he-IL"]=function(){return ml||(ml=1,e=hl,function(){var t={langLocaleCode:"he-IL",cultureCode:"he-IL",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"אלף",million:"מליון",billion:"בליון",trillion:"טריליון"},currency:{symbol:"₪",position:"prefix",code:"ILS"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"₪ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"₪ ,0"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?gl:window)),hl.exports;var e}(),e["hu-HU"]=function(){return fl||(fl=1,e=_l,function(){var t={langLocaleCode:"hu-HU",cultureCode:"hu-HU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(){return"."},currency:{symbol:" Ft",position:"postfix",code:"HUF"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?vl:window)),_l.exports;var e}(),e.id=function(){return bl||(bl=1,e=wl,function(){var t={langLocaleCode:"id",cultureCode:"id",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"r",million:"j",billion:"m",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Rp",code:"IDR"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("id",t)}.call("undefined"==typeof window?yl:window)),wl.exports;var e}(),e["it-CH"]=function(){return xl||(xl=1,e=Sl,function(){var t={langLocaleCode:"it-CH",cultureCode:"it-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"°"},currency:{symbol:"CHF",code:"CHF"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("it-CH",t)}.call("undefined"==typeof window?kl:window)),Sl.exports;var e}(),e["it-IT"]=function(){return Tl||(Tl=1,e=Cl,function(){var t={langLocaleCode:"it-IT",cultureCode:"it-IT",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Il:window)),Cl.exports;var e}(),e["ja-JP"]=function(){return Dl||(Dl=1,e=Al,function(){var t={langLocaleCode:"ja-JP",cultureCode:"ja-JP",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix",code:"JPY"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?$l:window)),Al.exports;var e}(),e["ko-KR"]=function(){return Pl||(Pl=1,e=Rl,function(){var t={langLocaleCode:"ko-KR",cultureCode:"ko-KR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"천",million:"백만",billion:"십억",trillion:"일조"},ordinal:function(){return"."},currency:{symbol:"₩",code:"KPW"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Nl:window)),Rl.exports;var e}(),e["lv-LV"]=function(){return El||(El=1,e=Fl,function(){var t={langLocaleCode:"lv-LV",cultureCode:"lv-LV",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Wl:window)),Fl.exports;var e}(),e["nb-NO"]=function(){return Ol||(Ol=1,e=Ll,function(){var t={langLocaleCode:"nb-NO",cultureCode:"nb-NO",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"t"},currency:{symbol:"kr",position:"postfix",code:"NOK"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Ml:window)),Ll.exports;var e}(),e.nb=function(){return Bl||(Bl=1,e=zl,function(){var t={langLocaleCode:"nb",cultureCode:"nb",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",code:"NOK"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("nb",t)}.call("undefined"==typeof window?Ul:window)),zl.exports;var e}(),e["nl-BE"]=function(){return ql||(ql=1,e=Vl,function(){var t={langLocaleCode:"nl-BE",cultureCode:"nl-BE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?jl:window)),Vl.exports;var e}(),e["nl-NL"]=function(){return Hl||(Hl=1,e=Gl,function(){var t={langLocaleCode:"nl-NL",cultureCode:"nl-NL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Kl:window)),Gl.exports;var e}(),e.nn=function(){return Zl||(Zl=1,t={langLocaleCode:"nn",cultureCode:"nn",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"mil",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",code:"NOK"}},(e=Yl).exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.language&&window.numbro.language("nn",t)),Yl.exports;var e,t}(),e["pl-PL"]=function(){return Jl||(Jl=1,e=Xl,function(){var t={langLocaleCode:"pl-PL",cultureCode:"pl-PL",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" zł",position:"postfix",code:"PLN"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Ql:window)),Xl.exports;var e}(),e["pt-BR"]=function(){return er||(er=1,e=tr,function(){var t={langLocaleCode:"pt-BR",cultureCode:"pt-BR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"R$",position:"prefix",code:"BRL"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?sr:window)),tr.exports;var e}(),e["pt-PT"]=function(){return nr||(nr=1,e=ar,function(){var t={langLocaleCode:"pt-PT",cultureCode:"pt-PT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix",code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?ir:window)),ar.exports;var e}(),e["ro-RO"]=function(){return or||(or=1,e=lr,function(){var t={langLocaleCode:"ro-RO",cultureCode:"ro-RO",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mii",million:"mil",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" lei",position:"postfix",code:"RON"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?rr:window)),lr.exports;var e}(),e.ro=function(){return cr||(cr=1,e=dr,function(){var t={langLocaleCode:"ro",cultureCode:"ro",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mie",million:"mln",billion:"mld",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"RON",code:"RON"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("ro",t)}.call("undefined"==typeof window?ur:window)),dr.exports;var e}(),e["ru-RU"]=function(){return pr||(pr=1,e=mr,function(){var t={langLocaleCode:"ru-RU",cultureCode:"ru-RU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"руб.",position:"postfix",code:"RUB"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?hr:window)),mr.exports;var e}(),e["ru-UA"]=function(){return gr||(gr=1,e=fr,function(){var t={langLocaleCode:"ru-UA",cultureCode:"ru-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴",position:"postfix",code:"UAH"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?_r:window)),fr.exports;var e}(),e["sk-SK"]=function(){return vr||(vr=1,e=br,function(){var t={langLocaleCode:"sk-SK",cultureCode:"sk-SK",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"mld.",trillion:"bil."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix",spaceSeparated:!0,code:"EUR"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?wr:window)),br.exports;var e}(),e.sl=function(){return yr||(yr=1,t={langLocaleCode:"sl",cultureCode:"sl",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",code:"EUR"}},(e=xr).exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("sl",t)),xr.exports;var e,t}(),e["sr-Cyrl-RS"]=function(){return Sr||(Sr=1,t={langLocaleCode:"sr-Cyrl-RS",cultureCode:"sr-Cyrl-RS",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"RSD",code:"RSD"}},(e=kr).exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("sr-Cyrl-RS",t)),kr.exports;var e,t}(),e["sv-SE"]=function(){return Tr||(Tr=1,e=Cr,function(){var t={langLocaleCode:"sv-SE",cultureCode:"sv-SE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"tmd"},currency:{symbol:"kr",position:"postfix",code:"SEK"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Ir:window)),Cr.exports;var e}(),e["th-TH"]=function(){return Dr||(Dr=1,e=Ar,function(){var t={langLocaleCode:"th-TH",cultureCode:"th-TH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(){return"."},currency:{symbol:"฿",position:"postfix",code:"THB"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?$r:window)),Ar.exports;var e}(),e["tr-TR"]=function(){return Pr||(Pr=1,e=Rr,function(){var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},s={langLocaleCode:"tr-TR",cultureCode:"tr-TR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(e){if(0===e)return"'ıncı";var s=e%10;return t[s]||t[e%100-s]||t[e>=100?100:null]},currency:{symbol:"₺",position:"postfix",code:"TRY"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=s),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(s.cultureCode,s)}.call("undefined"==typeof window?Nr:window)),Rr.exports;var e}(),e["uk-UA"]=function(){return Er||(Er=1,e=Fr,function(){var t={langLocaleCode:"uk-UA",cultureCode:"uk-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴",position:"postfix",code:"UAH"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Wr:window)),Fr.exports;var e}(),e["zh-CN"]=function(){return Or||(Or=1,e=Lr,function(){var t={langLocaleCode:"zh-CN",cultureCode:"zh-CN",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix",code:"CNY"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Mr:window)),Lr.exports;var e}(),e["zh-MO"]=function(){return Br||(Br=1,t={langLocaleCode:"zh-MO",cultureCode:"zh-MO",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"MOP",code:"MOP"}},(e=zr).exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("zh-MO",t)),zr.exports;var e,t}(),e["zh-SG"]=function(){return Ur||(Ur=1,e=qr,function(){var t={langLocaleCode:"zh-SG",cultureCode:"zh-SG",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"$",code:"SGD"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture("zh-SG",t)}.call("undefined"==typeof window?Vr:window)),qr.exports;var e}(),e["zh-TW"]=function(){return jr||(jr=1,e=Kr,function(){var t={langLocaleCode:"zh-TW",cultureCode:"zh-TW",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"第"},currency:{symbol:"NT$",code:"TWD"}};e.exports&&(e.exports=t),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(t.cultureCode,t)}.call("undefined"==typeof window?Zr:window)),Kr.exports;var e}()),$i;var e,t}var Jr,Xr=(Gr||(Gr=1,Jr=Ai,function(){var e,t=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],n={general:{scale:1024,suffixes:s,marker:"bd"},binary:{scale:1024,suffixes:t,marker:"b"},decimal:{scale:1e3,suffixes:s,marker:"d"}},a=[n.general,n.binary,n.decimal],i={},o=i,l="en-US",r=null,c="0,0",d="0$",u=Jr.exports;function p(e){this._value=e}function m(e){return 0===e?1:Math.floor(Math.log(Math.abs(e))/Math.LN10)+1}function h(e){var t,s="";for(t=0;t<e;t++)s+="0";return s}function g(e,t,s,n){var a,i,o=Math.pow(10,t);return e.toString().indexOf("e")>-1?(i=function(e,t){var s,n,a,i,o,l;return s=(l=e.toString()).split("e")[0],i=l.split("e")[1],n=s.split(".")[0],a=s.split(".")[1]||"",+i>0?l=n+a+h(i-a.length):(o=+n<0?"-0":"0",t>0&&(o+="."),l=o+(h(-1*i-1)+Math.abs(n)+a).substr(0,t)),+i>0&&t>0&&(l+="."+h(t)),l}(e,t),"-"===i.charAt(0)&&+i>=0&&(i=i.substr(1))):i=(s(e+"e+"+t)/o).toFixed(t),n&&(a=new RegExp("0{1,"+n+"}$"),i=i.replace(a,"")),i}function f(e,t,s){var n,a=t.replace(/\{[^\{\}]*\}/g,"");return n=a.indexOf("$")>-1?v(e,i[l].currency.symbol,t,s):a.indexOf("%")>-1?function(e,t,s){var n,a="",i=100*e._value;return t.indexOf(" %")>-1?(a=" ",t=t.replace(" %","")):t=t.replace("%",""),(n=w(i,t,s)).indexOf(")")>-1?((n=n.split("")).splice(-1,0,a+"%"),n=n.join("")):n=n+a+"%",n}(e,t,s):a.indexOf(":")>-1?function(e){var t=Math.floor(e._value/60/60),s=Math.floor((e._value-60*t*60)/60),n=Math.round(e._value-60*t*60-60*s);return t+":"+(s<10?"0"+s:s)+":"+(n<10?"0"+n:n)}(e):w(e._value,t,s),n}function _(e,n){var a,o,c,d,u,p=n,m=!1;if(n.indexOf(":")>-1)e._value=function(e){var t=e.split(":"),s=0;return 3===t.length?(s+=60*Number(t[0])*60,s+=60*Number(t[1]),s+=Number(t[2])):2===t.length&&(s+=60*Number(t[0]),s+=Number(t[1])),Number(s)}(n);else if(n===r)e._value=0;else{for("."!==i[l].delimiters.decimal&&(n=n.replace(/\./g,"").replace(i[l].delimiters.decimal,".")),a=new RegExp("[^a-zA-Z]"+i[l].abbreviations.thousand+"(?:\\)|(\\"+i[l].currency.symbol+")?(?:\\))?)?$"),o=new RegExp("[^a-zA-Z]"+i[l].abbreviations.million+"(?:\\)|(\\"+i[l].currency.symbol+")?(?:\\))?)?$"),c=new RegExp("[^a-zA-Z]"+i[l].abbreviations.billion+"(?:\\)|(\\"+i[l].currency.symbol+")?(?:\\))?)?$"),d=new RegExp("[^a-zA-Z]"+i[l].abbreviations.trillion+"(?:\\)|(\\"+i[l].currency.symbol+")?(?:\\))?)?$"),u=1;u<t.length&&!m;++u)n.indexOf(t[u])>-1?m=Math.pow(1024,u):n.indexOf(s[u])>-1&&(m=Math.pow(1e3,u));var h=n.replace(/[^0-9\.]+/g,"");""===h?e._value=NaN:(e._value=(m||1)*(p.match(a)?Math.pow(10,3):1)*(p.match(o)?Math.pow(10,6):1)*(p.match(c)?Math.pow(10,9):1)*(p.match(d)?Math.pow(10,12):1)*(n.indexOf("%")>-1?.01:1)*((n.split("-").length+Math.min(n.split("(").length-1,n.split(")").length-1))%2?1:-1)*Number(h),e._value=m?Math.ceil(e._value):e._value)}return e._value}function v(e,t,s,n){var a,o,r=s,c=r.indexOf("$"),d=r.indexOf("("),u=r.indexOf("+"),p=r.indexOf("-"),m="",h="";if(-1===r.indexOf("$")?"infix"===i[l].currency.position?(h=t,i[l].currency.spaceSeparated&&(h=" "+h+" ")):i[l].currency.spaceSeparated&&(m=" "):r.indexOf(" $")>-1?(m=" ",r=r.replace(" $","")):r.indexOf("$ ")>-1?(m=" ",r=r.replace("$ ","")):r=r.replace("$",""),o=w(e._value,r,n,h),-1===s.indexOf("$"))switch(i[l].currency.position){case"postfix":o.indexOf(")")>-1?((o=o.split("")).splice(-1,0,m+t),o=o.join("")):o=o+m+t;break;case"infix":break;case"prefix":o.indexOf("(")>-1||o.indexOf("-")>-1?(o=o.split(""),a=Math.max(d,p)+1,o.splice(a,0,t+m),o=o.join("")):o=t+m+o;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else c<=1?o.indexOf("(")>-1||o.indexOf("+")>-1||o.indexOf("-")>-1?(a=1,(c<d||c<u||c<p)&&(a=0),(o=o.split("")).splice(a,0,t+m),o=o.join("")):o=t+m+o:o.indexOf(")")>-1?((o=o.split("")).splice(-1,0,m+t),o=o.join("")):o=o+m+t;return o}function b(e,t,s){var n,a,i,o=t[0],l=Math.abs(e);if(l>=s){for(n=1;n<t.length;++n)if(a=Math.pow(s,n),i=Math.pow(s,n+1),l>=a&&l<i){o=t[n],e/=a;break}o===t[0]&&(e/=Math.pow(s,t.length-1),o=t[t.length-1])}return{value:e,suffix:o}}function w(e,t,s,n){var o,c,d,u,p,f,_,v,w,y,x,S,k,T,C,I=!1,D=!1,A=!1,$="",P=!1,R=!1,N=!1,E=!1,F=!1,W="",O="",L=Math.abs(e),M="",B=!1,z=!1;if(0===e&&null!==r)return r;if(!isFinite(e))return""+e;if(0===t.indexOf("{")){var U=t.indexOf("}");if(-1===U)throw Error('Format should also contain a "}"');y=t.slice(1,U),t=t.slice(U+1)}else y="";if(t.indexOf("}")===t.length-1&&t.length){var q=t.indexOf("{");if(-1===q)throw Error('Format should also contain a "{"');x=t.slice(q+1,-1),t=t.slice(0,q+1)}else x="";for(k=null===(C=-1===t.indexOf(".")?t.match(/([0-9]+).*/):t.match(/([0-9]+)\..*/))?-1:C[1].length,-1!==t.indexOf("-")&&(B=!0),t.indexOf("(")>-1?(I=!0,t=t.slice(1,-1)):t.indexOf("+")>-1&&(D=!0,t=t.replace(/\+/g,"")),t.indexOf("a")>-1&&(v=t.split(".")[0].match(/[0-9]+/g)||["0"],v=parseInt(v[0],10),P=t.indexOf("aK")>=0,R=t.indexOf("aM")>=0,N=t.indexOf("aB")>=0,E=t.indexOf("aT")>=0,F=P||R||N||E,t.indexOf(" a")>-1?($=" ",t=t.replace(" a","")):t=t.replace("a",""),p=0==(p=(d=m(e))%3)?3:p,v&&0!==L&&(f=3*~~((Math.min(v,d)-p)/3),L/=Math.pow(10,f)),d!==v&&(L>=Math.pow(10,12)&&!F||E?($+=i[l].abbreviations.trillion,e/=Math.pow(10,12)):L<Math.pow(10,12)&&L>=Math.pow(10,9)&&!F||N?($+=i[l].abbreviations.billion,e/=Math.pow(10,9)):L<Math.pow(10,9)&&L>=Math.pow(10,6)&&!F||R?($+=i[l].abbreviations.million,e/=Math.pow(10,6)):(L<Math.pow(10,6)&&L>=Math.pow(10,3)&&!F||P)&&($+=i[l].abbreviations.thousand,e/=Math.pow(10,3))),u=m(e),v&&u<v&&-1===t.indexOf(".")&&(t+="[.]",t+=h(v-u))),T=0;T<a.length;++T)if(o=a[T],t.indexOf(o.marker)>-1){t.indexOf(" "+o.marker)>-1&&(W=" "),t=t.replace(W+o.marker,""),e=(c=b(e,o.suffixes,o.scale)).value,W+=c.suffix;break}if(t.indexOf("o")>-1&&(t.indexOf(" o")>-1?(O=" ",t=t.replace(" o","")):t=t.replace("o",""),i[l].ordinal&&(O+=i[l].ordinal(e))),t.indexOf("[.]")>-1&&(A=!0,t=t.replace("[.]",".")),w=t.split(".")[1],S=t.indexOf(","),w){var V=[];-1!==w.indexOf("*")?(V=(M=e.toString()).split(".")).length>1&&(M=g(e,V[1].length,s)):M=w.indexOf("[")>-1?g(e,(w=(w=w.replace("]","")).split("["))[0].length+w[1].length,s,w[1].length):g(e,w.length,s),_=(V=M.split("."))[0],M=V.length>1&&V[1].length?(n?$+n:i[l].delimiters.decimal)+V[1]:"",A&&0===Number(M.slice(1))&&(M="")}else _=g(e,0,s);return _.indexOf("-")>-1&&(_=_.slice(1),z=!0),_.length<k&&(_=h(k-_.length)+_),S>-1&&(_=_.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+i[l].delimiters.thousands)),0===t.indexOf(".")&&(_=""),y+(t.indexOf("(")<t.indexOf("-")?(I&&z?"(":"")+(B&&z||!I&&z?"-":""):(B&&z||!I&&z?"-":"")+(I&&z?"(":""))+(!z&&D&&0!==e?"+":"")+_+M+(O||"")+($&&!n?$:"")+(W||"")+(I&&z?")":"")+x}function y(e,t){i[e]=t}function x(t){l=t;var s=i[t].defaults;s&&s.format&&e.defaultFormat(s.format),s&&s.currencyFormat&&e.defaultCurrencyFormat(s.currencyFormat)}function S(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)}function k(){return Array.prototype.slice.call(arguments).reduce((function(e,t){var s=S(e),n=S(t);return s>n?s:n}),-1/0)}(e=function(t){return t=e.isNumbro(t)?t.value():"string"==typeof t||"number"==typeof t?e.fn.unformat(t):NaN,new p(Number(t))}).version="1.11.1",e.isNumbro=function(e){return e instanceof p},e.setLanguage=function(e,t){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var s=e,n=e.split("-")[0],a=null;o[s]||(Object.keys(o).forEach((function(e){a||e.split("-")[0]!==n||(a=e)})),s=a||t||"en-US"),x(s)},e.setCulture=function(e,t){var s=e,n=e.split("-")[1],a=null;i[s]||(n&&Object.keys(i).forEach((function(e){a||e.split("-")[1]!==n||(a=e)})),s=a||t||"en-US"),x(s)},e.language=function(t,s){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!t)return l;if(t&&!s){if(!o[t])throw new Error("Unknown language : "+t);x(t)}return!s&&o[t]||y(t,s),e},e.culture=function(t,s){if(!t)return l;if(t&&!s){if(!i[t])throw new Error("Unknown culture : "+t);x(t)}return!s&&i[t]||y(t,s),e},e.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return o[l];if(!o[e])throw new Error("Unknown language : "+e);return o[e]},e.cultureData=function(e){if(!e)return i[l];if(!i[e])throw new Error("Unknown culture : "+e);return i[e]},e.culture("en-US",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}}),e.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),o},e.cultures=function(){return i},e.zeroFormat=function(e){r="string"==typeof e?e:null},e.defaultFormat=function(e){c="string"==typeof e?e:"0.0"},e.defaultCurrencyFormat=function(e){d="string"==typeof e?e:"0$"},e.validate=function(t,s){var n,a,i,o,l,r,c,d;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",t)),(t=(t=t.trim()).replace(/^[+-]?/,"")).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.cultureData(s)}catch(u){c=e.cultureData(e.culture())}return i=c.currency.symbol,l=c.abbreviations,n=c.delimiters.decimal,a="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,!(null!==(d=t.match(/^[^\d\.\,]+/))&&(t=t.substr(1),d[0]!==i)||null!==(d=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),d[0]!==l.thousand&&d[0]!==l.million&&d[0]!==l.billion&&d[0]!==l.trillion)||(r=new RegExp(a+"{2}"),t.match(/[^\d.,]/g)||(o=t.split(n)).length>2||(o.length<2?!o[0].match(/^\d+.*\d$/)||o[0].match(r):""===o[0]?o[0].match(r)||!o[1].match(/^\d+$/):1===o[0].length?!o[0].match(/^\d+$/)||o[0].match(r)||!o[1].match(/^\d+$/):!o[0].match(/^\d+.*\d$/)||o[0].match(r)||!o[1].match(/^\d+$/))))},e.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),e.loadCulturesInNode()},e.loadCulturesInNode=function(){var t=Yr();for(var s in t)s&&e.culture(s,t[s])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){if(null==this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var s,n,a=this.length>>>0,i=!1;for(1<arguments.length&&(n=t,i=!0),s=0;a>s;++s)this.hasOwnProperty(s)&&(i?n=e(n,this[s],s,this):(n=this[s],i=!0));if(!i)throw new TypeError("Reduce of empty array with no initial value");return n}),e.fn=p.prototype={clone:function(){return e(this)},format:function(e,t){return f(this,e||c,void 0!==t?t:Math.round)},formatCurrency:function(e,t){return v(this,i[l].currency.symbol,e||d,void 0!==t?t:Math.round)},formatForeignCurrency:function(e,t,s){return function(e,t,s,n){return v(e,t,s,n)}(this,e,t||d,void 0!==s?s:Math.round)},unformat:function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=_(this,e);return isNaN(t)?void 0:t}},binaryByteUnits:function(){return b(this._value,n.binary.suffixes,n.binary.scale).suffix},byteUnits:function(){return b(this._value,n.general.suffixes,n.general.scale).suffix},decimalByteUnits:function(){return b(this._value,n.decimal.suffixes,n.decimal.scale).suffix},value:function(){return this._value},valueOf:function(){return this._value},set:function(e){return this._value=Number(e),this},add:function(e){var t=k.call(null,this._value,e);return this._value=[this._value,e].reduce((function(e,s){return e+t*s}),0)/t,this},subtract:function(e){var t=k.call(null,this._value,e);return this._value=[e].reduce((function(e,s){return e-t*s}),this._value*t)/t,this},multiply:function(e){return this._value=[this._value,e].reduce((function(e,t){var s=k(e,t),n=e*s;return n*=t*s,n/=s*s}),1),this},divide:function(e){return this._value=[this._value,e].reduce((function(e,t){var s=k(e,t);return e*s/(t*s)})),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},"undefined"!=typeof process&&void 0===process.browser&&process.title&&(-1!==process.title.indexOf("node")||process.title.indexOf("meteor-tool")>0||"grunt"===process.title||"gulp"===process.title)&&void 0!==Ii&&e.loadCulturesInNode(),u?Jr.exports=e:"undefined"==typeof ender&&(this.numbro=e)}.call("undefined"==typeof window?Ai.exports:window)),Ai.exports);const Qr=Ci(Xr);kt(".scn_text.svelte-hmazak {\n  width: 26rem;\n}\n.scn_stats_row.svelte-hmazak {\n  display: flex;\n  flex-direction: row;\n  padding: 0.4rem 0;\n  border-bottom: 1px solid var(--table-border);\n}\n.scn_stats_row.svelte-hmazak:last-child {\n  border-bottom: 0;\n}\n.scn_stats_row.svelte-hmazak >div:where(.svelte-hmazak):first-child {\n  flex-grow: 1;\n  flex-shrink: 0;\n}\n.scn_stats_row.svelte-hmazak >div:where(.svelte-hmazak):last-child {\n  flex-shrink: 0;\n}\n.scn_title_color.-ok strong {\n  color: var(--o2-colors-success);\n}\n.scn_title_color.-attention strong {\n  color: var(--o2-colors-attention);\n}\n.scn_title_color.-critical strong {\n  color: var(--o2-colors-critical);\n}\n");var ec=e.template('<p class="p -small g-margin-bottom--2x"> </p>'),tc=e.template('<p class="p -small g-margin-bottom--2x"><!></p>'),sc=e.template('<kin-tooltip><kin-icon></kin-icon> <div slot="tooltip" class="text -secondary -small"> </div></kin-tooltip>',2),nc=e.template("<kin-button><kin-icon></kin-icon></kin-button>",2),ac=e.template("<kin-button><kin-icon></kin-icon></kin-button>",2),ic=e.template('<p class="p -secondary"> </p>'),oc=e.template('<p class="p -secondary"><!></p>'),lc=e.template('<div slot="modal-content"><kin-icon></kin-icon> <h2 class="h2 g-margin-bottom--1x"><div><!></div></h2> <div class="g-margin-bottom--3x"><!> <!></div> <div class="g-align--left text -secondary -small"><div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div></div></div>',2),rc=e.template("<kin-button> </kin-button>",2),cc=e.template('<div slot="modal-footer"><!> <kin-button> </kin-button></div>',2),dc=e.template('<div class="kin_table__row scn_history__row" role="row"><div class="kin_table__icon"><kin-icon></kin-icon></div> <div class="kin_table__name"> <kin-tooltip><div slot="tooltip-activator"><kin-button><kin-icon></kin-icon></kin-button></div> <div slot="tooltip"><div class="text -secondary -small"><div class="scn_text svelte-hmazak"><!> <!></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div> <div class="scn_stats_row svelte-hmazak"><div class="svelte-hmazak"> </div> <div class="svelte-hmazak"> </div></div></div></div></kin-tooltip> <!></div> <div class="text -small"> </div> <div class="text -small kin_table__end"> <span> </span></div> <div class="kin_table__actions"><!> <!></div></div> <!>',3);function uc(t,n){e.push(n,!1);let a=e.prop(n,"scan",8),i=e.prop(n,"index",8);const o=s(),l=function(e){return"virus"===e.scanVerdict||e.scanVerdict.found_resolved||e.scanVerdict.found_unresolved||e.scanVerdict.found_resolved_with_error}(a()),r=function(e){return"error"===e.scanVerdict||e.scanVerdict.found_scanned_with_error}(a()),c=function(e){return"virus"===e.scanVerdict||!0===e.scanVerdict.found_unresolved}(a()),d=function(e){return!0===e.scanVerdict.found_resolved_with_error}(a()),u=function(e){return e.status===Me}(a()),p=ms(a());let m=e.mutable_source("icon-m-virus"),h=e.mutable_source(""),g=e.mutable_source("critical"),f=e.mutable_source(""),_=e.mutable_source(!1);function v(){e.set(_,!1)}l||r||u?(e.set(m,"icon-m-virus"),c||d?(e.set(h,"badge-critical"),e.set(g,"critical")):u||r&&!l?(e.set(h,"badge-attention"),e.set(g,"attention")):(e.set(h,"badge-ok"),e.set(g,"ok"))):(e.set(m,"circle-ok"),e.set(h,""),e.set(g,"ok")),r||u?r||u?e.set(f,a().infectedCount?z("scans.scanHistory.canceled.withThreats",a().infectedCount,p):z("scans.scanHistory.canceled",p)):l?e.set(f,"custom"===a().type?z("scans.scanHistory.threatsFound.scanNotComplete",a().infectedCount,a().label):z("scans.scanHistory.threatsFound.scanNotComplete",a().infectedCount,p)):e.set(f,"custom"===a().type?z("scans.scanHistory.scanNotComplete",a().label):z("scans.scanHistory.scanNotComplete",p)):e.set(f,""),e.init();var b=dc(),w=e.first_child(b),y=e.child(w),x=e.child(y);e.template_effect((()=>e.set_custom_element_data(x,"name",e.get(m)))),e.set_custom_element_data(x,"size","24"),e.template_effect((()=>e.set_custom_element_data(x,"badge",e.get(h)))),e.reset(y);var S=e.sibling(y,2),k=e.child(S);k.nodeValue=`${p??""} `;var T=e.sibling(k);e.set_class(T,1,"g-margin-right--half");var I=e.child(T),D=e.child(I);e.set_custom_element_data(D,"type","blank"),e.set_custom_element_data(D,"size","tiny"),e.set_custom_element_data(D,"icononly",!0),e.set_class(D,1,"g-margin-left--half");var A=e.child(D);e.set_custom_element_data(A,"name","icon-m-action-info"),e.set_custom_element_data(A,"size","20"),e.reset(D),e.reset(I);var $=e.sibling(I,2),P=e.child($),R=e.child(P),N=e.child(R),E=t=>{var s=ec(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.scanHistory.unresolved.tooltip")],e.derived_safe_equal),e.append(t,s)};e.if(N,(e=>{d&&e(E)}));var F=e.sibling(N,2),W=t=>{var s=tc(),n=e.child(s);e.html(n,(()=>e.get(f))),e.reset(s),e.append(t,s)};e.if(F,(t=>{e.get(f)&&t(W)})),e.reset(R);var O=e.sibling(R,2),L=e.child(O),M=e.child(L);e.reset(L);var B=e.sibling(L,2),q=e.child(B,!0);e.reset(B),e.reset(O);var j=e.sibling(O,2),H=e.child(j),G=e.child(H);e.reset(H);var K=e.sibling(H,2),Z=e.child(K,!0);e.reset(K),e.reset(j);var Y=e.sibling(j,2),J=e.child(Y),X=e.child(J);e.reset(J);var Q=e.sibling(J,2),ee=e.child(Q,!0);e.reset(Q),e.reset(Y);var te=e.sibling(Y,2),se=e.child(te),ne=e.child(se);e.reset(se);var ae=e.sibling(se,2),ie=e.child(ae,!0);e.reset(ae),e.reset(te),e.reset(P),e.reset($),e.reset(T);var oe=e.sibling(T,2),le=t=>{var s=sc(),n=e.child(s);e.set_custom_element_data(n,"slot","tooltip-activator"),e.set_custom_element_data(n,"name","icon-m-devices-usb"),e.set_custom_element_data(n,"size","20");var a=e.sibling(n,2),i=e.child(a,!0);e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(i,t)),[()=>z("scans.scanHistory.externalMediaScan.tooltip")],e.derived_safe_equal),e.append(t,s)};e.if(oe,(e=>{a().externalMediaScan&&e(le)})),e.reset(S);var re=e.sibling(S,2),ce=e.child(re,!0);e.reset(re);var de=e.sibling(re,2),ue=e.child(de),pe=e.sibling(ue),me=e.child(pe,!0);e.reset(pe),e.reset(de);var he=e.sibling(de,2),ge=e.child(he),fe=t=>{var s=nc();e.set_custom_element_data(s,"type","blank"),e.set_custom_element_data(s,"size","tiny"),e.set_custom_element_data(s,"icononly",!0),e.set_custom_element_data(s,"data-test","scn_history-row-open-details");var n=e.child(s);e.set_custom_element_data(n,"name","icon-m-play"),e.set_custom_element_data(n,"size","20"),e.reset(s),e.event("click",s,(()=>{ot({id:a().scanId})})),e.append(t,s)};e.if(ge,(e=>{(r||u)&&e(fe)}));var _e=e.sibling(ge,2),ve=t=>{var s=ac();e.set_custom_element_data(s,"type","blank"),e.set_custom_element_data(s,"size","tiny"),e.set_custom_element_data(s,"icononly",!0),e.set_class(s,1,"g-margin-left--1x"),e.set_custom_element_data(s,"data-test","scn_history-row-details-button");var n=e.child(s);e.set_custom_element_data(n,"name","icon-m-arrow-forward"),e.set_custom_element_data(n,"size","20"),e.reset(s),e.event("click",s,(()=>o("showDetail",a()))),e.append(t,s)};e.if(_e,(e=>{a().infectedCount&&e(ve)})),e.reset(he),e.reset(w);var be=e.sibling(w,2),we=t=>{C(t,{width:"630",$$events:{close:()=>v()},$$slots:{"modal-content":(t,s)=>{var n=lc(),i=e.child(n);e.template_effect((()=>e.set_custom_element_data(i,"name",e.get(m)))),e.set_custom_element_data(i,"size","72"),e.template_effect((()=>e.set_custom_element_data(i,"badge",e.get(h)))),e.set_class(i,1,"g-margin-bottom--3x");var o=e.sibling(i,2),l=e.child(o),r=e.child(l);e.html(r,(()=>z("scans.detail.foundTreats",a().infectedCount,"custom"===a().type?p:a().label))),e.reset(l),e.reset(o);var c=e.sibling(o,2),u=e.child(c),_=t=>{var s=ic(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.scanHistory.unresolved.tooltip")],e.derived_safe_equal),e.append(t,s)};e.if(u,(e=>{d&&e(_)}));var v=e.sibling(u,2),b=t=>{var s=oc(),n=e.child(s);e.html(n,(()=>e.get(f))),e.reset(s),e.append(t,s)};e.if(v,(t=>{e.get(f)&&t(b)})),e.reset(c);var w=e.sibling(c,2),y=e.child(w),x=e.child(y),S=e.child(x);e.reset(x);var k=e.sibling(x,2),T=e.child(k,!0);e.reset(k),e.reset(y);var C=e.sibling(y,2),I=e.child(C),D=e.child(I);e.reset(I);var A=e.sibling(I,2),$=e.child(A,!0);e.reset(A),e.reset(C);var P=e.sibling(C,2),R=e.child(P),N=e.child(R);e.reset(R);var E=e.sibling(R,2),F=e.child(E,!0);e.reset(E),e.reset(P);var W=e.sibling(P,2),O=e.child(W),L=e.child(O);e.reset(O);var M=e.sibling(O,2),B=e.child(M,!0);e.reset(M),e.reset(W);var q=e.sibling(W,2),j=e.child(q),H=e.child(j);e.reset(j);var G=e.sibling(j,2),K=e.child(G,!0);e.reset(G),e.reset(q);var Z=e.sibling(q,2),Y=e.child(Z),J=e.child(Y);e.reset(Y);var X=e.sibling(Y,2),Q=e.child(X,!0);e.reset(X),e.reset(Z),e.reset(w),e.reset(n),e.template_effect(((t,s,n,i,o,r,c,d,u)=>{e.set_class(l,1,"scn_title_color -"+e.get(g),"svelte-hmazak"),e.set_text(S,`${t??""}:`),e.set_text(T,s),e.set_text(D,`${n??""}:`),e.set_text($,a().infectedCount),e.set_text(N,`${i??""}:`),e.set_text(F,a().filesCount),e.set_text(L,`${o??""}:`),e.set_text(B,a().foldersCount),e.set_text(H,`${r??""}:`),e.set_text(K,c),e.set_text(J,`${d??""}:`),e.set_text(Q,u)}),[()=>z("scans.scanHistory.dateAndTime"),()=>V.dateTime(a().startTimeMs),()=>z("scans.scanHistory.infectedFiles"),()=>z("scans.scanHistory.testedFiles"),()=>z("scans.scanHistory.testedFolders"),()=>z("scans.scanHistory.testedBytes"),()=>Qr(a().bytesCount).format("0.0 b"),()=>z("scans.scanHistory.runTime"),()=>U.duration(1e3*a().runTime,"milliseconds").humanize()],e.derived_safe_equal),e.append(t,n)},"modal-footer":(t,s)=>{var n=cc(),i=e.child(n),l=t=>{var s=rc(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.viewScanResults")],e.derived_safe_equal),e.event("click",s,(()=>o("showDetail",a()))),e.append(t,s)};e.if(i,(e=>{a().infectedCount&&e(l)}));var r=e.sibling(i,2);e.set_custom_element_data(r,"type","secondary");var c=e.child(r,!0);e.reset(r),e.reset(n),e.template_effect((t=>e.set_text(c,t)),[()=>z("global.close")],e.derived_safe_equal),e.event("click",r,(()=>v())),e.append(t,n)}}})};e.if(be,(t=>{e.get(_)&&t(we)})),e.template_effect(((t,s,n,o,l,r)=>{e.set_attribute(w,"aria-rowindex",i()),e.set_attribute(w,"data-test",`table-row-${i()??""}`),e.set_text(M,`${t??""}:`),e.set_text(q,a().filesCount),e.set_text(G,`${s??""}:`),e.set_text(Z,a().foldersCount),e.set_text(X,`${n??""}:`),e.set_text(ee,o),e.set_text(ne,`${l??""}:`),e.set_text(ie,a().infectedCount),e.set_text(ce,r),e.set_text(ue,`${a().filesCount??""} /  `),e.set_class(pe,1,"-text g-font--bold color-"+e.get(g),"svelte-hmazak"),e.set_text(me,a().infectedCount)}),[()=>z("scans.scanHistory.testedFiles"),()=>z("scans.scanHistory.testedFolders"),()=>z("scans.scanHistory.testedBytes"),()=>Qr(a().bytesCount).format("0.0 b"),()=>z("scans.scanHistory.infectedFiles"),()=>V.dateTime(a().startTimeMs)],e.derived_safe_equal),e.event("click",D,(()=>{e.set(_,!0)})),e.append(t,b),e.pop()}kt(".avs .scn .scn_history__row {\n  grid-template-columns: 6% 30% 30% 24% 10%;\n}\n.scn .scn_history_empty_icon {\n  font-size: 10rem;\n}\n");const pc="s110";var mc=e.template("<kin-loading></kin-loading>",2),hc=e.template('<p class="p -secondary -small"> </p>'),gc=e.template('<!> <kin-table><div slot="table-header" role="row" class="scn_history__row"><div></div> <div role="columnheader"> </div> <div role="columnheader"> </div> <div role="columnheader" class="kin_table__end"> </div> <div></div></div> <div slot="table-body"></div></kin-table>',3),fc=e.template('<div class="g-align--center"><!> <h2 class="h2"> </h2></div>'),_c=e.template('<div class="g-margin-top--3x"><!></div>');const vc={FileSystemShield:{ask:{color:"red",title:"detection.threat.blocked",text:"detection.ask.text.FileSystemShield",actionText:"detection.whatToDo",actionButton:{action:"chest",label:"detection.action.chest",progressText:"detection.action.chest.progress",labelTest:"btn_chest"},anotherButton:[{action:"block",label:"detection.action.keepBlocking",labelTest:"btn_keepBlocking"},{action:"ignore",label:"detection.action.exception",progressText:"detection.action.exception.progress",labelTest:"btn_ignore"}],statusText:"detection.status.block"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.FileSystemShield",actionText:"detection.scanPromo",actionButton:{action:"scan",label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.chest"},exception:{color:"green",title:"detection.threat.exception",text:"detection.exception.text",actionText:"detection.noScan",actionButton:{action:"close",label:"detection.action.gotIt",labelTest:"btn_close"},statusText:"detection.status.exception"}},FileSystemShieldLnk:{ask:{color:"red",title:"detection.threat.blocked.lnk",text:"detection.ask.text.FileSystemShield.lnk",actionButton:{action:"chest",label:"detection.action.chest",progressText:"detection.action.chest.progress",labelTest:"btn_chest"},statusText:"detection.status.block"},auto:{color:"green",title:"detection.threat.secured.lnk",text:"detection.auto.text.FileSystemShield.lnk",actionText:"detection.auto.actionText.FileSystemShield.lnk",actionButton:{action:"openLnkArticle",label:"detection.action.blog.lnk",labelTest:"btn_blog"},statusText:"detection.status.chest"},autoOnly:{color:"green",title:"detection.threat.secured.lnk",text:"detection.autoOnly.text.FileSystemShield.lnk",actionText:"detection.autoOnly.actionText.FileSystemShield.lnk",actionButton:{action:"openLnkArticle",label:"detection.action.blog.lnk",labelTest:"btn_blog"},statusText:"detection.status.chest"}},FileSystemShieldSmb:{ask:{color:"red",title:"detection.threat.blocked",text:"detection.ask.text.FileSystemShield.smb",textWithBlock:"detection.ask.text.FileSystemShield.smb.withBlock",actionText:"detection.whatToDo",actionButton:{action:"chest",label:"detection.action.chest",progressText:"detection.action.chest.progress",labelTest:"btn_chest"},anotherButton:[{action:"block",label:"detection.action.keepBlocking",labelTest:"btn_keepBlocking"},{action:"ignore",label:"detection.action.exception",progressText:"detection.action.exception.progress",labelTest:"btn_ignore"}],statusText:"detection.status.block",upsellText:"detection.upsell.FileSystemShield.smb.text"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.FileSystemShield.smb",textWithBlock:"detection.auto.text.FileSystemShield.smb.withBlock",actionText:"detection.scanPromo",actionButton:{action:"scan",label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.chest",upsellText:"detection.upsell.FileSystemShield.smb.text"},exception:{color:"green",title:"detection.threat.exception",text:"detection.exception.text",textWithBlock:"detection.exception.text",actionText:"detection.noScan",actionButton:{action:"close",label:"detection.action.gotIt",labelTest:"btn_close"},statusText:"detection.status.exception"}},WebShield:{ask:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.WebShield",actionText:"detection.scanPromo",actionButton:{action:"ignore",label:"detection.action.exception",progressText:"detection.action.exception.progress",labelTest:"btn_ignore"},statusText:"detection.status.abort"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.WebShield",actionText:"detection.scanPromo",actionButton:{action:"scan",label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.abort"},iwf:{color:"green",title:"detection.iwf.title.WebShield",text:"detection.iwf.text.WebShield",addExternalLinks:!0,actionText:"detection.scanPromo",actionButton:{action:"scan",label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.connectionBlocked"},dns:{color:"green",title:"detection.threat.secured",text:"detection.dns.text.WebShield",actionText:"detection.scanPromo",actionButton:{action:"scan",label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.dnsAborted"},fakeEshop:{color:"green",title:"detection.fakeEshop.title.WebShield",text:"detection.fakeEshop.text.WebShield",actionButton:{action:"close",label:"detection.gotIt",labelTest:"btn_close"},anotherButton:[{action:"ignore",label:"detection.action.exception",progressText:"detection.action.exception.progress",labelTest:"btn_ignore"}],statusText:"detection.status.connectionBlocked"},datingScam:{color:"green",title:"detection.datingScam.title.WebShield",text:"detection.datingScam.text.WebShield",actionButton:{action:"close",label:"detection.gotIt",labelTest:"btn_close"},anotherButton:[{action:"ignore",label:"detection.action.exception",progressText:"detection.action.exception.progress",labelTest:"btn_ignore"}],statusText:"detection.status.connectionBlocked"},exception:{color:"green",title:"detection.threat.exception",text:"detection.exception.text",actionText:"detection.noScan",actionButton:{action:"close",label:"detection.action.gotIt",labelTest:"btn_close"},statusText:"detection.status.exception"}},BehaviorShield:{ask:{color:"red",title:"detection.threat.blocked",text:"detection.ask.text.BehaviorShield",actionText:"detection.whatToDo",actionButton:{action:"chest",label:"detection.action.chest",labelTest:"btn_chest"},anotherButton:[{action:"ignore",label:"detection.action.exception",progressText:"detection.action.exception.progress",labelTest:"btn_ignore"}],statusText:"detection.status.block"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.BehaviorShield",actionText:"detection.scanPromo",actionButton:{action:"scan",label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.chest"},exception:{color:"green",title:"detection.threat.exception",text:"detection.exception.text",actionText:"detection.noScan",actionButton:{action:"close",label:"detection.action.gotIt",labelTest:"btn_close"},statusText:"detection.status.exception"}},EmailShield:{ask:{color:"red",title:"detection.threat.blocked",text:"detection.ask.text.EmailShield",actionText:"detection.whatToDo",actionButton:{action:"chest",label:"detection.action.chest",progressText:"detection.action.chest.progress",labelTest:"btn_chest"},anotherButton:[{action:"block",label:"detection.action.keepBlocking",labelTest:"btn_block"},{action:"ignore",label:"detection.action.allowDownload",labelTest:"btn_ignore"}],statusText:"detection.status.block"},auto:{color:"green",title:"detection.threat.secured",text:"detection.auto.text.EmailShield",actionText:"detection.scanPromo",actionButton:{action:"scan",label:"detection.action.scan",labelTest:"btn_scan"},statusText:"detection.status.chest"}}};const bc={FileSystemShield:{error:{name:"icon-m-scan-folder",color:"critical"},ok:{name:"icon-m-scan-folder",color:"ok"}},FileSystemShieldLnk:{error:{name:"icon-xl-lnk-icon",color:"critical"},ok:{name:"icon-xl-lnk-icon-locked",color:"ok"}},FileSystemShieldSmb:{error:{name:"icon-m-scan-folder",color:"critical"},ok:{name:"icon-m-scan-folder",color:"ok"}},WebShield:{error:{name:"icon-s-web",color:"critical"},ok:{name:"icon-s-web",color:"ok"}},BehaviorShield:{error:{name:"icon-l-behavior-shield",color:"critical"},ok:{name:"icon-l-behavior-shield",color:"ok"}},EmailShield:{error:{name:"icon-l-email-shield",color:"critical"},ok:{name:"icon-l-email-shield",color:"ok"}}},wc={1.1:"adware","1.20":"phishing",1.26:"scam",1.43:"fakeEshop",1.44:"datingScam"};function yc(e){return wc[`${e.severityID}.${e.typeID}`]}function xc(e){return"URL:IWF"===e.threatName}function Sc(e){return"fakeEshop"===yc(e)||"URL:FakeShop"===e.threatName}function kc(e){return"datingScam"===yc(e)||"URL:DatingScam"===e.threatName}function Tc(e,t){return t?"WebShield"===e.shield&&!xc(e):Sc(e)||kc(e)}function Cc(){return g.getParsedValue("avdef://config/GuiCache/ABTest_WebShieldDetectionUpsell",{cached:!0}).then((e=>isNaN(e.int)?null:e.int))}function Ic(){return Z("app.utils.GetUrlParameters",334).then((e=>{const t="avg"===h.getBrand()?"troubleshoot-avg-antivirus-secure-malicious-fake-file":238;return X.browse(e.replace("&action=1","&action=2")+`&p_scr=${t}`)}))}function Dc(){return Z("app.windowManager.ShowMainWindow",{route:"#settings/exceptions"}).catch((e=>{console.error("[Virus Detection] show exceptions failed,",JSON.stringify(e))}))}function Ac(){return Z("app.settings.Get","avdef://config/GuiCache/MenuItemsDisabled").then((e=>e&&-1!=e.indexOf("viruschest")?Z("av.command","show_chest"):Z("app.windowManager.ShowMainWindow",{route:"#virusChest"})))}kt(".ups_wrap.svelte-c2mt5k {\n  border: 1px solid var(--table-border);\n  border-radius: 0.8rem;\n  padding: 0.8rem;\n  margin-top: 3.2rem;\n}\n");const $c={webShieldUpsellIpmId:203,webShieldUpsellIcon:null,webShieldVpnUpsellIcon:null,webShieldVpnUpsellIpmId:95};var Pc=e.template('<div slot="icon"><kin-icon></kin-icon></div>',2),Rc=e.template('<div slot="main-content"><div class="row__main"><div><h4 class="h4"> </h4> <p class="p -small -secondary"> </p></div></div></div>'),Nc=(e,t)=>t(),Ec=e.template('<div slot="actions"><div class="row__actions"><kin-button> </kin-button></div></div>',2),Fc=e.template('<div slot="icon"><kin-icon></kin-icon></div>',2),Wc=e.template('<div slot="main-content"><div class="row__main"><div><h4 class="h4"> </h4> <p class="p -small -secondary"> </p></div></div></div>'),Oc=(e,t)=>t(),Lc=e.template('<div slot="actions"><div class="row__actions"><kin-button> </kin-button></div></div>',2),Mc=e.template('<div slot="icon"><kin-icon></kin-icon></div>',2),Bc=e.template('<div slot="main-content"><div class="row__main"><div><h4 class="h4"> </h4> <p class="p -small -secondary"> </p></div></div></div>'),zc=(e,t)=>t(),Uc=e.template('<div slot="actions"><div class="row__actions"><kin-button> </kin-button></div></div>',2),qc=e.template('<div class="ups_wrap svelte-c2mt5k"><!></div>');function Vc(t,s){e.push(s,!0);let n=e.state(null),a=e.state(!0);function i(){J.detection.click({label:"Tabs - Upgrade",view:s.trackerTitle}),v.openWindow($c.webShieldUpsellIpmId)}function o(){J.detection.click({label:"Tabs - VPN Upsell",view:s.trackerTitle}),v.openWindow($c.webShieldVpnUpsellIpmId,{p_scr:h.isFreeProduct()?"webshield_banner_free_VPN":"webshield_banner_paid_VPN"})}function l(){J.detection.click({label:"Tabs - run SmartScan",view:s.trackerTitle}),s.runSmartScan?.()}!async function(){e.set(n,await Cc(),!0),e.set(a,!1)}();var r=qc(),c=e.child(r),d=t=>{var s=e.comment(),a=e.first_child(s),r=t=>{w(t,{noBorder:!0,$$slots:{icon:(t,s)=>{var n=Pc(),a=e.child(n);e.set_class(a,1,"g-padding-left--1x"),e.template_effect((()=>e.set_custom_element_data(a,"name",$c.webShieldVpnUpsellIcon))),e.set_custom_element_data(a,"size","48"),e.reset(n),e.append(t,n)},"main-content":(t,s)=>{var n=Rc(),a=e.child(n),i=e.child(a),o=e.child(i),l=e.child(o,!0);e.reset(o);var r=e.sibling(o,2),c=e.child(r,!0);e.reset(r),e.reset(i),e.reset(a),e.reset(n),e.template_effect(((t,s)=>{e.set_text(l,t),e.set_text(c,s)}),[()=>z("network.finished.noIssues.row2.heading"),()=>z("network.finished.noIssues.row1.desc")]),e.append(t,n)},actions:(t,s)=>{var n=Ec(),a=e.child(n),i=e.child(a);e.set_custom_element_data(i,"type","secondary"),i.__click=[Nc,o],e.set_custom_element_data(i,"size","small");var l=e.child(i,!0);e.reset(i),e.reset(a),e.reset(n),e.template_effect((t=>e.set_text(l,t)),[()=>z("global.resolve")]),e.append(t,n)}}})},c=(t,s)=>{var a=t=>{w(t,{noBorder:!0,$$slots:{icon:(t,s)=>{var n=Fc(),a=e.child(n);e.set_class(a,1,"g-padding-left--1x"),e.set_custom_element_data(a,"name","icon-l-smart-scan"),e.set_custom_element_data(a,"size","48"),e.reset(n),e.append(t,n)},"main-content":(t,s)=>{var n=Wc(),a=e.child(n),i=e.child(a),o=e.child(i),l=e.child(o,!0);e.reset(o);var r=e.sibling(o,2),c=e.child(r,!0);e.reset(r),e.reset(i),e.reset(a),e.reset(n),e.template_effect(((t,s)=>{e.set_text(l,t),e.set_text(c,s)}),[()=>z("dashboard.smartScanNotRun.bubble.desc"),()=>z("scans.scanNow.desc")]),e.append(t,n)},actions:(t,s)=>{var n=Lc(),a=e.child(n),i=e.child(a);e.set_custom_element_data(i,"type","secondary"),i.__click=[Oc,l],e.set_custom_element_data(i,"size","small");var o=e.child(i,!0);e.reset(i),e.reset(a),e.reset(n),e.template_effect((t=>e.set_text(o,t)),[()=>z("global.scanNow")]),e.append(t,n)}}})},o=t=>{w(t,{noBorder:!0,$$slots:{icon:(t,s)=>{var n=Mc(),a=e.child(n);e.set_class(a,1,"g-padding-left--1x"),e.template_effect((()=>e.set_custom_element_data(a,"name",$c.webShieldUpsellIcon))),e.set_custom_element_data(a,"size","48"),e.reset(n),e.append(t,n)},"main-content":(t,s)=>{var n=Bc(),a=e.child(n),i=e.child(a),o=e.child(i),l=e.child(o,!0);e.reset(o);var r=e.sibling(o,2),c=e.child(r,!0);e.reset(r),e.reset(i),e.reset(a),e.reset(n),e.template_effect(((t,s)=>{e.set_text(l,t),e.set_text(c,s)}),[()=>z("detection.WebShield.upsell.title"),()=>z("detection.WebShield.upsell.desc")]),e.append(t,n)},actions:(t,s)=>{var n=Uc(),a=e.child(n),o=e.child(a);e.set_custom_element_data(o,"type","secondary"),o.__click=[zc,i],e.set_custom_element_data(o,"size","small");var l=e.child(o,!0);e.reset(o),e.reset(a),e.reset(n),e.template_effect((t=>e.set_text(l,t)),[()=>z("global.upgrade")]),e.append(t,n)}}})};e.if(t,(t=>{2===e.get(n)?t(a):t(o,!1)}),s)};e.if(a,(t=>{1===e.get(n)?t(r):t(c,!1)})),e.append(t,s)};e.if(c,(t=>{e.get(a)||t(d)})),e.reset(r),e.append(t,r),e.pop()}e.delegate(["click"]);kt(".sts_wrap.svelte-iedis1 {\n  border: 1px solid var(--table-border);\n  border-radius: 0.8rem;\n  padding: 0.8rem;\n  margin-top: 3.2rem;\n}\n.sts_issue__icon.svelte-iedis1 {\n  position: relative;\n  width: 4rem;\n  height: 4rem;\n  border-radius: 4rem;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  background-color: var(--o2-colors-on-background-light);\n}\n.sts_issue__sub-icon.svelte-iedis1 {\n  position: absolute;\n  bottom: -1px;\n  right: -1px;\n}\n");var jc=e.template('<div slot="icon"><div class="sts_issue__icon svelte-iedis1"><kin-icon></kin-icon> <kin-icon></kin-icon></div></div>',2),Hc=e.template('<div slot="main-content"><div class="row__main"><div><h4 class="h4"><!></h4> <p class="p -small -secondary"> </p></div></div></div>'),Gc=e.template('<div class="sts_wrap svelte-iedis1"><!></div>');function Kc(t,s){e.push(s,!1);let n=e.mutable_source("");Z("avService.Stats.Get").then((t=>{t&&(e.set(n,t.overall.webShield.infectedCount||0),e.set(n,e.get(n)+1))})),e.init();var a=Gc(),i=e.child(a);w(i,{noBorder:!0,$$slots:{icon:(t,s)=>{var n=jc(),a=e.child(n),i=e.child(a);e.set_custom_element_data(i,"name","icon-m-website"),e.set_custom_element_data(i,"size","28");var o=e.sibling(i,2);e.set_custom_element_data(o,"name","badge-ok"),e.set_custom_element_data(o,"size","16"),e.set_class(o,1,"sts_issue__sub-icon svelte-iedis1"),e.reset(a),e.reset(n),e.append(t,n)},"main-content":(t,s)=>{var a=Hc(),i=e.child(a),o=e.child(i),l=e.child(o),r=e.child(l);e.html(r,(()=>z("detection.WebShield.stats.sitesBlocked.title",e.get(n)))),e.reset(l);var c=e.sibling(l,2),d=e.child(c,!0);e.reset(c),e.reset(o),e.reset(i),e.reset(a),e.template_effect((t=>e.set_text(d,t)),[()=>z("detection.WebShield.stats.sitesBlocked.desc")],e.derived_safe_equal),e.append(t,a)}}}),e.reset(a),e.append(t,a),e.pop()}var Zc=e.template("<dt> </dt> <dd> </dd>",1),Yc=e.template('<div class="sve_toaster__details"><dl class="desclist -short"></dl></div>');function Jc(t,s){let n=e.prop(s,"details",8);var a=Yc(),i=e.child(a);e.each(i,5,n,e.index,((t,s)=>{var n=e.comment(),a=e.first_child(n),i=t=>{var n=Zc(),a=e.first_child(n),i=e.child(a,!0);e.reset(a);var o=e.sibling(a,2),l=e.child(o,!0);e.reset(o),e.template_effect((()=>{e.set_text(i,e.get(s).title),e.set_attribute(o,"data-test",e.get(s).testValue),e.set_text(l,e.get(s).value)})),e.append(t,n)};e.if(a,(t=>{e.get(s).value&&t(i)})),e.append(t,n)})),e.reset(i),e.reset(a),e.append(t,a)}const Xc={allowWebShieldTabs:null,offerScanAction:!0,offerSmartScan:!0,getBlockIpRoute:(e={})=>`settings/blockedDevices/blockIp/${encodeURIComponent(JSON.stringify(e))}`};var Qc=e.template('<div slot="widget-icon"><kin-icon></kin-icon></div>',2),ed=e.template('<div slot="widget-main"><span class="span -small"><!></span></div>'),td=e.template('<div slot="custom-content"><!></div>');function sd(t,s){e.push(s,!1);const i=e.mutable_source(),o=e.mutable_source(),l=e.mutable_source(),r=!0;let c=e.prop(s,"chsAddException",8,(()=>{})),d=e.prop(s,"getShowPremiumTechSupport",8,(()=>!1));const u=X.getUrlParams(),p=/[/|\\]/g,m=/\|>|\|&gt|\|&gt;/g,g=1e3,_={FileSystemShield:z("shields.file"),FileSystemShieldLnk:z("shields.file"),FileSystemShieldSmb:z("shields.file"),WebShield:z("shields.web"),EmailShield:z("shields.email"),BehaviorShield:z("shields.behavior")},w=h.isFreeProduct(),y=h.isInstalled("Firewall")&&h.isLicensed("Firewall"),x=f.fileInsight;let S,k=e.mutable_source({}),T=e.mutable_source([]),C=e.mutable_source(0),I=e.mutable_source(null),D=!1,A=!1,$=!1,P=e.mutable_source(!1),R=null;function N(){return(e.get(T)[e.get(C)]||{}).alertId||""}async function E(){R=await Cc()}function F(t){if(t.windowId!==u.windowId)return;t.timestamp=t.timestamp||new Date;const s=e.get(T).findIndex((e=>e.id===t.id));s>-1?(Object.assign(e.get(T)[s],t),e.get(C)===s&&q(t)):e.get(T).push(t),e.set(I,B())}function M(t){e.set(I,t)}function B(t=e.get(T)[e.get(C)].userAction){let s,n;if(e.get(k).askForAction?("WebShield"!==e.get(k).shield&&($=!0),s=Object.assign({},vc[e.get(k).shield].ask)):s=!$&&vc[e.get(k).shield].autoOnly?Object.assign({},vc[e.get(k).shield].autoOnly):Object.assign({},vc[e.get(k).shield].auto),t&&"ignore"===t&&(s=Object.assign({},vc[e.get(k).shield].exception)),0===Object.keys(s).length)return;(D&&"scan"===s.actionButton.action||!Xc.offerScanAction)&&(s.actionText="detection.noScan",s.actionButton={action:"close",label:"detection.action.gotIt",labelTest:"btn_close"}),s.title=[`${s.title}.${e.get(k).severity}`,s.title],s.text=[`${s.text}.${e.get(k).severity}`,s.text];let a="";"WebShield"===e.get(k).shield?(n=t&&"ignore"===t?z(s.text,e.get(k).fileName):z(s.text,e.get(k).threatName,e.get(k).fileName),xc(e.get(k))?(a="_iwf",s=Object.assign({},vc.WebShield.iwf),n=z(s.text)):e.get(k).filePath.toLowerCase().startsWith("dns:")?(a="_dns",s=Object.assign({},vc.WebShield.dns),n=z(s.text,e.get(k).threatName,e.get(k).fileName)):Sc(e.get(k))&&"ignore"!==t?(a="_fakeEshop",s=Object.assign({},vc.WebShield.fakeEshop),n=z(s.text,e.get(k).fileName)):kc(e.get(k))&&"ignore"!==t&&(a="_datingScam",s=Object.assign({},vc.WebShield.datingScam),n=z(s.text,e.get(k).fileName))):e.get(k).actionFailed?n=z("detection.auto.text.FileSystemShield.block",e.get(k).fileName,e.get(k).threatName):"FileSystemShieldSmb"===e.get(k).shield?(n=z(s.text,e.get(k).fileName,e.get(k).threatName,e.get(k).refererIp),y&&!h.isPassiveMode()&&b.supportedSince("24.7")&&(s.textForFileInsight=n,n=z(s.textWithBlock,e.get(k).fileName,e.get(k).threatName,e.get(k).refererIp),s.textAction=ee)):n=z(s.text,e.get(k).fileName,e.get(k).threatName);const o=e.get(k).shield+a,r=function(t){const s=[];!function(e,t){const s=Tc(e,t);return null==t?s&&h.isFreeProduct():(J.experimentByPath("avdef://config/GuiCache/ABTest_WebShieldDetectionUpsell_experiment",{trackOnce:!0}),t?s:void 0)}(e.get(k),R)?s.push({tabId:"stats",title:z("detection.WebShield.tabs.statistics"),compo:Kc}):s.push({tabId:"upsell",title:z("detection.WebShield.tabs.upsell"),compo:{constructor:Vc,props:{runSmartScan:te,trackerTitle:t}}});if(s.push({tabId:"details",title:z("detection.WebShield.tabs.details"),compo:{constructor:Jc,props:{details:V()}}}),!Xc.allowWebShieldTabs||!Tc(e.get(k),R))return null;return s}(o),c={trackerTitle:o,color:s.color,icon:"red"===s.color?bc[e.get(k).shield].error:bc[e.get(k).shield].ok,title:z(s.title),text:n,textForFileInsight:s.textForFileInsight,textAction:s.textAction,textSanitized:!0,actionText:A?s.upsellText?z(s.upsellText):z("detection.upsell.text"):s.actionText?z(s.actionText):"",actions:[],hideSecondAction:!0,tabs:r,addExternalLinks:s.addExternalLinks,detailsAction:e.get(l)?ne:null,details:V(),status:{text:H(s)},detectionInfo:{id:N(),timestamp:(e.get(T)[e.get(C)]||{}).timestamp||"",index:e.get(C),total:e.get(T).length,showCloseAllBtn:!e.get(T).some((e=>e.ask&&!e.userAction))},showPremiumTechSupp:d()(e.get(k))&&!xc(e.get(k))};if(c.icon.color={green:"ok",ok:"ok",red:"critical",critical:"critical"}[s.color]||c.icon.color,t&&"ignore"===t&&(c.status.actionLabel=z("detection.threat.exception.openList"),c.status.action=Dc),s.actionButton&&("openLnkArticle"===s.actionButton.action?c.actions.push({label:z(s.actionButton.label),labelTest:s.actionButton.labelTest,labelTracking:s.actionButton.action,action:Ic.bind(this)}):"scan"===s.actionButton.action&&Xc.offerScanAction?c.actions.push({label:z(A?"detection.upsell.action":s.actionButton.label),labelTest:s.actionButton.labelTest,labelTracking:s.actionButton.action,action:A?()=>v.openWindow(95,{p_vir:e.get(k).name}):se}):"close"===s.actionButton.action?c.actions.push({label:z(s.actionButton.label),labelTest:s.actionButton.labelTest,labelTracking:s.actionButton.action}):c.actions.push({label:z(s.actionButton.label),labelTest:s.actionButton.labelTest,action:()=>U(s.actionButton.action),status:{text:s.actionButton.progressText?z(s.actionButton.progressText):""},minDuration:g,labelTracking:s.actionButton.action})),s.anotherButton&&s.anotherButton.forEach((e=>{c.actions.push({label:j(e.label),labelTest:e.labelTest,action:()=>U(e.action),status:{text:e.progressText?z(e.progressText):""},minDuration:g,labelTracking:e.action})})),"chest"!==e.get(k).action||"WebShield"===e.get(k).shield||e.get(k).actionFailed||(c.status.actionLabel=z("scans.detection.openVirusChest"),c.status.action=Ac,c.status.actionLabelTracking="openVirusChest"),["FileSystemShield","FileSystemShieldLnk","FileSystemShieldSmb"].includes(e.get(k).shield)){const t=()=>ie({virusChestId:e.get(k).chestId,filePath:e.get(k).filePath}).then(B);e.get(T).length>1?c.option={text:z("detection.action.reportFalsePositive"),action:t,actionLabelTracking:"FalsePositive",labelTest:"btn_falsePositive"}:c.actions.push({label:j("detection.action.reportFalsePositive"),action:t,labelTracking:"FalsePositive",labelTest:"btn_falsePositive"})}else if("WebShield"===e.get(k).shield&&!xc(e.get(k))&&b.supportedSince("24.12")){const t={blockedUrl:e.get(k).filePath,detectionName:e.get(k).threatNameExtended||e.get(k).threatName,alertId:N()},s=e.get(T).length>1&&!r,n=()=>{const n="reportedFalsePositive";return function({blockedUrl:e,detectionName:t,alertId:s}){return Promise.resolve(J.webShieldFalsePositive({blockedUrl:e,detectionName:t,alertId:s}))}(t).then((()=>{s?e.mutate(i,e.get(i).userAction=n):setTimeout((()=>{e.mutate(i,e.get(i).userAction=n)}),g);const t=B(n);return s&&M(t),t}))};s?c.option={text:z("detection.action.reportFalsePositive"),action:n,actionLabelTracking:"FalsePositive",labelTest:"btn_falsePositive"}:c.actions.push({label:j("detection.action.reportFalsePositive"),status:{text:z("detection.action.reportFalsePositive.progress")},minDuration:g,action:n,labelTracking:"FalsePositive",labelTest:"btn_falsePositive"})}return"WebShield"===e.get(k).shield&&"reportedFalsePositive"===t&&(c.title=z("detection.reportFalsePositive.title"),c.text=z("detection.reportFalsePositive.text",e.get(k).fileName),c.actionText=null,c.option=null,c.actions=[{label:z("detection.gotIt"),labelTracking:"btn_close"}]),!0===e.get(k).rebootRequired&&(c.color="red",c.title=z("scans.detection.restart.title"),c.text=z("scans.detection.restart.text",e.get(k).fileName),c.textSanitized=!0,c.actionText=z("scans.detection.restart.actionText"),c.actions=[{label:z("scans.detection.restart.actionLabel"),labelTest:"btn_restart",action:()=>Z("app.system.Restart",{rebootType:"RebootFromUI"}).then((()=>{le()}))}]),c}function U(t){"scan"===t&&(D=!0);const s={id:e.get(o),data:{showAgain:!0,sendForAnalysis:!0}};return"ignore"===t&&(s.data.showAgain=!1),Z("app.av.detections.Set",s).then((()=>Z("app.av.detections.UserChoice",{id:e.get(o),userChoice:t}))).then((()=>{if("ignore"===t){let t="avcfg://exclusions/Global/ExcludeFiles",s=e.get(k).filePath;return"WebShield"===e.get(k).shield&&(t="avcfg://exclusions/Global/ExcludeUrls",s=function(e){const t=e.match(/(^(?:(\w{2,})?:\/\/)?(?:[^@/\n]+@)?(\[[^\]]{2,}\]|[^:/?\n]+))/);return t&&t.length>1?t[1]+"/*":e}(e.get(k).filePath)),c()(s),Z("app.utils.AddExclusion",{property:t,exclusion:`"${s}"`})}})).catch((()=>Z("virusDetection.SetFormValues",{action:t,submitForAnalysis:!0}))).then((()=>"block"===t?null:(e.mutate(k,e.get(k).action=t),e.mutate(k,e.get(k).askForAction=!1),e.mutate(i,e.get(i).action=t),e.mutate(i,e.get(i).userAction=t),e.mutate(i,e.get(i).ask=!1),x.emitActionPerformed(e.get(k).detectionId,B(t),t),B(t)))).catch((e=>{console.error("setting form values failed",e)}))}function q(t){const s=z(["",`detection.threat.type.${t.severityID}.${t.typeID}`]);e.set(k,{chestId:t.chestId,detectionId:t.id,sessionId:t.sessionId,threatName:t.name,threatNameExtended:t.nameExtended,filePath:t.path,fileName:G(t.path,t.shield),processPath:t.process,action:t.ask?"block":"chest",actionFailed:!t.action,actions:[],type:t.type,severity:t.severity,severityID:t.severityID,typeID:t.typeID,threatType:s||void 0,shield:K(t),askForAction:t.ask,statusText:t.localizedAction,rebootRequired:t.rebootRequired,referer:t.referer,refererIp:Q(t.referer)})}function V(){return[{title:z("scans.threatName"),value:e.get(k).threatName,testValue:"threatName"},{title:z("global.threatType"),value:e.get(k).threatType,testValue:"threatType"},{title:"WebShield"===e.get(k).shield?z("global.url"):z("global.filePath"),value:e.get(k).filePath,testValue:"file"},{title:z("scans.detectionProcess"),value:e.get(k).processPath,testValue:"process"},{title:z("global.detectedBy"),value:_[e.get(k).shield],testValue:"detectedBy_"+e.get(k).shield}]}function H(t){return e.get(k).actionFailed?z("detection.status.block"):t.statusText?z(t.statusText):e.get(k).statusText}function G(e,t){let s;if("WebShield"===t){const t=document.createElement("a");t.href=e,s=t.hostname||e.substring(0,60)}else s="EmailShield"===t?e.split(m).pop():e.split(p).pop();return s}function K(e){return function(e){return e.path.toLowerCase().endsWith("lnk")&&"FileSystemShield"===e.shield}(e)?"FileSystemShieldLnk":function(e){return e.referer?.toLowerCase()?.startsWith("smb:")&&"FileSystemShield"===e.shield&&"write"===e.trigger}(e)?"FileSystemShieldSmb":e.shield}function Q(e){return e?.match(/^smb:\/\/(.+)$/i)?.[1]??""}function ee(){const t={ip:e.get(k).refererIp,threat_category:"smb_drop"};return Z("app.windowManager.ShowMainWindow",{route:Xc.getBlockIpRoute(t)})}function te(){return Z("app.windowManager.ShowMainWindow",{route:"#smartScan?origin=Scans_virusDetectionDialog"})}function se(){return D=!0,Xc.offerSmartScan?te():X.openMainWindow({route:`#scans/scan/${De}`})}function ne(){const t={path:e.get(k).filePath,session:e.get(k).sessionId,alertId:N(),detectionId:e.get(k).detectionId,detectionStatusTitle:e.get(I).title,detectionStatusDesc:e.get(I).textForFileInsight||e.get(I).text,detectionStatusText:e.get(I).status.text,detectionStatusColor:e.get(I).color,origin:"Detection"};return x.open(t)}function ae(){e.set(C,Math.max(e.get(C)-1,0)),q(e.get(T)[e.get(C)]),e.set(I,B())}function oe(){e.set(C,Math.min(e.get(C)+1,e.get(T).length-1)),q(e.get(T)[e.get(C)]),e.set(I,B())}function le(){if(e.get(T).splice(e.get(C),1),0==e.get(T).length)return X.close();ae()}a((()=>{S=Y.on("app.av.detections.onStatusChanged",F),Promise.all([E(),Promise.all([Z("app.settings.Get","avdef://config/multidetections/enable"),x.isEnabled()]).then((([t,s])=>{e.set(P,s);const n=[t];return t?n.push(Z("app.av.detections.GetEntireStatus",{windowId:u.windowId}).catch((()=>Z("virusDetection.GetFormValues")))):n.push(Z("app.av.detections.GetStatus",{id:u.id}).catch((()=>Z("virusDetection.GetFormValues")))),Promise.all(n)})).then((([t,s])=>{const n=t?s.detections[0]:s;if(!n)return X.close();t?e.set(T,s.detections.map((e=>(e.timestamp=e.timestamp||new Date,e)))):(s.timestamp=s.timestamp||new Date,e.get(T).push(s)),q(n)}))]).then((()=>{A=w&&window.navigator.onLine&&!xc(e.get(k))&&!Sc(e.get(k))&&"FileSystemShieldLnk"!==e.get(k).shield,e.set(I,B())})).then((()=>{X.init({wait:!0})})).catch((e=>(console.error("getting status failed",e),X.close())))})),n((()=>{S&&S()})),e.legacy_pre_effect((()=>(e.get(T),e.get(C))),(()=>{e.set(i,e.get(T)&&e.get(T)[e.get(C)]||{})})),e.legacy_pre_effect((()=>e.get(i)),(()=>{e.set(o,e.get(i).id||u.id)})),e.legacy_pre_effect((()=>(e.get(P),e.get(k))),(()=>{var t;e.set(l,e.get(P)&&(t=e.get(k),!["EmailShield","WebShield"].includes(t?.shield)))})),e.legacy_pre_effect((()=>(e.get(I),X)),(()=>{void 0===e.get(I)&&X.close()})),e.legacy_pre_effect_reset(),e.init();var re=e.comment(),ce=e.first_child(re),de=t=>{W(t,{get config(){return e.get(I)},onPrev:ae,onNext:oe,onClose:le,$$slots:{"custom-content":(t,s)=>{var n=td(),a=e.child(n),o=t=>{O(t,{visual:"light",cssCls:"g-margin--2x",$$slots:{"widget-icon":(t,s)=>{var n=Qc(),a=e.child(n);e.set_class(a,1,"g-margin--half"),e.set_custom_element_data(a,"name","badge-info"),e.set_custom_element_data(a,"size","20"),e.reset(n),e.append(t,n)},"widget-main":(t,s)=>{var n=ed(),a=e.child(n),i=e.child(a);const o=e.derived_safe_equal((()=>z("detection.reportFalsePositive.info")));L(i,{get text(){return e.get(o)},action:()=>v.openBrowser(v.Id.Help,{p_scr:"false_positive"}),cssCls:"-primary"}),e.reset(a),e.reset(n),e.append(t,n)}}})};e.if(a,(t=>{"reportedFalsePositive"===e.get(i).userAction&&t(o)})),e.reset(n),e.append(t,n)}}})};return e.if(ce,(t=>{e.get(I)&&t(de)})),e.append(t,re),e.bind_prop(s,"handlesWindowInit",r),e.pop({handlesWindowInit:r})}const nd={error:{name:"icon-l-behavior-shield",color:"critical"},ok:{name:"icon-l-behavior-shield",color:"ok"}};function ad(t,s){e.push(s,!1);const o=e.mutable_source(),l=e.mutable_source(),r=e.mutable_source(),d=!0;let u=e.prop(s,"getShowPremiumTechSupport",8,(()=>!1));const p=c.createLogger("idp.detectionDialog"),m=/[/|\\]/g,h="block",_="allow",v=X.getUrlParams(),b=v.id,w=v.windowId,y=f.fileInsight,x={};let S,k,T,C=e.mutable_source([]),I=e.mutable_source(0),D=e.mutable_source(null),A=!1;function $(){return(e.get(C)[e.get(I)]||{}).alertId||""}function P(){e.set(I,Math.max(e.get(I)-1,0)),q(e.get(C)[e.get(I)])}function R(){e.set(I,Math.min(e.get(I)+1,e.get(C).length-1)),q(e.get(C)[e.get(I)])}function N(){if(e.get(C).splice(e.get(I),1),0==e.get(C).length)return X.close();P()}function E(){return e.get(r)?X.close():N()}function F(e){x.processName=e.processName,x.targetFile=e.targetFile,x.infectionTranslated=function(e){const t="%s_cmd";e.includes(t)&&(e=e.replace(t,""),e=z("scans.idp.detection.commandLineDetection",e));return e}(e.infection),x.showAction=e.showAction,x.restoreAvailable=e.restoreAvailable,x.alertId=e.alertId,x.timestamp=new Date,x.type=e.type,x.inQuarantine=!1!==e.inQuarantine,x.sessionId=e.sessionId}function O(t=e.get(C)[e.get(I)].userAction){p.info("getConfig");const s={hideTitlebarClose:x.showAction,color:x.showAction?"red":"green",icon:x.showAction?nd.error:nd.ok,actions:[],hideSecondAction:!0,detailsAction:A?L:null,details:[{title:z("scans.threatName"),value:x.infectionTranslated,testValue:"threatName"},{title:"registry"===x.type?z("scans.registryPath"):z("global.filePath"),value:x.targetFile,testValue:"filePath"},{title:z("scans.detectionProcess"),value:x.processName,testValue:"process"},{title:z("global.detectedBy"),value:"arpot"===x.type?z("shields.antiExploit"):z("shields.behavior"),testValue:"arpot"===x.type?"detectedBy_AntiExploitShield":"detectedBy_BehaviorShield"}],detectionInfo:{id:$(),timestamp:(e.get(C)[e.get(I)]||{}).timestamp||"",index:e.get(I),total:e.get(C).length,showCloseAllBtn:e.get(r)},showPremiumTechSupp:u()(x)};return x.showAction?(s.title=z("scans.detection.action.block.title"),s.text=z("scans.idp.detection.text",H(),x.infectionTranslated),s.textSanitized=!0,s.actionText=z("scans.detection.whatWouldYouLikeToDo"),s.actions=[{label:z("scans.detection.action.chest.label"),labelTest:"btn_chest",labelTracking:"chest",action:j.bind(this,h),status:{text:z("scans.detection.action.chest.progressText")},minDuration:2e3},{label:z("scans.idp.action.allow.label"),labelTest:"btn_ignore",labelTracking:"ignore",action:j.bind(this,_),status:{text:z("scans.detection.action.ignore.progressText")},cssCls:"-critical",minDuration:2e3}]):(s.title=x.inQuarantine?z("scans.detection.action.chest.title"):z("scans.detection.action.block.title"),x.restoreAvailable&&x.inQuarantine?s.text=z("scans.detection.action.chest.resultText",H(),x.infectionTranslated):s.text=z("detection.auto.text.FileSystemShield.block",H(),x.infectionTranslated),s.textSanitized=!0,s.actionText=z("scans.detection.scanPromo"),s.actions=[{label:z("scans.detection.action.scan.label"),labelTest:"btn_scan",labelTracking:"scan",action:G.bind(this)}],x.restoreAvailable&&x.inQuarantine?s.status={text:z("detection.status.chest"),actionLabel:z("scans.detection.openVirusChest"),action:M.bind(this)}:s.status={text:z("detection.status.block")}),s}function L(){const t={path:x.targetFile,session:x.sessionId,detectionId:e.get(l),alertId:$(),detectionStatusTitle:e.get(D).title,detectionStatusDesc:e.get(D).text,detectionStatusText:e.get(D).status?.text,detectionStatusColor:e.get(D).color,origin:"Detection"};return y.open(t)}function M(){return X.openMainWindow({route:"virusChest"})}function B(){return Z("app.windowManager.ShowMainWindow",{route:"#settings/exceptions"}).catch((e=>{p.error("[BehaviorShield Detection] show exceptions failed,",JSON.stringify(e))}))}function U(e,t){p.info("getDoneConfig");const s=O();return s.hideTitlebarClose=!1,!0===t.restartRequired?(s.color="red",s.icon=nd.error,s.title=z("scans.detection.restart.title"),s.text=z("scans.detection.restart.text",H()),s.textSanitized=!0,s.actionText=z("scans.detection.restart.actionText"),s.actions=[{label:z("scans.detection.restart.actionLabel"),labelTest:"btn_restart",labelTracking:"restart",action:()=>Z("app.system.Restart",{rebootType:"RebootFromUI"}).then((()=>{N()}))}]):0!==t.errorCode?(s.color="red",s.icon=nd.error,s.title=z("scans.detection.not.removed.title"),s.text=z("scans.detection.not.removed.text",H()),s.textSanitized=!0,s.actionText=z("scans.detection.not.removed.actionText"),s.actions=[{label:z("scans.detection.action.scan.label"),labelTest:"btn_scan",labelTracking:"scan",action:()=>Z("app.windowManager.ShowMainWindow",{route:"scans/scan/{7C4966F0-D502-412D-A636-ACCC39A24BB2}"}).then((()=>{N()}))}]):e===_?(s.title=z("scans.detection.action.ignore.title"),s.text=z("scans.detection.action.ignore.text",H()),s.textSanitized=!0,s.actionText=z("scans.detection.action.ignore.actionText"),s.color="green",s.icon=nd.ok,s.actions=[{label:z("detection.gotIt"),labelTest:"detection.gotIt",labelTracking:"gotIt",cssCls:"",minDuration:500}],s.status={text:z("detection.threat.exception.moved"),actionLabel:z("detection.threat.exception.openList"),action:B.bind(this)}):(s.color="green",s.icon=nd.ok,s.title=z("scans.detection.action.chest.title"),x.restoreAvailable&&x.inQuarantine?s.text=z("scans.detection.action.chest.resultText",H(),x.infectionTranslated):s.text=z("detection.auto.text.FileSystemShield.block",H(),x.infectionTranslated),s.textSanitized=!0,s.actionText=z("scans.detection.scanPromo"),s.actions=[{label:z("scans.detection.action.scan.label"),labelTest:"btn_scan",labelTracking:"scan",action:G.bind(this)}],x.restoreAvailable&&x.inQuarantine?s.status={text:z("detection.status.chest"),actionLabel:z("scans.detection.openVirusChest"),action:M.bind(this)}:s.status={text:z("detection.status.block")}),s}function q(t){if(t.windowId!==v.windowId)return;t.timestamp=t.timestamp||new Date;const s=e.get(C).findIndex((e=>e.id===t.id));if(s>-1){if(Object.assign(e.get(C)[s],t),e.get(I)===s&&(F(t),null!=t.errorCode)){const s=e.get(o).userAction||h;return e.set(D,U(s,t)),V(e.get(D)),void y.emitActionPerformed(e.get(l),e.get(D),s)}}else e.get(C).push(t);e.set(D,O()),V(e.get(D))}function V(e){T&&T(e),T=void 0}function j(t){return Z("app.av.detections.UserChoice",{id:e.get(l),userChoice:t}).then((()=>(e.mutate(o,e.get(o).userAction=t),new Promise((e=>{T=e}))))).catch((e=>{throw p.error("app.av.detections.UserChoice failed with error",e),e}))}function H(){const e=x.targetFile||x.processName;if(!e)return"";let t=e.split(m).pop();var s;return t=i.escapeHtml((s=t).slice(0,30)+(s.length>30?"...":"")),"registry"!==x.type||t?t:"(Default)"}function G(){return Z("app.windowManager.ShowMainWindow",{route:"#smartScan?origin=scans_idpDetectionDialog"}).then(N)}a((()=>{S=Y.on("app.av.detections.onStatusChanged",q)})),n((()=>{S?.()})),function(){let t=!1;return p.info("loadData"),Promise.all([g.getValue("avdef://config/multidetections/enableForIDP"),y.isEnabled()]).then((([e,s])=>{k="1"==e,t=s;const n=e=>({detections:[e]});return k?Z("app.av.detections.GetEntireStatus",{windowId:w}).catch((e=>(p.error("app.av.detections.GetEntireStatus failed",e),Z("app.av.detections.GetStatus",{id:b}).then(n)))):Z("app.av.detections.GetStatus",{id:b}).then(n)})).then((s=>{const n=s.detections[0];return n?(e.set(C,s.detections.map((e=>(e.timestamp=e.timestamp||new Date,e)))),F(n),A=t&&"arpot"!==x.type,n):X.close()})).catch((e=>{p.error("app.av.detections.GetStatus failed",e),X.close()}))}().then((t=>{null!=t.errorCode?e.set(D,U(h,t)):e.set(D,O()),X.init({wait:!0})})),e.legacy_pre_effect((()=>(e.get(C),e.get(I))),(()=>{e.set(o,e.get(C)?.[e.get(I)]||{})})),e.legacy_pre_effect((()=>e.get(o)),(()=>{e.set(l,e.get(o).id||b)})),e.legacy_pre_effect((()=>(e.get(D),X)),(()=>{void 0===e.get(D)&&X.close()})),e.legacy_pre_effect((()=>e.get(C)),(()=>{e.set(r,e.get(C).every((e=>!e.showAction)))})),e.legacy_pre_effect_reset(),e.init();var K=e.comment(),J=e.first_child(K),Q=t=>{W(t,{get config(){return e.get(D)},windowClose:E,$$events:{prev:P,next:R}})};return e.if(J,(t=>{e.get(D)&&t(Q)})),e.append(t,K),e.bind_prop(s,"handlesWindowInit",d),e.pop({handlesWindowInit:d})}function id(t,s){e.push(s,!1);const n=!0,a=2e3,i=X.getUrlParams().id;let o={},l="",r=!1,c=e.mutable_source({}),d=null;const u=()=>{r?X.close():g()};function p(e){const t=e.detail;"sendForAnalysis"===t.valueName&&(d=t.value)}function m(e,t){return e.slice(0,t)+(e.length>t?"...":"")}function h(e){return e.split(/[/|\\]/g).pop()}function g(){v("ignore").finally((()=>{X.close()}))}function f(){return X.openMainWindow({route:"#smartScan?origin=Scans_antirootkitDetectionDialog"}).then(g)}function _(){return X.openMainWindow({route:"scans/boottimeScan"}).then((()=>{g()}))}function v(e){return new Promise(((t,s)=>{const n=e,a={id:i,data:{showAgain:!0}};"createException"===e&&(e="ignore",a.data.showAgain=!1),o.showSendForAnalysis&&(a.data.sendForAnalysis=d),Z("app.av.detections.Set",a).then((()=>{Z("app.av.detections.UserChoice",{id:i,userChoice:e}).then((()=>{r=!0}))})).catch((e=>{console.error("doAction Failed, error:",e),s(e)}));const c=Y.on("app.av.detections.onStatusChanged",(e=>{c(),"resolved"===e.state&&"ignore"!==n?t(function(e,t){const s=h(o.data[0].file),n=o.data.length,a="rootkit"===l,i={icon:nd.ok,color:"green",formItems:null};if(0!==t)i.color="red",i.title=z("scans.detection.not.removed.title"),i.text=z("scans.detection.not.removed.text.short",s),i.textSanitized=!0,i.actionText=z("scans.detection.not.removed.actionText"),i.actions=[{label:z("scans.detection.action.scan.label"),action:()=>{a?_():f()},labelTest:"btn_scan",labelTracking:"scan"}];else switch(e){case"createException":i.title=z("scans.detection.action.ignore.title"),i.text=n>1?z("scans.antirootkit.detection.rootkit.moreFiles.movedToExceptionList1",s)+z("scans.antirootkit.detection.rootkit.moreFiles.movedToExceptionList2",n-1):z("scans.antirootkit.detection.rootkit.movedToExceptionList",s),i.textSanitized=!0,i.status={text:z("scans.detection.action.ignore.title")},i.actionText=z("scans.antirootkit.detection.rootkit.movedToExceptionList.actionText",n),i.actions=[{label:z("detection.gotIt"),labelTest:"btn_close",labelTracking:"gotIt"}];break;case"delete":i.title=z("scans.antirootkit.detection.rootkit.title.deleted",n),i.textSanitized=!0,i.text=n>1?z("scans.antirootkit.detection.rootkit.moreFiles.deleted1",s)+" "+z("scans.antirootkit.detection.rootkit.moreFiles.deleted2",n-1):z("scans.antirootkit.detection.rootkit.deleted",s),i.status={text:z("global.deleted")},i.actionText=z("scans.detection.scanPromo"),i.actions=[{label:z("scans.detection.action.scan.label"),action:()=>{a?_():f()},labelTest:"btn_scan",labelTracking:"scan"}]}if(d){const e=[];e.push({type:"label",title:z("global.options"),label:z("scans.antirootkit.detection.sentForAnalysis"),valueName:"sendForAnalysis",value:d}),i.formItems=e}return i}(n,e.errorCode)):s()}))}))}Z("app.av.detections.GetStatus",{id:i}).then((t=>{"show"===t.state?(!function(e){o=e}(t),function(e){l=e.data[0].type}(t),e.set(c,function(){switch(l){case"rootkit":case"susp":return function(){const e=o.data.length,t=z("shields.antiRootkit"),s=[],n=h(o.data[0].file);let i="";Array.isArray(o.data)&&o.data.length&&(i=o.data.map((e=>e.file)));const l=[{title:z("scans.threatName"),value:o.data[0].virus},{title:z("global.filePath"),value:i},{title:z("global.detectedBy"),value:t}];o.showSendForAnalysis&&(d=!0,s.push({type:"checkbox",title:z("global.options"),label:z("scans.detection.action.sendToAnalyse"),valueName:"sendForAnalysis",value:d}));let r;r=e>1?"<strong>"+n+"</strong> "+z("scans.antirootkit.detection.rootkit.moreFiles.desc",e-1):z("scans.antirootkit.detection.rootkit.desc",n);return{icon:nd.error,color:"red",title:z("scans.antirootkit.detection.rootkit.title",e),text:r,textSanitized:!0,actionText:z("scans.detection.whatWouldYouLikeToDo"),actions:[{label:z("global.delete"),action:v.bind(this,"delete"),minDuration:a,status:{text:z("detection.action.exception.deleting")},labelTest:"btn_delete",labelTracking:"delete"},{label:z("detection.action.ignoreForNow"),action:v.bind(this,"ignore"),labelTest:"btn_ignoreForNow",labelTracking:"ignoreForNow"},{label:z("scans.detection.action.ignore.label"),action:v.bind(this,"createException"),minDuration:a,status:{text:z("detection.action.exception.progress")},labelTest:"btn_createException",labelTracking:"createException"}],details:l,status:{text:z("global.detected")},formItems:s}}();case"arpot":return function(){const e=function(e){const t=[];for(let s of e.split("\n"))s=m(s,256),t.push(s);return t.join("<br>")}(o.data[0].origin),t=o.data[0].virus,s=h(o.data[0].file),n=[{title:z("scans.threatName"),value:t,testValue:"threatName"},{title:z("global.filePath"),value:o.data[0].file,testValue:"file"},{title:z("scans.antirootkit.detection.origin"),value:e},{title:z("global.detectedBy"),value:z("shields.antiExploit"),testValue:"detectedBy_AntiExploitShield"}];return{icon:nd.ok,color:"green",title:z("detection.threat.secured"),text:t?z("scans.antirootkit.detection.arpot.desc",s,t):z("scans.antirootkit.detection.arpot.noVirus.desc",s),textSanitized:!0,actionText:z("scans.detection.whatWouldYouLikeToDo"),actions:[{label:z("scans.detection.action.scan.label"),action:()=>{f()},labelTest:"btn_scan",labelTracking:"scan"}],details:n,status:{text:z("global.detected")}}}()}}()),X.init({wait:!0})):X.close()})).catch((e=>{console.error("Loading status failed",e)})),e.init();var b=e.comment(),w=e.first_child(b),y=t=>{W(t,{get config(){return e.get(c)},windowClose:u,$$events:{formItemUpdated:p}})};return e.if(w,(t=>{e.get(c)&&t(y)})),e.append(t,b),e.bind_prop(s,"handlesWindowInit",n),e.pop({handlesWindowInit:n})}function od(t,s){e.push(s,!1);const n=!0,a=X.getUrlParams();let i=e.mutable_source({});function o(e,t){let s="scans/scanHistory";void 0!==e&&void 0!==t&&(s+=`/${e}/${t}`),X.openMainWindow({route:s}).then((()=>{X.close({reason:X.CLOSE_REASONS.navigateToOtherWindow})}))}Z("app.av.detections.GetStatus",{id:a.id}).then((async t=>{e.set(i,await async function(e){if(!e||0===e?.scans?.length)return Promise.reject("no status");let t;t=e?.scans?.length>0?{scanId:e.scans[0].scan_id,sessionId:e.scans[0].session_id,totalScans:e.scans.length,totalInfected:e.scans.reduce(((e,t)=>e+(t.infected||0)),0)}:{scanId:e.scan_id,sessionId:e.session_id,totalScans:1,totalInfected:e.infected||0};if(!t||!t.totalInfected)return Promise.reject("no scan threats");if(t.totalScans>1)t.scanName=z("scans.scans");else{const e=await Z("app.scans.GetScanProps",{id:t.scanId});t.scanName=ms({scanId:t.scanId,type:e.scanType,label:e.label})}return{color:"red",icon:{name:"circle-critical"},title:z("scans.threatsFound",t.totalInfected),titleSanitized:!0,text:z("scans.threatsFound.desc",t.totalInfected,t.scanName),actions:[{label:z("scans.resolveNow"),action:t.totalScans>1?o.bind(this):o.bind(this,t.scanId,t.sessionId),labelTracking:"seeResults",labelTest:"btn_seeResults"},{label:z("global.maybeLater"),action:()=>{X.close()}}]}}(t)),X.init({wait:!0})})).catch((e=>{console.error("unresolvedScanDetection failed with error",e),X.close()})),e.init();var l=e.comment(),r=e.first_child(l),c=t=>{W(t,{get config(){return e.get(i)}})};return e.if(r,(t=>{e.get(i)&&t(c)})),e.append(t,l),e.bind_prop(s,"handlesWindowInit",n),e.pop({handlesWindowInit:n})}const ld="{93876F24-B4F5-4DBC-97B9-762CD8066719}",rd={name:"circle-critical"};function cd(t,s){e.push(s,!1);const n=!0,i=X.getUrlParams(),o=ld,l=i.session,r=parseInt(i.issues),c=z("scans.scanType.startup"),d=z("scans.toasters.scanProgress.title.finished",c),u=z("scans.toasters.scanProgress.text.issues",r),p={label:z("scans.toasters.scanProgress.buttonLabel"),action:function(){J.toaster.click({label:"Details",actionType:J.toaster.ActionTypes.Primary}),X.openMainWindow({route:"scans/scan/"+o+(null==l?"":"/"+l)}),X.closeToaster({reason:X.CLOSE_REASONS.navigateToOtherWindow})}},m=rd;return a((()=>{r||X.close(),X.init()})),e.init(),M(t,{icon:m,title:d,titleSanitized:!0,desc:u,cta:p,tracking:{view:!0,close:!0}}),e.bind_prop(s,"handlesWindowInit",n),e.pop({handlesWindowInit:n})}const dd="icon-l-scan-targeted";function ud(t,s){e.push(s,!1);const a=e.mutable_source(),i=!0,o=X.getUrlParams(),l=o.scanId,r=o.sessionId,c=e.mutable_source({name:dd}),d={label:z("scans.toasters.scanProgress.buttonLabel"),action:function(){J.toaster.click({label:"Details",actionType:J.toaster.ActionTypes.Primary}),X.openMainWindow({route:"scans/scan/"+l+(null==r?"":"/"+r)}),X.closeToaster({reason:X.CLOSE_REASONS.navigateToOtherWindow})}};let u,p,m=e.mutable_source(),h=e.mutable_source(),g=e.mutable_source(),f=e.mutable_source(),_=e.mutable_source(),v=e.mutable_source(),b=!1;return async function(){const t=await Z("app.scans.GetScanProps",{id:l});p=t.scanType,e.set(v,ms({id:l,type:p,label:t.label})),u=new Ce(l,r),await u.waitForStatus(),u.status.subscribe((t=>function(t){const s=t.status;if(!b&&s!==Se.RUNNING){const e=s===Se.DONE?"done":"stopped";J.toaster.automatedActivity({label:"Number of Issues",view:"scans_scanProgressToaster",custom:{a1:p,a4:e,a5:t.problemsCount}}),b=!0}e.set(g,s===Se.RUNNING),e.set(_,t.progress),e.set(f,t.problemsCount)}(t)))}().then((()=>X.init())).catch((()=>X.close({reason:X.CLOSE_REASONS.error}))),n((()=>{u?.destroy()})),e.legacy_pre_effect((()=>(e.get(g),e.get(_))),(()=>{e.set(a,e.get(g)?e.get(_):null)})),e.legacy_pre_effect((()=>(e.get(g),e.get(v),e.get(c),e.get(f))),(()=>{e.get(g)?(e.set(m,z("scans.toasters.scanProgress.title.running",e.get(v))),e.set(h,null),e.mutate(c,e.get(c).illustration="i-toaster-ok"),delete e.get(c).severity):e.get(f)?(e.set(m,z("scans.toasters.scanProgress.title.finished",e.get(v))),e.set(h,z("scans.toasters.scanProgress.text.issues",e.get(f))),e.mutate(c,e.get(c).illustration="i-sparkles-negative"),e.mutate(c,e.get(c).severity="critical")):(e.set(m,z("scans.toasters.scanProgress.title.finished",e.get(v))),e.set(h,z("scans.toasters.scanProgress.text.noIssues")),e.mutate(c,e.get(c).illustration="i-sparkles-positive"),e.mutate(c,e.get(c).severity="ok"))})),e.legacy_pre_effect_reset(),e.init(),M(t,{get icon(){return e.get(c)},get title(){return e.get(m)},titleSanitized:!0,get desc(){return e.get(h)},get progress(){return e.get(a)},cta:d,tracking:{view:!0,close:!0}}),e.bind_prop(s,"handlesWindowInit",i),e.pop({handlesWindowInit:i})}class pd{#re;#ce;#de;#ue;#pe;#me;#he;constructor(e){this.scannerId=e.scannerId,this.callbacks=e.callbacks,this.getSkipModalData=e.getSkipModalData,this.#re=[],this.#ce=void 0,this.#de=void 0,this.#ue=0,this.#he=te(""),this.lastScanned=be(this.#he,(e=>e))}init(){delete localStorage.threatsCleaningOffer,this._startPollingForPath()}destroy(){this._clearPollingForPath()}fire(e,...t){this.callbacks[e]?.(...t)}_startPollingForPath(){this.#de=setInterval((()=>{Z("app.scanViruses.GetStatus",{scanId:Ie}).then((e=>{if("done"===e.status)return clearInterval(this.#de),void this._clearIntervalLastScanned();this._pushLastScanned(e.lastScanned),this._startIntervalLastScanned()}))}),400)}_clearPollingForPath(){clearInterval(this.#de),this._clearIntervalLastScanned()}_pushLastScanned(e){if(!e)return this._clearIntervalLastScanned(),this.#re=[],void this.#he.set("");e=this.normalizePath(e),this.#re.indexOf(e)>-1?this._clearIntervalLastScanned():(6===this.#re.length?this.#re.shift():this.#he.set(e),this.#re.push(e))}_startIntervalLastScanned(){this.#ce||6!==this.#re.length||(this.#ce=setInterval((()=>{this.#he.set(this.#re[this.#ue++%6])}),400/6))}_clearIntervalLastScanned(){clearInterval(this.#ce),this.#ce=void 0}normalizePath(e){return"string"!=typeof e?"":e=(e=e.replace(/\\+/g,"\\")).replace(/([a-z]:)?(\\)/g,(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}))}dispatchScannerResults(){if(null==this.#pe)return;const e=this.#pe.selectable,t=this.#pe.all,s=this.#me?0:e,n=this.#me?t:t-e,a={unresolved:s,resolved:n},i={p_ssuv:s,p_ssrv:n};this.fire("onSaveScannerResults",{scannerId:this.scannerId,results:a,ipmParams:i})}onStop(){this.fire("onTrackSmartScanStop"),this.fire("onStopScanner")}onNext(){this.fire("onTrackSmartScanClick",{label:"continue"}),this.dispatchScannerResults(),this.fire("onNextScanner")}onUpdateScannerData(e){"done"===e?.status&&(this._clearPollingForPath(),0===e.issuesCount&&(this.dispatchScannerResults(),this.fire("onTrackSmartScanResult",{scannerId:this.scannerId,state:"result",issuesCount:e.issuesCount})))}onUpdateThreatsCounts(e){this.#pe=e}onAllResolved(e){this.#me=e,e&&this.fire("onAllIssuesResolved",this.scannerId)}onThreatsResolved(){this.fire("onTrackSmartScanClick",{label:"continue"}),this.dispatchScannerResults(),this.fire("onNextScanner")}onTrackResult(e){this.fire("onTrackSmartScanResult",e)}onThreatsSkip(){this.fire("onTrackSmartScanClick",{label:"skip"}),this.dispatchScannerResults();const e=this.getSkipModalData?.({threatsCount:this.#pe.selectable});this.fire("onSkipScanner",{scannerId:this.scannerId,customSkipModal:e})}}kt(".kin_table__header {\n  grid-template-columns: 4rem calc(4rem + 23%) auto 27%;\n}\n.kin_table__row {\n  grid-template-columns: calc(4rem + 4rem + 23%) auto 27%;\n}\n.scn_sub-icon {\n  position: absolute;\n  top: 50%;\n  left: 2rem;\n}\n/* (unused) :global([dir='rtl']) .scn_sub-icon {\n  right: 2rem;\n  left: auto;\n}*/\n");var md=e.template("<kin-loading></kin-loading>",2),hd=e.template('<div slot="scanning-subtitle"><!></div>'),gd=e.template('<span class="color-ok -text" data-test="ss_scanViruses_titleResolved"> </span>'),fd=e.template('<h1 class="h2 kin_scan__title"><!></h1> <p class="kin_scan__subtitle"><!></p>',1),_d=e.template('<h1 class="h2 kin_scan__title" data-test="ss_scanViruses_title"><!></h1> <p class="kin_scan__subtitle"> </p>',1),vd=e.template('<div slot="page-desc"><!></div>'),bd=e.template('<div slot="page-content"><!></div>'),wd=e.template('<div slot="page-actions" class="smr_page__actions"><!></div>');function yd(t,s){e.push(s,!1);const[a,i]=e.setup_stores(),o=()=>e.store_get(C,"$threatsCounts",a),l=()=>e.store_get(T,"$allResolved",a),r=e.mutable_source(),c=e.mutable_source();let d=e.prop(s,"scannerData",8),u=e.prop(s,"scannerId",8),p=e.prop(s,"isFreedomProgress",8,null),m=e.prop(s,"onAllIssuesResolved",8,null),h=e.prop(s,"onSaveScannerResults",8,null),g=e.prop(s,"onStopScanner",8,null),f=e.prop(s,"onNextScanner",8,null),_=e.prop(s,"onSkipScanner",8,null),v=e.prop(s,"onTrackSmartScanClick",8,null),b=e.prop(s,"onTrackSmartScanStop",8,null),w=e.prop(s,"onTrackSmartScanResult",8,null);const y=new qa({scanId:Ie}),x=new pd({scannerId:u(),callbacks:{onAllIssuesResolved:m(),onSaveScannerResults:h(),onStopScanner:g(),onNextScanner:f(),onSkipScanner:_(),onTrackSmartScanClick:v(),onTrackSmartScanStop:b(),onTrackSmartScanResult:w()}}),{loading:S,resolving:k,allResolved:T,threatsCounts:C}=y,{lastScanned:I}=x;x.init(),n((()=>{x.destroy()})),e.legacy_pre_effect((()=>e.deep_read_state(d())),(()=>{"done"===d()?.status&&d()?.issuesCount&&y.init({preselectAll:!0})})),e.legacy_pre_effect((()=>o()),(()=>{e.set(r,Boolean(o()?.error.length))})),e.legacy_pre_effect((()=>o()),(()=>{e.set(c,Boolean(o()?.needReboot.length))})),e.legacy_pre_effect((()=>l()),(()=>{x.onAllResolved(l())})),e.legacy_pre_effect((()=>o()),(()=>{x.onUpdateThreatsCounts(o())})),e.legacy_pre_effect((()=>e.deep_read_state(d())),(()=>{x.onUpdateScannerData(d())})),e.legacy_pre_effect_reset(),e.init();var D=e.comment(),A=e.first_child(D),$=t=>{var s=md();e.set_custom_element_data(s,"fullscreen",!0),e.append(t,s)},P=(t,s)=>{var n=t=>{const s=e.derived_safe_equal((()=>x.onStop())),n=e.derived_safe_equal((()=>z("scans.ss2.progress.title",d().progress)));G(t,{get onStop(){return e.get(s)},get scannerId(){return u()},get scannerData(){return d()},get isFreedomProgress(){return p()},get title(){return e.get(n)},$$slots:{"scanning-subtitle":(t,s)=>{var n=hd(),i=e.child(n);E(i,{get text(){return e.store_get(I,"$lastScanned",a)},ellipsisInMiddle:"true",width:"75%"}),e.reset(n),e.append(t,n)}}})},i=(t,s)=>{var n=t=>{const s=e.derived_safe_equal((()=>x.onNext())),n=e.derived_safe_equal((()=>z("scans.ss2.noIssues.title"))),a=e.derived_safe_equal((()=>z("scans.ss2.noIssues.subtitle")));K(t,{get onNext(){return e.get(s)},get scannerId(){return u()},get isFreedomProgress(){return p()},get title(){return e.get(n)},get subtitle(){return e.get(a)}})},i=t=>{N(t,{get disabled(){return e.store_get(k,"$resolving",a)},disabledAreas:["!actions"],$$slots:{"page-desc":(t,s)=>{var n=vd(),i=e.child(n),d=t=>{var s=e.comment(),n=e.first_child(s),a=t=>{var s=fd(),n=e.first_child(s),a=e.child(n),i=t=>{var s=e.comment(),n=e.first_child(s);e.html(n,(()=>z("scans.ss2.resolvedWithError.title",e.get(r)))),e.append(t,s)},o=(t,s)=>{var n=t=>{var s=e.comment(),n=e.first_child(s);e.html(n,(()=>z("scans.postponedUntilNextReboot.title",e.get(c)))),e.append(t,s)},a=t=>{var s=gd(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.ss2.allResolved.title")],e.derived_safe_equal),e.append(t,s)};e.if(t,(t=>{e.get(c)?t(n):t(a,!1)}),s)};e.if(a,(t=>{e.get(r)?t(i):t(o,!1)})),e.reset(n);var l=e.sibling(n,2),d=e.child(l),u=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.resolvedWithError.subtitle",e.get(r))],e.derived_safe_equal),e.append(t,s)},p=(t,s)=>{var n=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.postponedUntilNextReboot.subtitle")],e.derived_safe_equal),e.append(t,s)},a=t=>{var s=e.text();e.template_effect((t=>e.set_text(s,t)),[()=>z("scans.ss2.allResolved.subtitle")],e.derived_safe_equal),e.append(t,s)};e.if(t,(t=>{e.get(c)?t(n):t(a,!1)}),s)};e.if(d,(t=>{e.get(r)?t(u):t(p,!1)})),e.reset(l),e.append(t,s)},i=t=>{var s=_d(),n=e.first_child(s),a=e.child(n);e.html(a,(()=>z("scans.ss2.results.title",o().all))),e.reset(n);var i=e.sibling(n,2),l=e.child(i,!0);e.reset(i),e.template_effect((t=>e.set_text(l,t)),[()=>z("scans.ss2.results.subtitle")],e.derived_safe_equal),e.append(t,s)};e.if(n,(e=>{l()?e(a):e(i,!1)})),e.append(t,s)};e.if(i,(t=>{e.store_get(S,"$loading",a)||t(d)})),e.reset(n),e.append(t,n)},"page-content":(t,s)=>{var n=bd();sa(e.child(n),{threatsManager:y,$$events:{trackResults:()=>x.onTrackResult()}}),e.reset(n),e.append(t,n)},"page-actions":(t,s)=>{var n=wd();ba(e.child(n),{threatsManager:y,onResolved:()=>x.onThreatsResolved(),onSkip:()=>x.onThreatsSkip()}),e.reset(n),e.append(t,n)}}})};e.if(t,(e=>{0===d().issuesCount?e(n):e(i,!1)}),s)};e.if(t,(e=>{"done"!==d().status?e(n):e(i,!1)}),s)};e.if(A,(e=>{d()?e(P,!1):e($)})),e.append(t,D),e.pop(),i()}const xd=`avcfg://settings/${Pe}/ScanAreas`,Sd=`avcfg://settings/${Pe}/ScanPUP`,kd=`avcfg://settings/${Pe}/ScanPackers`,Td=`avcfg://settings/${Pe}/VirusAction`,Cd={scanPup:{label:zs,desc:Us,path:Sd,load:null,change:null,changeEvent:"scan.boottime.scanPup",track:{subject:"Scan PUP"}},scanPackers:{label:Ks,path:kd,load:null,change:null,track:{subject:"Unpack archives"}},scanAreas:{path:xd,options:[{label:Zs.allHardDisks,value:"AllHarddisks"},{label:Zs.systemDisk,value:"SystemDisk",isRecommended:!0}],load:null,change:null,track:{subject:"Scan areas"}},scanStartup:{id:"settings-scans-boottime-scanStartup",label:Zs.startup,load:null,change:null,track:{subject:"Scan auto start programs"},testAttr:null},automaticActions:{path:Td,load:null,change:null,options:[{label:Xs.fix,desc:Xs.fixDesc,value:"fix",isRecommended:!0},{label:Xs.chest,value:"chest"},{label:Xs.delete,value:"delete"},{label:Xs.nothing,value:""}],track:{subject:"Automatic action"}},scanTools:{id:"settings-scans-boottime-scanTools",label:qs,desc:Vs,load:null,change:null,updateOnEvent:"settings.change.scan.boottime.scanPup",track:{subject:"Scan Tools"}}},Id=se.props2searchItems(Cd);var Dd=e.template('<div class="settings__indent"><!></div>'),Ad=e.template('<h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><!></div> <h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><!></div> <h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><div class="g-margin-top--2x"><!> <div class="g-margin-top--2x"><!></div></div></div> <h3 class="h3 g-margin-top--4x"> </h3> <div class="g-margin-left--3x"><!></div>',1);const $d=null,Pd={idAttr:"settings-scans-full",titleId:Bs.full,compo:{constructor:dn,props:{scanId:"{7C4966F0-D502-412D-A636-ACCC39A24BB2}",scanType:"full"}},tabId:"full",getSearchItems:()=>an.getSearchItems("full")},Rd={idAttr:"settings-scans-folder",titleId:Bs.folder,compo:{constructor:dn,props:{scanId:"{C6156735-F7A2-4387-94A7-0479004A7310}",scanType:"folder"}},tabId:"folder",getSearchItems:()=>an.getSearchItems("folder")},Nd={idAttr:"settings-scans-explorer",titleId:Bs.explorer,compo:{constructor:dn,props:{scanId:"{2243A056-84B3-4327-8E46-5FE41F72EE91}",scanType:"explorer"}},tabId:"explorer",getSearchItems:()=>an.getSearchItems("explorer")},Ed={idAttr:"settings-scans-boottime",titleId:Bs.boottime,compo:function(t,s){e.push(s,!1);const n=new xe({id:Pe,type:"boottime"}),a=Cd,i=e.mutable_source(a.scanPup),o=e.mutable_source(a.scanTools),l=e.mutable_source(a.scanAreas),r=e.mutable_source(a.scanStartup),c=e.mutable_source(a.scanPackers),d=e.mutable_source(a.automaticActions);let u,p;function m(e,t){return function(e){return p&&!e||(p=g.get(xd).then((e=>(u={locked:e.locked,areas:{}},e.value.replace(/"/g,"").split(";").forEach((e=>{u.areas[e]=!0})),p=null,u)))),p}(t).then((t=>{let s;return s=Array.isArray(e)?e.find((e=>t.areas[e])):Boolean(t.areas[e]),{locked:t.locked,value:s}}))}function h(e,t){return Array.isArray(e)?e.forEach((e=>{e===t?u.areas[e]=!0:delete u.areas[e]})):t?u.areas[e]=!0:delete u.areas[e],function(){const e=Object.keys(u.areas).map((e=>'"'+e+'"')).join(";");return g.set(xd,e)}()}e.mutate(i,e.get(i).load=function(){return g.get(Sd).then((e=>({locked:e.locked,value:e.value>0})))}),e.mutate(i,e.get(i).change=function(e){return g.set(Sd,e?1:0)}),e.mutate(o,e.get(o).load=function(){return g.get(Sd).then((e=>({locked:e.locked,value:2==e.value})))}),e.mutate(o,e.get(o).change=function(e){return g.set(Sd,e?2:1)}),e.mutate(c,e.get(c).load=function(){return g.get(kd).then((e=>({locked:e.locked,value:1==e.value||"All"==e.value})))}),e.mutate(c,e.get(c).change=function(e){return g.set(kd,e?1:0)}),e.mutate(l,e.get(l).load=m.bind(null,["AllHarddisks","SystemDisk"])),e.mutate(l,e.get(l).change=h.bind(null,["AllHarddisks","SystemDisk"])),e.mutate(r,e.get(r).load=m.bind(null,"Startup")),e.mutate(r,e.get(r).change=h.bind(null,"Startup")),e.mutate(r,e.get(r).testAttr=n.getPropTestAttr("ScanAreas","Startup")),e.mutate(d,e.get(d).load=function(){return Promise.all([n.loadProp("VirusAction"),n.loadProp("AutomaticallyApplyActionsDuringScan")]).then((e=>{const t=e[0];return"0"===e[1].value&&(t.value=""),t}))}),e.mutate(d,e.get(d).change=function(e){return e?Promise.all([n.saveProp("AutomaticallyApplyActionsDuringScan",1),n.saveProp("VirusAction",e),n.saveProp("SuspiciousAction",e),n.saveProp("PUPAction",e)]):n.saveProp("AutomaticallyApplyActionsDuringScan",0)}),e.init();var f=Ad(),_=e.first_child(f),v=e.child(_,!0);e.reset(_);var b=e.sibling(_,2),w=e.child(b);k(w,{get prop(){return e.get(i)},$$events:{value:t=>e.mutate(o,e.get(o).disabled=!t.detail)},children:(t,s)=>{var n=Dd(),a=e.child(n);k(a,{get prop(){return e.get(o)}}),e.reset(n),e.append(t,n)},$$slots:{default:!0}}),e.reset(b);var y=e.sibling(b,2),x=e.child(y,!0);e.reset(y);var S=e.sibling(y,2),C=e.child(S);k(C,{get prop(){return e.get(c)}}),e.reset(S);var I=e.sibling(S,2),D=e.child(I,!0);e.reset(I);var A=e.sibling(I,2),$=e.child(A),P=e.child($);T(P,{get prop(){return e.get(l)}});var R=e.sibling(P,2),N=e.child(R);k(N,{get prop(){return e.get(r)}}),e.reset(R),e.reset($),e.reset(A);var E=e.sibling(A,2),F=e.child(E,!0);e.reset(E);var W=e.sibling(E,2),O=e.child(W);T(O,{get prop(){return e.get(d)}}),e.reset(W),e.template_effect(((t,s,n,a)=>{e.set_text(v,t),e.set_text(x,s),e.set_text(D,n),e.set_attribute($,"id",`${e.get(l).id??""}__container`),e.set_text(F,a)}),[()=>z("settings.general"),()=>z(Ks),()=>z(Zs.label),()=>z("scans.settings.automaticActions")],e.derived_safe_equal),e.append(t,f),e.pop()},tabId:"boottime",getSearchItems:()=>Id};let Fd=[];Fd=[],Fd.push(Pd),Fd.push(Rd),Fd.push(Nd),Fd.push(Ed);const Wd=ve();function Od(){return{title:Ls,desc:Ms,items:Fd.map((e=>({title:e.titleId,postroute:()=>Wd.set(e.tabId),items:e.getSearchItems()})))}}function Ld(t,s){e.push(s,!1);const[a,i]=e.setup_stores();let o=e.prop(s,"router",24,(()=>$d));const l=Fd.map((e=>({title:z(e.titleId),...e}))),r=o()?.on("/:tabId",(e=>{Wd.set(e.tabId)}));function c(e){Y.emit("Settings.track",{action:"Click",label:e})}n((()=>{r?.()})),e.init();const d=e.derived_safe_equal((()=>z(Ls))),u=e.derived_safe_equal((()=>z(Ms)));B(t,{get title(){return e.get(d)},get desc(){return e.get(u)},noInstall:!0,noEnable:!0,children:(t,s)=>{A(t,{tabs:l,onTabClick:c,get selectedTabId(){return e.mark_store_binding(),e.store_get(Wd,"$selectedTabId",a)},set selectedTabId(t){e.store_set(Wd,t)},$$legacy:!0})},$$slots:{default:!0}}),e.pop(),i()}const Md=[{label:z("geek.scan.full"),id:De},{label:z("geek.scan.targeted"),id:Ae},{label:"Explorer Scan",id:"{2243A056-84B3-4327-8E46-5FE41F72EE91}"},{label:z("geek.scan.quick"),id:$e}],Bd=[{label:"Automatic action to be performed during the scan",path:{name:"avcfg://settings/***TaskGUID***/VirusAction"},type:"select",options:[{label:"Fix automatically",value:"fix"},{label:z("geek.move.to.chest"),value:"trezor"},{label:"Repair",value:"repair"},{label:"Abort connection",value:"abort"},{label:"Ask",value:"interactive"},{label:"Delete",value:"delete"},{label:"Nothing",value:""}]},{label:"Processing of infected archives",path:{name:"avcfg://settings/***TaskGUID***/ActionOnPackedFile"},type:"select",options:[{label:"Try to remove only the packed file from the archive; if it fails, do nothing",value:"onlyfile"},{label:"Try to remove only the packed file; if it fails, remove the whole containing archive",value:"filearchive"},{label:"Always remove the whole archive",value:"wholearchive"}]},{label:"Speed up scanning by using persistent cache",desc:"This option will increase the scan speed by consulting the persistent cache before scanning each file.",path:{name:"avcfg://settings/***TaskGUID***/ConsultUsn"},type:"checkbox"},{label:"Store data about scanned files in the persistent cache",desc:"This option tells the engine to populate the persistent cache during the scan. Turning this option on will slow down the scan.",path:{name:"avcfg://settings/***TaskGUID***/PopulateUsn"},type:"checkbox"},{label:"Speed up scanning by reading files in the order they are stored on the disk",desc:"This option will tell the engine to scan files in the order they are actually stored on the disk. This minimizes the number of seek operations the drive has to make which usually speeds up the whole scan. This option is only effective on NTFS volumes.",path:{name:"avcfg://settings/***TaskGUID***/ScanFilesOrdered"},type:"checkbox"},{label:"Report file name",path:{name:"avcfg://settings/***TaskGUID***/ReportName"},type:"text"},{label:"Report file type",path:{name:"avcfg://settings/***TaskGUID***/Report"},type:"select",options:[{label:"Plain text (ANSI)",value:"TXT"},{label:"Plain text (Unicode)",value:"UTXT"},{label:"XML",value:"XML"}]},{label:"If report file exists",path:{name:"avcfg://settings/***TaskGUID***/OverwriteReport"},type:"select",options:[{label:"Append",value:"0"},{label:"Overwrite",value:"1"}]},{label:"Reported items",desc:"Possible values: Infected, HardErrors, SoftErrors, OK, Skipped. Values are separated by semicolon (e.g. OK;Skipped). There may be also values Start and Stop but they have no effect.",path:{name:"avcfg://settings/***TaskGUID***/ReportRecords"},type:"text"}],zd=[{label:"Do not start the scan if running on batteries",path:{name:"avcfg://settings/***TaskGUID***/DoNotStartOnBatteries"},type:"checkbox"},{label:"Pause the scan if batteries mode begins",path:{name:"avcfg://settings/***TaskGUID***/PauseOnBatteries"},type:"checkbox"}],Ud=[{label:"Boot-Time Scan: Automatic action to be performed during the scan",path:`avcfg://settings/${Pe}/VirusAction`,type:"select",options:[{label:"Auto",value:"fix"},{label:z("geek.move.to.chest"),value:"chest"},{label:"Repair",value:"repair"},{label:"Ask",value:"ask"},{label:"Delete",value:"delete"},{label:"Nothing",value:"ignore"}]},{path:"avcfg://settings/BootTimeScan/AllowWinRE",cond:Z("GetIPMParam",["p_osv"]).then((e=>e&&parseFloat(e[0])>=10)),restartNeeded:!0,label:"Boot-Time Scan: Run in Windows Recovery Environment (restart needed)",type:"checkbox"},{path:"avcfg://settings/Scanner/RawBootTimeScan",label:z("geek.scan.raw.boottime.label"),desc:"Without the raw disk access, the Boot-Time Scan will not be able to detect some rootkits.",type:"checkbox"},{path:"avcfg://settings/Scanner/SkipSignatureChecks",label:"Skip checking of digital signatures of infected files",desc:"The information from digital signatures can be used to prevent false alarms.",type:"checkbox"},{path:"avcfg://settings/Common/CleanUpScanLogs",label:"Delete scan logs",type:"checkbox"},{path:"avcfg://settings/UserInterface/AutoDelete",label:"Delete scan logs older than",type:"number",minValue:0,unit:"days"},{path:"avcfg://settings/Common/CleanUpScanLogsTemp",label:"Delete temporary scan logs",type:"checkbox"},{path:"avcfg://settings/Common/AutoDeleteSessions",label:"Delete temporary scan logs older than",type:"number",minValue:0,unit:"days"},{id:"scans_cleanHistory",label:"Clean scan history",type:"button",action:Z.bind(null,"app.scans.CleanHistory")}],qd={id:"Scans",titleId:"scans",loadProps:()=>Z("app.scanViruses.GetScans").then((e=>{const t=e.filter((e=>"custom"===e.type)),s=Md.concat(t),n=[];return s.forEach((e=>{let t;t="custom"===e.type?Bd.concat(zd):Bd,t.forEach((t=>{const s=d({},t);s.label=e.label+": "+s.label,s.path.objectId=e.id,n.push(s)}))})),n.concat(Ud)})).catch((e=>(console.error("loading scans to get all scan geek properties failed",e),Ud)))};var Vd;Vd={allowWebShieldTabs:!0},Object.assign(Xc,Vd),function(e){Object.assign($c,e)}({webShieldUpsellIcon:"icon-l-av-premium",webShieldVpnUpsellIcon:"icon-l-product-vpn"}),function(e){Object.assign(Fn,e)}({learnMore:{badge:"scans",title:"scans.learnMore",desc:"scans.learnMore.desc",overview:"scans.learnMore.overview",illustration:{name:"m386",nameSpaghetti:"i-324"},benefits:[{desc:"scans.learnMore.benefits.1.desc"},{desc:"scans.learnMore.benefits.2.desc"},{desc:"scans.learnMore.benefits.3.desc"},{desc:"scans.learnMore.benefits.4.desc"}],introKey:"scans"},tabScanHistoryCompo:function(t,s){e.push(s,!1);let n=e.mutable_source(!0),a=e.mutable_source([]);function i(e){const t=e.detail.scanId,s=e.detail.sessionId;window.location.hash="#scans/scanHistory/"+t+"/"+s}!async function(){e.set(a,await rt()),e.set(n,!1)}(),e.init();var o=_c(),l=e.child(o),r=t=>{var s=mc();e.append(t,s)},c=t=>{var s=e.comment(),n=e.first_child(s),o=t=>{var s=gc(),n=e.first_child(s),o=t=>{var s=hc(),n=e.child(s,!0);e.reset(s),e.template_effect((t=>e.set_text(n,t)),[()=>z("scans.scanHistory.desc")],e.derived_safe_equal),e.append(t,s)};e.if(n,(e=>{e(o)}));var l=e.sibling(n,2);e.template_effect((()=>e.set_custom_element_data(l,"datalength",e.get(a).length)));var r=e.child(l),c=e.sibling(e.child(r),2),d=e.child(c,!0);e.reset(c);var u=e.sibling(c,2),p=e.child(u,!0);e.reset(u);var m=e.sibling(u,2),h=e.child(m,!0);e.reset(m),e.next(2),e.reset(r);var g=e.sibling(r,2);e.each(g,5,(()=>e.get(a)),e.index,((t,s,n)=>{uc(t,{get scan(){return e.get(s)},index:n,$$events:{showDetail:i}})})),e.reset(g),e.reset(l),e.template_effect(((t,s,n)=>{e.set_text(d,t),e.set_text(p,s),e.set_text(h,n)}),[()=>z("scans.scanName"),()=>z("scans.scanHistory.dateScanned"),()=>z("scans.scanHistory.filesTested")],e.derived_safe_equal),e.append(t,s)},l=t=>{var s=fc(),n=e.child(s);I(n,{get name(){return pc},nameSpaghetti:"i-l-077",cssCls:"scn_history_empty_icon g-margin-top--4x g-margin-bottom--2x"});var a=e.sibling(n,2),i=e.child(a,!0);e.reset(a),e.reset(s),e.template_effect((t=>e.set_text(i,t)),[()=>z("scans.scanHistory.noScans")],e.derived_safe_equal),e.append(t,s)};e.if(n,(t=>{e.get(a).length?t(o):t(l,!1)})),e.append(t,s)};e.if(l,(t=>{e.get(n)?t(r):t(c,!1)})),e.reset(o),e.append(t,o),e.pop()}}),function(e){Object.assign(ni,e)}({unscheduledIllustration:"l087",scheduledIllustration:"l075"}),function(e){Object.assign(Ya,e)}({offlineIcon:"circle-attention"});export{vn as ScanSettings,yd as SmartScanV2,id as antirootkitDetectionDialog,Ti as default,sd as detection,ad as idpDetectionDialog,od as pendingUnresolvedScanDetection,ud as scanProgressToaster,St as serviceProxy,Ld as settings,qd as settingsGeek,Od as settingsSearchStrings,cd as startupScanNotification,gs as utils};const jd={name:"scans",version:"1.3.2710",created:"2025-10-02T14:41:06.100Z"};export{jd as metadata};
