From 6ca8fa36ce589d99a5ea41dce3e9c609a37b4be9 Mon Sep 17 00:00:00 2001 From: Vishal Saranathan Date: Sat, 16 Sep 2023 22:59:29 -0400 Subject: [PATCH] Updates --- assets/index-d2f316c6.js | 1 + assets/index-dc765143.js | 1 - index.html | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 assets/index-d2f316c6.js delete mode 100644 assets/index-dc765143.js diff --git a/assets/index-d2f316c6.js b/assets/index-d2f316c6.js new file mode 100644 index 0000000..1e38700 --- /dev/null +++ b/assets/index-d2f316c6.js @@ -0,0 +1 @@ +(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}})();const B={},Me=(e,i)=>e===i,se=Symbol("solid-proxy"),Ee=Symbol("solid-track"),J={equals:Me};let Le=_e;const H=1,X=2,ve={owned:null,cleanups:null,context:null,owner:null};var E=null;let V=null,A=null,L=null,D=null,oe=0;function Y(e,i){const t=A,l=E,n=e.length===0,s=n?ve:{owned:null,cleanups:null,context:null,owner:i===void 0?l:i},o=n?e:()=>e(()=>Z(()=>te(s)));E=s,A=null;try{return G(o,!0)}finally{A=t,E=l}}function j(e,i){i=i?Object.assign({},J,i):J;const t={value:e,observers:null,observerSlots:null,comparator:i.equals||void 0},l=n=>(typeof n=="function"&&(n=n(t.value)),me(t,n));return[xe.bind(t),l]}function k(e,i,t){const l=$e(e,i,!1,H);ee(l)}function q(e,i,t){t=t?Object.assign({},J,t):J;const l=$e(e,i,!0,0);return l.observers=null,l.observerSlots=null,l.comparator=t.equals||void 0,ee(l),xe.bind(l)}function Z(e){if(A===null)return e();const i=A;A=null;try{return e()}finally{A=i}}function ze(e){return E===null||(E.cleanups===null?E.cleanups=[e]:E.cleanups.push(e)),e}function xe(){const e=V;if(this.sources&&(this.state||e))if(this.state===H||e)ee(this);else{const i=L;L=null,G(()=>W(this),!1),L=i}if(A){const i=this.observers?this.observers.length:0;A.sources?(A.sources.push(this),A.sourceSlots.push(i)):(A.sources=[this],A.sourceSlots=[i]),this.observers?(this.observers.push(A),this.observerSlots.push(A.sources.length-1)):(this.observers=[A],this.observerSlots=[A.sources.length-1])}return this.value}function me(e,i,t){let l=e.value;return(!e.comparator||!e.comparator(l,i))&&(e.value=i,e.observers&&e.observers.length&&G(()=>{for(let n=0;n1e6)throw L=[],new Error},!1)),i}function ee(e){if(!e.fn)return;te(e);const i=E,t=A,l=oe;A=E=e,Pe(e,e.value,l),A=t,E=i}function Pe(e,i,t){let l;try{l=e.fn(i)}catch(n){e.pure&&(e.state=H,e.owned&&e.owned.forEach(te),e.owned=null),pe(n)}(!e.updatedAt||e.updatedAt<=t)&&(e.updatedAt!=null&&"observers"in e?me(e,l):e.value=l,e.updatedAt=t)}function $e(e,i,t,l=H,n){const s={fn:e,state:l,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:i,owner:E,context:null,pure:t};return E===null||E!==ve&&(E.owned?E.owned.push(s):E.owned=[s]),s}function ge(e){const i=V;if(e.state===0||i)return;if(e.state===X||i)return W(e);if(e.suspense&&Z(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;l--)if(e=t[l],e.state===H||i)ee(e);else if(e.state===X||i){const n=L;L=null,G(()=>W(e,t[0]),!1),L=n}}function G(e,i){if(L)return e();let t=!1;i||(L=[]),D?t=!0:D=[],oe++;try{const l=e();return Te(t),l}catch(l){t||(D=null),L=null,pe(l)}}function Te(e){if(L&&(_e(L),L=null),e)return;const i=D;D=null,i.length&&G(()=>Le(i),!1)}function _e(e){for(let i=0;i1?[]:null;return ze(()=>ae(s)),()=>{let u=e()||[],c,a;return u[Ee],Z(()=>{let f=u.length,m,h,_,b,y,g,p,C,M;if(f===0)o!==0&&(ae(s),s=[],l=[],n=[],o=0,r&&(r=[])),t.fallback&&(l=[Be],n[0]=Y(N=>(s[0]=N,t.fallback())),o=1);else if(o===0){for(n=new Array(f),a=0;a=g&&C>=g&&l[p]===u[C];p--,C--)_[C]=n[p],b[C]=s[p],r&&(y[C]=r[p]);for(m=new Map,h=new Array(C+1),a=C;a>=g;a--)M=u[a],c=m.get(M),h[a]=c===void 0?-1:c,m.set(M,a);for(c=g;c<=p;c++)M=l[c],a=m.get(M),a!==void 0&&a!==-1?(_[a]=n[c],b[a]=s[c],r&&(y[a]=r[c]),a=h[a],m.set(M,a)):s[c]();for(a=g;ae(i||{}))}function R(){return!0}const De={get(e,i,t){return i===se?t:e.get(i)},has(e,i){return i===se?!0:e.has(i)},set:R,deleteProperty:R,getOwnPropertyDescriptor(e,i){return{configurable:!0,enumerable:!0,get(){return e.get(i)},set:R,deleteProperty:R}},ownKeys(e){return e.keys()}};function ne(e){return(e=typeof e=="function"?e():e)?e:{}}function He(...e){let i=!1;for(let l=0;l=0;n--){const s=ne(e[n])[l];if(s!==void 0)return s}},has(l){for(let n=e.length-1;n>=0;n--)if(l in ne(e[n]))return!0;return!1},keys(){const l=[];for(let n=0;n=0;l--)if(e[l]){const n=Object.getOwnPropertyDescriptors(e[l]);for(const s in n)s in t||Object.defineProperty(t,s,{enumerable:!0,get(){for(let o=e.length-1;o>=0;o--){const r=(e[o]||{})[s];if(r!==void 0)return r}}})}return t}function T(e){const i="fallback"in e&&{fallback:()=>e.fallback};return q(Ve(()=>e.each,e.children,i||void 0))}const Fe=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ie=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Fe]),Ue=new Set(["innerHTML","textContent","innerText","children"]),qe=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ce=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Ge=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Ke={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function Re(e,i,t){let l=t.length,n=i.length,s=l,o=0,r=0,u=i[n-1].nextSibling,c=null;for(;oa-r){const h=i[o];for(;r{n=s,i===document?e():d(i,e(),i.firstChild?null:void 0,t)},l.owner),()=>{n(),i.textContent=""}}function w(e,i,t){const l=document.createElement("template");l.innerHTML=e;let n=l.content.firstChild;return t&&(n=n.firstChild),n}function ie(e,i=window.document){const t=i[de]||(i[de]=new Set);for(let l=0,n=e.length;ln.call(e,t[1],s))}else e.addEventListener(i,t)}function We(e,i,t={}){const l=Object.keys(i||{}),n=Object.keys(t);let s,o;for(s=0,o=n.length;sn.children=U(e,i.children,n.children)),k(()=>i.ref&&i.ref(e)),k(()=>Ze(e,i,t,!0,n,!0)),n}function d(e,i,t,l){if(t!==void 0&&!l&&(l=[]),typeof i!="function")return U(e,i,l,t);k(n=>U(e,i(),n,t),l)}function Ze(e,i,t,l,n={},s=!1){i||(i={});for(const o in n)if(!(o in i)){if(o==="children")continue;n[o]=fe(e,o,null,n[o],t,s)}for(const o in i){if(o==="children"){l||U(e,i.children);continue}const r=i[o];n[o]=fe(e,o,r,n[o],t,s)}}function et(e){return e.toLowerCase().replace(/-([a-z])/g,(i,t)=>t.toUpperCase())}function ue(e,i,t){const l=i.trim().split(/\s+/);for(let n=0,s=l.length;n-1&&Ke[i.split(":")[0]];c?Je(e,c,i,t):S(e,qe[i]||i,t)}return t}function tt(e){const i=`$$${e.type}`;let t=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==t&&Object.defineProperty(e,"target",{configurable:!0,value:t}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),B.registry&&!B.done&&(B.done=!0,document.querySelectorAll("[id^=pl-]").forEach(l=>{for(;l&&l.nodeType!==8&&l.nodeValue!=="pl-"+e;){let n=l.nextSibling;l.remove(),l=n}l&&l.remove()}));t;){const l=t[i];if(l&&!t.disabled){const n=t[`${i}Data`];if(n!==void 0?l.call(t,n,e):l.call(t,e),e.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function U(e,i,t,l,n){for(B.context&&!t&&(t=[...e.childNodes]);typeof t=="function";)t=t();if(i===t)return t;const s=typeof i,o=l!==void 0;if(e=o&&t[0]&&t[0].parentNode||e,s==="string"||s==="number"){if(B.context)return t;if(s==="number"&&(i=i.toString()),o){let r=t[0];r&&r.nodeType===3?r.data=i:r=document.createTextNode(i),t=I(e,t,l,r)}else t!==""&&typeof t=="string"?t=e.firstChild.data=i:t=e.textContent=i}else if(i==null||s==="boolean"){if(B.context)return t;t=I(e,t,l)}else{if(s==="function")return k(()=>{let r=i();for(;typeof r=="function";)r=r();t=U(e,r,t,l)}),()=>t;if(Array.isArray(i)){const r=[],u=t&&Array.isArray(t);if(re(r,i,t,n))return k(()=>t=U(e,r,t,l,!0)),()=>t;if(B.context){if(!r.length)return t;for(let c=0;c=0;o--){const r=i[o];if(n!==r){const u=r.parentNode===e;!s&&!o?u?e.replaceChild(n,r):e.insertBefore(n,t):u&&r.remove()}else s=!0}}else e.insertBefore(n,t);return[n]}const it=!1;const lt=w('');function P(e){let i=$(e.target).data("link");console.log("dsd"),document.querySelector("#"+i).scrollIntoView({behavior:"smooth"})}function nt(){return(()=>{const e=lt.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=s.firstChild,r=s.nextSibling,u=r.firstChild,c=r.nextSibling,a=c.firstChild,x=c.nextSibling,f=x.firstChild,m=x.nextSibling,h=m.firstChild,_=i.nextSibling,b=_.firstChild,y=b.firstChild,g=y.firstChild,p=y.nextSibling,C=p.firstChild,M=p.nextSibling,N=M.firstChild,z=M.nextSibling,F=z.firstChild,K=z.nextSibling,je=K.firstChild;return o.$$click=P,u.$$click=P,a.$$click=P,f.$$click=P,h.$$click=P,g.$$click=P,C.$$click=P,N.$$click=P,F.$$click=P,je.$$click=P,e})()}ie(["click"]);const st=w(''),rt=w("");function O(e,i){const t=He(e.a,i);return(()=>{const l=st.cloneNode(!0);return Qe(l,t,!0,!0),d(l,()=>it,null),d(l,(()=>{const n=q(()=>!!i.title,!0);return()=>n()&&(()=>{const s=rt.cloneNode(!0);return d(s,()=>i.title),s})()})(),null),k(n=>{const s=e.a.stroke,o={...i.style,overflow:"visible",color:i.color||"currentColor"},r=i.size||"1em",u=i.size||"1em",c=e.c;return s!==n._v$&&S(l,"stroke",n._v$=s),n._v$2=ye(l,o,n._v$2),r!==n._v$3&&S(l,"height",n._v$3=r),u!==n._v$4&&S(l,"width",n._v$4=u),c!==n._v$5&&(l.innerHTML=n._v$5=c),n},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),l})()}function ot(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function at(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function ct(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function dt(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function ut(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}const ft=w('
Hey, I am
Vishal Saranathan 
'),ht="http://52.91.194.48:5011/sauron/backend";function we(){const[e,i]=j("Loading...");return k(()=>{fetch(ht+"/bio/get").then(t=>t.json()).then(t=>i(t.data.bio))}),(()=>{const t=ft.cloneNode(!0),l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=s.nextSibling;return d(o,v(dt,{size:24,class:" mx-auto"}),null),d(o,v(ot,{size:24,class:" mx-auto"}),null),d(o,v(ct,{size:24,class:" mx-auto"}),null),d(o,v(at,{size:24,class:" mx-auto"}),null),d(o,v(ut,{size:24,class:" mx-auto"}),null),k(()=>s.innerHTML=e()),t})()}const vt=w('
Vishal Saranathan
'),xt=w('
Vishal Saranathan
');function mt(){return(()=>{const e=vt.cloneNode(!0),i=e.firstChild,t=i.nextSibling;return d(t,v(we,{})),e})()}function $t(){return(()=>{const e=xt.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild;return d(n,v(we,{})),e})()}const gt=w('
'),_t=w('
    '),bt=w('
  • '),pt=w('
    Experience
    '),yt=w(''),wt=w('
    Experience
    '),Ct=w(''),Ce="http://52.91.194.48:5011/sauron/backend";function St(e,i){return e=new Date(e),i=i?new Date(i):null,[["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],e.getFullYear(),"(",i!=null?Math.floor((i-e)/(1e3*60*60*24*30)):"Present",i!=null?"months":"",")"].join(" ")}function kt(e){return(()=>{const i=gt.cloneNode(!0);return d(i,()=>e.item),i})()}function Se(e){const i="https://sauron-data.s3.amazonaws.com/experiences/";return(()=>{const t=_t.cloneNode(!0),l=t.firstChild,n=l.firstChild,s=n.firstChild,o=s.firstChild,r=n.nextSibling,u=r.firstChild,c=u.firstChild,a=c.nextSibling,x=a.firstChild,f=x.nextSibling,m=f.nextSibling,h=m.nextSibling;h.nextSibling;const _=l.nextSibling,b=_.firstChild,y=_.nextSibling;return d(c,()=>e.role),d(a,()=>e.company,x),d(a,()=>e.type,f),d(a,()=>e.location,h),d(a,()=>e.duration,null),d(b,v(T,{get each(){return e.desc.split("*")},children:g=>(()=>{const p=bt.cloneNode(!0);return p.firstChild,d(p,g,null),p})()})),d(y,v(T,{get each(){return e.tech.split(";")},children:g=>v(kt,{item:g})})),k(g=>{const p=i+e.logo,C=e.company;return p!==g._v$&&S(o,"src",g._v$=p),C!==g._v$2&&S(o,"alt",g._v$2=C),g},{_v$:void 0,_v$2:void 0}),t})()}function At(){const[e,i]=j(),[t,l]=j();k(()=>{fetch(Ce+"/exp/get/all").then(s=>s.json()).then(s=>{i(s),l(s[0].data)})});const n=s=>{let o=$(s.target).data("exp");l(e()[o].data),$(".exp-link").each(function(r){$(this).removeClass("text-accent"),$(this).hasClass("text-primary")||$(this).addClass("text-primary")}),$(s.target).addClass("text-accent"),$(s.target).removeClass("text-primary")};return(()=>{const s=pt.cloneNode(!0),o=s.firstChild,r=o.firstChild,u=r.nextSibling,c=u.firstChild,a=c.firstChild;return d(a,v(T,{get each(){return e()},children:(x,f)=>(()=>{const m=yt.cloneNode(!0),h=m.firstChild,_=h.firstChild;return h.$$click=n,d(h,()=>f()+1,_),k(b=>{const y=f(),g=f()==0?"exp-link text-accent":"exp-link text-primary";return y!==b._v$3&&S(h,"data-exp",b._v$3=y),g!==b._v$4&&le(h,b._v$4=g),b},{_v$3:void 0,_v$4:void 0}),m})()})),d(c,(()=>{const x=q(()=>!!t());return()=>x()?v(Se,{get role(){return t().role},get company(){return t().company},get type(){return t().job_type},get location(){return t().location},get duration(){return t().start_date+" ("+Math.floor(new Date(t().end_date)-new Date(t().start_date)/(1e3*60*60*24*30))},get logo(){return t().logo},get desc(){return t().desc},get tech(){return t().tech}}):""})(),null),s})()}function Nt(){const[e,i]=j(),[t,l]=j();k(()=>{fetch(Ce+"/exp/get/all").then(s=>s.json()).then(s=>{i(s),l(s[0].data)})});const n=s=>{let o=$(s.target).data("exp");l(e()[o].data),$(".exp-link").each(function(r){$(this).removeClass("text-accent"),$(this).hasClass("text-primary")||$(this).addClass("text-primary")}),$(s.target).addClass("text-accent"),$(s.target).removeClass("text-primary")};return(()=>{const s=wt.cloneNode(!0),o=s.firstChild,r=o.firstChild,u=r.nextSibling,c=u.firstChild,a=c.firstChild,x=a.nextSibling;return d(a,v(T,{get each(){return e()},children:(f,m)=>(()=>{const h=Ct.cloneNode(!0),_=h.firstChild,b=_.firstChild;return _.$$click=n,d(_,()=>m()+1,b),k(y=>{const g=m(),p=m()==0?"exp-link text-accent":"exp-link text-primary";return g!==y._v$5&&S(_,"data-exp",y._v$5=g),p!==y._v$6&&le(_,y._v$6=p),y},{_v$5:void 0,_v$6:void 0}),h})()})),d(x,(()=>{const f=q(()=>!!t());return()=>f()?v(Se,{get role(){return t().role},get company(){return t().company},get type(){return t().job_type},get location(){return t().location},get duration(){return St(t().start_date,t().end_date)},get logo(){return t().logo},get desc(){return t().desc},get tech(){return t().tech}}):""})()),s})()}ie(["click"]);const jt=w('
    ,

    '),Mt=w('
    Education
    '),Et=w('
    Education
    ');function Q(e){const[i,t]=j(e.initialLogo),[l,n]=j(e.initialDegree),[s,o]=j(e.initialUniversity),[r,u]=j(e.initialLocation),[c,a]=j(e.initialMajor),[x,f]=j(e.initialSpecialization);return(()=>{const m=jt.cloneNode(!0),h=m.firstChild,_=h.firstChild,b=_.firstChild,y=h.nextSibling,g=y.firstChild,p=g.firstChild,C=p.nextSibling,M=C.firstChild,N=C.nextSibling,z=N.firstChild;return z.nextSibling,d(p,l),d(C,s,M),d(C,r,null),d(N,c,z),d(N,(()=>{const F=q(()=>!!x());return()=>F()?"Specialization - "+x():""})(),null),k(()=>S(b,"src",i())),m})()}function Lt(){return(()=>{const e=Mt.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild,s=n.firstChild,o=s.nextSibling;return d(s,v(Q,{initialLogo:"/education/cu.png",initialDegree:"Master of Science",initialUniversity:"Columbia University",initialLocation:"NY",initialMajor:"Computer Science",initialSpecialization:"Computer Vision and Machine Learning "})),d(o,v(Q,{initialLogo:"/education/nitt.png",initialDegree:"Bachelor of Technology",initialUniversity:"National Institute of Technology, Tiruchirappalli",initialLocation:"India",initialMajor:"Computer Science with Honors | Minor - Management Studies"})),e})()}function zt(){return(()=>{const e=Et.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.nextSibling;return d(s,v(Q,{initialLogo:"/education/cu.png",initialDegree:"Master of Science",initialUniversity:"Columbia University",initialLocation:"NY",initialMajor:"Computer Science",initialSpecialization:"Computer Vision and Machine Learning "})),d(r,v(Q,{initialLogo:"/education/nitt.png",initialDegree:"Bachelor of Technology",initialUniversity:"National Institute of Technology, Tiruchirappalli",initialLocation:"India",initialMajor:"Computer Science with Honors | Minor - Management Studies"})),e})()}const Pt=w('
    Projects

    Visit my Github to view all my projects

    '),Tt=w(''),Ot=w(""),Bt=w('
    Projects

    Visit my Github to view all my projects

    '),Vt=w(''),ke="http://52.91.194.48:5011/sauron/backend";function Dt(){const[e,i]=j();k(()=>{fetch(ke+"/project/get/all").then(l=>l.json()).then(l=>{i(l)})});const t=l=>{$(".proj-btn").each(function(n){$(this).removeClass("btn-accent"),$(this).hasClass("btn-primary")||$(this).addClass("btn-primary")}),$(l.target).addClass("btn-accent"),$(l.target).removeClass("btn-primary")};return(()=>{const l=Pt.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.nextSibling,c=u.nextSibling;return d(u,v(T,{get each(){return e()},children:(a,x)=>(()=>{const f=Tt.cloneNode(!0),m=f.firstChild,h=m.firstChild,_=h.firstChild,b=_.nextSibling,y=b.firstChild,g=b.nextSibling,p=g.firstChild,C=p.firstChild,M=C.nextSibling;return d(_,()=>a.data.title),k(N=>{const z="item"+(x()+1),F=a.data.desc,K=a.data.link;return z!==N._v$&&S(f,"id",N._v$=z),F!==N._v$2&&(y.innerHTML=N._v$2=F),K!==N._v$3&&S(M,"href",N._v$3=K),N},{_v$:void 0,_v$2:void 0,_v$3:void 0}),f})()})),d(c,v(T,{get each(){return e()},children:(a,x)=>(()=>{const f=Ot.cloneNode(!0);return f.$$click=t,d(f,()=>x()+1),k(m=>{const h="#item"+(x()+1).toString(),_=x()==0?"btn btn-accent btn-xs proj-btn":"btn btn-primary btn-xs proj-btn",b=x();return h!==m._v$4&&S(f,"href",m._v$4=h),_!==m._v$5&&le(f,m._v$5=_),b!==m._v$6&&S(f,"data-project",m._v$6=b),m},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),f})()})),l})()}function Ht(){const[e,i]=j();return k(()=>{fetch(ke+"/project/get/all").then(t=>t.json()).then(t=>{i(t)})}),(()=>{const t=Bt.cloneNode(!0),l=t.firstChild,n=l.firstChild,s=n.nextSibling,o=s.firstChild,r=o.nextSibling;return d(r,v(T,{get each(){return e()},children:(u,c)=>(()=>{const a=Vt.cloneNode(!0),x=a.firstChild,f=x.firstChild,m=f.firstChild,h=m.nextSibling,_=h.firstChild,b=h.nextSibling,y=b.firstChild,g=y.firstChild,p=g.nextSibling;return d(m,()=>u.data.title),k(C=>{const M=c(),N=u.data.desc,z=u.data.link;return M!==C._v$7&&S(f,"data-project",C._v$7=M),N!==C._v$8&&(_.innerHTML=C._v$8=N),z!==C._v$9&&S(p,"href",C._v$9=z),C},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),a})()})),t})()}ie(["click"]);const Ft=w('
    Gallery

    An aimless wanderlust, marking my presence in wonderlands!
    Do check out my page _vishal_here_ for more of my photomania.

    '),It=w(''),Ut=w('
    Gallery

    An aimless wanderlust, marking my presence in wonderlands!
    Do check out my page _vishal_here_ for more of my photomania.

    '),qt=w('
    '),Ae="http://52.91.194.48:5011/sauron/backend";function Gt(){const e="https://sauron-data.s3.amazonaws.com/photography/",[i,t]=j();return k(()=>{fetch(Ae+"/photo/get/all").then(l=>l.json()).then(l=>[t(l)])}),(()=>{const l=Ft.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.firstChild,c=u.nextSibling;return d(c,v(T,{get each(){return i()},children:(a,x)=>(()=>{const f=It.cloneNode(!0),m=f.firstChild,h=m.firstChild;return k(_=>{const b=e+a.data.photo_url,y=e+a.data.photo_url,g=a.data.photo_name;return b!==_._v$&&S(m,"href",_._v$=b),y!==_._v$2&&S(h,"src",_._v$2=y),g!==_._v$3&&S(h,"alt",_._v$3=g),_},{_v$:void 0,_v$2:void 0,_v$3:void 0}),f})()})),l})()}function Kt(){const e="https://sauron-data.s3.amazonaws.com/photography/",[i,t]=j();return k(()=>{fetch(Ae+"/photo/get/all").then(l=>l.json()).then(l=>[t(l)])}),(()=>{const l=Ut.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.nextSibling;return d(u,v(T,{get each(){return i()},children:(c,a)=>(()=>{const x=qt.cloneNode(!0),f=x.firstChild,m=f.firstChild,h=m.firstChild,_=h.firstChild;return k(b=>{const y=e+c.data.photo_url,g=e+c.data.photo_url,p=c.data.photo_name;return y!==b._v$4&&S(h,"href",b._v$4=y),g!==b._v$5&&S(_,"src",b._v$5=g),p!==b._v$6&&S(_,"alt",b._v$6=p),b},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),x})()})),l})()}const Rt=w('

    Handcrafted with by Me

    ');function Ne(){return Rt.cloneNode(!0)}const Yt=w('
    '),Jt=w('
    ');function Xt(){return(()=>{const e=Yt.cloneNode(!0);return d(e,v(mt,{}),null),d(e,v(At,{}),null),d(e,v(zt,{}),null),d(e,v(Dt,{}),null),d(e,v(Gt,{}),null),d(e,v(Ne,{}),null),e})()}function Wt(){return(()=>{const e=Jt.cloneNode(!0);return d(e,v($t,{}),null),d(e,v(Nt,{}),null),d(e,v(Lt,{}),null),d(e,v(Ht,{}),null),d(e,v(Kt,{}),null),d(e,v(Ne,{}),null),e})()}function Qt(e){return O({a:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},c:''},e)}function Zt(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ei(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ti(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function ii(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}const li=w('
    '),ni="http://52.91.194.48:5011/sauron/backend";function si(){const[e,i]=j();return k(()=>{fetch(ni+"/link/get/all").then(t=>t.json()).then(t=>{i(t)})}),(()=>{const t=li.cloneNode(!0),l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=n.nextSibling,r=o.firstChild,u=o.nextSibling,c=u.firstChild,a=u.nextSibling,x=a.firstChild,f=a.nextSibling,m=f.firstChild;return d(s,v(Qt,{size:24,class:"stroke-primary hover:fill-accent"})),d(r,v(Zt,{size:24,class:"stroke-primary hover:fill-accent"})),d(c,v(ii,{size:24,class:"stroke-primary hover:fill-accent"})),d(x,v(ei,{size:24,class:"stroke-primary hover:fill-accent"})),d(m,v(ti,{size:24,class:"stroke-primary hover:fill-accent"})),k(h=>{const _=e()?"mailto:"+e()[1].data.link:"#",b=e()?e()[3].data.link:"#",y=e()?e()[4].data.link:"#",g=e()?e()[0].data.link:"#",p=e()?e()[2].data.link:"#";return _!==h._v$&&S(s,"href",h._v$=_),b!==h._v$2&&S(r,"href",h._v$2=b),y!==h._v$3&&S(c,"href",h._v$3=y),g!==h._v$4&&S(x,"href",h._v$4=g),p!==h._v$5&&S(m,"href",h._v$5=p),h},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),t})()}const ri=w('
    '),oi=w('
    '),ai="http://52.91.194.48:5011/sauron/backend";function ci(){const e="https://sauron-data.s3.amazonaws.com/associations/",[i,t]=j();return k(()=>{fetch(ai+"/association/get/all").then(l=>l.json()).then(l=>t(l))}),(()=>{const l=ri.cloneNode(!0),n=l.firstChild,s=n.firstChild;return d(n,v(T,{get each(){return i()},children:(o,r)=>(()=>{const u=oi.cloneNode(!0),c=u.firstChild;return c.style.setProperty("filter","sepia(100%) hue-rotate(170deg) saturate(3)"),k(a=>{const x=e+o.data.url,f=o.data.name;return x!==a._v$&&S(c,"src",a._v$=x),f!==a._v$2&&S(c,"alt",a._v$2=f),a},{_v$:void 0,_v$2:void 0}),u})()}),s),l})()}const di=w('
    ');function ui(){return(()=>{const e=di.cloneNode(!0),i=e.firstChild,t=i.nextSibling,l=t.nextSibling,n=l.firstChild,s=n.nextSibling,o=s.firstChild,r=s.nextSibling;return d(i,v(nt,{})),d(t,v(Xt,{})),d(n,v(si,{})),d(o,v(Wt,{})),d(r,v(ci,{})),e})()}const fi=document.getElementById("root");Ye(()=>v(ui,{}),fi); diff --git a/assets/index-dc765143.js b/assets/index-dc765143.js deleted file mode 100644 index b329355..0000000 --- a/assets/index-dc765143.js +++ /dev/null @@ -1 +0,0 @@ -(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))l(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&l(o)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerPolicy&&(s.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?s.credentials="include":n.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}})();const B={},Ae=(e,i)=>e===i,se=Symbol("solid-proxy"),Ne=Symbol("solid-track"),J={equals:Ae};let je=_e;const H=1,X=2,ve={owned:null,cleanups:null,context:null,owner:null};var E=null;let V=null,A=null,L=null,D=null,oe=0;function Y(e,i){const t=A,l=E,n=e.length===0,s=n?ve:{owned:null,cleanups:null,context:null,owner:i===void 0?l:i},o=n?e:()=>e(()=>Z(()=>te(s)));E=s,A=null;try{return G(o,!0)}finally{A=t,E=l}}function j(e,i){i=i?Object.assign({},J,i):J;const t={value:e,observers:null,observerSlots:null,comparator:i.equals||void 0},l=n=>(typeof n=="function"&&(n=n(t.value)),me(t,n));return[xe.bind(t),l]}function k(e,i,t){const l=ge(e,i,!1,H);ee(l)}function q(e,i,t){t=t?Object.assign({},J,t):J;const l=ge(e,i,!0,0);return l.observers=null,l.observerSlots=null,l.comparator=t.equals||void 0,ee(l),xe.bind(l)}function Z(e){if(A===null)return e();const i=A;A=null;try{return e()}finally{A=i}}function Me(e){return E===null||(E.cleanups===null?E.cleanups=[e]:E.cleanups.push(e)),e}function xe(){const e=V;if(this.sources&&(this.state||e))if(this.state===H||e)ee(this);else{const i=L;L=null,G(()=>W(this),!1),L=i}if(A){const i=this.observers?this.observers.length:0;A.sources?(A.sources.push(this),A.sourceSlots.push(i)):(A.sources=[this],A.sourceSlots=[i]),this.observers?(this.observers.push(A),this.observerSlots.push(A.sources.length-1)):(this.observers=[A],this.observerSlots=[A.sources.length-1])}return this.value}function me(e,i,t){let l=e.value;return(!e.comparator||!e.comparator(l,i))&&(e.value=i,e.observers&&e.observers.length&&G(()=>{for(let n=0;n1e6)throw L=[],new Error},!1)),i}function ee(e){if(!e.fn)return;te(e);const i=E,t=A,l=oe;A=E=e,Ee(e,e.value,l),A=t,E=i}function Ee(e,i,t){let l;try{l=e.fn(i)}catch(n){e.pure&&(e.state=H,e.owned&&e.owned.forEach(te),e.owned=null),pe(n)}(!e.updatedAt||e.updatedAt<=t)&&(e.updatedAt!=null&&"observers"in e?me(e,l):e.value=l,e.updatedAt=t)}function ge(e,i,t,l=H,n){const s={fn:e,state:l,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:i,owner:E,context:null,pure:t};return E===null||E!==ve&&(E.owned?E.owned.push(s):E.owned=[s]),s}function $e(e){const i=V;if(e.state===0||i)return;if(e.state===X||i)return W(e);if(e.suspense&&Z(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;l--)if(e=t[l],e.state===H||i)ee(e);else if(e.state===X||i){const n=L;L=null,G(()=>W(e,t[0]),!1),L=n}}function G(e,i){if(L)return e();let t=!1;i||(L=[]),D?t=!0:D=[],oe++;try{const l=e();return Le(t),l}catch(l){t||(D=null),L=null,pe(l)}}function Le(e){if(L&&(_e(L),L=null),e)return;const i=D;D=null,i.length&&G(()=>je(i),!1)}function _e(e){for(let i=0;i1?[]:null;return Me(()=>ae(s)),()=>{let u=e()||[],c,a;return u[Ne],Z(()=>{let f=u.length,m,h,_,b,y,g,p,C,M;if(f===0)o!==0&&(ae(s),s=[],l=[],n=[],o=0,r&&(r=[])),t.fallback&&(l=[Pe],n[0]=Y(N=>(s[0]=N,t.fallback())),o=1);else if(o===0){for(n=new Array(f),a=0;a=g&&C>=g&&l[p]===u[C];p--,C--)_[C]=n[p],b[C]=s[p],r&&(y[C]=r[p]);for(m=new Map,h=new Array(C+1),a=C;a>=g;a--)M=u[a],c=m.get(M),h[a]=c===void 0?-1:c,m.set(M,a);for(c=g;c<=p;c++)M=l[c],a=m.get(M),a!==void 0&&a!==-1?(_[a]=n[c],b[a]=s[c],r&&(y[a]=r[c]),a=h[a],m.set(M,a)):s[c]();for(a=g;ae(i||{}))}function R(){return!0}const Oe={get(e,i,t){return i===se?t:e.get(i)},has(e,i){return i===se?!0:e.has(i)},set:R,deleteProperty:R,getOwnPropertyDescriptor(e,i){return{configurable:!0,enumerable:!0,get(){return e.get(i)},set:R,deleteProperty:R}},ownKeys(e){return e.keys()}};function ne(e){return(e=typeof e=="function"?e():e)?e:{}}function Be(...e){let i=!1;for(let l=0;l=0;n--){const s=ne(e[n])[l];if(s!==void 0)return s}},has(l){for(let n=e.length-1;n>=0;n--)if(l in ne(e[n]))return!0;return!1},keys(){const l=[];for(let n=0;n=0;l--)if(e[l]){const n=Object.getOwnPropertyDescriptors(e[l]);for(const s in n)s in t||Object.defineProperty(t,s,{enumerable:!0,get(){for(let o=e.length-1;o>=0;o--){const r=(e[o]||{})[s];if(r!==void 0)return r}}})}return t}function T(e){const i="fallback"in e&&{fallback:()=>e.fallback};return q(Te(()=>e.each,e.children,i||void 0))}const Ve=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],De=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Ve]),He=new Set(["innerHTML","textContent","innerText","children"]),Fe=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),ce=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),Ie=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Ue={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function qe(e,i,t){let l=t.length,n=i.length,s=l,o=0,r=0,u=i[n-1].nextSibling,c=null;for(;oa-r){const h=i[o];for(;r{n=s,i===document?e():d(i,e(),i.firstChild?null:void 0,t)},l.owner),()=>{n(),i.textContent=""}}function w(e,i,t){const l=document.createElement("template");l.innerHTML=e;let n=l.content.firstChild;return t&&(n=n.firstChild),n}function ie(e,i=window.document){const t=i[de]||(i[de]=new Set);for(let l=0,n=e.length;ln.call(e,t[1],s))}else e.addEventListener(i,t)}function Ye(e,i,t={}){const l=Object.keys(i||{}),n=Object.keys(t);let s,o;for(s=0,o=n.length;sn.children=U(e,i.children,n.children)),k(()=>i.ref&&i.ref(e)),k(()=>Xe(e,i,t,!0,n,!0)),n}function d(e,i,t,l){if(t!==void 0&&!l&&(l=[]),typeof i!="function")return U(e,i,l,t);k(n=>U(e,i(),n,t),l)}function Xe(e,i,t,l,n={},s=!1){i||(i={});for(const o in n)if(!(o in i)){if(o==="children")continue;n[o]=fe(e,o,null,n[o],t,s)}for(const o in i){if(o==="children"){l||U(e,i.children);continue}const r=i[o];n[o]=fe(e,o,r,n[o],t,s)}}function We(e){return e.toLowerCase().replace(/-([a-z])/g,(i,t)=>t.toUpperCase())}function ue(e,i,t){const l=i.trim().split(/\s+/);for(let n=0,s=l.length;n-1&&Ue[i.split(":")[0]];c?Ke(e,c,i,t):S(e,Fe[i]||i,t)}return t}function Qe(e){const i=`$$${e.type}`;let t=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==t&&Object.defineProperty(e,"target",{configurable:!0,value:t}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),B.registry&&!B.done&&(B.done=!0,document.querySelectorAll("[id^=pl-]").forEach(l=>{for(;l&&l.nodeType!==8&&l.nodeValue!=="pl-"+e;){let n=l.nextSibling;l.remove(),l=n}l&&l.remove()}));t;){const l=t[i];if(l&&!t.disabled){const n=t[`${i}Data`];if(n!==void 0?l.call(t,n,e):l.call(t,e),e.cancelBubble)return}t=t._$host||t.parentNode||t.host}}function U(e,i,t,l,n){for(B.context&&!t&&(t=[...e.childNodes]);typeof t=="function";)t=t();if(i===t)return t;const s=typeof i,o=l!==void 0;if(e=o&&t[0]&&t[0].parentNode||e,s==="string"||s==="number"){if(B.context)return t;if(s==="number"&&(i=i.toString()),o){let r=t[0];r&&r.nodeType===3?r.data=i:r=document.createTextNode(i),t=I(e,t,l,r)}else t!==""&&typeof t=="string"?t=e.firstChild.data=i:t=e.textContent=i}else if(i==null||s==="boolean"){if(B.context)return t;t=I(e,t,l)}else{if(s==="function")return k(()=>{let r=i();for(;typeof r=="function";)r=r();t=U(e,r,t,l)}),()=>t;if(Array.isArray(i)){const r=[],u=t&&Array.isArray(t);if(re(r,i,t,n))return k(()=>t=U(e,r,t,l,!0)),()=>t;if(B.context){if(!r.length)return t;for(let c=0;c=0;o--){const r=i[o];if(n!==r){const u=r.parentNode===e;!s&&!o?u?e.replaceChild(n,r):e.insertBefore(n,t):u&&r.remove()}else s=!0}}else e.insertBefore(n,t);return[n]}const Ze=!1;const et=w('');function P(e){let i=$(e.target).data("link");console.log("dsd"),document.querySelector("#"+i).scrollIntoView({behavior:"smooth"})}function tt(){return(()=>{const e=et.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=s.firstChild,r=s.nextSibling,u=r.firstChild,c=r.nextSibling,a=c.firstChild,x=c.nextSibling,f=x.firstChild,m=x.nextSibling,h=m.firstChild,_=i.nextSibling,b=_.firstChild,y=b.firstChild,g=y.firstChild,p=y.nextSibling,C=p.firstChild,M=p.nextSibling,N=M.firstChild,z=M.nextSibling,F=z.firstChild,K=z.nextSibling,ke=K.firstChild;return o.$$click=P,u.$$click=P,a.$$click=P,f.$$click=P,h.$$click=P,g.$$click=P,C.$$click=P,N.$$click=P,F.$$click=P,ke.$$click=P,e})()}ie(["click"]);const it=w(''),lt=w("");function O(e,i){const t=Be(e.a,i);return(()=>{const l=it.cloneNode(!0);return Je(l,t,!0,!0),d(l,()=>Ze,null),d(l,(()=>{const n=q(()=>!!i.title,!0);return()=>n()&&(()=>{const s=lt.cloneNode(!0);return d(s,()=>i.title),s})()})(),null),k(n=>{const s=e.a.stroke,o={...i.style,overflow:"visible",color:i.color||"currentColor"},r=i.size||"1em",u=i.size||"1em",c=e.c;return s!==n._v$&&S(l,"stroke",n._v$=s),n._v$2=ye(l,o,n._v$2),r!==n._v$3&&S(l,"height",n._v$3=r),u!==n._v$4&&S(l,"width",n._v$4=u),c!==n._v$5&&(l.innerHTML=n._v$5=c),n},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),l})()}function nt(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function st(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function rt(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function ot(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}function at(e){return O({a:{viewBox:"0 0 1024 1024"},c:''},e)}const ct=w('
    Hey, I am
    Vishal Saranathan 
    ');function we(){const[e,i]=j("Loading...");return k(()=>{fetch("http://localhost:5011/sauron/backend/bio/get").then(t=>t.json()).then(t=>i(t.data.bio))}),(()=>{const t=ct.cloneNode(!0),l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=s.nextSibling;return d(o,v(ot,{size:24,class:" mx-auto"}),null),d(o,v(nt,{size:24,class:" mx-auto"}),null),d(o,v(rt,{size:24,class:" mx-auto"}),null),d(o,v(st,{size:24,class:" mx-auto"}),null),d(o,v(at,{size:24,class:" mx-auto"}),null),k(()=>s.innerHTML=e()),t})()}const dt=w('
    Vishal Saranathan
    '),ut=w('
    Vishal Saranathan
    ');function ft(){return(()=>{const e=dt.cloneNode(!0),i=e.firstChild,t=i.nextSibling;return d(t,v(we,{})),e})()}function ht(){return(()=>{const e=ut.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild;return d(n,v(we,{})),e})()}const vt=w('
    '),xt=w('
      '),mt=w('
    • '),gt=w('
      Experience
      '),$t=w(''),_t=w('
      Experience
      '),bt=w('');function pt(e,i){return e=new Date(e),i=i?new Date(i):null,[["January","February","March","April","May","June","July","August","September","October","November","December"][e.getMonth()],e.getFullYear(),"(",i!=null?Math.floor((i-e)/(1e3*60*60*24*30)):"Present",i!=null?"months":"",")"].join(" ")}function yt(e){return(()=>{const i=vt.cloneNode(!0);return d(i,()=>e.item),i})()}function Ce(e){const i="https://sauron-data.s3.amazonaws.com/experiences/";return(()=>{const t=xt.cloneNode(!0),l=t.firstChild,n=l.firstChild,s=n.firstChild,o=s.firstChild,r=n.nextSibling,u=r.firstChild,c=u.firstChild,a=c.nextSibling,x=a.firstChild,f=x.nextSibling,m=f.nextSibling,h=m.nextSibling;h.nextSibling;const _=l.nextSibling,b=_.firstChild,y=_.nextSibling;return d(c,()=>e.role),d(a,()=>e.company,x),d(a,()=>e.type,f),d(a,()=>e.location,h),d(a,()=>e.duration,null),d(b,v(T,{get each(){return e.desc.split("*")},children:g=>(()=>{const p=mt.cloneNode(!0);return p.firstChild,d(p,g,null),p})()})),d(y,v(T,{get each(){return e.tech.split(";")},children:g=>v(yt,{item:g})})),k(g=>{const p=i+e.logo,C=e.company;return p!==g._v$&&S(o,"src",g._v$=p),C!==g._v$2&&S(o,"alt",g._v$2=C),g},{_v$:void 0,_v$2:void 0}),t})()}function wt(){const[e,i]=j(),[t,l]=j();k(()=>{fetch("http://localhost:5011/sauron/backend/exp/get/all").then(s=>s.json()).then(s=>{i(s),l(s[0].data)})});const n=s=>{let o=$(s.target).data("exp");l(e()[o].data),$(".exp-link").each(function(r){$(this).removeClass("text-accent"),$(this).hasClass("text-primary")||$(this).addClass("text-primary")}),$(s.target).addClass("text-accent"),$(s.target).removeClass("text-primary")};return(()=>{const s=gt.cloneNode(!0),o=s.firstChild,r=o.firstChild,u=r.nextSibling,c=u.firstChild,a=c.firstChild;return d(a,v(T,{get each(){return e()},children:(x,f)=>(()=>{const m=$t.cloneNode(!0),h=m.firstChild,_=h.firstChild;return h.$$click=n,d(h,()=>f()+1,_),k(b=>{const y=f(),g=f()==0?"exp-link text-accent":"exp-link text-primary";return y!==b._v$3&&S(h,"data-exp",b._v$3=y),g!==b._v$4&&le(h,b._v$4=g),b},{_v$3:void 0,_v$4:void 0}),m})()})),d(c,(()=>{const x=q(()=>!!t());return()=>x()?v(Ce,{get role(){return t().role},get company(){return t().company},get type(){return t().job_type},get location(){return t().location},get duration(){return t().start_date+" ("+Math.floor(new Date(t().end_date)-new Date(t().start_date)/(1e3*60*60*24*30))},get logo(){return t().logo},get desc(){return t().desc},get tech(){return t().tech}}):""})(),null),s})()}function Ct(){const[e,i]=j(),[t,l]=j();k(()=>{fetch("http://localhost:5011/sauron/backend/exp/get/all").then(s=>s.json()).then(s=>{i(s),l(s[0].data)})});const n=s=>{let o=$(s.target).data("exp");l(e()[o].data),$(".exp-link").each(function(r){$(this).removeClass("text-accent"),$(this).hasClass("text-primary")||$(this).addClass("text-primary")}),$(s.target).addClass("text-accent"),$(s.target).removeClass("text-primary")};return(()=>{const s=_t.cloneNode(!0),o=s.firstChild,r=o.firstChild,u=r.nextSibling,c=u.firstChild,a=c.firstChild,x=a.nextSibling;return d(a,v(T,{get each(){return e()},children:(f,m)=>(()=>{const h=bt.cloneNode(!0),_=h.firstChild,b=_.firstChild;return _.$$click=n,d(_,()=>m()+1,b),k(y=>{const g=m(),p=m()==0?"exp-link text-accent":"exp-link text-primary";return g!==y._v$5&&S(_,"data-exp",y._v$5=g),p!==y._v$6&&le(_,y._v$6=p),y},{_v$5:void 0,_v$6:void 0}),h})()})),d(x,(()=>{const f=q(()=>!!t());return()=>f()?v(Ce,{get role(){return t().role},get company(){return t().company},get type(){return t().job_type},get location(){return t().location},get duration(){return pt(t().start_date,t().end_date)},get logo(){return t().logo},get desc(){return t().desc},get tech(){return t().tech}}):""})()),s})()}ie(["click"]);const St=w('
      ,

      '),kt=w('
      Education
      '),At=w('
      Education
      ');function Q(e){const[i,t]=j(e.initialLogo),[l,n]=j(e.initialDegree),[s,o]=j(e.initialUniversity),[r,u]=j(e.initialLocation),[c,a]=j(e.initialMajor),[x,f]=j(e.initialSpecialization);return(()=>{const m=St.cloneNode(!0),h=m.firstChild,_=h.firstChild,b=_.firstChild,y=h.nextSibling,g=y.firstChild,p=g.firstChild,C=p.nextSibling,M=C.firstChild,N=C.nextSibling,z=N.firstChild;return z.nextSibling,d(p,l),d(C,s,M),d(C,r,null),d(N,c,z),d(N,(()=>{const F=q(()=>!!x());return()=>F()?"Specialization - "+x():""})(),null),k(()=>S(b,"src",i())),m})()}function Nt(){return(()=>{const e=kt.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild,s=n.firstChild,o=s.nextSibling;return d(s,v(Q,{initialLogo:"/education/cu.png",initialDegree:"Master of Science",initialUniversity:"Columbia University",initialLocation:"NY",initialMajor:"Computer Science",initialSpecialization:"Computer Vision and Machine Learning "})),d(o,v(Q,{initialLogo:"/education/nitt.png",initialDegree:"Bachelor of Technology",initialUniversity:"National Institute of Technology, Tiruchirappalli",initialLocation:"India",initialMajor:"Computer Science with Honors | Minor - Management Studies"})),e})()}function jt(){return(()=>{const e=At.cloneNode(!0),i=e.firstChild,t=i.firstChild,l=t.nextSibling,n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.nextSibling;return d(s,v(Q,{initialLogo:"/education/cu.png",initialDegree:"Master of Science",initialUniversity:"Columbia University",initialLocation:"NY",initialMajor:"Computer Science",initialSpecialization:"Computer Vision and Machine Learning "})),d(r,v(Q,{initialLogo:"/education/nitt.png",initialDegree:"Bachelor of Technology",initialUniversity:"National Institute of Technology, Tiruchirappalli",initialLocation:"India",initialMajor:"Computer Science with Honors | Minor - Management Studies"})),e})()}const Mt=w('
      Projects

      Visit my Github to view all my projects

      '),Et=w(''),Lt=w(""),zt=w('
      Projects

      Visit my Github to view all my projects

      '),Pt=w('');function Tt(){const[e,i]=j();k(()=>{fetch("http://localhost:5011/sauron/backend/project/get/all").then(l=>l.json()).then(l=>{i(l)})});const t=l=>{$(".proj-btn").each(function(n){$(this).removeClass("btn-accent"),$(this).hasClass("btn-primary")||$(this).addClass("btn-primary")}),$(l.target).addClass("btn-accent"),$(l.target).removeClass("btn-primary")};return(()=>{const l=Mt.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.nextSibling,c=u.nextSibling;return d(u,v(T,{get each(){return e()},children:(a,x)=>(()=>{const f=Et.cloneNode(!0),m=f.firstChild,h=m.firstChild,_=h.firstChild,b=_.nextSibling,y=b.firstChild,g=b.nextSibling,p=g.firstChild,C=p.firstChild,M=C.nextSibling;return d(_,()=>a.data.title),k(N=>{const z="item"+(x()+1),F=a.data.desc,K=a.data.link;return z!==N._v$&&S(f,"id",N._v$=z),F!==N._v$2&&(y.innerHTML=N._v$2=F),K!==N._v$3&&S(M,"href",N._v$3=K),N},{_v$:void 0,_v$2:void 0,_v$3:void 0}),f})()})),d(c,v(T,{get each(){return e()},children:(a,x)=>(()=>{const f=Lt.cloneNode(!0);return f.$$click=t,d(f,()=>x()+1),k(m=>{const h="#item"+(x()+1).toString(),_=x()==0?"btn btn-accent btn-xs proj-btn":"btn btn-primary btn-xs proj-btn",b=x();return h!==m._v$4&&S(f,"href",m._v$4=h),_!==m._v$5&&le(f,m._v$5=_),b!==m._v$6&&S(f,"data-project",m._v$6=b),m},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),f})()})),l})()}function Ot(){const[e,i]=j();return k(()=>{fetch("http://localhost:5011/sauron/backend/project/get/all").then(t=>t.json()).then(t=>{i(t)})}),(()=>{const t=zt.cloneNode(!0),l=t.firstChild,n=l.firstChild,s=n.nextSibling,o=s.firstChild,r=o.nextSibling;return d(r,v(T,{get each(){return e()},children:(u,c)=>(()=>{const a=Pt.cloneNode(!0),x=a.firstChild,f=x.firstChild,m=f.firstChild,h=m.nextSibling,_=h.firstChild,b=h.nextSibling,y=b.firstChild,g=y.firstChild,p=g.nextSibling;return d(m,()=>u.data.title),k(C=>{const M=c(),N=u.data.desc,z=u.data.link;return M!==C._v$7&&S(f,"data-project",C._v$7=M),N!==C._v$8&&(_.innerHTML=C._v$8=N),z!==C._v$9&&S(p,"href",C._v$9=z),C},{_v$7:void 0,_v$8:void 0,_v$9:void 0}),a})()})),t})()}ie(["click"]);const Bt=w('
      Gallery

      An aimless wanderlust, marking my presence in wonderlands!
      Do check out my page _vishal_here_ for more of my photomania.

      '),Vt=w(''),Dt=w('
      Gallery

      An aimless wanderlust, marking my presence in wonderlands!
      Do check out my page _vishal_here_ for more of my photomania.

      '),Ht=w('
      ');function Ft(){const e="https://sauron-data.s3.amazonaws.com/photography/",[i,t]=j();return k(()=>{fetch("http://localhost:5011/sauron/backend/photo/get/all").then(l=>l.json()).then(l=>[t(l)])}),(()=>{const l=Bt.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.firstChild,c=u.nextSibling;return d(c,v(T,{get each(){return i()},children:(a,x)=>(()=>{const f=Vt.cloneNode(!0),m=f.firstChild,h=m.firstChild;return k(_=>{const b=e+a.data.photo_url,y=e+a.data.photo_url,g=a.data.photo_name;return b!==_._v$&&S(m,"href",_._v$=b),y!==_._v$2&&S(h,"src",_._v$2=y),g!==_._v$3&&S(h,"alt",_._v$3=g),_},{_v$:void 0,_v$2:void 0,_v$3:void 0}),f})()})),l})()}function It(){const e="https://sauron-data.s3.amazonaws.com/photography/",[i,t]=j();return k(()=>{fetch("http://localhost:5011/sauron/backend/photo/get/all").then(l=>l.json()).then(l=>[t(l)])}),(()=>{const l=Dt.cloneNode(!0),n=l.firstChild,s=n.firstChild,o=s.nextSibling,r=o.firstChild,u=r.nextSibling;return d(u,v(T,{get each(){return i()},children:(c,a)=>(()=>{const x=Ht.cloneNode(!0),f=x.firstChild,m=f.firstChild,h=m.firstChild,_=h.firstChild;return k(b=>{const y=e+c.data.photo_url,g=e+c.data.photo_url,p=c.data.photo_name;return y!==b._v$4&&S(h,"href",b._v$4=y),g!==b._v$5&&S(_,"src",b._v$5=g),p!==b._v$6&&S(_,"alt",b._v$6=p),b},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),x})()})),l})()}const Ut=w('

      Handcrafted with by Me

      ');function Se(){return Ut.cloneNode(!0)}const qt=w('
      '),Gt=w('
      ');function Kt(){return(()=>{const e=qt.cloneNode(!0);return d(e,v(ft,{}),null),d(e,v(wt,{}),null),d(e,v(jt,{}),null),d(e,v(Tt,{}),null),d(e,v(Ft,{}),null),d(e,v(Se,{}),null),e})()}function Rt(){return(()=>{const e=Gt.cloneNode(!0);return d(e,v(ht,{}),null),d(e,v(Ct,{}),null),d(e,v(Nt,{}),null),d(e,v(Ot,{}),null),d(e,v(It,{}),null),d(e,v(Se,{}),null),e})()}function Yt(e){return O({a:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},c:''},e)}function Jt(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function Xt(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function Wt(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}function Qt(e){return O({a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:''},e)}const Zt=w('
      ');function ei(){const[e,i]=j();return k(()=>{fetch("http://localhost:5011/sauron/backend/link/get/all").then(t=>t.json()).then(t=>{i(t)})}),(()=>{const t=Zt.cloneNode(!0),l=t.firstChild,n=l.nextSibling,s=n.firstChild,o=n.nextSibling,r=o.firstChild,u=o.nextSibling,c=u.firstChild,a=u.nextSibling,x=a.firstChild,f=a.nextSibling,m=f.firstChild;return d(s,v(Yt,{size:24,class:"stroke-primary hover:fill-accent"})),d(r,v(Jt,{size:24,class:"stroke-primary hover:fill-accent"})),d(c,v(Qt,{size:24,class:"stroke-primary hover:fill-accent"})),d(x,v(Xt,{size:24,class:"stroke-primary hover:fill-accent"})),d(m,v(Wt,{size:24,class:"stroke-primary hover:fill-accent"})),k(h=>{const _=e()?e()[1].data.link:"#",b=e()?e()[3].data.link:"#",y=e()?e()[4].data.link:"#",g=e()?e()[0].data.link:"#",p=e()?e()[2].data.link:"#";return _!==h._v$&&S(s,"href",h._v$=_),b!==h._v$2&&S(r,"href",h._v$2=b),y!==h._v$3&&S(c,"href",h._v$3=y),g!==h._v$4&&S(x,"href",h._v$4=g),p!==h._v$5&&S(m,"href",h._v$5=p),h},{_v$:void 0,_v$2:void 0,_v$3:void 0,_v$4:void 0,_v$5:void 0}),t})()}const ti=w('
      '),ii=w('
      ');function li(){const e="https://sauron-data.s3.amazonaws.com/associations/",[i,t]=j();return k(()=>{fetch("http://localhost:5011/sauron/backend/association/get/all").then(l=>l.json()).then(l=>t(l))}),(()=>{const l=ti.cloneNode(!0),n=l.firstChild,s=n.firstChild;return d(n,v(T,{get each(){return i()},children:(o,r)=>(()=>{const u=ii.cloneNode(!0),c=u.firstChild;return c.style.setProperty("filter","sepia(100%) hue-rotate(170deg) saturate(3)"),k(a=>{const x=e+o.data.url,f=o.data.name;return x!==a._v$&&S(c,"src",a._v$=x),f!==a._v$2&&S(c,"alt",a._v$2=f),a},{_v$:void 0,_v$2:void 0}),u})()}),s),l})()}const ni=w('
      ');function si(){return(()=>{const e=ni.cloneNode(!0),i=e.firstChild,t=i.nextSibling,l=t.nextSibling,n=l.firstChild,s=n.nextSibling,o=s.firstChild,r=s.nextSibling;return d(i,v(tt,{})),d(t,v(Kt,{})),d(n,v(ei,{})),d(o,v(Rt,{})),d(r,v(li,{})),e})()}const ri=document.getElementById("root");Ge(()=>v(si,{}),ri); diff --git a/index.html b/index.html index d9d9415..fba3ca3 100644 --- a/index.html +++ b/index.html @@ -38,7 +38,7 @@ crossorigin="anonymous" > Vishal Saranathan - +