From e2ff737bd6e39e2af6211fbcb9b10e6d6ec9e4f5 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Wed, 27 Apr 2022 00:51:36 +0200 Subject: Updates --- client/client.6ce3f24e.js | 18 ++++++++++++++++++ client/client.cead19b7.js | 18 ------------------ client/index-183044ce.css | 7 ------- client/index-5b63c830.css | 8 ++++++++ client/index.4a80f6bf.js | 1 + client/index.98d274eb.js | 1 - client/inject_styles.5607aec6.js | 2 +- client/legacy/client.652277bf.js | 18 ++++++++++++++++++ client/legacy/client.8f52d8e6.js | 18 ------------------ client/legacy/index-183044ce.css | 7 ------- client/legacy/index-5b63c830.css | 8 ++++++++ client/legacy/index.3620d9f2.js | 1 - client/legacy/index.b1d86915.js | 1 + client/legacy/inject_styles.fe622066.js | 2 +- client/shimport@2.0.4.js | 2 +- index.html | 2 +- service-worker-index.html | 2 +- service-worker.js | 2 +- 18 files changed, 60 insertions(+), 58 deletions(-) create mode 100644 client/client.6ce3f24e.js delete mode 100644 client/client.cead19b7.js delete mode 100644 client/index-183044ce.css create mode 100644 client/index-5b63c830.css create mode 100644 client/index.4a80f6bf.js delete mode 100644 client/index.98d274eb.js create mode 100644 client/legacy/client.652277bf.js delete mode 100644 client/legacy/client.8f52d8e6.js delete mode 100644 client/legacy/index-183044ce.css create mode 100644 client/legacy/index-5b63c830.css delete mode 100644 client/legacy/index.3620d9f2.js create mode 100644 client/legacy/index.b1d86915.js diff --git a/client/client.6ce3f24e.js b/client/client.6ce3f24e.js new file mode 100644 index 0000000..5916919 --- /dev/null +++ b/client/client.6ce3f24e.js @@ -0,0 +1,18 @@ +function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function a(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}let l,u=!1;function f(t,e,n,r){for(;t>1);n(o)<=r?t=o+1:e=o}return t}function d(t,e){if(u){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n0&&e[n[o]].claim_order<=s?o+1:f(1,o,(t=>e[n[t]].claim_order),s))-1;r[t]=n[i]+1;const c=i+1;n[c]=t,o=Math.max(c,o)}const s=[],i=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(s.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e=s[n].claim_order;)n++;const r=n{for(let r=t.claim_info.last_index;r=0;r--){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,s}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function E(t,e,n){return function(t,e,n,r){return x(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;rt.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,g)}function S(t,e){return x(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>$(e)),!0)}function w(t){return S(t," ")}function N(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function A(t,e=document.body){return Array.from(e.querySelectorAll(t))}function R(t){l=t}function k(){if(!l)throw new Error("Function called outside component initialization");return l}const P=[],j=[],L=[],q=[],O=Promise.resolve();let C=!1;function T(t){L.push(t)}const U=new Set;let B=0;function I(){const t=l;do{for(;B{z.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function W(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(r[t]=1);for(const t in c)o[t]||(n[t]=c[t],o[t]=1);t[s]=c}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function Y(t){return"object"==typeof t&&null!==t?t:{}}function F(t){t&&t.c()}function G(t,e){t&&t.l(e)}function X(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||T((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(T)}function Q(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function Z(t,e){-1===t.$$.dirty[0]&&(P.push(t),C||(C=!0,O.then(I)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=r.length?r[0]:n;return m.ctx&&c(m.ctx[t],m.ctx[t]=o)&&(!m.skip_bound&&m.bound[t]&&m.bound[t](o),g&&Z(e,t)),n})):[],m.update(),g=!0,o(m.before_update),m.fragment=!!i&&i(m.ctx),n.target){if(n.hydrate){u=!0;const t=b(n.target);m.fragment&&m.fragment.l(t),t.forEach(h)}else m.fragment&&m.fragment.c();n.intro&&V(e.$$.fragment),X(e,n.target,n.anchor,n.customElement),u=!1,I()}R(p)}class et{$destroy(){Q(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const nt=[];function rt(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!nt.length;for(const t of o)t[1](),nt.push(t,e);if(t){for(let t=0;t{o.delete(a),0===o.size&&(r(),r=null)}}}}const ot={};function st(t){let e,n;const r=t[1].default,o=function(t,e,n,r){if(t){const o=a(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c(){e=g("div"),o&&o.c(),this.h()},l(t){e=E(t,"DIV",{class:!0});var n=b(e);o&&o.l(n),n.forEach(h),this.h()},h(){v(e,"class","app-container svelte-lkkhqy")},m(t,r){p(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&(!n||1&e)&&function(t,e,n,r,o,s){if(o){const i=a(e,n,r,s);t.p(i,o)}}(o,r,t,t[0],n?function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r32){const e=[],n=t.ctx.length/32;for(let t=0;t{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class ct extends et{constructor(t){super(),tt(this,t,it,st,i,{})}}function at(t){let e,n,r=t[1].stack+"";return{c(){e=g("pre"),n=$(r)},l(t){e=E(t,"PRE",{});var o=b(e);n=S(o,r),o.forEach(h)},m(t,r){p(t,e,r),d(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&N(n,r)},d(t){t&&h(e)}}}function lt(e){let n,r,o,s,i,c,a,l,u,f=e[1].message+"";document.title=n=e[0];let m=e[2]&&e[1].stack&&at(e);return{c(){r=_(),o=g("h1"),s=$(e[0]),i=_(),c=g("p"),a=$(f),l=_(),m&&m.c(),u=y(),this.h()},l(t){A('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(h),r=w(t),o=E(t,"H1",{class:!0});var n=b(o);s=S(n,e[0]),n.forEach(h),i=w(t),c=E(t,"P",{class:!0});var d=b(c);a=S(d,f),d.forEach(h),l=w(t),m&&m.l(t),u=y(),this.h()},h(){v(o,"class","svelte-jpshsi"),v(c,"class","svelte-jpshsi")},m(t,e){p(t,r,e),p(t,o,e),d(o,s),p(t,i,e),p(t,c,e),d(c,a),p(t,l,e),m&&m.m(t,e),p(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&N(s,t[0]),2&e&&f!==(f=t[1].message+"")&&N(a,f),t[2]&&t[1].stack?m?m.p(t,e):(m=at(t),m.c(),m.m(u.parentNode,u)):m&&(m.d(1),m=null)},i:t,o:t,d(t){t&&h(r),t&&h(o),t&&h(i),t&&h(c),t&&h(l),m&&m.d(t),t&&h(u)}}}function ut(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class ft extends et{constructor(t){super(),tt(this,t,ut,lt,i,{status:0,error:1})}}function dt(t){let n,r,o;const s=[t[4].props];var i=t[4].component;function c(t){let n={};for(let t=0;t{Q(t,1)})),M()}i?(n=new i(c()),F(n.$$.fragment),V(n.$$.fragment,1),X(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&V(n.$$.fragment,t),o=!0)},o(t){n&&H(n.$$.fragment,t),o=!1},d(t){t&&h(r),n&&Q(n,t)}}}function pt(t){let e,n;return e=new ft({props:{error:t[0],status:t[1]}}),{c(){F(e.$$.fragment)},l(t){G(e.$$.fragment,t)},m(t,r){X(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(V(e.$$.fragment,t),n=!0)},o(t){H(e.$$.fragment,t),n=!1},d(t){Q(e,t)}}}function ht(t){let e,n,r,o;const s=[pt,dt],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=y()},l(t){n.l(t),r=y()},m(t,n){i[e].m(t,n),p(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(K(),H(i[a],1,1,(()=>{i[a]=null})),M(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),V(n,1),n.m(r.parentNode,r))},i(t){o||(V(n),o=!0)},o(t){H(n),o=!1},d(t){i[e].d(t),t&&h(r)}}}function mt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[ht]},$$scope:{ctx:t}};for(let t=0;t{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,i=t.segments),"level0"in t&&n(3,c=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,i,c,a,r,l]}class $t extends et{constructor(t){super(),tt(this,t,gt,mt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const _t=[],yt=[{js:()=>Promise.all([import("./index.4a80f6bf.js"),__inject_styles(["client-ea61129f.css","index-5b63c830.css"])]).then((function(t){return t[0]}))}],vt=[{pattern:/^\/$/,parts:[{i:0}]}]; +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +function bt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function i(t){try{a(r.next(t))}catch(t){s(t)}}function c(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,c)}a((r=r.apply(t,e||[])).next())}))}function xt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let Et,St=1;const wt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},Nt={};let At,Rt;function kt(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function Pt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(At))return null;let e=t.pathname.slice(At.length);if(""===e&&(e="/"),!_t.some((t=>t.test(e))))for(let n=0;n{Bt(t)}),20)}function Jt(t,e={noscroll:!1,replaceState:!1}){const n=Pt(new URL(t,Ct(document)));return n?(wt[e.replaceState?"replaceState":"pushState"]({id:Et},"",t),Ot(n,null,e.noscroll)):(location.href=t,new Promise((()=>{})))}const zt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Dt,Kt,Mt,Vt=!1,Ht=[],Wt="{}";const Yt={page:function(t){const e=rt(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:rt(null),session:rt(zt&&zt.session)};let Ft,Gt,Xt;function Qt(t,e){const{error:n}=t;return Object.assign({error:n},e)}function Zt(t){return bt(this,void 0,void 0,(function*(){Dt&&Yt.preloading.set(!0);const e=function(t){return Ut&&Ut.href===t.href?Ut.promise:ee(t)}(t),n=Kt={},r=yield e,{redirect:o}=r;if(n===Kt)if(o)yield Jt(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield te(n,e,Qt(e,t.page))}}))}function te(t,e,n){return bt(this,void 0,void 0,(function*(){Yt.page.set(n),Yt.preloading.set(!1),Dt?Dt.$set(e):(e.stores={page:{subscribe:Yt.page.subscribe},preloading:{subscribe:Yt.preloading.subscribe},session:Yt.session},e.level0={props:yield Mt},e.notify=Yt.page.notify,Dt=new $t({target:Xt,props:e,hydrate:!0})),Ht=t,Wt=JSON.stringify(n.query),Vt=!0,Gt=!1}))}function ee(t){return bt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},i={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Mt){const t=()=>({});Mt=zt.preloaded[0]||t.call(i,{host:n.host,path:n.path,query:n.query,params:{}},Ft)}let c,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;c=yield Promise.all(e.parts.map(((e,c)=>bt(this,void 0,void 0,(function*(){const f=r[c];if(function(t,e,n,r){if(r!==Wt)return!0;const o=Ht[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(c,f,l,o)&&(u=!0),s.segments[a]=r[c+1],!e)return{segment:f};const d=a++;if(!Gt&&!u&&Ht[c]&&Ht[c].part===e.i)return Ht[c];u=!1;const{default:p,preload:h}=yield yt[e.i].js();let m;return m=Vt||!zt.preloaded[c+1]?h?yield h.call(i,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},Ft):{}:zt.preloaded[c+1],s[`level${d}`]={component:p,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,c=[]}return{redirect:o,props:s,branch:c}}))}var ne,re,oe;Yt.session.subscribe((t=>bt(void 0,void 0,void 0,(function*(){if(Ft=t,!Vt)return;Gt=!0;const e=Pt(new URL(location.href)),n=Kt={},{redirect:r,props:o,branch:s}=yield ee(e);n===Kt&&(r?yield Jt(r.location,{replaceState:!0}):yield te(s,o,Qt(o,e.page)))})))),ne={target:document.querySelector(".app")},re=ne.target,Xt=re,oe=zt.baseUrl,At=oe,Rt=Zt,"scrollRestoration"in wt&&(wt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{wt.scrollRestoration="auto"})),addEventListener("load",(()=>{wt.scrollRestoration="manual"})),addEventListener("click",jt),addEventListener("popstate",qt),addEventListener("touchstart",Bt),addEventListener("mousemove",It),zt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:i}=zt;Mt||(Mt=o&&o[0]);const c={error:i,status:s,session:r,level0:{props:Mt},level1:{props:{status:s,error:i},component:ft},segments:o},a=kt(n);te([],c,{host:t,path:e,query:a,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;wt.replaceState({id:St},"",e);const n=Pt(new URL(location.href));if(n)return Ot(n,St,!0,t)}));export{m as A,A as B,et as S,b as a,v as b,E as c,h as d,g as e,p as f,d as g,_ as h,tt as i,w as j,S as k,N as l,y as m,t as n,K as o,H as p,M as q,V as r,i as s,$ as t,c as u,F as v,rt as w,G as x,X as y,Q as z}; + +import __inject_styles from './inject_styles.5607aec6.js'; \ No newline at end of file diff --git a/client/client.cead19b7.js b/client/client.cead19b7.js deleted file mode 100644 index 8c9f465..0000000 --- a/client/client.cead19b7.js +++ /dev/null @@ -1,18 +0,0 @@ -function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function c(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function a(t,e,n,r,o,s,c){const a=function(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r{B.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function z(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const c=t[s],i=e[s];if(i){for(const t in c)t in i||(r[t]=1);for(const t in i)o[t]||(n[t]=i[t],o[t]=1);t[s]=i}else for(const t in c)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function H(t){return"object"==typeof t&&null!==t?t:{}}function Y(t){t&&t.c()}function F(t,e){t&&t.l(e)}function G(t,e,r){const{fragment:c,on_mount:i,on_destroy:a,after_update:l}=t.$$;c&&c.m(e,r),O((()=>{const e=i.map(n).filter(s);a?a.push(...e):o(e),t.$$.on_mount=[]})),l.forEach(O)}function W(t,e){const n=t.$$;null!==n.fragment&&(o(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function X(t,e){-1===t.$$.dirty[0]&&(k.push(t),q||(q=!0,L.then(T)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<{const o=r.length?r[0]:n;return d.ctx&&i(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),h&&X(e,t)),n})):[],d.update(),h=!0,o(d.before_update),d.fragment=!!c&&c(d.ctx),n.target){if(n.hydrate){const t=y(n.target);d.fragment&&d.fragment.l(t),t.forEach(f)}else d.fragment&&d.fragment.c();n.intro&&D(e.$$.fragment),G(e,n.target,n.anchor),T()}S(u)}class Z{$destroy(){W(this,1),this.$destroy=t}$on(t,e){const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),()=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const tt=[];function et(e,n=t){let r;const o=[];function s(t){if(c(e,t)&&(e=t,r)){const t=!tt.length;for(let t=0;t{const t=o.indexOf(a);-1!==t&&o.splice(t,1),0===o.length&&(r(),r=null)}}}}const nt={};function rt(t){let e,n;const r=t[1].default,o=function(t,e,n,r){if(t){const o=i(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c(){e=d("div"),o&&o.c(),this.h()},l(t){e=v(t,"DIV",{class:!0});var n=y(e);o&&o.l(n),n.forEach(f),this.h()},h(){$(e,"class","app-container svelte-lkkhqy")},m(t,r){u(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&1&e&&a(o,r,t,t[0],e,null,null)},i(t){n||(D(o,t),n=!0)},o(t){M(o,t),n=!1},d(t){t&&f(e),o&&o.d(t)}}}function ot(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class st extends Z{constructor(t){super(),Q(this,t,ot,rt,c,{})}}function ct(t){let e,n,r=t[1].stack+"";return{c(){e=d("pre"),n=h(r)},l(t){e=v(t,"PRE",{});var o=y(e);n=b(o,r),o.forEach(f)},m(t,r){u(t,e,r),l(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&x(n,r)},d(t){t&&f(e)}}}function it(e){let n,r,o,s,c,i,a,p,E,S=e[1].message+"";document.title=n=e[0];let R=e[2]&&e[1].stack&&ct(e);return{c(){r=m(),o=d("h1"),s=h(e[0]),c=m(),i=d("p"),a=h(S),p=m(),R&&R.c(),E=g(),this.h()},l(t){w('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(f),r=_(t),o=v(t,"H1",{class:!0});var n=y(o);s=b(n,e[0]),n.forEach(f),c=_(t),i=v(t,"P",{class:!0});var l=y(i);a=b(l,S),l.forEach(f),p=_(t),R&&R.l(t),E=g(),this.h()},h(){$(o,"class","svelte-jpshsi"),$(i,"class","svelte-jpshsi")},m(t,e){u(t,r,e),u(t,o,e),l(o,s),u(t,c,e),u(t,i,e),l(i,a),u(t,p,e),R&&R.m(t,e),u(t,E,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&x(s,t[0]),2&e&&S!==(S=t[1].message+"")&&x(a,S),t[2]&&t[1].stack?R?R.p(t,e):(R=ct(t),R.c(),R.m(E.parentNode,E)):R&&(R.d(1),R=null)},i:t,o:t,d(t){t&&f(r),t&&f(o),t&&f(c),t&&f(i),t&&f(p),R&&R.d(t),t&&f(E)}}}function at(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class lt extends Z{constructor(t){super(),Q(this,t,at,it,c,{status:0,error:1})}}function ut(t){let n,r,o;const s=[t[4].props];var c=t[4].component;function i(t){let n={};for(let t=0;t{W(t,1)})),V()}c?(n=new c(i()),Y(n.$$.fragment),D(n.$$.fragment,1),G(n,r.parentNode,r)):n=null}else c&&n.$set(o)},i(t){o||(n&&D(n.$$.fragment,t),o=!0)},o(t){n&&M(n.$$.fragment,t),o=!1},d(t){t&&f(r),n&&W(n,t)}}}function ft(t){let e,n;return e=new lt({props:{error:t[0],status:t[1]}}),{c(){Y(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){G(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.error=t[0]),2&n&&(r.status=t[1]),e.$set(r)},i(t){n||(D(e.$$.fragment,t),n=!0)},o(t){M(e.$$.fragment,t),n=!1},d(t){W(e,t)}}}function pt(t){let e,n,r,o;const s=[ft,ut],c=[];function i(t,e){return t[0]?0:1}return e=i(t),n=c[e]=s[e](t),{c(){n.c(),r=g()},l(t){n.l(t),r=g()},m(t,n){c[e].m(t,n),u(t,r,n),o=!0},p(t,o){let a=e;e=i(t),e===a?c[e].p(t,o):(K(),M(c[a],1,1,(()=>{c[a]=null})),V(),n=c[e],n||(n=c[e]=s[e](t),n.c()),D(n,1),n.m(r.parentNode,r))},i(t){o||(D(n),o=!0)},o(t){M(n),o=!1},d(t){c[e].d(t),t&&f(r)}}}function dt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[pt]},$$scope:{ctx:t}};for(let t=0;t{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,i=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,c,i,a,r,l]}class mt extends Z{constructor(t){super(),Q(this,t,ht,dt,c,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const gt=[],$t=[{js:()=>Promise.all([import("./index.98d274eb.js"),__inject_styles(["client-ea61129f.css","index-183044ce.css"])]).then((function(t){return t[0]}))}],yt=[{pattern:/^\/$/,parts:[{i:0}]}]; -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -function vt(t,e,n,r){return new(n||(n=Promise))((function(o,s){function c(t){try{a(r.next(t))}catch(t){s(t)}}function i(t){try{a(r.throw(t))}catch(t){s(t)}}function a(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(c,i)}a((r=r.apply(t,e||[])).next())}))}function bt(t){for(;t&&"A"!==t.nodeName.toUpperCase();)t=t.parentNode;return t}let _t,xt=1;const wt="undefined"!=typeof history?history:{pushState:(t,e,n)=>{},replaceState:(t,e,n)=>{},scrollRestoration:""},Et={};let St,Rt;function Nt(t){const e=Object.create(null);return t.length>0&&t.slice(1).split("&").forEach((t=>{const[,n,r=""]=/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(t.replace(/\+/g," ")));"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r})),e}function kt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(St))return null;let e=t.pathname.slice(St.length);if(""===e&&(e="/"),!gt.some((t=>t.test(e))))for(let n=0;n{Ct(t)}),20)}function It(t,e={noscroll:!1,replaceState:!1}){const n=kt(new URL(t,qt(document)));return n?(wt[e.replaceState?"replaceState":"pushState"]({id:_t},"",t),Lt(n,null,e.noscroll).then((()=>{}))):(location.href=t,new Promise((t=>{})))}const Bt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Jt,Kt,Vt,Dt=!1,Mt=[],zt="{}";const Ht={page:function(t){const e=et(t);let n=!0;return{notify:function(){n=!0,e.update((t=>t))},set:function(t){n=!1,e.set(t)},subscribe:function(t){let r;return e.subscribe((e=>{(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:et(null),session:et(Bt&&Bt.session)};let Yt,Ft,Gt;function Wt(t,e){const{error:n}=t;return Object.assign({error:n},e)}function Xt(t){return vt(this,void 0,void 0,(function*(){Jt&&Ht.preloading.set(!0);const e=function(t){return Ut&&Ut.href===t.href?Ut.promise:Zt(t)}(t),n=Kt={},r=yield e,{redirect:o}=r;if(n===Kt)if(o)yield It(o.location,{replaceState:!0});else{const{props:e,branch:n}=r;yield Qt(n,e,Wt(e,t.page))}}))}function Qt(t,e,n){return vt(this,void 0,void 0,(function*(){Ht.page.set(n),Ht.preloading.set(!1),Jt?Jt.$set(e):(e.stores={page:{subscribe:Ht.page.subscribe},preloading:{subscribe:Ht.preloading.subscribe},session:Ht.session},e.level0={props:yield Vt},e.notify=Ht.page.notify,Jt=new mt({target:Gt,props:e,hydrate:!0})),Mt=t,zt=JSON.stringify(n.query),Dt=!0,Ft=!1}))}function Zt(t){return vt(this,void 0,void 0,(function*(){const{route:e,page:n}=t,r=n.path.split("/").filter(Boolean);let o=null;const s={error:null,status:200,segments:[r[0]]},c={fetch:(t,e)=>fetch(t,e),redirect:(t,e)=>{if(o&&(o.statusCode!==t||o.location!==e))throw new Error("Conflicting redirects");o={statusCode:t,location:e}},error:(t,e)=>{s.error="string"==typeof e?new Error(e):e,s.status=t}};if(!Vt){const t=()=>({});Vt=Bt.preloaded[0]||t.call(c,{host:n.host,path:n.path,query:n.query,params:{}},Yt)}let i,a=1;try{const o=JSON.stringify(n.query),l=e.pattern.exec(n.path);let u=!1;i=yield Promise.all(e.parts.map(((e,i)=>vt(this,void 0,void 0,(function*(){const f=r[i];if(function(t,e,n,r){if(r!==zt)return!0;const o=Mt[t];return!!o&&(e!==o.segment||!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0)}(i,f,l,o)&&(u=!0),s.segments[a]=r[i+1],!e)return{segment:f};const p=a++;if(!Ft&&!u&&Mt[i]&&Mt[i].part===e.i)return Mt[i];u=!1;const{default:d,preload:h}=yield $t[e.i].js();let m;return m=Dt||!Bt.preloaded[i+1]?h?yield h.call(c,{host:n.host,path:n.path,query:n.query,params:e.params?e.params(t.match):{}},Yt):{}:Bt.preloaded[i+1],s["level"+p]={component:d,props:m,segment:f,match:l,part:e.i}})))))}catch(t){s.error=t,s.status=500,i=[]}return{redirect:o,props:s,branch:i}}))}var te,ee,ne;Ht.session.subscribe((t=>vt(void 0,void 0,void 0,(function*(){if(Yt=t,!Dt)return;Ft=!0;const e=kt(new URL(location.href)),n=Kt={},{redirect:r,props:o,branch:s}=yield Zt(e);n===Kt&&(r?yield It(r.location,{replaceState:!0}):yield Qt(s,o,Wt(o,e.page)))})))),te={target:document.querySelector(".app")},ee=te.target,Gt=ee,ne=Bt.baseUrl,St=ne,Rt=Xt,"scrollRestoration"in wt&&(wt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{wt.scrollRestoration="auto"})),addEventListener("load",(()=>{wt.scrollRestoration="manual"})),addEventListener("click",Pt),addEventListener("popstate",At),addEventListener("touchstart",Ct),addEventListener("mousemove",Tt),Bt.error?Promise.resolve().then((()=>function(){const{host:t,pathname:e,search:n}=location,{session:r,preloaded:o,status:s,error:c}=Bt;Vt||(Vt=o&&o[0]);const i={error:c,status:s,session:r,level0:{props:Vt},level1:{props:{status:s,error:c},component:lt},segments:o},a=Nt(n);Qt([],i,{host:t,path:e,query:a,params:{},error:c})}())):Promise.resolve().then((()=>{const{hash:t,href:e}=location;wt.replaceState({id:xt},"",e);const n=kt(new URL(location.href));if(n)return Lt(n,xt,!0,t)}));export{Z as S,m as a,y as b,v as c,f as d,d as e,_ as f,b as g,$ as h,Q as i,u as j,l as k,x as l,K as m,t as n,N as o,M as p,V as q,D as r,c as s,h as t,Y as u,F as v,G as w,W as x,p as y,w as z}; - -import __inject_styles from './inject_styles.5607aec6.js'; \ No newline at end of file diff --git a/client/index-183044ce.css b/client/index-183044ce.css deleted file mode 100644 index c889d68..0000000 --- a/client/index-183044ce.css +++ /dev/null @@ -1,7 +0,0 @@ -.weatherCurrent-wrapper.svelte-1oi7i0p.svelte-1oi7i0p{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( - rgba(0, 0, 0, 0.5), - rgba(0, 0, 0, 0.5) - ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-1oi7i0p.svelte-1oi7i0p{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-1oi7i0p.svelte-1oi7i0p{display:flex;justify-content:center;align-content:center}.weatherCurrent-data-location.svelte-1oi7i0p .symbol.svelte-1oi7i0p{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-1oi7i0p h1.svelte-1oi7i0p{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-1oi7i0p h2.svelte-1oi7i0p{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-1oi7i0p.svelte-1oi7i0p{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-1oi7i0p p.svelte-1oi7i0p{line-height:1.375} -.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} -.predicted-weather.svelte-1romtap.svelte-1romtap{border-top-left-radius:2rem;border-top-right-radius:2rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.predicted-weather.svelte-1romtap.svelte-1romtap{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-1romtap.svelte-1romtap{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-1romtap h2.svelte-1romtap{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-1romtap.svelte-1romtap{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-1romtap.svelte-1romtap::-webkit-scrollbar{display:none}.no-data.svelte-1romtap.svelte-1romtap{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-1romtap.svelte-1romtap{margin-top:1rem} -.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25} diff --git a/client/index-5b63c830.css b/client/index-5b63c830.css new file mode 100644 index 0000000..1c2cb5b --- /dev/null +++ b/client/index-5b63c830.css @@ -0,0 +1,8 @@ +.lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} +.weatherCurrent-wrapper.svelte-9mqc59.svelte-9mqc59{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( + rgba(0, 0, 0, 0.5), + rgba(0, 0, 0, 0.5) + ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-9mqc59.svelte-9mqc59{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-9mqc59.svelte-9mqc59{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9mqc59 .symbol.svelte-9mqc59{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9mqc59 h1.svelte-9mqc59{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9mqc59 h2.svelte-9mqc59{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9mqc59.svelte-9mqc59{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9mqc59 p.svelte-9mqc59{line-height:1.375} +.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} +.predicted-weather.svelte-1romtap.svelte-1romtap{border-top-left-radius:2rem;border-top-right-radius:2rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.predicted-weather.svelte-1romtap.svelte-1romtap{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-1romtap.svelte-1romtap{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-1romtap h2.svelte-1romtap{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-1romtap.svelte-1romtap{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-1romtap.svelte-1romtap::-webkit-scrollbar{display:none}.no-data.svelte-1romtap.svelte-1romtap{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-1romtap.svelte-1romtap{margin-top:1rem} +.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25} diff --git a/client/index.4a80f6bf.js b/client/index.4a80f6bf.js new file mode 100644 index 0000000..659d7e9 --- /dev/null +++ b/client/index.4a80f6bf.js @@ -0,0 +1 @@ +import{S as a,i as t,s as e,e as s,c as n,a as l,d as r,b as c,f as i,g as o,n as u,w as d,h as p,t as h,j as f,k as m,l as v,m as g,o as w,p as _,q as b,r as E,u as y,v as D,x as $,y as k,z as j,A as I,B as O}from"./client.6ce3f24e.js";function V(a){let t,e,d,p,h,f,m,v,g;return{c(){t=s("div"),e=s("div"),d=s("div"),p=s("div"),h=s("div"),f=s("div"),m=s("div"),v=s("div"),g=s("div"),this.h()},l(a){t=n(a,"DIV",{class:!0});var s=l(t);e=n(s,"DIV",{class:!0}),l(e).forEach(r),d=n(s,"DIV",{class:!0}),l(d).forEach(r),p=n(s,"DIV",{class:!0}),l(p).forEach(r),h=n(s,"DIV",{class:!0}),l(h).forEach(r),f=n(s,"DIV",{class:!0}),l(f).forEach(r),m=n(s,"DIV",{class:!0}),l(m).forEach(r),v=n(s,"DIV",{class:!0}),l(v).forEach(r),g=n(s,"DIV",{class:!0}),l(g).forEach(r),s.forEach(r),this.h()},h(){c(e,"class","svelte-7k6qu0"),c(d,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(a,s){i(a,t,s),o(t,e),o(t,d),o(t,p),o(t,h),o(t,f),o(t,m),o(t,v),o(t,g)},p:u,i:u,o:u,d(a){a&&r(t)}}}class q extends a{constructor(a){super(),t(this,a,null,V,e,{})}}const P={updated:!1,updating:!0},x=d(Object.assign(Object.assign({},P),{available:!1,longitude:null,latitude:null,city:null})),T=d(Object.assign(Object.assign({},P),{available:!1})),S=d(Object.assign({},P));function C(a,t=!1){let e=t?{}:{updated:new Date};a.update((a=>Object.assign(Object.assign(Object.assign({},a),e),{updating:t})))}function M(a){let t,e,u,d,g=a[0].city+"";return{c(){t=s("i"),e=p(),u=s("h1"),d=h(g),this.h()},l(a){t=n(a,"I",{class:!0}),l(t).forEach(r),e=f(a),u=n(a,"H1",{class:!0});var s=l(u);d=m(s,g),s.forEach(r),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9mqc59"),c(u,"class","svelte-9mqc59")},m(a,s){i(a,t,s),i(a,e,s),i(a,u,s),o(u,d)},p(a,t){1&t&&g!==(g=a[0].city+"")&&v(d,g)},d(a){a&&r(t),a&&r(e),a&&r(u)}}}function N(a){let t,e,c=a[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),e=h(c)},l(a){t=n(a,"P",{});var s=l(t);e=m(s,c),s.forEach(r)},m(a,s){i(a,t,s),o(t,e)},p(a,t){2&t&&c!==(c=a[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&v(e,c)},d(a){a&&r(t)}}}function z(a){let t,e;return{c(){t=s("p"),e=h("There is more than 10 minutes difference between data updates")},l(a){t=n(a,"P",{});var s=l(t);e=m(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(a,s){i(a,t,s),o(t,e)},p:u,d(a){a&&r(t)}}}function A(a){return{c:u,l:u,m:u,p:u,d:u}}function H(a){let t,e,d,g,w,_,b,E,y,D,$,k,j=a[2].now.kp+"",I=a[2].now.kp_max+"",O=a[2].now.kp_min+"";return{c(){t=s("h2"),e=h("KP "),d=h(j),g=p(),w=s("p"),_=s("span"),b=h("↑ KP "),E=h(I),y=p(),D=s("span"),$=h("↓ KP "),k=h(O),this.h()},l(a){t=n(a,"H2",{class:!0});var s=l(t);e=m(s,"KP "),d=m(s,j),s.forEach(r),g=f(a),w=n(a,"P",{});var c=l(w);_=n(c,"SPAN",{classname:!0});var i=l(_);b=m(i,"↑ KP "),E=m(i,I),i.forEach(r),y=f(c),D=n(c,"SPAN",{classname:!0});var o=l(D);$=m(o,"↓ KP "),k=m(o,O),o.forEach(r),c.forEach(r),this.h()},h(){c(t,"class","svelte-9mqc59"),c(_,"classname","pr-2"),c(D,"classname","pl-2")},m(a,s){i(a,t,s),o(t,e),o(t,d),i(a,g,s),i(a,w,s),o(w,_),o(_,b),o(_,E),o(w,y),o(w,D),o(D,$),o(D,k)},p(a,t){4&t&&j!==(j=a[2].now.kp+"")&&v(d,j),4&t&&I!==(I=a[2].now.kp_max+"")&&v(E,I),4&t&&O!==(O=a[2].now.kp_min+"")&&v(k,O)},i:u,o:u,d(a){a&&r(t),a&&r(g),a&&r(w)}}}function K(a){let t,e;return t=new q({}),{c(){D(t.$$.fragment)},l(a){$(t.$$.fragment,a)},m(a,s){k(t,a,s),e=!0},p:u,i(a){e||(E(t.$$.fragment,a),e=!0)},o(a){_(t.$$.fragment,a),e=!1},d(a){j(t,a)}}}function B(a){let t,e,u,d,w,_,b,E,y=a[2].now.bz+"",D=a[1].available&&J(a);return{c(){t=s("div"),e=s("p"),u=h("BZ"),d=p(),w=s("p"),_=h(y),b=p(),D&&D.c(),E=g(),this.h()},l(a){t=n(a,"DIV",{});var s=l(t);e=n(s,"P",{class:!0});var c=l(e);u=m(c,"BZ"),c.forEach(r),d=f(s),w=n(s,"P",{class:!0});var i=l(w);_=m(i,y),i.forEach(r),s.forEach(r),b=f(a),D&&D.l(a),E=g(),this.h()},h(){c(e,"class","svelte-9mqc59"),c(w,"class","svelte-9mqc59")},m(a,s){i(a,t,s),o(t,e),o(e,u),o(t,d),o(t,w),o(w,_),i(a,b,s),D&&D.m(a,s),i(a,E,s)},p(a,t){4&t&&y!==(y=a[2].now.bz+"")&&v(_,y),a[1].available?D?D.p(a,t):(D=J(a),D.c(),D.m(E.parentNode,E)):D&&(D.d(1),D=null)},d(a){a&&r(t),a&&r(b),D&&D.d(a),a&&r(E)}}}function J(a){let t,e,u,d,g,w,_,b,E,y,D,$,k,j,I,O=a[1].now.temp+"",V=a[1].now.clouds+"";return{c(){t=s("div"),e=s("p"),u=h("Temp"),d=p(),g=s("p"),w=h(O),_=h("°C"),b=p(),E=s("div"),y=s("p"),D=h("Clouds"),$=p(),k=s("p"),j=h(V),I=h("%"),this.h()},l(a){t=n(a,"DIV",{});var s=l(t);e=n(s,"P",{class:!0});var c=l(e);u=m(c,"Temp"),c.forEach(r),d=f(s),g=n(s,"P",{class:!0});var i=l(g);w=m(i,O),_=m(i,"°C"),i.forEach(r),s.forEach(r),b=f(a),E=n(a,"DIV",{});var o=l(E);y=n(o,"P",{class:!0});var p=l(y);D=m(p,"Clouds"),p.forEach(r),$=f(o),k=n(o,"P",{class:!0});var h=l(k);j=m(h,V),I=m(h,"%"),h.forEach(r),o.forEach(r),this.h()},h(){c(e,"class","svelte-9mqc59"),c(g,"class","svelte-9mqc59"),c(y,"class","svelte-9mqc59"),c(k,"class","svelte-9mqc59")},m(a,s){i(a,t,s),o(t,e),o(e,u),o(t,d),o(t,g),o(g,w),o(g,_),i(a,b,s),i(a,E,s),o(E,y),o(y,D),o(E,$),o(E,k),o(k,j),o(k,I)},p(a,t){2&t&&O!==(O=a[1].now.temp+"")&&v(w,O),2&t&&V!==(V=a[1].now.clouds+"")&&v(j,V)},d(a){a&&r(t),a&&r(b),a&&r(E)}}}function L(a){let t,e,u,d,h,m,v,g,y,D,$,k,j,I=!a[0].updating&&a[0].available&&M(a);function O(a,t){return 6&t&&(m=null),a[1].updating||a[2].updating?A:(null==m&&(m=!!(Math.abs(a[1].updated-a[2].updated)>6e5)),m?z:N)}let V=O(a,-1),q=V(a);const P=[K,H],x=[];function T(a,t){return a[2].updating||a[1].updating?0:1}y=T(a),D=x[y]=P[y](a);let S=!a[2].updating&&!a[1].updating&&B(a);return{c(){t=s("div"),e=s("div"),u=s("div"),I&&I.c(),d=p(),h=s("div"),q.c(),v=p(),g=s("div"),D.c(),$=p(),k=s("div"),S&&S.c(),this.h()},l(a){t=n(a,"DIV",{class:!0});var s=l(t);e=n(s,"DIV",{class:!0});var c=l(e);u=n(c,"DIV",{class:!0});var i=l(u);I&&I.l(i),i.forEach(r),d=f(c),h=n(c,"DIV",{class:!0});var o=l(h);q.l(o),o.forEach(r),v=f(c),g=n(c,"DIV",{class:!0});var p=l(g);D.l(p),p.forEach(r),$=f(c),k=n(c,"DIV",{class:!0});var m=l(k);S&&S.l(m),m.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","weatherCurrent-data-location svelte-9mqc59"),c(h,"class","weatherCurrent-data-date"),c(g,"class","weatherCurrent-data-kp svelte-9mqc59"),c(k,"class","current-details svelte-9mqc59"),c(e,"class","weatherCurrent-data svelte-9mqc59"),c(t,"class","weatherCurrent-wrapper svelte-9mqc59")},m(a,s){i(a,t,s),o(t,e),o(e,u),I&&I.m(u,null),o(e,d),o(e,h),q.m(h,null),o(e,v),o(e,g),x[y].m(g,null),o(e,$),o(e,k),S&&S.m(k,null),j=!0},p(a,[t]){!a[0].updating&&a[0].available?I?I.p(a,t):(I=M(a),I.c(),I.m(u,null)):I&&(I.d(1),I=null),V===(V=O(a,t))&&q?q.p(a,t):(q.d(1),q=V(a),q&&(q.c(),q.m(h,null)));let e=y;y=T(a),y===e?x[y].p(a,t):(w(),_(x[e],1,1,(()=>{x[e]=null})),b(),D=x[y],D?D.p(a,t):(D=x[y]=P[y](a),D.c()),E(D,1),D.m(g,null)),a[2].updating||a[1].updating?S&&(S.d(1),S=null):S?S.p(a,t):(S=B(a),S.c(),S.m(k,null))},i(a){j||(E(D),j=!0)},o(a){_(D),j=!1},d(a){a&&r(t),I&&I.d(),q.d(),x[y].d(),S&&S.d()}}}function U(a,t,e){let s,n,l;return y(a,x,(a=>e(0,s=a))),y(a,T,(a=>e(1,n=a))),y(a,S,(a=>e(2,l=a))),[s,n,l]}!async function(){if("undefined"==typeof window)return;let a;C(x,!0);try{a=await async function(){return new Promise(((a,t)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((t=>{a({longitude:t.coords.longitude,latitude:t.coords.latitude})}),(a=>{t(a)})):t(Error())}))}()}catch(a){return console.log(a),x.update((a=>Object.assign(Object.assign({},a),{available:!1,city:null,longitude:null,latitude:null}))),void C(x,!1)}let t=await fetch(`https://geocode.xyz/${a.latitude},${a.longitude}?geoit=json`),e=await t.json();x.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:e.city}),a))),C(x,!1)}(),x.subscribe((async function(a=null){if("undefined"==typeof window)return;if(null===a)return;if(a.updating)return;if(!a.available)return T.update((a=>Object.assign(Object.assign({},a),{available:!1}))),void C(T,!1);C(T,!0);let t=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${a.latitude}&lon=${a.longitude}`),e=await t.json(),s={clouds:null,temp:null};try{s.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((a=>Object.assign(Object.assign({},a),{time:new Date(a.time)})))}catch(a){}T.update((a=>Object.assign(Object.assign({},a),{yr_data_raw:e,now:s,available:!0}))),C(T,!1)})),async function(){if("undefined"==typeof window)return;C(S,!0);let a=await async function(){let a={now:{bz:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1}},t=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");a.usnoaa_data_raw.solar_wind_mag_field=await t.json(),a.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(a.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),a.now.bz=a.usnoaa_data_raw.solar_wind_mag_field.Bz,t=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),a.usnoaa_data_raw.noaa_planetary_k_index_forecast=await t.json(),a.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let e=new Date,s=new Date(0,0,0),n=1e3,l=0;return a.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,r)=>{t[1]>l&&(l=t[1]),t[1]Object.assign(Object.assign({},t),a))),C(S,!1)}();class Z extends a{constructor(a){super(),t(this,a,U,L,e,{})}}function F(a){let t,e,d,v,g,w,_,b,E,y,D,$,k=a[5]&&function(a){let t,e,d,v,g,w,_,b,E,y,D,$;return{c(){t=s("div"),e=s("p"),d=s("i"),v=p(),g=h(a[3]),w=h("°C"),_=p(),b=s("p"),E=s("i"),y=p(),D=h(a[4]),$=h("%"),this.h()},l(s){t=n(s,"DIV",{});var c=l(t);e=n(c,"P",{});var i=l(e);d=n(i,"I",{class:!0}),l(d).forEach(r),v=f(i),g=m(i,a[3]),w=m(i,"°C"),i.forEach(r),_=f(c),b=n(c,"P",{});var o=l(b);E=n(o,"I",{class:!0}),l(E).forEach(r),y=f(o),D=m(o,a[4]),$=m(o,"%"),o.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","fas fa-thermometer-half"),c(E,"class","fas fa-cloud")},m(a,s){i(a,t,s),o(t,e),o(e,d),o(e,v),o(e,g),o(e,w),o(t,_),o(t,b),o(b,E),o(b,y),o(b,D),o(b,$)},p:u,d(a){a&&r(t)}}}(a);return{c(){t=s("div"),e=s("div"),d=s("h3"),v=h(a[2]),g=p(),w=s("p"),_=h(a[1]),b=p(),E=s("div"),y=s("h2"),D=h(a[0]),$=p(),k&&k.c(),this.h()},l(s){t=n(s,"DIV",{class:!0});var c=l(t);e=n(c,"DIV",{});var i=l(e);d=n(i,"H3",{class:!0});var o=l(d);v=m(o,a[2]),o.forEach(r),g=f(i),w=n(i,"P",{});var u=l(w);_=m(u,a[1]),u.forEach(r),i.forEach(r),b=f(c),E=n(c,"DIV",{class:!0});var p=l(E);y=n(p,"H2",{class:!0});var h=l(y);D=m(h,a[0]),h.forEach(r),$=f(p),k&&k.l(p),p.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-u548p6"),c(y,"class","svelte-u548p6"),c(E,"class","data svelte-u548p6"),c(t,"class","prediction-details svelte-u548p6")},m(a,s){i(a,t,s),o(t,e),o(e,d),o(d,v),o(e,g),o(e,w),o(w,_),o(t,b),o(t,E),o(E,y),o(y,D),o(E,$),k&&k.m(E,null)},p(a,[t]){a[5]&&k.p(a,t)},i:u,o:u,d(a){a&&r(t),k&&k.d()}}}function G(a,t=2){let e=a;for(let s=0;s{"prediction"in a&&e(6,s=a.prediction)},[n,l,r,c,i,o,s]}class R extends a{constructor(a){super(),t(this,a,Q,F,e,{prediction:6})}}function W(a,t,e){const s=a.slice();return s[5]=t[e],s[7]=e,s}function X(a){let t,e,d,v,g;return{c(){t=s("div"),e=s("i"),d=p(),v=s("p"),g=h("No prediction data"),this.h()},l(a){t=n(a,"DIV",{class:!0});var s=l(t);e=n(s,"I",{class:!0}),l(e).forEach(r),d=f(s),v=n(s,"P",{});var c=l(v);g=m(c,"No prediction data"),c.forEach(r),s.forEach(r),this.h()},h(){c(e,"class","fas fa-7x fa-exclamation-triangle"),c(t,"class","no-data svelte-1romtap")},m(a,s){i(a,t,s),o(t,e),o(t,d),o(t,v),o(v,g)},p:u,i:u,o:u,d(a){a&&r(t)}}}function Y(a){let t,e,u,d,v,g,y=a[0],D=[];for(let t=0;t_(D[a],1,1,(()=>{D[a]=null}));return{c(){t=s("div"),e=s("h2"),u=h("Predicted"),d=p(),v=s("div");for(let a=0;a{p[n]=null})),b(),o=p[e],o?o.p(a,s):(o=p[e]=d[e](a),o.c()),E(o,1),o.m(t,null))},i(a){u||(E(o),u=!0)},o(a){_(o),u=!1},d(a){a&&r(t),p[e].d()}}}function ea(a,t,e){let s,n,l;async function r(){n.updating||s.updating?e(0,l=null):(e(0,l=n.usnoaa_data_raw.noaa_planetary_k_index_forecast.map((a=>({time:a.time,kp:a.kp,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&l.forEach(((a,t)=>{let n,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((t,e)=>{let s=new Date(t.time);Math.abs(s.getTime()-a.time.getTime())e(1,s=a))),y(a,S,(a=>e(2,n=a))),S.subscribe(r),T.subscribe(r),[l]}class sa extends a{constructor(a){super(),t(this,a,ea,ta,e,{})}}function na(a){let t,e,d,h,m,v;return d=new Z({}),m=new sa({}),{c(){t=p(),e=s("div"),D(d.$$.fragment),h=p(),D(m.$$.fragment),this.h()},l(a){O('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),t=f(a),e=n(a,"DIV",{class:!0});var s=l(e);$(d.$$.fragment,s),h=f(s),$(m.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(e,"class","homescreen svelte-pf4p6y")},m(a,s){i(a,t,s),i(a,e,s),k(d,e,null),o(e,h),k(m,e,null),v=!0},p:u,i(a){v||(E(d.$$.fragment,a),E(m.$$.fragment,a),v=!0)},o(a){_(d.$$.fragment,a),_(m.$$.fragment,a),v=!1},d(a){a&&r(t),a&&r(e),j(d),j(m)}}}class la extends a{constructor(a){super(),t(this,a,null,na,e,{})}}export{la as default}; diff --git a/client/index.98d274eb.js b/client/index.98d274eb.js deleted file mode 100644 index 75c0ce5..0000000 --- a/client/index.98d274eb.js +++ /dev/null @@ -1 +0,0 @@ -import{S as t,i as e,s as a,e as s,a as r,t as o,c as n,b as c,d as i,f as l,g as h,h as f,j as u,k as p,l as d,n as v,o as m,m as g,p as E,q as $,r as w,u as y,v as D,w as P,x as b,y as I,z as x}from"./client.cead19b7.js";function V(t){let e,a,m,g,E,$,w,y,D,P,b,I,x,V,j,C,N,M,T,_,k,A,S,H,J,K,z,B,O,q,F,Z,G,L,Q,R,U,W,X,Y,tt,et,at,st,rt,ot,nt,ct,it;return{c(){e=s("div"),a=s("div"),m=s("div"),g=s("i"),E=r(),$=s("h1"),w=o(t[0]),y=r(),D=s("div"),P=s("p"),b=o(t[1]),I=r(),x=s("div"),V=s("h2"),j=o("KP "),C=o(t[2]),N=r(),M=s("p"),T=s("span"),_=o("↑ KP "),k=o(t[4]),A=r(),S=s("span"),H=o("↓ KP "),J=o(t[3]),K=r(),z=s("div"),B=s("div"),O=s("p"),q=o("BZ"),F=r(),Z=s("p"),G=o(t[5]),L=r(),Q=s("div"),R=s("p"),U=o("Temp"),W=r(),X=s("p"),Y=o(t[7]),tt=o("°C"),et=r(),at=s("div"),st=s("p"),rt=o("Clouds"),ot=r(),nt=s("p"),ct=o(t[6]),it=o("%"),this.h()},l(s){e=n(s,"DIV",{class:!0});var r=c(e);a=n(r,"DIV",{class:!0});var o=c(a);m=n(o,"DIV",{class:!0});var f=c(m);g=n(f,"I",{class:!0}),c(g).forEach(i),E=l(f),$=n(f,"H1",{class:!0});var u=c($);w=h(u,t[0]),u.forEach(i),f.forEach(i),y=l(o),D=n(o,"DIV",{class:!0});var p=c(D);P=n(p,"P",{});var d=c(P);b=h(d,t[1]),d.forEach(i),p.forEach(i),I=l(o),x=n(o,"DIV",{class:!0});var v=c(x);V=n(v,"H2",{class:!0});var lt=c(V);j=h(lt,"KP "),C=h(lt,t[2]),lt.forEach(i),N=l(v),M=n(v,"P",{});var ht=c(M);T=n(ht,"SPAN",{className:!0});var ft=c(T);_=h(ft,"↑ KP "),k=h(ft,t[4]),ft.forEach(i),A=l(ht),S=n(ht,"SPAN",{className:!0});var ut=c(S);H=h(ut,"↓ KP "),J=h(ut,t[3]),ut.forEach(i),ht.forEach(i),v.forEach(i),K=l(o),z=n(o,"DIV",{class:!0});var pt=c(z);B=n(pt,"DIV",{});var dt=c(B);O=n(dt,"P",{class:!0});var vt=c(O);q=h(vt,"BZ"),vt.forEach(i),F=l(dt),Z=n(dt,"P",{class:!0});var mt=c(Z);G=h(mt,t[5]),mt.forEach(i),dt.forEach(i),L=l(pt),Q=n(pt,"DIV",{});var gt=c(Q);R=n(gt,"P",{class:!0});var Et=c(R);U=h(Et,"Temp"),Et.forEach(i),W=l(gt),X=n(gt,"P",{class:!0});var $t=c(X);Y=h($t,t[7]),tt=h($t,"°C"),$t.forEach(i),gt.forEach(i),et=l(pt),at=n(pt,"DIV",{});var wt=c(at);st=n(wt,"P",{class:!0});var yt=c(st);rt=h(yt,"Clouds"),yt.forEach(i),ot=l(wt),nt=n(wt,"P",{class:!0});var Dt=c(nt);ct=h(Dt,t[6]),it=h(Dt,"%"),Dt.forEach(i),wt.forEach(i),pt.forEach(i),o.forEach(i),r.forEach(i),this.h()},h(){f(g,"class","symbol fas fa-map-marker-alt svelte-1oi7i0p"),f($,"class","svelte-1oi7i0p"),f(m,"class","weatherCurrent-data-location svelte-1oi7i0p"),f(D,"class","weatherCurrent-data-date"),f(V,"class","svelte-1oi7i0p"),f(T,"classname","pr-2"),f(S,"classname","pl-2"),f(x,"class","weatherCurrent-data-kp svelte-1oi7i0p"),f(O,"class","svelte-1oi7i0p"),f(Z,"class","svelte-1oi7i0p"),f(R,"class","svelte-1oi7i0p"),f(X,"class","svelte-1oi7i0p"),f(st,"class","svelte-1oi7i0p"),f(nt,"class","svelte-1oi7i0p"),f(z,"class","current-details svelte-1oi7i0p"),f(a,"class","weatherCurrent-data svelte-1oi7i0p"),f(e,"class","weatherCurrent-wrapper svelte-1oi7i0p")},m(t,s){u(t,e,s),p(e,a),p(a,m),p(m,g),p(m,E),p(m,$),p($,w),p(a,y),p(a,D),p(D,P),p(P,b),p(a,I),p(a,x),p(x,V),p(V,j),p(V,C),p(x,N),p(x,M),p(M,T),p(T,_),p(T,k),p(M,A),p(M,S),p(S,H),p(S,J),p(a,K),p(a,z),p(z,B),p(B,O),p(O,q),p(B,F),p(B,Z),p(Z,G),p(z,L),p(z,Q),p(Q,R),p(R,U),p(Q,W),p(Q,X),p(X,Y),p(X,tt),p(z,et),p(z,at),p(at,st),p(st,rt),p(at,ot),p(at,nt),p(nt,ct),p(nt,it)},p(t,[e]){1&e&&d(w,t[0]),2&e&&d(b,t[1]),4&e&&d(C,t[2]),16&e&&d(k,t[4]),8&e&&d(J,t[3]),32&e&&d(G,t[5]),128&e&&d(Y,t[7]),64&e&&d(ct,t[6])},i:v,o:v,d(t){t&&i(e)}}}function j(t,e,a){var s=this&&this.__awaiter||function(t,e,a,s){return new(a||(a=Promise))((function(r,o){function n(t){try{i(s.next(t))}catch(t){o(t)}}function c(t){try{i(s.throw(t))}catch(t){o(t)}}function i(t){var e;t.done?r(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(n,c)}i((s=s.apply(t,e||[])).next())}))};const r=["January","February","March","April","May","June","July","August","September","October","November","December"];let o,n,c="-",i="-",l="-",h="-",f="-",u="-",p="-",d="-";function v(t){o=t.coords.longitude,n=t.coords.latitude,function(t,e){s(this,void 0,void 0,(function*(){let s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e}&lon=${t}`).then((t=>t.json()));a(6,p=s.properties.timeseries[0].data.instant.details.cloud_area_fraction),a(7,d=s.properties.timeseries[0].data.instant.details.air_temperature)}))}(o,n),function(t,e){s(this,void 0,void 0,(function*(){console.log(`https://geocode.xyz/${t},${e}?geoit=json`);let s=yield fetch(`https://geocode.xyz/${e},${t}?geoit=json`).then((t=>t.json()));console.log(s),a(0,c=s.city)}))}(o,n)}function g(t){E()}function E(){o=28.283333,n=-15.416667}return m((function(){!function(){s(this,void 0,void 0,(function*(){a(5,u=(yield fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((t=>t.json()))).Bz);let t=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));t.shift();let e=new Date,s=new Date(0,0,0),o=1e3,n=0;t.forEach(((t,r)=>{t[1]>n&&(n=t[1]),t[1]{"prediction"in t&&a(6,s=t.prediction)},[r,n,c,i,l,h,s]}class T extends t{constructor(t){super(),e(this,t,M,N,a,{prediction:6})}}function _(t,e,a){const s=t.slice();return s[13]=e[a],s[15]=a,s}function k(t){let e,a,d,m,g;return{c(){e=s("div"),a=s("i"),d=r(),m=s("p"),g=o("No prediction data"),this.h()},l(t){e=n(t,"DIV",{class:!0});var s=c(e);a=n(s,"I",{class:!0}),c(a).forEach(i),d=l(s),m=n(s,"P",{});var r=c(m);g=h(r,"No prediction data"),r.forEach(i),s.forEach(i),this.h()},h(){f(a,"class","fas fa-7x fa-exclamation-triangle"),f(e,"class","no-data svelte-1romtap")},m(t,s){u(t,e,s),p(e,a),p(e,d),p(e,m),p(m,g)},p:v,i:v,o:v,d(t){t&&i(e)}}}function A(t){let e,a,d,v,m,y,D=t[0],P=[];for(let e=0;eE(P[t],1,1,(()=>{P[t]=null}));return{c(){e=s("div"),a=s("h2"),d=o("Predicted"),v=r(),m=s("div");for(let t=0;t{h[o]=null})),$(),r=h[a],r||(r=h[a]=l[a](t),r.c()),w(r,1),r.m(e,null))},i(t){o||(w(r),o=!0)},o(t){E(r),o=!1},d(t){t&&i(e),h[a].d()}}}function J(t,e,a){var s=this&&this.__awaiter||function(t,e,a,s){return new(a||(a=Promise))((function(r,o){function n(t){try{i(s.next(t))}catch(t){o(t)}}function c(t){try{i(s.throw(t))}catch(t){o(t)}}function i(t){var e;t.done?r(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(n,c)}i((s=s.apply(t,e||[])).next())}))};let r,o,n,c=!1;function i(t,e){return s(this,void 0,void 0,(function*(){let s;c&&(s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e}&lon=${t}`).then((t=>t.json())));let r=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));r.shift();let o=[];r.forEach(((t,e)=>{if("observed"!=t[2]){let e,a,r=new Date(t[0]),n=new Date(0,0,0);c&&s.properties.timeseries.forEach(((t,s)=>{let o=new Date(t.time);Math.abs(o.getTime()-r.getTime())t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o(a={path:i,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports),c=u;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n1?e-1:0),r=1;r>1);n(o)<=r?t=o+1:e=o}return t}function P(t,e){if(O){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r0&&e[i[u]].claim_order<=f?u+1:A(1,u,(function(t){return e[i[t]].claim_order}),f))-1;a[c]=i[s]+1;var l=s+1;i[l]=c,u=Math.max(l,u)}for(var h=[],p=[],d=e.length-1,v=i[u]+1;0!=v;v=a[v-1]){for(h.push(e[v-1]);d>=v;d--)p.push(e[d]);d--}for(;d>=0;d--)p.push(e[d]);h.reverse(),p.sort((function(t,e){return t.claim_order-e.claim_order}));for(var m=0,y=0;m=h[y].claim_order;)y++;var g=y4&&void 0!==arguments[4]&&arguments[4];D(t);var i=function(){for(var i=t.claim_info.last_index;i=0;c--){var f=t[c];if(e(f)){var s=n(f);return void 0===s?t.splice(c,1):t[c]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=c,f}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function J(t,e,n){return function(t,e,n,r){return M(t,(function(t){return t.nodeName===e}),(function(t){for(var e=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function Y(t){j=t}function W(){if(!j)throw new Error("Function called outside component initialization");return j}var X=[],Q=[],Z=[],tt=[],et=Promise.resolve(),nt=!1;function rt(t){Z.push(t)}var ot=new Set,it=0;function at(){var t=j;do{for(;it7&&void 0!==arguments[7]?arguments[7]:[-1],c=j;Y(t);var f=t.$$={fragment:null,ctx:null,props:i,update:g,not_equal:o,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:x(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};a&&a(f.root);var s=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),s&&_t(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){L();var l=F(e.target);f.fragment&&f.fragment.l(l),l.forEach(T)}else f.fragment&&f.fragment.c();e.intro&&ht(t.$$.fragment),gt(t,e.target,e.anchor,e.customElement),R(),at()}Y(c)}var wt=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){bt(this,1),this.$destroy=g}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function $t(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:g,r=new Set;function o(n){if(E(t,n)&&(t=n,e)){var o,i=!St.length,a=$t(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),St.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:g,u=[i,a];return r.add(u),1===r.size&&(e=n(o)||g),i(t),function(){r.delete(u),0===r.size&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var jt={};function Ot(t){var e=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 n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Lt(e){var n,o,i=e[1].default,a=function(t,e,n,r){if(t){var o=k(t,e,n,r);return t[0](o)}}(i,e,e[0],null);return{c:function(){n=q("div"),a&&a.c(),this.h()},l:function(t){var e=F(n=J(t,"DIV",{class:!0}));a&&a.l(e),e.forEach(T),this.h()},h:function(){G(n,"class","app-container svelte-lkkhqy")},m:function(t,e){N(t,n,e),a&&a.m(n,null),o=!0},p:function(e,n){var u=r(n,1)[0];a&&a.p&&(!o||1&u)&&function(t,e,n,r,o,i){if(o){var a=k(e,n,r,i);t.p(a,o)}}(a,i,e,e[0],o?function(e,n,r,o){if(e[2]&&o){var i=e[2](o(r));if(void 0===n.dirty)return i;if("object"===t(i)){for(var a=[],u=Math.max(n.dirty.length,i.length),c=0;c32){for(var e=[],n=t.ctx.length/32,r=0;r0&&e.slice(1).split("&").forEach((function(e){var o=r(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),i=o[1],a=o[2],u=void 0===a?"":a;"string"==typeof n[i]&&(n[i]=[n[i]]),"object"===t(n[i])?n[i].push(u):n[i]=u})),n}function ne(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Xt))return null;var e=t.pathname.slice(Xt.length);if(""===e&&(e="/"),!Jt.some((function(t){return t.test(e)})))for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=ne(new URL(t,ue(document)));return n?(Zt[e.replaceState?"replaceState":"pushState"]({id:Yt},"",t),ae(n,null,e.noscroll)):(location.href=t,new Promise((function(){})))}var de,ve,me,ye,ge,be,_e,xe,we,$e="undefined"!=typeof __SAPPER__&&__SAPPER__,Ee=!1,Se=[],ke="{}",je={page:function(t){var e=kt(t),n=!0;return{notify:function(){n=!0,e.update((function(t){return t}))},set:function(t){n=!1,e.set(t)},subscribe:function(t){var r;return e.subscribe((function(e){(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:kt(null),session:kt($e&&$e.session)};function Oe(t,e){var n=t.error;return Object.assign({error:n},e)}function Le(t){return Kt(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return de&&je.preloading.set(!0),n=se(t),r=ve={},e.next=5,n;case 5:if(o=e.sent,i=o.redirect,r===ve){e.next=9;break}return e.abrupt("return");case 9:if(!i){e.next=14;break}return e.next=12,pe(i.location,{replaceState:!0});case 12:e.next=17;break;case 14:return a=o.props,u=o.branch,e.next=17,Re(u,a,Oe(a,t.page));case 17:case"end":return e.stop()}}),e)})))}function Re(t,e,n){return Kt(this,void 0,void 0,c.mark((function r(){return c.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(je.page.set(n),je.preloading.set(!1),!de){r.next=6;break}de.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:je.page.subscribe},preloading:{subscribe:je.preloading.subscribe},session:je.session},r.next=9,me;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=je.page.notify,de=new Mt({target:be,props:e,hydrate:!0});case 13:Se=t,ke=JSON.stringify(n.query),Ee=!0,ge=!1;case 17:case"end":return r.stop()}}),r)})))}function Ae(t,e,n,r){if(r!==ke)return!0;var o=Se[t];return!!o&&(e!==o.segment||(!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0))}function Pe(t){return Kt(this,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u,f,s,l,h,p,d,v=this;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,o=r.path.split("/").filter(Boolean),i=null,a={error:null,status:200,segments:[o[0]]},u={fetch:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return fetch(t,e)})),redirect:function(t,e){if(i&&(i.statusCode!==t||i.location!==e))throw new Error("Conflicting redirects");i={statusCode:t,location:e}},error:function(t,e){a.error="string"==typeof e?new Error(e):e,a.status=t}},me||(f=function(){return{}},me=$e.preloaded[0]||f.call(u,{host:r.host,path:r.path,query:r.query,params:{}},ye)),l=1,e.prev=7,h=JSON.stringify(r.query),p=n.pattern.exec(r.path),d=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return Kt(v,void 0,void 0,c.mark((function i(){var f,s,v,m,y,g;return c.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(f=o[n],Ae(n,f,p,h)&&(d=!0),a.segments[l]=o[n+1],e){i.next=5;break}return i.abrupt("return",{segment:f});case 5:if(s=l++,ge||d||!Se[n]||Se[n].part!==e.i){i.next=8;break}return i.abrupt("return",Se[n]);case 8:return d=!1,i.next=11,zt[e.i].js();case 11:if(v=i.sent,m=v.default,y=v.preload,!Ee&&$e.preloaded[n+1]){i.next=25;break}if(!y){i.next=21;break}return i.next=18,y.call(u,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},ye);case 18:i.t0=i.sent,i.next=22;break;case 21:i.t0={};case 22:g=i.t0,i.next=26;break;case 25:g=$e.preloaded[n+1];case 26:return i.abrupt("return",a["level".concat(s)]={component:m,props:g,segment:f,match:p,part:e.i});case 27:case"end":return i.stop()}}),i)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),a.error=e.t0,a.status=500,s=[];case 21:return e.abrupt("return",{redirect:i,props:a,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}je.session.subscribe((function(t){return Kt(void 0,void 0,void 0,c.mark((function e(){var n,r,o,i,a,u;return c.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ye=t,Ee){e.next=3;break}return e.abrupt("return");case 3:return ge=!0,n=ne(new URL(location.href)),r=ve={},e.next=8,Pe(n);case 8:if(o=e.sent,i=o.redirect,a=o.props,u=o.branch,r===ve){e.next=14;break}return e.abrupt("return");case 14:if(!i){e.next=19;break}return e.next=17,pe(i.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,Re(u,a,Oe(a,n.page));case 21:case"end":return e.stop()}}),e)})))})),_e={target:document.querySelector(".app")},xe=_e.target,be=xe,we=$e.baseUrl,Xt=we,Qt=Le,"scrollRestoration"in Zt&&(Zt.scrollRestoration="manual"),addEventListener("beforeunload",(function(){Zt.scrollRestoration="auto"})),addEventListener("load",(function(){Zt.scrollRestoration="manual"})),addEventListener("click",re),addEventListener("popstate",ie),addEventListener("touchstart",le),addEventListener("mousemove",he),$e.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=$e.session,i=$e.preloaded,a=$e.status,u=$e.error;me||(me=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:me},level1:{props:{status:a,error:u},component:qt},segments:i},f=ee(r);Re([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;Zt.replaceState({id:Wt},"",n);var r=ne(new URL(location.href));if(r)return ae(r,Wt,!0,e)}));export{ht as A,S as B,mt as C,yt as D,gt as E,bt as F,c as G,I as H,V as I,wt as S,h as _,f as a,d as b,v as c,p as d,y as e,q as f,J as g,F as h,xt as i,T as j,G as k,N as l,P as m,g as n,B as o,H as p,z as q,K as r,E as s,C as t,U as u,r as v,kt as w,st as x,pt as y,lt as z}; + +import __inject_styles from './inject_styles.fe622066.js'; \ No newline at end of file diff --git a/client/legacy/client.8f52d8e6.js b/client/legacy/client.8f52d8e6.js deleted file mode 100644 index 0d9d462..0000000 --- a/client/legacy/client.8f52d8e6.js +++ /dev/null @@ -1,18 +0,0 @@ -function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}var e,n,r,o=(function(e){var n=function(e){var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r=p;return function(o,i){if(r===v)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=v;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?d:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",h="suspendedYield",v="executing",d="completed",m={};function y(){}function g(){}function b(){}var w={};w[a]=function(){return this};var x=Object.getPrototypeOf,$=x&&x(x(R([])));$&&$!==r&&o.call($,a)&&(w=$);var _=b.prototype=y.prototype=Object.create(w);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(i,a,u,c){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,p=s.value;return p&&"object"===t(p)&&o.call(p,"__await")?n.resolve(p.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(p).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports);function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function G(t){r=t}function F(){if(!r)throw new Error("Function called outside component initialization");return r}function B(t){F().$$.on_mount.push(t)}var J=[],K=[],M=[],V=[],Y=Promise.resolve(),z=!1;function H(t){M.push(t)}var W=!1,X=new Set;function Q(){if(!W){W=!0;do{for(var t=0;t6&&void 0!==arguments[6]?arguments[6]:[-1],c=r;G(t);var f=e.props||{},s=t.$$={fragment:null,ctx:null,props:a,update:m,not_equal:i,bound:b(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:b(),dirty:u,skip_bound:!1},l=!1;if(s.ctx=n?n(t,f,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return s.ctx&&i(s.ctx[e],s.ctx[e]=r)&&(!s.skip_bound&&s.bound[e]&&s.bound[e](r),l&&pt(t,e)),n})):[],s.update(),l=!0,w(s.before_update),s.fragment=!!o&&o(s.ctx),e.target){if(e.hydrate){var p=T(e.target);s.fragment&&s.fragment.l(p),p.forEach(L)}else s.fragment&&s.fragment.c();e.intro&&ot(t.$$.fragment),st(t,e.target,e.anchor),Q()}G(c)}var vt=function(){function t(){v(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){lt(this,1),this.$destroy=m}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&d(e.prototype,n),r&&d(e,r),t}(),dt=[];function mt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,r=[];function o(n){if($(t,n)&&(t=n,e)){for(var o=!dt.length,i=0;i1&&void 0!==arguments[1]?arguments[1]:m,u=[i,a];return r.push(u),1===r.length&&(e=n(o)||m),i(t),function(){var t=r.indexOf(u);-1!==t&&r.splice(t,1),0===r.length&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var yt={};function gt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function bt(t){var e,n,r=t[1].default,o=function(t,e,n,r){if(t){var o=_(t,e,n,r);return t[0](o)}}(r,t,t[0],null);return{c:function(){e=O("div"),o&&o.c(),this.h()},l:function(t){var n=T(e=q(t,"DIV",{class:!0}));o&&o.l(n),n.forEach(L),this.h()},h:function(){N(e,"class","app-container svelte-lkkhqy")},m:function(t,r){k(t,e,r),o&&o.m(e,null),n=!0},p:function(t,e){var n=u(e,1)[0];o&&o.p&&1&n&&E(o,r,t,t[0],n,null,null)},i:function(t){n||(ot(o,t),n=!0)},o:function(t){it(o,t),n=!1},d:function(t){t&&L(e),o&&o.d(t)}}}function wt(t,e,n){var r=e.$$slots,o=void 0===r?{}:r,i=e.$$scope;return t.$$set=function(t){"$$scope"in t&&n(0,i=t.$$scope)},[i,o]}var xt=function(t){s(n,vt);var e=gt(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,wt,bt,$,{}),r}return n}();function $t(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function _t(t){var e,n,r=t[1].stack+"";return{c:function(){e=O("pre"),n=R(r)},l:function(t){var o=T(e=q(t,"PRE",{}));n=I(o,r),o.forEach(L)},m:function(t,r){k(t,e,r),S(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&U(n,r)},d:function(t){t&&L(e)}}}function Et(t){var e,n,r,o,i,a,c,f,s,l=t[1].message+"";document.title=e=t[0];var p=t[2]&&t[1].stack&&_t(t);return{c:function(){n=P(),r=O("h1"),o=R(t[0]),i=P(),a=O("p"),c=R(l),f=P(),p&&p.c(),s=A(),this.h()},l:function(e){D('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(L),n=C(e);var u=T(r=q(e,"H1",{class:!0}));o=I(u,t[0]),u.forEach(L),i=C(e);var h=T(a=q(e,"P",{class:!0}));c=I(h,l),h.forEach(L),f=C(e),p&&p.l(e),s=A(),this.h()},h:function(){N(r,"class","svelte-jpshsi"),N(a,"class","svelte-jpshsi")},m:function(t,e){k(t,n,e),k(t,r,e),S(r,o),k(t,i,e),k(t,a,e),S(a,c),k(t,f,e),p&&p.m(t,e),k(t,s,e)},p:function(t,n){var r=u(n,1)[0];1&r&&e!==(e=t[0])&&(document.title=e),1&r&&U(o,t[0]),2&r&&l!==(l=t[1].message+"")&&U(c,l),t[2]&&t[1].stack?p?p.p(t,r):((p=_t(t)).c(),p.m(s.parentNode,s)):p&&(p.d(1),p=null)},i:m,o:m,d:function(t){t&&L(n),t&&L(r),t&&L(i),t&&L(a),t&&L(f),p&&p.d(t),t&&L(s)}}}function St(t,e,n){var r=e.status,o=e.error;return t.$$set=function(t){"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}var kt=function(t){s(n,vt);var e=$t(n);function n(t){var r;return v(this,n),ht(l(r=e.call(this)),t,St,Et,$,{status:0,error:1}),r}return n}();function Lt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function jt(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n0&&e.slice(1).split("&").forEach((function(e){var r=u(/([^=]*)(?:=(.*))?/.exec(decodeURIComponent(e.replace(/\+/g," "))),3),o=r[1],i=r[2],a=void 0===i?"":i;"string"==typeof n[o]&&(n[o]=[n[o]]),"object"===t(n[o])?n[o].push(a):n[o]=a})),n}function Vt(t){if(t.origin!==location.origin)return null;if(!t.pathname.startsWith(Ft))return null;var e=t.pathname.slice(Ft.length);if(""===e&&(e="/"),!Tt.some((function(t){return t.test(e)})))for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1},n=Vt(new URL(t,Xt(document)));return n?(Jt[e.replaceState?"replaceState":"pushState"]({id:Dt},"",t),Wt(n,null,e.noscroll).then((function(){}))):(location.href=t,new Promise((function(t){})))}var oe,ie,ae,ue,ce,fe,se,le,pe,he="undefined"!=typeof __SAPPER__&&__SAPPER__,ve=!1,de=[],me="{}",ye={page:function(t){var e=mt(t),n=!0;return{notify:function(){n=!0,e.update((function(t){return t}))},set:function(t){n=!1,e.set(t)},subscribe:function(t){var r;return e.subscribe((function(e){(void 0===r||n&&e!==r)&&t(r=e)}))}}}({}),preloading:mt(null),session:mt(he&&he.session)};function ge(t,e){var n=t.error;return Object.assign({error:n},e)}function be(t){return Ct(this,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return oe&&ye.preloading.set(!0),n=te(t),r=ie={},e.next=5,n;case 5:if(i=e.sent,a=i.redirect,r===ie){e.next=9;break}return e.abrupt("return");case 9:if(!a){e.next=14;break}return e.next=12,re(a.location,{replaceState:!0});case 12:e.next=17;break;case 14:return u=i.props,c=i.branch,e.next=17,we(c,u,ge(u,t.page));case 17:case"end":return e.stop()}}),e)})))}function we(t,e,n){return Ct(this,void 0,void 0,o.mark((function r(){return o.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(ye.page.set(n),ye.preloading.set(!1),!oe){r.next=6;break}oe.$set(e),r.next=13;break;case 6:return e.stores={page:{subscribe:ye.page.subscribe},preloading:{subscribe:ye.preloading.subscribe},session:ye.session},r.next=9,ae;case 9:r.t0=r.sent,e.level0={props:r.t0},e.notify=ye.page.notify,oe=new Nt({target:fe,props:e,hydrate:!0});case 13:de=t,me=JSON.stringify(n.query),ve=!0,ce=!1;case 17:case"end":return r.stop()}}),r)})))}function xe(t,e,n,r){if(r!==me)return!0;var o=de[t];return!!o&&(e!==o.segment||(!(!o.match||JSON.stringify(o.match.slice(1,t+2))===JSON.stringify(n.slice(1,t+2)))||void 0))}function $e(t){return Ct(this,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c,f,s,l,p,h,v,d=this;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.route,r=t.page,i=r.path.split("/").filter(Boolean),a=null,u={error:null,status:200,segments:[i[0]]},c={fetch:function(t){function e(e,n){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t,e){return fetch(t,e)})),redirect:function(t,e){if(a&&(a.statusCode!==t||a.location!==e))throw new Error("Conflicting redirects");a={statusCode:t,location:e}},error:function(t,e){u.error="string"==typeof e?new Error(e):e,u.status=t}},ae||(f=function(){return{}},ae=he.preloaded[0]||f.call(c,{host:r.host,path:r.path,query:r.query,params:{}},ue)),l=1,e.prev=7,p=JSON.stringify(r.query),h=n.pattern.exec(r.path),v=!1,e.next=13,Promise.all(n.parts.map((function(e,n){return Ct(d,void 0,void 0,o.mark((function a(){var f,s,d,m,y,g;return o.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(f=i[n],xe(n,f,h,p)&&(v=!0),u.segments[l]=i[n+1],e){o.next=5;break}return o.abrupt("return",{segment:f});case 5:if(s=l++,ce||v||!de[n]||de[n].part!==e.i){o.next=8;break}return o.abrupt("return",de[n]);case 8:return v=!1,o.next=11,qt[e.i].js();case 11:if(d=o.sent,m=d.default,y=d.preload,!ve&&he.preloaded[n+1]){o.next=25;break}if(!y){o.next=21;break}return o.next=18,y.call(c,{host:r.host,path:r.path,query:r.query,params:e.params?e.params(t.match):{}},ue);case 18:o.t0=o.sent,o.next=22;break;case 21:o.t0={};case 22:g=o.t0,o.next=26;break;case 25:g=he.preloaded[n+1];case 26:return o.abrupt("return",u["level".concat(s)]={component:m,props:g,segment:f,match:h,part:e.i});case 27:case"end":return o.stop()}}),a)})))})));case 13:s=e.sent,e.next=21;break;case 16:e.prev=16,e.t0=e.catch(7),u.error=e.t0,u.status=500,s=[];case 21:return e.abrupt("return",{redirect:a,props:u,branch:s});case 22:case"end":return e.stop()}}),e,null,[[7,16]])})))}ye.session.subscribe((function(t){return Ct(void 0,void 0,void 0,o.mark((function e(){var n,r,i,a,u,c;return o.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ue=t,ve){e.next=3;break}return e.abrupt("return");case 3:return ce=!0,n=Vt(new URL(location.href)),r=ie={},e.next=8,$e(n);case 8:if(i=e.sent,a=i.redirect,u=i.props,c=i.branch,r===ie){e.next=14;break}return e.abrupt("return");case 14:if(!a){e.next=19;break}return e.next=17,re(a.location,{replaceState:!0});case 17:e.next=21;break;case 19:return e.next=21,we(c,u,ge(u,n.page));case 21:case"end":return e.stop()}}),e)})))})),se={target:document.querySelector(".app")},le=se.target,fe=le,pe=he.baseUrl,Ft=pe,Bt=be,"scrollRestoration"in Jt&&(Jt.scrollRestoration="manual"),addEventListener("beforeunload",(function(){Jt.scrollRestoration="auto"})),addEventListener("load",(function(){Jt.scrollRestoration="manual"})),addEventListener("click",Yt),addEventListener("popstate",Ht),addEventListener("touchstart",ee),addEventListener("mousemove",ne),he.error?Promise.resolve().then((function(){return function(){var t=location,e=t.host,n=t.pathname,r=t.search,o=he.session,i=he.preloaded,a=he.status,u=he.error;ae||(ae=i&&i[0]);var c={error:u,status:a,session:o,level0:{props:ae},level1:{props:{status:a,error:u},component:kt},segments:i},f=Mt(r);we([],c,{host:e,path:n,query:f,params:{},error:u})}()})):Promise.resolve().then((function(){var t=location,e=t.hash,n=t.href;Jt.replaceState({id:Gt},"",n);var r=Vt(new URL(location.href));if(r)return Wt(r,Gt,!0,e)}));export{ct as A,ft as B,st as C,lt as D,j as E,D as F,vt as S,s as _,c as a,p as b,v as c,l as d,O as e,P as f,q as g,T as h,ht as i,L as j,C as k,I as l,N as m,k as n,S as o,u as p,U as q,m as r,$ as s,R as t,B as u,o as v,nt as w,it as x,rt as y,ot as z}; - -import __inject_styles from './inject_styles.fe622066.js'; \ No newline at end of file diff --git a/client/legacy/index-183044ce.css b/client/legacy/index-183044ce.css deleted file mode 100644 index c889d68..0000000 --- a/client/legacy/index-183044ce.css +++ /dev/null @@ -1,7 +0,0 @@ -.weatherCurrent-wrapper.svelte-1oi7i0p.svelte-1oi7i0p{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( - rgba(0, 0, 0, 0.5), - rgba(0, 0, 0, 0.5) - ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-1oi7i0p.svelte-1oi7i0p{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-1oi7i0p.svelte-1oi7i0p{display:flex;justify-content:center;align-content:center}.weatherCurrent-data-location.svelte-1oi7i0p .symbol.svelte-1oi7i0p{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-1oi7i0p h1.svelte-1oi7i0p{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-1oi7i0p h2.svelte-1oi7i0p{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-1oi7i0p.svelte-1oi7i0p{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-1oi7i0p p.svelte-1oi7i0p{line-height:1.375} -.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} -.predicted-weather.svelte-1romtap.svelte-1romtap{border-top-left-radius:2rem;border-top-right-radius:2rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.predicted-weather.svelte-1romtap.svelte-1romtap{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-1romtap.svelte-1romtap{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-1romtap h2.svelte-1romtap{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-1romtap.svelte-1romtap{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-1romtap.svelte-1romtap::-webkit-scrollbar{display:none}.no-data.svelte-1romtap.svelte-1romtap{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-1romtap.svelte-1romtap{margin-top:1rem} -.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25} diff --git a/client/legacy/index-5b63c830.css b/client/legacy/index-5b63c830.css new file mode 100644 index 0000000..1c2cb5b --- /dev/null +++ b/client/legacy/index-5b63c830.css @@ -0,0 +1,8 @@ +.lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} +.weatherCurrent-wrapper.svelte-9mqc59.svelte-9mqc59{height:calc(100% + 2rem);align-self:stretch;font-family:Roboto, sans-serif;font-size:1rem;letter-spacing:0.05em;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));background:linear-gradient( + rgba(0, 0, 0, 0.5), + rgba(0, 0, 0, 0.5) + ), url(/Aurora-data/aurora.jpg);background-size:cover;background-repeat:no-repeat;background-position:center}.weatherCurrent-data.svelte-9mqc59.svelte-9mqc59{width:100%;padding:1.5rem;flex-grow:1;display:flex;flex-direction:column;justify-content:space-between;height:100%;--text-opacity:1;color:#fff;color:rgba(255, 255, 255, var(--text-opacity));text-align:center;letter-spacing:0.05em;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.weatherCurrent-data-location.svelte-9mqc59.svelte-9mqc59{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9mqc59 .symbol.svelte-9mqc59{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9mqc59 h1.svelte-9mqc59{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9mqc59 h2.svelte-9mqc59{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9mqc59.svelte-9mqc59{display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9mqc59 p.svelte-9mqc59{line-height:1.375} +.prediction-details.svelte-u548p6.svelte-u548p6{display:flex;justify-content:space-between;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em}.prediction-details.svelte-u548p6.svelte-u548p6:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-u548p6 h3.svelte-u548p6{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-u548p6 .data.svelte-u548p6{display:flex;flex-direction:row}.prediction-details.svelte-u548p6 .data h2.svelte-u548p6{margin-right:1rem;font-size:1.5rem} +.predicted-weather.svelte-1romtap.svelte-1romtap{border-top-left-radius:2rem;border-top-right-radius:2rem;--bg-opacity:1;background-color:#f7fafc;background-color:rgba(247, 250, 252, var(--bg-opacity));padding:1.5rem;--text-opacity:1;color:#1a202c;color:rgba(26, 32, 44, var(--text-opacity));height:100%;overflow:hidden;align-self:stretch;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.predicted-weather.svelte-1romtap.svelte-1romtap{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.predicted-weather.svelte-1romtap.svelte-1romtap{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.predicted-weather.svelte-1romtap h2.svelte-1romtap{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem}.prediction-table.svelte-1romtap.svelte-1romtap{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-1romtap.svelte-1romtap::-webkit-scrollbar{display:none}.no-data.svelte-1romtap.svelte-1romtap{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-1romtap.svelte-1romtap{margin-top:1rem} +.homescreen.svelte-pf4p6y{display:grid;grid-template-rows:40vh auto;grid-row-gap:0;height:100%;--bg-opacity:1;background-color:#1a202c;background-color:rgba(26, 32, 44, var(--bg-opacity));--bg-opacity:0.25} diff --git a/client/legacy/index.3620d9f2.js b/client/legacy/index.3620d9f2.js deleted file mode 100644 index 0f507e6..0000000 --- a/client/legacy/index.3620d9f2.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,a as n,b as e,c as r,i as a,s as c,d as o,S as i,e as s,f as u,t as f,g as l,h,j as v,k as p,l as d,m,n as g,o as y,p as E,q as w,r as D,u as P,v as x,w as $,x as b,y as I,z as R,A as V,B as j,C,D as k,E as N,F as M}from"./client.8f52d8e6.js";function T(t){var r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var a,c=n(t);if(r){var o=n(this).constructor;a=Reflect.construct(c,arguments,o)}else a=c.apply(this,arguments);return e(this,a)}}function S(t){var n,e,r,a,c,o,i,P,x,$,b,I,R,V,j,C,k,N,M,T,S,_,A,H,J,K,B,z,O,F,q,Z,G,L,Q,U,W,X,Y,tt,nt,et,rt,at,ct,ot,it,st,ut;return{c:function(){n=s("div"),e=s("div"),r=s("div"),a=s("i"),c=u(),o=s("h1"),i=f(t[0]),P=u(),x=s("div"),$=s("p"),b=f(t[1]),I=u(),R=s("div"),V=s("h2"),j=f("KP "),C=f(t[2]),k=u(),N=s("p"),M=s("span"),T=f("↑ KP "),S=f(t[4]),_=u(),A=s("span"),H=f("↓ KP "),J=f(t[3]),K=u(),B=s("div"),z=s("div"),O=s("p"),F=f("BZ"),q=u(),Z=s("p"),G=f(t[5]),L=u(),Q=s("div"),U=s("p"),W=f("Temp"),X=u(),Y=s("p"),tt=f(t[7]),nt=f("°C"),et=u(),rt=s("div"),at=s("p"),ct=f("Clouds"),ot=u(),it=s("p"),st=f(t[6]),ut=f("%"),this.h()},l:function(s){n=l(s,"DIV",{class:!0});var u=h(n);e=l(u,"DIV",{class:!0});var f=h(e);r=l(f,"DIV",{class:!0});var m=h(r);a=l(m,"I",{class:!0}),h(a).forEach(v),c=p(m),o=l(m,"H1",{class:!0});var g=h(o);i=d(g,t[0]),g.forEach(v),m.forEach(v),P=p(f),x=l(f,"DIV",{class:!0});var y=h(x);$=l(y,"P",{});var E=h($);b=d(E,t[1]),E.forEach(v),y.forEach(v),I=p(f),R=l(f,"DIV",{class:!0});var w=h(R);V=l(w,"H2",{class:!0});var D=h(V);j=d(D,"KP "),C=d(D,t[2]),D.forEach(v),k=p(w),N=l(w,"P",{});var ft=h(N);M=l(ft,"SPAN",{className:!0});var lt=h(M);T=d(lt,"↑ KP "),S=d(lt,t[4]),lt.forEach(v),_=p(ft),A=l(ft,"SPAN",{className:!0});var ht=h(A);H=d(ht,"↓ KP "),J=d(ht,t[3]),ht.forEach(v),ft.forEach(v),w.forEach(v),K=p(f),B=l(f,"DIV",{class:!0});var vt=h(B);z=l(vt,"DIV",{});var pt=h(z);O=l(pt,"P",{class:!0});var dt=h(O);F=d(dt,"BZ"),dt.forEach(v),q=p(pt),Z=l(pt,"P",{class:!0});var mt=h(Z);G=d(mt,t[5]),mt.forEach(v),pt.forEach(v),L=p(vt),Q=l(vt,"DIV",{});var gt=h(Q);U=l(gt,"P",{class:!0});var yt=h(U);W=d(yt,"Temp"),yt.forEach(v),X=p(gt),Y=l(gt,"P",{class:!0});var Et=h(Y);tt=d(Et,t[7]),nt=d(Et,"°C"),Et.forEach(v),gt.forEach(v),et=p(vt),rt=l(vt,"DIV",{});var wt=h(rt);at=l(wt,"P",{class:!0});var Dt=h(at);ct=d(Dt,"Clouds"),Dt.forEach(v),ot=p(wt),it=l(wt,"P",{class:!0});var Pt=h(it);st=d(Pt,t[6]),ut=d(Pt,"%"),Pt.forEach(v),wt.forEach(v),vt.forEach(v),f.forEach(v),u.forEach(v),this.h()},h:function(){m(a,"class","symbol fas fa-map-marker-alt svelte-1oi7i0p"),m(o,"class","svelte-1oi7i0p"),m(r,"class","weatherCurrent-data-location svelte-1oi7i0p"),m(x,"class","weatherCurrent-data-date"),m(V,"class","svelte-1oi7i0p"),m(M,"classname","pr-2"),m(A,"classname","pl-2"),m(R,"class","weatherCurrent-data-kp svelte-1oi7i0p"),m(O,"class","svelte-1oi7i0p"),m(Z,"class","svelte-1oi7i0p"),m(U,"class","svelte-1oi7i0p"),m(Y,"class","svelte-1oi7i0p"),m(at,"class","svelte-1oi7i0p"),m(it,"class","svelte-1oi7i0p"),m(B,"class","current-details svelte-1oi7i0p"),m(e,"class","weatherCurrent-data svelte-1oi7i0p"),m(n,"class","weatherCurrent-wrapper svelte-1oi7i0p")},m:function(t,s){g(t,n,s),y(n,e),y(e,r),y(r,a),y(r,c),y(r,o),y(o,i),y(e,P),y(e,x),y(x,$),y($,b),y(e,I),y(e,R),y(R,V),y(V,j),y(V,C),y(R,k),y(R,N),y(N,M),y(M,T),y(M,S),y(N,_),y(N,A),y(A,H),y(A,J),y(e,K),y(e,B),y(B,z),y(z,O),y(O,F),y(z,q),y(z,Z),y(Z,G),y(B,L),y(B,Q),y(Q,U),y(U,W),y(Q,X),y(Q,Y),y(Y,tt),y(Y,nt),y(B,et),y(B,rt),y(rt,at),y(at,ct),y(rt,ot),y(rt,it),y(it,st),y(it,ut)},p:function(t,n){var e=E(n,1)[0];1&e&&w(i,t[0]),2&e&&w(b,t[1]),4&e&&w(C,t[2]),16&e&&w(S,t[4]),8&e&&w(J,t[3]),32&e&&w(G,t[5]),128&e&&w(tt,t[7]),64&e&&w(st,t[6])},i:D,o:D,d:function(t){t&&v(n)}}}function _(t,n,e){var r,a,c=this&&this.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(a,c){function o(t){try{s(r.next(t))}catch(t){c(t)}}function i(t){try{s(r.throw(t))}catch(t){c(t)}}function s(t){var n;t.done?a(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(o,i)}s((r=r.apply(t,n||[])).next())}))},o=["January","February","March","April","May","June","July","August","September","October","November","December"],i="-",s="-",u="-",f="-",l="-",h="-",v="-",p="-";function d(t){r=t.coords.longitude,a=t.coords.latitude,function(t,n){c(this,void 0,void 0,x.mark((function r(){var a;return x.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,fetch("https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=".concat(n,"&lon=").concat(t)).then((function(t){return t.json()}));case 2:a=r.sent,e(6,v=a.properties.timeseries[0].data.instant.details.cloud_area_fraction),e(7,p=a.properties.timeseries[0].data.instant.details.air_temperature);case 5:case"end":return r.stop()}}),r)})))}(r,a),function(t,n){c(this,void 0,void 0,x.mark((function r(){var a;return x.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return console.log("https://geocode.xyz/".concat(t,",").concat(n,"?geoit=json")),r.next=3,fetch("https://geocode.xyz/".concat(n,",").concat(t,"?geoit=json")).then((function(t){return t.json()}));case 3:a=r.sent,console.log(a),e(0,i=a.city);case 6:case"end":return r.stop()}}),r)})))}(r,a)}function m(t){g()}function g(){r=28.283333,a=-15.416667}return P((function(){!function(){c(this,void 0,void 0,x.mark((function t(){var n,r,a,c,i;return x.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=e,t.next=3,fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((function(t){return t.json()}));case 3:return t.t1=h=t.sent.Bz,(0,t.t0)(5,t.t1),t.next=7,fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((function(t){return t.json()}));case 7:(n=t.sent).shift(),r=new Date,a=new Date(0,0,0),c=1e3,i=0,n.forEach((function(t,n){t[1]>i&&(i=t[1]),t[1]Object.assign(Object.assign(Object.assign({},t),a),{updating:n})))}function F(t){var e=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(e){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return a(this,r)}}function L(t){var n,a,e,r,c=t[0].city+"";return{c:function(){n=u("i"),a=w(),e=u("h1"),r=_(c),this.h()},l:function(t){n=l(t,"I",{class:!0}),f(n).forEach(d),a=y(t),e=l(t,"H1",{class:!0});var i=f(e);r=b(i,c),i.forEach(d),this.h()},h:function(){h(n,"class","symbol fas fa-map-marker-alt svelte-9mqc59"),h(e,"class","svelte-9mqc59")},m:function(t,c){p(t,n,c),p(t,a,c),p(t,e,c),v(e,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&E(r,c)},d:function(t){t&&d(n),t&&d(a),t&&d(e)}}}function U(t){var n,a,e=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),a=_(e)},l:function(t){n=l(t,"P",{});var r=f(n);a=b(r,e),r.forEach(d)},m:function(t,e){p(t,n,e),v(n,a)},p:function(t,n){2&n&&e!==(e=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&E(a,e)},d:function(t){t&&d(n)}}}function Z(t){var n,a;return{c:function(){n=u("p"),a=_("There is more than 10 minutes difference between data updates")},l:function(t){n=l(t,"P",{});var e=f(n);a=b(e,"There is more than 10 minutes difference between data updates"),e.forEach(d)},m:function(t,e){p(t,n,e),v(n,a)},p:m,d:function(t){t&&d(n)}}}function G(t){return{c:m,l:m,m:m,p:m,d:m}}function Q(t){var n,a,e,r,c,i,o,s,g,D,$,k,j=t[2].now.kp+"",O=t[2].now.kp_max+"",I=t[2].now.kp_min+"";return{c:function(){n=u("h2"),a=_("KP "),e=_(j),r=w(),c=u("p"),i=u("span"),o=_("↑ KP "),s=_(O),g=w(),D=u("span"),$=_("↓ KP "),k=_(I),this.h()},l:function(t){n=l(t,"H2",{class:!0});var u=f(n);a=b(u,"KP "),e=b(u,j),u.forEach(d),r=y(t),c=l(t,"P",{});var h=f(c);i=l(h,"SPAN",{classname:!0});var p=f(i);o=b(p,"↑ KP "),s=b(p,O),p.forEach(d),g=y(h),D=l(h,"SPAN",{classname:!0});var v=f(D);$=b(v,"↓ KP "),k=b(v,I),v.forEach(d),h.forEach(d),this.h()},h:function(){h(n,"class","svelte-9mqc59"),h(i,"classname","pr-2"),h(D,"classname","pl-2")},m:function(t,u){p(t,n,u),v(n,a),v(n,e),p(t,r,u),p(t,c,u),v(c,i),v(i,o),v(i,s),v(c,g),v(c,D),v(D,$),v(D,k)},p:function(t,n){4&n&&j!==(j=t[2].now.kp+"")&&E(e,j),4&n&&O!==(O=t[2].now.kp_max+"")&&E(s,O),4&n&&I!==(I=t[2].now.kp_min+"")&&E(k,I)},i:m,o:m,d:function(t){t&&d(n),t&&d(r),t&&d(c)}}}function W(t){var n,a;return n=new N({}),{c:function(){V(n.$$.fragment)},l:function(t){x(n.$$.fragment,t)},m:function(t,e){q(n,t,e),a=!0},p:m,i:function(t){a||(I(n.$$.fragment,t),a=!0)},o:function(t){j(n.$$.fragment,t),a=!1},d:function(t){R(n,t)}}}function X(t){var n,a,e,r,c,i,o,s,m=t[2].now.bz+"",g=t[1].available&&Y(t);return{c:function(){n=u("div"),a=u("p"),e=_("BZ"),r=w(),c=u("p"),i=_(m),o=w(),g&&g.c(),s=D(),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);a=l(u,"P",{class:!0});var h=f(a);e=b(h,"BZ"),h.forEach(d),r=y(u),c=l(u,"P",{class:!0});var p=f(c);i=b(p,m),p.forEach(d),u.forEach(d),o=y(t),g&&g.l(t),s=D(),this.h()},h:function(){h(a,"class","svelte-9mqc59"),h(c,"class","svelte-9mqc59")},m:function(t,u){p(t,n,u),v(n,a),v(a,e),v(n,r),v(n,c),v(c,i),p(t,o,u),g&&g.m(t,u),p(t,s,u)},p:function(t,n){4&n&&m!==(m=t[2].now.bz+"")&&E(i,m),t[1].available?g?g.p(t,n):((g=Y(t)).c(),g.m(s.parentNode,s)):g&&(g.d(1),g=null)},d:function(t){t&&d(n),t&&d(o),g&&g.d(t),t&&d(s)}}}function Y(t){var n,a,e,r,c,i,o,s,m,g,D,$,k,j,O,I=t[1].now.temp+"",P=t[1].now.clouds+"";return{c:function(){n=u("div"),a=u("p"),e=_("Temp"),r=w(),c=u("p"),i=_(I),o=_("°C"),s=w(),m=u("div"),g=u("p"),D=_("Clouds"),$=w(),k=u("p"),j=_(P),O=_("%"),this.h()},l:function(t){n=l(t,"DIV",{});var u=f(n);a=l(u,"P",{class:!0});var h=f(a);e=b(h,"Temp"),h.forEach(d),r=y(u),c=l(u,"P",{class:!0});var p=f(c);i=b(p,I),o=b(p,"°C"),p.forEach(d),u.forEach(d),s=y(t),m=l(t,"DIV",{});var v=f(m);g=l(v,"P",{class:!0});var w=f(g);D=b(w,"Clouds"),w.forEach(d),$=y(v),k=l(v,"P",{class:!0});var _=f(k);j=b(_,P),O=b(_,"%"),_.forEach(d),v.forEach(d),this.h()},h:function(){h(a,"class","svelte-9mqc59"),h(c,"class","svelte-9mqc59"),h(g,"class","svelte-9mqc59"),h(k,"class","svelte-9mqc59")},m:function(t,u){p(t,n,u),v(n,a),v(a,e),v(n,r),v(n,c),v(c,i),v(c,o),p(t,s,u),p(t,m,u),v(m,g),v(g,D),v(m,$),v(m,k),v(k,j),v(k,O)},p:function(t,n){2&n&&I!==(I=t[1].now.temp+"")&&E(i,I),2&n&&P!==(P=t[1].now.clouds+"")&&E(j,P)},d:function(t){t&&d(n),t&&d(s),t&&d(m)}}}function tt(t){var n,a,e,r,c,i,o,s,m,g,_,b,E,D=!t[0].updating&&t[0].available&&L(t);function P(t,n){return 6&n&&(i=null),t[1].updating||t[2].updating?G:(null==i&&(i=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),i?Z:U)}var V=P(t,-1),x=V(t),q=[W,Q],R=[];function T(t,n){return t[2].updating||t[1].updating?0:1}m=T(t),g=R[m]=q[m](t);var S=!t[2].updating&&!t[1].updating&&X(t);return{c:function(){n=u("div"),a=u("div"),e=u("div"),D&&D.c(),r=w(),c=u("div"),x.c(),o=w(),s=u("div"),g.c(),_=w(),b=u("div"),S&&S.c(),this.h()},l:function(t){n=l(t,"DIV",{class:!0});var i=f(n);a=l(i,"DIV",{class:!0});var u=f(a);e=l(u,"DIV",{class:!0});var h=f(e);D&&D.l(h),h.forEach(d),r=y(u),c=l(u,"DIV",{class:!0});var p=f(c);x.l(p),p.forEach(d),o=y(u),s=l(u,"DIV",{class:!0});var v=f(s);g.l(v),v.forEach(d),_=y(u),b=l(u,"DIV",{class:!0});var m=f(b);S&&S.l(m),m.forEach(d),u.forEach(d),i.forEach(d),this.h()},h:function(){h(e,"class","weatherCurrent-data-location svelte-9mqc59"),h(c,"class","weatherCurrent-data-date"),h(s,"class","weatherCurrent-data-kp svelte-9mqc59"),h(b,"class","current-details svelte-9mqc59"),h(a,"class","weatherCurrent-data svelte-9mqc59"),h(n,"class","weatherCurrent-wrapper svelte-9mqc59")},m:function(t,i){p(t,n,i),v(n,a),v(a,e),D&&D.m(e,null),v(a,r),v(a,c),x.m(c,null),v(a,o),v(a,s),R[m].m(s,null),v(a,_),v(a,b),S&&S.m(b,null),E=!0},p:function(t,n){var a=$(n,1)[0];!t[0].updating&&t[0].available?D?D.p(t,a):((D=L(t)).c(),D.m(e,null)):D&&(D.d(1),D=null),V===(V=P(t,a))&&x?x.p(t,a):(x.d(1),(x=V(t))&&(x.c(),x.m(c,null)));var r=m;(m=T(t))===r?R[m].p(t,a):(k(),j(R[r],1,1,(function(){R[r]=null})),O(),(g=R[m])?g.p(t,a):(g=R[m]=q[m](t)).c(),I(g,1),g.m(s,null)),t[2].updating||t[1].updating?S&&(S.d(1),S=null):S?S.p(t,a):((S=X(t)).c(),S.m(b,null))},i:function(t){E||(I(g),E=!0)},o:function(t){j(g),E=!1},d:function(t){t&&d(n),D&&D.d(),x.d(),R[m].d(),S&&S.d()}}}function nt(t,n,a){var e,r,c;return P(t,H,(function(t){return a(0,e=t)})),P(t,A,(function(t){return a(1,r=t)})),P(t,K,(function(t){return a(2,c=t)})),[e,r,c]}!async function(){if("undefined"==typeof window)return;let t;J(H,!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),H.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void J(H,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),a=await n.json();H.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:a.city}),t))),J(H,!1)}(),H.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return A.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void J(A,!1);J(A,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),a=await n.json(),e={clouds:null,temp:null};try{e.clouds=a.properties.timeseries[0].data.instant.details.cloud_area_fraction,e.temp=a.properties.timeseries[0].data.instant.details.air_temperature,a.properties.timeseries=a.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}A.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:a,now:e,available:!0}))),J(A,!1)})),async function(){if("undefined"==typeof window)return;J(K,!0);let t=await async function(){let t={now:{bz:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1}},n=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");t.usnoaa_data_raw.solar_wind_mag_field=await n.json(),t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),t.now.bz=t.usnoaa_data_raw.solar_wind_mag_field.Bz,n=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),t.usnoaa_data_raw.noaa_planetary_k_index_forecast=await n.json(),t.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let a=new Date,e=new Date(0,0,0),r=1e3,c=0;return t.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((n,i)=>{n[1]>c&&(c=n[1]),n[1]Object.assign(Object.assign({},n),t))),J(K,!1)}();var at=function(n){t(u,s);var a=F(u);function u(t){var n;return e(this,u),n=a.call(this),r(i(n),t,nt,tt,c,{}),n}return o(u)}();function et(t,n,a,e,r,c,i){try{var o=t[c](i),s=o.value}catch(t){return void a(t)}o.done?n(s):Promise.resolve(s).then(e,r)}function rt(t){return function(){var n=this,a=arguments;return new Promise((function(e,r){var c=t.apply(n,a);function i(t){et(c,e,r,i,o,"next",t)}function o(t){et(c,e,r,i,o,"throw",t)}i(void 0)}))}}function ct(t){var e=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(e){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return a(this,r)}}function it(t){var n,a,e,r,c,i,o,s,g,E,D,k,j=t[5]&&function(t){var n,a,e,r,c,i,o,s,g,E,D,$;return{c:function(){n=u("div"),a=u("p"),e=u("i"),r=w(),c=_(t[3]),i=_("°C"),o=w(),s=u("p"),g=u("i"),E=w(),D=_(t[4]),$=_("%"),this.h()},l:function(u){n=l(u,"DIV",{});var h=f(n);a=l(h,"P",{});var p=f(a);e=l(p,"I",{class:!0}),f(e).forEach(d),r=y(p),c=b(p,t[3]),i=b(p,"°C"),p.forEach(d),o=y(h),s=l(h,"P",{});var v=f(s);g=l(v,"I",{class:!0}),f(g).forEach(d),E=y(v),D=b(v,t[4]),$=b(v,"%"),v.forEach(d),h.forEach(d),this.h()},h:function(){h(e,"class","fas fa-thermometer-half"),h(g,"class","fas fa-cloud")},m:function(t,u){p(t,n,u),v(n,a),v(a,e),v(a,r),v(a,c),v(a,i),v(n,o),v(n,s),v(s,g),v(s,E),v(s,D),v(s,$)},p:m,d:function(t){t&&d(n)}}}(t);return{c:function(){n=u("div"),a=u("div"),e=u("h3"),r=_(t[2]),c=w(),i=u("p"),o=_(t[1]),s=w(),g=u("div"),E=u("h2"),D=_(t[0]),k=w(),j&&j.c(),this.h()},l:function(u){n=l(u,"DIV",{class:!0});var h=f(n);a=l(h,"DIV",{});var p=f(a);e=l(p,"H3",{class:!0});var v=f(e);r=b(v,t[2]),v.forEach(d),c=y(p),i=l(p,"P",{});var m=f(i);o=b(m,t[1]),m.forEach(d),p.forEach(d),s=y(h),g=l(h,"DIV",{class:!0});var w=f(g);E=l(w,"H2",{class:!0});var _=f(E);D=b(_,t[0]),_.forEach(d),k=y(w),j&&j.l(w),w.forEach(d),h.forEach(d),this.h()},h:function(){h(e,"class","svelte-u548p6"),h(E,"class","svelte-u548p6"),h(g,"class","data svelte-u548p6"),h(n,"class","prediction-details svelte-u548p6")},m:function(t,u){p(t,n,u),v(n,a),v(a,e),v(e,r),v(a,c),v(a,i),v(i,o),v(n,s),v(n,g),v(g,E),v(E,D),v(g,k),j&&j.m(g,null)},p:function(t,n){var a=$(n,1)[0];t[5]&&j.p(t,a)},i:m,o:m,d:function(t){t&&d(n),j&&j.d()}}}function ot(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,a=t,e=0;e|<=|>=|==|!=|===|!==|\+|-|\*\%|<<|>>|>>>|&|\||\^|!|~|&&|\|\||\?|:|=|\+=|-=|\*=|%=|<<=|>>=|>>>=|&=|\|=|\^=|\/=|\/)\s*$/,a=/(\}|\)|\+\+|--)\s*$/,o=/[{}()[.;,<>=+\-*%&|\^!~?:/]/,i=/[a-zA-Z_$0-9]/,f={" ":1,"\t":1,"\n":1,"\r":1,"\f":1,"\v":1," ":1,"\u2028":1,"\u2029":1};function s(n){return n in f}function c(n){return"'"===n||'"'===n}var l=/^\*\s+as\s+(\w+)$/,d=/(\w+)\s*,\s*\*\s*as\s*(\w+)$/,p=/(\w+)\s*,\s*{(.+)}$/;function v(n){return n?n.split(",").map((function(n){var t=n.trim().split(/[^\S]+/),r=t[0];return{name:r,as:t[2]||r}})):[]}function m(n,t){for(var e=t,u=t+=6;n[t]&&s(n[t]);)t+=1;for(;n[t]&&!c(n[t]);)t+=1;for(var a=t,o=t+=1;n[t]&&!c(n[t]);)t+=1;var i=t++;return function(n,t,e,u,a){var o=r(u,"*")||r(u,"default");return{start:t,end:e,source:a,name:o,toString:function(r){var o=r.get(a);return(u.sort((function(n,t){return"default"===n.name?1:"default"===t.name?-1:void 0})).map((function(n){return"*"===n.name?null:"default"===n.name&&n.as===o?n.as+" = "+o+".default;":"var "+n.as+" = "+o+"."+n.name+";"})).join(" ")+" /*"+n.slice(t,e)+"*/").trim()}}}(n,e,t,function(n){var t=l.exec(n);return t?[{name:"*",as:t[1]}]:(t=d.exec(n))?[{name:"default",as:t[1]},{name:"*",as:t[2]}]:(t=p.exec(n))?[{name:"default",as:t[1]}].concat(v(t[2].trim())):"{"===n[0]?v(n.slice(1,-1).trim()):n?[{name:"default",as:n}]:[]}(n.slice(u,a).replace(/from\s*$/,"").trim()),n.slice(o,i))}var h=/^import\s*\.\s*meta\s*\.\s*url/;function _(n,t){var r=t;for(t+=6;n[t]&&s(n[t]);)t+=1;var e=t;if("{"===n[t]){for(;"}"!==n[t];)t+=1;for(var u=t+=1,a=null;s(n[t]);)t+=1;if(/^from[\s\n'"]/.test(n.slice(t,t+5))){for(t+=4;s(n[t]);)t+=1;for(;n[t]&&!c(n[t]);)t+=1;for(var i=t+=1;n[t]&&!c(n[t]);)t+=1;a=n.slice(i,t),t+=1}return function(n,t,r,e,u,a){var o=v(n.slice(r+1,e-1).trim());return{start:t,end:u,source:a,toString:function(r){var e=r.get(a);return o.map((function(n){return"__exports."+n.as+" = "+(e?e+"."+n.name:n.name)+"; "})).join("")+"/*"+n.slice(t,u)+"*/"}}}(n,r,e,u,t,a)}if("*"===n[t]){for(t+=1;s(n[t]);)t+=1;for(t+=4;n[t]&&!c(n[t]);)t+=1;for(i=t+=1;n[t]&&!c(n[t]);)t+=1;var f=t++;return function(n,t,r,e){return{start:t,end:r,source:e,toString:function(u){return"Object.assign(__exports, "+u.get(e)+"); /*"+n.slice(t,r)+"*/"}}}(n,r,t,n.slice(i,f))}return/^default\b/.test(n.slice(t,t+8))?function(n,t,r){var e=/^\s*(?:(class)(\s+extends|\s*{)|(function)\s*\()/.exec(n.slice(r));if(e){r+=e[0].length;var u="__default_export";return{start:t,end:r,name:u,as:"default",toString:function(){return e[1]?"class "+u+e[2]:"function "+u+"("}}}return{start:t,end:r,toString:function(){return"__exports.default ="}}}(n,r,e+7):function(n,t,r){for(var e=r;n[r]&&/\S/.test(n[r]);)r+=1;for(;n[r]&&!/\S/.test(n[r]);)r+=1;for(var u=r;n[r]&&!o.test(n[r])&&!s(n[r]);)r+=1;var a=r;return{start:t,end:e,name:n.slice(u,a),toString:function(){return""}}}(n,r,e)}function g(n,t){var r,f=!0,c=!1,l=[],d=-1,p={},v={},g=0,x=[],w=[],S=[],$=[];function y(){if(")"===n[d]){for(var t=p[d];s(n[t-1]);)t-=1;return!/(if|while)$/.test(n.slice(t-5,t))}return!0}for(var b={pattern:/(?:(\()|(\))|({)|(})|(")|(')|(\/\/)|(\/\*)|(\/)|(`)|(import)|(export)|(\+\+|--))/g,handlers:[function(n){d=n,v[g++]=n},function(n){d=n,p[n]=v[--g]},function(n){d=n,l.push(b)},function(n){return d=n,l.pop()},function(n){return l.push(b),A},function(n){return l.push(b),E},function(n){return O},function(n){return k},function(t){for(var r=t;r>0&&s(n[r-1]);)r-=1;if(r>0){var c=r;if(o.test(n[c-1]))for(;c>0&&o.test(n[c-1]);)c-=1;else for(;c>0&&i.test(n[c-1]);)c-=1;var l=n.slice(c,r);f=!!l&&(e.test(l)||u.test(l)||a.test(l)&&!y())}else f=!0;return R},function(n){return z},function(r){if(0===r||s(n[r-1])||o.test(n[r-1])){var e=r+6,u=void 0;do{u=n[e++]}while(s(u));var a=e>r+7;if(/^['"{*]$/.test(u)||a&&/^[a-zA-Z_$]$/.test(u)){var i=m(n,r);x.push(i),N=i.end}else if("("===u){var f=function(n){return{start:n,end:n+6,toString:function(){return"__import"}}}(r);w.push(f),N=f.end}else if("."===u){var c=function(n,t,r){var e=h.exec(n.slice(t));if(e)return{start:t,end:t+e[0].length,toString:function(){return JSON.stringify(""+r)}}}(n,r,t);c&&(S.push(c),N=c.end)}}},function(t){if((0===t||s(n[t-1])||o.test(n[t-1]))&&/export[\s\n{]/.test(n.slice(t,t+7))){var r=_(n,t);$.push(r),N=r.end}},function(t){c=!c&&"+"===n[t-1]}]},R={pattern:/(?:(\[)|(\\)|(.))/g,handlers:[function(n){return f?j:b},function(n){return r=U,L},function(n){return f&&!c?U:b}]},U={pattern:/(?:(\[)|(\\)|(\/))/g,handlers:[function(){return j},function(){return r=U,L},function(){return b}]},j={pattern:/(?:(\])|(\\))/g,handlers:[function(){return U},function(){return r=j,L}]},A={pattern:/(?:(\\)|("))/g,handlers:[function(){return r=A,L},function(){return l.pop()}]},E={pattern:/(?:(\\)|('))/g,handlers:[function(){return r=E,L},function(){return l.pop()}]},L={pattern:/(.)/g,handlers:[function(){return r}]},z={pattern:/(?:(\${)|(\\)|(`))/g,handlers:[function(){return l.push(z),b},function(){return r=z,L},function(){return b}]},O={pattern:/((?:\n|$))/g,handlers:[function(){return b}]},k={pattern:/(\*\/)/g,handlers:[function(){return b}]},I=b,N=0;N0||I!==b)throw new Error("Unexpected end of file");break}N=P.index+P[0].length;for(var Z=1;Z|<=|>=|==|!=|===|!==|\+|-|\*\%|<<|>>|>>>|&|\||\^|!|~|&&|\|\||\?|:|=|\+=|-=|\*=|%=|<<=|>>=|>>>=|&=|\|=|\^=|\/=|\/)\s*$/,o=/(\}|\)|\+\+|--)\s*$/,a=/[{}()[.;,<>=+\-*%&|\^!~?:/]/,i=/[a-zA-Z_$0-9]/,f={" ":1,"\t":1,"\n":1,"\r":1,"\f":1,"\v":1," ":1,"\u2028":1,"\u2029":1};function s(n){return n in f}function c(n){return"'"===n||'"'===n}var l=/^\*\s+as\s+(\w+)$/,d=/(\w+)\s*,\s*\*\s*as\s*(\w+)$/,p=/(\w+)\s*,\s*{(.+)}$/;function v(n){return n?n.split(",").map((function(n){var t=n.trim().split(/[^\S]+/),r=t[0];return{name:r,as:t[2]||r}})):[]}function m(n,t){for(var e=t,u=t+=6;n[t]&&s(n[t]);)t+=1;for(;n[t]&&!c(n[t]);)t+=1;for(var o=t,a=t+=1;n[t]&&!c(n[t]);)t+=1;var i=t++;return function(n,t,e,u,o){var a=r(u,"*")||r(u,"default");return{start:t,end:e,source:o,name:a,specifiers:u,toString:function(){return"/*"+n.slice(t,e)+"*/"}}}(n,e,t,function(n){var t=l.exec(n);return t?[{name:"*",as:t[1]}]:(t=d.exec(n))?[{name:"default",as:t[1]},{name:"*",as:t[2]}]:(t=p.exec(n))?[{name:"default",as:t[1]}].concat(v(t[2].trim())):"{"===n[0]?v(n.slice(1,-1).trim()):n?[{name:"default",as:n}]:[]}(n.slice(u,o).replace(/from\s*$/,"").trim()),n.slice(a,i))}var h=/^import\s*\.\s*meta\s*\.\s*url/;function _(n,t){var r=t;for(t+=6;n[t]&&s(n[t]);)t+=1;var e=t;if("{"===n[t]){for(;"}"!==n[t];)t+=1;for(var u=t+=1,o=null;s(n[t]);)t+=1;if(/^from[\s\n'"]/.test(n.slice(t,t+5))){for(t+=4;s(n[t]);)t+=1;for(;n[t]&&!c(n[t]);)t+=1;for(var i=t+=1;n[t]&&!c(n[t]);)t+=1;o=n.slice(i,t),t+=1}return function(n,t,r,e,u,o){var a=v(n.slice(r+1,e-1).trim());return{start:t,end:u,source:o,toString:function(r){var e=o&&r.get(o);return a.map((function(n){return"__exports."+n.as+" = "+(e?e+"."+n.name:n.name)+"; "})).join("")+"/*"+n.slice(t,u)+"*/"}}}(n,r,e,u,t,o)}if("*"===n[t]){for(t+=1;s(n[t]);)t+=1;for(t+=4;n[t]&&!c(n[t]);)t+=1;for(i=t+=1;n[t]&&!c(n[t]);)t+=1;var f=t++;return function(n,t,r,e){return{start:t,end:r,source:e,toString:function(u){return"Object.assign(__exports, "+u.get(e)+"); /*"+n.slice(t,r)+"*/"}}}(n,r,t,n.slice(i,f))}return/^default\b/.test(n.slice(t,t+8))?function(n,t,r){var e=/^\s*(?:(class)(\s+extends|\s*{)|(function)\s*\()/.exec(n.slice(r));if(e){r+=e[0].length;var u="__default_export";return{start:t,end:r,name:u,as:"default",toString:function(){return e[1]?"class "+u+e[2]:"function "+u+"("}}}return{start:t,end:r,toString:function(){return"__exports.default ="}}}(n,r,e+7):function(n,t,r){for(var e=r;n[r]&&/\S/.test(n[r]);)r+=1;for(;n[r]&&!/\S/.test(n[r]);)r+=1;for(var u=r;n[r]&&!a.test(n[r])&&!s(n[r]);)r+=1;var o=r;return{start:t,end:e,name:n.slice(u,o),toString:function(){return""}}}(n,r,e)}function g(n,t){var r,f=!0,c=!1,l=[],d=-1,p={},v={},g=0,x=[],w=[],S=[],$=[];function y(){if(")"===n[d]){for(var t=p[d];s(n[t-1]);)t-=1;return!/(if|while)$/.test(n.slice(t-5,t))}return!0}for(var b={pattern:/(?:(\()|(\))|({)|(})|(")|(')|(\/\/)|(\/\*)|(\/)|(`)|(import)|(export)|(\+\+|--))/g,handlers:[function(n){d=n,v[g++]=n},function(n){d=n,p[n]=v[--g]},function(n){d=n,l.push(b)},function(n){return d=n,l.pop()},function(n){return l.push(b),j},function(n){return l.push(b),A},function(n){return O},function(n){return k},function(t){for(var r=t;r>0&&s(n[r-1]);)r-=1;if(r>0){var c=r;if(a.test(n[c-1]))for(;c>0&&a.test(n[c-1]);)c-=1;else for(;c>0&&i.test(n[c-1]);)c-=1;var l=n.slice(c,r);f=!!l&&(e.test(l)||u.test(l)||o.test(l)&&!y())}else f=!0;return E},function(n){return z},function(r){if(0===r||s(n[r-1])||a.test(n[r-1])){var e=r+6,u=void 0;do{u=n[e++]}while(s(u));var o=e>r+7;if(/^['"{*]$/.test(u)||o&&/^[a-zA-Z_$]$/.test(u)){var i=m(n,r);x.push(i),N=i.end}else if("("===u){var f=function(n){return{start:n,end:n+6,toString:function(){return"__import"}}}(r);w.push(f),N=f.end}else if("."===u){var c=function(n,t,r){var e=h.exec(n.slice(t));if(e)return{start:t,end:t+e[0].length,toString:function(){return JSON.stringify(""+r)}}}(n,r,t);c&&(S.push(c),N=c.end)}}},function(t){if((0===t||s(n[t-1])||a.test(n[t-1]))&&/export[\s\n{]/.test(n.slice(t,t+7))){var r=_(n,t);$.push(r),N=r.end}},function(t){c=!c&&"+"===n[t-1]}]},E={pattern:/(?:(\[)|(\\)|(.))/g,handlers:[function(n){return f?U:b},function(n){return r=R,L},function(n){return f&&!c?R:b}]},R={pattern:/(?:(\[)|(\\)|(\/))/g,handlers:[function(){return U},function(){return r=R,L},function(){return b}]},U={pattern:/(?:(\])|(\\))/g,handlers:[function(){return R},function(){return r=U,L}]},j={pattern:/(?:(\\)|("))/g,handlers:[function(){return r=j,L},function(){return l.pop()}]},A={pattern:/(?:(\\)|('))/g,handlers:[function(){return r=A,L},function(){return l.pop()}]},L={pattern:/(.)/g,handlers:[function(){return r}]},z={pattern:/(?:(\${)|(\\)|(`))/g,handlers:[function(){return l.push(z),b},function(){return r=z,L},function(){return b}]},O={pattern:/((?:\n|$))/g,handlers:[function(){return b}]},k={pattern:/(\*\/)/g,handlers:[function(){return b}]},I=b,N=0;N0||I!==b)throw new Error("Unexpected end of file");break}N=P.index+P[0].length;for(var Z=1;Z Aurora data

-

-

KP -

↑ KP - ↓ KP -

BZ

-

Temp

-°C

Clouds

-%

No prediction data

\ No newline at end of file + Aurora data

No prediction data

\ No newline at end of file diff --git a/service-worker-index.html b/service-worker-index.html index 1fd053a..8b10cc2 100644 --- a/service-worker-index.html +++ b/service-worker-index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/service-worker.js b/service-worker.js index e398e1b..da8a2a7 100644 --- a/service-worker.js +++ b/service-worker.js @@ -1 +1 @@ -!function(){"use strict";const e=1602676878888,t=[{pattern:/^\/$/}],s="cache"+e,a=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),n=["/client/inject_styles.5607aec6.js","/client/index.98d274eb.js","/client/client.cead19b7.js"].map((e=>"/Aurora-data"+e)).concat(a),c=new Set(n);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(n))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const t of e)t!==s&&await caches.delete(t);self.clients.claim()})))})),self.addEventListener("fetch",(s=>{if("GET"!==s.request.method||s.request.headers.has("range"))return;const a=new URL(s.request.url);a.protocol.startsWith("http")&&(a.hostname===self.location.hostname&&a.port!==self.location.port||(a.host===self.location.host&&c.has(a.pathname)?s.respondWith(caches.match(s.request)):a.origin===self.origin&&t.find((e=>e.pattern.test(a.pathname)))?s.respondWith(caches.match("/Aurora-data/service-worker-index.html")):"only-if-cached"!==s.request.cache&&s.respondWith(caches.open("offline"+e).then((async e=>{try{const t=await fetch(s.request);return e.put(s.request,t.clone()),t}catch(t){const a=await e.match(s.request);if(a)return a;throw t}})))))}))}(); +!function(){"use strict";const e=1651013491030,t=[{pattern:/^\/$/}],s=`cache${e}`,a=["/service-worker-index.html","/aurora.jpg","/favicon.png","/global.css","/index.css","/logo-192.png","/logo-512.png","/manifest.json","/postcss.config.js"].map((e=>"/Aurora-data"+e)),n=["/client/client.6ce3f24e.js","/client/inject_styles.5607aec6.js","/client/index.4a80f6bf.js"].map((e=>"/Aurora-data"+e)).concat(a),c=new Set(n);self.addEventListener("install",(e=>{e.waitUntil(caches.open(s).then((e=>e.addAll(n))).then((()=>{self.skipWaiting()})))})),self.addEventListener("activate",(e=>{e.waitUntil(caches.keys().then((async e=>{for(const t of e)t!==s&&await caches.delete(t);self.clients.claim()})))})),self.addEventListener("fetch",(s=>{if("GET"!==s.request.method||s.request.headers.has("range"))return;const a=new URL(s.request.url);a.protocol.startsWith("http")&&(a.hostname===self.location.hostname&&a.port!==self.location.port||(a.host===self.location.host&&c.has(a.pathname)?s.respondWith(caches.match(s.request)):a.origin===self.origin&&t.find((e=>e.pattern.test(a.pathname)))?s.respondWith(caches.match("/Aurora-data/service-worker-index.html")):"only-if-cached"!==s.request.cache&&s.respondWith(caches.open(`offline${e}`).then((async e=>{try{const t=await fetch(s.request);return e.put(s.request,t.clone()),t}catch(t){const a=await e.match(s.request);if(a)return a;throw t}})))))}))}(); -- cgit v1.2.3