From cce3cbcda5873ddf365565cfb5d280fcba799e60 Mon Sep 17 00:00:00 2001 From: Sky Date: Tue, 25 Jul 2023 22:44:53 -0400 Subject: [PATCH] add message to windows 11 react --- win11/assets/index.4ca906ee.js | 4 ++-- win11/locales/en/translate.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/win11/assets/index.4ca906ee.js b/win11/assets/index.4ca906ee.js index e3b0880b..bdd53854 100644 --- a/win11/assets/index.4ca906ee.js +++ b/win11/assets/index.4ca906ee.js @@ -850,14 +850,14 @@ SOUTHWEST FLORIDA \u2013 Like a lot of teenagers, Sean Sullivan loves video game Along with the with the daily infectio\u2026 [+8437 chars]`},{source:{id:null,name:"The Indian Express"},author:"Express News Service",title:"Adolescents in India have high level of exposure to risk factors for developing non-communicable diseases: Survey - The Indian Express",description:"Adolescents from urban areas had a higher proportion of risk factors than those from rural areas. Only two-thirds reported being imparted health education on NCD risk factors in their schools and colleges, and lower proportions said they saw any health promot\u2026",url:"https://indianexpress.com/article/india/india-adolescents-non-communicable-disease-level-of-exposure-7383402/",urlToImage:"https://images.indianexpress.com/2021/02/students13.jpg",publishedAt:"2021-06-30T17:38:35Z",content:"One in every 10 adolescents in India had experimented with smoke or smokeless forms of tobacco, one-fourth were insufficiently physically active, 6.2 per cent adolescents were overweight and nearly h\u2026 [+2209 chars]"},{source:{id:null,name:"BloombergQuint"},author:"Katharine Gemmell",title:"U.K.\u2019s Most Vulnerable Could Get Covid Boosters From September - BloombergQuint",description:"U.K.\u2019s Most Vulnerable Could Get Covid Boosters From September",url:"https://www.bloombergquint.com/onweb/u-k-s-most-vulnerable-could-get-covid-boosters-from-september",urlToImage:"https://gumlet.assettype.com/bloombergquint%2F2018-08%2F3a8e2237-2edb-4494-bcf2-231993fb6108%2FBLOOMBERG_LOGO.png?rect=0%2C56%2C1920%2C1008&w=1200&auto=format%2Ccompress&ogImage=true",publishedAt:"2021-06-30T17:22:44Z",content:`Vulnerable groups in the U.K. may be given Covid-19 booster vaccines starting from September to maintain their immunity during the winter and help ward off new variants.\r The countrys independent vac\u2026 [+1975 chars]`},{source:{id:null,name:"Republic World"},author:"Press Trust Of India",title:"Private hospital in Delhi treating two patients with cytomegalovirus infection - Republic World",description:"Private hospital in Delhi treating two patients with cytomegalovirus infection",url:"https://www.republicworld.com/india-news/city-news/private-hospital-in-delhi-treating-two-patients-with-cytomegalovirus-infection.html",urlToImage:"https://img.republicworld.com/republic-prod/stories/promolarge/xhdpi/m5ybyh3tm6gfplbj_1618399351.jpeg",publishedAt:"2021-06-30T16:17:21Z",content:"New Delhi, Jun 30 (PTI) Two people suffering from cytomegalovirus infection following recovery from COVID-19 have been admitted to a leading private hospital in Delhi during the second wave of the pa\u2026 [+2063 chars]"},{source:{id:null,name:"Nature.com"},author:null,title:"Malaria vaccine gets a parasite boost in the liver - Nature.com",description:"Clinical evidence points to an effective vaccination approach.",url:"https://www.nature.com/articles/d41586-021-01720-6",urlToImage:"https://media.nature.com/lw1024/magazine-assets/d41586-021-01720-6/d41586-021-01720-6_19299160.png",publishedAt:"2021-06-30T15:14:27Z",content:"Malaria has long remained among the worst infectious-disease threats to human health. There were 229 million clinical cases of malaria and more than 400,000 deaths from this disease reported during 2\u2026 [+9581 chars]"},{source:{id:null,name:"CNBC"},author:"Ian Thomas",title:"How CRISPR gene editing will treat diseases in future: Nobel-winning Intellia co-founder Jennifer Doudna - CNBC",description:"Jennifer Doudna, 2020 Nobel Prize winner in chemistry for CRISPR gene editing and co-founder of Intellia Therapeutics, on future of the breakthrough technology.",url:"https://www.cnbc.com/2021/06/30/how-crispr-gene-editing-will-treat-disease-intellia-founder-doudna-.html",urlToImage:"https://image.cnbcfm.com/api/v1/image/105924772-1558442732965gettyimages-528038980.jpeg?v=1624980369",publishedAt:"2021-06-30T14:04:55Z",content:`Gene-editing technology CRISPR reached a major milestone this past weekend, completing its first systemic delivery as a medicine to a human body.\r CRISPR, or clustered regularly interspaced short pal\u2026 [+4678 chars]`},{source:{id:"usa-today",name:"USA Today"},author:"Brett Molina, USA TODAY",title:"Facebook ramps up plans to deliver COVID-19 vaccines to underserved communities - USA TODAY",description:"Facebook said Wednesday it will partner with nonprofits to deliver vaccines via mobile truck to schools and community spaces.",url:"https://www.usatoday.com/story/tech/2021/06/30/facebook-covid-vaccine-mobile-truck-austin-new-york-seattle/7808732002/",urlToImage:"https://www.gannett-cdn.com/presto/2021/06/03/USAT/c946279a-ec69-484f-9d26-f56398727996-AP_Facebook-Covid_Posts.jpg?auto=webp&crop=5999,3374,x0,y27&format=pjpg&width=1200",publishedAt:"2021-06-30T14:03:39Z",content:`Facebook said it is expanding plans to deliver COVID-19 vaccines to underserved communities.\r -The company said in a statement Wednesday it will partner with local nonprofits near their Menlo Park, Ca\u2026 [+2267 chars]`},{source:{id:null,name:"India.com"},author:"Zee Media Bureau",title:"No scientific evidence to prove COVID vaccine causes infertility, says Health Ministry - Zee News",description:"The Centre on Wednesday reiterated that there is no scientific evidence suggesting COVID-19 vaccination can cause infertility in men and women and asserted the vaccines have been found to be safe and effective.",url:"https://zeenews.india.com/india/no-scientific-evidence-to-prove-covid-vaccine-causes-infertility-says-health-ministry-2372947.html",urlToImage:"https://english.cdn.zeenews.com/sites/default/files/2021/06/30/947973-vaccination-india-reuters.jpg",publishedAt:"2021-06-30T11:43:32Z",content:"New Delhi: The Centre on Wednesday reiterated that there is no scientific evidence suggesting COVID-19 vaccination can cause infertility in men and women and asserted the vaccines have been found to \u2026 [+2263 chars]"},{source:{id:null,name:"Hindustan Times"},author:"hindustantimes.com",title:"Delta Plus: What should diabetic, high BP people do? All you need to know - Hindustan Times",description:"People with uncontrolled diabetes are at an increased risk of all infections in general, experts have said earlier. | Latest News India",url:"https://www.hindustantimes.com/india-news/delta-plus-what-should-diabetic-high-bp-people-do-all-you-need-to-know-101625052587694.html",urlToImage:"https://images.hindustantimes.com/img/2021/06/30/1600x900/PTI04_28_2021_000089B_1625052832441_1625052852076.jpg",publishedAt:"2021-06-30T11:38:28Z",content:"The new variant of SARS-CoV-2 Delta Plus has brought back some containment at local levels. Maharashtra has reimposed some curbs while Karnataka has again made negative RT-PCR results or vaccine cert\u2026 [+2336 chars]"}],news={status,totalResults,articles};var hisTemp=history,date=new Date,event=hisTemp[Math.floor(Math.random()*hisTemp.length)];date.setYear(event.year);var newsList=[];for(var i$1=0;i$1{if(rem!=null){var o=rem;return rem=null,o}else if(a)return rem=Math.floor(Math.random()*s),rem;return Math.floor(Math.random()*s)},defState$5={data:{weather:{city:"New Delhi",country:"India",wstate:wstates[getRandom(10,1)],icon:abbr[getRandom()],temp:30+getRandom(20),rain:10+getRandom(80),wind:4+getRandom(5),days:[0,1,2,3].map(s=>({day:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][(new Date().getDay()+s)%7],icon:abbr[getRandom(10)],min:30+getRandom(10),max:40+getRandom(10)}))},stock:[[Number(parseFloat(2300+Math.random()*200).toFixed(2)).toLocaleString(),parseFloat(Math.random()*2).toFixed(2),Math.round(Math.random())],[Number(parseFloat(600+Math.random()*200).toFixed(2)).toLocaleString(),parseFloat(Math.random()*2).toFixed(2),Math.round(Math.random())]],date:date.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),event,news:newsList},hide:!0},widReducer=(s=defState$5,a)=>{switch(a.type){case"WIDGHIDE":return{...s,hide:!0};case"WIDGTOGG":return{...s,hide:!s.hide};case"WIDGREST":return a.payload;default:return s}};var dev="";const defState$4={};for(var i=0;i{var o={...s};if(a.type=="EDGELINK"){var _={...o.edge};return a.payload&&a.payload.startsWith("http")?_.url=a.payload:a.payload&&a.payload.length!=0?_.url="https://www.bing.com/search?q="+a.payload:_.url=null,_.size="full",_.hide=!1,_.max=!0,o.hz+=1,_.z=o.hz,o.edge=_,o}else if(a.type=="SHOWDSK"){for(var $=Object.keys(o),j=0;j<$.length;j++){var _=o[$[j]];_.hide==!1&&(_.max=!1,_.z==o.hz&&(o.hz-=1),_.z=-1,o[$[j]]=_)}return o}else if(a.type=="EXTERNAL")window.open(a.payload,"_blank");else if(a.type=="OPENTERM"){var _={...o.terminal};return _.dir=a.payload,_.size="full",_.hide=!1,_.max=!0,o.hz+=1,_.z=o.hz,o.terminal=_,o}else{if(a.type=="ADDAPP")return o[a.payload.icon]=a.payload,o[a.payload.icon].size="full",o[a.payload.icon].hide=!0,o[a.payload.icon].max=null,o[a.payload.icon].z=0,o;if(a.type=="DELAPP")return delete o[a.payload],o;for(var $=Object.keys(s),j=0;j<$.length;j++){var _=s[$[j]];if(_.action==a.type)return o={...s},a.payload=="full"?(_.size="full",_.hide=!1,_.max=!0,o.hz+=1,_.z=o.hz):a.payload=="close"?(_.hide=!0,_.max=null,_.z=-1,o.hz-=1):a.payload=="mxmz"?(_.size=["mini","full"][_.size!="full"?1:0],_.hide=!1,_.max=!0,o.hz+=1,_.z=o.hz):a.payload=="togg"?_.z!=o.hz?(_.hide=!1,_.max?(_.z=-1,_.max=!1):(o.hz+=1,_.z=o.hz,_.max=!0)):(_.max=!_.max,_.hide=!1,_.max?(o.hz+=1,_.z=o.hz):(_.z=-1,o.hz-=1)):a.payload=="mnmz"?(_.max=!1,_.hide=!1,_.z==o.hz&&(o.hz-=1),_.z=-1):a.payload=="resize"?(_.size="cstm",_.hide=!1,_.max=!0,_.z!=o.hz&&(o.hz+=1),_.z=o.hz,_.dim=a.dim):a.payload=="front"&&(_.hide=!1,_.max=!0,_.z!=o.hz&&(o.hz+=1,_.z=o.hz)),o[$[j]]=_,o}}return s},defState$3={hide:!0,top:80,left:360,opts:"desk",attr:null,dataset:null,data:{desk:{width:"310px",secwid:"200px"},task:{width:"220px",secwid:"120px",ispace:!1},app:{width:"310px",secwid:"200px"}},menus:{desk:[{name:"View",icon:"view",type:"svg",opts:[{name:"Large icons",action:"changeIconSize",payload:"large"},{name:"Medium icons",action:"changeIconSize",payload:"medium"},{name:"Small icons",action:"changeIconSize",payload:"small",dot:!0},{type:"hr"},{name:"Show desktop icons",action:"deskHide",check:!0}]},{name:"Sort by",icon:"sort",type:"svg",opts:[{name:"Name",action:"changeSort",payload:"name"},{name:"Size",action:"changeSort",payload:"size"},{name:"Date modified",action:"changeSort",payload:"date"}]},{name:"Refresh",action:"refresh",type:"svg",icon:"refresh"},{type:"hr"},{name:"New",icon:"New",type:"svg",opts:[{name:"Folder"},{name:"Shortcut"},{name:"Text Document"},{name:"Compressed (zipped) Folder"}]},{type:"hr"},{name:"Display settings",icon:"display",type:"svg",action:"SETTINGS",payload:"full"},{name:"Personalize",icon:"personalize",type:"svg",action:"SETTINGS",payload:"full"},{type:"hr"},{name:"Next desktop background",action:"WALLNEXT"},{name:"Open in Terminal",icon:"terminal",action:"OPENTERM",payload:"C:\\Users\\Blue\\Desktop"},{name:"About",action:"DESKABOUT",icon:"win/info",payload:!0}],task:[{name:"Align icons",opts:[{name:"Left",action:"changeTaskAlign",payload:"left"},{name:"Center",action:"changeTaskAlign",payload:"center",dot:!0}]},{type:"hr"},{name:"Search",opts:[{name:"Show",action:"TASKSRCH",payload:!0},{name:"Hide",action:"TASKSRCH",payload:!1}]},{name:"Widgets",opts:[{name:"Show",action:"TASKWIDG",payload:!0},{name:"Hide",action:"TASKWIDG",payload:!1}]},{type:"hr"},{name:"Show Desktop",action:"SHOWDSK"}],app:[{name:"Open",action:"performApp",payload:"open"},{name:"Run as administrator",action:"performApp",payload:"open",icon:"win/shield"},{name:"Open file location",dsb:!0},{name:"Unpin from start",dsb:!0},{name:"Compress to Zip file",dsb:!0},{name:"Copy as path",dsb:!0},{name:"Properties",dsb:!0},{type:"hr"},{name:"Delete shortcut",action:"performApp",payload:"delshort"},{name:"Delete",action:"delApp",payload:"delete"}]}},menusReducer=(s=defState$3,a)=>{var o={...s};return a.type=="MENUHIDE"?o.hide=!0:a.type=="MENUSHOW"?(o.hide=!1,o.top=a.payload&&a.payload.top||272,o.left=a.payload&&a.payload.left||430,o.opts=a.payload&&a.payload.menu||"desk",o.attr=a.payload&&a.payload.attr,o.dataset=a.payload&&a.payload.dataset):a.type=="MENUCHNG"&&(o={...a.payload}),o},defState$2={lays:[[{dim:{width:"50%",height:"100%",top:0,left:0},br:14},{dim:{width:"50%",height:"100%",top:0,left:"50%"},br:15}],[{dim:{width:"66%",height:"100%",top:0,left:0},br:14},{dim:{width:"34%",height:"100%",top:0,left:"66%"},br:15}],[{dim:{width:"33%",height:"100%",top:0,left:0},br:14},{dim:{width:"34%",height:"100%",top:0,left:"33%"},br:1},{dim:{width:"33%",height:"100%",top:0,left:"67%"},br:15}],[{dim:{width:"50%",height:"100%",top:0,left:0},br:14},{dim:{width:"50%",height:"50%",top:0,left:"50%"},br:3},{dim:{width:"50%",height:"50%",top:"50%",left:"50%"},br:5}],[{dim:{width:"50%",height:"50%",top:0,left:0},br:2},{dim:{width:"50%",height:"50%",top:0,left:"50%"},br:3},{dim:{width:"50%",height:"50%",top:"50%",left:0},br:7},{dim:{width:"50%",height:"50%",top:"50%",left:"50%"},br:5}],[{dim:{width:"25%",height:"100%",top:0,left:0},br:14},{dim:{width:"50%",height:"100%",top:0,left:"25%"},br:1},{dim:{width:"25%",height:"100%",top:0,left:"75%"},br:15}]],ribbon:["luca","unescape","essential apps","xbox gamepass","spotify","social media","security","utility apps","forza horizon","kids apps"],apprib:["netflix","whatsApp","telegram","facebook","amazon prime","office","lightroom"],gamerib:["call of duty","cyberpunk 2077","minecraft","battle field v","far cry 5","hitman 3","residental evil"],movrib:["antman","godzilla vs kong","tom and jerry","wrath of man","john wick","wonder woman 1984","nobody"]},globalReducer=(s=defState$2,a)=>s,defState$1={system:{power:{saver:{state:!1},battery:100},display:{brightness:100,nightlight:{state:!1},connect:!1}},person:{name:"Blue Edge",theme:"light",color:"blue"},devices:{bluetooth:!1},network:{wifi:{state:!0},airplane:!1},privacy:{location:{state:!1}}};document.body.dataset.theme=defState$1.person.theme;const changeVal=(s,a,o="togg")=>{var _=s;a=a.split(".");for(var $=0;${var o={...s},_=!1;switch(a.type){case"STNGTHEME":_=!0,o.person.theme=a.payload;break;case"STNGTOGG":_=!0,o=changeVal(o,a.payload);break;case"STNGSETV":_=!0,o=changeVal(o,a.payload.path,a.payload.value);break;case"SETTLOAD":o={...a.payload}}return _&&localStorage.setItem("setting",JSON.stringify(o)),o};class Item{constructor({type:a,name:o,info:_,data:$,host:j}){this.type=a||"folder",this.name=o,this.info=_||{},this.info.icon=this.info.icon||this.type,this.data=$,this.host=j,this.id=this.gene()}gene(){return Math.random().toString(36).substring(2,10).toLowerCase()}getId(){return this.id}getData(){return this.data}setData(a){this.data=a}}class Bin{constructor(){this.tree=[],this.lookup={},this.special={}}setSpecial(a,o){this.special[a]=o}setId(a,o){this.lookup[a]=o}getId(a){return this.lookup[a]}getPath(a){for(var o="",_=this.getId(a);_;)o=_.name+"\\"+o,_=_.host;return o.count("\\")>1?o.strip("\\"):o}parsePath(a){if(a.includes("%"))return this.special[a.trim()];if(a=a.split("\\").filter(a1=>a1!=="").map(a1=>a1.trim().toLowerCase()),a.length===0)return null;for(var o=null,_=null,$=0;${var o={...s},_=!1;if(a.type==="FILEDIR")o.cdir=a.payload;else if(a.type==="FILEPATH"){var $=o.data.parsePath(a.payload);$&&(o.cdir=$)}else if(a.type==="FILEBACK"){var j=o.data.getId(o.cdir);j.host&&(o.cdir=j.host.id)}else a.type==="FILEVIEW"?o.view=a.payload:a.type==="FILEPREV"?(o.hid--,o.hid<0&&(o.hid=0),_=!0):a.type==="FILENEXT"&&(o.hid++,o.hid>o.hist.length-1&&(o.hid=o.hist.length-1),_=!0);return!_&&o.cdir!=o.hist[o.hid]&&(o.hist.splice(o.hid+1),o.hist.push(o.cdir),o.hid=o.hist.length-1),o.cdir=o.hist[o.hid],o.cdir.includes("%")&&o.data.special[o.cdir]!=null&&(o.cdir=o.data.special[o.cdir],o[o.hid]=o.cdir),o.cpath=o.data.getPath(o.cdir),o},allReducers=combineReducers({wallpaper:wallReducer,taskbar:taskReducer,desktop:deskReducer,startmenu:menuReducer,sidepane:paneReducer,widpane:widReducer,apps:appReducer,menus:menusReducer,globals:globalReducer,setting:settReducer,files:fileReducer});var store$1=createStore(allReducers);const dispatchAction=s=>{const a={type:s.target.dataset.action,payload:s.target.dataset.payload};a.type&&store$1.dispatch(a)},refresh=(s,a)=>{a.menus.desk[0].opts[4].check&&(store$1.dispatch({type:"DESKHIDE"}),setTimeout(()=>store$1.dispatch({type:"DESKSHOW"}),100))},changeIconSize=(s,a)=>{var o={...a};o.menus.desk[0].opts[0].dot=!1,o.menus.desk[0].opts[1].dot=!1,o.menus.desk[0].opts[2].dot=!1;var _=1;s=="large"?(o.menus.desk[0].opts[0].dot=!0,_=1.5):s=="medium"?(o.menus.desk[0].opts[1].dot=!0,_=1.2):o.menus.desk[0].opts[2].dot=!0,refresh("",o),store$1.dispatch({type:"DESKSIZE",payload:_}),store$1.dispatch({type:"MENUCHNG",payload:o})},deskHide=(s,a)=>{var o={...a};o.menus.desk[0].opts[4].check^=1,store$1.dispatch({type:"DESKTOGG"}),store$1.dispatch({type:"MENUCHNG",payload:o})},changeSort=(s,a)=>{var o={...a};o.menus.desk[1].opts[0].dot=!1,o.menus.desk[1].opts[1].dot=!1,o.menus.desk[1].opts[2].dot=!1,s=="name"?o.menus.desk[1].opts[0].dot=!0:s=="size"?o.menus.desk[1].opts[1].dot=!0:o.menus.desk[1].opts[2].dot=!0,refresh("",o),store$1.dispatch({type:"DESKSORT",payload:s}),store$1.dispatch({type:"MENUCHNG",payload:o})},changeTaskAlign=(s,a)=>{var o={...a};o.menus.task[0].opts[s=="left"?0:1].dot||(o.menus.task[0].opts[0].dot=!1,o.menus.task[0].opts[1].dot=!1,s=="left"?o.menus.task[0].opts[0].dot=!0:o.menus.task[0].opts[1].dot=!0,store$1.dispatch({type:"TASKTOG"}),store$1.dispatch({type:"MENUCHNG",payload:o}))},performApp=(s,a)=>{var o={type:a.dataset.action,payload:a.dataset.payload};if(s=="open")o.type&&store$1.dispatch(o);else if(s=="delshort"&&o.type){var _=store$1.getState().apps,$=Object.keys(_).filter(j=>_[j].action==o.type||_[j].payload==o.payload&&_[j].payload!=null);$=_[$],$&&store$1.dispatch({type:"DESKREM",payload:$.name})}},delApp=(s,a)=>{var o={type:a.dataset.action,payload:a.dataset.payload};if(s=="delete"&&o.type){var _=store$1.getState().apps,$=Object.keys(_).filter(_e=>_[_e].action==o.type);if($&&($=_[$],$.pwa==!0)){store$1.dispatch({type:$.action,payload:"close"}),store$1.dispatch({type:"DELAPP",payload:$.icon});var j=localStorage.getItem("installed");j||(j="[]"),j=JSON.parse(j),j=j.filter(_e=>_e.icon!=$.icon),localStorage.setItem("installed",JSON.stringify(j)),store$1.dispatch({type:"DESKREM",payload:$.name})}}},installApp=s=>{var a={...s,type:"app",pwa:!0},o=localStorage.getItem("installed");o||(o="[]"),o=JSON.parse(o),o.push(a),localStorage.setItem("installed",JSON.stringify(o));var _=localStorage.getItem("desktop");_?_=JSON.parse(_):_=dfApps.desktop,_.push(a.name),localStorage.setItem("desktop",JSON.stringify(_)),a.action=gene_name(),store$1.dispatch({type:"ADDAPP",payload:a}),store$1.dispatch({type:"DESKADD",payload:a}),store$1.dispatch({type:"WNSTORE",payload:"mnmz"})},getTreeValue=(s,a)=>{if(a==null)return!1;var o={...s};a=a.split(".");for(var _=0;_{var s=store$1.getState().setting.person.theme,s=s=="light"?"dark":"light",a=s=="light"?"sun":"moon";document.body.dataset.theme=s,store$1.dispatch({type:"STNGTHEME",payload:s}),store$1.dispatch({type:"PANETHEM",payload:a}),store$1.dispatch({type:"WALLSET",payload:s=="light"?0:1})},loadWidget=async()=>{var s={...store$1.getState().widpane},a=new Date,o="https://en.wikipedia.org/api/rest_v1/feed/onthisday/events";await axios.get(`${o}/${a.getMonth()}/${a.getDay()}`).then(_=>_.data).then(_=>{var $=_.events[Math.floor(Math.random()*_.events.length)];a.setYear($.year),s.data.date=a.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),s.data.event=$}).catch(_=>{}),await axios.get("https://github.win11react.com/api-cache/news.json").then(_=>_.data).then(_=>{var $=[];_.articles.forEach(j=>{j.title=j.title.split("-").slice(0,-1).join("-").trim(),$.push(j)}),s.data.news=$}).catch(_=>{}),store$1.dispatch({type:"WIDGREST",payload:s})},loadSettings=()=>{var s=localStorage.getItem("setting")||"{}";s=JSON.parse(s),s.person==null&&(s=JSON.parse(JSON.stringify(store$1.getState().setting)),window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(s.person.theme="dark")),s.person.theme!="light"&&changeTheme(),store$1.dispatch({type:"SETTLOAD",payload:s}),loadWidget()},handleFileOpen=s=>{const a=store$1.getState().files.data.getId(s);a!=null&&a.type=="folder"&&store$1.dispatch({type:"FILEDIR",payload:a.id})},Actions=Object.freeze(Object.defineProperty({__proto__:null,dispatchAction,refresh,changeIconSize,deskHide,changeSort,changeTaskAlign,performApp,delApp,installApp,getTreeValue,changeTheme,loadSettings,handleFileOpen},Symbol.toStringTag,{value:"Module"})),ActMenu=()=>{const s=useSelector(e1=>e1.menus),a=s.data[s.opts],{abpos:o,isLeft:_}=useSelector(e1=>{var a1=e1.menus.menus[e1.menus.opts].length,t1={top:e1.menus.top,left:e1.menus.left},r1=!1,s1=window.innerWidth,i1=window.innerHeight,f1=312,g1=a1*28;return r1=s1-t1.left>504,s1-t1.left{e1.stopPropagation();var a1={type:e1.target.dataset.action,payload:e1.target.dataset.payload};a1.type&&(a1.type!=a1.type.toUpperCase()?Actions[a1.type](a1.payload,s):$(a1),$({type:"MENUHIDE"}))},_e=e1=>{var a1=[];return e1.map((t1,r1)=>{t1.type=="hr"?a1.push(jsx("div",{className:"menuhr"},r1)):a1.push(jsxs("div",{className:"menuopt","data-dsb":t1.dsb,onClick:j,"data-action":t1.action,"data-payload":t1.payload,children:[a.ispace!=!1?jsxs("div",{className:"spcont",children:[t1.icon&&t1.type=="svg"?jsx(Icon,{icon:t1.icon,width:16}):null,t1.icon&&t1.type=="fa"?jsx(Icon,{fafa:t1.icon,width:16}):null,t1.icon&&t1.type==null?jsx(Icon,{src:t1.icon,width:16}):null]}):null,jsx("div",{className:"nopt",children:t1.name}),t1.opts?jsx(Icon,{className:"micon rightIcon",fafa:"faChevronRight",width:10,color:"#999"}):null,t1.dot?jsx(Icon,{className:"micon dotIcon",fafa:"faCircle",width:4,height:4}):null,t1.check?jsx(Icon,{className:"micon checkIcon",fafa:"faCheck",width:8,height:8}):null,t1.opts?jsx("div",{className:"minimenu",style:{minWidth:a.secwid},children:_e(t1.opts)}):null]},r1))}),a1};return jsx("div",{className:"actmenu",id:"actmenu",style:{...o,"--prefix":"MENU",width:a.width},"data-hide":s.hide,"data-left":_,children:_e(s.menus[s.opts])})},battery="",Battery=({pct:s,invert:a})=>{const o=useDispatch(),_=useSelector(j=>j.setting.system.power.battery),$=j=>{let _e=j.level*100||100;j.charging&&(_e=-_e),o({type:"STNGSETV",payload:{path:"system.power.battery",value:_e}})};return react.exports.useEffect(()=>{window.BatteryManager&&(async()=>{let j=await navigator.getBattery();$(j),j.onlevelchange=()=>$(j),j.onchargingchange=()=>$(j)})()},[]),jsxs(Fragment,{children:[jsx("div",{className:`uicon taskIcon ${a?"invert":""}`,children:jsxs("span",{className:"battery",children:[_<0?jsx("div",{className:"charger",children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 24 24",children:jsx("path",{fill:"#000",stroke:"#f3f3f3",strokeWidth:"2",d:"m8.294 14-1.767 7.068c-.187.746.736 1.256 1.269.701L19.79 9.27A.75.75 0 0 0 19.25 8h-4.46l1.672-5.013A.75.75 0 0 0 15.75 2h-7a.75.75 0 0 0-.721.544l-3 10.5A.75.75 0 0 0 5.75 14h2.544Z"})})}):null,jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",width:"20",fill:"none",viewBox:"0 0 24 24",children:jsx("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#000",d:"M17 6a3 3 0 0 1 3 3v1h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1v1a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h12Zm-.002 1.5H5a1.5 1.5 0 0 0-1.493 1.356L3.5 9v6a1.5 1.5 0 0 0 1.355 1.493L5 16.5h11.998a1.5 1.5 0 0 0 1.493-1.355l.007-.145V9a1.5 1.5 0 0 0-1.355-1.493l-.145-.007Z"})}),jsx("div",{className:"btFull",style:{width:`${Math.round(Math.abs(_))}%`},children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",width:"20",fill:"none",viewBox:"0 0 24 24",children:jsx("path",{fill:"#000",d:"M17 6a3 3 0 0 1 3 3v1h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1v1a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h12Zm-.002 1.5H5a1.5 1.5 0 0 0-1.494 1.356L3.5 9v6a1.5 1.5 0 0 0 1.355 1.493L5 16.5h11.998a1.5 1.5 0 0 0 1.493-1.355l.007-.145V9a1.5 1.5 0 0 0-1.355-1.493l-.145-.007ZM6 9h10a1 1 0 0 1 .993.883L17 10v4a1 1 0 0 1-.883.993L16 15H6a1 1 0 0 1-.993-.883L5 14v-4a1 1 0 0 1 .883-.993L6 9h10H6Z"})})})]})}),s?jsxs("div",{className:"text-xs",children:[Math.round(Math.abs(_)),"%"]}):null]})},searchpane="",sidepane="",startmenu="",StartMenu=()=>{const{align:s}=useSelector(i1=>i1.taskbar),a=useSelector(i1=>{for(var f1=i1.startmenu,g1=(6-f1.pnApps.length%6)%6,v1=0;v1p1!="hz").map(p1=>i1.apps[p1]);for(d1.sort((p1,z1)=>p1.name>z1.name?1:z1.name>p1.name?-1:0),v1=0;v1<27;v1++)y1[v1]=[];for(v1=0;v164&&u1<91?y1[u1-64].push(d1[v1]):y1[0].push(d1[v1])}return f1.contApps=y1,f1.allApps=d1,f1}),[o,_]=react.exports.useState(""),[$,j]=react.exports.useState({}),[_e,e1]=react.exports.useState("All"),a1=useDispatch(),t1=i1=>{e1(i1.target.innerText.trim())},r1=i1=>{var f1={type:i1.target.dataset.action,payload:i1.target.dataset.payload};if(f1.type&&a1(f1),f1.type&&(f1.payload=="full"||f1.type=="EDGELINK")&&a1({type:"STARTHID"}),f1.type=="STARTALPHA"){var g1=document.getElementById("char"+f1.payload);if(g1)g1.parentNode.scrollTop=g1.offsetTop;else{var g1=document.getElementById("charA");g1.parentNode.scrollTop=0}}};react.exports.useEffect(()=>{if(o.length){for(var i1=0;i1i1.setting.person.name);return jsx("div",{className:"startMenu dpShad","data-hide":a.hide,style:{"--prefix":"START"},"data-align":s,children:a.menu?jsxs(Fragment,{children:[jsx("div",{className:"stmenu","data-allapps":a.showAll,children:jsxs("div",{className:"menuUp",children:[jsxs("div",{className:"pinnedApps",children:[jsxs("div",{className:"stAcbar",children:[jsx("div",{className:"gpname",children:"Pinned"}),jsxs("div",{className:"gpbtn prtclk",onClick:r1,"data-action":"STARTALL",children:[jsx("div",{children:"All apps"}),jsx(Icon,{fafa:"faChevronRight",width:8})]})]}),jsx("div",{className:"pnApps",children:a.pnApps.map((i1,f1)=>i1.empty?jsx("div",{className:"pnApp pnEmpty"},f1):jsxs("div",{className:"prtclk pnApp",value:i1.action!=null,onClick:r1,"data-action":i1.action,"data-payload":i1.payload||"full",children:[jsx(Icon,{className:"pnIcon",src:i1.icon,width:32}),jsx("div",{className:"appName",children:i1.name})]},f1))})]}),jsxs("div",{className:"recApps win11Scroll",children:[jsxs("div",{className:"stAcbar",children:[jsx("div",{className:"gpname",children:"Recommended"}),jsxs("div",{className:"gpbtn none",children:[jsx("div",{children:"More"}),jsx(Icon,{fafa:"faChevronRight",width:8})]})]}),jsx("div",{className:"reApps",children:a.rcApps.slice(0,6).map((i1,f1)=>i1.name?jsxs("div",{className:"rnApp",value:i1.action!=null,onClick:r1,"data-action":i1.action,"data-payload":i1.payload||"full",children:[jsx(Icon,{className:"pnIcon",src:i1.icon,width:32}),jsxs("div",{className:"acInfo",children:[jsx("div",{className:"appName",children:i1.name}),jsx("div",{className:"timeUsed",children:i1.lastUsed})]})]},f1):null)})]})]})}),jsx("div",{className:"allCont","data-allapps":a.showAll,children:jsxs("div",{className:"appCont",children:[jsxs("div",{className:"stAcbar",children:[jsx("div",{className:"gpname",children:"All apps"}),jsxs("div",{className:"gpbtn prtclk",onClick:r1,"data-action":"STARTALL",children:[jsx(Icon,{className:"chevLeft",fafa:"faChevronLeft",width:8}),jsx("div",{children:"Back"})]})]}),jsx("div",{className:"allApps win11Scroll","data-alpha":a.alpha,children:a.contApps.map((i1,f1)=>{if(i1.length==0)return null;var g1=[];return g1.push(jsx("div",{className:"allApp prtclk","data-action":"STARTALPHA",onClick:r1,id:`char${f1==0?"#":String.fromCharCode(f1+64)}`,children:jsx("div",{className:"ltName",children:f1==0?"#":String.fromCharCode(f1+64)})},f1)),i1.forEach((v1,y1)=>{g1.push(jsxs("div",{className:"allApp prtclk",onClick:r1,"data-action":v1.action,"data-payload":v1.payload||"full",children:[jsx(Icon,{className:"pnIcon",src:v1.icon,width:24}),jsx("div",{className:"appName",children:v1.name})]},v1.name))}),g1})}),jsx("div",{className:"alphaBox","data-alpha":a.alpha,children:jsxs("div",{className:"alphaCont",children:[jsx("div",{className:"dullApp allApp",children:jsx("div",{className:"ltName",children:"&"})}),a.contApps.map((i1,f1)=>jsx("div",{className:i1.length==0?"dullApp allApp":"allApp prtclk","data-action":"STARTALPHA",onClick:i1.length==0?null:r1,"data-payload":f1==0?"#":String.fromCharCode(f1+64),children:jsx("div",{className:"ltName",children:f1==0?"#":String.fromCharCode(f1+64)})},f1))]})})]})}),jsxs("div",{className:"menuBar",children:[jsxs("div",{className:"profile handcr",children:[jsx(Icon,{src:"blueProf",ui:!0,rounded:!0,width:26,click:"EXTERNAL",payload:"https://blueedge.me"}),jsx("div",{className:"usName",children:s1})]}),jsxs("div",{className:"relative powerMenu",children:[jsxs("div",{className:"powerCont","data-vis":a.pwctrl,children:[jsxs("div",{className:"flex prtclk items-center gap-2",onClick:r1,"data-action":"WALLALOCK",children:[jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M12 2a4 4 0 0 1 4 4v2h1.75A2.25 2.25 0 0 1 20 10.25v9.5A2.25 2.25 0 0 1 17.75 22H6.25A2.25 2.25 0 0 1 4 19.75v-9.5A2.25 2.25 0 0 1 6.25 8H8V6a4 4 0 0 1 4-4Zm5.75 7.5H6.25a.75.75 0 0 0-.75.75v9.5c0 .414.336.75.75.75h11.5a.75.75 0 0 0 .75-.75v-9.5a.75.75 0 0 0-.75-.75Zm-5.75 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm0-10A2.5 2.5 0 0 0 9.5 6v2h5V6A2.5 2.5 0 0 0 12 3.5Z",fill:"currentColor"})}),jsx("span",{children:"Lock"})]}),jsxs("div",{className:"flex prtclk items-center gap-2",onClick:r1,"data-action":"WALLSHUTDN",children:[jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M8.204 4.82a.75.75 0 0 1 .634 1.36A7.51 7.51 0 0 0 4.5 12.991c0 4.148 3.358 7.51 7.499 7.51s7.499-3.362 7.499-7.51a7.51 7.51 0 0 0-4.323-6.804.75.75 0 1 1 .637-1.358 9.01 9.01 0 0 1 5.186 8.162c0 4.976-4.029 9.01-9 9.01C7.029 22 3 17.966 3 12.99a9.01 9.01 0 0 1 5.204-8.17ZM12 2.496a.75.75 0 0 1 .743.648l.007.102v7.5a.75.75 0 0 1-1.493.102l-.007-.102v-7.5a.75.75 0 0 1 .75-.75Z",fill:"currentColor"})}),jsx("span",{children:"Shut down"})]}),jsxs("div",{className:"flex prtclk items-center gap-2",onClick:r1,"data-action":"WALLRESTART",children:[jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M12 4.5a7.5 7.5 0 1 1-7.419 6.392c.067-.454-.265-.892-.724-.892a.749.749 0 0 0-.752.623A9 9 0 1 0 6 5.292V4.25a.75.75 0 0 0-1.5 0v3c0 .414.336.75.75.75h3a.75.75 0 0 0 0-1.5H6.9a7.473 7.473 0 0 1 5.1-2Z",fill:"currentColor"})}),jsx("span",{children:"Restart"})]})]}),jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",onClick:r1,"data-action":"STARTPWC",children:jsx("path",{d:"M8.204 4.82a.75.75 0 0 1 .634 1.36A7.51 7.51 0 0 0 4.5 12.991c0 4.148 3.358 7.51 7.499 7.51s7.499-3.362 7.499-7.51a7.51 7.51 0 0 0-4.323-6.804.75.75 0 1 1 .637-1.358 9.01 9.01 0 0 1 5.186 8.162c0 4.976-4.029 9.01-9 9.01C7.029 22 3 17.966 3 12.99a9.01 9.01 0 0 1 5.204-8.17ZM12 2.496a.75.75 0 0 1 .743.648l.007.102v7.5a.75.75 0 0 1-1.493.102l-.007-.102v-7.5a.75.75 0 0 1 .75-.75Z",fill:"currentColor"})})]})]})]}):jsxs("div",{className:"searchMenu",children:[jsxs("div",{className:"searchBar",children:[jsx(Icon,{className:"searchIcon",src:"search",width:16}),jsx("input",{type:"text",onChange:i1=>{_(i1.target.value.trim())},defaultValue:o,placeholder:"Type here to search",autoFocus:!0})]}),jsx("div",{className:"flex py-4 px-1 text-xs",children:jsxs("div",{className:"opts w-1/2 flex justify-between",children:[jsx("div",{value:_e=="All",onClick:t1,children:"All"}),jsx("div",{value:_e=="Apps",onClick:t1,children:"Apps"}),jsx("div",{value:_e=="Documents",onClick:t1,children:"Documents"}),jsx("div",{value:_e=="Web",onClick:t1,children:"Web"}),jsx("div",{value:_e=="More",onClick:t1,children:"More"})]})}),jsxs("div",{className:"shResult w-full flex justify-between",children:[jsxs("div",{className:"leftSide flex-col px-1","data-width":o.length!=0,children:[jsx("div",{className:"text-sm font-semibold mb-4",children:o.length?"Best match":"Top apps"}),o.length?jsxs("div",{className:"textResult h-16",children:[jsxs("div",{className:"smatch flex my-2 p-3 rounded",children:[jsx(Icon,{src:$.icon,width:24}),jsxs("div",{className:"matchInfo flex-col px-2",children:[jsx("div",{className:"font-semibold text-xs",children:$.name}),jsx("div",{className:"text-xss",children:"App"})]})]}),jsxs("div",{className:"smatch flex my-2 p-3 rounded handcr prtclk",onClick:r1,"data-action":"EDGELINK","data-payload":o,children:[jsx(Icon,{className:"blueicon",src:"search",ui:!0,width:20}),jsxs("div",{className:"matchInfo flex-col px-2",children:[jsx("div",{className:"font-semibold text-xs",children:"Search online"}),jsx("div",{className:"text-xss",children:"Web"})]})]})]}):jsxs(Fragment,{children:[jsx("div",{className:"topApps flex w-full justify-between",children:a.rcApps.slice(1,7).map((i1,f1)=>jsxs("div",{className:"topApp pt-6 py-4 ltShad prtclk",onClick:r1,"data-action":i1.action,"data-payload":i1.payload||"full",children:[jsx(Icon,{src:i1.icon,width:30}),jsx("div",{className:"text-xs mt-2",children:i1.name})]},f1))}),jsx("div",{className:"text-sm font-semibold mt-8",children:"Quick Searches"}),jsx("div",{className:"quickSearches mt-2",children:a.qksrch.map((i1,f1)=>jsxs("div",{className:"qksrch flex items-center p-3 my-1 handcr prtclk",onClick:r1,"data-action":"EDGELINK","data-payload":i1[2],children:[jsx(Icon,{fafa:i1[0],reg:i1[1]}),jsx("div",{className:"ml-4 text-sm",children:i1[2]})]},f1))})]})]}),o.length?jsxs("div",{className:"w-2/3 rightSide rounded",children:[jsx(Icon,{className:"mt-6",src:$.icon,width:64}),jsx("div",{className:"",children:$.name}),jsx("div",{className:"text-xss mt-2",children:"App"}),jsx("div",{className:"hline mt-8"}),jsxs("div",{className:"openlink w-4/5 flex prtclk handcr pt-3",onClick:r1,"data-action":$.action,"data-payload":$.payload?$.payload:"full",children:[jsx(Icon,{className:"blueicon",src:"link",ui:!0,width:16}),jsx("div",{className:"text-xss ml-3",children:"Open"})]})]}):null]})]})})},widget="",WidPane=()=>{useDispatch();const s=useSelector(_=>_.widpane),a=useSelector(_=>_.setting.person.theme),o=(_=0)=>{if(a=="light")return`hsl(${Math.floor(Math.random()*360)}deg 36% 84%)`;if(a=="dark")return`hsl(${Math.floor(Math.random()*360)}deg 36% 16%)`};return jsx("div",{className:"widPaneCont","data-hide":s.hide,style:{"--prefix":"WIDG"},children:jsx(LazyComponent,{show:!s.hide,children:jsxs("div",{className:"WidPane win11Scroll",children:[jsx("div",{className:"widtop",children:jsx(Icon,{fafa:"faEllipsisH",width:12})}),jsx("div",{className:"widTime",children:new Date().toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})}),jsxs("div",{className:"widgetCont",children:[jsxs("div",{className:"topWidgets",children:[jsxs("div",{className:"weatherCont ltShad",children:[jsxs("div",{className:"wthtop",children:[jsx(Icon,{src:"weather",width:18})," ",jsx("span",{children:"Weather"})]}),jsxs("div",{className:"wthcity",children:[jsx(Icon,{fafa:"faMapMarkerAlt",width:8}),s.data.weather.city,", ",s.data.weather.country]}),jsxs("div",{className:"wthInfo",children:[jsxs("div",{className:"wthTemp",children:[jsx(Icon,{src:`https://www.metaweather.com/static/img/weather/png/64/${s.data.weather.icon}.png`,ext:!0,width:32}),jsx("div",{className:"wthdeg",children:s.data.weather.temp}),jsx("div",{className:"wthunit",children:"\xBAC"})]}),jsxs("div",{className:"moreWinfo",children:[jsx("div",{className:"wcontext",children:s.data.weather.wstate}),jsxs("div",{className:"rainProb",children:[jsxs("div",{className:"chanceOfRain",children:[jsx(Icon,{fafa:"faTint",width:10}),s.data.weather.rain,"%"]}),jsxs("div",{className:"chanceOfRain",children:[jsx(Icon,{fafa:"faWind",width:10}),s.data.weather.wind]})]})]})]}),jsx("div",{className:"weekWthCont",children:s.data.weather.days.map((_,$)=>jsxs("div",{className:"weekDay",children:[jsx("div",{children:$==0?"Today":_.day}),jsx(Icon,{src:`https://www.metaweather.com/static/img/weather/png/64/${_.icon}.png`,ext:!0,width:24}),jsxs("div",{className:"tempCont",children:[_.min,"\xBA"]}),jsxs("div",{className:"tempCont",children:[_.max,"\xBA"]})]},$))})]}),jsxs("div",{className:"shortCont",children:[jsxs("div",{className:"short0 ltShad",children:[jsx("div",{className:"shName",children:"MONEY | MARKET"}),jsxs("div",{className:"shEntry",children:[jsxs("div",{className:"stockName",children:[jsx(Icon,{src:"google",ui:!0,width:12}),jsx("div",{className:"stName",children:"GOOGL"})]}),jsxs("div",{className:"stockValue",children:[jsx("div",{children:s.data.stock[0][0]}),jsxs("div",{className:"stRes","data-pos":s.data.stock[0][2]==1,children:[s.data.stock[0][2]?"+":"-",s.data.stock[0][1],"%"]})]})]}),jsxs("div",{className:"shEntry",children:[jsxs("div",{className:"stockName",children:[jsx(Icon,{src:"tesla",ui:!0,width:12}),jsx("div",{className:"stName",children:"TSLA"})]}),jsxs("div",{className:"stockValue",children:[jsx("div",{children:s.data.stock[1][0]}),jsxs("div",{className:"stRes","data-pos":s.data.stock[1][2]==1,children:[s.data.stock[1][2]?"+":"-",s.data.stock[1][1],"%"]})]})]})]}),jsxs("div",{className:"short1 ltShad",style:{"--afterBack":`url(${s.data.event.pages[0].thumbnail&&s.data.event.pages[0].thumbnail.source})`,backgroundImage:`url(${s.data.event.pages[0].thumbnail&&s.data.event.pages[0].thumbnail.source})`},children:[jsxs("div",{className:"shName",children:[jsxs("div",{className:"flex",children:[jsx(Icon,{fafa:"faLandmark",width:8}),"\xA0ON THIS DAY"]}),jsx("div",{children:s.data.date})]}),jsxs("div",{className:"infotextCont",children:[jsx("div",{className:"dayInfo",children:s.data.event.text}),jsx("a",{href:s.data.event.pages[0].content_urls.desktop.page,rel:"noopener noreferrer",target:"_blank",className:"wikiref",children:"more on wiki"})]})]})]})]}),jsxs("div",{className:"newsCont",children:[jsxs("div",{className:"topStories ltShad",children:[jsx("div",{className:"topNewsText",children:"TOP STORIES"}),jsx("div",{className:"topNewsCont",children:[...s.data.news].splice(0,4).map((_,$)=>jsxs("div",{className:"tpNews",children:[jsx("div",{className:"tpSource",children:_.source.name}),jsx("div",{className:"tpArticle",children:_.title})]},$))})]}),jsx("div",{className:"allNewsCont",children:[...s.data.news].splice(4,s.data.news.length).map((_,$)=>jsx("a",{className:"articleCont ltShad",target:"_blank",style:{"--backgrad":o(2),backgroundImage:`url(${_.urlToImage})`},href:_.url,rel:"noopener noreferrer",loading:"lazy",children:jsxs("div",{className:"tpNews",children:[jsx("div",{className:"tpSource",children:_.source.name}),jsx("div",{className:"tpArticle",children:_.title}),$%5==4?jsx("div",{className:"tpdesc",children:_.content}):null]})},$))})]})]})]})})})},DesktopApp=()=>{const s=useSelector(a=>{var o={...a.desktop},_=[...o.apps];return o.sort=="name"?_.sort(($,j)=>$.name>j.name?1:j.name>$.name?-1:0):o.sort=="size"?_.sort(($,j)=>{var _e=$.name,e1=j.name;return _e[e1.charCodeAt(0)%_e.length]>e1[_e.charCodeAt(0)%e1.length]?1:-1}):o.sort=="date"&&_.sort(($,j)=>{var _e=$.name,e1=j.name,a1=_e.length,t1=e1.length;return _e[t1*13%_e.length]>e1[a1*17%e1.length]?1:-1}),o.apps=_,o});return useDispatch(),jsx("div",{className:"desktopCont",children:!s.hide&&s.apps.map((a,o)=>jsxs("div",{className:"dskApp",tabIndex:0,children:[jsx(Icon,{click:a.action,className:"dskIcon prtclk",src:a.icon,payload:a.payload||"full",pr:!0,width:Math.round(s.size*36),menu:"app"}),jsx("div",{className:"appName",children:a.name})]},o))})},BandPane=()=>{const s=useSelector(a=>a.sidepane);return jsx("div",{className:"bandpane dpShad","data-hide":s.banhide,style:{"--prefix":"BAND"},children:jsxs("div",{className:"bandContainer",children:[jsx(Icon,{className:"hvlight",src:"defender",width:17}),jsx(Icon,{className:"hvlight",src:"spotify",width:17}),jsx(Icon,{className:"hvlight",src:"teams",width:17})]})})},SidePane=()=>{const s=useSelector(i1=>i1.sidepane),a=useSelector(i1=>i1.setting),o=useSelector(i1=>i1.taskbar),[_,$]=react.exports.useState([]),j=useDispatch();react.exports.useState("");const _e=i1=>{var f1={type:i1.target.dataset.action,payload:i1.target.dataset.payload};f1.type&&(f1.type!=f1.type.toUpperCase()?Actions[f1.type](f1.payload):j(f1))},e1=document.querySelector(".vSlider"),a1=document.querySelector(".bSlider"),t1=i1=>{var f1=3;i1.target.value<70&&(f1=2),i1.target.value<30&&(f1=1),i1.target.value==0&&(f1=0),j({type:"TASKAUDO",payload:f1}),r1(e1,i1.target.value)};function r1(i1,f1){i1.style.setProperty("--track-color",`linear-gradient(90deg, var(--clrPrm) ${f1-3}%, #888888 ${f1}%)`)}const s1=i1=>{var f1=i1.target.value;document.getElementById("brightoverlay").style.opacity=(100-f1)/100,j({type:"STNGSETV",payload:{path:"system.display.brightness",value:f1}}),r1(a1,f1)};return react.exports.useEffect(()=>{s.quicks.map((i1,f1)=>{i1.src=="nightlight"&&(_[f1]?document.body.dataset.sepia=!0:document.body.dataset.sepia=!1)})}),react.exports.useEffect(()=>{for(var i1=[],f1=0;f1jsxs("div",{className:"qkGrp",children:[jsx("div",{className:"qkbtn handcr prtclk",onClick:_e,"data-action":i1.action,"data-payload":i1.payload||i1.state,"data-state":_[f1],children:jsx(Icon,{className:"quickIcon",ui:i1.ui,src:i1.src,width:14,invert:_[f1]?!0:null})}),jsx("div",{className:"qktext",children:i1.name})]},f1))}),jsxs("div",{className:"sliderCont",children:[jsx(Icon,{className:"mx-2",src:"brightness",ui:!0,width:20}),jsx("input",{className:"sliders bSlider",onChange:s1,type:"range",min:"10",max:"100",defaultValue:"100"})]}),jsxs("div",{className:"sliderCont",children:[jsx(Icon,{className:"mx-2",src:"audio"+o.audio,ui:!0,width:18}),jsx("input",{className:"sliders vSlider",onChange:t1,type:"range",min:"0",max:"100",defaultValue:"100"})]})]}),jsx("div",{className:"p-1 bottomBar",children:jsx("div",{className:"px-3 battery-sidepane",children:jsx(Battery,{pct:!0})})})]})},CalnWid=()=>{const s=useSelector(_e=>_e.sidepane),[a,o]=react.exports.useState(!1),[_,$]=react.exports.useState(""),j=()=>{$(_===""?"collapse":"")};return react.exports.useEffect(()=>{a||(o(!0),window.dycalendar.draw({target:"#dycalendar",type:"month",dayformat:"ddd",monthformat:"full",prevnextbutton:"show",highlighttoday:!0}))}),jsxs("div",{className:`calnpane ${_} dpShad`,"data-hide":s.calhide,style:{"--prefix":"CALN"},children:[jsxs("div",{className:"topBar pl-4 text-sm",children:[jsx("div",{className:"date",children:new Date().toLocaleDateString(void 0,{weekday:"long",month:"long",day:"numeric"})}),jsx("div",{className:"collapser p-2 m-4 rounded",onClick:j,children:_===""?jsx(Icon,{fafa:"faChevronDown"}):jsx(Icon,{fafa:"faChevronUp"})})]}),jsx("div",{id:"dycalendar"})]})},taskbar="",Taskbar=()=>{const s=useSelector(a1=>a1.taskbar),a=useSelector(a1=>{for(var t1={...a1.apps},r1=0;r1{for(var t1=a1.target;t1&&t1.getAttribute("value")==null;)t1=t1.parentElement;var r1=t1.getAttribute("value"),s1=window.scrollX+t1.getBoundingClientRect().left,i1=Math.round(s1*1e4/window.innerWidth)/100;o({type:"TASKPSHOW",payload:{app:r1,pos:i1}})},$=()=>{o({type:"TASKPHIDE"})},j=a1=>{var t1={type:a1.target.dataset.action,payload:a1.target.dataset.payload};t1.type&&o(t1)},[_e,e1]=react.exports.useState(new Date);return react.exports.useEffect(()=>{const a1=setInterval(()=>{e1(new Date)},1e3);return()=>clearInterval(a1)},[]),jsx("div",{className:"taskbar",children:jsxs("div",{className:"taskcont",children:[jsx("div",{className:"tasksCont","data-menu":"task","data-side":s.align,children:jsxs("div",{className:"tsbar",onMouseOut:$,children:[jsx(Icon,{className:"tsIcon",src:"home",width:24,click:"STARTOGG"}),s.search?jsx(Icon,{click:"STARTSRC",className:"tsIcon searchIcon",icon:"taskSearch"}):null,s.widgets?jsx(Icon,{className:"tsIcon widget",src:"widget",width:24,click:"WIDGTOGG"}):null,s.apps.map((a1,t1)=>{var r1=a[a1.icon].hide,s1=a[a1.icon].z==a.hz;return jsx("div",{onMouseOver:!s1&&!r1&&_||null,value:a1.icon,children:jsx(Icon,{className:"tsIcon",width:24,open:r1?null:!0,click:a1.action,active:s1,payload:"togg",src:a1.icon})},t1)}),Object.keys(a).map((a1,t1)=>{if(a1!="hz")var r1=a[a1].z==a.hz;return a1!="hz"&&a1!="undefined"&&!a[a1].task&&!a[a1].hide?jsx("div",{onMouseOver:!r1&&_||null,value:a[a1].icon,children:jsx(Icon,{className:"tsIcon",width:24,active:r1,click:a[a1].action,payload:"togg",open:"true",src:a[a1].icon})},t1):null})]})}),jsxs("div",{className:"taskright",children:[jsx("div",{className:"px-2 prtclk handcr hvlight flex",onClick:j,"data-action":"BANDTOGG",children:jsx(Icon,{fafa:"faChevronUp",width:10})}),jsxs("div",{className:"prtclk handcr my-1 px-1 hvlight flex rounded",onClick:j,"data-action":"PANETOGG",children:[jsx(Icon,{className:"taskIcon",src:"wifi",ui:!0,width:16}),jsx(Icon,{className:"taskIcon",src:"audio"+s.audio,ui:!0,width:16}),jsx(Battery,{})]}),jsxs("div",{className:"taskDate m-1 handcr prtclk rounded hvlight",onClick:j,"data-action":"CALNTOGG",children:[jsx("div",{children:_e.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric"})}),jsx("div",{children:_e.toLocaleDateString("en-US",{year:"2-digit",month:"2-digit",day:"numeric"})})]}),jsx(Icon,{className:"graybd my-4",ui:!0,width:6,click:"SHOWDSK",pr:!0})]})]})})},back="",Background=()=>{const s=useSelector(a=>a.wallpaper);return useDispatch(),jsx("div",{className:"background",style:{backgroundImage:`url(img/wallpaper/${s.src})`}})},BootScreen=s=>{const a=useDispatch(),o=useSelector(j=>j.wallpaper),[_,$]=react.exports.useState(!1);return react.exports.useEffect(()=>{s.dir<0&&setTimeout(()=>{console.log("blackout"),$(!0)},4e3)},[s.dir]),react.exports.useEffect(()=>{s.dir<0&&_&&o.act=="restart"&&setTimeout(()=>{$(!1),setTimeout(()=>{a({type:"WALLBOOTED"})},4e3)},2e3)},[_]),jsx("div",{className:"bootscreen",children:jsxs("div",{className:_?"hidden":"",children:[jsx(Image$1,{src:"asset/bootlogo",w:180}),jsx("div",{className:"mt-48",id:"loader",children:jsx("svg",{className:"progressRing",height:48,width:48,viewBox:"0 0 16 16",children:jsx("circle",{cx:"8px",cy:"8px",r:"7px"})})})]})})},LockScreen=s=>{useSelector(v1=>v1.wallpaper);const[a,o]=react.exports.useState(!1),[_,$]=react.exports.useState(!1),[j,_e]=react.exports.useState(""),[e1,a1]=react.exports.useState(1),[t1,r1]=react.exports.useState(!1),s1=useDispatch(),i1=useSelector(v1=>v1.setting.person.name),f1=v1=>{var y1=v1.target.dataset.action;if(v1.target.dataset.payload,y1=="splash")o(!0);else if(y1=="inpass"){var d1=v1.target.value;e1||(d1=d1.substring(0,4),d1=Number(d1)?d1:""),_e(d1)}else y1=="forgot"?r1(!0):y1=="pinlock"?a1(0):y1=="passkey"&&a1(1);(y1=="pinlock"||y1=="passkey")&&_e("")},g1=()=>{$(!0),setTimeout(()=>{s1({type:"WALLUNLOCK"})},1e3)};return jsxs("div",{className:"lockscreen "+(s.dir==-1?"slowfadein":""),"data-unlock":_,style:{backgroundImage:"url(img/wallpaper/lock.jpg)"},onClick:f1,"data-action":"splash","data-blur":a,children:[jsxs("div",{className:"splashScreen mt-40","data-faded":a,children:[jsx("div",{className:"text-6xl font-semibold text-gray-100",children:new Date().toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0})}),jsx("div",{className:"text-lg font-medium text-gray-200",children:new Date().toLocaleDateString(void 0,{weekday:"long",month:"long",day:"numeric"})})]}),jsxs("div",{className:"fadeinScreen","data-faded":!a,"data-unlock":_,children:[jsx(Image$1,{className:"rounded-full overflow-hidden",src:"img/asset/prof.jpg",w:200,ext:!0}),jsx("div",{className:"mt-2 text-2xl font-medium text-gray-200",children:i1}),jsx("div",{className:"flex items-center mt-6 signInBtn",onClick:g1,children:"Sign in"})]}),jsxs("div",{className:"bottomInfo flex",children:[jsx(Icon,{className:"mx-2",src:"wifi",ui:!0,width:16,invert:!0}),jsx(Battery,{invert:!0})]})]})},tabs="",tabs2="",wnapp="",AboutWin=()=>{const{abOpen:s}=useSelector(s1=>s1.desktop),{locked:a,booted:o}=useSelector(s1=>s1.wallpaper),[_,$]=react.exports.useState(!0),[j,_e]=react.exports.useState(localStorage.getItem("closeAbout")=="true"?0:5),e1=useDispatch(),{t:a1,i18n:t1}=useTranslation(),r1=()=>{$(!1),localStorage.setItem("closeAbout",!0),e1({type:"DESKABOUT",payload:!1})};return react.exports.useEffect(()=>{j>0&&!a&&o&&setTimeout(()=>{_e(j-1)},1e3)},[j,a,o]),_||s?jsxs("div",{className:"aboutApp floatTab dpShad",children:[jsxs("div",{className:"content p-6",children:[jsx("div",{className:"text-xl font-semibold",children:a1("about.title")}),jsx("p",{children:a1("about.opensource")}),jsxs("p",{children:[a1("about.licensed"),"\xA0",jsx("a",{target:"_blank",href:"https://github.com/blueedgetechno/win11React/blob/master/LICENSE",rel:"noreferrer",children:a1("about.Creative-Commons")}),"."]}),jsxs("p",{className:"pl-4",children:[a1("about.contact")," :\xA0",jsx("a",{target:"_blank",href:"mailto:blue@win11react.com",rel:"noreferrer",children:"blue@win11react.com"})]}),jsx("p",{children:a1("about.notmicrosoft")}),jsxs("p",{children:[a1("about.alsonot"),"\xA0",jsx("a",{target:"_blank",href:"https://www.microsoft.com/en-in/windows-365",rel:"noreferrer",children:"Windows 365 cloud PC"}),"."]}),jsxs("p",{children:[a1("about.microsoftcopywrite"),"."]})]}),jsx("div",{className:"okbtn px-6 py-4",children:jsxs("div",{"data-allow":j==0,onClick:j==0&&r1,children:[a1("about.understand")," ",j>0?jsx("span",{children:`( ${j} )`}):null]})})]}):null},Calculator=()=>{const s=useSelector(s1=>s1.apps.calculator),[a,o]=react.exports.useState([]),[_,$]=react.exports.useState("0"),[j,_e]=react.exports.useState(null),[e1,a1]=react.exports.useState([]),t1=s1=>{for(var i1=0;(s1=s1.previousSibling)!=null;)i1++;return i1},r1=s1=>{var i1=s1.target.dataset.ch,f1=t1(s1.target),g1=_;if(f1==2)$("0"),o([]),_e(null);else if(g1=="Infinity"||g1=="NaN")_e(g1);else if(f1==1)$("0");else if(f1==3)g1=g1.substring(0,g1.length-1),(g1.length==0||g1=="-")&&(g1="0"),$(g1);else if(f1<7&&f1>3){if(i1=="inv"){var v1=parseFloat(g1);if(v1!=0)var y1=1/v1;else{_e("Cannot divide by zero");return}$(y1.toString())}else if(i1=="sq"){var v1=parseFloat(g1),d1=v1**2;$(d1.toString())}else if(i1=="sqrt"){var v1=parseFloat(g1);if(g1[0]!="-")var u1=Math.sqrt(v1);else{_e("Invalid Input");return}$(u1.toString())}}else if(f1>7&&(f1+1)%4!=0)if(i1.length==1){var p1=[...a];p1[3]!=null&&(i1=="."?g1="0":g1="",o([])),g1+=i1,_=="0"&&i1!="."&&(g1=i1),g1.length<17&&g1.match(/^-?[0-9]+([.][0-9]*)?$/)!=null&&$(g1)}else _!="0"&&(_[0]=="-"?$(_.substring(1)):$("-"+_));else if(f1>3&&f1%4==3){var p1=[...a];if(i1!="=")p1[2]==null?(p1[0]==null&&(p1[0]=parseFloat(_)),p1[1]=i1):p1=[_,i1],$("0"),o(p1);else if(p1[1]!=null){if(p1[2]==null&&(p1[2]=parseFloat(_)),p1[3]="=",p1[1]=="/")if(p1[2]!=0)p1[4]=p1[0]/p1[2];else{_e("Cannot divide by zero");return}else p1[1]=="x"?p1[4]=p1[0]*p1[2]:p1[1]=="-"?p1[4]=p1[0]-p1[2]:p1[4]=p1[0]+p1[2];var z1=[...e1];o(p1),$(p1[4]),z1.push(p1),a1(z1)}}};return jsxs("div",{className:"calcApp floatTab dpShad","data-size":s.size,id:s.icon+"App","data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Calculator"}),jsxs("div",{className:"windowScreen flex flex-col","data-dock":"true",children:[jsx("div",{className:"flex pt-2",children:jsxs("div",{className:"flex pl-2 items-center",children:[jsx(Icon,{className:"menuBars",fafa:"faBars",color:"#222",width:14}),jsx("div",{className:"mx-4 font-semibold pb-1",children:"Standard"})]})}),jsxs("div",{className:"restWindow h-full flex-grow flex",children:[jsxs("div",{className:"w-full flex-grow flex flex-col relative",children:[jsxs("div",{className:"valCont w-full",children:[jsxs("div",{className:"eqCont",children:[a[0]," ",a[1]," ",a[2]," ",a[3]," ",a[4]]}),jsx("div",{className:"vlcCont",children:j==null?_:j})]}),jsxs("div",{className:"msrVal",children:[jsx("div",{children:"MC"}),jsx("div",{children:"MR"}),jsx("div",{children:"M+"}),jsx("div",{children:"M-"}),jsx("div",{children:"MS"})]}),jsxs("div",{className:"opcont","data-err":j!=null,children:[jsx("div",{onClick:r1,className:"oper","data-ch":"%",children:"%"}),jsx("div",{onClick:r1,className:"oper","data-ch":"CE",children:"CE"}),jsx("div",{onClick:r1,className:"oper","data-ch":"C",children:"C"}),jsx("div",{onClick:r1,className:"oper","data-ch":"back",children:jsx(Icon,{fafa:"faBackspace"})}),jsx("div",{onClick:r1,className:"oper","data-ch":"inv",children:"1/x"}),jsxs("div",{onClick:r1,className:"oper opow","data-ch":"sq",children:["x",jsx("sup",{className:"text-xss",children:"2"})]}),jsxs("div",{onClick:r1,className:"oper opow","data-ch":"sqrt",children:[jsx("sup",{className:"text-xss",children:"2"}),"\u221Ax"]}),jsx("div",{onClick:r1,className:"oper","data-ch":"/",children:"/"}),jsx("div",{onClick:r1,className:"oper","data-ch":"7",children:"7"}),jsx("div",{onClick:r1,className:"oper","data-ch":"8",children:"8"}),jsx("div",{onClick:r1,className:"oper","data-ch":"9",children:"9"}),jsx("div",{onClick:r1,className:"oper","data-ch":"x",children:"x"}),jsx("div",{onClick:r1,className:"oper","data-ch":"4",children:"4"}),jsx("div",{onClick:r1,className:"oper","data-ch":"5",children:"5"}),jsx("div",{onClick:r1,className:"oper","data-ch":"6",children:"6"}),jsx("div",{onClick:r1,className:"oper","data-ch":"-",children:"-"}),jsx("div",{onClick:r1,className:"oper","data-ch":"1",children:"1"}),jsx("div",{onClick:r1,className:"oper","data-ch":"2",children:"2"}),jsx("div",{onClick:r1,className:"oper","data-ch":"3",children:"3"}),jsx("div",{onClick:r1,className:"oper","data-ch":"+",children:"+"}),jsx("div",{onClick:r1,className:"oper","data-ch":"+-",children:"+/-"}),jsx("div",{onClick:r1,className:"oper","data-ch":"0",children:"0"}),jsx("div",{onClick:r1,className:"oper","data-ch":".",children:"."}),jsx("div",{onClick:r1,className:"oper","data-ch":"=",children:"="})]})]}),jsxs("div",{className:"calcHis flex flex-col",children:[jsx("div",{className:"text-sm font-semibold",children:"History"}),e1.length!=0?null:jsx("div",{className:"text-xs mt-4",children:"There's no history yet"}),jsx("div",{className:"histCont win11Scroll",children:jsx("div",{className:"hct h-max flex-grow",children:e1.map(s1=>jsxs("div",{className:"flex flex-col items-end mb-6 text-gray-500",children:[s1[0]," ",s1[1]," ",s1[2]," ",s1[3],jsx("div",{className:"text-2xl text-gray-600",children:s1[4]})]}))})})]})]})]})]})},Camera=()=>{const s=useSelector(_e=>_e.apps.camera),a=useSelector(_e=>_e.apps.camera.hide),[o,_]=react.exports.useState(null),{t:$}=useTranslation(),j=()=>{var _e=document.querySelector("video"),e1=document.querySelector("canvas");e1.width=_e.videoWidth,e1.height=_e.videoHeight;var a1=_e.videoWidth-_e.videoHeight;e1.getContext("2d").drawImage(_e,-a1/2,0,_e.videoWidth+a1,_e.videoHeight)};return react.exports.useEffect(()=>{if(s.hide)o!=null&&o.getTracks().forEach(a1=>a1.stop()),_(null);else{var _e=document.getElementById("camvideo");_e.setAttribute("playsinline",""),_e.setAttribute("autoplay",""),_e.setAttribute("muted","");var e1={audio:!1,video:!0};navigator.mediaDevices.getUserMedia(e1).then(a1=>{_(a1),console.log(a1),_e.srcObject=a1})}},[a]),jsxs("div",{className:"wnCam floatTab dpShad","data-size":s.size,id:s.icon+"App","data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Camera",invert:!0,bg:"#060606"}),jsx("div",{className:"windowScreen flex flex-col","data-dock":"true",children:jsx("div",{className:"restWindow flex-grow flex flex-col",children:jsxs("div",{className:"camcont",children:[jsxs("div",{className:"camctrl",children:[jsx("div",{className:"cmicon",title:$("camera.take-photo"),onClick:j,children:jsx(Icon,{icon:"camera"})}),jsx("canvas",{id:"camcanvas"})]}),jsx("div",{className:"vidcont",children:jsx("div",{className:"vidwrap",children:jsx("video",{id:"camvideo"})})})]})})})]})};var dist$1={};const require$$0=getAugmentedNamespace(jsxRuntime);var dist={},api={};Object.defineProperty(api,"__esModule",{value:!0});class API{constructor(){this.listeners={}}socketEvent(a){try{var o=JSON.parse(a)}catch{return}if(o instanceof Object&&o.widgetbot===!0&&o.id===this.id){const{event:_,data:$}=o,j=this.listeners[_];j&&j.forEach(_e=>_e($))}}on(a,o){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(o),console.debug(`[embed-api] on '${String(a)}'`,o)}removeListener(a,o){!this.listeners[a]||(this.listeners[a]=this.listeners[a].filter(_=>_===o),console.debug(`[embed-api] removeListener '${String(a)}'`,o))}}api.default=API;var client={};Object.defineProperty(client,"__esModule",{value:!0});const api_1$1=api;class Client extends api_1$1.default{constructor(a){super(),this.server={emit:(o,_)=>{const $=this.listeners[o];$&&$.forEach(j=>j(_))}},Object.assign(this,a),window.addEventListener("message",({data:o})=>this.socketEvent(o))}emit(a,o){if(!window.parent)return!1;const _=JSON.stringify({widgetbot:!0,id:this.id,event:a,data:o});return this.iframe.contentWindow?(this.iframe.contentWindow.postMessage(_,"*"),!0):!1}}client.default=Client;var server={};Object.defineProperty(server,"__esModule",{value:!0});const api_1=api;class Server extends api_1.default{constructor(a){super(),this.targetOrigin="*",this.client={emit:(o,_)=>{const $=this.listeners[o];$&&$.forEach(j=>j(_))}},Object.assign(this,a),window.addEventListener("message",({data:o})=>this.socketEvent(o))}emit(a,o){if(console.debug(`[embed-api] emit '${a}'`,o),!window.parent)return!1;const _=JSON.stringify({widgetbot:!0,id:this.id,event:a,data:o});return window.parent.postMessage(_,this.targetOrigin),!0}}server.default=Server;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.Server=s.Client=s.API=void 0;var a=api;Object.defineProperty(s,"API",{enumerable:!0,get:function(){return a.default}});var o=client;Object.defineProperty(s,"Client",{enumerable:!0,get:function(){return o.default}});var _=server;Object.defineProperty(s,"Server",{enumerable:!0,get:function(){return _.default}})})(dist);var elements={};Object.defineProperty(elements,"__esModule",{value:!0});elements.Embed=elements.Root=void 0;const Root=({width:s,height:a})=>Object.assign(Object.assign(Object.assign({},a&&{height:+a?`${a}px`:a}),s&&{width:+s?`${s}px`:s}),{display:"inline-block",overflow:"hidden",backgroundColor:"rgb(54, 57, 62)",borderRadius:7,verticalAlign:"top"});elements.Root=Root;elements.Embed={width:"100%",height:"100%",border:"none"};var util={};Object.defineProperty(util,"__esModule",{value:!0});util.searchParams=util.generateUUID=void 0;function generateUUID(){let s=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(s+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{let o=(s+Math.random()*16)%16|0;return s=Math.floor(s/16),(a==="x"?o:o&3|8).toString(16)})}util.generateUUID=generateUUID;const searchParams=(s={})=>"?"+Object.keys(s).map(a=>`${encodeURIComponent(a)}=${encodeURIComponent(s[a])}`).join("&");util.searchParams=searchParams;var _jsx=require$$0.jsx;Object.defineProperty(dist$1,"__esModule",{value:!0});const embed_api_1=dist,React=react.exports,elements_1=elements,util_1=util;class WidgetBot extends React.PureComponent{constructor(){super(...arguments),this.state={url:null,id:(0,util_1.generateUUID)()},this.api=new embed_api_1.Client({id:this.state.id,iframe:null})}static getDerivedStateFromProps(a,o){let _=a.shard;_.startsWith("http")||(_=`https://${_}`),_.endsWith("/")&&(_=_.substring(0,_.length-1));let $=Object.assign(Object.assign({},a.options),{api:o.id});return a.username&&($.username=a.username),a.avatar&&($.avatar=a.avatar),a.token&&($.token=a.token),{url:`${_}/channels/${a.server}${a.channel?`/${a.channel}`:""}/${(0,util_1.searchParams)($)}`}}componentDidMount(){const{onAPI:a}=this.props;a&&a(this.api)}render(){const{defer:a,className:o,style:_,height:$,width:j,focusable:_e}=this.props;return _jsx("div",{className:o,style:Object.assign(Object.assign({},(0,elements_1.Root)({width:j,height:$})),_),children:_jsx("iframe",{src:a?"":this.state.url,ref:e1=>this.api.iframe=e1,style:elements_1.Embed,tabIndex:_e?null:-1,title:"Discord chat embed"})})}}var _default=dist$1.default=WidgetBot;WidgetBot.defaultProps={server:"299881420891881473",shard:"https://e.widgetbot.io",options:{},defer:!1,focusable:!0};const DScord=()=>{const s=useSelector($=>$.apps.discord),[a,o]=react.exports.useState(null),_=[{src:"arrtective.png",link:"https://discord.io/arttective"},{src:"mimi.png",link:"https://discord.gg/AGSCfjgDMc"},{src:"narjiday.png",link:"https://discord.gg/K9wcgZJfXS"},{src:"aliyss.png",link:"https://discord.gg/zAypMTH"}];return react.exports.useEffect(()=>{a==null&&o("https://e.widgetbot.io/channels/868499076432408627/868499076432408631")}),jsxs("div",{className:"discordWn floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Discord",bg:"#282a2f",invert:!0}),jsx("div",{className:"windowScreen flex flex-col","data-dock":"true",children:jsxs("div",{className:"restWindow flex-grow flex",children:[jsxs("div",{className:"dsbar w-18",children:[jsxs("div",{className:"servCont noscroll",children:[jsx(Icon,{className:"dsIcon",src:"./img/asset/discord.png",ext:!0,width:26,click:"EXTERNAL",payload:"https://discord.gg/9jtcVZ3tWm"}),jsx("hr",{}),jsx(Icon,{className:"wnServer svIcon",src:"./img/asset/server.gif",width:48,click:"EXTERNAL",payload:"https://discord.gg/9jtcVZ3tWm",ext:!0}),_.map(($,j)=>jsx(Icon,{className:"svIcon",src:"./img/asset/"+$.src,click:"EXTERNAL",payload:$.link,ext:!0,width:48},j))]}),jsx("div",{className:"joincont",children:jsx("a",{href:"https://discord.gg/9jtcVZ3tWm",target:"_blank",rel:"noreferrer",children:"Join"})})]}),jsx("div",{className:"flex-grow overflow-hidden",children:jsx(LazyComponent,{show:!s.hide,children:jsx(_default,{className:"w-full h-full",shard:a||""})})})]})})]})},EdgeMenu=()=>{const s=useSelector(y1=>y1.apps.edge),[a,o]=react.exports.useState("https://www.google.com/?igu=1"),[_,$]=react.exports.useState(!0),[j,_e]=react.exports.useState(!1),[e1,a1]=react.exports.useState(["https://bing.com","https://bing.com"]),t1=useDispatch(),r1={"https://www.google.com/webhp?igu=1":"Google","https://bing.com":"Bing","https://www.youtube.com/embed/m0EHSoZzHEA":"Youtube","https://blueedge.me":"blueedge","https://andrewstech.me":` +The company said in a statement Wednesday it will partner with local nonprofits near their Menlo Park, Ca\u2026 [+2267 chars]`},{source:{id:null,name:"India.com"},author:"Zee Media Bureau",title:"No scientific evidence to prove COVID vaccine causes infertility, says Health Ministry - Zee News",description:"The Centre on Wednesday reiterated that there is no scientific evidence suggesting COVID-19 vaccination can cause infertility in men and women and asserted the vaccines have been found to be safe and effective.",url:"https://zeenews.india.com/india/no-scientific-evidence-to-prove-covid-vaccine-causes-infertility-says-health-ministry-2372947.html",urlToImage:"https://english.cdn.zeenews.com/sites/default/files/2021/06/30/947973-vaccination-india-reuters.jpg",publishedAt:"2021-06-30T11:43:32Z",content:"New Delhi: The Centre on Wednesday reiterated that there is no scientific evidence suggesting COVID-19 vaccination can cause infertility in men and women and asserted the vaccines have been found to \u2026 [+2263 chars]"},{source:{id:null,name:"Hindustan Times"},author:"hindustantimes.com",title:"Delta Plus: What should diabetic, high BP people do? All you need to know - Hindustan Times",description:"People with uncontrolled diabetes are at an increased risk of all infections in general, experts have said earlier. | Latest News India",url:"https://www.hindustantimes.com/india-news/delta-plus-what-should-diabetic-high-bp-people-do-all-you-need-to-know-101625052587694.html",urlToImage:"https://images.hindustantimes.com/img/2021/06/30/1600x900/PTI04_28_2021_000089B_1625052832441_1625052852076.jpg",publishedAt:"2021-06-30T11:38:28Z",content:"The new variant of SARS-CoV-2 Delta Plus has brought back some containment at local levels. Maharashtra has reimposed some curbs while Karnataka has again made negative RT-PCR results or vaccine cert\u2026 [+2336 chars]"}],news={status,totalResults,articles};var hisTemp=history,date=new Date,event=hisTemp[Math.floor(Math.random()*hisTemp.length)];date.setYear(event.year);var newsList=[];for(var i$1=0;i$1{if(rem!=null){var o=rem;return rem=null,o}else if(a)return rem=Math.floor(Math.random()*s),rem;return Math.floor(Math.random()*s)},defState$5={data:{weather:{city:"New Delhi",country:"India",wstate:wstates[getRandom(10,1)],icon:abbr[getRandom()],temp:30+getRandom(20),rain:10+getRandom(80),wind:4+getRandom(5),days:[0,1,2,3].map(s=>({day:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][(new Date().getDay()+s)%7],icon:abbr[getRandom(10)],min:30+getRandom(10),max:40+getRandom(10)}))},stock:[[Number(parseFloat(2300+Math.random()*200).toFixed(2)).toLocaleString(),parseFloat(Math.random()*2).toFixed(2),Math.round(Math.random())],[Number(parseFloat(600+Math.random()*200).toFixed(2)).toLocaleString(),parseFloat(Math.random()*2).toFixed(2),Math.round(Math.random())]],date:date.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),event,news:newsList},hide:!0},widReducer=(s=defState$5,a)=>{switch(a.type){case"WIDGHIDE":return{...s,hide:!0};case"WIDGTOGG":return{...s,hide:!s.hide};case"WIDGREST":return a.payload;default:return s}};var dev="";const defState$4={};for(var i=0;i{var o={...s};if(a.type=="EDGELINK"){var _={...o.edge};return a.payload&&a.payload.startsWith("http")?_.url=a.payload:a.payload&&a.payload.length!=0?_.url="https://www.bing.com/search?q="+a.payload:_.url=null,_.size="full",_.hide=!1,_.max=!0,o.hz+=1,_.z=o.hz,o.edge=_,o}else if(a.type=="SHOWDSK"){for(var $=Object.keys(o),j=0;j<$.length;j++){var _=o[$[j]];_.hide==!1&&(_.max=!1,_.z==o.hz&&(o.hz-=1),_.z=-1,o[$[j]]=_)}return o}else if(a.type=="EXTERNAL")window.open(a.payload,"_blank");else if(a.type=="OPENTERM"){var _={...o.terminal};return _.dir=a.payload,_.size="full",_.hide=!1,_.max=!0,o.hz+=1,_.z=o.hz,o.terminal=_,o}else{if(a.type=="ADDAPP")return o[a.payload.icon]=a.payload,o[a.payload.icon].size="full",o[a.payload.icon].hide=!0,o[a.payload.icon].max=null,o[a.payload.icon].z=0,o;if(a.type=="DELAPP")return delete o[a.payload],o;for(var $=Object.keys(s),j=0;j<$.length;j++){var _=s[$[j]];if(_.action==a.type)return o={...s},a.payload=="full"?(_.size="full",_.hide=!1,_.max=!0,o.hz+=1,_.z=o.hz):a.payload=="close"?(_.hide=!0,_.max=null,_.z=-1,o.hz-=1):a.payload=="mxmz"?(_.size=["mini","full"][_.size!="full"?1:0],_.hide=!1,_.max=!0,o.hz+=1,_.z=o.hz):a.payload=="togg"?_.z!=o.hz?(_.hide=!1,_.max?(_.z=-1,_.max=!1):(o.hz+=1,_.z=o.hz,_.max=!0)):(_.max=!_.max,_.hide=!1,_.max?(o.hz+=1,_.z=o.hz):(_.z=-1,o.hz-=1)):a.payload=="mnmz"?(_.max=!1,_.hide=!1,_.z==o.hz&&(o.hz-=1),_.z=-1):a.payload=="resize"?(_.size="cstm",_.hide=!1,_.max=!0,_.z!=o.hz&&(o.hz+=1),_.z=o.hz,_.dim=a.dim):a.payload=="front"&&(_.hide=!1,_.max=!0,_.z!=o.hz&&(o.hz+=1,_.z=o.hz)),o[$[j]]=_,o}}return s},defState$3={hide:!0,top:80,left:360,opts:"desk",attr:null,dataset:null,data:{desk:{width:"310px",secwid:"200px"},task:{width:"220px",secwid:"120px",ispace:!1},app:{width:"310px",secwid:"200px"}},menus:{desk:[{name:"View",icon:"view",type:"svg",opts:[{name:"Large icons",action:"changeIconSize",payload:"large"},{name:"Medium icons",action:"changeIconSize",payload:"medium"},{name:"Small icons",action:"changeIconSize",payload:"small",dot:!0},{type:"hr"},{name:"Show desktop icons",action:"deskHide",check:!0}]},{name:"Sort by",icon:"sort",type:"svg",opts:[{name:"Name",action:"changeSort",payload:"name"},{name:"Size",action:"changeSort",payload:"size"},{name:"Date modified",action:"changeSort",payload:"date"}]},{name:"Refresh",action:"refresh",type:"svg",icon:"refresh"},{type:"hr"},{name:"New",icon:"New",type:"svg",opts:[{name:"Folder"},{name:"Shortcut"},{name:"Text Document"},{name:"Compressed (zipped) Folder"}]},{type:"hr"},{name:"Display settings",icon:"display",type:"svg",action:"SETTINGS",payload:"full"},{name:"Personalize",icon:"personalize",type:"svg",action:"SETTINGS",payload:"full"},{type:"hr"},{name:"Next desktop background",action:"WALLNEXT"},{name:"Open in Terminal",icon:"terminal",action:"OPENTERM",payload:"C:\\Users\\Blue\\Desktop"},{name:"About",action:"DESKABOUT",icon:"win/info",payload:!0}],task:[{name:"Align icons",opts:[{name:"Left",action:"changeTaskAlign",payload:"left"},{name:"Center",action:"changeTaskAlign",payload:"center",dot:!0}]},{type:"hr"},{name:"Search",opts:[{name:"Show",action:"TASKSRCH",payload:!0},{name:"Hide",action:"TASKSRCH",payload:!1}]},{name:"Widgets",opts:[{name:"Show",action:"TASKWIDG",payload:!0},{name:"Hide",action:"TASKWIDG",payload:!1}]},{type:"hr"},{name:"Show Desktop",action:"SHOWDSK"}],app:[{name:"Open",action:"performApp",payload:"open"},{name:"Run as administrator",action:"performApp",payload:"open",icon:"win/shield"},{name:"Open file location",dsb:!0},{name:"Unpin from start",dsb:!0},{name:"Compress to Zip file",dsb:!0},{name:"Copy as path",dsb:!0},{name:"Properties",dsb:!0},{type:"hr"},{name:"Delete shortcut",action:"performApp",payload:"delshort"},{name:"Delete",action:"delApp",payload:"delete"}]}},menusReducer=(s=defState$3,a)=>{var o={...s};return a.type=="MENUHIDE"?o.hide=!0:a.type=="MENUSHOW"?(o.hide=!1,o.top=a.payload&&a.payload.top||272,o.left=a.payload&&a.payload.left||430,o.opts=a.payload&&a.payload.menu||"desk",o.attr=a.payload&&a.payload.attr,o.dataset=a.payload&&a.payload.dataset):a.type=="MENUCHNG"&&(o={...a.payload}),o},defState$2={lays:[[{dim:{width:"50%",height:"100%",top:0,left:0},br:14},{dim:{width:"50%",height:"100%",top:0,left:"50%"},br:15}],[{dim:{width:"66%",height:"100%",top:0,left:0},br:14},{dim:{width:"34%",height:"100%",top:0,left:"66%"},br:15}],[{dim:{width:"33%",height:"100%",top:0,left:0},br:14},{dim:{width:"34%",height:"100%",top:0,left:"33%"},br:1},{dim:{width:"33%",height:"100%",top:0,left:"67%"},br:15}],[{dim:{width:"50%",height:"100%",top:0,left:0},br:14},{dim:{width:"50%",height:"50%",top:0,left:"50%"},br:3},{dim:{width:"50%",height:"50%",top:"50%",left:"50%"},br:5}],[{dim:{width:"50%",height:"50%",top:0,left:0},br:2},{dim:{width:"50%",height:"50%",top:0,left:"50%"},br:3},{dim:{width:"50%",height:"50%",top:"50%",left:0},br:7},{dim:{width:"50%",height:"50%",top:"50%",left:"50%"},br:5}],[{dim:{width:"25%",height:"100%",top:0,left:0},br:14},{dim:{width:"50%",height:"100%",top:0,left:"25%"},br:1},{dim:{width:"25%",height:"100%",top:0,left:"75%"},br:15}]],ribbon:["luca","unescape","essential apps","xbox gamepass","spotify","social media","security","utility apps","forza horizon","kids apps"],apprib:["netflix","whatsApp","telegram","facebook","amazon prime","office","lightroom"],gamerib:["call of duty","cyberpunk 2077","minecraft","battle field v","far cry 5","hitman 3","residental evil"],movrib:["antman","godzilla vs kong","tom and jerry","wrath of man","john wick","wonder woman 1984","nobody"]},globalReducer=(s=defState$2,a)=>s,defState$1={system:{power:{saver:{state:!1},battery:100},display:{brightness:100,nightlight:{state:!1},connect:!1}},person:{name:"Blue Edge",theme:"light",color:"blue"},devices:{bluetooth:!1},network:{wifi:{state:!0},airplane:!1},privacy:{location:{state:!1}}};document.body.dataset.theme=defState$1.person.theme;const changeVal=(s,a,o="togg")=>{var _=s;a=a.split(".");for(var $=0;${var o={...s},_=!1;switch(a.type){case"STNGTHEME":_=!0,o.person.theme=a.payload;break;case"STNGTOGG":_=!0,o=changeVal(o,a.payload);break;case"STNGSETV":_=!0,o=changeVal(o,a.payload.path,a.payload.value);break;case"SETTLOAD":o={...a.payload}}return _&&localStorage.setItem("setting",JSON.stringify(o)),o};class Item{constructor({type:a,name:o,info:_,data:$,host:j}){this.type=a||"folder",this.name=o,this.info=_||{},this.info.icon=this.info.icon||this.type,this.data=$,this.host=j,this.id=this.gene()}gene(){return Math.random().toString(36).substring(2,10).toLowerCase()}getId(){return this.id}getData(){return this.data}setData(a){this.data=a}}class Bin{constructor(){this.tree=[],this.lookup={},this.special={}}setSpecial(a,o){this.special[a]=o}setId(a,o){this.lookup[a]=o}getId(a){return this.lookup[a]}getPath(a){for(var o="",_=this.getId(a);_;)o=_.name+"\\"+o,_=_.host;return o.count("\\")>1?o.strip("\\"):o}parsePath(a){if(a.includes("%"))return this.special[a.trim()];if(a=a.split("\\").filter(a1=>a1!=="").map(a1=>a1.trim().toLowerCase()),a.length===0)return null;for(var o=null,_=null,$=0;${var o={...s},_=!1;if(a.type==="FILEDIR")o.cdir=a.payload;else if(a.type==="FILEPATH"){var $=o.data.parsePath(a.payload);$&&(o.cdir=$)}else if(a.type==="FILEBACK"){var j=o.data.getId(o.cdir);j.host&&(o.cdir=j.host.id)}else a.type==="FILEVIEW"?o.view=a.payload:a.type==="FILEPREV"?(o.hid--,o.hid<0&&(o.hid=0),_=!0):a.type==="FILENEXT"&&(o.hid++,o.hid>o.hist.length-1&&(o.hid=o.hist.length-1),_=!0);return!_&&o.cdir!=o.hist[o.hid]&&(o.hist.splice(o.hid+1),o.hist.push(o.cdir),o.hid=o.hist.length-1),o.cdir=o.hist[o.hid],o.cdir.includes("%")&&o.data.special[o.cdir]!=null&&(o.cdir=o.data.special[o.cdir],o[o.hid]=o.cdir),o.cpath=o.data.getPath(o.cdir),o},allReducers=combineReducers({wallpaper:wallReducer,taskbar:taskReducer,desktop:deskReducer,startmenu:menuReducer,sidepane:paneReducer,widpane:widReducer,apps:appReducer,menus:menusReducer,globals:globalReducer,setting:settReducer,files:fileReducer});var store$1=createStore(allReducers);const dispatchAction=s=>{const a={type:s.target.dataset.action,payload:s.target.dataset.payload};a.type&&store$1.dispatch(a)},refresh=(s,a)=>{a.menus.desk[0].opts[4].check&&(store$1.dispatch({type:"DESKHIDE"}),setTimeout(()=>store$1.dispatch({type:"DESKSHOW"}),100))},changeIconSize=(s,a)=>{var o={...a};o.menus.desk[0].opts[0].dot=!1,o.menus.desk[0].opts[1].dot=!1,o.menus.desk[0].opts[2].dot=!1;var _=1;s=="large"?(o.menus.desk[0].opts[0].dot=!0,_=1.5):s=="medium"?(o.menus.desk[0].opts[1].dot=!0,_=1.2):o.menus.desk[0].opts[2].dot=!0,refresh("",o),store$1.dispatch({type:"DESKSIZE",payload:_}),store$1.dispatch({type:"MENUCHNG",payload:o})},deskHide=(s,a)=>{var o={...a};o.menus.desk[0].opts[4].check^=1,store$1.dispatch({type:"DESKTOGG"}),store$1.dispatch({type:"MENUCHNG",payload:o})},changeSort=(s,a)=>{var o={...a};o.menus.desk[1].opts[0].dot=!1,o.menus.desk[1].opts[1].dot=!1,o.menus.desk[1].opts[2].dot=!1,s=="name"?o.menus.desk[1].opts[0].dot=!0:s=="size"?o.menus.desk[1].opts[1].dot=!0:o.menus.desk[1].opts[2].dot=!0,refresh("",o),store$1.dispatch({type:"DESKSORT",payload:s}),store$1.dispatch({type:"MENUCHNG",payload:o})},changeTaskAlign=(s,a)=>{var o={...a};o.menus.task[0].opts[s=="left"?0:1].dot||(o.menus.task[0].opts[0].dot=!1,o.menus.task[0].opts[1].dot=!1,s=="left"?o.menus.task[0].opts[0].dot=!0:o.menus.task[0].opts[1].dot=!0,store$1.dispatch({type:"TASKTOG"}),store$1.dispatch({type:"MENUCHNG",payload:o}))},performApp=(s,a)=>{var o={type:a.dataset.action,payload:a.dataset.payload};if(s=="open")o.type&&store$1.dispatch(o);else if(s=="delshort"&&o.type){var _=store$1.getState().apps,$=Object.keys(_).filter(j=>_[j].action==o.type||_[j].payload==o.payload&&_[j].payload!=null);$=_[$],$&&store$1.dispatch({type:"DESKREM",payload:$.name})}},delApp=(s,a)=>{var o={type:a.dataset.action,payload:a.dataset.payload};if(s=="delete"&&o.type){var _=store$1.getState().apps,$=Object.keys(_).filter(_e=>_[_e].action==o.type);if($&&($=_[$],$.pwa==!0)){store$1.dispatch({type:$.action,payload:"close"}),store$1.dispatch({type:"DELAPP",payload:$.icon});var j=localStorage.getItem("installed");j||(j="[]"),j=JSON.parse(j),j=j.filter(_e=>_e.icon!=$.icon),localStorage.setItem("installed",JSON.stringify(j)),store$1.dispatch({type:"DESKREM",payload:$.name})}}},installApp=s=>{var a={...s,type:"app",pwa:!0},o=localStorage.getItem("installed");o||(o="[]"),o=JSON.parse(o),o.push(a),localStorage.setItem("installed",JSON.stringify(o));var _=localStorage.getItem("desktop");_?_=JSON.parse(_):_=dfApps.desktop,_.push(a.name),localStorage.setItem("desktop",JSON.stringify(_)),a.action=gene_name(),store$1.dispatch({type:"ADDAPP",payload:a}),store$1.dispatch({type:"DESKADD",payload:a}),store$1.dispatch({type:"WNSTORE",payload:"mnmz"})},getTreeValue=(s,a)=>{if(a==null)return!1;var o={...s};a=a.split(".");for(var _=0;_{var s=store$1.getState().setting.person.theme,s=s=="light"?"dark":"light",a=s=="light"?"sun":"moon";document.body.dataset.theme=s,store$1.dispatch({type:"STNGTHEME",payload:s}),store$1.dispatch({type:"PANETHEM",payload:a}),store$1.dispatch({type:"WALLSET",payload:s=="light"?0:1})},loadWidget=async()=>{var s={...store$1.getState().widpane},a=new Date,o="https://en.wikipedia.org/api/rest_v1/feed/onthisday/events";await axios.get(`${o}/${a.getMonth()}/${a.getDay()}`).then(_=>_.data).then(_=>{var $=_.events[Math.floor(Math.random()*_.events.length)];a.setYear($.year),s.data.date=a.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),s.data.event=$}).catch(_=>{}),await axios.get("https://github.win11react.com/api-cache/news.json").then(_=>_.data).then(_=>{var $=[];_.articles.forEach(j=>{j.title=j.title.split("-").slice(0,-1).join("-").trim(),$.push(j)}),s.data.news=$}).catch(_=>{}),store$1.dispatch({type:"WIDGREST",payload:s})},loadSettings=()=>{var s=localStorage.getItem("setting")||"{}";s=JSON.parse(s),s.person==null&&(s=JSON.parse(JSON.stringify(store$1.getState().setting)),window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&(s.person.theme="dark")),s.person.theme!="light"&&changeTheme(),store$1.dispatch({type:"SETTLOAD",payload:s}),loadWidget()},handleFileOpen=s=>{const a=store$1.getState().files.data.getId(s);a!=null&&a.type=="folder"&&store$1.dispatch({type:"FILEDIR",payload:a.id})},Actions=Object.freeze(Object.defineProperty({__proto__:null,dispatchAction,refresh,changeIconSize,deskHide,changeSort,changeTaskAlign,performApp,delApp,installApp,getTreeValue,changeTheme,loadSettings,handleFileOpen},Symbol.toStringTag,{value:"Module"})),ActMenu=()=>{const s=useSelector(e1=>e1.menus),a=s.data[s.opts],{abpos:o,isLeft:_}=useSelector(e1=>{var a1=e1.menus.menus[e1.menus.opts].length,t1={top:e1.menus.top,left:e1.menus.left},r1=!1,s1=window.innerWidth,i1=window.innerHeight,f1=312,g1=a1*28;return r1=s1-t1.left>504,s1-t1.left{e1.stopPropagation();var a1={type:e1.target.dataset.action,payload:e1.target.dataset.payload};a1.type&&(a1.type!=a1.type.toUpperCase()?Actions[a1.type](a1.payload,s):$(a1),$({type:"MENUHIDE"}))},_e=e1=>{var a1=[];return e1.map((t1,r1)=>{t1.type=="hr"?a1.push(jsx("div",{className:"menuhr"},r1)):a1.push(jsxs("div",{className:"menuopt","data-dsb":t1.dsb,onClick:j,"data-action":t1.action,"data-payload":t1.payload,children:[a.ispace!=!1?jsxs("div",{className:"spcont",children:[t1.icon&&t1.type=="svg"?jsx(Icon,{icon:t1.icon,width:16}):null,t1.icon&&t1.type=="fa"?jsx(Icon,{fafa:t1.icon,width:16}):null,t1.icon&&t1.type==null?jsx(Icon,{src:t1.icon,width:16}):null]}):null,jsx("div",{className:"nopt",children:t1.name}),t1.opts?jsx(Icon,{className:"micon rightIcon",fafa:"faChevronRight",width:10,color:"#999"}):null,t1.dot?jsx(Icon,{className:"micon dotIcon",fafa:"faCircle",width:4,height:4}):null,t1.check?jsx(Icon,{className:"micon checkIcon",fafa:"faCheck",width:8,height:8}):null,t1.opts?jsx("div",{className:"minimenu",style:{minWidth:a.secwid},children:_e(t1.opts)}):null]},r1))}),a1};return jsx("div",{className:"actmenu",id:"actmenu",style:{...o,"--prefix":"MENU",width:a.width},"data-hide":s.hide,"data-left":_,children:_e(s.menus[s.opts])})},battery="",Battery=({pct:s,invert:a})=>{const o=useDispatch(),_=useSelector(j=>j.setting.system.power.battery),$=j=>{let _e=j.level*100||100;j.charging&&(_e=-_e),o({type:"STNGSETV",payload:{path:"system.power.battery",value:_e}})};return react.exports.useEffect(()=>{window.BatteryManager&&(async()=>{let j=await navigator.getBattery();$(j),j.onlevelchange=()=>$(j),j.onchargingchange=()=>$(j)})()},[]),jsxs(Fragment,{children:[jsx("div",{className:`uicon taskIcon ${a?"invert":""}`,children:jsxs("span",{className:"battery",children:[_<0?jsx("div",{className:"charger",children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",fill:"none",viewBox:"0 0 24 24",children:jsx("path",{fill:"#000",stroke:"#f3f3f3",strokeWidth:"2",d:"m8.294 14-1.767 7.068c-.187.746.736 1.256 1.269.701L19.79 9.27A.75.75 0 0 0 19.25 8h-4.46l1.672-5.013A.75.75 0 0 0 15.75 2h-7a.75.75 0 0 0-.721.544l-3 10.5A.75.75 0 0 0 5.75 14h2.544Z"})})}):null,jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",width:"20",fill:"none",viewBox:"0 0 24 24",children:jsx("path",{xmlns:"http://www.w3.org/2000/svg",fill:"#000",d:"M17 6a3 3 0 0 1 3 3v1h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1v1a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h12Zm-.002 1.5H5a1.5 1.5 0 0 0-1.493 1.356L3.5 9v6a1.5 1.5 0 0 0 1.355 1.493L5 16.5h11.998a1.5 1.5 0 0 0 1.493-1.355l.007-.145V9a1.5 1.5 0 0 0-1.355-1.493l-.145-.007Z"})}),jsx("div",{className:"btFull",style:{width:`${Math.round(Math.abs(_))}%`},children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",width:"20",fill:"none",viewBox:"0 0 24 24",children:jsx("path",{fill:"#000",d:"M17 6a3 3 0 0 1 3 3v1h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-1v1a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h12Zm-.002 1.5H5a1.5 1.5 0 0 0-1.494 1.356L3.5 9v6a1.5 1.5 0 0 0 1.355 1.493L5 16.5h11.998a1.5 1.5 0 0 0 1.493-1.355l.007-.145V9a1.5 1.5 0 0 0-1.355-1.493l-.145-.007ZM6 9h10a1 1 0 0 1 .993.883L17 10v4a1 1 0 0 1-.883.993L16 15H6a1 1 0 0 1-.993-.883L5 14v-4a1 1 0 0 1 .883-.993L6 9h10H6Z"})})})]})}),s?jsxs("div",{className:"text-xs",children:[Math.round(Math.abs(_)),"%"]}):null]})},searchpane="",sidepane="",startmenu="",StartMenu=()=>{const{align:s}=useSelector(i1=>i1.taskbar),a=useSelector(i1=>{for(var f1=i1.startmenu,g1=(6-f1.pnApps.length%6)%6,v1=0;v1p1!="hz").map(p1=>i1.apps[p1]);for(d1.sort((p1,z1)=>p1.name>z1.name?1:z1.name>p1.name?-1:0),v1=0;v1<27;v1++)y1[v1]=[];for(v1=0;v164&&u1<91?y1[u1-64].push(d1[v1]):y1[0].push(d1[v1])}return f1.contApps=y1,f1.allApps=d1,f1}),[o,_]=react.exports.useState(""),[$,j]=react.exports.useState({}),[_e,e1]=react.exports.useState("All"),a1=useDispatch(),t1=i1=>{e1(i1.target.innerText.trim())},r1=i1=>{var f1={type:i1.target.dataset.action,payload:i1.target.dataset.payload};if(f1.type&&a1(f1),f1.type&&(f1.payload=="full"||f1.type=="EDGELINK")&&a1({type:"STARTHID"}),f1.type=="STARTALPHA"){var g1=document.getElementById("char"+f1.payload);if(g1)g1.parentNode.scrollTop=g1.offsetTop;else{var g1=document.getElementById("charA");g1.parentNode.scrollTop=0}}};react.exports.useEffect(()=>{if(o.length){for(var i1=0;i1i1.setting.person.name);return jsx("div",{className:"startMenu dpShad","data-hide":a.hide,style:{"--prefix":"START"},"data-align":s,children:a.menu?jsxs(Fragment,{children:[jsx("div",{className:"stmenu","data-allapps":a.showAll,children:jsxs("div",{className:"menuUp",children:[jsxs("div",{className:"pinnedApps",children:[jsxs("div",{className:"stAcbar",children:[jsx("div",{className:"gpname",children:"Pinned"}),jsxs("div",{className:"gpbtn prtclk",onClick:r1,"data-action":"STARTALL",children:[jsx("div",{children:"All apps"}),jsx(Icon,{fafa:"faChevronRight",width:8})]})]}),jsx("div",{className:"pnApps",children:a.pnApps.map((i1,f1)=>i1.empty?jsx("div",{className:"pnApp pnEmpty"},f1):jsxs("div",{className:"prtclk pnApp",value:i1.action!=null,onClick:r1,"data-action":i1.action,"data-payload":i1.payload||"full",children:[jsx(Icon,{className:"pnIcon",src:i1.icon,width:32}),jsx("div",{className:"appName",children:i1.name})]},f1))})]}),jsxs("div",{className:"recApps win11Scroll",children:[jsxs("div",{className:"stAcbar",children:[jsx("div",{className:"gpname",children:"Recommended"}),jsxs("div",{className:"gpbtn none",children:[jsx("div",{children:"More"}),jsx(Icon,{fafa:"faChevronRight",width:8})]})]}),jsx("div",{className:"reApps",children:a.rcApps.slice(0,6).map((i1,f1)=>i1.name?jsxs("div",{className:"rnApp",value:i1.action!=null,onClick:r1,"data-action":i1.action,"data-payload":i1.payload||"full",children:[jsx(Icon,{className:"pnIcon",src:i1.icon,width:32}),jsxs("div",{className:"acInfo",children:[jsx("div",{className:"appName",children:i1.name}),jsx("div",{className:"timeUsed",children:i1.lastUsed})]})]},f1):null)})]})]})}),jsx("div",{className:"allCont","data-allapps":a.showAll,children:jsxs("div",{className:"appCont",children:[jsxs("div",{className:"stAcbar",children:[jsx("div",{className:"gpname",children:"All apps"}),jsxs("div",{className:"gpbtn prtclk",onClick:r1,"data-action":"STARTALL",children:[jsx(Icon,{className:"chevLeft",fafa:"faChevronLeft",width:8}),jsx("div",{children:"Back"})]})]}),jsx("div",{className:"allApps win11Scroll","data-alpha":a.alpha,children:a.contApps.map((i1,f1)=>{if(i1.length==0)return null;var g1=[];return g1.push(jsx("div",{className:"allApp prtclk","data-action":"STARTALPHA",onClick:r1,id:`char${f1==0?"#":String.fromCharCode(f1+64)}`,children:jsx("div",{className:"ltName",children:f1==0?"#":String.fromCharCode(f1+64)})},f1)),i1.forEach((v1,y1)=>{g1.push(jsxs("div",{className:"allApp prtclk",onClick:r1,"data-action":v1.action,"data-payload":v1.payload||"full",children:[jsx(Icon,{className:"pnIcon",src:v1.icon,width:24}),jsx("div",{className:"appName",children:v1.name})]},v1.name))}),g1})}),jsx("div",{className:"alphaBox","data-alpha":a.alpha,children:jsxs("div",{className:"alphaCont",children:[jsx("div",{className:"dullApp allApp",children:jsx("div",{className:"ltName",children:"&"})}),a.contApps.map((i1,f1)=>jsx("div",{className:i1.length==0?"dullApp allApp":"allApp prtclk","data-action":"STARTALPHA",onClick:i1.length==0?null:r1,"data-payload":f1==0?"#":String.fromCharCode(f1+64),children:jsx("div",{className:"ltName",children:f1==0?"#":String.fromCharCode(f1+64)})},f1))]})})]})}),jsxs("div",{className:"menuBar",children:[jsxs("div",{className:"profile handcr",children:[jsx(Icon,{src:"blueProf",ui:!0,rounded:!0,width:26,click:"EXTERNAL",payload:"https://blueedge.me"}),jsx("div",{className:"usName",children:s1})]}),jsxs("div",{className:"relative powerMenu",children:[jsxs("div",{className:"powerCont","data-vis":a.pwctrl,children:[jsxs("div",{className:"flex prtclk items-center gap-2",onClick:r1,"data-action":"WALLALOCK",children:[jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M12 2a4 4 0 0 1 4 4v2h1.75A2.25 2.25 0 0 1 20 10.25v9.5A2.25 2.25 0 0 1 17.75 22H6.25A2.25 2.25 0 0 1 4 19.75v-9.5A2.25 2.25 0 0 1 6.25 8H8V6a4 4 0 0 1 4-4Zm5.75 7.5H6.25a.75.75 0 0 0-.75.75v9.5c0 .414.336.75.75.75h11.5a.75.75 0 0 0 .75-.75v-9.5a.75.75 0 0 0-.75-.75Zm-5.75 4a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3Zm0-10A2.5 2.5 0 0 0 9.5 6v2h5V6A2.5 2.5 0 0 0 12 3.5Z",fill:"currentColor"})}),jsx("span",{children:"Lock"})]}),jsxs("div",{className:"flex prtclk items-center gap-2",onClick:r1,"data-action":"WALLSHUTDN",children:[jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M8.204 4.82a.75.75 0 0 1 .634 1.36A7.51 7.51 0 0 0 4.5 12.991c0 4.148 3.358 7.51 7.499 7.51s7.499-3.362 7.499-7.51a7.51 7.51 0 0 0-4.323-6.804.75.75 0 1 1 .637-1.358 9.01 9.01 0 0 1 5.186 8.162c0 4.976-4.029 9.01-9 9.01C7.029 22 3 17.966 3 12.99a9.01 9.01 0 0 1 5.204-8.17ZM12 2.496a.75.75 0 0 1 .743.648l.007.102v7.5a.75.75 0 0 1-1.493.102l-.007-.102v-7.5a.75.75 0 0 1 .75-.75Z",fill:"currentColor"})}),jsx("span",{children:"Shut down"})]}),jsxs("div",{className:"flex prtclk items-center gap-2",onClick:r1,"data-action":"WALLRESTART",children:[jsx("svg",{width:"18",height:"18",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:jsx("path",{d:"M12 4.5a7.5 7.5 0 1 1-7.419 6.392c.067-.454-.265-.892-.724-.892a.749.749 0 0 0-.752.623A9 9 0 1 0 6 5.292V4.25a.75.75 0 0 0-1.5 0v3c0 .414.336.75.75.75h3a.75.75 0 0 0 0-1.5H6.9a7.473 7.473 0 0 1 5.1-2Z",fill:"currentColor"})}),jsx("span",{children:"Restart"})]})]}),jsx("svg",{width:"20",height:"20",fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",onClick:r1,"data-action":"STARTPWC",children:jsx("path",{d:"M8.204 4.82a.75.75 0 0 1 .634 1.36A7.51 7.51 0 0 0 4.5 12.991c0 4.148 3.358 7.51 7.499 7.51s7.499-3.362 7.499-7.51a7.51 7.51 0 0 0-4.323-6.804.75.75 0 1 1 .637-1.358 9.01 9.01 0 0 1 5.186 8.162c0 4.976-4.029 9.01-9 9.01C7.029 22 3 17.966 3 12.99a9.01 9.01 0 0 1 5.204-8.17ZM12 2.496a.75.75 0 0 1 .743.648l.007.102v7.5a.75.75 0 0 1-1.493.102l-.007-.102v-7.5a.75.75 0 0 1 .75-.75Z",fill:"currentColor"})})]})]})]}):jsxs("div",{className:"searchMenu",children:[jsxs("div",{className:"searchBar",children:[jsx(Icon,{className:"searchIcon",src:"search",width:16}),jsx("input",{type:"text",onChange:i1=>{_(i1.target.value.trim())},defaultValue:o,placeholder:"Type here to search",autoFocus:!0})]}),jsx("div",{className:"flex py-4 px-1 text-xs",children:jsxs("div",{className:"opts w-1/2 flex justify-between",children:[jsx("div",{value:_e=="All",onClick:t1,children:"All"}),jsx("div",{value:_e=="Apps",onClick:t1,children:"Apps"}),jsx("div",{value:_e=="Documents",onClick:t1,children:"Documents"}),jsx("div",{value:_e=="Web",onClick:t1,children:"Web"}),jsx("div",{value:_e=="More",onClick:t1,children:"More"})]})}),jsxs("div",{className:"shResult w-full flex justify-between",children:[jsxs("div",{className:"leftSide flex-col px-1","data-width":o.length!=0,children:[jsx("div",{className:"text-sm font-semibold mb-4",children:o.length?"Best match":"Top apps"}),o.length?jsxs("div",{className:"textResult h-16",children:[jsxs("div",{className:"smatch flex my-2 p-3 rounded",children:[jsx(Icon,{src:$.icon,width:24}),jsxs("div",{className:"matchInfo flex-col px-2",children:[jsx("div",{className:"font-semibold text-xs",children:$.name}),jsx("div",{className:"text-xss",children:"App"})]})]}),jsxs("div",{className:"smatch flex my-2 p-3 rounded handcr prtclk",onClick:r1,"data-action":"EDGELINK","data-payload":o,children:[jsx(Icon,{className:"blueicon",src:"search",ui:!0,width:20}),jsxs("div",{className:"matchInfo flex-col px-2",children:[jsx("div",{className:"font-semibold text-xs",children:"Search online"}),jsx("div",{className:"text-xss",children:"Web"})]})]})]}):jsxs(Fragment,{children:[jsx("div",{className:"topApps flex w-full justify-between",children:a.rcApps.slice(1,7).map((i1,f1)=>jsxs("div",{className:"topApp pt-6 py-4 ltShad prtclk",onClick:r1,"data-action":i1.action,"data-payload":i1.payload||"full",children:[jsx(Icon,{src:i1.icon,width:30}),jsx("div",{className:"text-xs mt-2",children:i1.name})]},f1))}),jsx("div",{className:"text-sm font-semibold mt-8",children:"Quick Searches"}),jsx("div",{className:"quickSearches mt-2",children:a.qksrch.map((i1,f1)=>jsxs("div",{className:"qksrch flex items-center p-3 my-1 handcr prtclk",onClick:r1,"data-action":"EDGELINK","data-payload":i1[2],children:[jsx(Icon,{fafa:i1[0],reg:i1[1]}),jsx("div",{className:"ml-4 text-sm",children:i1[2]})]},f1))})]})]}),o.length?jsxs("div",{className:"w-2/3 rightSide rounded",children:[jsx(Icon,{className:"mt-6",src:$.icon,width:64}),jsx("div",{className:"",children:$.name}),jsx("div",{className:"text-xss mt-2",children:"App"}),jsx("div",{className:"hline mt-8"}),jsxs("div",{className:"openlink w-4/5 flex prtclk handcr pt-3",onClick:r1,"data-action":$.action,"data-payload":$.payload?$.payload:"full",children:[jsx(Icon,{className:"blueicon",src:"link",ui:!0,width:16}),jsx("div",{className:"text-xss ml-3",children:"Open"})]})]}):null]})]})})},widget="",WidPane=()=>{useDispatch();const s=useSelector(_=>_.widpane),a=useSelector(_=>_.setting.person.theme),o=(_=0)=>{if(a=="light")return`hsl(${Math.floor(Math.random()*360)}deg 36% 84%)`;if(a=="dark")return`hsl(${Math.floor(Math.random()*360)}deg 36% 16%)`};return jsx("div",{className:"widPaneCont","data-hide":s.hide,style:{"--prefix":"WIDG"},children:jsx(LazyComponent,{show:!s.hide,children:jsxs("div",{className:"WidPane win11Scroll",children:[jsx("div",{className:"widtop",children:jsx(Icon,{fafa:"faEllipsisH",width:12})}),jsx("div",{className:"widTime",children:new Date().toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})}),jsxs("div",{className:"widgetCont",children:[jsxs("div",{className:"topWidgets",children:[jsxs("div",{className:"weatherCont ltShad",children:[jsxs("div",{className:"wthtop",children:[jsx(Icon,{src:"weather",width:18})," ",jsx("span",{children:"Weather"})]}),jsxs("div",{className:"wthcity",children:[jsx(Icon,{fafa:"faMapMarkerAlt",width:8}),s.data.weather.city,", ",s.data.weather.country]}),jsxs("div",{className:"wthInfo",children:[jsxs("div",{className:"wthTemp",children:[jsx(Icon,{src:`https://www.metaweather.com/static/img/weather/png/64/${s.data.weather.icon}.png`,ext:!0,width:32}),jsx("div",{className:"wthdeg",children:s.data.weather.temp}),jsx("div",{className:"wthunit",children:"\xBAC"})]}),jsxs("div",{className:"moreWinfo",children:[jsx("div",{className:"wcontext",children:s.data.weather.wstate}),jsxs("div",{className:"rainProb",children:[jsxs("div",{className:"chanceOfRain",children:[jsx(Icon,{fafa:"faTint",width:10}),s.data.weather.rain,"%"]}),jsxs("div",{className:"chanceOfRain",children:[jsx(Icon,{fafa:"faWind",width:10}),s.data.weather.wind]})]})]})]}),jsx("div",{className:"weekWthCont",children:s.data.weather.days.map((_,$)=>jsxs("div",{className:"weekDay",children:[jsx("div",{children:$==0?"Today":_.day}),jsx(Icon,{src:`https://www.metaweather.com/static/img/weather/png/64/${_.icon}.png`,ext:!0,width:24}),jsxs("div",{className:"tempCont",children:[_.min,"\xBA"]}),jsxs("div",{className:"tempCont",children:[_.max,"\xBA"]})]},$))})]}),jsxs("div",{className:"shortCont",children:[jsxs("div",{className:"short0 ltShad",children:[jsx("div",{className:"shName",children:"MONEY | MARKET"}),jsxs("div",{className:"shEntry",children:[jsxs("div",{className:"stockName",children:[jsx(Icon,{src:"google",ui:!0,width:12}),jsx("div",{className:"stName",children:"GOOGL"})]}),jsxs("div",{className:"stockValue",children:[jsx("div",{children:s.data.stock[0][0]}),jsxs("div",{className:"stRes","data-pos":s.data.stock[0][2]==1,children:[s.data.stock[0][2]?"+":"-",s.data.stock[0][1],"%"]})]})]}),jsxs("div",{className:"shEntry",children:[jsxs("div",{className:"stockName",children:[jsx(Icon,{src:"tesla",ui:!0,width:12}),jsx("div",{className:"stName",children:"TSLA"})]}),jsxs("div",{className:"stockValue",children:[jsx("div",{children:s.data.stock[1][0]}),jsxs("div",{className:"stRes","data-pos":s.data.stock[1][2]==1,children:[s.data.stock[1][2]?"+":"-",s.data.stock[1][1],"%"]})]})]})]}),jsxs("div",{className:"short1 ltShad",style:{"--afterBack":`url(${s.data.event.pages[0].thumbnail&&s.data.event.pages[0].thumbnail.source})`,backgroundImage:`url(${s.data.event.pages[0].thumbnail&&s.data.event.pages[0].thumbnail.source})`},children:[jsxs("div",{className:"shName",children:[jsxs("div",{className:"flex",children:[jsx(Icon,{fafa:"faLandmark",width:8}),"\xA0ON THIS DAY"]}),jsx("div",{children:s.data.date})]}),jsxs("div",{className:"infotextCont",children:[jsx("div",{className:"dayInfo",children:s.data.event.text}),jsx("a",{href:s.data.event.pages[0].content_urls.desktop.page,rel:"noopener noreferrer",target:"_blank",className:"wikiref",children:"more on wiki"})]})]})]})]}),jsxs("div",{className:"newsCont",children:[jsxs("div",{className:"topStories ltShad",children:[jsx("div",{className:"topNewsText",children:"TOP STORIES"}),jsx("div",{className:"topNewsCont",children:[...s.data.news].splice(0,4).map((_,$)=>jsxs("div",{className:"tpNews",children:[jsx("div",{className:"tpSource",children:_.source.name}),jsx("div",{className:"tpArticle",children:_.title})]},$))})]}),jsx("div",{className:"allNewsCont",children:[...s.data.news].splice(4,s.data.news.length).map((_,$)=>jsx("a",{className:"articleCont ltShad",target:"_blank",style:{"--backgrad":o(2),backgroundImage:`url(${_.urlToImage})`},href:_.url,rel:"noopener noreferrer",loading:"lazy",children:jsxs("div",{className:"tpNews",children:[jsx("div",{className:"tpSource",children:_.source.name}),jsx("div",{className:"tpArticle",children:_.title}),$%5==4?jsx("div",{className:"tpdesc",children:_.content}):null]})},$))})]})]})]})})})},DesktopApp=()=>{const s=useSelector(a=>{var o={...a.desktop},_=[...o.apps];return o.sort=="name"?_.sort(($,j)=>$.name>j.name?1:j.name>$.name?-1:0):o.sort=="size"?_.sort(($,j)=>{var _e=$.name,e1=j.name;return _e[e1.charCodeAt(0)%_e.length]>e1[_e.charCodeAt(0)%e1.length]?1:-1}):o.sort=="date"&&_.sort(($,j)=>{var _e=$.name,e1=j.name,a1=_e.length,t1=e1.length;return _e[t1*13%_e.length]>e1[a1*17%e1.length]?1:-1}),o.apps=_,o});return useDispatch(),jsx("div",{className:"desktopCont",children:!s.hide&&s.apps.map((a,o)=>jsxs("div",{className:"dskApp",tabIndex:0,children:[jsx(Icon,{click:a.action,className:"dskIcon prtclk",src:a.icon,payload:a.payload||"full",pr:!0,width:Math.round(s.size*36),menu:"app"}),jsx("div",{className:"appName",children:a.name})]},o))})},BandPane=()=>{const s=useSelector(a=>a.sidepane);return jsx("div",{className:"bandpane dpShad","data-hide":s.banhide,style:{"--prefix":"BAND"},children:jsxs("div",{className:"bandContainer",children:[jsx(Icon,{className:"hvlight",src:"defender",width:17}),jsx(Icon,{className:"hvlight",src:"spotify",width:17}),jsx(Icon,{className:"hvlight",src:"teams",width:17})]})})},SidePane=()=>{const s=useSelector(i1=>i1.sidepane),a=useSelector(i1=>i1.setting),o=useSelector(i1=>i1.taskbar),[_,$]=react.exports.useState([]),j=useDispatch();react.exports.useState("");const _e=i1=>{var f1={type:i1.target.dataset.action,payload:i1.target.dataset.payload};f1.type&&(f1.type!=f1.type.toUpperCase()?Actions[f1.type](f1.payload):j(f1))},e1=document.querySelector(".vSlider"),a1=document.querySelector(".bSlider"),t1=i1=>{var f1=3;i1.target.value<70&&(f1=2),i1.target.value<30&&(f1=1),i1.target.value==0&&(f1=0),j({type:"TASKAUDO",payload:f1}),r1(e1,i1.target.value)};function r1(i1,f1){i1.style.setProperty("--track-color",`linear-gradient(90deg, var(--clrPrm) ${f1-3}%, #888888 ${f1}%)`)}const s1=i1=>{var f1=i1.target.value;document.getElementById("brightoverlay").style.opacity=(100-f1)/100,j({type:"STNGSETV",payload:{path:"system.display.brightness",value:f1}}),r1(a1,f1)};return react.exports.useEffect(()=>{s.quicks.map((i1,f1)=>{i1.src=="nightlight"&&(_[f1]?document.body.dataset.sepia=!0:document.body.dataset.sepia=!1)})}),react.exports.useEffect(()=>{for(var i1=[],f1=0;f1jsxs("div",{className:"qkGrp",children:[jsx("div",{className:"qkbtn handcr prtclk",onClick:_e,"data-action":i1.action,"data-payload":i1.payload||i1.state,"data-state":_[f1],children:jsx(Icon,{className:"quickIcon",ui:i1.ui,src:i1.src,width:14,invert:_[f1]?!0:null})}),jsx("div",{className:"qktext",children:i1.name})]},f1))}),jsxs("div",{className:"sliderCont",children:[jsx(Icon,{className:"mx-2",src:"brightness",ui:!0,width:20}),jsx("input",{className:"sliders bSlider",onChange:s1,type:"range",min:"10",max:"100",defaultValue:"100"})]}),jsxs("div",{className:"sliderCont",children:[jsx(Icon,{className:"mx-2",src:"audio"+o.audio,ui:!0,width:18}),jsx("input",{className:"sliders vSlider",onChange:t1,type:"range",min:"0",max:"100",defaultValue:"100"})]})]}),jsx("div",{className:"p-1 bottomBar",children:jsx("div",{className:"px-3 battery-sidepane",children:jsx(Battery,{pct:!0})})})]})},CalnWid=()=>{const s=useSelector(_e=>_e.sidepane),[a,o]=react.exports.useState(!1),[_,$]=react.exports.useState(""),j=()=>{$(_===""?"collapse":"")};return react.exports.useEffect(()=>{a||(o(!0),window.dycalendar.draw({target:"#dycalendar",type:"month",dayformat:"ddd",monthformat:"full",prevnextbutton:"show",highlighttoday:!0}))}),jsxs("div",{className:`calnpane ${_} dpShad`,"data-hide":s.calhide,style:{"--prefix":"CALN"},children:[jsxs("div",{className:"topBar pl-4 text-sm",children:[jsx("div",{className:"date",children:new Date().toLocaleDateString(void 0,{weekday:"long",month:"long",day:"numeric"})}),jsx("div",{className:"collapser p-2 m-4 rounded",onClick:j,children:_===""?jsx(Icon,{fafa:"faChevronDown"}):jsx(Icon,{fafa:"faChevronUp"})})]}),jsx("div",{id:"dycalendar"})]})},taskbar="",Taskbar=()=>{const s=useSelector(a1=>a1.taskbar),a=useSelector(a1=>{for(var t1={...a1.apps},r1=0;r1{for(var t1=a1.target;t1&&t1.getAttribute("value")==null;)t1=t1.parentElement;var r1=t1.getAttribute("value"),s1=window.scrollX+t1.getBoundingClientRect().left,i1=Math.round(s1*1e4/window.innerWidth)/100;o({type:"TASKPSHOW",payload:{app:r1,pos:i1}})},$=()=>{o({type:"TASKPHIDE"})},j=a1=>{var t1={type:a1.target.dataset.action,payload:a1.target.dataset.payload};t1.type&&o(t1)},[_e,e1]=react.exports.useState(new Date);return react.exports.useEffect(()=>{const a1=setInterval(()=>{e1(new Date)},1e3);return()=>clearInterval(a1)},[]),jsx("div",{className:"taskbar",children:jsxs("div",{className:"taskcont",children:[jsx("div",{className:"tasksCont","data-menu":"task","data-side":s.align,children:jsxs("div",{className:"tsbar",onMouseOut:$,children:[jsx(Icon,{className:"tsIcon",src:"home",width:24,click:"STARTOGG"}),s.search?jsx(Icon,{click:"STARTSRC",className:"tsIcon searchIcon",icon:"taskSearch"}):null,s.widgets?jsx(Icon,{className:"tsIcon widget",src:"widget",width:24,click:"WIDGTOGG"}):null,s.apps.map((a1,t1)=>{var r1=a[a1.icon].hide,s1=a[a1.icon].z==a.hz;return jsx("div",{onMouseOver:!s1&&!r1&&_||null,value:a1.icon,children:jsx(Icon,{className:"tsIcon",width:24,open:r1?null:!0,click:a1.action,active:s1,payload:"togg",src:a1.icon})},t1)}),Object.keys(a).map((a1,t1)=>{if(a1!="hz")var r1=a[a1].z==a.hz;return a1!="hz"&&a1!="undefined"&&!a[a1].task&&!a[a1].hide?jsx("div",{onMouseOver:!r1&&_||null,value:a[a1].icon,children:jsx(Icon,{className:"tsIcon",width:24,active:r1,click:a[a1].action,payload:"togg",open:"true",src:a[a1].icon})},t1):null})]})}),jsxs("div",{className:"taskright",children:[jsx("div",{className:"px-2 prtclk handcr hvlight flex",onClick:j,"data-action":"BANDTOGG",children:jsx(Icon,{fafa:"faChevronUp",width:10})}),jsxs("div",{className:"prtclk handcr my-1 px-1 hvlight flex rounded",onClick:j,"data-action":"PANETOGG",children:[jsx(Icon,{className:"taskIcon",src:"wifi",ui:!0,width:16}),jsx(Icon,{className:"taskIcon",src:"audio"+s.audio,ui:!0,width:16}),jsx(Battery,{})]}),jsxs("div",{className:"taskDate m-1 handcr prtclk rounded hvlight",onClick:j,"data-action":"CALNTOGG",children:[jsx("div",{children:_e.toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric"})}),jsx("div",{children:_e.toLocaleDateString("en-US",{year:"2-digit",month:"2-digit",day:"numeric"})})]}),jsx(Icon,{className:"graybd my-4",ui:!0,width:6,click:"SHOWDSK",pr:!0})]})]})})},back="",Background=()=>{const s=useSelector(a=>a.wallpaper);return useDispatch(),jsx("div",{className:"background",style:{backgroundImage:`url(img/wallpaper/${s.src})`}})},BootScreen=s=>{const a=useDispatch(),o=useSelector(j=>j.wallpaper),[_,$]=react.exports.useState(!1);return react.exports.useEffect(()=>{s.dir<0&&setTimeout(()=>{console.log("blackout"),$(!0)},4e3)},[s.dir]),react.exports.useEffect(()=>{s.dir<0&&_&&o.act=="restart"&&setTimeout(()=>{$(!1),setTimeout(()=>{a({type:"WALLBOOTED"})},4e3)},2e3)},[_]),jsx("div",{className:"bootscreen",children:jsxs("div",{className:_?"hidden":"",children:[jsx(Image$1,{src:"asset/bootlogo",w:180}),jsx("div",{className:"mt-48",id:"loader",children:jsx("svg",{className:"progressRing",height:48,width:48,viewBox:"0 0 16 16",children:jsx("circle",{cx:"8px",cy:"8px",r:"7px"})})})]})})},LockScreen=s=>{useSelector(v1=>v1.wallpaper);const[a,o]=react.exports.useState(!1),[_,$]=react.exports.useState(!1),[j,_e]=react.exports.useState(""),[e1,a1]=react.exports.useState(1),[t1,r1]=react.exports.useState(!1),s1=useDispatch(),i1=useSelector(v1=>v1.setting.person.name),f1=v1=>{var y1=v1.target.dataset.action;if(v1.target.dataset.payload,y1=="splash")o(!0);else if(y1=="inpass"){var d1=v1.target.value;e1||(d1=d1.substring(0,4),d1=Number(d1)?d1:""),_e(d1)}else y1=="forgot"?r1(!0):y1=="pinlock"?a1(0):y1=="passkey"&&a1(1);(y1=="pinlock"||y1=="passkey")&&_e("")},g1=()=>{$(!0),setTimeout(()=>{s1({type:"WALLUNLOCK"})},1e3)};return jsxs("div",{className:"lockscreen "+(s.dir==-1?"slowfadein":""),"data-unlock":_,style:{backgroundImage:"url(img/wallpaper/lock.jpg)"},onClick:f1,"data-action":"splash","data-blur":a,children:[jsxs("div",{className:"splashScreen mt-40","data-faded":a,children:[jsx("div",{className:"text-6xl font-semibold text-gray-100",children:new Date().toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0})}),jsx("div",{className:"text-lg font-medium text-gray-200",children:new Date().toLocaleDateString(void 0,{weekday:"long",month:"long",day:"numeric"})})]}),jsxs("div",{className:"fadeinScreen","data-faded":!a,"data-unlock":_,children:[jsx(Image$1,{className:"rounded-full overflow-hidden",src:"img/asset/prof.jpg",w:200,ext:!0}),jsx("div",{className:"mt-2 text-2xl font-medium text-gray-200",children:i1}),jsx("div",{className:"flex items-center mt-6 signInBtn",onClick:g1,children:"Sign in"})]}),jsxs("div",{className:"bottomInfo flex",children:[jsx(Icon,{className:"mx-2",src:"wifi",ui:!0,width:16,invert:!0}),jsx(Battery,{invert:!0})]})]})},tabs="",tabs2="",wnapp="",AboutWin=()=>{const{abOpen:s}=useSelector(s1=>s1.desktop),{locked:a,booted:o}=useSelector(s1=>s1.wallpaper),[_,$]=react.exports.useState(!0),[j,_e]=react.exports.useState(localStorage.getItem("closeAbout")=="true"?0:5),e1=useDispatch(),{t:a1,i18n:t1}=useTranslation(),r1=()=>{$(!1),localStorage.setItem("closeAbout",!0),e1({type:"DESKABOUT",payload:!1})};return react.exports.useEffect(()=>{j>0&&!a&&o&&setTimeout(()=>{_e(j-1)},1e3)},[j,a,o]),_||s?jsxs("div",{className:"aboutApp floatTab dpShad",children:[jsxs("div",{className:"content p-6",children:[jsx("div",{className:"text-xl font-semibold",children:a1("about.title")}),jsx("p",{children:a1("about.opensource")}),jsxs("p",{children:[a1("about.licensed"),"\xA0",jsx("a",{target:"_blank",href:"https://github.com/blueedgetechno/win11React/blob/master/LICENSE",rel:"noreferrer",children:a1("about.Creative-Commons")}),"."]}),jsxs("p",{className:"pl-4",children:[a1("about.contact")," :\xA0",jsx("a",{target:"_blank",href:"mailto:blue@win11react.com",rel:"noreferrer",children:"blue@win11react.com"})]}),jsx("p",{children:a1("about.notmicrosoft")}),jsxs("p",{children:[a1("about.alsonot"),"\xA0",jsx("a",{target:"_blank",href:"https://www.microsoft.com/en-in/windows-365",rel:"noreferrer",children:"Windows 365 cloud PC"}),"."]}),jsxs("p",{children:[a1("about.microsoftcopywrite"),"."]}),jsxs("p",{children:[a1("about.egamepass")]})]}),jsx("div",{className:"okbtn px-6 py-4",children:jsxs("div",{"data-allow":j==0,onClick:j==0&&r1,children:[a1("about.understand")," ",j>0?jsx("span",{children:`( ${j} )`}):null]})})]}):null},Calculator=()=>{const s=useSelector(s1=>s1.apps.calculator),[a,o]=react.exports.useState([]),[_,$]=react.exports.useState("0"),[j,_e]=react.exports.useState(null),[e1,a1]=react.exports.useState([]),t1=s1=>{for(var i1=0;(s1=s1.previousSibling)!=null;)i1++;return i1},r1=s1=>{var i1=s1.target.dataset.ch,f1=t1(s1.target),g1=_;if(f1==2)$("0"),o([]),_e(null);else if(g1=="Infinity"||g1=="NaN")_e(g1);else if(f1==1)$("0");else if(f1==3)g1=g1.substring(0,g1.length-1),(g1.length==0||g1=="-")&&(g1="0"),$(g1);else if(f1<7&&f1>3){if(i1=="inv"){var v1=parseFloat(g1);if(v1!=0)var y1=1/v1;else{_e("Cannot divide by zero");return}$(y1.toString())}else if(i1=="sq"){var v1=parseFloat(g1),d1=v1**2;$(d1.toString())}else if(i1=="sqrt"){var v1=parseFloat(g1);if(g1[0]!="-")var u1=Math.sqrt(v1);else{_e("Invalid Input");return}$(u1.toString())}}else if(f1>7&&(f1+1)%4!=0)if(i1.length==1){var p1=[...a];p1[3]!=null&&(i1=="."?g1="0":g1="",o([])),g1+=i1,_=="0"&&i1!="."&&(g1=i1),g1.length<17&&g1.match(/^-?[0-9]+([.][0-9]*)?$/)!=null&&$(g1)}else _!="0"&&(_[0]=="-"?$(_.substring(1)):$("-"+_));else if(f1>3&&f1%4==3){var p1=[...a];if(i1!="=")p1[2]==null?(p1[0]==null&&(p1[0]=parseFloat(_)),p1[1]=i1):p1=[_,i1],$("0"),o(p1);else if(p1[1]!=null){if(p1[2]==null&&(p1[2]=parseFloat(_)),p1[3]="=",p1[1]=="/")if(p1[2]!=0)p1[4]=p1[0]/p1[2];else{_e("Cannot divide by zero");return}else p1[1]=="x"?p1[4]=p1[0]*p1[2]:p1[1]=="-"?p1[4]=p1[0]-p1[2]:p1[4]=p1[0]+p1[2];var z1=[...e1];o(p1),$(p1[4]),z1.push(p1),a1(z1)}}};return jsxs("div",{className:"calcApp floatTab dpShad","data-size":s.size,id:s.icon+"App","data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Calculator"}),jsxs("div",{className:"windowScreen flex flex-col","data-dock":"true",children:[jsx("div",{className:"flex pt-2",children:jsxs("div",{className:"flex pl-2 items-center",children:[jsx(Icon,{className:"menuBars",fafa:"faBars",color:"#222",width:14}),jsx("div",{className:"mx-4 font-semibold pb-1",children:"Standard"})]})}),jsxs("div",{className:"restWindow h-full flex-grow flex",children:[jsxs("div",{className:"w-full flex-grow flex flex-col relative",children:[jsxs("div",{className:"valCont w-full",children:[jsxs("div",{className:"eqCont",children:[a[0]," ",a[1]," ",a[2]," ",a[3]," ",a[4]]}),jsx("div",{className:"vlcCont",children:j==null?_:j})]}),jsxs("div",{className:"msrVal",children:[jsx("div",{children:"MC"}),jsx("div",{children:"MR"}),jsx("div",{children:"M+"}),jsx("div",{children:"M-"}),jsx("div",{children:"MS"})]}),jsxs("div",{className:"opcont","data-err":j!=null,children:[jsx("div",{onClick:r1,className:"oper","data-ch":"%",children:"%"}),jsx("div",{onClick:r1,className:"oper","data-ch":"CE",children:"CE"}),jsx("div",{onClick:r1,className:"oper","data-ch":"C",children:"C"}),jsx("div",{onClick:r1,className:"oper","data-ch":"back",children:jsx(Icon,{fafa:"faBackspace"})}),jsx("div",{onClick:r1,className:"oper","data-ch":"inv",children:"1/x"}),jsxs("div",{onClick:r1,className:"oper opow","data-ch":"sq",children:["x",jsx("sup",{className:"text-xss",children:"2"})]}),jsxs("div",{onClick:r1,className:"oper opow","data-ch":"sqrt",children:[jsx("sup",{className:"text-xss",children:"2"}),"\u221Ax"]}),jsx("div",{onClick:r1,className:"oper","data-ch":"/",children:"/"}),jsx("div",{onClick:r1,className:"oper","data-ch":"7",children:"7"}),jsx("div",{onClick:r1,className:"oper","data-ch":"8",children:"8"}),jsx("div",{onClick:r1,className:"oper","data-ch":"9",children:"9"}),jsx("div",{onClick:r1,className:"oper","data-ch":"x",children:"x"}),jsx("div",{onClick:r1,className:"oper","data-ch":"4",children:"4"}),jsx("div",{onClick:r1,className:"oper","data-ch":"5",children:"5"}),jsx("div",{onClick:r1,className:"oper","data-ch":"6",children:"6"}),jsx("div",{onClick:r1,className:"oper","data-ch":"-",children:"-"}),jsx("div",{onClick:r1,className:"oper","data-ch":"1",children:"1"}),jsx("div",{onClick:r1,className:"oper","data-ch":"2",children:"2"}),jsx("div",{onClick:r1,className:"oper","data-ch":"3",children:"3"}),jsx("div",{onClick:r1,className:"oper","data-ch":"+",children:"+"}),jsx("div",{onClick:r1,className:"oper","data-ch":"+-",children:"+/-"}),jsx("div",{onClick:r1,className:"oper","data-ch":"0",children:"0"}),jsx("div",{onClick:r1,className:"oper","data-ch":".",children:"."}),jsx("div",{onClick:r1,className:"oper","data-ch":"=",children:"="})]})]}),jsxs("div",{className:"calcHis flex flex-col",children:[jsx("div",{className:"text-sm font-semibold",children:"History"}),e1.length!=0?null:jsx("div",{className:"text-xs mt-4",children:"There's no history yet"}),jsx("div",{className:"histCont win11Scroll",children:jsx("div",{className:"hct h-max flex-grow",children:e1.map(s1=>jsxs("div",{className:"flex flex-col items-end mb-6 text-gray-500",children:[s1[0]," ",s1[1]," ",s1[2]," ",s1[3],jsx("div",{className:"text-2xl text-gray-600",children:s1[4]})]}))})})]})]})]})]})},Camera=()=>{const s=useSelector(_e=>_e.apps.camera),a=useSelector(_e=>_e.apps.camera.hide),[o,_]=react.exports.useState(null),{t:$}=useTranslation(),j=()=>{var _e=document.querySelector("video"),e1=document.querySelector("canvas");e1.width=_e.videoWidth,e1.height=_e.videoHeight;var a1=_e.videoWidth-_e.videoHeight;e1.getContext("2d").drawImage(_e,-a1/2,0,_e.videoWidth+a1,_e.videoHeight)};return react.exports.useEffect(()=>{if(s.hide)o!=null&&o.getTracks().forEach(a1=>a1.stop()),_(null);else{var _e=document.getElementById("camvideo");_e.setAttribute("playsinline",""),_e.setAttribute("autoplay",""),_e.setAttribute("muted","");var e1={audio:!1,video:!0};navigator.mediaDevices.getUserMedia(e1).then(a1=>{_(a1),console.log(a1),_e.srcObject=a1})}},[a]),jsxs("div",{className:"wnCam floatTab dpShad","data-size":s.size,id:s.icon+"App","data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Camera",invert:!0,bg:"#060606"}),jsx("div",{className:"windowScreen flex flex-col","data-dock":"true",children:jsx("div",{className:"restWindow flex-grow flex flex-col",children:jsxs("div",{className:"camcont",children:[jsxs("div",{className:"camctrl",children:[jsx("div",{className:"cmicon",title:$("camera.take-photo"),onClick:j,children:jsx(Icon,{icon:"camera"})}),jsx("canvas",{id:"camcanvas"})]}),jsx("div",{className:"vidcont",children:jsx("div",{className:"vidwrap",children:jsx("video",{id:"camvideo"})})})]})})})]})};var dist$1={};const require$$0=getAugmentedNamespace(jsxRuntime);var dist={},api={};Object.defineProperty(api,"__esModule",{value:!0});class API{constructor(){this.listeners={}}socketEvent(a){try{var o=JSON.parse(a)}catch{return}if(o instanceof Object&&o.widgetbot===!0&&o.id===this.id){const{event:_,data:$}=o,j=this.listeners[_];j&&j.forEach(_e=>_e($))}}on(a,o){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(o),console.debug(`[embed-api] on '${String(a)}'`,o)}removeListener(a,o){!this.listeners[a]||(this.listeners[a]=this.listeners[a].filter(_=>_===o),console.debug(`[embed-api] removeListener '${String(a)}'`,o))}}api.default=API;var client={};Object.defineProperty(client,"__esModule",{value:!0});const api_1$1=api;class Client extends api_1$1.default{constructor(a){super(),this.server={emit:(o,_)=>{const $=this.listeners[o];$&&$.forEach(j=>j(_))}},Object.assign(this,a),window.addEventListener("message",({data:o})=>this.socketEvent(o))}emit(a,o){if(!window.parent)return!1;const _=JSON.stringify({widgetbot:!0,id:this.id,event:a,data:o});return this.iframe.contentWindow?(this.iframe.contentWindow.postMessage(_,"*"),!0):!1}}client.default=Client;var server={};Object.defineProperty(server,"__esModule",{value:!0});const api_1=api;class Server extends api_1.default{constructor(a){super(),this.targetOrigin="*",this.client={emit:(o,_)=>{const $=this.listeners[o];$&&$.forEach(j=>j(_))}},Object.assign(this,a),window.addEventListener("message",({data:o})=>this.socketEvent(o))}emit(a,o){if(console.debug(`[embed-api] emit '${a}'`,o),!window.parent)return!1;const _=JSON.stringify({widgetbot:!0,id:this.id,event:a,data:o});return window.parent.postMessage(_,this.targetOrigin),!0}}server.default=Server;(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.Server=s.Client=s.API=void 0;var a=api;Object.defineProperty(s,"API",{enumerable:!0,get:function(){return a.default}});var o=client;Object.defineProperty(s,"Client",{enumerable:!0,get:function(){return o.default}});var _=server;Object.defineProperty(s,"Server",{enumerable:!0,get:function(){return _.default}})})(dist);var elements={};Object.defineProperty(elements,"__esModule",{value:!0});elements.Embed=elements.Root=void 0;const Root=({width:s,height:a})=>Object.assign(Object.assign(Object.assign({},a&&{height:+a?`${a}px`:a}),s&&{width:+s?`${s}px`:s}),{display:"inline-block",overflow:"hidden",backgroundColor:"rgb(54, 57, 62)",borderRadius:7,verticalAlign:"top"});elements.Root=Root;elements.Embed={width:"100%",height:"100%",border:"none"};var util={};Object.defineProperty(util,"__esModule",{value:!0});util.searchParams=util.generateUUID=void 0;function generateUUID(){let s=new Date().getTime();return typeof performance<"u"&&typeof performance.now=="function"&&(s+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{let o=(s+Math.random()*16)%16|0;return s=Math.floor(s/16),(a==="x"?o:o&3|8).toString(16)})}util.generateUUID=generateUUID;const searchParams=(s={})=>"?"+Object.keys(s).map(a=>`${encodeURIComponent(a)}=${encodeURIComponent(s[a])}`).join("&");util.searchParams=searchParams;var _jsx=require$$0.jsx;Object.defineProperty(dist$1,"__esModule",{value:!0});const embed_api_1=dist,React=react.exports,elements_1=elements,util_1=util;class WidgetBot extends React.PureComponent{constructor(){super(...arguments),this.state={url:null,id:(0,util_1.generateUUID)()},this.api=new embed_api_1.Client({id:this.state.id,iframe:null})}static getDerivedStateFromProps(a,o){let _=a.shard;_.startsWith("http")||(_=`https://${_}`),_.endsWith("/")&&(_=_.substring(0,_.length-1));let $=Object.assign(Object.assign({},a.options),{api:o.id});return a.username&&($.username=a.username),a.avatar&&($.avatar=a.avatar),a.token&&($.token=a.token),{url:`${_}/channels/${a.server}${a.channel?`/${a.channel}`:""}/${(0,util_1.searchParams)($)}`}}componentDidMount(){const{onAPI:a}=this.props;a&&a(this.api)}render(){const{defer:a,className:o,style:_,height:$,width:j,focusable:_e}=this.props;return _jsx("div",{className:o,style:Object.assign(Object.assign({},(0,elements_1.Root)({width:j,height:$})),_),children:_jsx("iframe",{src:a?"":this.state.url,ref:e1=>this.api.iframe=e1,style:elements_1.Embed,tabIndex:_e?null:-1,title:"Discord chat embed"})})}}var _default=dist$1.default=WidgetBot;WidgetBot.defaultProps={server:"299881420891881473",shard:"https://e.widgetbot.io",options:{},defer:!1,focusable:!0};const DScord=()=>{const s=useSelector($=>$.apps.discord),[a,o]=react.exports.useState(null),_=[{src:"arrtective.png",link:"https://discord.io/arttective"},{src:"mimi.png",link:"https://discord.gg/AGSCfjgDMc"},{src:"narjiday.png",link:"https://discord.gg/K9wcgZJfXS"},{src:"aliyss.png",link:"https://discord.gg/zAypMTH"}];return react.exports.useEffect(()=>{a==null&&o("https://e.widgetbot.io/channels/868499076432408627/868499076432408631")}),jsxs("div",{className:"discordWn floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Discord",bg:"#282a2f",invert:!0}),jsx("div",{className:"windowScreen flex flex-col","data-dock":"true",children:jsxs("div",{className:"restWindow flex-grow flex",children:[jsxs("div",{className:"dsbar w-18",children:[jsxs("div",{className:"servCont noscroll",children:[jsx(Icon,{className:"dsIcon",src:"./img/asset/discord.png",ext:!0,width:26,click:"EXTERNAL",payload:"https://discord.gg/9jtcVZ3tWm"}),jsx("hr",{}),jsx(Icon,{className:"wnServer svIcon",src:"./img/asset/server.gif",width:48,click:"EXTERNAL",payload:"https://discord.gg/9jtcVZ3tWm",ext:!0}),_.map(($,j)=>jsx(Icon,{className:"svIcon",src:"./img/asset/"+$.src,click:"EXTERNAL",payload:$.link,ext:!0,width:48},j))]}),jsx("div",{className:"joincont",children:jsx("a",{href:"https://discord.gg/9jtcVZ3tWm",target:"_blank",rel:"noreferrer",children:"Join"})})]}),jsx("div",{className:"flex-grow overflow-hidden",children:jsx(LazyComponent,{show:!s.hide,children:jsx(_default,{className:"w-full h-full",shard:a||""})})})]})})]})},EdgeMenu=()=>{const s=useSelector(y1=>y1.apps.edge),[a,o]=react.exports.useState("https://www.google.com/?igu=1"),[_,$]=react.exports.useState(!0),[j,_e]=react.exports.useState(!1),[e1,a1]=react.exports.useState(["https://bing.com","https://bing.com"]),t1=useDispatch(),r1={"https://www.google.com/webhp?igu=1":"Google","https://bing.com":"Bing","https://www.youtube.com/embed/m0EHSoZzHEA":"Youtube","https://blueedge.me":"blueedge","https://andrewstech.me":` andrewstech`,"https://blueedge.me/unescape":"Unescape","https://win11.blueedge.me":"Inception","https://open.spotify.com/embed/user/jhfivkgdtg4s97pwbo1rbvr9v/playlist/6IdR78TOog83PV4XhLDvWN":"Spotify","https://bluelab.blueedge.me":"BlueLab","https://othello.blueedge.me":"Othello"},s1={"https://andrewstech.me":"https://avatars.githubusercontent.com/u/45342431"},i1=y1=>{var d1=y1.match(/(http(s)?:\/\/.)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g);return d1!==null},f1=y1=>{var d1=document.getElementById("isite"),u1=y1.target&&y1.target.dataset.payload;if(d1&&u1==0)d1.src=d1.src;else if(d1&&u1==1)a1([a,"https://www.bing.com"]),o("https://www.bing.com"),_e(!1);else if(d1&&u1==2)a1([a,"https://www.google.com/webhp?igu=1"]),o("https://www.google.com/webhp?igu=1"),_e(!1);else if(d1&&u1==3){if(y1.key==="Enter"){var p1=y1.target.value;i1(p1)?p1.startsWith("http")||(p1="https://"+p1):p1="https://www.bing.com/search?q="+p1,y1.target.value=p1,a1([e1[0],p1]),o(p1),_e(!1)}}else if(u1==4)o(e1[0]),_e(!1);else if(u1==5)o(e1[1]),_e(!1);else if(u1==6){var z1=y1.target.dataset.url;a1([a,z1]),o(z1),_e(!1)}},g1=y1=>{j||(_e(!0),console.log([a,a]),a1([a,a])),o(y1.target.value)},v1=()=>{$(!1)};return react.exports.useEffect(()=>{s.url&&(_e(!1),o(s.url),t1({type:"EDGELINK"}))}),jsxs("div",{className:"edgeBrowser floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Browser",float:!0}),jsxs("div",{className:"windowScreen flex flex-col",children:[jsxs("div",{className:"overTool flex",children:[jsx(Icon,{src:s.icon,width:14,margin:"0 6px"}),jsxs("div",{className:"btab",children:[jsx("div",{children:"New Tab"}),jsx(Icon,{fafa:"faTimes",click:s.action,payload:"close",width:10})]})]}),jsxs("div",{className:"restWindow flex-grow flex flex-col",children:[jsxs("div",{className:"addressBar w-full h-10 flex items-center",children:[jsx(Icon,{className:"edgenavicon",src:"left",onClick:f1,payload:4,width:14,ui:!0,margin:"0 8px"}),jsx(Icon,{className:"edgenavicon",src:"right",onClick:f1,payload:5,width:14,ui:!0,margin:"0 8px"}),jsx(Icon,{fafa:"faRedo",onClick:f1,payload:0,width:14,margin:"0 8px"}),jsx(Icon,{fafa:"faHome",onClick:f1,payload:1,width:18,margin:"0 16px"}),jsxs("div",{className:"addCont relative flex items-center",children:[jsx("input",{className:"w-full h-6 px-4",onKeyDown:f1,onChange:g1,"data-payload":3,value:a,placeholder:"Type url or a query to search",type:"text"}),jsx(Icon,{className:"z-1 handcr",src:"google",ui:!0,onClick:f1,payload:2,width:14,margin:"0 10px"})]})]}),jsx("div",{className:"w-full bookbar py-2",children:jsx("div",{className:"flex",children:Object.keys(r1).map((y1,d1)=>jsxs("div",{className:"flex handcr items-center ml-2 mr-1 prtclk",onClick:f1,"data-payload":6,"data-url":y1,children:[jsx(Icon,{className:"mr-1",ext:!0,width:16,src:r1[y1][0]!=` `?new URL(y1).origin+"/favicon.ico":s1[y1]}),jsx("div",{className:"text-xs",children:r1[y1].trim()})]},d1))})}),jsxs("div",{className:"siteFrame flex-grow overflow-hidden",children:[jsx(LazyComponent,{show:!s.hide,children:jsx("iframe",{src:j?e1[0]:a,id:"isite",frameborder:"0",className:"w-full h-full",title:"site"})}),jsxs("div",{className:`bg-blue-100 w-64 rounded dpShad p-2 absolute bottom-0 right-0 my-4 mx-12 transition-all ${_?"opacity-100":"opacity-0 pointer-events-none"}`,children:[jsx("div",{className:"absolute bg-red-400 m-1 text-red-900 text-xs px-1 font-bold handcr top-0 right-0 rounded hover:bg-red-500",onClick:v1,children:"x"}),jsxs("div",{className:"text-gray-800 text-xs font-medium",children:["If it shows ",jsx("b",{children:'"Refused to connect"'}),", then"," ",jsx("b",{children:"that website doesn't allow "}),"other websites to show their content. ",jsx("b",{children:"I cannot fix it"}),"."]})]})]})]})]})]})},fileexpo="",NavTitle=s=>{var a=s.icon||"folder";return jsxs("div",{className:"navtitle flex prtclk","data-action":s.action,"data-payload":s.payload,onClick:dispatchAction,children:[jsx(Icon,{className:"mr-1",src:"win/"+a+"-sm",width:s.isize||16}),jsx("span",{children:s.title})]})},FolderDrop=({dir:s})=>{const o=useSelector(_=>_.files).data.getId(s);return jsx(Fragment,{children:o.data&&o.data.map((_,$)=>{if(_.type=="folder")return jsx(Dropdown,{icon:_.info&&_.info.icon,title:_.name,notoggle:_.data.length==0,dir:_.id},$)})})},Dropdown=s=>{const[a,o]=react.exports.useState(s.isDropped!=null),_=useSelector(e1=>e1.files.data.special),[$,j]=react.exports.useState(()=>s.spid?_[s.spid]:s.dir),_e=()=>o(!a);return jsxs("div",{className:"dropdownmenu",children:[jsxs("div",{className:"droptitle",children:[s.notoggle?jsx(Icon,{className:"arrUi opacity-0",fafa:"faCircle",width:10}):jsx(Icon,{className:"arrUi",fafa:a?"faChevronDown":"faChevronRight",width:10,onClick:_e,pr:!0}),jsx(NavTitle,{icon:s.icon,title:s.title,isize:s.isize,action:s.action!=""?s.action||"FILEDIR":null,payload:$}),s.pinned!=null?jsx(Icon,{className:"pinUi",src:"win/pinned",width:16}):null]}),s.notoggle?null:jsxs("div",{className:"dropcontent",children:[a?s.children:null,a&&$!=null?jsx(FolderDrop,{dir:$}):null]})]})},Explorer=()=>{useSelector(i1=>i1.apps);const s=useSelector(i1=>i1.apps.explorer),a=useSelector(i1=>i1.files),o=a.data.getId(a.cdir),[_,$]=react.exports.useState(a.cpath),[j,_e]=react.exports.useState(""),e1=useDispatch(),a1=i1=>$(i1.target.value),t1=i1=>_e(i1.target.value),r1=i1=>{i1.key==="Enter"&&e1({type:"FILEPATH",payload:_})},s1=()=>{for(var i1=[],f1=o,g1=0;f1;)i1.push(jsxs("div",{className:"dirCont flex items-center",children:[jsx("div",{className:"dncont",onClick:dispatchAction,tabIndex:"-1","data-action":"FILEDIR","data-payload":f1.id,children:f1.name}),jsx(Icon,{className:"dirchev",fafa:"faChevronRight",width:8})]},g1++)),f1=f1.host;return i1.push(jsxs("div",{className:"dirCont flex items-center",children:[jsx("div",{className:"dncont",tabIndex:"-1",children:"This PC"}),jsx(Icon,{className:"dirchev",fafa:"faChevronRight",width:8})]},g1++)),i1.push(jsxs("div",{className:"dirCont flex items-center",children:[jsx(Icon,{className:"pr-1 pb-px",src:"win/"+o.info.icon+"-sm",width:16}),jsx(Icon,{className:"dirchev",fafa:"faChevronRight",width:8})]},g1++)),jsx("div",{className:"dirfbox h-full flex",children:i1.reverse()},g1++)};return react.exports.useEffect(()=>{$(a.cpath),_e("")},[a.cpath]),jsxs("div",{className:"msfiles floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"File Explorer"}),jsxs("div",{className:"windowScreen flex flex-col",children:[jsx(Ribbon,{}),jsxs("div",{className:"restWindow flex-grow flex flex-col",children:[jsxs("div",{className:"sec1",children:[jsx(Icon,{className:"navIcon hvtheme"+(a.hid==0?" disableIt":""),fafa:"faArrowLeft",width:14,click:"FILEPREV",pr:!0}),jsx(Icon,{className:"navIcon hvtheme"+(a.hid+1==a.hist.length?" disableIt":""),fafa:"faArrowRight",width:14,click:"FILENEXT",pr:!0}),jsx(Icon,{className:"navIcon hvtheme",fafa:"faArrowUp",width:14,click:"FILEBACK",pr:!0}),jsxs("div",{className:"path-bar noscroll",tabIndex:"-1",children:[jsx("input",{className:"path-field",type:"text",value:_,onChange:a1,onKeyDown:r1}),jsx(s1,{})]}),jsxs("div",{className:"srchbar",children:[jsx(Icon,{className:"searchIcon",src:"search",width:12}),jsx("input",{type:"text",onChange:t1,value:j,placeholder:"Search"})]})]}),jsxs("div",{className:"sec2",children:[jsx(NavPane,{}),jsx(ContentArea,{searchtxt:j})]}),jsxs("div",{className:"sec3",children:[jsxs("div",{className:"item-count text-xs",children:[o.data.length," items"]}),jsxs("div",{className:"view-opts flex",children:[jsx(Icon,{className:"viewicon hvtheme p-1",click:"FILEVIEW",payload:"5",open:a.view==5,src:"win/viewinfo",width:16}),jsx(Icon,{className:"viewicon hvtheme p-1",click:"FILEVIEW",payload:"1",open:a.view==1,src:"win/viewlarge",width:16})]})]})]})]})]})},ContentArea=({searchtxt:s})=>{const a=useSelector(r1=>r1.files);useSelector(r1=>r1.files.data.special);const[o,_]=react.exports.useState(null),$=a.data.getId(a.cdir),j=useDispatch(),_e=r1=>{r1.stopPropagation(),_(r1.target.dataset.id)},e1=r1=>{r1.stopPropagation(),handleFileOpen(r1.target.dataset.id)};return jsx("div",{className:"contentarea",onClick:r1=>{_(null)},onKeyDown:r1=>{r1.key=="Backspace"&&j({type:"FILEPREV"})},tabIndex:"-1",children:jsxs("div",{className:"contentwrap win11Scroll",children:[jsx("div",{className:"gridshow","data-size":"lg",children:$.data.map((r1,s1)=>r1.name.includes(s)&&jsxs("div",{className:"conticon hvtheme flex flex-col items-center prtclk","data-id":r1.id,"data-focus":o==r1.id,onClick:_e,onDoubleClick:e1,children:[jsx(Image$1,{src:`icon/win/${r1.info.icon}`}),jsx("span",{children:r1.name})]},s1))}),$.data.length==0?jsx("span",{className:"text-xs mx-auto",children:"This folder is empty."}):null]})})},NavPane=({})=>(useSelector(s=>s.files),useSelector(s=>s.files.data.special),jsx("div",{className:"navpane win11Scroll",children:jsxs("div",{className:"extcont",children:[jsxs(Dropdown,{icon:"star",title:"Quick access",action:"",isDropped:!0,children:[jsx(Dropdown,{icon:"down",title:"Downloads",spid:"%downloads%",notoggle:!0,pinned:!0}),jsx(Dropdown,{icon:"user",title:"Blue",spid:"%user%",notoggle:!0,pinned:!0}),jsx(Dropdown,{icon:"docs",title:"Documents",spid:"%documents%",notoggle:!0,pinned:!0}),jsx(Dropdown,{title:"Github",spid:"%github%",notoggle:!0}),jsx(Dropdown,{icon:"pics",title:"Pictures",spid:"%pictures%",notoggle:!0})]}),jsx(Dropdown,{icon:"onedrive",title:"OneDrive",spid:"%onedrive%"}),jsxs(Dropdown,{icon:"thispc",title:"This PC",action:"",isDropped:!0,children:[jsx(Dropdown,{icon:"desk",title:"Desktop",spid:"%desktop%"}),jsx(Dropdown,{icon:"docs",title:"Documents",spid:"%documents%"}),jsx(Dropdown,{icon:"down",title:"Downloads",spid:"%downloads%"}),jsx(Dropdown,{icon:"music",title:"Music",spid:"%music%"}),jsx(Dropdown,{icon:"pics",title:"Pictures",spid:"%pictures%"}),jsx(Dropdown,{icon:"vid",title:"Videos",spid:"%videos%"}),jsx(Dropdown,{icon:"disc",title:"OS (C:)",spid:"%cdrive%"}),jsx(Dropdown,{icon:"disk",title:"Blue (D:)",spid:"%ddrive%"})]})]})})),Ribbon=({})=>jsxs("div",{className:"msribbon flex",children:[jsx("div",{className:"ribsec",children:jsxs("div",{className:"drdwcont flex",children:[jsx(Icon,{src:"new",ui:!0,width:18,margin:"0 6px"}),jsx("span",{children:"New"})]})}),jsxs("div",{className:"ribsec",children:[jsx(Icon,{src:"cut",ui:!0,width:18,margin:"0 6px"}),jsx(Icon,{src:"copy",ui:!0,width:18,margin:"0 6px"}),jsx(Icon,{src:"paste",ui:!0,width:18,margin:"0 6px"}),jsx(Icon,{src:"rename",ui:!0,width:18,margin:"0 6px"}),jsx(Icon,{src:"share",ui:!0,width:18,margin:"0 6px"})]}),jsxs("div",{className:"ribsec",children:[jsxs("div",{className:"drdwcont flex",children:[jsx(Icon,{src:"sort",ui:!0,width:18,margin:"0 6px"}),jsx("span",{children:"Sort"})]}),jsxs("div",{className:"drdwcont flex",children:[jsx(Icon,{src:"view",ui:!0,width:18,margin:"0 6px"}),jsx("span",{children:"View"})]})]})]}),countries=["Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegowina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Congo, the Democratic Republic of the","Cook Islands","Costa Rica","Cote d'Ivoire","Croatia (Hrvatska)","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands (Malvinas)","Faroe Islands","Fiji","Finland","France","France Metropolitan","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Heard and Mc Donald Islands","Holy See (Vatican City State)","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran (Islamic Republic of)","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, Democratic People's Republic of","Korea, Republic of","Kuwait","Kyrgyzstan","Lao, People's Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libyan Arab Jamahiriya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia, The Former Yugoslav Republic of","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia, Federated States of","Moldova, Republic of","Monaco","Mongolia","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Seychelles","Sierra Leone","Singapore","Slovakia (Slovak Republic)","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and the South Sandwich Islands","Spain","Sri Lanka","St. Helena","St. Pierre and Miquelon","Sudan","Suriname","Svalbard and Jan Mayen Islands","Swaziland","Sweden","Switzerland","Syrian Arab Republic","Taiwan, Province of China","Tajikistan","Tanzania, United Republic of","Thailand","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","United States Minor Outlying Islands","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands (British)","Virgin Islands (U.S.)","Wallis and Futuna Islands","Western Sahara","Yemen","Yugoslavia","Zambia","Zimbabwe"],getstarted="";function LangSwitch(){return jsx("div",{className:"langSwitcher",children:jsxs("select",{value:instance.language,onChange:s=>instance.changeLanguage(s.target.value),children:[jsx("option",{value:"da",children:"Danish"}),jsx("option",{value:"de",children:"German"}),jsx("option",{value:"en",children:"English"}),jsx("option",{value:"es",children:"Spanish"}),jsx("option",{value:"fr",children:"French"}),jsx("option",{value:"hi",children:"Hindi"}),jsx("option",{value:"hu",children:"Hungarian"}),jsx("option",{value:"ja",children:"Japanese"}),jsx("option",{value:"ko",children:"Korean"}),jsx("option",{value:"nl",children:"Dutch"}),jsx("option",{value:"ru",children:"Russian"}),jsx("option",{value:"tr",children:"Turkish"}),jsx("option",{value:"zh",children:"Chinese"}),jsx("option",{value:"si",children:"Sinhala"})]})})}const Getstarted=()=>{const s=useSelector(a1=>a1.apps.getstarted),a=useDispatch(),o=useSelector(a1=>a1.taskbar),{t:_}=useTranslation(),[$,j]=react.exports.useState(1),_e=()=>$!==6?j($+1):null,e1=a1=>{var t1=a1.target.value;a({type:"STNGSETV",payload:{path:"person.name",value:t1}})};return jsxs("div",{className:"getstarted floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Get Started"}),jsx("div",{className:"windowScreen flex flex-col","data-dock":"true",children:jsxs("div",{className:"restWindow flex-grow flex flex-col",children:[jsxs("div",{className:"inner_fill_setup",children:[$===1?jsxs(Fragment,{children:[jsx("div",{className:"left",children:jsx("img",{alt:"left image",id:"left_img",src:"img/oobe/window11_oobe_region.png"})}),jsxs("div",{className:"right",children:[jsxs("div",{className:"header",children:[_("oobe.country"),jsx("br",{}),jsx("div",{className:"header_sml"})]}),jsx("div",{className:"list_oobe mt-4 win11Scroll",children:countries.map((a1,t1)=>jsx("div",{className:"list_oobe_opt",children:a1},t1))})]})]}):null,$===2?jsxs(Fragment,{children:[jsx("div",{className:"left",children:jsx("img",{id:"left_img",src:"img/oobe/window11_oobe_keyb_layout.png"})}),jsxs("div",{className:"right",children:[jsxs("div",{className:"header",children:[_("oobe.keyboard"),jsx("div",{className:"header_sml",children:_("oobe.anotherkeyboard")})]}),jsx("div",{className:"list_oobe mt-4 win11Scroll",children:jsx(LangSwitch,{})})]})]}):null,$===3?jsxs(Fragment,{children:[jsx("div",{className:"left",children:jsx("img",{id:"left_img",src:"img/oobe/window11_oobe_update.png"})}),jsxs("div",{className:"right align",children:[jsx("img",{id:"loader",src:"img/oobe/window11_oobe_region.png"}),"Checking for updates."]})]}):null,$===4?jsxs(Fragment,{children:[jsx("div",{className:"left",children:jsx("img",{id:"left_img",src:"img/oobe/window11_oobe_name.png"})}),jsxs("div",{className:"right",children:[jsx("div",{className:"header mb-2",children:"Let's name your PC"}),jsx("div",{className:"header_sml",children:"Make it yours with unique name that's easy to recognize when connecting to it from other devices.Your Pc will restart after you name it."}),jsx("div",{className:"OOBE_input",children:jsx("input",{type:"text",placeholder:"name",id:"OOBE_input",onChange:e1})}),jsxs("div",{className:"text_sml_black",children:["No more than 15 character ",jsx("br",{}),"No spaces or any of the following special characters:",jsx("br",{}),'"/\\ [ ] : | < >+ = ; , ?']})]})]}):null,$===5?jsxs(Fragment,{children:[jsx("div",{className:"left",children:jsx("img",{id:"left_img",src:"img/oobe/window11_oobe_wifi.png"})}),jsx("div",{className:"right",children:jsxs("div",{className:"header",children:["Let's connect you to a network",jsx("div",{className:"header_sml",children:"You'll need an internet connection to continue the setting up your device.Once connected, you'll get the latest features and security updates."}),jsxs("div",{className:"ethernet_list",children:[jsxs("div",{className:"list_oobe_opt_wifi",children:[jsx("i",{id:"connection",className:"bx bx-desktop"})," ",jsxs("div",{className:"ethernet_list_opt_inr",children:[jsx("div",{className:"text_sml_black_wifi",children:"Ethernet 01"}),jsx("div",{className:"header_sml_wifi",children:"Not connected"})]})]}),jsx("div",{className:"list_oobe_opt"}),jsx("div",{className:"list_oobe_opt"})]}),jsx("div",{className:"text_sml_black",children:"Having trouble to getting connected?"}),jsx("div",{className:"header_sml",children:"For troubleshooting tips use another device and visit aka.ms/networksetup"})]})})]}):null,$===6?jsxs(Fragment,{children:[jsx("div",{className:"left",children:jsx("img",{id:"left_img",src:"img/oobe/window11_oobe_update.png"})}),jsxs("div",{className:"right",children:[jsx("div",{className:"header mb-8",children:"The setup has completed."}),jsx("div",{children:"You can close this now."})]})]}):null,jsx("div",{className:"yes_button base",onClick:_e,children:"Yes"})]}),jsxs("div",{className:"setup_settings",children:[jsx("img",{alt:"accessibility",className:"mr-4 acsblty",src:"img/oobe/window11_oobe_accessibility.png",width:16}),jsx(Icon,{className:"taskIcon",src:`audio${o.audio}`,ui:!0,width:16})]})]})})]})},Notepad=()=>{const s=useSelector(a=>a.apps.notepad);return jsxs("div",{className:"notepad floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Untitled - Notepad"}),jsxs("div",{className:"windowScreen flex flex-col","data-dock":"true",children:[jsxs("div",{className:"flex text-xs py-2 topBar",children:[jsx("div",{className:"mx-2",children:"File"}),jsx("div",{className:"mx-4",children:"Edit"}),jsx("div",{className:"mx-4",children:"View"})]}),jsx("div",{className:"restWindow h-full flex-grow",children:jsx("div",{className:"w-full h-full overflow-hidden",children:jsx("textarea",{className:"noteText win11Scroll",id:"textpad"})})})]})]})},settings="",System=[{type:"sysTop"},{type:"tile",name:"Display",desc:"Monitor, brightness, night light, display profile",icon:"\uE7F8"},{type:"tile",name:"Sound",desc:"Volume levels, output, input, sound devices",icon:"\uE767"},{type:"tile",name:"Notifications",desc:"Alert from apps and system",icon:"\uEA8F"},{type:"tile",name:"Focus Assist",desc:"Notifications, automatic rules",icon:"\uE708"},{type:"tile",name:"Power & battery",desc:"Sleep, battery usage, battery saver",icon:"\uED03"},{type:"tile",name:"Storage",desc:"Storage space, drives, configuration rules",icon:"\uEDA2"},{type:"tile",name:"Nearby sharing",desc:"Discoverability, received files location",icon:"\uE72D"},{type:"tile",name:"Multi-tasking",desc:"Snap windows, desktops, task switching",icon:"\uE7C4"},{type:"tile",name:"Activation",desc:"Activation state, subscription, product key",icon:"\uE930"},{type:"tile",name:"Troubleshoot",desc:"Recommended troubleshooters, preferences, history",icon:"\uE90F"},{type:"tile",name:"Recovery",desc:"Reset, advanced start-up, go back",icon:"\uEBC4"},{type:"tile",name:"Projecting to this PC",desc:"Permissions, pairing PIN, discoverability",icon:"\uEBC6"},{type:"tile",name:"Remote Desktop",desc:"Remote Desktop users, connection permissions",icon:"\uE8AF"},{type:"tile",name:"Clipboard",desc:"Cut and copy history, sync, clear",icon:"\uE77F"},{type:"tile",name:"About",desc:"Device specifications, rename PC, Windows specifications",icon:"\uE55A"}],Personalisation=[{type:"personaliseTop"},{type:"tile",name:"Background",desc:"Background image, colour, slideshow",icon:"\uE91B"},{type:"tile",name:"Colours",desc:"Accent colours, transparency effects, colour theme",icon:"\uE790"},{type:"tile",name:"Themes",desc:"Install, create, manage",icon:"\uE771"},{type:"tile",name:"Lock screen",desc:"Lock screen images, apps, animations",icon:"\uEE3F"},{type:"tile",name:"Touch keyboard",desc:"Theme, size",icon:"\uE765"},{type:"tile",name:"Start",desc:"Recent apps and items, folders",icon:"\uE8FC"},{type:"tile",name:"Taskbar",desc:"Taskbar behaviours, system pins",icon:"\uE328"},{type:"tile",name:"Fonts",desc:"Install, manage",icon:"\uE8D2"},{type:"tile",name:"Device usage",desc:"Select all the ways you plan to use your device to get personalised tips, ads and recommendations within Microsoft experiences",icon:"\uEC76"}],Apps=[{type:"tile",name:"Apps & features",desc:"Installed apps, app execution aliases",icon:"\uF2C7"},{type:"tile",name:"Default apps",desc:"Defaults for file and link types, other defaults",icon:"\uE42A"},{type:"tile",name:"Offline maps",desc:"Downloads, storage location, map updates",icon:"\uE826"},{type:"tile",name:"Optional features",desc:"Extra functionality for your device",icon:"\uF775"},{type:"tile",name:"Apps for websites",desc:"Websites that can open in an app instead of a browser",icon:"\uF6AB"},{type:"tile",name:"Video playback",desc:"Video adjustments, HDR streaming, battery options",icon:"\uE116"},{type:"tile",name:"Startup",desc:"Apps that start automatically when you sign in",icon:"\uE7B5"}],Accounts=[{type:"accountsTop"},{type:"tile",name:"Your Microsoft account",desc:"Subscriptions, rewards and more",icon:"\uE782"},{type:"tile",name:"Your info",desc:"Accounts used by email, calendar, and contacts",icon:"\uE779"},{type:"tile",name:"Sign-in options",desc:"Windows Hello, security key, password, dynamic lock",icon:"\uE8D7"},{type:"tile",name:"Email & accounts",desc:"Accounts used by email, calendar, and contacts",icon:"\uE715"},{type:"tile",name:"Family",desc:"Manage your family group, edit account types and device permissions",icon:"\uE4B0"},{type:"tile",name:"Windows backup",desc:"Back up your files, apps, preferences to restore them across devices",icon:"\uEE6E"},{type:"tile",name:"Other users",desc:"Device access, work or school user, kiosk assigned access",icon:"\uE716"},{type:"tile",name:"Access work or school",desc:"Organisation resources like email, apps, and network",icon:"\uE821"}],Gaming=[{type:"tile",name:"Xbox Game Bar",desc:"Controller and keyboard shortcuts",icon:"\uF192"},{type:"tile",name:"Captures",desc:"Save location, recording preferences",icon:"\uF7EE"},{type:"tile",name:"Game Mode",desc:"Optimize your PC for play",icon:"\uE7FC"}],Accessibility=[{type:"subHeading",name:"Vision"},{type:"tile",name:"Text size",desc:"Text size that appears throughout Windows and your apps",icon:"\uE8E9"},{type:"tile",name:"Visual effects",desc:"Scroll bars, transparency, animations, notification timeout",icon:"\uE794"},{type:"tile",name:"Mouse pointer and touch",desc:"Mouse pointer colour, size",icon:"\uE7C9"},{type:"tile",name:"Text cursor",desc:"Appearance and thickness, text cursor indicator",icon:"\uE330"},{type:"tile",name:"Magnifier",desc:"Magnifier reading, zoom increment",icon:"\uE8A3"},{type:"tile",name:"Colour filters",desc:"Colour-blindness filters, grey scale, inverted",icon:"\uE790"},{type:"tile",name:"Contrast themes",desc:"Colours theme for low vision, light sensitivity",icon:"\uE7A1"},{type:"tile",name:"Narrator",desc:"Voice, verbosity, keyboard, braille",icon:"\uED4D"},{type:"subHeading",name:"Hearing"},{type:"tile",name:"Audio",desc:"Mono audio, audio notifications",icon:"\uE767"},{type:"tile",name:"Captions",desc:"Styles",icon:"\uE7F0"},{type:"subHeading",name:"Interaction"},{type:"tile",name:"Speech",desc:"Windows Speech Recognition, voice typing",icon:"\uE720"},{type:"tile",name:"Keyboard",desc:"Sticky, Filter, and Toggle keys, on-screen keyboard",icon:"\uE765"},{type:"tile",name:"Mouse",desc:"Mouse keys, speed, acceleration",icon:"\uE962"},{type:"tile",name:"Eye control",desc:"Eye tracker, text-to-speech",icon:"\uF19D"}],data$2={System,"Bluetooth & devices":[{type:"tile square",name:"Add device",icon:"\uE710"},{type:"tile thin-blue",name:"View more devices"},{type:"tile",name:"Bluetooth",desc:"Bluetooth is turned off",icon:"\uE702"},{type:"spacer"},{type:"tile",name:"Devices",desc:"Mouse, keyboard, pen, audio, displays and docks, other devices",icon:"\uE772"},{type:"tile",name:"Printers & scanners",desc:"Preferences, troubleshoot",icon:"\uE749"},{type:"tile",name:"Your Phone",desc:"Instantly access your Android device's photos, texts and more",icon:"\uE8EA"},{type:"tile",name:"Cameras",desc:"Connected cameras, default image settings",icon:"\uE722"},{type:"tile",name:"Mouse",desc:"Buttons, mouse pointer speed, scrolling",icon:"\uE962"},{type:"tile",name:"Touchpad",desc:"Taps, gestures, scrolling, zooming",icon:"\uEFA5"},{type:"tile",name:"Pen & Windows Ink",desc:"Right-handed or left-handed, pen button shortcuts, handwriting",icon:"\uEDC6"},{type:"tile",name:"AutoPlay",desc:"Defaults for removable drives and memory cards",icon:"\uEC57"},{type:"tile",name:"USB",desc:"Notifications, USB battery saver, mobile device preferences",icon:"\uE88E"}],"Network & internet":[{type:"netTop"},{type:"tile",name:"WiFi",desc:"Connect, manage known networks, metered network",icon:"\uE701"},{type:"tile",name:"VPN",desc:"Add, connect, manage",icon:"\uE705"},{type:"tile",name:"Mobile hotspot",desc:"Share your internet connection",icon:"\uE704"},{type:"tile",name:"Flight mode",desc:"Stop all wireless communication",icon:"\uE709"},{type:"tile",name:"Proxy",desc:"Proxy server for WiFi and Ethernet connections",icon:"\uE968"},{type:"tile",name:"Dial-up",desc:"Set up a dial-up internet connection",icon:"\uE83C"},{type:"tile",name:"Advanced network settings",desc:"View all network adapters, network reset",icon:"\uEDA3"}],Personalisation,Apps,Accounts,"Time & language":[{type:"timeTop"},{type:"tile",name:"Date & time",desc:"Time zones, automatic clock settings, calendar display",icon:"\uEC92"},{type:"tile",name:"Language & region",desc:"Windows and some apps format dates and times based on your region",icon:"\uF2B7"},{type:"tile",name:"Typing",desc:"Touch keyboard, text suggestions, preferences",icon:"\uE765"},{type:"tile",name:"Speech",desc:"Speech language, speech recognition microphone setup, voices",icon:"\uEFA9"},{type:"langSwitcher"}],Gaming,Accessibility,"Privacy & security":[{type:"subHeading",name:"Security"},{type:"tile",name:"Windows Security",desc:"Antivirus, browser, firewall, and network protection for your device",icon:"\uEA18"},{type:"tile",name:"Find my device",desc:"Track your device if you think you've lost it",icon:"\uE707"},{type:"tile",name:"For developers",desc:"These settings are intended for development use only",icon:"\uEC7A"},{type:"subHeading",name:"Windows permissions"},{type:"tile",name:"General",desc:"Advertising ID, local content, app launches, settings suggestions, productivity tools",icon:"\uE72E"},{type:"tile",name:"Speech",desc:"Online speech recognition for dictation and other voice-based interactions",icon:"\uEFA9"},{type:"tile",name:"Inking & typing personalisation",desc:"Personal dictionary, words in your dictionary",icon:"\uEE56"},{type:"tile",name:"Diagnostic & feedback",desc:"Diagnostic data, inking and typing data, tailored experiences, feedback frequency",icon:"\uE9D9"},{type:"tile",name:"Activity history",desc:"Options for getting more from your activity history across devices and accounts",icon:"\uF31C"},{type:"tile",name:"Search permissions",desc:"SafeSearch, cloud content search, search history",icon:"\uE7EF"},{type:"tile",name:"Searching Windows",desc:"Search indexing for faster results, Find My Files, folders excluded from search",icon:"\uF5E2"},{type:"subHeading",name:"App permissions"},{type:"tile",name:"Location",icon:"\uE37A"},{type:"tile",name:"Camera",icon:"\uE722"},{type:"tile",name:"Microphone",icon:"\uE720"},{type:"tile",name:"Voice activation",icon:"\uF12E"},{type:"tile",name:"Notification",icon:"\uEA8F"},{type:"tile",name:"Account info",icon:"\uE779"},{type:"tile",name:"Contact",icon:"\uE716"},{type:"tile",name:"Calendar",icon:"\uE787"},{type:"tile",name:"Phone calls",icon:"\uE717"},{type:"tile",name:"Call history",icon:"\uECC1"},{type:"tile",name:"Email",icon:"\uE715"},{type:"tile",name:"Tasks",icon:"\uF7EC"},{type:"tile",name:"Messaging",icon:"\uE8BD"},{type:"tile",name:"Radios",icon:"\uEC05"},{type:"tile",name:"Other devices",icon:"\uE975"},{type:"tile",name:"App diagnostics",icon:"\uE9D2"},{type:"tile",name:"Automatic file downloads",icon:"\uE753"},{type:"tile",name:"Documents",icon:"\uEEB8"},{type:"tile",name:"Downloads folder",icon:"\uF549"},{type:"tile",name:"Music library",icon:"\uE5D7"},{type:"tile",name:"Pictures",icon:"\uE91B"},{type:"tile",name:"Videos",icon:"\uE8B2"},{type:"tile",name:"File system",icon:"\uE7C3"},{type:"tile",name:"Screenshot borders",icon:"\uE91B"},{type:"tile",name:"Screenshot and apps",icon:"\uE7AA"}],"Windows Update":[{type:"updateTop"},{type:"subHeading",name:"More options"},{type:"tile",name:"Pause updates",icon:"\uE769"},{type:"tile",name:"Update history",icon:"\uE81C"},{type:"tile",name:"Advanced options",desc:"Delivery optimisations, optional updates, active hours, other update settings",icon:"\uE9F5"},{type:"tile",name:"Windows Insider Programme",desc:"Get preview builds of Windows to share feedback to new features and updates",icon:"\uF1AD"}]},Settings=()=>{const s=useSelector(v1=>v1.apps.settings),a=useSelector(v1=>v1.setting.person.theme),o=useDispatch(),_=useSelector(v1=>v1.wallpaper),[$,j]=react.exports.useState("System"),[_e,e1]=react.exports.useState(""),[a1,t1]=react.exports.useState(!1),[r1,s1]=react.exports.useState(!1),i1={default:"light",dark:"dark",ThemeA:"dark",ThemeB:"dark",ThemeD:"light",ThemeC:"light"},f1=v1=>{var y1=v1.target.dataset.payload,d1=i1[y1.split("/")[0]],u1=y1;d1!=a&&changeTheme(),o({type:"WALLSET",payload:u1})},g1=useSelector(v1=>v1.setting.person.name);return jsxs("div",{className:"settingsApp floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Settings"}),jsx("div",{className:"windowScreen flex flex-col","data-dock":"true",children:jsxs("div",{className:"restWindow flex-grow flex flex-col",children:[jsxs("nav",{className:_e,children:[jsxs("div",{className:"nav_top",children:[jsxs("div",{className:"account",onClick:()=>j("Accounts"),children:[jsx("img",{src:"img/settings/defAccount.webp",alt:"",height:60,width:60}),jsxs("div",{children:[jsx("p",{children:g1}),jsx("p",{children:"Local Account"})]})]}),jsx("input",{type:"text",className:"search",placeholder:"Find a setting ",name:"search"})]}),jsxs("div",{className:"nav_bottom win11Scroll",children:[Object.keys(data$2).map(v1=>jsxs("div",{className:`navLink ${v1===$?"selected":""}`,onClick:()=>{j(v1)},children:[jsx("img",{src:`img/settings/${v1}.webp`,alt:"",height:16,width:16}),v1]},v1)),jsx("div",{className:"marker"})]})]}),Object.keys(data$2).map(v1=>$===v1&&jsxs("main",{children:[jsx("h1",{children:v1}),jsx("div",{className:"tilesCont win11Scroll",children:data$2[v1].map((y1,d1)=>{switch(y1.type){case"sysTop":return jsxs("div",{className:y1.type,children:[jsxs("div",{className:"left",children:[jsx("img",{src:`img/wallpaper/${_.src}`,alt:"",className:"device_img"}),jsxs("div",{className:"column_device",children:[jsx("p",{className:"device_name",children:"Liber-V"}),jsx("p",{className:"device_model",children:"NS14A8"}),jsx("p",{className:"device_rename",children:"Rename"})]})]}),jsxs("div",{className:"right",children:[jsxs("div",{className:"column",children:[jsx("img",{src:"https://upload.wikimedia.org/wikipedia/commons/2/25/Microsoft_icon.svg",height:20,alt:""}),jsxs("p",{children:["Microsoft 365",jsx("br",{}),jsx("span",{className:"column_lower",children:"View benefits"})]})]}),jsxs("div",{className:"column",onClick:()=>j("Windows Update"),children:[jsx("img",{src:"img/settings/Windows Update.webp",alt:"",height:20}),jsxs("p",{children:["Windows Update",jsx("br",{}),jsx("span",{className:"column_lower",children:"You're up to date"})]})]})]})]},d1);case"netTop":return jsxs("div",{className:"netTop",children:[jsxs("div",{children:[jsx("img",{src:"img/settings/wifi.png",alt:"",height:100}),jsxs("div",{children:[jsx("h2",{className:"font-medium text-lg",children:"WiFi"}),jsx("p",{children:"Connected, secured"})]})]}),jsxs("div",{className:"box",children:[jsx("span",{className:"settingsIcon",children:"\uE55A"}),jsxs("div",{children:[jsx("h3",{children:"Properties"}),jsx("p",{children:"Public network 5 Ghz"})]})]}),jsxs("div",{className:"box",children:[jsx("span",{className:"settingsIcon",children:"\uE606"}),jsxs("div",{children:[jsx("h3",{children:"Data Usage"}),jsxs("p",{children:[Math.round(Math.random()*100),"GB, last 30 days"]})]})]})]},d1);case"personaliseTop":return jsxs("div",{className:"personaliseTop",children:[jsx("img",{className:"mainImg",src:`img/wallpaper/${_.src}`,alt:""}),jsxs("div",{children:[jsx("h3",{children:"Select a theme to apply"}),jsx("div",{className:"bgBox",children:_.themes.map((u1,p1)=>jsx(Image$1,{className:_.src.includes(u1)?"selected":"",src:`img/wallpaper/${u1}/img0.jpg`,ext:!0,onClick:f1,click:"WALLSET",payload:`${u1}/img0.jpg`},p1))})]})]},d1);case"accountsTop":return jsxs("div",{className:"accountsTop ",children:[jsx("img",{src:"img/settings/defAccount.webp",alt:"",width:90}),jsxs("div",{children:[jsx("p",{children:g1.toUpperCase()}),jsx("p",{children:"Local Account"}),jsx("p",{children:"Administrator"})]})]},d1);case"timeTop":return jsx("div",{className:"timeTop",children:jsx("h1",{children:new Date().toLocaleTimeString("en-US",{hour:"numeric",minute:"numeric",hour12:!0})})});case"langSwitcher":return jsxs("div",{className:"tile langSwitcherTile",children:[jsx("span",{className:"settingsIcon",children:"\uE7F8"}),jsxs("div",{className:"tile_content",children:[jsx("p",{children:"Windows display language"}),jsx("p",{className:"tile_desc",children:"Windows features like Settings and File Explorer will appear in this language"})]}),jsx(LangSwitch,{})]},d1);case"updateTop":return jsxs("div",{className:"updateTop",children:[jsxs("div",{className:"left",children:[jsx("img",{src:"img/settings/update.png",width:90,alt:""}),jsxs("div",{children:[jsx("h2",{children:"You're up to date"}),jsx("p",{children:"Last checked: Today"})]})]}),jsx("div",{className:"right",children:jsx("div",{className:"btn",onClick:()=>{t1(!0),setTimeout(()=>{t1(!1),s1(!0)},Math.random()*2e3)},children:a1?"Checking for updates...":"Check for updates"})})]},d1);case"subHeading":case"spacer":return jsx("div",{className:y1.type,children:y1.name},d1);case"tile":case"tile square":case"tile thin-blue":return jsxs("div",{className:y1.type,children:[jsx("span",{className:"settingsIcon",children:y1.icon}),jsxs("div",{children:[jsx("p",{children:y1.name}),jsx("p",{className:"tile_desc",children:y1.desc})]})]},y1.name);default:return console.log(`error - type ${y1.type} not found`)}})})]},v1)),r1&&jsxs(Fragment,{children:[jsx("div",{className:"absolute z-30 bg-black bg-opacity-60 h-full w-full top-0 left-0"}),jsxs("div",{className:"absolute top-[50%] left-[50%] z-50 rounded",style:{transform:"translateX(-50%) translateY(-50%)",background:"var(--wintheme)",padding:"1.5rem"},children:[jsx("h1",{style:{marginBottom:"10px"},className:"text-2xl font-semibold",children:"Restart required"}),jsx("p",{children:"Some changes will not take effect until you restart your device."}),jsxs("div",{className:"flex",style:{marginTop:"14px"},children:[jsx("button",{style:{padding:"10px",backgroundColor:"var(--clrPrm)",color:"var(--alt-txt)",marginRight:"10px"},onClick:()=>{window.location=window.location.href+`?clearCache=${Math.random()}`},className:"flex-1 rounded border-none hover:opacity-95",children:"Restart now"}),jsx("button",{style:{padding:"10px",color:"var(--sat-txt)"},className:"flex-1 rounded border",onClick:()=>{s1(!1)},children:"Restart later"})]})]})]}),jsx("div",{className:"navMenuBtn",onClick:()=>e1(_e?"":"open"),children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 48 48",width:24,height:24,children:jsx("path",{d:"M5.5 9a1.5 1.5 0 1 0 0 3h37a1.5 1.5 0 1 0 0-3h-37zm0 13.5a1.5 1.5 0 1 0 0 3h37a1.5 1.5 0 1 0 0-3h-37zm0 13.5a1.5 1.5 0 1 0 0 3h37a1.5 1.5 0 1 0 0-3h-37z"})})})]})})]})};var lib$2={},players={},utils={},loadScript=function(a,o,_){var $=document.head||document.getElementsByTagName("head")[0],j=document.createElement("script");typeof o=="function"&&(_=o,o={}),o=o||{},_=_||function(){},j.type=o.type||"text/javascript",j.charset=o.charset||"utf8",j.async="async"in o?!!o.async:!0,j.src=a,o.attrs&&setAttributes(j,o.attrs),o.text&&(j.text=""+o.text);var _e="onload"in j?stdOnEnd:ieOnEnd;_e(j,_),j.onload||stdOnEnd(j,_),$.appendChild(j)};function setAttributes(s,a){for(var o in a)s.setAttribute(o,a[o])}function stdOnEnd(s,a){s.onload=function(){this.onerror=this.onload=null,a(null,s)},s.onerror=function(){this.onerror=this.onload=null,a(new Error("Failed to load "+this.src),s)}}function ieOnEnd(s,a){s.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,a(null,s))}}var isMergeableObject=function(a){return isNonNullObject(a)&&!isSpecial(a)};function isNonNullObject(s){return!!s&&typeof s=="object"}function isSpecial(s){var a=Object.prototype.toString.call(s);return a==="[object RegExp]"||a==="[object Date]"||isReactElement(s)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(s){return s.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(s){return Array.isArray(s)?[]:{}}function cloneUnlessOtherwiseSpecified(s,a){return a.clone!==!1&&a.isMergeableObject(s)?deepmerge(emptyTarget(s),s,a):s}function defaultArrayMerge(s,a,o){return s.concat(a).map(function(_){return cloneUnlessOtherwiseSpecified(_,o)})}function getMergeFunction(s,a){if(!a.customMerge)return deepmerge;var o=a.customMerge(s);return typeof o=="function"?o:deepmerge}function getEnumerableOwnPropertySymbols(s){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(s).filter(function(a){return Object.propertyIsEnumerable.call(s,a)}):[]}function getKeys(s){return Object.keys(s).concat(getEnumerableOwnPropertySymbols(s))}function propertyIsOnObject(s,a){try{return a in s}catch{return!1}}function propertyIsUnsafe(s,a){return propertyIsOnObject(s,a)&&!(Object.hasOwnProperty.call(s,a)&&Object.propertyIsEnumerable.call(s,a))}function mergeObject(s,a,o){var _={};return o.isMergeableObject(s)&&getKeys(s).forEach(function($){_[$]=cloneUnlessOtherwiseSpecified(s[$],o)}),getKeys(a).forEach(function($){propertyIsUnsafe(s,$)||(propertyIsOnObject(s,$)&&o.isMergeableObject(a[$])?_[$]=getMergeFunction($,o)(s[$],a[$],o):_[$]=cloneUnlessOtherwiseSpecified(a[$],o))}),_}function deepmerge(s,a,o){o=o||{},o.arrayMerge=o.arrayMerge||defaultArrayMerge,o.isMergeableObject=o.isMergeableObject||isMergeableObject,o.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var _=Array.isArray(a),$=Array.isArray(s),j=_===$;return j?_?o.arrayMerge(s,a,o):mergeObject(s,a,o):cloneUnlessOtherwiseSpecified(a,o)}deepmerge.all=function(a,o){if(!Array.isArray(a))throw new Error("first argument should be an array");return a.reduce(function(_,$){return deepmerge(_,$,o)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;Object.defineProperty(utils,"__esModule",{value:!0});utils.parseStartTime=parseStartTime;utils.parseEndTime=parseEndTime;utils.randomString=randomString;utils.queryString=queryString;utils.getSDK=getSDK;utils.getConfig=getConfig;utils.omit=omit;utils.callPlayer=callPlayer;utils.isMediaStream=isMediaStream;utils.isBlobUrl=isBlobUrl;utils.supportsWebKitPresentationMode=supportsWebKitPresentationMode;var _loadScript=_interopRequireDefault$7(loadScript),_deepmerge$1=_interopRequireDefault$7(cjs);function _interopRequireDefault$7(s){return s&&s.__esModule?s:{default:s}}function _slicedToArray(s,a){return _arrayWithHoles(s)||_iterableToArrayLimit(s,a)||_unsupportedIterableToArray$3(s,a)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$3(s,a){if(!!s){if(typeof s=="string")return _arrayLikeToArray$3(s,a);var o=Object.prototype.toString.call(s).slice(8,-1);if(o==="Object"&&s.constructor&&(o=s.constructor.name),o==="Map"||o==="Set")return Array.from(s);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray$3(s,a)}}function _arrayLikeToArray$3(s,a){(a==null||a>s.length)&&(a=s.length);for(var o=0,_=new Array(a);o"u"||!(Symbol.iterator in Object(s)))){var o=[],_=!0,$=!1,j=void 0;try{for(var _e=s[Symbol.iterator](),e1;!(_=(e1=_e.next()).done)&&(o.push(e1.value),!(a&&o.length===a));_=!0);}catch(a1){$=!0,j=a1}finally{try{!_&&_e.return!=null&&_e.return()}finally{if($)throw j}}return o}}function _arrayWithHoles(s){if(Array.isArray(s))return s}var MATCH_START_QUERY=/[?&#](?:start|t)=([0-9hms]+)/,MATCH_END_QUERY=/[?&#]end=([0-9hms]+)/,MATCH_START_STAMP=/(\d+)(h|m|s)/g,MATCH_NUMERIC=/^\d+$/;function parseTimeParam(s,a){if(!(s instanceof Array)){var o=s.match(a);if(o){var _=o[1];if(_.match(MATCH_START_STAMP))return parseTimeString(_);if(MATCH_NUMERIC.test(_))return parseInt(_)}}}function parseTimeString(s){for(var a=0,o=MATCH_START_STAMP.exec(s);o!==null;){var _=o,$=_slicedToArray(_,3),j=$[1],_e=$[2];_e==="h"&&(a+=parseInt(j,10)*60*60),_e==="m"&&(a+=parseInt(j,10)*60),_e==="s"&&(a+=parseInt(j,10)),o=MATCH_START_STAMP.exec(s)}return a}function parseStartTime(s){return parseTimeParam(s,MATCH_START_QUERY)}function parseEndTime(s){return parseTimeParam(s,MATCH_END_QUERY)}function randomString(){return Math.random().toString(36).substr(2,5)}function queryString(s){return Object.keys(s).map(function(a){return"".concat(a,"=").concat(s[a])}).join("&")}function getGlobal(s){return window[s]?window[s]:window.exports&&window.exports[s]?window.exports[s]:window.module&&window.module.exports&&window.module.exports[s]?window.module.exports[s]:null}var requests={};function getSDK(s,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0},$=arguments.length>4&&arguments[4]!==void 0?arguments[4]:_loadScript.default,j=getGlobal(a);return j&&_(j)?Promise.resolve(j):new Promise(function(_e,e1){if(requests[s]){requests[s].push({resolve:_e,reject:e1});return}requests[s]=[{resolve:_e,reject:e1}];var a1=function(s1){requests[s].forEach(function(i1){return i1.resolve(s1)})};if(o){var t1=window[o];window[o]=function(){t1&&t1(),a1(getGlobal(a))}}$(s,function(r1){r1?(requests[s].forEach(function(s1){return s1.reject(r1)}),requests[s]=null):o||a1(getGlobal(a))})})}function getConfig(s,a){return(0,_deepmerge$1.default)(a.config,s.config)}function omit(s){for(var a,o=arguments.length,_=new Array(o>1?o-1:0),$=1;$1?_-1:0),j=1;j<_;j++)$[j-1]=arguments[j];return(a=this.player)[s].apply(a,$)}function isMediaStream(s){return typeof window<"u"&&typeof window.MediaStream<"u"&&s instanceof window.MediaStream}function isBlobUrl(s){return/^blob:/.test(s)}function supportsWebKitPresentationMode(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document.createElement("video"),a=/iPhone|iPod/.test(navigator.userAgent)===!1;return s.webkitSupportsPresentationMode&&typeof s.webkitSetPresentationMode=="function"&&a}var patterns={};Object.defineProperty(patterns,"__esModule",{value:!0});patterns.canPlay=patterns.FLV_EXTENSIONS=patterns.DASH_EXTENSIONS=patterns.HLS_EXTENSIONS=patterns.VIDEO_EXTENSIONS=patterns.AUDIO_EXTENSIONS=patterns.MATCH_URL_KALTURA=patterns.MATCH_URL_VIDYARD=patterns.MATCH_URL_MIXCLOUD=patterns.MATCH_URL_DAILYMOTION=patterns.MATCH_URL_TWITCH_CHANNEL=patterns.MATCH_URL_TWITCH_VIDEO=patterns.MATCH_URL_WISTIA=patterns.MATCH_URL_STREAMABLE=patterns.MATCH_URL_FACEBOOK_WATCH=patterns.MATCH_URL_FACEBOOK=patterns.MATCH_URL_VIMEO=patterns.MATCH_URL_SOUNDCLOUD=patterns.MATCH_URL_YOUTUBE=void 0;var _utils$1=utils;function _createForOfIteratorHelper(s,a){var o;if(typeof Symbol>"u"||s[Symbol.iterator]==null){if(Array.isArray(s)||(o=_unsupportedIterableToArray$2(s))||a&&s&&typeof s.length=="number"){o&&(s=o);var _=0,$=function(){};return{s:$,n:function(){return _>=s.length?{done:!0}:{done:!1,value:s[_++]}},e:function(t1){throw t1},f:$}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,_e=!1,e1;return{s:function(){o=s[Symbol.iterator]()},n:function(){var t1=o.next();return j=t1.done,t1},e:function(t1){_e=!0,e1=t1},f:function(){try{!j&&o.return!=null&&o.return()}finally{if(_e)throw e1}}}}function _unsupportedIterableToArray$2(s,a){if(!!s){if(typeof s=="string")return _arrayLikeToArray$2(s,a);var o=Object.prototype.toString.call(s).slice(8,-1);if(o==="Object"&&s.constructor&&(o=s.constructor.name),o==="Map"||o==="Set")return Array.from(s);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray$2(s,a)}}function _arrayLikeToArray$2(s,a){(a==null||a>s.length)&&(a=s.length);for(var o=0,_=new Array(a);ow1.length)&&(_1=w1.length);for(var M1=0,H1=new Array(_1);M1<_1;M1++)H1[M1]=w1[M1];return H1}function f1(w1,_1){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(w1)))){var M1=[],H1=!0,L1=!1,R1=void 0;try{for(var E1=w1[Symbol.iterator](),$1;!(H1=($1=E1.next()).done)&&(M1.push($1.value),!(_1&&M1.length===_1));H1=!0);}catch(U1){L1=!0,R1=U1}finally{try{!H1&&E1.return!=null&&E1.return()}finally{if(L1)throw R1}}return M1}}function g1(w1){if(Array.isArray(w1))return w1}function v1(w1,_1){if(!(w1 instanceof _1))throw new TypeError("Cannot call a class as a function")}function y1(w1,_1){for(var M1=0;M1<_1.length;M1++){var H1=_1[M1];H1.enumerable=H1.enumerable||!1,H1.configurable=!0,"value"in H1&&(H1.writable=!0),Object.defineProperty(w1,H1.key,H1)}}function d1(w1,_1,M1){return _1&&y1(w1.prototype,_1),M1&&y1(w1,M1),w1}function u1(w1,_1){if(typeof _1!="function"&&_1!==null)throw new TypeError("Super expression must either be null or a function");w1.prototype=Object.create(_1&&_1.prototype,{constructor:{value:w1,writable:!0,configurable:!0}}),_1&&p1(w1,_1)}function p1(w1,_1){return p1=Object.setPrototypeOf||function(H1,L1){return H1.__proto__=L1,H1},p1(w1,_1)}function z1(w1){var _1=l1();return function(){var H1=n1(w1),L1;if(_1){var R1=n1(this).constructor;L1=Reflect.construct(H1,arguments,R1)}else L1=H1.apply(this,arguments);return m1(this,L1)}}function m1(w1,_1){return _1&&(a(_1)==="object"||typeof _1=="function")?_1:C1(w1)}function C1(w1){if(w1===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w1}function l1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function n1(w1){return n1=Object.setPrototypeOf?Object.getPrototypeOf:function(M1){return M1.__proto__||Object.getPrototypeOf(M1)},n1(w1)}function o1(w1,_1,M1){return _1 in w1?Object.defineProperty(w1,_1,{value:M1,enumerable:!0,configurable:!0,writable:!0}):w1[_1]=M1,w1}var c1="https://www.youtube.com/iframe_api",h1="YT",S1="onYouTubeIframeAPIReady",k1=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b1=/user\/([a-zA-Z0-9_-]+)\/?/,V1=/youtube-nocookie\.com/,P1="https://www.youtube-nocookie.com",x1=function(w1){u1(M1,w1);var _1=z1(M1);function M1(){var H1;v1(this,M1);for(var L1=arguments.length,R1=new Array(L1),E1=0;E1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u1(l1){return u1=Object.setPrototypeOf?Object.getPrototypeOf:function(o1){return o1.__proto__||Object.getPrototypeOf(o1)},u1(l1)}function p1(l1,n1,o1){return n1 in l1?Object.defineProperty(l1,n1,{value:o1,enumerable:!0,configurable:!0,writable:!0}):l1[n1]=o1,l1}var z1="https://w.soundcloud.com/player/api.js",m1="SC",C1=function(l1){i1(o1,l1);var n1=g1(o1);function o1(){var c1;t1(this,o1);for(var h1=arguments.length,S1=new Array(h1),k1=0;k1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u1(l1){return u1=Object.setPrototypeOf?Object.getPrototypeOf:function(o1){return o1.__proto__||Object.getPrototypeOf(o1)},u1(l1)}function p1(l1,n1,o1){return n1 in l1?Object.defineProperty(l1,n1,{value:o1,enumerable:!0,configurable:!0,writable:!0}):l1[n1]=o1,l1}var z1="https://player.vimeo.com/api/player.js",m1="Vimeo",C1=function(l1){i1(o1,l1);var n1=g1(o1);function o1(){var c1;t1(this,o1);for(var h1=arguments.length,S1=new Array(h1),k1=0;k1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function d1(n1){return d1=Object.setPrototypeOf?Object.getPrototypeOf:function(c1){return c1.__proto__||Object.getPrototypeOf(c1)},d1(n1)}function u1(n1,o1,c1){return o1 in n1?Object.defineProperty(n1,o1,{value:c1,enumerable:!0,configurable:!0,writable:!0}):n1[o1]=c1,n1}var p1="https://connect.facebook.net/en_US/sdk.js",z1="FB",m1="fbAsyncInit",C1="facebook-player-",l1=function(n1){s1(c1,n1);var o1=f1(c1);function c1(){var h1;a1(this,c1);for(var S1=arguments.length,k1=new Array(S1),b1=0;b1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function y1(m1){return y1=Object.setPrototypeOf?Object.getPrototypeOf:function(l1){return l1.__proto__||Object.getPrototypeOf(l1)},y1(m1)}function d1(m1,C1,l1){return C1 in m1?Object.defineProperty(m1,C1,{value:l1,enumerable:!0,configurable:!0,writable:!0}):m1[C1]=l1,m1}var u1="https://cdn.embed.ly/player-0.1.0.min.js",p1="playerjs",z1=function(m1){r1(l1,m1);var C1=i1(l1);function l1(){var n1;e1(this,l1);for(var o1=arguments.length,c1=new Array(o1),h1=0;h1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u1(n1){return u1=Object.setPrototypeOf?Object.getPrototypeOf:function(c1){return c1.__proto__||Object.getPrototypeOf(c1)},u1(n1)}function p1(n1,o1,c1){return o1 in n1?Object.defineProperty(n1,o1,{value:c1,enumerable:!0,configurable:!0,writable:!0}):n1[o1]=c1,n1}var z1="https://fast.wistia.com/assets/external/E-v1.js",m1="Wistia",C1="wistia-player-",l1=function(n1){i1(c1,n1);var o1=g1(c1);function c1(){var h1;t1(this,c1);for(var S1=arguments.length,k1=new Array(S1),b1=0;b1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u1(n1){return u1=Object.setPrototypeOf?Object.getPrototypeOf:function(c1){return c1.__proto__||Object.getPrototypeOf(c1)},u1(n1)}function p1(n1,o1,c1){return o1 in n1?Object.defineProperty(n1,o1,{value:c1,enumerable:!0,configurable:!0,writable:!0}):n1[o1]=c1,n1}var z1="https://player.twitch.tv/js/embed/v1.js",m1="Twitch",C1="twitch-player-",l1=function(n1){i1(c1,n1);var o1=g1(c1);function c1(){var h1;t1(this,c1);for(var S1=arguments.length,k1=new Array(S1),b1=0;b1b1.length)&&(V1=b1.length);for(var P1=0,x1=new Array(V1);P1"u"||!(Symbol.iterator in Object(b1)))){var P1=[],x1=!0,w1=!1,_1=void 0;try{for(var M1=b1[Symbol.iterator](),H1;!(x1=(H1=M1.next()).done)&&(P1.push(H1.value),!(V1&&P1.length===V1));x1=!0);}catch(L1){w1=!0,_1=L1}finally{try{!x1&&M1.return!=null&&M1.return()}finally{if(w1)throw _1}}return P1}}function g1(b1){if(Array.isArray(b1))return b1}function v1(b1,V1){if(!(b1 instanceof V1))throw new TypeError("Cannot call a class as a function")}function y1(b1,V1){for(var P1=0;P1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function n1(b1){return n1=Object.setPrototypeOf?Object.getPrototypeOf:function(P1){return P1.__proto__||Object.getPrototypeOf(P1)},n1(b1)}function o1(b1,V1,P1){return V1 in b1?Object.defineProperty(b1,V1,{value:P1,enumerable:!0,configurable:!0,writable:!0}):b1[V1]=P1,b1}var c1="https://api.dmcdn.net/all.js",h1="DM",S1="dmAsyncInit",k1=function(b1){u1(P1,b1);var V1=z1(P1);function P1(){var x1;v1(this,P1);for(var w1=arguments.length,_1=new Array(w1),M1=0;M1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u1(l1){return u1=Object.setPrototypeOf?Object.getPrototypeOf:function(o1){return o1.__proto__||Object.getPrototypeOf(o1)},u1(l1)}function p1(l1,n1,o1){return n1 in l1?Object.defineProperty(l1,n1,{value:o1,enumerable:!0,configurable:!0,writable:!0}):l1[n1]=o1,l1}var z1="https://widget.mixcloud.com/media/js/widgetApi.js",m1="Mixcloud",C1=function(l1){i1(o1,l1);var n1=g1(o1);function o1(){var c1;t1(this,o1);for(var h1=arguments.length,S1=new Array(h1),k1=0;k1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function u1(n1){return u1=Object.setPrototypeOf?Object.getPrototypeOf:function(c1){return c1.__proto__||Object.getPrototypeOf(c1)},u1(n1)}function p1(n1,o1,c1){return o1 in n1?Object.defineProperty(n1,o1,{value:c1,enumerable:!0,configurable:!0,writable:!0}):n1[o1]=c1,n1}var z1="https://play.vidyard.com/embed/v4.js",m1="VidyardV4",C1="onVidyardAPI",l1=function(n1){i1(c1,n1);var o1=g1(c1);function c1(){var h1;t1(this,c1);for(var S1=arguments.length,k1=new Array(S1),b1=0;b1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function y1(m1){return y1=Object.setPrototypeOf?Object.getPrototypeOf:function(l1){return l1.__proto__||Object.getPrototypeOf(l1)},y1(m1)}function d1(m1,C1,l1){return C1 in m1?Object.defineProperty(m1,C1,{value:l1,enumerable:!0,configurable:!0,writable:!0}):m1[C1]=l1,m1}var u1="https://cdn.embed.ly/player-0.1.0.min.js",p1="playerjs",z1=function(m1){r1(l1,m1);var C1=i1(l1);function l1(){var n1;e1(this,l1);for(var o1=arguments.length,c1=new Array(o1),h1=0;h1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function d1(x1){return d1=Object.setPrototypeOf?Object.getPrototypeOf:function(_1){return _1.__proto__||Object.getPrototypeOf(_1)},d1(x1)}function u1(x1,w1,_1){return w1 in x1?Object.defineProperty(x1,w1,{value:_1,enumerable:!0,configurable:!0,writable:!0}):x1[w1]=_1,x1}var p1=typeof navigator<"u",z1=p1&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,m1=p1&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||z1)&&!window.MSStream,C1=p1&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,l1="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",n1="Hls",o1="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",c1="dashjs",h1="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",S1="flvjs",k1=/www\.dropbox\.com\/.+/,b1=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,V1="https://videodelivery.net/{id}/manifest/video.m3u8",P1=function(x1){s1(_1,x1);var w1=f1(_1);function _1(){var M1;a1(this,_1);for(var H1=arguments.length,L1=new Array(H1),R1=0;R10?R1.end(R1.length-1):L1}},{key:"getCurrentTime",value:function(){return this.player?this.player.currentTime:null}},{key:"getSecondsLoaded",value:function(){if(!this.player)return null;var H1=this.player.buffered;if(H1.length===0)return 0;var L1=H1.end(H1.length-1),R1=this.getDuration();return L1>R1?R1:L1}},{key:"getSource",value:function(H1){var L1=this.shouldUseHLS(H1),R1=this.shouldUseDASH(H1),E1=this.shouldUseFLV(H1);if(!(H1 instanceof Array||(0,_.isMediaStream)(H1)||L1||R1||E1))return k1.test(H1)?H1.replace("www.dropbox.com","dl.dropboxusercontent.com"):H1}},{key:"render",value:function(){var H1=this.props,L1=H1.url,R1=H1.playing,E1=H1.loop,$1=H1.controls,U1=H1.muted,G1=H1.config,W1=H1.width,Q1=H1.height,Z1=this.shouldUseAudio(this.props),K1=Z1?"audio":"video",e2={width:W1==="auto"?W1:"100%",height:Q1==="auto"?Q1:"100%"};return o.default.createElement(K1,e1({ref:this.ref,src:this.getSource(L1),style:e2,preload:"auto",autoPlay:R1||void 0,controls:$1,muted:U1,loop:E1},G1.attributes),L1 instanceof Array&&L1.map(this.renderSourceElement),G1.tracks.map(this.renderTrack))}}]),_1}(o.Component);s.default=P1,u1(P1,"displayName","FilePlayer"),u1(P1,"canPlay",$.canPlay.file)}(FilePlayer)),FilePlayer}(function(s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var a=react.exports,o=utils,_=patterns;function $(a1){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$=function(r1){return typeof r1}:$=function(r1){return r1&&typeof Symbol=="function"&&r1.constructor===Symbol&&r1!==Symbol.prototype?"symbol":typeof r1},$(a1)}function j(){if(typeof WeakMap!="function")return null;var a1=new WeakMap;return j=function(){return a1},a1}function _e(a1){if(a1&&a1.__esModule)return a1;if(a1===null||$(a1)!=="object"&&typeof a1!="function")return{default:a1};var t1=j();if(t1&&t1.has(a1))return t1.get(a1);var r1={},s1=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i1 in a1)if(Object.prototype.hasOwnProperty.call(a1,i1)){var f1=s1?Object.getOwnPropertyDescriptor(a1,i1):null;f1&&(f1.get||f1.set)?Object.defineProperty(r1,i1,f1):r1[i1]=a1[i1]}return r1.default=a1,t1&&t1.set(a1,r1),r1}var e1=[{key:"youtube",name:"YouTube",canPlay:_.canPlay.youtube,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireYouTube())})})},{key:"soundcloud",name:"SoundCloud",canPlay:_.canPlay.soundcloud,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireSoundCloud())})})},{key:"vimeo",name:"Vimeo",canPlay:_.canPlay.vimeo,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireVimeo())})})},{key:"facebook",name:"Facebook",canPlay:_.canPlay.facebook,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireFacebook())})})},{key:"streamable",name:"Streamable",canPlay:_.canPlay.streamable,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireStreamable())})})},{key:"wistia",name:"Wistia",canPlay:_.canPlay.wistia,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireWistia())})})},{key:"twitch",name:"Twitch",canPlay:_.canPlay.twitch,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireTwitch())})})},{key:"dailymotion",name:"DailyMotion",canPlay:_.canPlay.dailymotion,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireDailyMotion())})})},{key:"mixcloud",name:"Mixcloud",canPlay:_.canPlay.mixcloud,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireMixcloud())})})},{key:"vidyard",name:"Vidyard",canPlay:_.canPlay.vidyard,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireVidyard())})})},{key:"kaltura",name:"Kaltura",canPlay:_.canPlay.kaltura,lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireKaltura())})})},{key:"file",name:"FilePlayer",canPlay:_.canPlay.file,canEnablePIP:function(t1){return _.canPlay.file(t1)&&(document.pictureInPictureEnabled||(0,o.supportsWebKitPresentationMode)())&&!_.AUDIO_EXTENSIONS.test(t1)},lazyPlayer:(0,a.lazy)(function(){return Promise.resolve().then(function(){return _e(requireFilePlayer())})})}];s.default=e1})(players);var ReactPlayer$1={},safeIsNaN=Number.isNaN||function(a){return typeof a=="number"&&a!==a};function isEqual(s,a){return!!(s===a||safeIsNaN(s)&&safeIsNaN(a))}function areInputsEqual(s,a){if(s.length!==a.length)return!1;for(var o=0;o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function p1(l1){return p1=Object.setPrototypeOf?Object.getPrototypeOf:function(o1){return o1.__proto__||Object.getPrototypeOf(o1)},p1(l1)}function z1(l1,n1,o1){return n1 in l1?Object.defineProperty(l1,n1,{value:o1,enumerable:!0,configurable:!0,writable:!0}):l1[n1]=o1,l1}var m1=5e3,C1=function(l1){f1(o1,l1);var n1=v1(o1);function o1(){var c1;r1(this,o1);for(var h1=arguments.length,S1=new Array(h1),k1=0;k10&&h1<1;if(b1){var V1=this.player.getDuration();if(!V1){console.warn("ReactPlayer: could not seek using fraction \u2013\xA0duration not yet available");return}this.player.seekTo(V1*h1);return}this.player.seekTo(h1)}},{key:"render",value:function(){var h1=this.props.activePlayer;return h1?o.default.createElement(h1,t1({},this.props,{onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError})):null}}]),o1}(o.Component);s.default=C1,z1(C1,"displayName","Player"),z1(C1,"propTypes",$.propTypes),z1(C1,"defaultProps",$.defaultProps)})(Player);var Preview$1={},hasRequiredPreview;function requirePreview(){return hasRequiredPreview||(hasRequiredPreview=1,function(s){function a(m1){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a=function(l1){return typeof l1}:a=function(l1){return l1&&typeof Symbol=="function"&&l1.constructor===Symbol&&l1!==Symbol.prototype?"symbol":typeof l1},a(m1)}Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var o=$(react.exports);function _(){if(typeof WeakMap!="function")return null;var m1=new WeakMap;return _=function(){return m1},m1}function $(m1){if(m1&&m1.__esModule)return m1;if(m1===null||a(m1)!=="object"&&typeof m1!="function")return{default:m1};var C1=_();if(C1&&C1.has(m1))return C1.get(m1);var l1={},n1=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o1 in m1)if(Object.prototype.hasOwnProperty.call(m1,o1)){var c1=n1?Object.getOwnPropertyDescriptor(m1,o1):null;c1&&(c1.get||c1.set)?Object.defineProperty(l1,o1,c1):l1[o1]=m1[o1]}return l1.default=m1,C1&&C1.set(m1,l1),l1}function j(m1,C1){var l1=Object.keys(m1);if(Object.getOwnPropertySymbols){var n1=Object.getOwnPropertySymbols(m1);C1&&(n1=n1.filter(function(o1){return Object.getOwnPropertyDescriptor(m1,o1).enumerable})),l1.push.apply(l1,n1)}return l1}function _e(m1){for(var C1=1;C1"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function y1(m1){return y1=Object.setPrototypeOf?Object.getPrototypeOf:function(l1){return l1.__proto__||Object.getPrototypeOf(l1)},y1(m1)}function d1(m1,C1,l1){return C1 in m1?Object.defineProperty(m1,C1,{value:l1,enumerable:!0,configurable:!0,writable:!0}):m1[C1]=l1,m1}var u1="64px",p1={},z1=function(m1){r1(l1,m1);var C1=i1(l1);function l1(){var n1;e1(this,l1);for(var o1=arguments.length,c1=new Array(o1),h1=0;h1s.length)&&(a=s.length);for(var o=0,_=new Array(a);o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(s){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(s)}function _defineProperty$3(s,a,o){return a in s?Object.defineProperty(s,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[a]=o,s}function _getRequireWildcardCache(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return _getRequireWildcardCache=function(){return s},s}function _interopRequireWildcard(s){if(s&&s.__esModule)return s;if(s===null||_typeof(s)!=="object"&&typeof s!="function")return{default:s};var a=_getRequireWildcardCache();if(a&&a.has(s))return a.get(s);var o={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in s)if(Object.prototype.hasOwnProperty.call(s,$)){var j=_?Object.getOwnPropertyDescriptor(s,$):null;j&&(j.get||j.set)?Object.defineProperty(o,$,j):o[$]=s[$]}return o.default=s,a&&a.set(s,o),o}var Preview=(0,_react.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(requirePreview())})}),IS_BROWSER=typeof window<"u"&&window.document,IS_GLOBAL=typeof commonjsGlobal<"u"&&commonjsGlobal.window&&commonjsGlobal.window.document,SUPPORTED_PROPS=Object.keys(_props.propTypes),UniversalSuspense=IS_BROWSER||IS_GLOBAL?_react.Suspense:function(){return null},customPlayers=[],createReactPlayer=function(a,o){var _,$;return $=_=function(j){_inherits$1(e1,j);var _e=_createSuper(e1);function e1(){var a1;_classCallCheck$5(this,e1);for(var t1=arguments.length,r1=new Array(t1),s1=0;s10&&arguments[0]!==void 0?arguments[0]:"player";return a1.player?a1.player.getInternalPlayer(i1):null}),_defineProperty$3(_assertThisInitialized$1(a1),"seekTo",function(i1,f1){if(!a1.player)return null;a1.player.seekTo(i1,f1)}),_defineProperty$3(_assertThisInitialized$1(a1),"handleReady",function(){a1.props.onReady(_assertThisInitialized$1(a1))}),_defineProperty$3(_assertThisInitialized$1(a1),"getActivePlayer",(0,_memoizeOne.default)(function(i1){for(var f1=0,g1=[].concat(customPlayers,_toConsumableArray(a));f1{this.instance(a,o).then(j=>{_(j.data)}).catch(j=>{$({error:"axios",data:j})})})}fetchSong(a){return typeof a!="object"&&(a=[a]),new Promise((o,_)=>{this.fetch(song_url+a.join(",")).then($=>{o($[0])}).catch($=>_($))})}fetchSongs(a){return typeof a!="object"&&(a=[a]),new Promise((o,_)=>{this.fetch(song_url+a.join(",")).then($=>{o($)}).catch($=>_($))})}mapToSong(a){return{id:a.song_id,album:a.album_name,albumArt:a.song_image,name:a.song_name,artist:a.song_artist,duration:a.song_duration,src:a.download_links&&(a.download_links[1]||a.download_links[0])}}getAlbum(a){return new Promise((o,_)=>{this.fetch(album_url+a).then($=>{o($)}).catch($=>_($))})}searchQuery(a){if(!(a.length<1))return new Promise((o,_)=>{this.fetch(search_url+a).then($=>o($)).catch($=>_($))})}getDefault(){return new Promise(a=>{this.fetchSong(this.defaultSongs[floor$1(random()*this.defaultSongs.length)]).then(o=>{a([this.mapToSong(o)])}).catch(o=>{console.log(o),a(this.dfdata)})})}formatTime(a){if(!a)return"0:00";var o=floor$1(a/60);return o+=":",a%=60,a<10&&(o+="0"),o+=a,o}formatPeriod(a){if(!a)return"";var o="",_=floor$1(a/3600);return _!=0&&(o+=_+" hr "),a=a%3600,o+=floor$1(a/60)+" min ",a%=60,o+=a+" sec",o}shuffle(a){for(var o=a.length,_,$;o!==0;)$=floor$1(random()*o),o-=1,_=a[o],a[o]=a[$],a[$]=_;return a}mixQueue(a){for(var o=[],_=0;_{const s=useSelector(x1=>x1.apps.spotify),[a,o]=react.exports.useState(0),[_,$]=react.exports.useState(!0),[j,_e]=react.exports.useState(0),[e1,a1]=react.exports.useState([]),[t1,r1]=react.exports.useState(1),[s1,i1]=react.exports.useState(0),[f1,g1]=react.exports.useState(0),[v1,y1]=react.exports.useState(50),[d1,u1]=react.exports.useState([{}]),[p1,z1]=react.exports.useState(0),[m1,C1]=react.exports.useState({}),[l1,n1]=react.exports.useState({}),o1=["Made For You","Recently Played","Favorite Songs","Albums","Artist"],c1=x1=>{var w1=x1.target.dataset.action,_1=x1.target.dataset.payload;if(w1=="discv")o(_1);else if(w1=="play")$(!1);else if(w1=="pause")$(!0);else if(w1=="shuffle"){var M1=d1.length;j?_e(0):(_e(1),a1(jiosaavn.mixQueue(M1)))}else if(w1=="repeat")r1((t1+1)%3);else if(w1=="volume")y1(x1.target.value);else if(w1=="mute")y1(v1!=0?0:100);else if(w1=="next"){$(!1),i1(0),g1(0);var H1=(p1+1)%d1.length;j&&(H1=e1[p1]),z1(H1)}else if(w1=="prev"){$(!1),i1(0),g1(0);var H1=(p1-1+d1.length)%d1.length;j&&(H1=e1[p1]),z1(H1)}else if(w1=="album"){if(_1.includes(","))var L1=JSON.parse(_1),R1=data$1.home[L1[0]].cards[L1[1]].data;else var R1=JSON.parse(_1);o(39),C1({type:w1,tdata:R1})}else if(w1=="song"){if(_1.includes(","))var L1=JSON.parse(_1),E1=data$1.home[L1[0]].cards[L1[1]].data;else var E1=JSON.parse(_1);E1!=d1[p1].id?jiosaavn.fetchSong(E1).then(Q1=>{u1([jiosaavn.mapToSong(Q1)]),$(!1),i1(0),g1(0),z1(0),a1([0])}).catch(Q1=>console.log(Q1)):$(!_)}else if(w1=="mix"){var L1=JSON.parse(_1),R1=data$1.home[L1[0]].cards[L1[1]],$1=[],U1=R1.name,G1={album_name:R1.name,album_image:R1.img,year:2021,album_artist:R1.desc};if(l1[U1]!=null)$1=l1[U1],C1({type:w1,tdata:{...G1,songs:$1}}),o(39);else{o(39);var W1=R1.data;jiosaavn.fetchSongs(W1).then(K1=>{$1=K1,l1[U1]=$1,n1(l1),C1({type:w1,tdata:{...G1,songs:$1}})})}}else if(w1=="playlist"){var R1=data$1.playlist[_1],$1=[],U1="play_"+R1.name,G1={album_name:R1.name,album_image:R1.img,year:2020+R1.name=="Community",album_artist:R1.desc};if(l1[U1]!=null)$1=l1[U1],C1({type:w1,tdata:{...G1,songs:$1}}),o(39);else{o(39);var W1=R1.data;jiosaavn.fetchSongs(W1).then(l2=>{$1=l2,l1[U1]=$1,n1(l1),C1({type:w1,tdata:{...G1,songs:$1}})})}}},h1=(x1,w1)=>{x1=="playall"?(u1(w1.map(_1=>jiosaavn.mapToSong(_1))),$(!1),i1(0),g1(0),z1(0),a1(jiosaavn.mixQueue(w1.length))):x1=="clickq"&&(i1(0),g1(0),$(!1),z1(w1))},S1=x1=>{i1(floor(x1.playedSeconds)),g1(x1.played)},k1=x1=>{var w1=document.getElementById("audiosrc"),_1=x1.target.value;w1.currentTime=_1,g1(_1/d1[p1].duration),i1(floor(_1))},b1=()=>{$(!0),t1==1&&c1({target:{dataset:{action:"next"}}})},V1=()=>$(!0),P1=()=>$(!1);return react.exports.useEffect(()=>{d1[p1].name==null&&jiosaavn.getDefault().then(x1=>u1(x1)).catch(x1=>console.log(x1))},[d1]),react.exports.useEffect(()=>{s.hide&&!_&&$(!0)}),jsxs("div",{className:"spotify floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx("div",{className:"navcover w-50 h-16 absolute"}),jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Spotify Music",invert:!0}),jsx("div",{className:"windowScreen flex flex-col",children:jsx(LazyComponent,{show:!s.hide,children:jsxs("div",{className:"restWindow flex-grow flex",children:[jsx("div",{className:"w-50 spnav",children:jsxs("div",{className:"mx-6",children:[jsx("div",{className:"mt-16"}),jsxs("div",{className:"snav my-4 handcr font-semibold","data-act":a==0,onClick:c1,"data-action":"discv","data-payload":"0",children:[jsx(Icon,{icon:"home",width:24}),jsx("div",{className:"ml-4 text-sm",children:"Home"})]}),jsxs("div",{className:"snav my-4 handcr font-semibold","data-act":a==1,onClick:c1,"data-action":"discv","data-payload":"1",children:[jsx(Icon,{fafa:"faCompactDisc",width:24}),jsx("div",{className:"ml-4 text-sm",children:"Browse"})]}),jsx("div",{className:"text-gray-500 text-xs font-semibold tracking-widest mt-10 mb-4",children:"YOUR LIBRARY"}),jsx("div",{className:"navcont overflow-y-scroll win11Scroll win11ScrollDark",children:jsxs("div",{className:"w-full h-max",children:[o1.map((x1,w1)=>jsx("div",{className:"snav mb-4 handcr text-sm font-semibold","data-act":a==w1+2,onClick:c1,"data-action":"discv","data-payload":w1+2,children:x1},w1)),jsx("div",{className:"text-gray-500 font-semibold text-xs tracking-widest mt-12 mb-4",children:"PLAYLISTS"}),data$1.playlist.map((x1,w1)=>jsx("div",{className:"snav mb-4 handcr text-sm font-semibold","data-act":a==w1+2+o1.length,onClick:c1,"data-action":"playlist","data-payload":w1,children:x1.name},w1))]})})]})}),jsx("div",{className:"spscreen win11Scroll win11ScrollDark",id:"sphome",children:jsx("div",{className:"h-max relative",children:jsxs("div",{className:"absolute w-full pb-8",children:[a==41?jsx(Queue,{queue:d1,curr:p1,paused:_,action:c1,action2:h1}):null,a==0?jsx(Home,{tab:a,action:c1,paused:_,sid:d1[p1]&&d1[p1].id}):null,a>1&&a<2+o1.length?jsx(Home,{tab:a,action:c1,paused:_,sid:d1[p1]&&d1[p1].id}):null,a==39||a>6&&a<10?jsx(Playlist,{action:c1,paused:_,action2:h1,sid:d1[p1]&&d1[p1].id,...m1}):null,jsx("div",{className:a==1?null:"hidden prtclk",children:jsx(Search,{action:c1,paused:_,action2:h1,sid:d1[p1]&&d1[p1].id})})]})})}),jsxs("div",{className:"splayer",children:[jsxs("div",{className:"snfo flex items-center",children:[d1[p1].albumArt?jsx(Image$1,{src:d1[p1].albumArt.to150(),w:56,ext:!0,lazy:!0}):jsx(Icon,{src:"./img/asset/album.png",ext:!0,width:56}),jsxs("div",{className:"sname ml-3",children:[jsx("div",{className:"text-sm mb-2 text-gray-100 font-semibold",dangerouslySetInnerHTML:{__html:d1[p1].name||"Album"}}),jsx("div",{className:"text-xs tracking-wider text-gray-400",dangerouslySetInnerHTML:{__html:d1[p1].artist||"Artist"}})]})]}),jsxs("div",{className:"songAct","data-prtclk":!d1[p1].name,children:[jsxs("div",{className:"flex items-center",children:[jsx(Icon,{className:"cticon sficon",icon:"shuffle",onClick:c1,click:"shuffle",payload:j!=0|0}),jsx(Icon,{className:"cticon",icon:"previous",onClick:c1,click:"prev"}),jsx("div",{className:"cborder handcr",children:_?jsx(Icon,{className:"play",icon:"play",onClick:c1,click:"play",width:18,height:28,invert:!0}):jsx(Icon,{className:"pause",icon:"pause",onClick:c1,click:"pause",width:18,height:28,invert:!0})}),jsx(Icon,{className:"cticon",icon:"next",onClick:c1,click:"next"}),jsx(Icon,{className:"cticon rpicon",icon:"repeat",onClick:c1,click:"repeat",payload:t1})]}),jsxs("div",{className:"w-full flex items-center mt-2 justify-center",children:[jsx("div",{className:"progTime",children:jiosaavn.formatTime(s1)}),jsxs("div",{className:"sdivider",children:[jsx(ReactPlayer,{className:"playbody",url:d1[p1].src,config:{file:{forceAudio:!0,attributes:{id:"audiosrc"}}},loop:t1==2,playing:!_,volume:v1/100,onPlay:P1,onProgress:S1,onEnded:b1,onPause:V1}),jsx("input",{className:"cleanInput",type:"range",min:0,max:d1[p1].duration,value:s1,onChange:k1}),jsx("div",{className:"songprog",style:{width:f1*100+"%"}})]}),jsx("div",{className:"progTime",children:jiosaavn.formatTime(d1[p1].duration)})]})]}),jsxs("div",{className:"sctrl flex items-center justify-between",children:[jsx("div",{className:"prtclk handcr mr-6",onClick:c1,"data-action":"discv","data-payload":"41",children:jsx(Icon,{className:"sficon",fafa:"faListUl",width:14,payload:a==41?1:0})}),jsxs("div",{className:"rctrl flex items-center",children:[jsx(Icon,{className:"sficon mr-2",width:16,fafa:["faVolumeMute","faVolumeDown","faVolumeUp"][ceil(v1/50)],onClick:c1,click:"mute"}),jsxs("div",{className:"relative flex items-center",children:[jsx("input",{className:"cleanInput volInp",type:"range",min:0,max:100,value:v1,onChange:c1,"data-action":"volume"}),jsx("div",{className:"songprog",style:{width:floor(.8*v1)}})]})]})]})]})]})})})]})},Search=({sid:s,action:a})=>{const[o,_]=react.exports.useState(""),[$,j]=react.exports.useState(!1),[_e,e1]=react.exports.useState([]),[a1,t1]=react.exports.useState([]),[r1,s1]=react.exports.useState(["Perfect","Agar tum sath ho","One Republic","Cheap thrills"]),i1=v1=>{j(!0),_(v1.target.value)},f1=()=>{$&&o.length>1&&(j(!1),jiosaavn.searchQuery(o).then(v1=>{e1(v1.songs.data),t1(v1.albums.data)}).catch(v1=>console.log(v1)))},g1=v1=>{var y1=v1.target.innerText,d1=v1.target.parentElement.parentElement.children[3],u1=round(d1.scrollLeft/224);if(y1=="<")d1.scrollLeft=max(0,224*(u1-4));else{var p1=getComputedStyle(d1).getPropertyValue("width").replace("px","");d1.scrollLeft=224*(u1+4)+(224-p1%224)}};return jsxs("div",{className:"mt-12",children:[jsx("div",{className:"absolute w-full flex top-0 -mt-8",children:jsxs("div",{className:"flex bg-gray-100 px-4 w-max rounded-full overflow-hidden",children:[jsx("input",{className:"w-64 ml-2 bg-transparent py-3 rounded-full text-base",value:o,type:"text",placeholder:"Artist, song or album",onChange:i1}),jsx(Icon,{className:"handcr",icon:"search",onClick:f1})]})}),jsxs("div",{className:"flex",children:[jsxs("div",{className:"flex flex-col text-gray-100 min-w-1/3 max-w-2/5",children:[jsx("span",{className:"text-xl font-black",children:_e.length?"Top result":"Recent searches"}),_e.length==0?jsx("div",{className:"mt-2",children:r1.map((v1,y1)=>jsx("div",{className:"acol p-2",children:v1},y1))}):null,_e.length?jsxs("div",{className:"topcard mt-4 p-5",onClick:a,"data-action":"song","data-payload":'"'+_e[0].id+'"',children:[jsx(Image$1,{src:_e[0].image.to150(),ext:!0,w:92,err:"/img/asset/mixdef.jpg",lazy:!0}),jsx("div",{className:"fplay",children:jsx("div",{className:"tria"})}),jsx("div",{className:"text-gray-100 mt-6 text-3xl thiker dotdot",dangerouslySetInnerHTML:{__html:_e[0].title}}),jsx("div",{className:"acol mt-1 text-sm font-semibold",dangerouslySetInnerHTML:{__html:_e[0].description}})]}):null]}),_e&&_e.length?jsxs("div",{className:"flex flex-col text-gray-100 ml-8 flex-grow",children:[jsxs("span",{className:"flex justify-between",children:[jsx("span",{className:"text-xl font-black",children:"Songs"}),jsx("span",{className:"acol font-semibold handcr",children:"see all"})]}),jsx("div",{className:"mt-4",children:[..._e].splice(1,4).map((v1,y1)=>jsxs("div",{className:"srCont flex p-2 items-center prtclk",onClick:a,"data-action":"song","data-payload":'"'+v1.id+'"',children:[jsx(Image$1,{src:v1.image.to150(),w:40,ext:!0,lazy:!0}),jsxs("div",{className:"acol ml-4 flex-grow",children:[jsx("div",{className:"capitalize text-gray-100 dotdot font-semibold"+(s==v1.id?" gcol":""),dangerouslySetInnerHTML:{__html:v1.title}}),jsx("div",{className:"capitalize dotdot text-sm mt-1 font-semibold",dangerouslySetInnerHTML:{__html:v1.description}})]}),jsx("div",{className:"acol text-sm font-semibold"})]},y1))})]}):null]}),a1.length?jsxs("div",{className:"sitem w-full my-12",children:[jsxs("div",{className:"scbCont",children:[jsx("div",{className:"mx-2",onClick:g1,children:"<"}),jsx("div",{className:"mx-2",onClick:g1,children:">"})]}),jsx("div",{className:"text-xl text-gray-100 font-bold",children:"Albums"}),jsx("div",{className:"w-full h-px mt-2"}),jsx("div",{className:"w-full overflow-x-scroll smoothsc noscroll -ml-3",children:jsx("div",{className:"w-max flex",children:a1.map((v1,y1)=>jsxs("div",{className:"scard pt-3 px-3 acol",children:[jsx(Image$1,{src:v1.image.to250(),ext:!0,w:200,err:"/img/asset/mixdef.jpg",onClick:a,click:"album",payload:v1.id,lazy:!0}),jsx("div",{className:"mt-4 mb-1 text-gray-100 text-sm font-semibold",dangerouslySetInnerHTML:{__html:v1.title}}),jsx("div",{className:"my-1 leading-5 text-xs font-semibold tracking-wider",dangerouslySetInnerHTML:{__html:v1.music||v1.description}})]},y1))})})]}):null]})},Playlist=({type:s,tdata:a,action:o,action2:_,sid:$,paused:j})=>{const[_e,e1]=react.exports.useState({fake:!0});react.exports.useState(!1);const[a1,t1]=react.exports.useState(!0),[r1,s1]=react.exports.useState(0);return react.exports.useEffect(()=>{var i1=document.getElementById("sphome");if(i1&&(i1.scrollTop=0),s=="album")t1(!1),jiosaavn.getAlbum(a.toString()).then(v1=>{e1(v1);for(var y1=0,d1=0;d1{console.log(v1)});else if(s=="mix"||s=="playlist"){t1(!0),e1(a);for(var f1=0,g1=0;g11?"s":null,","," ",jiosaavn.formatPeriod(r1)]})]}),jsx("div",{className:"playbtn",onClick:()=>_("playall",_e.songs),children:"PLAY"})]})]}),jsx("div",{className:"infph"}),jsxs("div",{className:"alsongs",children:[jsxs("div",{className:"srow",children:[jsx("div",{className:"font-bold text-right",children:"#"}),jsx("div",{className:"scol1 text-xs",children:"TITLE"}),jsx("div",{className:"text-xs",children:a1?"ALBUM":null}),jsx("div",{className:"text-xs",children:a1?"YEAR":null}),jsx("div",{className:"flex justify-end",children:jsx(Icon,{fafa:"faClock",width:16,reg:!0})})]}),jsx("div",{className:"hr"}),_e.songs&&_e.songs.map((i1,f1)=>jsxs("div",{className:"srow handcr prtclk","data-action":"song","data-payload":'"'+i1.song_id+'"',onClick:o,children:[$!=i1.song_id?jsx("div",{className:"sidx font-semibold",children:f1+1}):null,$==i1.song_id&&j?jsx("div",{className:"sidx font-semibold gcol",children:f1+1}):null,$==i1.song_id&&!j?jsx(Icon,{src:"./img/asset/equaliser.gif",ext:!0,width:14}):null,jsxs("div",{className:"scol1",children:[a1?jsx(Image$1,{src:i1.song_image.to150(),w:40,h:40,ext:!0,err:"/img/asset/mixdef.jpg",lazy:!0}):null,jsxs("div",{className:"scolsong flex flex-col","data-play":a1,children:[jsx("div",{className:"font-semibold capitalize text-gray-100"+($==i1.song_id?" gcol":""),dangerouslySetInnerHTML:{__html:i1.song_name}}),jsx("div",{className:"font-semibold capitalize text-xs mt-1",dangerouslySetInnerHTML:{__html:i1.song_artist}})]})]}),jsx("div",{className:"scol2 font-semibold",dangerouslySetInnerHTML:{__html:a1?i1.album_name:null}}),jsx("div",{className:"scol3 font-semibold",children:a1?i1.year:null}),jsx("div",{className:"font-semibold flex justify-end",children:jiosaavn.formatTime(i1.song_duration)})]},f1))]}),s!="play"?jsx("div",{className:"text-xss font-semibold acol mt-6",children:s=="album"&&_e.songs&&_e.songs[0]&&_e.songs[0].copyright}):null]})},Home=({tab:s,action:a,sid:o,paused:_})=>{const[$,j]=react.exports.useState(0),_e=a1=>{var t1=new Date,r1=t1.getHours();return r1=r1**(t1.getDay()+2),floor(r1*(a1+2)%360/1.6)},e1=a1=>{var t1=a1.target.innerText,r1=a1.target.parentElement.parentElement.children[4],s1=round(r1.scrollLeft/224);if(t1=="<")r1.scrollLeft=max(0,224*(s1-4));else{var i1=getComputedStyle(r1).getPropertyValue("width").replace("px","");r1.scrollLeft=224*(s1+4)+(224-i1%224)}};return react.exports.useEffect(()=>{var a1=document.getElementById("sphome");if(a1){var t1=(80+max(0,s-2)*360)*(s!=0);a1.scrollTop=t1}},[$]),react.exports.useEffect(()=>{j(s)}),jsxs("div",{className:"spHome mt-12",children:[jsxs("div",{className:"absolute right-0 -mt-8 text-xs font-medium acol",children:["Powered by"," ",jsx("a",{href:"https://github.com/sumitkolhe/jiosaavn-api",className:"text-gray-400 underline",target:"_blank",rel:"noreferrer",children:"sumitkolhe/jiosaavn-api"})]}),data$1.home.map((a1,t1)=>jsxs("div",{className:"sitem w-full mb-8",id:"tab"+(t1+2),children:[jsxs("div",{className:"scbCont","data-var":!a1.desc,children:[jsx("div",{className:"mx-2",onClick:e1,children:"<"}),jsx("div",{className:"mx-2",onClick:e1,children:">"})]}),jsx("div",{className:"text-gray-100 font-bold",children:a1.name}),jsx("div",{className:"text-xs font-semibold tracking-wider",children:a1.desc}),jsx("div",{className:"w-full h-px mt-2"}),jsx("div",{className:"w-full pt-1 overflow-x-scroll smoothsc noscroll -ml-3",children:jsx("div",{className:"w-max flex",children:a1.cards.map((r1,s1)=>jsxs("div",{className:"scard pt-3 px-3"+(r1.type=="artist"?" text-center":""),style:{"--rot1":_e(s1)+"deg"},children:[jsx(Image$1,{lazy:!0,className:(r1.type=="mix"?"coverImg":" ")+(r1.type=="artist"?"artImg":" "),src:r1.img,ext:!0,w:200,err:"/img/asset/mixdef.jpg",onClick:a,click:r1.type,payload:"["+t1+","+s1+"]"}),jsx("div",{className:"sover p-4 nopt",children:r1.type=="mix"?r1.name:null}),r1.type=="song"&&o!=r1.data?jsx("div",{className:"fplay",children:jsx("div",{className:"tria"})}):null,r1.type=="song"&&o==r1.data?jsx("div",{className:"fpause",children:jsx("div",{className:_?"tria":"fbars"})}):null,jsx("div",{className:"mt-4 mb-1 text-gray-100 text-sm font-semibold",children:r1.name}),jsx("div",{className:"my-1 leading-5 text-xs font-semibold tracking-wider",children:r1.desc})]},s1))})})]},t1))]})},Queue=({queue:s,curr:a,action2:o,paused:_})=>jsxs("div",{className:"mt-12",children:[jsx("div",{className:"text-5xl text-gray-100 font-bold",children:"Play Queue"}),jsx("div",{className:"text-gray-400 font-semibold my-4",children:"Now playing"}),jsxs("div",{className:"songCont prtclk acol py-2 pr-12",children:[jsx("div",{className:"w-10 text-center gcol",children:_?"1":jsx(Icon,{src:"./img/asset/equaliser.gif",ext:!0,width:16})}),jsx(Image$1,{src:s[a].albumArt.to150(),w:40,ext:!0,lazy:!0}),jsxs("div",{className:"flex flex-col",children:[jsx("div",{className:"capitalize dotdot font-semibold gcol",dangerouslySetInnerHTML:{__html:s[a].name}}),jsx("div",{className:"capitalize dotdot font-semibold text-sm mt-1",dangerouslySetInnerHTML:{__html:s[a].artist}})]}),jsx("div",{className:"text-sm dotdot font-semibold",dangerouslySetInnerHTML:{__html:s[a].album}}),jsx("div",{className:"text-sm font-semibold",children:jiosaavn.formatTime(s[a].duration)})]}),jsx("div",{className:"text-gray-400 font-semibold mt-12 mb-6",children:"Next up"}),jiosaavn.sliceArr(s,a).map(($,j)=>jsxs("div",{className:"songCont handcr prtclk acol pr-12 py-2",onClick:()=>o("clickq",(a+j+1)%s.length),children:[jsx("div",{className:"w-10 text-center font-semibold",children:j+2}),jsx(Image$1,{src:$.albumArt.to150(),w:40,ext:!0,lazy:!0}),jsxs("div",{className:"flex flex-col",children:[jsx("div",{className:"capitalize dotdot font-semibold text-gray-100",dangerouslySetInnerHTML:{__html:$.name}}),jsx("div",{className:"capitalize dotdot font-semibold text-sm mt-1",dangerouslySetInnerHTML:{__html:$.artist}})]}),jsx("div",{className:"text-sm dotdot font-semibold",dangerouslySetInnerHTML:{__html:$.album}}),jsx("div",{className:"text-sm font-semibold",children:jiosaavn.formatTime($.duration)})]},j))]}),store="",storedata=[{name:"Minecraft",icon:"https://raw.githubusercontent.com/andrewstech/windows11-1/master/public/img/icon/minecraft.png",type:"game",data:{type:"IFrame",url:"https://classic.minecraft.net",gallery:["https://www.minecraft.net/content/dam/games/minecraft/key-art/CavesandCliffsPt1-dotNET-HomepagePromo-600x360.png","https://variety.com/wp-content/uploads/2019/02/minecraft-best-year-yet.png?w=600","https://www.minecraft.net/content/dam/games/minecraft/screenshots/RayTracing-MineCraft-PMP-Always-Something-New.jpg"],desc:`Minecraft is a sandbox construction video game developed by Mojang Studios where players interact with a fully modifiable three-dimensional environment made of blocks and entities. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$1(s,a){if(!!s){if(typeof s=="string")return _arrayLikeToArray$1(s,a);var o=Object.prototype.toString.call(s).slice(8,-1);if(o==="Object"&&s.constructor&&(o=s.constructor.name),o==="Map"||o==="Set")return Array.from(s);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return _arrayLikeToArray$1(s,a)}}function _iterableToArray(s){if(typeof Symbol<"u"&&Symbol.iterator in Object(s))return Array.from(s)}function _arrayWithoutHoles(s){if(Array.isArray(s))return _arrayLikeToArray$1(s)}function _arrayLikeToArray$1(s,a){(a==null||a>s.length)&&(a=s.length);for(var o=0,_=new Array(a);o"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(s){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)},_getPrototypeOf(s)}function _defineProperty$3(s,a,o){return a in s?Object.defineProperty(s,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):s[a]=o,s}function _getRequireWildcardCache(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return _getRequireWildcardCache=function(){return s},s}function _interopRequireWildcard(s){if(s&&s.__esModule)return s;if(s===null||_typeof(s)!=="object"&&typeof s!="function")return{default:s};var a=_getRequireWildcardCache();if(a&&a.has(s))return a.get(s);var o={},_=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in s)if(Object.prototype.hasOwnProperty.call(s,$)){var j=_?Object.getOwnPropertyDescriptor(s,$):null;j&&(j.get||j.set)?Object.defineProperty(o,$,j):o[$]=s[$]}return o.default=s,a&&a.set(s,o),o}var Preview=(0,_react.lazy)(function(){return Promise.resolve().then(function(){return _interopRequireWildcard(requirePreview())})}),IS_BROWSER=typeof window<"u"&&window.document,IS_GLOBAL=typeof commonjsGlobal<"u"&&commonjsGlobal.window&&commonjsGlobal.window.document,SUPPORTED_PROPS=Object.keys(_props.propTypes),UniversalSuspense=IS_BROWSER||IS_GLOBAL?_react.Suspense:function(){return null},customPlayers=[],createReactPlayer=function(a,o){var _,$;return $=_=function(j){_inherits$1(e1,j);var _e=_createSuper(e1);function e1(){var a1;_classCallCheck$5(this,e1);for(var t1=arguments.length,r1=new Array(t1),s1=0;s10&&arguments[0]!==void 0?arguments[0]:"player";return a1.player?a1.player.getInternalPlayer(i1):null}),_defineProperty$3(_assertThisInitialized$1(a1),"seekTo",function(i1,f1){if(!a1.player)return null;a1.player.seekTo(i1,f1)}),_defineProperty$3(_assertThisInitialized$1(a1),"handleReady",function(){a1.props.onReady(_assertThisInitialized$1(a1))}),_defineProperty$3(_assertThisInitialized$1(a1),"getActivePlayer",(0,_memoizeOne.default)(function(i1){for(var f1=0,g1=[].concat(customPlayers,_toConsumableArray(a));f1{this.instance(a,o).then(j=>{_(j.data)}).catch(j=>{$({error:"axios",data:j})})})}fetchSong(a){return typeof a!="object"&&(a=[a]),new Promise((o,_)=>{this.fetch(song_url+a.join(",")).then($=>{o($[0])}).catch($=>_($))})}fetchSongs(a){return typeof a!="object"&&(a=[a]),new Promise((o,_)=>{this.fetch(song_url+a.join(",")).then($=>{o($)}).catch($=>_($))})}mapToSong(a){return{id:a.song_id,album:a.album_name,albumArt:a.song_image,name:a.song_name,artist:a.song_artist,duration:a.song_duration,src:a.download_links&&(a.download_links[1]||a.download_links[0])}}getAlbum(a){return new Promise((o,_)=>{this.fetch(album_url+a).then($=>{o($)}).catch($=>_($))})}searchQuery(a){if(!(a.length<1))return new Promise((o,_)=>{this.fetch(search_url+a).then($=>o($)).catch($=>_($))})}getDefault(){return new Promise(a=>{this.fetchSong(this.defaultSongs[floor$1(random()*this.defaultSongs.length)]).then(o=>{a([this.mapToSong(o)])}).catch(o=>{console.log(o),a(this.dfdata)})})}formatTime(a){if(!a)return"0:00";var o=floor$1(a/60);return o+=":",a%=60,a<10&&(o+="0"),o+=a,o}formatPeriod(a){if(!a)return"";var o="",_=floor$1(a/3600);return _!=0&&(o+=_+" hr "),a=a%3600,o+=floor$1(a/60)+" min ",a%=60,o+=a+" sec",o}shuffle(a){for(var o=a.length,_,$;o!==0;)$=floor$1(random()*o),o-=1,_=a[o],a[o]=a[$],a[$]=_;return a}mixQueue(a){for(var o=[],_=0;_{const s=useSelector(x1=>x1.apps.spotify),[a,o]=react.exports.useState(0),[_,$]=react.exports.useState(!0),[j,_e]=react.exports.useState(0),[e1,a1]=react.exports.useState([]),[t1,r1]=react.exports.useState(1),[s1,i1]=react.exports.useState(0),[f1,g1]=react.exports.useState(0),[v1,y1]=react.exports.useState(50),[d1,u1]=react.exports.useState([{}]),[p1,z1]=react.exports.useState(0),[m1,C1]=react.exports.useState({}),[l1,n1]=react.exports.useState({}),o1=["Made For You","Recently Played","Favorite Songs","Albums","Artist"],c1=x1=>{var w1=x1.target.dataset.action,_1=x1.target.dataset.payload;if(w1=="discv")o(_1);else if(w1=="play")$(!1);else if(w1=="pause")$(!0);else if(w1=="shuffle"){var M1=d1.length;j?_e(0):(_e(1),a1(jiosaavn.mixQueue(M1)))}else if(w1=="repeat")r1((t1+1)%3);else if(w1=="volume")y1(x1.target.value);else if(w1=="mute")y1(v1!=0?0:100);else if(w1=="next"){$(!1),i1(0),g1(0);var H1=(p1+1)%d1.length;j&&(H1=e1[p1]),z1(H1)}else if(w1=="prev"){$(!1),i1(0),g1(0);var H1=(p1-1+d1.length)%d1.length;j&&(H1=e1[p1]),z1(H1)}else if(w1=="album"){if(_1.includes(","))var L1=JSON.parse(_1),R1=data$1.home[L1[0]].cards[L1[1]].data;else var R1=JSON.parse(_1);o(39),C1({type:w1,tdata:R1})}else if(w1=="song"){if(_1.includes(","))var L1=JSON.parse(_1),E1=data$1.home[L1[0]].cards[L1[1]].data;else var E1=JSON.parse(_1);E1!=d1[p1].id?jiosaavn.fetchSong(E1).then(Q1=>{u1([jiosaavn.mapToSong(Q1)]),$(!1),i1(0),g1(0),z1(0),a1([0])}).catch(Q1=>console.log(Q1)):$(!_)}else if(w1=="mix"){var L1=JSON.parse(_1),R1=data$1.home[L1[0]].cards[L1[1]],$1=[],U1=R1.name,G1={album_name:R1.name,album_image:R1.img,year:2021,album_artist:R1.desc};if(l1[U1]!=null)$1=l1[U1],C1({type:w1,tdata:{...G1,songs:$1}}),o(39);else{o(39);var W1=R1.data;jiosaavn.fetchSongs(W1).then(K1=>{$1=K1,l1[U1]=$1,n1(l1),C1({type:w1,tdata:{...G1,songs:$1}})})}}else if(w1=="playlist"){var R1=data$1.playlist[_1],$1=[],U1="play_"+R1.name,G1={album_name:R1.name,album_image:R1.img,year:2020+R1.name=="Community",album_artist:R1.desc};if(l1[U1]!=null)$1=l1[U1],C1({type:w1,tdata:{...G1,songs:$1}}),o(39);else{o(39);var W1=R1.data;jiosaavn.fetchSongs(W1).then(l2=>{$1=l2,l1[U1]=$1,n1(l1),C1({type:w1,tdata:{...G1,songs:$1}})})}}},h1=(x1,w1)=>{x1=="playall"?(u1(w1.map(_1=>jiosaavn.mapToSong(_1))),$(!1),i1(0),g1(0),z1(0),a1(jiosaavn.mixQueue(w1.length))):x1=="clickq"&&(i1(0),g1(0),$(!1),z1(w1))},S1=x1=>{i1(floor(x1.playedSeconds)),g1(x1.played)},k1=x1=>{var w1=document.getElementById("audiosrc"),_1=x1.target.value;w1.currentTime=_1,g1(_1/d1[p1].duration),i1(floor(_1))},b1=()=>{$(!0),t1==1&&c1({target:{dataset:{action:"next"}}})},V1=()=>$(!0),P1=()=>$(!1);return react.exports.useEffect(()=>{d1[p1].name==null&&jiosaavn.getDefault().then(x1=>u1(x1)).catch(x1=>console.log(x1))},[d1]),react.exports.useEffect(()=>{s.hide&&!_&&$(!0)}),jsxs("div",{className:"spotify floatTab dpShad","data-size":s.size,"data-max":s.max,style:{...s.size=="cstm"?s.dim:null,zIndex:s.z},"data-hide":s.hide,id:s.icon+"App",children:[jsx("div",{className:"navcover w-50 h-16 absolute"}),jsx(ToolBar,{app:s.action,icon:s.icon,size:s.size,name:"Spotify Music",invert:!0}),jsx("div",{className:"windowScreen flex flex-col",children:jsx(LazyComponent,{show:!s.hide,children:jsxs("div",{className:"restWindow flex-grow flex",children:[jsx("div",{className:"w-50 spnav",children:jsxs("div",{className:"mx-6",children:[jsx("div",{className:"mt-16"}),jsxs("div",{className:"snav my-4 handcr font-semibold","data-act":a==0,onClick:c1,"data-action":"discv","data-payload":"0",children:[jsx(Icon,{icon:"home",width:24}),jsx("div",{className:"ml-4 text-sm",children:"Home"})]}),jsxs("div",{className:"snav my-4 handcr font-semibold","data-act":a==1,onClick:c1,"data-action":"discv","data-payload":"1",children:[jsx(Icon,{fafa:"faCompactDisc",width:24}),jsx("div",{className:"ml-4 text-sm",children:"Browse"})]}),jsx("div",{className:"text-gray-500 text-xs font-semibold tracking-widest mt-10 mb-4",children:"YOUR LIBRARY"}),jsx("div",{className:"navcont overflow-y-scroll win11Scroll win11ScrollDark",children:jsxs("div",{className:"w-full h-max",children:[o1.map((x1,w1)=>jsx("div",{className:"snav mb-4 handcr text-sm font-semibold","data-act":a==w1+2,onClick:c1,"data-action":"discv","data-payload":w1+2,children:x1},w1)),jsx("div",{className:"text-gray-500 font-semibold text-xs tracking-widest mt-12 mb-4",children:"PLAYLISTS"}),data$1.playlist.map((x1,w1)=>jsx("div",{className:"snav mb-4 handcr text-sm font-semibold","data-act":a==w1+2+o1.length,onClick:c1,"data-action":"playlist","data-payload":w1,children:x1.name},w1))]})})]})}),jsx("div",{className:"spscreen win11Scroll win11ScrollDark",id:"sphome",children:jsx("div",{className:"h-max relative",children:jsxs("div",{className:"absolute w-full pb-8",children:[a==41?jsx(Queue,{queue:d1,curr:p1,paused:_,action:c1,action2:h1}):null,a==0?jsx(Home,{tab:a,action:c1,paused:_,sid:d1[p1]&&d1[p1].id}):null,a>1&&a<2+o1.length?jsx(Home,{tab:a,action:c1,paused:_,sid:d1[p1]&&d1[p1].id}):null,a==39||a>6&&a<10?jsx(Playlist,{action:c1,paused:_,action2:h1,sid:d1[p1]&&d1[p1].id,...m1}):null,jsx("div",{className:a==1?null:"hidden prtclk",children:jsx(Search,{action:c1,paused:_,action2:h1,sid:d1[p1]&&d1[p1].id})})]})})}),jsxs("div",{className:"splayer",children:[jsxs("div",{className:"snfo flex items-center",children:[d1[p1].albumArt?jsx(Image$1,{src:d1[p1].albumArt.to150(),w:56,ext:!0,lazy:!0}):jsx(Icon,{src:"./img/asset/album.png",ext:!0,width:56}),jsxs("div",{className:"sname ml-3",children:[jsx("div",{className:"text-sm mb-2 text-gray-100 font-semibold",dangerouslySetInnerHTML:{__html:d1[p1].name||"Album"}}),jsx("div",{className:"text-xs tracking-wider text-gray-400",dangerouslySetInnerHTML:{__html:d1[p1].artist||"Artist"}})]})]}),jsxs("div",{className:"songAct","data-prtclk":!d1[p1].name,children:[jsxs("div",{className:"flex items-center",children:[jsx(Icon,{className:"cticon sficon",icon:"shuffle",onClick:c1,click:"shuffle",payload:j!=0|0}),jsx(Icon,{className:"cticon",icon:"previous",onClick:c1,click:"prev"}),jsx("div",{className:"cborder handcr",children:_?jsx(Icon,{className:"play",icon:"play",onClick:c1,click:"play",width:18,height:28,invert:!0}):jsx(Icon,{className:"pause",icon:"pause",onClick:c1,click:"pause",width:18,height:28,invert:!0})}),jsx(Icon,{className:"cticon",icon:"next",onClick:c1,click:"next"}),jsx(Icon,{className:"cticon rpicon",icon:"repeat",onClick:c1,click:"repeat",payload:t1})]}),jsxs("div",{className:"w-full flex items-center mt-2 justify-center",children:[jsx("div",{className:"progTime",children:jiosaavn.formatTime(s1)}),jsxs("div",{className:"sdivider",children:[jsx(ReactPlayer,{className:"playbody",url:d1[p1].src,config:{file:{forceAudio:!0,attributes:{id:"audiosrc"}}},loop:t1==2,playing:!_,volume:v1/100,onPlay:P1,onProgress:S1,onEnded:b1,onPause:V1}),jsx("input",{className:"cleanInput",type:"range",min:0,max:d1[p1].duration,value:s1,onChange:k1}),jsx("div",{className:"songprog",style:{width:f1*100+"%"}})]}),jsx("div",{className:"progTime",children:jiosaavn.formatTime(d1[p1].duration)})]})]}),jsxs("div",{className:"sctrl flex items-center justify-between",children:[jsx("div",{className:"prtclk handcr mr-6",onClick:c1,"data-action":"discv","data-payload":"41",children:jsx(Icon,{className:"sficon",fafa:"faListUl",width:14,payload:a==41?1:0})}),jsxs("div",{className:"rctrl flex items-center",children:[jsx(Icon,{className:"sficon mr-2",width:16,fafa:["faVolumeMute","faVolumeDown","faVolumeUp"][ceil(v1/50)],onClick:c1,click:"mute"}),jsxs("div",{className:"relative flex items-center",children:[jsx("input",{className:"cleanInput volInp",type:"range",min:0,max:100,value:v1,onChange:c1,"data-action":"volume"}),jsx("div",{className:"songprog",style:{width:floor(.8*v1)}})]})]})]})]})]})})})]})},Search=({sid:s,action:a})=>{const[o,_]=react.exports.useState(""),[$,j]=react.exports.useState(!1),[_e,e1]=react.exports.useState([]),[a1,t1]=react.exports.useState([]),[r1,s1]=react.exports.useState(["Perfect","Agar tum sath ho","One Republic","Cheap thrills"]),i1=v1=>{j(!0),_(v1.target.value)},f1=()=>{$&&o.length>1&&(j(!1),jiosaavn.searchQuery(o).then(v1=>{e1(v1.songs.data),t1(v1.albums.data)}).catch(v1=>console.log(v1)))},g1=v1=>{var y1=v1.target.innerText,d1=v1.target.parentElement.parentElement.children[3],u1=round(d1.scrollLeft/224);if(y1=="<")d1.scrollLeft=max(0,224*(u1-4));else{var p1=getComputedStyle(d1).getPropertyValue("width").replace("px","");d1.scrollLeft=224*(u1+4)+(224-p1%224)}};return jsxs("div",{className:"mt-12",children:[jsx("div",{className:"absolute w-full flex top-0 -mt-8",children:jsxs("div",{className:"flex bg-gray-100 px-4 w-max rounded-full overflow-hidden",children:[jsx("input",{className:"w-64 ml-2 bg-transparent py-3 rounded-full text-base",value:o,type:"text",placeholder:"Artist, song or album",onChange:i1}),jsx(Icon,{className:"handcr",icon:"search",onClick:f1})]})}),jsxs("div",{className:"flex",children:[jsxs("div",{className:"flex flex-col text-gray-100 min-w-1/3 max-w-2/5",children:[jsx("span",{className:"text-xl font-black",children:_e.length?"Top result":"Recent searches"}),_e.length==0?jsx("div",{className:"mt-2",children:r1.map((v1,y1)=>jsx("div",{className:"acol p-2",children:v1},y1))}):null,_e.length?jsxs("div",{className:"topcard mt-4 p-5",onClick:a,"data-action":"song","data-payload":'"'+_e[0].id+'"',children:[jsx(Image$1,{src:_e[0].image.to150(),ext:!0,w:92,err:"/img/asset/mixdef.jpg",lazy:!0}),jsx("div",{className:"fplay",children:jsx("div",{className:"tria"})}),jsx("div",{className:"text-gray-100 mt-6 text-3xl thiker dotdot",dangerouslySetInnerHTML:{__html:_e[0].title}}),jsx("div",{className:"acol mt-1 text-sm font-semibold",dangerouslySetInnerHTML:{__html:_e[0].description}})]}):null]}),_e&&_e.length?jsxs("div",{className:"flex flex-col text-gray-100 ml-8 flex-grow",children:[jsxs("span",{className:"flex justify-between",children:[jsx("span",{className:"text-xl font-black",children:"Songs"}),jsx("span",{className:"acol font-semibold handcr",children:"see all"})]}),jsx("div",{className:"mt-4",children:[..._e].splice(1,4).map((v1,y1)=>jsxs("div",{className:"srCont flex p-2 items-center prtclk",onClick:a,"data-action":"song","data-payload":'"'+v1.id+'"',children:[jsx(Image$1,{src:v1.image.to150(),w:40,ext:!0,lazy:!0}),jsxs("div",{className:"acol ml-4 flex-grow",children:[jsx("div",{className:"capitalize text-gray-100 dotdot font-semibold"+(s==v1.id?" gcol":""),dangerouslySetInnerHTML:{__html:v1.title}}),jsx("div",{className:"capitalize dotdot text-sm mt-1 font-semibold",dangerouslySetInnerHTML:{__html:v1.description}})]}),jsx("div",{className:"acol text-sm font-semibold"})]},y1))})]}):null]}),a1.length?jsxs("div",{className:"sitem w-full my-12",children:[jsxs("div",{className:"scbCont",children:[jsx("div",{className:"mx-2",onClick:g1,children:"<"}),jsx("div",{className:"mx-2",onClick:g1,children:">"})]}),jsx("div",{className:"text-xl text-gray-100 font-bold",children:"Albums"}),jsx("div",{className:"w-full h-px mt-2"}),jsx("div",{className:"w-full overflow-x-scroll smoothsc noscroll -ml-3",children:jsx("div",{className:"w-max flex",children:a1.map((v1,y1)=>jsxs("div",{className:"scard pt-3 px-3 acol",children:[jsx(Image$1,{src:v1.image.to250(),ext:!0,w:200,err:"/img/asset/mixdef.jpg",onClick:a,click:"album",payload:v1.id,lazy:!0}),jsx("div",{className:"mt-4 mb-1 text-gray-100 text-sm font-semibold",dangerouslySetInnerHTML:{__html:v1.title}}),jsx("div",{className:"my-1 leading-5 text-xs font-semibold tracking-wider",dangerouslySetInnerHTML:{__html:v1.music||v1.description}})]},y1))})})]}):null]})},Playlist=({type:s,tdata:a,action:o,action2:_,sid:$,paused:j})=>{const[_e,e1]=react.exports.useState({fake:!0});react.exports.useState(!1);const[a1,t1]=react.exports.useState(!0),[r1,s1]=react.exports.useState(0);return react.exports.useEffect(()=>{var i1=document.getElementById("sphome");if(i1&&(i1.scrollTop=0),s=="album")t1(!1),jiosaavn.getAlbum(a.toString()).then(v1=>{e1(v1);for(var y1=0,d1=0;d1{console.log(v1)});else if(s=="mix"||s=="playlist"){t1(!0),e1(a);for(var f1=0,g1=0;g11?"s":null,","," ",jiosaavn.formatPeriod(r1)]})]}),jsx("div",{className:"playbtn",onClick:()=>_("playall",_e.songs),children:"PLAY"})]})]}),jsx("div",{className:"infph"}),jsxs("div",{className:"alsongs",children:[jsxs("div",{className:"srow",children:[jsx("div",{className:"font-bold text-right",children:"#"}),jsx("div",{className:"scol1 text-xs",children:"TITLE"}),jsx("div",{className:"text-xs",children:a1?"ALBUM":null}),jsx("div",{className:"text-xs",children:a1?"YEAR":null}),jsx("div",{className:"flex justify-end",children:jsx(Icon,{fafa:"faClock",width:16,reg:!0})})]}),jsx("div",{className:"hr"}),_e.songs&&_e.songs.map((i1,f1)=>jsxs("div",{className:"srow handcr prtclk","data-action":"song","data-payload":'"'+i1.song_id+'"',onClick:o,children:[$!=i1.song_id?jsx("div",{className:"sidx font-semibold",children:f1+1}):null,$==i1.song_id&&j?jsx("div",{className:"sidx font-semibold gcol",children:f1+1}):null,$==i1.song_id&&!j?jsx(Icon,{src:"./img/asset/equaliser.gif",ext:!0,width:14}):null,jsxs("div",{className:"scol1",children:[a1?jsx(Image$1,{src:i1.song_image.to150(),w:40,h:40,ext:!0,err:"/img/asset/mixdef.jpg",lazy:!0}):null,jsxs("div",{className:"scolsong flex flex-col","data-play":a1,children:[jsx("div",{className:"font-semibold capitalize text-gray-100"+($==i1.song_id?" gcol":""),dangerouslySetInnerHTML:{__html:i1.song_name}}),jsx("div",{className:"font-semibold capitalize text-xs mt-1",dangerouslySetInnerHTML:{__html:i1.song_artist}})]})]}),jsx("div",{className:"scol2 font-semibold",dangerouslySetInnerHTML:{__html:a1?i1.album_name:null}}),jsx("div",{className:"scol3 font-semibold",children:a1?i1.year:null}),jsx("div",{className:"font-semibold flex justify-end",children:jiosaavn.formatTime(i1.song_duration)})]},f1))]}),s!="play"?jsx("div",{className:"text-xss font-semibold acol mt-6",children:s=="album"&&_e.songs&&_e.songs[0]&&_e.songs[0].copyright}):null]})},Home=({tab:s,action:a,sid:o,paused:_})=>{const[$,j]=react.exports.useState(0),_e=a1=>{var t1=new Date,r1=t1.getHours();return r1=r1**(t1.getDay()+2),floor(r1*(a1+2)%360/1.6)},e1=a1=>{var t1=a1.target.innerText,r1=a1.target.parentElement.parentElement.children[4],s1=round(r1.scrollLeft/224);if(t1=="<")r1.scrollLeft=max(0,224*(s1-4));else{var i1=getComputedStyle(r1).getPropertyValue("width").replace("px","");r1.scrollLeft=224*(s1+4)+(224-i1%224)}};return react.exports.useEffect(()=>{var a1=document.getElementById("sphome");if(a1){var t1=(80+max(0,s-2)*360)*(s!=0);a1.scrollTop=t1}},[$]),react.exports.useEffect(()=>{j(s)}),jsxs("div",{className:"spHome mt-12",children:[jsxs("div",{className:"absolute right-0 -mt-8 text-xs font-medium acol",children:["Powered by"," ",jsx("a",{href:"https://github.com/sumitkolhe/jiosaavn-api",className:"text-gray-400 underline",target:"_blank",rel:"noreferrer",children:"sumitkolhe/jiosaavn-api"})]}),data$1.home.map((a1,t1)=>jsxs("div",{className:"sitem w-full mb-8",id:"tab"+(t1+2),children:[jsxs("div",{className:"scbCont","data-var":!a1.desc,children:[jsx("div",{className:"mx-2",onClick:e1,children:"<"}),jsx("div",{className:"mx-2",onClick:e1,children:">"})]}),jsx("div",{className:"text-gray-100 font-bold",children:a1.name}),jsx("div",{className:"text-xs font-semibold tracking-wider",children:a1.desc}),jsx("div",{className:"w-full h-px mt-2"}),jsx("div",{className:"w-full pt-1 overflow-x-scroll smoothsc noscroll -ml-3",children:jsx("div",{className:"w-max flex",children:a1.cards.map((r1,s1)=>jsxs("div",{className:"scard pt-3 px-3"+(r1.type=="artist"?" text-center":""),style:{"--rot1":_e(s1)+"deg"},children:[jsx(Image$1,{lazy:!0,className:(r1.type=="mix"?"coverImg":" ")+(r1.type=="artist"?"artImg":" "),src:r1.img,ext:!0,w:200,err:"/img/asset/mixdef.jpg",onClick:a,click:r1.type,payload:"["+t1+","+s1+"]"}),jsx("div",{className:"sover p-4 nopt",children:r1.type=="mix"?r1.name:null}),r1.type=="song"&&o!=r1.data?jsx("div",{className:"fplay",children:jsx("div",{className:"tria"})}):null,r1.type=="song"&&o==r1.data?jsx("div",{className:"fpause",children:jsx("div",{className:_?"tria":"fbars"})}):null,jsx("div",{className:"mt-4 mb-1 text-gray-100 text-sm font-semibold",children:r1.name}),jsx("div",{className:"my-1 leading-5 text-xs font-semibold tracking-wider",children:r1.desc})]},s1))})})]},t1))]})},Queue=({queue:s,curr:a,action2:o,paused:_})=>jsxs("div",{className:"mt-12",children:[jsx("div",{className:"text-5xl text-gray-100 font-bold",children:"Play Queue"}),jsx("div",{className:"text-gray-400 font-semibold my-4",children:"Now playing"}),jsxs("div",{className:"songCont prtclk acol py-2 pr-12",children:[jsx("div",{className:"w-10 text-center gcol",children:_?"1":jsx(Icon,{src:"./img/asset/equaliser.gif",ext:!0,width:16})}),jsx(Image$1,{src:s[a].albumArt.to150(),w:40,ext:!0,lazy:!0}),jsxs("div",{className:"flex flex-col",children:[jsx("div",{className:"capitalize dotdot font-semibold gcol",dangerouslySetInnerHTML:{__html:s[a].name}}),jsx("div",{className:"capitalize dotdot font-semibold text-sm mt-1",dangerouslySetInnerHTML:{__html:s[a].artist}})]}),jsx("div",{className:"text-sm dotdot font-semibold",dangerouslySetInnerHTML:{__html:s[a].album}}),jsx("div",{className:"text-sm font-semibold",children:jiosaavn.formatTime(s[a].duration)})]}),jsx("div",{className:"text-gray-400 font-semibold mt-12 mb-6",children:"Next up"}),jiosaavn.sliceArr(s,a).map(($,j)=>jsxs("div",{className:"songCont handcr prtclk acol pr-12 py-2",onClick:()=>o("clickq",(a+j+1)%s.length),children:[jsx("div",{className:"w-10 text-center font-semibold",children:j+2}),jsx(Image$1,{src:$.albumArt.to150(),w:40,ext:!0,lazy:!0}),jsxs("div",{className:"flex flex-col",children:[jsx("div",{className:"capitalize dotdot font-semibold text-gray-100",dangerouslySetInnerHTML:{__html:$.name}}),jsx("div",{className:"capitalize dotdot font-semibold text-sm mt-1",dangerouslySetInnerHTML:{__html:$.artist}})]}),jsx("div",{className:"text-sm dotdot font-semibold",dangerouslySetInnerHTML:{__html:$.album}}),jsx("div",{className:"text-sm font-semibold",children:jiosaavn.formatTime($.duration)})]},j))]}),store="",storedata=[{name:"Minecraft",icon:"https://raw.githubusercontent.com/andrewstech/windows11-1/master/public/img/icon/minecraft.png",type:"game",data:{type:"IFrame",url:"https://classic.minecraft.net",gallery:["https://www.minecraft.net/content/dam/games/minecraft/key-art/CavesandCliffsPt1-dotNET-HomepagePromo-600x360.png","https://variety.com/wp-content/uploads/2019/02/minecraft-best-year-yet.png?w=600","https://www.minecraft.net/content/dam/games/minecraft/screenshots/RayTracing-MineCraft-PMP-Always-Something-New.jpg"],desc:`Minecraft is a sandbox construction video game developed by Mojang Studios where players interact with a fully modifiable three-dimensional environment made of blocks and entities. Its diverse gameplay lets players choose the way they play, allowing for countless possibilities. There are three actively maintained editions of Minecraft: Java Edition, Bedrock Edition, and Education Edition.`,feat:`1.1 Combat changes. 1.2 Fletching table functionality. 1.3 Voted updates. diff --git a/win11/locales/en/translate.json b/win11/locales/en/translate.json index 357ca29e..9ba09689 100644 --- a/win11/locales/en/translate.json +++ b/win11/locales/en/translate.json @@ -6,6 +6,7 @@ "about.licensed": "This project is licensed under", "about.alsonot": "This is also not", "about.microsoftcopywrite": "Microsoft, Windows and Other demonstrated Products in this project are trademarks of the Microsoft group of companies", + "about.egamepass": "This specific version is most likely hosted on an unblocked games website. We cannot guarantee any of the apps work. There is a high chance you will not be able to use the Spotify app or a lot of the bookmarked websites in your browser.", "about.understand": "Ok, I understand", "about.contact": "contact", "store.featured-app": "Featured Apps",