summaryrefslogtreecommitdiff
path: root/client/legacy/index.87fbe324.js
diff options
context:
space:
mode:
authorjakobst1n <undefined>2022-04-28 10:52:04 +0200
committerjakobst1n <undefined>2022-04-28 10:52:04 +0200
commit1d909c32aa59d7a239c4b1cd591d57299bb50cce (patch)
tree3cff6abcd3e1d2e13867938b2bf6085189faa439 /client/legacy/index.87fbe324.js
parent0374d6f8b4d6c835d44f586dd05b68a967667f2a (diff)
downloadAurora-data-1d909c32aa59d7a239c4b1cd591d57299bb50cce.tar.gz
Aurora-data-1d909c32aa59d7a239c4b1cd591d57299bb50cce.zip
Updates
Diffstat (limited to 'client/legacy/index.87fbe324.js')
-rw-r--r--client/legacy/index.87fbe324.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/legacy/index.87fbe324.js b/client/legacy/index.87fbe324.js
new file mode 100644
index 0000000..2781b06
--- /dev/null
+++ b/client/legacy/index.87fbe324.js
@@ -0,0 +1 @@
+import{_ as t,a as n,b as e,c as a,i as r,s as c,d as i,e as o,S as s,f as u,g as l,h as f,j as h,k as d,l as v,m as p,n as m,w as g,o as y,t as _,p as b,q as w,r as E,u as $,v as k,x as D,y as O,z as R,A as I,B as x,C as P,D as V,E as j,F as M,G as T,H as B,I as S,J as N,K as C,L as q,M as H,N as A,O as J,P as z}from"./client.9db787ae.js";function K(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function F(t){var n,e,a,r,c,i,o,s,g;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=u("div"),c=u("div"),i=u("div"),o=u("div"),s=u("div"),g=u("div"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"DIV",{class:!0}),f(e).forEach(h),a=l(u,"DIV",{class:!0}),f(a).forEach(h),r=l(u,"DIV",{class:!0}),f(r).forEach(h),c=l(u,"DIV",{class:!0}),f(c).forEach(h),i=l(u,"DIV",{class:!0}),f(i).forEach(h),o=l(u,"DIV",{class:!0}),f(o).forEach(h),s=l(u,"DIV",{class:!0}),f(s).forEach(h),g=l(u,"DIV",{class:!0}),f(g).forEach(h),u.forEach(h),this.h()},h:function(){d(e,"class","svelte-7k6qu0"),d(a,"class","svelte-7k6qu0"),d(r,"class","svelte-7k6qu0"),d(c,"class","svelte-7k6qu0"),d(i,"class","svelte-7k6qu0"),d(o,"class","svelte-7k6qu0"),d(s,"class","svelte-7k6qu0"),d(g,"class","svelte-7k6qu0"),d(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){v(t,n,u),p(n,e),p(n,a),p(n,r),p(n,c),p(n,i),p(n,o),p(n,s),p(n,g)},p:m,i:m,o:m,d:function(t){t&&h(n)}}}var L=function(n){t(u,s);var e=K(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,F,c,{}),n}return o(u)}();const U={updated:!1,updating:!0},Z=g(Object.assign(Object.assign({},U),{available:!1,longitude:null,latitude:null,city:null})),G=g(Object.assign(Object.assign({},U),{available:!1})),Q=g(Object.assign({},U));function W(t,n=!1){let e=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),e),{updating:n})))}function X(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Y(t){var n,e,a,r,c=t[0].city+"";return{c:function(){n=u("i"),e=y(),a=u("h1"),r=_(c),this.h()},l:function(t){n=l(t,"I",{class:!0}),f(n).forEach(h),e=b(t),a=l(t,"H1",{class:!0});var i=f(a);r=w(i,c),i.forEach(h),this.h()},h:function(){d(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),d(a,"class","svelte-9kdo4s")},m:function(t,c){v(t,n,c),v(t,e,c),v(t,a,c),p(a,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&E(r,c)},d:function(t){t&&h(n),t&&h(e),t&&h(a)}}}function tt(t){var n,e;function a(t,e){return 6&e&&(n=null),null==n&&(n=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),n?et:nt}var r=a(t,-1),c=r(t);return{c:function(){c.c(),e=$()},l:function(t){c.l(t),e=$()},m:function(t,n){c.m(t,n),v(t,e,n)},p:function(t,n){r===(r=a(t,n))&&c?c.p(t,n):(c.d(1),(c=r(t))&&(c.c(),c.m(e.parentNode,e)))},d:function(t){c.d(t),t&&h(e)}}}function nt(t){var n,e,a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),e=_(a)},l:function(t){n=l(t,"P",{});var r=f(n);e=w(r,a),r.forEach(h)},m:function(t,a){v(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&E(e,a)},d:function(t){t&&h(n)}}}function et(t){var n,e;return{c:function(){n=u("p"),e=_("There is more than 10 minutes difference between data updates")},l:function(t){n=l(t,"P",{});var a=f(n);e=w(a,"There is more than 10 minutes difference between data updates"),a.forEach(h)},m:function(t,a){v(t,n,a),p(n,e)},p:m,d:function(t){t&&h(n)}}}function at(t){var n,e,a,r,c,i,o,s,g,$,k,D,O=t[2].now.kp+"",R=t[2].now.kp_max+"",I=t[2].now.kp_min+"";return{c:function(){n=u("h2"),e=_("KP "),a=_(O),r=y(),c=u("p"),i=u("span"),o=_("↑ KP "),s=_(R),g=y(),$=u("span"),k=_("↓ KP "),D=_(I),this.h()},l:function(t){n=l(t,"H2",{class:!0});var u=f(n);e=w(u,"KP "),a=w(u,O),u.forEach(h),r=b(t),c=l(t,"P",{});var d=f(c);i=l(d,"SPAN",{classname:!0});var v=f(i);o=w(v,"↑ KP "),s=w(v,R),v.forEach(h),g=b(d),$=l(d,"SPAN",{classname:!0});var p=f($);k=w(p,"↓ KP "),D=w(p,I),p.forEach(h),d.forEach(h),this.h()},h:function(){d(n,"class","svelte-9kdo4s"),d(i,"classname","pr-2"),d($,"classname","pl-2")},m:function(t,u){v(t,n,u),p(n,e),p(n,a),v(t,r,u),v(t,c,u),p(c,i),p(i,o),p(i,s),p(c,g),p(c,$),p($,k),p($,D)},p:function(t,n){4&n&&O!==(O=t[2].now.kp+"")&&E(a,O),4&n&&R!==(R=t[2].now.kp_max+"")&&E(s,R),4&n&&I!==(I=t[2].now.kp_min+"")&&E(D,I)},i:m,o:m,d:function(t){t&&h(n),t&&h(r),t&&h(c)}}}function rt(t){var n,e;return n=new L({}),{c:function(){P(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){j(n,t,a),e=!0},p:m,i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){O(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function ct(t){var n,e,a,r,c,i,o,s,m,g,k,D,O,R,I,x=t[2].now.bz+"",P=t[2].now.bt+"",V=t[1].available&&it(t);return{c:function(){n=u("div"),e=u("p"),a=_("BZ"),r=y(),c=u("p"),i=_(x),o=y(),s=u("div"),m=u("p"),g=_("BT"),k=y(),D=u("p"),O=_(P),R=y(),V&&V.c(),I=$(),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=w(d,"BZ"),d.forEach(h),r=b(u),c=l(u,"P",{class:!0});var v=f(c);i=w(v,x),v.forEach(h),u.forEach(h),o=b(t),s=l(t,"DIV",{});var p=f(s);m=l(p,"P",{class:!0});var y=f(m);g=w(y,"BT"),y.forEach(h),k=b(p),D=l(p,"P",{class:!0});var _=f(D);O=w(_,P),_.forEach(h),p.forEach(h),R=b(t),V&&V.l(t),I=$(),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(m,"class","svelte-9kdo4s"),d(D,"class","svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),v(t,o,u),v(t,s,u),p(s,m),p(m,g),p(s,k),p(s,D),p(D,O),v(t,R,u),V&&V.m(t,u),v(t,I,u)},p:function(t,n){4&n&&x!==(x=t[2].now.bz+"")&&E(i,x),4&n&&P!==(P=t[2].now.bt+"")&&E(O,P),t[1].available?V?V.p(t,n):((V=it(t)).c(),V.m(I.parentNode,I)):V&&(V.d(1),V=null)},d:function(t){t&&h(n),t&&h(o),t&&h(s),t&&h(R),V&&V.d(t),t&&h(I)}}}function it(t){var n,e,a,r,c,i,o,s,m,g,$,k,D,O,R,I=t[1].now.temp+"",x=t[1].now.clouds+"";return{c:function(){n=u("div"),e=u("p"),a=_("Temp"),r=y(),c=u("p"),i=_(I),o=_("°C"),s=y(),m=u("div"),g=u("p"),$=_("Clouds"),k=y(),D=u("p"),O=_(x),R=_("%"),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=w(d,"Temp"),d.forEach(h),r=b(u),c=l(u,"P",{class:!0});var v=f(c);i=w(v,I),o=w(v,"°C"),v.forEach(h),u.forEach(h),s=b(t),m=l(t,"DIV",{});var p=f(m);g=l(p,"P",{class:!0});var y=f(g);$=w(y,"Clouds"),y.forEach(h),k=b(p),D=l(p,"P",{class:!0});var _=f(D);O=w(_,x),R=w(_,"%"),_.forEach(h),p.forEach(h),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(g,"class","svelte-9kdo4s"),d(D,"class","svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(c,o),v(t,s,u),v(t,m,u),p(m,g),p(g,$),p(m,k),p(m,D),p(D,O),p(D,R)},p:function(t,n){2&n&&I!==(I=t[1].now.temp+"")&&E(i,I),2&n&&x!==(x=t[1].now.clouds+"")&&E(O,x)},d:function(t){t&&h(n),t&&h(s),t&&h(m)}}}function ot(t){var n,e,a,r,c,i,o,s,m,g,_,w,E=!t[0].updating&&t[0].available&&!t[1].updating&&!t[2].updating&&Y(t),$=!t[1].updating&&!t[2].updating&&tt(t),x=[rt,at],P=[];function V(t,n){return t[2].updating||t[1].updating?0:1}s=V(t),m=P[s]=x[s](t);var j=!t[2].updating&&!t[1].updating&&ct(t);return{c:function(){n=u("div"),e=u("div"),a=u("div"),E&&E.c(),r=y(),c=u("div"),$&&$.c(),i=y(),o=u("div"),m.c(),g=y(),_=u("div"),j&&j.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var s=f(n);e=l(s,"DIV",{class:!0});var u=f(e);a=l(u,"DIV",{class:!0});var d=f(a);E&&E.l(d),d.forEach(h),r=b(u),c=l(u,"DIV",{class:!0});var v=f(c);$&&$.l(v),v.forEach(h),i=b(u),o=l(u,"DIV",{class:!0});var p=f(o);m.l(p),p.forEach(h),g=b(u),_=l(u,"DIV",{class:!0});var y=f(_);j&&j.l(y),y.forEach(h),u.forEach(h),s.forEach(h),this.h()},h:function(){d(a,"class","weatherCurrent-data-location svelte-9kdo4s"),d(c,"class","weatherCurrent-data-date"),d(o,"class","weatherCurrent-data-kp svelte-9kdo4s"),d(_,"class","current-details svelte-9kdo4s"),d(e,"class","weatherCurrent-data svelte-9kdo4s"),d(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),E&&E.m(a,null),p(e,r),p(e,c),$&&$.m(c,null),p(e,i),p(e,o),P[s].m(o,null),p(e,g),p(e,_),j&&j.m(_,null),w=!0},p:function(t,n){var e=k(n,1)[0];t[0].updating||!t[0].available||t[1].updating||t[2].updating?E&&(E.d(1),E=null):E?E.p(t,e):((E=Y(t)).c(),E.m(a,null)),t[1].updating||t[2].updating?$&&($.d(1),$=null):$?$.p(t,e):(($=tt(t)).c(),$.m(c,null));var r=s;(s=V(t))===r?P[s].p(t,e):(D(),O(P[r],1,1,(function(){P[r]=null})),R(),(m=P[s])?m.p(t,e):(m=P[s]=x[s](t)).c(),I(m,1),m.m(o,null)),t[2].updating||t[1].updating?j&&(j.d(1),j=null):j?j.p(t,e):((j=ct(t)).c(),j.m(_,null))},i:function(t){w||(I(m),w=!0)},o:function(t){O(m),w=!1},d:function(t){t&&h(n),E&&E.d(),$&&$.d(),P[s].d(),j&&j.d()}}}function st(t,n,e){var a,r,c;return x(t,Z,(function(t){return e(0,a=t)})),x(t,G,(function(t){return e(1,r=t)})),x(t,Q,(function(t){return e(2,c=t)})),[a,r,c]}!async function(){if("undefined"==typeof window)return;let t;W(Z,!0);try{t=await async function(){return new Promise(((t,n)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((n=>{t({longitude:n.coords.longitude,latitude:n.coords.latitude})}),(t=>{n(t)})):n(Error())}))}()}catch(t){return console.log(t),Z.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void W(Z,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),e=await n.json();Z.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:e.city}),t))),W(Z,!1)}(),Z.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return G.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void W(G,!1);W(G,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),e=await n.json(),a={clouds:null,temp:null};try{a.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}G.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:e,now:a,available:!0}))),W(G,!1)})),async function(){if("undefined"==typeof window)return;W(Q,!0);let t=await async function(){let t,n={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},e=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");n.usnoaa_data_raw.solar_wind_mag_field=await e.json(),n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),n.now.bz=n.usnoaa_data_raw.solar_wind_mag_field.Bz,n.now.bt=n.usnoaa_data_raw.solar_wind_mag_field.Bt,e=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),t=await e.json(),t=t.map((t=>Object.assign(Object.assign({},t),{model_prediction_time:new Date(t.model_prediction_time)}))),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=t,e=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),t=await e.text(),t=[...t.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],t=t.map((t=>Object.assign(Object.assign({},t.groups),{time:new Date(t.groups.time+" UTC")}))),n.usnoaa_data_raw.outlook_27_day=t,e=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=await e.json(),n.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let a=new Date,r=new Date(0,0,0),c=1e3,i=0;return n.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,e)=>{t[1]>i&&(i=t[1]),t[1]<c&&(c=t[1]);let o=new Date(t[0]+" UTC");Math.abs(o.getTime()-a.getTime())<Math.abs(r.getTime()-a.getTime())&&(r=o,n.now.kp=t[1]),n.usnoaa_data_raw.noaa_planetary_k_index_forecast[e]={time:o,kp:t[1],observed:t[2]}})),n.now.kp_min=c.toString(),n.now.kp_max=i.toString(),console.log(n),n}();Q.update((n=>Object.assign(Object.assign({},n),t))),W(Q,!1)}();var ut=function(n){t(u,s);var e=X(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,st,ot,c,{}),n}return o(u)}();function lt(t,n,e,a,r,c,i){try{var o=t[c](i),s=o.value}catch(t){return void e(t)}o.done?n(s):Promise.resolve(s).then(a,r)}function ft(t){return function(){var n=this,e=arguments;return new Promise((function(a,r){var c=t.apply(n,e);function i(t){lt(c,a,r,i,o,"next",t)}function o(t){lt(c,a,r,i,o,"throw",t)}i(void 0)}))}}function ht(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function dt(t){var n,e,a=t[1].default,r=T(a,t,t[0],null);return{c:function(){n=u("div"),r&&r.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=f(n);r&&r.l(e),e.forEach(h),this.h()},h:function(){d(n,"class","chip svelte-6dfxfp")},m:function(t,a){v(t,n,a),r&&r.m(n,null),e=!0},p:function(t,n){var c=k(n,1)[0];r&&r.p&&(!e||1&c)&&B(r,a,t,t[0],e?N(a,t[0],c,null):S(t[0]),null)},i:function(t){e||(I(r,t),e=!0)},o:function(t){O(r,t),e=!1},d:function(t){t&&h(n),r&&r.d(t)}}}function vt(t,n,e){var a=n.$$slots,r=void 0===a?{}:a,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,r]}var pt=function(n){t(u,s);var e=ht(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,vt,dt,c,{}),n}return o(u)}();function mt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function gt(t){var n,e,a,r,c,i,o,s,g,E,$,D,O=t[5]&&function(t){var n,e,a,r,c,i,o,s,g,E,$,k,D=Math.round(t[3])+"",O=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(D),i=_("°C"),o=y(),s=u("p"),g=u("i"),E=y(),$=_(O),k=_("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=l(d,"I",{class:!0}),f(a).forEach(h),r=b(d),c=w(d,D),i=w(d,"°C"),d.forEach(h),o=b(u),s=l(u,"P",{class:!0});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(h),E=b(v),$=w(v,O),k=w(v,"%"),v.forEach(h),u.forEach(h),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(g,"class","fas fa-cloud svelte-ghmp86"),d(s,"class","svelte-ghmp86"),d(n,"class","svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,E),p(s,$),p(s,k)},p:m,d:function(t){t&&h(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[2]),c=y(),i=u("p"),o=_(t[1]),s=y(),g=u("div"),E=u("h2"),$=_(t[0]),D=y(),O&&O.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var d=f(n);e=l(d,"DIV",{class:!0});var v=f(e);a=l(v,"H3",{class:!0});var p=f(a);r=w(p,t[2]),p.forEach(h),c=b(v),i=l(v,"P",{class:!0});var m=f(i);o=w(m,t[1]),m.forEach(h),v.forEach(h),s=b(d),g=l(d,"DIV",{class:!0});var y=f(g);E=l(y,"H2",{class:!0});var _=f(E);$=w(_,t[0]),_.forEach(h),D=b(y),O&&O.l(y),y.forEach(h),d.forEach(h),this.h()},h:function(){d(a,"class","svelte-ghmp86"),d(i,"class","svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(E,"class","svelte-ghmp86"),d(g,"class","data svelte-ghmp86"),d(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,g),p(g,E),p(E,$),p(g,D),O&&O.m(g,null)},p:function(t,n){var e=k(n,1)[0];t[5]&&O.p(t,e)},i:m,o:m,d:function(t){t&&h(n),O&&O.d()}}}function yt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function _t(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=yt(a.time.getHours().toString())+":"+yt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,i,o,s,u,a]}var bt=function(n){t(u,s);var e=mt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,_t,gt,c,{prediction:6}),n}return o(u)}();function wt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Et(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function $t(t){var n,e;return n=new bt({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){j(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){O(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function kt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=$t(Et(t,a,c));var i=function(t){return O(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=l(t,"DIV",{class:!0});for(var e=f(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(h),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){v(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=k(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Et(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=$t(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);R()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)O(r[n]);e=!1},d:function(t){t&&h(n),C(r,t)}}}function Dt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ft(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>18e6)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,G,(function(t){return e(1,a=t)})),x(t,Q,(function(t){return e(2,r=t)})),Q.subscribe(i),G.subscribe(i),[c]}var Ot=function(n){t(u,s);var e=wt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Dt,kt,c,{}),n}return o(u)}();function Rt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function It(t){var n,e,a;return e=new pt({props:{$$slots:{default:[xt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),P(e.$$.fragment),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var a=f(n);V(e.$$.fragment,a),a.forEach(h),this.h()},h:function(){d(n,"class","svelte-ghmp86")},m:function(t,r){v(t,n,r),j(e,n,null),a=!0},p:function(t,n){var a={};257&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i:function(t){a||(I(e.$$.fragment,t),a=!0)},o:function(t){O(e.$$.fragment,t),a=!1},d:function(t){t&&h(n),M(e)}}}function xt(t){var n,e=t[0].observed+"";return{c:function(){n=_(e)},l:function(t){n=w(t,e)},m:function(t,e){v(t,n,e)},p:function(t,a){1&a&&e!==(e=t[0].observed+"")&&E(n,e)},d:function(t){t&&h(n)}}}function Pt(t){var n,e,a,r,c,i,o,s,g,E,$,x,P,V,j="predicted"!=t[0].observed&&It(t),M=t[6]&&function(t){var n,e,a,r,c,i,o,s,g,E,$,k,D=Math.round(t[4])+"",O=Math.round(t[5])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(D),i=_("°C"),o=y(),s=u("p"),g=u("i"),E=y(),$=_(O),k=_("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=l(d,"I",{class:!0}),f(a).forEach(h),r=b(d),c=w(d,D),i=w(d,"°C"),d.forEach(h),o=b(u),s=l(u,"P",{class:!0});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(h),E=b(v),$=w(v,O),k=w(v,"%"),v.forEach(h),u.forEach(h),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(g,"class","fas fa-cloud svelte-ghmp86"),d(s,"class","svelte-ghmp86"),d(n,"class","svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,E),p(s,$),p(s,k)},p:m,d:function(t){t&&h(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[3]),c=y(),i=u("p"),o=_(t[2]),s=y(),j&&j.c(),g=y(),E=u("div"),$=u("h2"),x=_(t[1]),P=y(),M&&M.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var d=f(n);e=l(d,"DIV",{class:!0});var v=f(e);a=l(v,"H3",{class:!0});var p=f(a);r=w(p,t[3]),p.forEach(h),c=b(v),i=l(v,"P",{class:!0});var m=f(i);o=w(m,t[2]),m.forEach(h),v.forEach(h),s=b(d),j&&j.l(d),g=b(d),E=l(d,"DIV",{class:!0});var y=f(E);$=l(y,"H2",{class:!0});var _=f($);x=w(_,t[1]),_.forEach(h),P=b(y),M&&M.l(y),y.forEach(h),d.forEach(h),this.h()},h:function(){d(a,"class","svelte-ghmp86"),d(i,"class","svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d($,"class","svelte-ghmp86"),d(E,"class","data svelte-ghmp86"),d(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),j&&j.m(n,null),p(n,g),p(n,E),p(E,$),p($,x),p(E,P),M&&M.m(E,null),V=!0},p:function(t,e){var a=k(e,1)[0];"predicted"!=t[0].observed?j?(j.p(t,a),1&a&&I(j,1)):((j=It(t)).c(),I(j,1),j.m(n,g)):j&&(D(),O(j,1,1,(function(){j=null})),R()),t[6]&&M.p(t,a)},i:function(t){V||(I(j),V=!0)},o:function(t){O(j),V=!1},d:function(t){t&&h(n),j&&j.d(),M&&M.d()}}}function Vt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function jt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Vt(a.time.getHours().toString())+":"+Vt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,a=t.prediction)},[a,r,c,i,o,s,u]}var Mt=function(n){t(u,s);var e=Rt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,jt,Pt,c,{prediction:0}),n}return o(u)}();function Tt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Bt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function St(t){var n,e;return n=new Mt({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){j(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){O(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function Nt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=St(Bt(t,a,c));var i=function(t){return O(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=l(t,"DIV",{class:!0});for(var e=f(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(h),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){v(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=k(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Bt(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=St(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);R()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)O(r[n]);e=!1},d:function(t){t&&h(n),C(r,t)}}}function Ct(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ft(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())&&(o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,G,(function(t){return e(1,a=t)})),x(t,Q,(function(t){return e(2,r=t)})),Q.subscribe(i),G.subscribe(i),[c]}var qt=function(n){t(u,s);var e=Tt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Ct,Nt,c,{}),n}return o(u)}();function Ht(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function At(t){var n,e,a,r,c,i,o,s,g,E,$,D,O=t[5]&&function(t){var n,e,a,r,c,i,o,s,g,E,$,k,D=Math.round(t[3])+"",O=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(D),i=_("°C"),o=y(),s=u("p"),g=u("i"),E=y(),$=_(O),k=_("%"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"P",{class:!0});var d=f(e);a=l(d,"I",{class:!0}),f(a).forEach(h),r=b(d),c=w(d,D),i=w(d,"°C"),d.forEach(h),o=b(u),s=l(u,"P",{class:!0});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(h),E=b(v),$=w(v,O),k=w(v,"%"),v.forEach(h),u.forEach(h),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(g,"class","fas fa-cloud svelte-ghmp86"),d(s,"class","svelte-ghmp86"),d(n,"class","svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,E),p(s,$),p(s,k)},p:m,d:function(t){t&&h(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[2]),c=y(),i=u("p"),o=_(t[1]),s=y(),g=u("div"),E=u("h2"),$=_(t[0]),D=y(),O&&O.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var d=f(n);e=l(d,"DIV",{class:!0});var v=f(e);a=l(v,"H3",{class:!0});var p=f(a);r=w(p,t[2]),p.forEach(h),c=b(v),i=l(v,"P",{class:!0});var m=f(i);o=w(m,t[1]),m.forEach(h),v.forEach(h),s=b(d),g=l(d,"DIV",{class:!0});var y=f(g);E=l(y,"H2",{class:!0});var _=f(E);$=w(_,t[0]),_.forEach(h),D=b(y),O&&O.l(y),y.forEach(h),d.forEach(h),this.h()},h:function(){d(a,"class","svelte-ghmp86"),d(i,"class","svelte-ghmp86"),d(e,"class","svelte-ghmp86"),d(E,"class","svelte-ghmp86"),d(g,"class","data svelte-ghmp86"),d(n,"class","prediction-details svelte-ghmp86")},m:function(t,u){v(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,g),p(g,E),p(E,$),p(g,D),O&&O.m(g,null)},p:function(t,n){var e=k(n,1)[0];t[5]&&O.p(t,e)},i:m,o:m,d:function(t){t&&h(n),O&&O.d()}}}function Jt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function zt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Jt(a.time.getHours().toString())+":"+Jt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,i,o,s,u,a]}var Kt=function(n){t(u,s);var e=Ht(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,zt,At,c,{prediction:6}),n}return o(u)}();function Ft(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Lt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Ut(t){var n,e;return n=new Kt({props:{prediction:t[5]}}),{c:function(){P(n.$$.fragment)},l:function(t){V(n.$$.fragment,t)},m:function(t,a){j(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){O(n.$$.fragment,t),e=!1},d:function(t){M(n,t)}}}function Zt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Ut(Lt(t,a,c));var i=function(t){return O(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=l(t,"DIV",{class:!0});for(var e=f(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(h),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){v(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=k(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Lt(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=Ut(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);R()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)O(r[n]);e=!1},d:function(t){t&&h(n),C(r,t)}}}function Gt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=ft(q.mark((function t(){var n;return q.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.outlook_27_day.filter((function(t){return t.time>=new Date})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kindex,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>864e5)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return x(t,G,(function(t){return e(1,a=t)})),x(t,Q,(function(t){return e(2,r=t)})),Q.subscribe(i),G.subscribe(i),[c]}var Qt=function(n){t(u,s);var e=Ft(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Gt,Zt,c,{}),n}return o(u)}();function Wt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Xt(t){var n,e,a,r,c;return{c:function(){n=u("div"),e=u("i"),a=y(),r=u("p"),c=_("No prediction data"),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var i=f(n);e=l(i,"I",{class:!0}),f(e).forEach(h),a=b(i),r=l(i,"P",{});var o=f(r);c=w(o,"No prediction data"),o.forEach(h),i.forEach(h),this.h()},h:function(){d(e,"class","fas fa-7x fa-exclamation-triangle"),d(n,"class","no-data svelte-6c4yca")},m:function(t,i){v(t,n,i),p(n,e),p(n,a),p(n,r),p(r,c)},p:m,i:m,o:m,d:function(t){t&&h(n)}}}function Yt(t){var n,e,a,r,c,i,o,s,m,g,E,k,x,T,B,S,N,C,q,z=t[0];return z&&(B=new z({})),{c:function(){n=u("div"),e=u("h2"),a=_("Forecast"),r=y(),c=u("div"),i=u("div"),o=_("hour"),s=y(),m=u("div"),g=_("3 day"),E=y(),k=u("div"),x=_("Long time"),T=y(),B&&P(B.$$.fragment),S=$(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var u=f(n);e=l(u,"H2",{class:!0});var d=f(e);a=w(d,"Forecast"),d.forEach(h),r=b(u),c=l(u,"DIV",{class:!0});var v=f(c);i=l(v,"DIV",{class:!0});var p=f(i);o=w(p,"hour"),p.forEach(h),s=b(v),m=l(v,"DIV",{class:!0});var y=f(m);g=w(y,"3 day"),y.forEach(h),E=b(v),k=l(v,"DIV",{class:!0});var _=f(k);x=w(_,"Long time"),_.forEach(h),v.forEach(h),u.forEach(h),T=b(t),B&&V(B.$$.fragment,t),S=$(),this.h()},h:function(){d(e,"class","svelte-6c4yca"),d(i,"class","svelte-6c4yca"),H(i,"selected",t[0]==Ot),d(m,"class","svelte-6c4yca"),H(m,"selected",t[0]==qt),d(k,"class","svelte-6c4yca"),H(k,"selected",t[0]==Qt),d(c,"class","version-picker svelte-6c4yca"),d(n,"class","header svelte-6c4yca")},m:function(u,l){v(u,n,l),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(i,o),p(c,s),p(c,m),p(m,g),p(c,E),p(c,k),p(k,x),v(u,T,l),B&&j(B,u,l),v(u,S,l),N=!0,C||(q=[A(i,"click",t[3]),A(m,"click",t[4]),A(k,"click",t[5])],C=!0)},p:function(t,n){if(1&n&&H(i,"selected",t[0]==Ot),1&n&&H(m,"selected",t[0]==qt),1&n&&H(k,"selected",t[0]==Qt),z!==(z=t[0])){if(B){D();var e=B;O(e.$$.fragment,1,0,(function(){M(e,1)})),R()}z?(B=new z({}),P(B.$$.fragment),I(B.$$.fragment,1),j(B,S.parentNode,S)):B=null}},i:function(t){N||(B&&I(B.$$.fragment,t),N=!0)},o:function(t){B&&O(B.$$.fragment,t),N=!1},d:function(t){t&&h(n),t&&h(T),t&&h(S),B&&M(B,t),C=!1,J(q)}}}function tn(t){var n,e,a,r,c=[Yt,Xt],i=[];function o(t,n){return t[1].updating||t[2].updating?1:0}return e=o(t),a=i[e]=c[e](t),{c:function(){n=u("div"),a.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var e=f(n);a.l(e),e.forEach(h),this.h()},h:function(){d(n,"class","drawer svelte-6c4yca")},m:function(t,a){v(t,n,a),i[e].m(n,null),r=!0},p:function(t,r){var s=k(r,1)[0],u=e;(e=o(t))===u?i[e].p(t,s):(D(),O(i[u],1,1,(function(){i[u]=null})),R(),(a=i[e])?a.p(t,s):(a=i[e]=c[e](t)).c(),I(a,1),a.m(n,null))},i:function(t){r||(I(a),r=!0)},o:function(t){O(a),r=!1},d:function(t){t&&h(n),i[e].d()}}}function nn(t,n,e){var a,r;x(t,G,(function(t){return e(1,a=t)})),x(t,Q,(function(t){return e(2,r=t)}));var c=qt;return[c,a,r,function(){return e(0,c=Ot)},function(){return e(0,c=qt)},function(){return e(0,c=Qt)}]}var en=function(n){t(u,s);var e=Wt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,nn,tn,c,{}),n}return o(u)}();function an(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function rn(t){var n,e,a,r,c,i;return a=new ut({}),c=new en({}),{c:function(){n=y(),e=u("div"),P(a.$$.fragment),r=y(),P(c.$$.fragment),this.h()},l:function(t){z('[data-svelte="svelte-1q3846k"]',document.head).forEach(h),n=b(t),e=l(t,"DIV",{class:!0});var i=f(e);V(a.$$.fragment,i),r=b(i),V(c.$$.fragment,i),i.forEach(h),this.h()},h:function(){document.title="Aurora data",d(e,"class","homescreen svelte-pf4p6y")},m:function(t,o){v(t,n,o),v(t,e,o),j(a,e,null),p(e,r),j(c,e,null),i=!0},p:m,i:function(t){i||(I(a.$$.fragment,t),I(c.$$.fragment,t),i=!0)},o:function(t){O(a.$$.fragment,t),O(c.$$.fragment,t),i=!1},d:function(t){t&&h(n),t&&h(e),M(a),M(c)}}}var cn=function(n){t(u,s);var e=an(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,rn,c,{}),n}return o(u)}();export{cn as default};