From 9dc63f06b3e35974ec65552bad21658457e5e175 Mon Sep 17 00:00:00 2001 From: sp Date: Fri, 22 Mar 2024 10:26:39 +0000 Subject: [PATCH] Updates --- assets/{index-Bs3T3l0-.css => index-BMLULsc8.css} | 2 +- assets/index-BlnLNSQl.js | 1 + assets/index-C3eLFIxo.js | 1 - index.html | 4 ++-- sw.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename assets/{index-Bs3T3l0-.css => index-BMLULsc8.css} (79%) create mode 100644 assets/index-BlnLNSQl.js delete mode 100644 assets/index-C3eLFIxo.js diff --git a/assets/index-Bs3T3l0-.css b/assets/index-BMLULsc8.css similarity index 79% rename from assets/index-Bs3T3l0-.css rename to assets/index-BMLULsc8.css index 5cda341..c63592a 100644 --- a/assets/index-Bs3T3l0-.css +++ b/assets/index-BMLULsc8.css @@ -1 +1 @@ -:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.result.svelte-l5y9p7,.chart-container.svelte-l5y9p7{margin-top:20px}.custom-height.svelte-l5y9p7{padding:0 15px;font-size:16px} +:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.result.svelte-n6pjcu,.chart-container.svelte-n6pjcu{margin-top:20px}.custom-height.svelte-n6pjcu{padding:0 15px;font-size:16px}.formula.svelte-n6pjcu{font-family:Times New Roman,Times,serif;font-size:20px} diff --git a/assets/index-BlnLNSQl.js b/assets/index-BlnLNSQl.js new file mode 100644 index 0000000..915d15b --- /dev/null +++ b/assets/index-BlnLNSQl.js @@ -0,0 +1 @@ +var Wo=Object.defineProperty;var qo=(l,s,n)=>s in l?Wo(l,s,{enumerable:!0,configurable:!0,writable:!0,value:n}):l[s]=n;var $l=(l,s,n)=>(qo(l,typeof s!="symbol"?s+"":s,n),n);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))a(f);new MutationObserver(f=>{for(const p of f)if(p.type==="childList")for(const _ of p.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&a(_)}).observe(document,{childList:!0,subtree:!0});function n(f){const p={};return f.integrity&&(p.integrity=f.integrity),f.referrerPolicy&&(p.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?p.credentials="include":f.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function a(f){if(f.ep)return;f.ep=!0;const p=n(f);fetch(f.href,p)}})();function se(){}function Uo(l){return l()}function Mo(){return Object.create(null)}function Ae(l){l.forEach(Uo)}function Po(l){return typeof l=="function"}function Ao(l,s){return l!=l?s==s:l!==s||l&&typeof l=="object"||typeof l=="function"}let tl;function ko(l,s){return l===s?!0:(tl||(tl=document.createElement("a")),tl.href=s,l===tl.href)}function Yo(l){return Object.keys(l).length===0}function el(l){return l??""}function t(l,s){l.appendChild(s)}function ie(l,s,n){l.insertBefore(s,n||null)}function q(l){l.parentNode&&l.parentNode.removeChild(l)}function o(l){return document.createElement(l)}function C(l){return document.createTextNode(l)}function i(){return C(" ")}function v(l,s,n,a){return l.addEventListener(s,n,a),()=>l.removeEventListener(s,n,a)}function e(l,s,n){n==null?l.removeAttribute(s):l.getAttribute(s)!==n&&l.setAttribute(s,n)}function Ko(l){let s;return{p(...n){s=n,s.forEach(a=>l.push(a))},r(){s.forEach(n=>l.splice(l.indexOf(n),1))}}}function d(l){return l===""?null:+l}function Vo(l){return Array.from(l.childNodes)}function S(l,s){s=""+s,l.data!==s&&(l.data=s)}function u(l,s){l.value=s??""}function So(l,s,n){for(let a=0;al.indexOf(a)===-1?s.push(a):n.push(a)),n.forEach(a=>a()),oe=s}const ll=new Set;let es;function Ho(l,s){l&&l.i&&(ll.delete(l),l.i(s))}function ls(l,s,n,a){if(l&&l.o){if(ll.has(l))return;ll.add(l),es.c.push(()=>{ll.delete(l),a&&(n&&l.d(1),a())}),l.o(s)}else a&&a()}function ns(l){l&&l.c()}function Fo(l,s,n){const{fragment:a,after_update:f}=l.$$;a&&a.m(s,n),nl(()=>{const p=l.$$.on_mount.map(Uo).filter(Po);l.$$.on_destroy?l.$$.on_destroy.push(...p):Ae(p),l.$$.on_mount=[]}),f.forEach(nl)}function Go(l,s){const n=l.$$;n.fragment!==null&&(ts(n.after_update),Ae(n.on_destroy),n.fragment&&n.fragment.d(s),n.on_destroy=n.fragment=null,n.ctx=[])}function os(l,s){l.$$.dirty[0]===-1&&(ne.push(l),xo(),l.$$.dirty.fill(0)),l.$$.dirty[s/31|0]|=1<{const K=D.length?D[0]:m;return b.ctx&&f(b.ctx[L],b.ctx[L]=K)&&(!b.skip_bound&&b.bound[L]&&b.bound[L](K),w&&os(l,L)),m}):[],b.update(),w=!0,Ae(b.before_update),b.fragment=a?a(b.ctx):!1,s.target){if(s.hydrate){const L=Vo(s.target);b.fragment&&b.fragment.l(L),L.forEach(q)}else b.fragment&&b.fragment.c();s.intro&&Ho(l.$$.fragment),Fo(l,s.target,s.anchor),Do()}Ue(h)}class zo{constructor(){$l(this,"$$");$l(this,"$$set")}$destroy(){Go(this,1),this.$destroy=se}$on(s,n){if(!Po(n))return se;const a=this.$$.callbacks[s]||(this.$$.callbacks[s]=[]);return a.push(n),()=>{const f=a.indexOf(n);f!==-1&&a.splice(f,1)}}$set(s){this.$$set&&!Yo(s)&&(this.$$.skip_bound=!0,this.$$set(s),this.$$.skip_bound=!1)}}const ss="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ss);function Oo(l){let s;return{c(){s=o("p"),s.textContent="TBD"},m(n,a){ie(n,s,a)},d(n){n&&q(s)}}}function Eo(l){let s;return{c(){s=o("p"),s.innerHTML="PLRMa-NLOS = 31.84 + 21.50 log10(d3D) + 19.00 log10(fc)",e(s,"class","formula svelte-n6pjcu")},m(n,a){ie(n,s,a)},d(n){n&&q(s)}}}function Ro(l){let s;return{c(){s=o("p"),s.textContent="TBD"},m(n,a){ie(n,s,a)},d(n){n&&q(s)}}}function jo(l){let s;return{c(){s=o("p"),s.innerHTML="PLUMa-NLOS(d3D) = 13.54 + 39.08 log10(d3D) + 20 log10(fc) − 0.6 (hUT − 1.5)",e(s,"class","formula svelte-n6pjcu")},m(n,a){ie(n,s,a)},d(n){n&&q(s)}}}function is(l){let s,n,a,f,p,_,Y,h,b,w,L,m,D,K,lt,nt,N,ht,ot,bt,V,T,X,M,F,Z,J,Q,U,De,_t,Pt,He,x,Fe,mt,At,Ge,$,Ie,vt,Dt,ze,tt,We,re,qe,B,et,Ye,Ht,Ke,st,gt,Ft,Ve,H,Xe,yt,It,ln,Ct,nn,ae,on,ue,zt,ce,sn,wt,rn,fe,an,it,Wt,de,un,Lt,cn,qt,pe,fn,Mt,dn,Yt,he,pn,rt,hn,ol,bn,P,at,_n,be,mn,Gt,Kt,_e,vn,kt,gn,Vt,me,yn,St,Cn,ve,wn,ge,Xt,ye,Ln,Bt,Mn,Ce,kn,ut,Zt,we,Sn,Nt,Bn,Jt,Le,Nn,Ot,On,Qt,Me,En,ct,Rn,sl,jn,Et,ft,Tn,ke,Un,O,k,E,Pn,Se,An,A,Dn,Be,Hn,R,Fn,Ne,Gn,j,In,Oe,zn,il,rl,al,Wn,ul,qn,xt,dt,Yn,pt,$t,Ee,Kn,Rt,Vn,te,Re,Xn,jt,Zn,ee,je,Jn,Tt,Qn,cl,xn,Ut,fl,$n,dl,g,Ze,to,pl,hl,eo,bl,_l,lo,ml,vl,no,gl,yl,oo,Cl,wl,so,Ll,Ml,io,kl,Sl,ro,Bl,Nl,ao,Ol,El,Je,uo,Qe,Rl,y,xe,co,jl,Tl,fo,Ul,Pl,po,Al,Dl,ho,Hl,Fl,bo,Gl,Il,_o,zl,Wl,mo,ql,Yl,vo,Kl,Vl,go,Xl,Zl,$e,yo,Te,Co,Jl,wo,Ql,xl,Lo,G=l[25]==="RMa-LOS"&&Oo(),I=l[25]==="RMa-NLOS"&&Eo(),z=l[25]==="UMa-LOS"&&Ro(),W=l[25]==="UMa-NLOS"&&jo();return Ql=Ko(l[46][0]),{c(){s=o("div"),n=o("div"),a=o("h2"),a.textContent="5G Link Budget",f=i(),p=o("div"),_=o("button"),_.textContent="Radio Configuration",Y=i(),h=o("div"),b=o("div"),w=o("label"),w.textContent="Frequency Tx (MHz):",L=i(),m=o("input"),D=i(),K=o("div"),lt=o("label"),lt.textContent="RB count:",nt=i(),N=o("input"),ht=i(),ot=o("div"),bt=i(),V=o("div"),T=o("label"),T.textContent="Select:",X=i(),M=o("select"),F=o("option"),F.textContent="0 - 15kHz",Z=o("option"),Z.textContent="1 - 30kHz",J=o("option"),J.textContent="2 - 60kHz",Q=o("option"),Q.textContent="3 - 120kHz",U=o("option"),U.textContent="4 - 240kHz",De=i(),_t=o("div"),Pt=o("label"),Pt.textContent="Numerolgy:",He=i(),x=o("input"),Fe=i(),mt=o("div"),At=o("label"),At.textContent="Subcarrie Spacing (kHz):",Ge=i(),$=o("input"),Ie=i(),vt=o("div"),Dt=o("label"),Dt.textContent="Thermal Noise:",ze=i(),tt=o("input"),We=i(),re=o("div"),qe=i(),B=o("div"),et=o("button"),et.textContent="NodeB",Ye=i(),Ht=o("h6"),Ht.textContent="Losses & Gains",Ke=i(),st=o("div"),gt=o("div"),Ft=o("label"),Ft.textContent="Cable Loss (dB):",Ve=i(),H=o("input"),Xe=i(),yt=o("div"),It=o("label"),It.textContent="Antenna Gain (dB):",ln=i(),Ct=o("input"),nn=i(),ae=o("h6"),ae.textContent="Tx",on=i(),ue=o("div"),zt=o("div"),ce=o("label"),ce.textContent="Tx Power (dBm):",sn=i(),wt=o("input"),rn=i(),fe=o("h6"),fe.textContent="Rx",an=i(),it=o("div"),Wt=o("div"),de=o("label"),de.textContent="Noise Figure (dB):",un=i(),Lt=o("input"),cn=i(),qt=o("div"),pe=o("label"),pe.textContent="SINR (dB):",fn=i(),Mt=o("input"),dn=i(),Yt=o("div"),he=o("label"),he.textContent="Receiver Sensitivity:",pn=i(),rt=o("input"),hn=i(),ol=o("div"),bn=i(),P=o("div"),at=o("button"),at.textContent="UT",_n=i(),be=o("h6"),be.textContent="Losses & Gains",mn=i(),Gt=o("div"),Kt=o("div"),_e=o("label"),_e.textContent="Cable Loss (dB):",vn=i(),kt=o("input"),gn=i(),Vt=o("div"),me=o("label"),me.textContent="Antenna Gain (dB):",yn=i(),St=o("input"),Cn=i(),ve=o("h6"),ve.textContent="Tx",wn=i(),ge=o("div"),Xt=o("div"),ye=o("label"),ye.textContent="Tx Power (dBm):",Ln=i(),Bt=o("input"),Mn=i(),Ce=o("h6"),Ce.textContent="Rx",kn=i(),ut=o("div"),Zt=o("div"),we=o("label"),we.textContent="Noise Figure (dB):",Sn=i(),Nt=o("input"),Bn=i(),Jt=o("div"),Le=o("label"),Le.textContent="SINR (dB):",Nn=i(),Ot=o("input"),On=i(),Qt=o("div"),Me=o("label"),Me.textContent="Receiver Sensitivity:",En=i(),ct=o("input"),Rn=i(),sl=o("div"),jn=i(),Et=o("div"),ft=o("button"),ft.textContent="Path Loss Model",Tn=i(),ke=o("h6"),ke.textContent="Models",Un=i(),O=o("div"),k=o("div"),E=o("input"),Pn=i(),Se=o("label"),Se.textContent="RMs-LOS",An=i(),A=o("input"),Dn=i(),Be=o("label"),Be.textContent="RMa-NLOS",Hn=i(),R=o("input"),Fn=i(),Ne=o("label"),Ne.textContent="UMs-LOS",Gn=i(),j=o("input"),In=i(),Oe=o("label"),Oe.textContent="UMa-NLOS",zn=i(),G&&G.c(),il=i(),I&&I.c(),rl=i(),z&&z.c(),al=i(),W&&W.c(),Wn=i(),ul=o("div"),qn=i(),xt=o("div"),dt=o("button"),dt.textContent="Propagation Loss & Margin",Yn=i(),pt=o("div"),$t=o("div"),Ee=o("label"),Ee.textContent="Interference Margin (dB):",Kn=i(),Rt=o("input"),Vn=i(),te=o("div"),Re=o("label"),Re.textContent="Fading Margin (dB):",Xn=i(),jt=o("input"),Zn=i(),ee=o("div"),je=o("label"),je.textContent="Penetration Loss (dB):",Jn=i(),Tt=o("input"),Qn=i(),cl=o("h4"),cl.textContent="Maximum Allowable Pathloss",xn=i(),Ut=o("table"),fl=o("thead"),fl.innerHTML='Path Tx Power Cable Loss Tx Antenna Gain Tx Fading Margin Interference Margin Cable Loss Rx Antenna Gain Rx Rx Sensitivity MAPL',$n=i(),dl=o("tbody"),g=o("tr"),Ze=o("th"),Ze.textContent="DL",to=i(),pl=o("td"),hl=C(l[0]),eo=i(),bl=o("td"),_l=C(l[1]),lo=i(),ml=o("td"),vl=C(l[2]),no=i(),gl=o("td"),yl=C(l[7]),oo=i(),Cl=o("td"),wl=C(l[6]),so=i(),Ll=o("td"),Ml=C(l[4]),io=i(),kl=o("td"),Sl=C(l[5]),ro=i(),Bl=o("td"),Nl=C(l[10]),ao=i(),Ol=o("td"),El=C(l[20]),uo=i(),Qe=o("tbody"),Rl=o("tr"),Rl.innerHTML="",y=o("tr"),xe=o("th"),xe.textContent="UL",co=i(),jl=o("td"),Tl=C(l[3]),fo=i(),Ul=o("td"),Pl=C(l[4]),po=i(),Al=o("td"),Dl=C(l[5]),ho=i(),Hl=o("td"),Fl=C(l[7]),bo=i(),Gl=o("td"),Il=C(l[6]),_o=i(),zl=o("td"),Wl=C(l[1]),mo=i(),ql=o("td"),Yl=C(l[2]),vo=i(),Kl=o("td"),Vl=C(l[9]),go=i(),Xl=o("td"),Zl=C(l[21]),yo=i(),Te=o("h4"),Co=C("Cell Radius: "),Jl=C(l[22]),wo=C(" m"),e(_,"class","btn btn-outline-secondary custom-height col-3 svelte-n6pjcu"),e(_,"type","button"),e(_,"data-bs-toggle","collapse"),e(_,"data-bs-target","#channel"),e(_,"aria-expanded","false"),e(_,"aria-controls","collapseExample"),e(w,"for","centerFrequency"),e(w,"class","form-label"),e(m,"type","number"),e(m,"class","form-control"),e(b,"class","col-3"),e(lt,"for","noRBs"),e(lt,"class","form-label"),e(N,"type","number"),e(N,"class","form-control"),e(K,"class","col-3"),e(ot,"class","col-6"),e(T,"for","numerology"),e(T,"class","form-label"),F.__value="0",u(F,F.__value),Z.__value="1",u(Z,Z.__value),J.__value="2",u(J,J.__value),Q.__value="3",u(Q,Q.__value),U.__value="3",u(U,U.__value),e(M,"class","form-select col-3"),e(M,"aria-label","Default select example"),l[18]===void 0&&nl(()=>l[29].call(M)),e(V,"class","col-3"),e(Pt,"for","numerology"),e(Pt,"class","form-label"),e(x,"type","number"),e(x,"class","form-control"),x.disabled=!0,e(_t,"class","col-3"),e(At,"for","subCarrierSpacing"),e(At,"class","form-label"),e($,"type","number"),e($,"class","form-control"),$.disabled=!0,e(mt,"class","col-3"),e(Dt,"for","thermalNoise"),e(Dt,"class","form-label"),e(tt,"type","number"),e(tt,"class","form-control"),tt.disabled=!0,e(vt,"class","col-3"),e(h,"class","row collapse"),e(h,"id","channel"),e(p,"class","row"),e(re,"class","w-100 mb-3"),e(et,"class","btn btn-outline-secondary custom-height col-3 svelte-n6pjcu"),e(et,"type","button"),e(et,"data-bs-toggle","collapse"),e(et,"data-bs-target","#nodeB"),e(et,"aria-expanded","false"),e(et,"aria-controls","collapseExample"),e(Ht,"class","collapse"),e(Ht,"id","nodeB"),e(Ft,"for","transmitCableLoss"),e(Ft,"class","form-label"),e(H,"type","number"),e(H,"class","form-control"),e(gt,"class","col-3"),e(It,"for","transmitterGain"),e(It,"class","form-label"),e(Ct,"type","number"),e(Ct,"class","form-control"),e(yt,"class","col-3"),e(st,"class","row collapse"),e(st,"id","nodeB"),e(ae,"class","collapse"),e(ae,"id","nodeB"),e(ce,"for","transmitPower"),e(ce,"class","form-label"),e(wt,"type","number"),e(wt,"class","form-control"),e(zt,"class","col-3"),e(ue,"class","row collapse"),e(ue,"id","nodeB"),e(fe,"class","collapse"),e(fe,"id","nodeB"),e(de,"for","noiseFigureNodeB"),e(de,"class","form-label"),e(Lt,"type","number"),e(Lt,"class","form-control"),e(Wt,"class","col-3"),e(pe,"for","sinrNodeB"),e(pe,"class","form-label"),e(Mt,"type","number"),e(Mt,"class","form-control"),e(qt,"class","col-3"),e(he,"for","rxSensitivityNodeB"),e(he,"class","form-label"),e(rt,"type","number"),e(rt,"class","form-control"),rt.disabled=!0,e(Yt,"class","col-3"),e(it,"class","row collapse"),e(it,"id","nodeB"),e(B,"class","row"),e(ol,"class","w-100 mb-3"),e(at,"class","btn btn-outline-secondary custom-height col-3 svelte-n6pjcu"),e(at,"type","button"),e(at,"data-bs-toggle","collapse"),e(at,"data-bs-target","#ueconf"),e(at,"aria-expanded","false"),e(at,"aria-controls","collapseExample"),e(be,"class","collapse"),e(be,"id","ueconf"),e(_e,"for","transmitCableLoss"),e(_e,"class","form-label"),e(kt,"type","number"),e(kt,"class","form-control"),e(Kt,"class","col-3"),e(me,"for","transmitterGain"),e(me,"class","form-label"),e(St,"type","number"),e(St,"class","form-control"),e(Vt,"class","col-3"),e(Gt,"class","row collapse"),e(Gt,"id","ueconf"),e(ve,"class","collapse"),e(ve,"id","ueconf"),e(ye,"for","transmitPowerUT"),e(ye,"class","form-label"),e(Bt,"type","number"),e(Bt,"class","form-control"),e(Xt,"class","col-3"),e(ge,"class","row collapse"),e(ge,"id","ueconf"),e(Ce,"class","collapse"),e(Ce,"id","ueconf"),e(we,"for","noiseFigureUE"),e(we,"class","form-label"),e(Nt,"type","number"),e(Nt,"class","form-control"),e(Zt,"class","col-3"),e(Le,"for","sinrUE"),e(Le,"class","form-label"),e(Ot,"type","number"),e(Ot,"class","form-control"),e(Jt,"class","col-3"),e(Me,"for","rxSensitivityUE"),e(Me,"class","form-label"),e(ct,"type","number"),e(ct,"class","form-control"),ct.disabled=!0,e(Qt,"class","col-3"),e(ut,"class","row collapse"),e(ut,"id","ueconf"),e(P,"class","row"),e(sl,"class","w-100 mb-3"),e(ft,"class","btn btn-outline-secondary custom-height col-3 svelte-n6pjcu"),e(ft,"type","button"),e(ft,"data-bs-toggle","collapse"),e(ft,"data-bs-target","#pathlosstype"),e(ft,"aria-expanded","false"),e(ft,"aria-controls","collapseExample"),e(ke,"class","collapse"),e(ke,"id","pathlosstype"),e(E,"type","radio"),e(E,"class","btn-check"),e(E,"name","btnradio"),e(E,"id","btnradio1"),e(E,"autocomplete","off"),E.disabled=!0,E.__value="RMa-LOS",u(E,E.__value),e(Se,"class","btn btn-outline-secondary"),e(Se,"for","btnradio1"),e(A,"type","radio"),e(A,"class","btn-check"),e(A,"name","btnradio"),e(A,"id","btnradio2"),e(A,"autocomplete","off"),A.__value="RMa-NLOS",u(A,A.__value),e(Be,"class","btn btn-outline-secondary"),e(Be,"for","btnradio2"),e(R,"type","radio"),e(R,"class","btn-check"),e(R,"name","btnradio"),e(R,"id","btnradio3"),e(R,"autocomplete","off"),R.disabled=!0,R.__value="UMa-LOS",u(R,R.__value),e(Ne,"class","btn btn-outline-secondary"),e(Ne,"for","btnradio3"),e(j,"type","radio"),e(j,"class","btn-check"),e(j,"name","btnradio"),e(j,"id","btnradio4"),e(j,"autocomplete","off"),j.checked=!0,j.__value="UMa-NLOS",u(j,j.__value),e(Oe,"class","btn btn-outline-secondary"),e(Oe,"for","btnradio4"),e(k,"class","btn-group"),e(k,"role","group"),e(O,"class","row collapse"),e(O,"id","pathlosstype"),e(Et,"class","row"),e(ul,"class","w-100 mb-3"),e(dt,"class","btn btn-outline-secondary custom-height col-3 svelte-n6pjcu"),e(dt,"type","button"),e(dt,"data-bs-toggle","collapse"),e(dt,"data-bs-target","#losses"),e(dt,"aria-expanded","false"),e(dt,"aria-controls","collapseExample"),e(Ee,"for","interferenceMargin"),e(Ee,"class","form-label"),e(Rt,"type","number"),e(Rt,"class","form-control"),e($t,"class","col-3"),e(Re,"for","fadingMargin"),e(Re,"class","form-label"),e(jt,"type","number"),e(jt,"class","form-control"),e(te,"class","col-3"),e(je,"for","penetrationLoss"),e(je,"class","form-label"),e(Tt,"type","number"),e(Tt,"class","form-control"),e(ee,"class","col-3"),e(pt,"class","row collapse"),e(pt,"id","losses"),e(xt,"class","row"),e(Ze,"scope","row"),e(g,"class",Je=el(l[23])+" svelte-n6pjcu"),e(xe,"scope","row"),e(y,"class",$e=el(l[24])+" svelte-n6pjcu"),e(Ut,"class","table"),e(n,"class","row"),e(s,"class","container"),Ql.p(E,A,R,j)},m(r,c){ie(r,s,c),t(s,n),t(n,a),t(n,f),t(n,p),t(p,_),t(p,Y),t(p,h),t(h,b),t(b,w),t(b,L),t(b,m),u(m,l[11]),t(h,D),t(h,K),t(K,lt),t(K,nt),t(K,N),u(N,l[12]),t(h,ht),t(h,ot),t(h,bt),t(h,V),t(V,T),t(V,X),t(V,M),t(M,F),t(M,Z),t(M,J),t(M,Q),t(M,U),So(M,l[18],!0),t(h,De),t(h,_t),t(_t,Pt),t(_t,He),t(_t,x),u(x,l[18]),t(h,Fe),t(h,mt),t(mt,At),t(mt,Ge),t(mt,$),u($,l[19]),t(h,Ie),t(h,vt),t(vt,Dt),t(vt,ze),t(vt,tt),u(tt,l[13]),t(n,We),t(n,re),t(n,qe),t(n,B),t(B,et),t(B,Ye),t(B,Ht),t(B,Ke),t(B,st),t(st,gt),t(gt,Ft),t(gt,Ve),t(gt,H),u(H,l[1]),t(st,Xe),t(st,yt),t(yt,It),t(yt,ln),t(yt,Ct),u(Ct,l[2]),t(B,nn),t(B,ae),t(B,on),t(B,ue),t(ue,zt),t(zt,ce),t(zt,sn),t(zt,wt),u(wt,l[0]),t(B,rn),t(B,fe),t(B,an),t(B,it),t(it,Wt),t(Wt,de),t(Wt,un),t(Wt,Lt),u(Lt,l[16]),t(it,cn),t(it,qt),t(qt,pe),t(qt,fn),t(qt,Mt),u(Mt,l[14]),t(it,dn),t(it,Yt),t(Yt,he),t(Yt,pn),t(Yt,rt),u(rt,l[9]),t(n,hn),t(n,ol),t(n,bn),t(n,P),t(P,at),t(P,_n),t(P,be),t(P,mn),t(P,Gt),t(Gt,Kt),t(Kt,_e),t(Kt,vn),t(Kt,kt),u(kt,l[4]),t(Gt,gn),t(Gt,Vt),t(Vt,me),t(Vt,yn),t(Vt,St),u(St,l[5]),t(P,Cn),t(P,ve),t(P,wn),t(P,ge),t(ge,Xt),t(Xt,ye),t(Xt,Ln),t(Xt,Bt),u(Bt,l[3]),t(P,Mn),t(P,Ce),t(P,kn),t(P,ut),t(ut,Zt),t(Zt,we),t(Zt,Sn),t(Zt,Nt),u(Nt,l[17]),t(ut,Bn),t(ut,Jt),t(Jt,Le),t(Jt,Nn),t(Jt,Ot),u(Ot,l[15]),t(ut,On),t(ut,Qt),t(Qt,Me),t(Qt,En),t(Qt,ct),u(ct,l[10]),t(n,Rn),t(n,sl),t(n,jn),t(n,Et),t(Et,ft),t(Et,Tn),t(Et,ke),t(Et,Un),t(Et,O),t(O,k),t(k,E),E.checked=E.__value===l[25],t(k,Pn),t(k,Se),t(k,An),t(k,A),A.checked=A.__value===l[25],t(k,Dn),t(k,Be),t(k,Hn),t(k,R),R.checked=R.__value===l[25],t(k,Fn),t(k,Ne),t(k,Gn),t(k,j),j.checked=j.__value===l[25],t(k,In),t(k,Oe),t(O,zn),G&&G.m(O,null),t(O,il),I&&I.m(O,null),t(O,rl),z&&z.m(O,null),t(O,al),W&&W.m(O,null),t(n,Wn),t(n,ul),t(n,qn),t(n,xt),t(xt,dt),t(xt,Yn),t(xt,pt),t(pt,$t),t($t,Ee),t($t,Kn),t($t,Rt),u(Rt,l[6]),t(pt,Vn),t(pt,te),t(te,Re),t(te,Xn),t(te,jt),u(jt,l[7]),t(pt,Zn),t(pt,ee),t(ee,je),t(ee,Jn),t(ee,Tt),u(Tt,l[8]),t(n,Qn),t(n,cl),t(n,xn),t(n,Ut),t(Ut,fl),t(Ut,$n),t(Ut,dl),t(dl,g),t(g,Ze),t(g,to),t(g,pl),t(pl,hl),t(g,eo),t(g,bl),t(bl,_l),t(g,lo),t(g,ml),t(ml,vl),t(g,no),t(g,gl),t(gl,yl),t(g,oo),t(g,Cl),t(Cl,wl),t(g,so),t(g,Ll),t(Ll,Ml),t(g,io),t(g,kl),t(kl,Sl),t(g,ro),t(g,Bl),t(Bl,Nl),t(g,ao),t(g,Ol),t(Ol,El),t(Ut,uo),t(Ut,Qe),t(Qe,Rl),t(Qe,y),t(y,xe),t(y,co),t(y,jl),t(jl,Tl),t(y,fo),t(y,Ul),t(Ul,Pl),t(y,po),t(y,Al),t(Al,Dl),t(y,ho),t(y,Hl),t(Hl,Fl),t(y,bo),t(y,Gl),t(Gl,Il),t(y,_o),t(y,zl),t(zl,Wl),t(y,mo),t(y,ql),t(ql,Yl),t(y,vo),t(y,Kl),t(Kl,Vl),t(y,go),t(y,Xl),t(Xl,Zl),t(n,yo),t(n,Te),t(Te,Co),t(Te,Jl),t(Te,wo),xl||(Lo=[v(m,"input",l[27]),v(N,"input",l[28]),v(M,"change",l[29]),v(x,"input",l[30]),v($,"input",l[31]),v(tt,"input",l[32]),v(H,"input",l[33]),v(Ct,"input",l[34]),v(wt,"input",l[35]),v(Lt,"input",l[36]),v(Mt,"input",l[37]),v(rt,"input",l[38]),v(kt,"input",l[39]),v(St,"input",l[40]),v(Bt,"input",l[41]),v(Nt,"input",l[42]),v(Ot,"input",l[43]),v(ct,"input",l[44]),v(E,"change",l[45]),v(A,"change",l[47]),v(R,"change",l[48]),v(j,"change",l[49]),v(Rt,"input",l[50]),v(jt,"input",l[51]),v(Tt,"input",l[52])],xl=!0)},p(r,c){c[0]&2048&&d(m.value)!==r[11]&&u(m,r[11]),c[0]&4096&&d(N.value)!==r[12]&&u(N,r[12]),c[0]&262144&&So(M,r[18]),c[0]&262144&&d(x.value)!==r[18]&&u(x,r[18]),c[0]&524288&&d($.value)!==r[19]&&u($,r[19]),c[0]&8192&&d(tt.value)!==r[13]&&u(tt,r[13]),c[0]&2&&d(H.value)!==r[1]&&u(H,r[1]),c[0]&4&&d(Ct.value)!==r[2]&&u(Ct,r[2]),c[0]&1&&d(wt.value)!==r[0]&&u(wt,r[0]),c[0]&65536&&d(Lt.value)!==r[16]&&u(Lt,r[16]),c[0]&16384&&d(Mt.value)!==r[14]&&u(Mt,r[14]),c[0]&512&&d(rt.value)!==r[9]&&u(rt,r[9]),c[0]&16&&d(kt.value)!==r[4]&&u(kt,r[4]),c[0]&32&&d(St.value)!==r[5]&&u(St,r[5]),c[0]&8&&d(Bt.value)!==r[3]&&u(Bt,r[3]),c[0]&131072&&d(Nt.value)!==r[17]&&u(Nt,r[17]),c[0]&32768&&d(Ot.value)!==r[15]&&u(Ot,r[15]),c[0]&1024&&d(ct.value)!==r[10]&&u(ct,r[10]),c[0]&33554432&&(E.checked=E.__value===r[25]),c[0]&33554432&&(A.checked=A.__value===r[25]),c[0]&33554432&&(R.checked=R.__value===r[25]),c[0]&33554432&&(j.checked=j.__value===r[25]),r[25]==="RMa-LOS"?G||(G=Oo(),G.c(),G.m(O,il)):G&&(G.d(1),G=null),r[25]==="RMa-NLOS"?I||(I=Eo(),I.c(),I.m(O,rl)):I&&(I.d(1),I=null),r[25]==="UMa-LOS"?z||(z=Ro(),z.c(),z.m(O,al)):z&&(z.d(1),z=null),r[25]==="UMa-NLOS"?W||(W=jo(),W.c(),W.m(O,null)):W&&(W.d(1),W=null),c[0]&64&&d(Rt.value)!==r[6]&&u(Rt,r[6]),c[0]&128&&d(jt.value)!==r[7]&&u(jt,r[7]),c[0]&256&&d(Tt.value)!==r[8]&&u(Tt,r[8]),c[0]&1&&S(hl,r[0]),c[0]&2&&S(_l,r[1]),c[0]&4&&S(vl,r[2]),c[0]&128&&S(yl,r[7]),c[0]&64&&S(wl,r[6]),c[0]&16&&S(Ml,r[4]),c[0]&32&&S(Sl,r[5]),c[0]&1024&&S(Nl,r[10]),c[0]&1048576&&S(El,r[20]),c[0]&8388608&&Je!==(Je=el(r[23])+" svelte-n6pjcu")&&e(g,"class",Je),c[0]&8&&S(Tl,r[3]),c[0]&16&&S(Pl,r[4]),c[0]&32&&S(Dl,r[5]),c[0]&128&&S(Fl,r[7]),c[0]&64&&S(Il,r[6]),c[0]&2&&S(Wl,r[1]),c[0]&4&&S(Yl,r[2]),c[0]&512&&S(Vl,r[9]),c[0]&2097152&&S(Zl,r[21]),c[0]&16777216&&$e!==($e=el(r[24])+" svelte-n6pjcu")&&e(y,"class",$e),c[0]&4194304&&S(Jl,r[22])},i:se,o:se,d(r){r&&q(s),G&&G.d(),I&&I.d(),z&&z.d(),W&&W.d(),Ql.r(),xl=!1,Ae(Lo)}}}function To(l,s){return Math.round(l*Math.pow(10,s))/Math.pow(10,s)}function rs(l,s,n){let a=27,f=2,p=15,_=23,Y=0,h=0,b=10,w=6,L=15,m=-100,D=-100,K=500,lt=3600,nt=1,N=0,ht=-6,ot=-6,bt=4,V=10,T="1",X=0,M=0,F=0,Z=0,J="",Q="",U="RMa-LOS";function De(H,Xe,yt){return Math.pow(10,(H-13.54-20*Math.log10(Xe/1e3)+.6*(yt-1.5))/39.08)}Jo(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/service-worker.js").then(H=>console.log("Service Worker registered",H)).catch(H=>console.log("Service Worker registration failed:",H))});const _t=[[]];function Pt(){lt=d(this.value),n(11,lt)}function He(){nt=d(this.value),n(12,nt)}function x(){T=Xo(this),n(18,T)}function Fe(){T=d(this.value),n(18,T)}function mt(){X=d(this.value),n(19,X),n(18,T)}function At(){N=d(this.value),n(13,N),n(19,X),n(12,nt),n(18,T)}function Ge(){f=d(this.value),n(1,f)}function $(){p=d(this.value),n(2,p)}function Ie(){a=d(this.value),n(0,a)}function vt(){bt=d(this.value),n(16,bt)}function Dt(){ht=d(this.value),n(14,ht)}function ze(){m=d(this.value),n(9,m),n(13,N),n(14,ht),n(16,bt),n(19,X),n(12,nt),n(18,T)}function tt(){Y=d(this.value),n(4,Y)}function We(){h=d(this.value),n(5,h)}function re(){_=d(this.value),n(3,_)}function qe(){V=d(this.value),n(17,V)}function B(){ot=d(this.value),n(15,ot)}function et(){D=d(this.value),n(10,D),n(13,N),n(15,ot),n(17,V),n(19,X),n(12,nt),n(18,T)}function Ye(){U=this.__value,n(25,U)}function Ht(){U=this.__value,n(25,U)}function Ke(){U=this.__value,n(25,U)}function st(){U=this.__value,n(25,U)}function gt(){b=d(this.value),n(6,b)}function Ft(){w=d(this.value),n(7,w)}function Ve(){L=d(this.value),n(8,L)}return l.$$.update=()=>{l.$$.dirty[0]&262144&&n(19,X=15*Math.pow(2,T)),l.$$.dirty[0]&455,l.$$.dirty[0]&528384&&n(13,N=To(-174+10*Math.log10(X*1e3*12*nt),2)),l.$$.dirty[0]&172032&&n(10,D=N+ot+V),l.$$.dirty[0]&1223&&n(20,M=a-f+p-w-b-D),l.$$.dirty[0]&90112&&n(9,m=N+ht+bt),l.$$.dirty[0]&766&&n(21,F=_-Y+h-w-b+p-f-m),l.$$.dirty[0]&3145728&&(M<=F?n(26,Z=M):n(26,Z=F)),l.$$.dirty[0]&67110912&&n(22,K=To(De(Z,lt,1.5),2)),l.$$.dirty[0]&1049799,l.$$.dirty[0]&2097918,l.$$.dirty[0]&3145728&&(MF?(n(23,J="table-danger"),n(24,Q="table-success")):(n(23,J="table-success"),n(24,Q="table-success")))},[a,f,p,_,Y,h,b,w,L,m,D,lt,nt,N,ht,ot,bt,V,T,X,M,F,K,J,Q,U,Z,Pt,He,x,Fe,mt,At,Ge,$,Ie,vt,Dt,ze,tt,We,re,qe,B,et,Ye,_t,Ht,Ke,st,gt,Ft,Ve]}class as extends zo{constructor(s){super(),Io(this,s,rs,is,Ao,{},null,[-1,-1,-1])}}function us(l){let s,n,a,f,p,_,Y,h,b,w,L;return w=new as({}),{c(){s=o("script"),s.innerHTML="",a=o("link"),f=o("link"),p=o("link"),_=o("script"),_.innerHTML="",h=o("link"),b=i(),ns(w.$$.fragment),document.title="Link Budget App",ko(s.src,n="https://cdn.jsdelivr.net/npm/chart.js")||e(s,"src",n),e(a,"rel","stylesheet"),e(a,"href","https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700"),e(f,"rel","stylesheet"),e(f,"href","https://fonts.googleapis.com/css?family=Roboto+Mono"),e(p,"rel","stylesheet"),e(p,"href","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"),ko(_.src,Y="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js")||e(_,"src",Y),e(_,"integrity","sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"),e(_,"crossorigin","anonymous"),e(h,"href","https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"),e(h,"rel","stylesheet"),e(h,"integrity","sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"),e(h,"crossorigin","anonymous")},m(m,D){t(document.head,s),t(document.head,a),t(document.head,f),t(document.head,p),t(document.head,_),t(document.head,h),ie(m,b,D),Fo(w,m,D),L=!0},p:se,i(m){L||(Ho(w.$$.fragment,m),L=!0)},o(m){ls(w.$$.fragment,m),L=!1},d(m){m&&q(b),q(s),q(a),q(f),q(p),q(_),q(h),Go(w,m)}}}class cs extends zo{constructor(s){super(),Io(this,s,null,us,Ao,{})}}new cs({target:document.getElementById("app")}); diff --git a/assets/index-C3eLFIxo.js b/assets/index-C3eLFIxo.js deleted file mode 100644 index 5f6cbba..0000000 --- a/assets/index-C3eLFIxo.js +++ /dev/null @@ -1 +0,0 @@ -var ao=Object.defineProperty;var uo=(e,s,o)=>s in e?ao(e,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[s]=o;var Tl=(e,s,o)=>(uo(e,typeof s!="symbol"?s+"":s,o),o);(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))a(d);new MutationObserver(d=>{for(const p of d)if(p.type==="childList")for(const m of p.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&a(m)}).observe(document,{childList:!0,subtree:!0});function o(d){const p={};return d.integrity&&(p.integrity=d.integrity),d.referrerPolicy&&(p.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?p.credentials="include":d.crossOrigin==="anonymous"?p.credentials="omit":p.credentials="same-origin",p}function a(d){if(d.ep)return;d.ep=!0;const p=o(d);fetch(d.href,p)}})();function Yt(){}function xn(e){return e()}function Kn(){return Object.create(null)}function ve(e){e.forEach(xn)}function $n(e){return typeof e=="function"}function to(e,s){return e!=e?s==s:e!==s||e&&typeof e=="object"||typeof e=="function"}let Oe;function Vn(e,s){return e===s?!0:(Oe||(Oe=document.createElement("a")),Oe.href=s,e===Oe.href)}function co(e){return Object.keys(e).length===0}function Ue(e){return e??""}function t(e,s){e.appendChild(s)}function eo(e,s,o){e.insertBefore(s,o||null)}function et(e){e.parentNode&&e.parentNode.removeChild(e)}function n(e){return document.createElement(e)}function y(e){return document.createTextNode(e)}function i(){return y(" ")}function C(e,s,o,a){return e.addEventListener(s,o,a),()=>e.removeEventListener(s,o,a)}function l(e,s,o){o==null?e.removeAttribute(s):e.getAttribute(s)!==o&&e.setAttribute(s,o)}function f(e){return e===""?null:+e}function fo(e){return Array.from(e.childNodes)}function M(e,s){s=""+s,e.data!==s&&(e.data=s)}function u(e,s){e.value=s??""}function Xn(e,s,o){for(let a=0;ae.indexOf(a)===-1?s.push(a):o.push(a)),o.forEach(a=>a()),qt=s}const He=new Set;let yo;function no(e,s){e&&e.i&&(He.delete(e),e.i(s))}function wo(e,s,o,a){if(e&&e.o){if(He.has(e))return;He.add(e),yo.c.push(()=>{He.delete(e),a&&(o&&e.d(1),a())}),e.o(s)}else a&&a()}function Co(e){e&&e.c()}function oo(e,s,o){const{fragment:a,after_update:d}=e.$$;a&&a.m(s,o),Fe(()=>{const p=e.$$.on_mount.map(xn).filter($n);e.$$.on_destroy?e.$$.on_destroy.push(...p):ve(p),e.$$.on_mount=[]}),d.forEach(Fe)}function so(e,s){const o=e.$$;o.fragment!==null&&(go(o.after_update),ve(o.on_destroy),o.fragment&&o.fragment.d(s),o.on_destroy=o.fragment=null,o.ctx=[])}function Lo(e,s){e.$$.dirty[0]===-1&&(Wt.push(e),_o(),e.$$.dirty.fill(0)),e.$$.dirty[s/31|0]|=1<{const j=T.length?T[0]:_;return b.ctx&&d(b.ctx[L],b.ctx[L]=j)&&(!b.skip_bound&&b.bound[L]&&b.bound[L](j),w&&Lo(e,L)),_}):[],b.update(),w=!0,ve(b.before_update),b.fragment=a?a(b.ctx):!1,s.target){if(s.hydrate){const L=fo(s.target);b.fragment&&b.fragment.l(L),L.forEach(et)}else b.fragment&&b.fragment.c();s.intro&&no(e.$$.fragment),oo(e,s.target,s.anchor),lo()}me(h)}class ro{constructor(){Tl(this,"$$");Tl(this,"$$set")}$destroy(){so(this,1),this.$destroy=Yt}$on(s,o){if(!$n(o))return Yt;const a=this.$$.callbacks[s]||(this.$$.callbacks[s]=[]);return a.push(o),()=>{const d=a.indexOf(o);d!==-1&&a.splice(d,1)}}$set(s){this.$$set&&!co(s)&&(this.$$.skip_bound=!0,this.$$set(s),this.$$.skip_bound=!1)}}const Bo="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Bo);function Mo(e){let s,o,a,d,p,m,R,h,b,w,L,_,T,j,q,Y,k,lt,K,nt,A,S,O,B,P,U,H,F,ot,ge,st,Ct,ye,G,we,it,Lt,Ce,I,Le,rt,Bt,Be,D,Me,Kt,Ne,N,z,ke,W,Se,V,Mt,Vt,jl,at,Al,kt,Xt,Ol,ut,Ul,Zt,Hl,Jt,St,Qt,Fl,ct,Gl,xt,Il,X,Et,$t,Dl,dt,zl,Tt,te,Wl,ft,ql,Pt,ee,Yl,Z,Kl,Ge,Vl,E,J,Xl,le,Zl,Nt,Rt,ne,Jl,pt,Ql,jt,oe,xl,ht,$l,se,tn,ie,At,re,en,bt,ln,ae,nn,Q,Ot,ue,on,mt,sn,Ut,ce,rn,_t,an,Ht,de,un,x,cn,Ie,dn,Ee,fn,De,pn,Ft,$,hn,tt,Gt,fe,bn,vt,mn,It,pe,_n,gt,vn,Dt,he,gn,yt,yn,ze,wn,wt,We,Cn,qe,v,Te,Ln,Ye,Ke,Bn,Ve,Xe,Mn,Ze,Je,Nn,Qe,xe,kn,$e,tl,Sn,el,ll,En,nl,ol,Tn,sl,il,Pn,rl,al,Pe,Rn,Re,ul,g,je,jn,cl,dl,An,fl,pl,On,hl,bl,Un,ml,_l,Hn,vl,gl,Fn,yl,wl,Gn,Cl,Ll,In,Bl,Ml,Dn,Nl,kl,Ae,zn,be,Wn,Sl,qn,El,Yn;return{c(){s=n("div"),o=n("div"),a=n("h2"),a.textContent="5G Link Budget",d=i(),p=n("div"),m=n("button"),m.textContent="Radio Configuration",R=i(),h=n("div"),b=n("div"),w=n("label"),w.textContent="Frequency Tx (MHz):",L=i(),_=n("input"),T=i(),j=n("div"),q=n("label"),q.textContent="RB count:",Y=i(),k=n("input"),lt=i(),K=n("div"),nt=i(),A=n("div"),S=n("label"),S.textContent="Select:",O=i(),B=n("select"),P=n("option"),P.textContent="0 - 15kHz",U=n("option"),U.textContent="1 - 30kHz",H=n("option"),H.textContent="2 - 60kHz",F=n("option"),F.textContent="3 - 120kHz",ot=n("option"),ot.textContent="4 - 240kHz",ge=i(),st=n("div"),Ct=n("label"),Ct.textContent="Numerolgy:",ye=i(),G=n("input"),we=i(),it=n("div"),Lt=n("label"),Lt.textContent="Subcarrie Spacing (kHz):",Ce=i(),I=n("input"),Le=i(),rt=n("div"),Bt=n("label"),Bt.textContent="Thermal Noise:",Be=i(),D=n("input"),Me=i(),Kt=n("div"),Ne=i(),N=n("div"),z=n("button"),z.textContent="NodeB",ke=i(),W=n("h6"),W.textContent="Losses & Gains",Se=i(),V=n("div"),Mt=n("div"),Vt=n("label"),Vt.textContent="Cable Loss (dB):",jl=i(),at=n("input"),Al=i(),kt=n("div"),Xt=n("label"),Xt.textContent="Antenna Gain (dB):",Ol=i(),ut=n("input"),Ul=i(),Zt=n("h6"),Zt.textContent="Tx",Hl=i(),Jt=n("div"),St=n("div"),Qt=n("label"),Qt.textContent="Tx Power (dBm):",Fl=i(),ct=n("input"),Gl=i(),xt=n("h6"),xt.textContent="Rx",Il=i(),X=n("div"),Et=n("div"),$t=n("label"),$t.textContent="Noise Figure (dB):",Dl=i(),dt=n("input"),zl=i(),Tt=n("div"),te=n("label"),te.textContent="SINR (dB):",Wl=i(),ft=n("input"),ql=i(),Pt=n("div"),ee=n("label"),ee.textContent="Receiver Sensitivity:",Yl=i(),Z=n("input"),Kl=i(),Ge=n("div"),Vl=i(),E=n("div"),J=n("button"),J.textContent="UT",Xl=i(),le=n("h6"),le.textContent="Losses & Gains",Zl=i(),Nt=n("div"),Rt=n("div"),ne=n("label"),ne.textContent="Cable Loss (dB):",Jl=i(),pt=n("input"),Ql=i(),jt=n("div"),oe=n("label"),oe.textContent="Antenna Gain (dB):",xl=i(),ht=n("input"),$l=i(),se=n("h6"),se.textContent="Tx",tn=i(),ie=n("div"),At=n("div"),re=n("label"),re.textContent="Tx Power (dBm):",en=i(),bt=n("input"),ln=i(),ae=n("h6"),ae.textContent="Rx",nn=i(),Q=n("div"),Ot=n("div"),ue=n("label"),ue.textContent="Noise Figure (dB):",on=i(),mt=n("input"),sn=i(),Ut=n("div"),ce=n("label"),ce.textContent="SINR (dB):",rn=i(),_t=n("input"),an=i(),Ht=n("div"),de=n("label"),de.textContent="Receiver Sensitivity:",un=i(),x=n("input"),cn=i(),Ie=n("div"),dn=i(),Ee=n("div"),Ee.innerHTML='
Models
',fn=i(),De=n("div"),pn=i(),Ft=n("div"),$=n("button"),$.textContent="Propagation Loss & Margin",hn=i(),tt=n("div"),Gt=n("div"),fe=n("label"),fe.textContent="Interference Margin (dB):",bn=i(),vt=n("input"),mn=i(),It=n("div"),pe=n("label"),pe.textContent="Fading Margin (dB):",_n=i(),gt=n("input"),vn=i(),Dt=n("div"),he=n("label"),he.textContent="Penetration Loss (dB):",gn=i(),yt=n("input"),yn=i(),ze=n("h4"),ze.textContent="Maximum Allowable Pathloss",wn=i(),wt=n("table"),We=n("thead"),We.innerHTML='Path Tx Power Cable Loss Tx Antenna Gain Tx Fading Margin Interference Margin Cable Loss Rx Antenna Gain Rx Rx Sensitivity MAPL',Cn=i(),qe=n("tbody"),v=n("tr"),Te=n("th"),Te.textContent="DL",Ln=i(),Ye=n("td"),Ke=y(e[0]),Bn=i(),Ve=n("td"),Xe=y(e[1]),Mn=i(),Ze=n("td"),Je=y(e[2]),Nn=i(),Qe=n("td"),xe=y(e[7]),kn=i(),$e=n("td"),tl=y(e[6]),Sn=i(),el=n("td"),ll=y(e[4]),En=i(),nl=n("td"),ol=y(e[5]),Tn=i(),sl=n("td"),il=y(e[10]),Pn=i(),rl=n("td"),al=y(e[20]),Rn=i(),Re=n("tbody"),ul=n("tr"),ul.innerHTML="",g=n("tr"),je=n("th"),je.textContent="UL",jn=i(),cl=n("td"),dl=y(e[3]),An=i(),fl=n("td"),pl=y(e[4]),On=i(),hl=n("td"),bl=y(e[5]),Un=i(),ml=n("td"),_l=y(e[7]),Hn=i(),vl=n("td"),gl=y(e[6]),Fn=i(),yl=n("td"),wl=y(e[1]),Gn=i(),Cl=n("td"),Ll=y(e[2]),In=i(),Bl=n("td"),Ml=y(e[9]),Dn=i(),Nl=n("td"),kl=y(e[21]),zn=i(),be=n("h4"),Wn=y("Cell Radius: "),Sl=y(e[22]),qn=y(" m"),l(m,"class","btn btn-outline-secondary custom-height col-3 svelte-l5y9p7"),l(m,"type","button"),l(m,"data-bs-toggle","collapse"),l(m,"data-bs-target","#channel"),l(m,"aria-expanded","false"),l(m,"aria-controls","collapseExample"),l(w,"for","centerFrequency"),l(w,"class","form-label"),l(_,"type","number"),l(_,"class","form-control"),l(b,"class","col-3"),l(q,"for","noRBs"),l(q,"class","form-label"),l(k,"type","number"),l(k,"class","form-control"),l(j,"class","col-3"),l(K,"class","col-6"),l(S,"for","numerology"),l(S,"class","form-label"),P.__value="0",u(P,P.__value),U.__value="1",u(U,U.__value),H.__value="2",u(H,H.__value),F.__value="3",u(F,F.__value),ot.__value="3",u(ot,ot.__value),l(B,"class","form-select col-3"),l(B,"aria-label","Default select example"),e[18]===void 0&&Fe(()=>e[28].call(B)),l(A,"class","col-3"),l(Ct,"for","numerology"),l(Ct,"class","form-label"),l(G,"type","number"),l(G,"class","form-control"),G.disabled=!0,l(st,"class","col-3"),l(Lt,"for","subCarrierSpacing"),l(Lt,"class","form-label"),l(I,"type","number"),l(I,"class","form-control"),I.disabled=!0,l(it,"class","col-3"),l(Bt,"for","thermalNoise"),l(Bt,"class","form-label"),l(D,"type","number"),l(D,"class","form-control"),D.disabled=!0,l(rt,"class","col-3"),l(h,"class","row collapse"),l(h,"id","channel"),l(p,"class","row"),l(Kt,"class","w-100 mb-3"),l(z,"class","btn btn-outline-secondary custom-height col-3 svelte-l5y9p7"),l(z,"type","button"),l(z,"data-bs-toggle","collapse"),l(z,"data-bs-target","#nodeB"),l(z,"aria-expanded","false"),l(z,"aria-controls","collapseExample"),l(W,"class","collapse"),l(W,"id","nodeB"),l(Vt,"for","transmitCableLoss"),l(Vt,"class","form-label"),l(at,"type","number"),l(at,"class","form-control"),l(Mt,"class","col-3"),l(Xt,"for","transmitterGain"),l(Xt,"class","form-label"),l(ut,"type","number"),l(ut,"class","form-control"),l(kt,"class","col-3"),l(V,"class","row collapse"),l(V,"id","nodeB"),l(Zt,"class","collapse"),l(Zt,"id","nodeB"),l(Qt,"for","transmitPower"),l(Qt,"class","form-label"),l(ct,"type","number"),l(ct,"class","form-control"),l(St,"class","col-3"),l(Jt,"class","row collapse"),l(Jt,"id","nodeB"),l(xt,"class","collapse"),l(xt,"id","nodeB"),l($t,"for","noiseFigureNodeB"),l($t,"class","form-label"),l(dt,"type","number"),l(dt,"class","form-control"),l(Et,"class","col-3"),l(te,"for","sinrNodeB"),l(te,"class","form-label"),l(ft,"type","number"),l(ft,"class","form-control"),l(Tt,"class","col-3"),l(ee,"for","rxSensitivityNodeB"),l(ee,"class","form-label"),l(Z,"type","number"),l(Z,"class","form-control"),Z.disabled=!0,l(Pt,"class","col-3"),l(X,"class","row collapse"),l(X,"id","nodeB"),l(N,"class","row"),l(Ge,"class","w-100 mb-3"),l(J,"class","btn btn-outline-secondary custom-height col-3 svelte-l5y9p7"),l(J,"type","button"),l(J,"data-bs-toggle","collapse"),l(J,"data-bs-target","#ueconf"),l(J,"aria-expanded","false"),l(J,"aria-controls","collapseExample"),l(le,"class","collapse"),l(le,"id","ueconf"),l(ne,"for","transmitCableLoss"),l(ne,"class","form-label"),l(pt,"type","number"),l(pt,"class","form-control"),l(Rt,"class","col-3"),l(oe,"for","transmitterGain"),l(oe,"class","form-label"),l(ht,"type","number"),l(ht,"class","form-control"),l(jt,"class","col-3"),l(Nt,"class","row collapse"),l(Nt,"id","ueconf"),l(se,"class","collapse"),l(se,"id","ueconf"),l(re,"for","transmitPowerUT"),l(re,"class","form-label"),l(bt,"type","number"),l(bt,"class","form-control"),l(At,"class","col-3"),l(ie,"class","row collapse"),l(ie,"id","ueconf"),l(ae,"class","collapse"),l(ae,"id","ueconf"),l(ue,"for","noiseFigureUE"),l(ue,"class","form-label"),l(mt,"type","number"),l(mt,"class","form-control"),l(Ot,"class","col-3"),l(ce,"for","sinrUE"),l(ce,"class","form-label"),l(_t,"type","number"),l(_t,"class","form-control"),l(Ut,"class","col-3"),l(de,"for","rxSensitivityUE"),l(de,"class","form-label"),l(x,"type","number"),l(x,"class","form-control"),x.disabled=!0,l(Ht,"class","col-3"),l(Q,"class","row collapse"),l(Q,"id","ueconf"),l(E,"class","row"),l(Ie,"class","w-100 mb-3"),l(Ee,"class","row"),l(De,"class","w-100 mb-3"),l($,"class","btn btn-outline-secondary custom-height col-3 svelte-l5y9p7"),l($,"type","button"),l($,"data-bs-toggle","collapse"),l($,"data-bs-target","#losses"),l($,"aria-expanded","false"),l($,"aria-controls","collapseExample"),l(fe,"for","interferenceMargin"),l(fe,"class","form-label"),l(vt,"type","number"),l(vt,"class","form-control"),l(Gt,"class","col-3"),l(pe,"for","fadingMargin"),l(pe,"class","form-label"),l(gt,"type","number"),l(gt,"class","form-control"),l(It,"class","col-3"),l(he,"for","penetrationLoss"),l(he,"class","form-label"),l(yt,"type","number"),l(yt,"class","form-control"),l(Dt,"class","col-3"),l(tt,"class","row collapse"),l(tt,"id","losses"),l(Ft,"class","row"),l(Te,"scope","row"),l(v,"class",Pe=Ue(e[23])+" svelte-l5y9p7"),l(je,"scope","row"),l(g,"class",Ae=Ue(e[24])+" svelte-l5y9p7"),l(wt,"class","table"),l(o,"class","row"),l(s,"class","container")},m(r,c){eo(r,s,c),t(s,o),t(o,a),t(o,d),t(o,p),t(p,m),t(p,R),t(p,h),t(h,b),t(b,w),t(b,L),t(b,_),u(_,e[11]),t(h,T),t(h,j),t(j,q),t(j,Y),t(j,k),u(k,e[12]),t(h,lt),t(h,K),t(h,nt),t(h,A),t(A,S),t(A,O),t(A,B),t(B,P),t(B,U),t(B,H),t(B,F),t(B,ot),Xn(B,e[18],!0),t(h,ge),t(h,st),t(st,Ct),t(st,ye),t(st,G),u(G,e[18]),t(h,we),t(h,it),t(it,Lt),t(it,Ce),t(it,I),u(I,e[19]),t(h,Le),t(h,rt),t(rt,Bt),t(rt,Be),t(rt,D),u(D,e[13]),t(o,Me),t(o,Kt),t(o,Ne),t(o,N),t(N,z),t(N,ke),t(N,W),t(N,Se),t(N,V),t(V,Mt),t(Mt,Vt),t(Mt,jl),t(Mt,at),u(at,e[1]),t(V,Al),t(V,kt),t(kt,Xt),t(kt,Ol),t(kt,ut),u(ut,e[2]),t(N,Ul),t(N,Zt),t(N,Hl),t(N,Jt),t(Jt,St),t(St,Qt),t(St,Fl),t(St,ct),u(ct,e[0]),t(N,Gl),t(N,xt),t(N,Il),t(N,X),t(X,Et),t(Et,$t),t(Et,Dl),t(Et,dt),u(dt,e[16]),t(X,zl),t(X,Tt),t(Tt,te),t(Tt,Wl),t(Tt,ft),u(ft,e[14]),t(X,ql),t(X,Pt),t(Pt,ee),t(Pt,Yl),t(Pt,Z),u(Z,e[9]),t(o,Kl),t(o,Ge),t(o,Vl),t(o,E),t(E,J),t(E,Xl),t(E,le),t(E,Zl),t(E,Nt),t(Nt,Rt),t(Rt,ne),t(Rt,Jl),t(Rt,pt),u(pt,e[4]),t(Nt,Ql),t(Nt,jt),t(jt,oe),t(jt,xl),t(jt,ht),u(ht,e[5]),t(E,$l),t(E,se),t(E,tn),t(E,ie),t(ie,At),t(At,re),t(At,en),t(At,bt),u(bt,e[3]),t(E,ln),t(E,ae),t(E,nn),t(E,Q),t(Q,Ot),t(Ot,ue),t(Ot,on),t(Ot,mt),u(mt,e[17]),t(Q,sn),t(Q,Ut),t(Ut,ce),t(Ut,rn),t(Ut,_t),u(_t,e[15]),t(Q,an),t(Q,Ht),t(Ht,de),t(Ht,un),t(Ht,x),u(x,e[10]),t(o,cn),t(o,Ie),t(o,dn),t(o,Ee),t(o,fn),t(o,De),t(o,pn),t(o,Ft),t(Ft,$),t(Ft,hn),t(Ft,tt),t(tt,Gt),t(Gt,fe),t(Gt,bn),t(Gt,vt),u(vt,e[6]),t(tt,mn),t(tt,It),t(It,pe),t(It,_n),t(It,gt),u(gt,e[7]),t(tt,vn),t(tt,Dt),t(Dt,he),t(Dt,gn),t(Dt,yt),u(yt,e[8]),t(o,yn),t(o,ze),t(o,wn),t(o,wt),t(wt,We),t(wt,Cn),t(wt,qe),t(qe,v),t(v,Te),t(v,Ln),t(v,Ye),t(Ye,Ke),t(v,Bn),t(v,Ve),t(Ve,Xe),t(v,Mn),t(v,Ze),t(Ze,Je),t(v,Nn),t(v,Qe),t(Qe,xe),t(v,kn),t(v,$e),t($e,tl),t(v,Sn),t(v,el),t(el,ll),t(v,En),t(v,nl),t(nl,ol),t(v,Tn),t(v,sl),t(sl,il),t(v,Pn),t(v,rl),t(rl,al),t(wt,Rn),t(wt,Re),t(Re,ul),t(Re,g),t(g,je),t(g,jn),t(g,cl),t(cl,dl),t(g,An),t(g,fl),t(fl,pl),t(g,On),t(g,hl),t(hl,bl),t(g,Un),t(g,ml),t(ml,_l),t(g,Hn),t(g,vl),t(vl,gl),t(g,Fn),t(g,yl),t(yl,wl),t(g,Gn),t(g,Cl),t(Cl,Ll),t(g,In),t(g,Bl),t(Bl,Ml),t(g,Dn),t(g,Nl),t(Nl,kl),t(o,zn),t(o,be),t(be,Wn),t(be,Sl),t(be,qn),El||(Yn=[C(_,"input",e[26]),C(k,"input",e[27]),C(B,"change",e[28]),C(G,"input",e[29]),C(I,"input",e[30]),C(D,"input",e[31]),C(at,"input",e[32]),C(ut,"input",e[33]),C(ct,"input",e[34]),C(dt,"input",e[35]),C(ft,"input",e[36]),C(Z,"input",e[37]),C(pt,"input",e[38]),C(ht,"input",e[39]),C(bt,"input",e[40]),C(mt,"input",e[41]),C(_t,"input",e[42]),C(x,"input",e[43]),C(vt,"input",e[44]),C(gt,"input",e[45]),C(yt,"input",e[46])],El=!0)},p(r,c){c[0]&2048&&f(_.value)!==r[11]&&u(_,r[11]),c[0]&4096&&f(k.value)!==r[12]&&u(k,r[12]),c[0]&262144&&Xn(B,r[18]),c[0]&262144&&f(G.value)!==r[18]&&u(G,r[18]),c[0]&524288&&f(I.value)!==r[19]&&u(I,r[19]),c[0]&8192&&f(D.value)!==r[13]&&u(D,r[13]),c[0]&2&&f(at.value)!==r[1]&&u(at,r[1]),c[0]&4&&f(ut.value)!==r[2]&&u(ut,r[2]),c[0]&1&&f(ct.value)!==r[0]&&u(ct,r[0]),c[0]&65536&&f(dt.value)!==r[16]&&u(dt,r[16]),c[0]&16384&&f(ft.value)!==r[14]&&u(ft,r[14]),c[0]&512&&f(Z.value)!==r[9]&&u(Z,r[9]),c[0]&16&&f(pt.value)!==r[4]&&u(pt,r[4]),c[0]&32&&f(ht.value)!==r[5]&&u(ht,r[5]),c[0]&8&&f(bt.value)!==r[3]&&u(bt,r[3]),c[0]&131072&&f(mt.value)!==r[17]&&u(mt,r[17]),c[0]&32768&&f(_t.value)!==r[15]&&u(_t,r[15]),c[0]&1024&&f(x.value)!==r[10]&&u(x,r[10]),c[0]&64&&f(vt.value)!==r[6]&&u(vt,r[6]),c[0]&128&&f(gt.value)!==r[7]&&u(gt,r[7]),c[0]&256&&f(yt.value)!==r[8]&&u(yt,r[8]),c[0]&1&&M(Ke,r[0]),c[0]&2&&M(Xe,r[1]),c[0]&4&&M(Je,r[2]),c[0]&128&&M(xe,r[7]),c[0]&64&&M(tl,r[6]),c[0]&16&&M(ll,r[4]),c[0]&32&&M(ol,r[5]),c[0]&1024&&M(il,r[10]),c[0]&1048576&&M(al,r[20]),c[0]&8388608&&Pe!==(Pe=Ue(r[23])+" svelte-l5y9p7")&&l(v,"class",Pe),c[0]&8&&M(dl,r[3]),c[0]&16&&M(pl,r[4]),c[0]&32&&M(bl,r[5]),c[0]&128&&M(_l,r[7]),c[0]&64&&M(gl,r[6]),c[0]&2&&M(wl,r[1]),c[0]&4&&M(Ll,r[2]),c[0]&512&&M(Ml,r[9]),c[0]&2097152&&M(kl,r[21]),c[0]&16777216&&Ae!==(Ae=Ue(r[24])+" svelte-l5y9p7")&&l(g,"class",Ae),c[0]&4194304&&M(Sl,r[22])},i:Yt,o:Yt,d(r){r&&et(s),El=!1,ve(Yn)}}}function Qn(e,s){return Math.round(e*Math.pow(10,s))/Math.pow(10,s)}function No(e,s,o){let a=27,d=2,p=15,m=23,R=0,h=0,b=10,w=6,L=15,_=-100,T=-100,j=500,q=3600,Y=1,k=0,lt=-6,K=-6,nt=4,A=10,S="1",O=0,B=0,P=0,U=0,H="",F="";function ot(W,Se,V){return Math.pow(10,(W-13.54-20*Math.log10(Se/1e3)+.6*(V-1.5))/39.08)}bo(()=>{"serviceWorker"in navigator&&navigator.serviceWorker.register("/service-worker.js").then(W=>console.log("Service Worker registered",W)).catch(W=>console.log("Service Worker registration failed:",W))});function ge(){q=f(this.value),o(11,q)}function st(){Y=f(this.value),o(12,Y)}function Ct(){S=po(this),o(18,S)}function ye(){S=f(this.value),o(18,S)}function G(){O=f(this.value),o(19,O),o(18,S)}function we(){k=f(this.value),o(13,k),o(19,O),o(12,Y),o(18,S)}function it(){d=f(this.value),o(1,d)}function Lt(){p=f(this.value),o(2,p)}function Ce(){a=f(this.value),o(0,a)}function I(){nt=f(this.value),o(16,nt)}function Le(){lt=f(this.value),o(14,lt)}function rt(){_=f(this.value),o(9,_),o(13,k),o(14,lt),o(16,nt),o(19,O),o(12,Y),o(18,S)}function Bt(){R=f(this.value),o(4,R)}function Be(){h=f(this.value),o(5,h)}function D(){m=f(this.value),o(3,m)}function Me(){A=f(this.value),o(17,A)}function Kt(){K=f(this.value),o(15,K)}function Ne(){T=f(this.value),o(10,T),o(13,k),o(15,K),o(17,A),o(19,O),o(12,Y),o(18,S)}function N(){b=f(this.value),o(6,b)}function z(){w=f(this.value),o(7,w)}function ke(){L=f(this.value),o(8,L)}return e.$$.update=()=>{e.$$.dirty[0]&262144&&o(19,O=15*Math.pow(2,S)),e.$$.dirty[0]&455,e.$$.dirty[0]&528384&&o(13,k=Qn(-174+10*Math.log10(O*1e3*12*Y),2)),e.$$.dirty[0]&172032&&o(10,T=k+K+A),e.$$.dirty[0]&1223&&o(20,B=a-d+p-w-b-T),e.$$.dirty[0]&90112&&o(9,_=k+lt+nt),e.$$.dirty[0]&766&&o(21,P=m-R+h-w-b+p-d-_),e.$$.dirty[0]&3145728&&(B<=P?o(25,U=B):o(25,U=P)),e.$$.dirty[0]&33556480&&o(22,j=Qn(ot(U,q,1.5),2)),e.$$.dirty[0]&1049799,e.$$.dirty[0]&2097918,e.$$.dirty[0]&3145728&&(BP?(o(23,H="table-danger"),o(24,F="table-success")):(o(23,H="table-success"),o(24,F="table-success")))},[a,d,p,m,R,h,b,w,L,_,T,q,Y,k,lt,K,nt,A,S,O,B,P,j,H,F,U,ge,st,Ct,ye,G,we,it,Lt,Ce,I,Le,rt,Bt,Be,D,Me,Kt,Ne,N,z,ke]}class ko extends ro{constructor(s){super(),io(this,s,No,Mo,to,{},null,[-1,-1])}}function So(e){let s,o,a,d,p,m,R,h,b,w,L;return w=new ko({}),{c(){s=n("script"),s.innerHTML="",a=n("link"),d=n("link"),p=n("link"),m=n("script"),m.innerHTML="",h=n("link"),b=i(),Co(w.$$.fragment),document.title="Link Budget App",Vn(s.src,o="https://cdn.jsdelivr.net/npm/chart.js")||l(s,"src",o),l(a,"rel","stylesheet"),l(a,"href","https://fonts.googleapis.com/css?family=Roboto:300,400,500,600,700"),l(d,"rel","stylesheet"),l(d,"href","https://fonts.googleapis.com/css?family=Roboto+Mono"),l(p,"rel","stylesheet"),l(p,"href","https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"),Vn(m.src,R="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js")||l(m,"src",R),l(m,"integrity","sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"),l(m,"crossorigin","anonymous"),l(h,"href","https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"),l(h,"rel","stylesheet"),l(h,"integrity","sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH"),l(h,"crossorigin","anonymous")},m(_,T){t(document.head,s),t(document.head,a),t(document.head,d),t(document.head,p),t(document.head,m),t(document.head,h),eo(_,b,T),oo(w,_,T),L=!0},p:Yt,i(_){L||(no(w.$$.fragment,_),L=!0)},o(_){wo(w.$$.fragment,_),L=!1},d(_){_&&et(b),et(s),et(a),et(d),et(p),et(m),et(h),so(w,_)}}}class Eo extends ro{constructor(s){super(),io(this,s,null,So,to,{})}}new Eo({target:document.getElementById("app")}); diff --git a/index.html b/index.html index edef4bf..31c4b6e 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Vite + Svelte - - + +
diff --git a/sw.js b/sw.js index eddb050..21e57aa 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(i[t])return;let c={};const o=e=>s(e,t),d={module:{uri:t},exports:c,require:o};i[t]=Promise.all(n.map((e=>d[e]||o(e)))).then((e=>(r(...e),c)))}}define(["./workbox-3e911b1d"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-Bs3T3l0-.css",revision:null},{url:"assets/index-C3eLFIxo.js",revision:null},{url:"index.html",revision:"0e03f3cea80dc3e6e81539d7345a6fd5"},{url:"registerSW.js",revision:"81c3067ca1c42492cf81dd05c4e6248a"},{url:"pwa-192x192.png",revision:"c4bcf67a56c4f86fe241b0785cc07d47"},{url:"pwa-512x512.png",revision:"60cd82ac7adf05d6f59e12db6ce51187"},{url:"manifest.webmanifest",revision:"e482db92ea0b376b600b2c2b587c35a7"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const c=e||("document"in self?document.currentScript.src:"")||location.href;if(i[c])return;let t={};const o=e=>s(e,c),d={module:{uri:c},exports:t,require:o};i[c]=Promise.all(n.map((e=>d[e]||o(e)))).then((e=>(r(...e),t)))}}define(["./workbox-3e911b1d"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-BlnLNSQl.js",revision:null},{url:"assets/index-BMLULsc8.css",revision:null},{url:"index.html",revision:"b891eff06fdddedc5e14741f9211415c"},{url:"registerSW.js",revision:"81c3067ca1c42492cf81dd05c4e6248a"},{url:"pwa-192x192.png",revision:"c4bcf67a56c4f86fe241b0785cc07d47"},{url:"pwa-512x512.png",revision:"60cd82ac7adf05d6f59e12db6ce51187"},{url:"manifest.webmanifest",revision:"e482db92ea0b376b600b2c2b587c35a7"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));