hypnagaga/docs/assets/SiteFooter.stories-bd24c044.js
2023-09-19 07:52:19 +00:00

62 lines
49 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{S as W,i as E,s as U,a as G,z as H,b as a,d as L,e as u,n as F,f as R,P as dt,k as fe,N as pt,t as y,v as X,h as $,w as ee,o as h,y as T,V as ne,A as se,J as ue,g as z,m as B,j,c as oe,l as mt,u as ht,q as _t,r as gt,D as _e,E as vt,C as de}from"./index-4f5e5369.js";import{g as ge,a as Ke}from"./spread-8a54911c.js";import{p as wt,M as kt,T as yt,S as me}from"./collect-stories-6e37d46b.js";import{e as I}from"./each-e59479a4.js";import{n as q}from"./index-2224dbf5.js";import{T as bt}from"./Theme-180f949e.js";import{w as $t,b as ke}from"./withParams-47e2ab71.js";import"./light-59dc4e88.js";const Ct=`Reuters dotcom site footer with graphics referrals, ported from [Raptor UI components](https://github.com/tr/rcom-arc_raptor-ui/tree/develop/packages/rcom-raptor-ui_common/src/components/site-footer).
> **Note:** In the Graphics Kit, you can find this component in \`pages/+page.svelte\`. Customise it there for the default page.
\`\`\`svelte
<script>
import { SiteFooter } from '@reuters-graphics/graphics-components';
<\/script>
<SiteFooter />
\`\`\`
`,xt=`Colours are customised by the [\`Theme\`](?path=/docs/theming-theme--default) component.
\`\`\`svelte
<script>
import { SiteFooter, Theme } from '@reuters-graphics/graphics-components';
<\/script>
<Theme base="dark">
<SiteFooter />
</Theme>
\`\`\`
`,Lt=`Pass up to four custom referrals to the \`referrals\` prop.
\`\`\`svelte
<script>
import { SiteFooter } from '@reuters-graphics/graphics-components';
const customReferrals = [
{
url: 'https://graphics.reuters.com/world-coronavirus-tracker-and-maps/',
title: 'COVID-19: the latest global statistics, charts and maps',
description: 'Tracking the global coronavirus outbreak, updated daily',
image:
'https://graphics.thomsonreuters.com/cdn/2020/covid-global-tracker/share-cards/global/en/share.png',
},
{
url: 'https://graphics.reuters.com/world-coronavirus-tracker-and-maps/regions/europe',
title: 'Coronavirus in Europe: the latest counts, charts and maps',
description: 'Tracking the global coronavirus outbreak, updated daily',
image:
'https://graphics.thomsonreuters.com/cdn/2020/covid-global-tracker/share-cards/regions/en/europe.png',
},
];
<\/script>
<SiteFooter referrals="{customReferrals}" />
\`\`\`
`;function Rt(r){let e,s,t,l,n;return{c(){e=G("svg"),s=G("title"),t=H("Gallery"),l=G("path"),n=G("path"),a(l,"d","M13.3331429,0.38114286 L2.66628571,0.38114286 C1.37085714,0.38114286 0.38057143,1.37142857 0.38057143,2.66685714 L0.38057143,13.3337143 C0.38057143,14.6291429 1.37085714,15.6194286 2.66628571,15.6194286 L13.3331429,15.6194286 C14.6285714,15.6194286 15.6188571,14.6291429 15.6188571,13.3337143 L15.6188571,2.66685714 C15.6188571,1.37142857 14.6285714,0.38114286 13.3331429,0.38114286 Z M1.90457143,2.66685714 C1.90457143,2.20971429 2.20914286,1.90514286 2.66628571,1.90514286 L13.3331429,1.90514286 C13.7902857,1.90514286 14.0948571,2.20971429 14.0948571,2.66685714 L14.0948571,8.4571429 L11.5805714,5.94285714 C11.276,5.63828571 10.8188571,5.63828571 10.5137143,5.94285714 L2.43771429,14.0188571 C2.13314286,13.9428571 1.90457143,13.6377143 1.90457143,13.3331429 L1.90457143,2.66628571 L1.90457143,2.66685714 Z M13.3331429,14.0954286 L4.49485714,14.0954286 L11.0474286,7.5428571 L14.0948571,10.5902857 L14.0948571,13.3331429 C14.0948571,13.7902857 13.7902857,14.0948571 13.3331429,14.0948571 L13.3331429,14.0954286 Z"),a(n,"d","M5.33314286,7.2382857 C6.4,7.2382857 7.2377143,6.4 7.2377143,5.33371429 C7.2377143,4.26742857 6.3994286,3.42914286 5.33314286,3.42914286 C4.26685714,3.42914286 3.42857143,4.26742857 3.42857143,5.33371429 C3.42857143,6.4 4.26685714,7.2382857 5.33314286,7.2382857 Z M5.33314286,4.95257143 C5.56171429,4.95257143 5.71428571,5.10514286 5.71428571,5.33371429 C5.71428571,5.56228571 5.56171429,5.71485714 5.33314286,5.71485714 C5.10457143,5.71485714 4.952,5.56228571 4.952,5.33371429 C4.952,5.10514286 5.10457143,4.95257143 5.33314286,4.95257143 Z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 16 16"),a(e,"role","img"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"class","svelte-5rkp8q")},m(i,o){L(i,e,o),u(e,s),u(s,t),u(e,l),u(e,n)},p:F,i:F,o:F,d(i){i&&R(e)}}}class Je extends W{constructor(e){super(),E(this,e,null,Rt,U,{})}}Je.__docgen={version:3,name:"Graphics.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Tt(r){let e,s,t,l;return{c(){e=G("svg"),s=G("title"),t=H("Pictures"),l=G("path"),a(l,"d","M13.1256562,0 C13.3881562,0 13.6506562,0.17954776 13.825875,0.3597705 L15.3135937,2.69996625 L18.375,2.69996625 C19.8627187,2.69996625 21,3.8697266 21,5.3999325 L21,15.3000337 C21,16.8302396 19.8627187,18 18.375,18 L2.625,18 C1.13728125,18 0,16.8302396 0,15.3000337 L0,5.3999325 C0,3.8697266 1.13728125,2.69996625 2.625,2.69996625 L5.6877187,2.69996625 L7.1754375,0.3597705 C7.3506562,0.18022275 7.6131562,0 7.8756562,0 L13.1256562,0 Z M12.6013125,1.79952751 L8.3140312,1.79952751 L6.8263125,4.1397233 C6.6510937,4.319271 6.3885937,4.4994938 6.1260937,4.4994938 L2.6263125,4.4994938 C2.1013125,4.4994938 1.75153125,4.8592643 1.75153125,5.3992575 L1.75153125,15.2993588 C1.75153125,15.839352 2.1013125,16.1991225 2.6263125,16.1991225 L18.3763125,16.1991225 C18.9013125,16.1991225 19.2510937,15.839352 19.2510937,15.2993588 L19.2510937,5.3992575 C19.2510937,4.8592643 18.9013125,4.4994938 18.3763125,4.4994938 L14.8765312,4.4994938 C14.6140312,4.4994938 14.3515312,4.319946 14.0890312,4.1397233 L12.6013125,1.79952751 Z M10.5013125,5.3999325 C12.95175,5.3999325 14.8765312,7.3796828 14.8765312,9.9001012 C14.8765312,12.4205197 12.95175,14.40027 10.5013125,14.40027 C8.050875,14.40027 6.1260937,12.4205197 6.1260937,9.9001012 C6.1260937,7.3796828 8.0515312,5.3999325 10.5013125,5.3999325 Z M10.5013125,7.19946 C9.0135937,7.19946 7.8763125,8.3692204 7.8763125,9.8994263 C7.8763125,11.4296321 9.0135937,12.5993925 10.5013125,12.5993925 C11.9890312,12.5993925 13.1263125,11.4296321 13.1263125,9.8994263 C13.1263125,8.3692204 11.9890312,7.19946 10.5013125,7.19946 Z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 21 18"),a(e,"role","img"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"class","svelte-5rkp8q")},m(n,i){L(n,e,i),u(e,s),u(s,t),u(e,l)},p:F,i:F,o:F,d(n){n&&R(e)}}}class Xe extends W{constructor(e){super(),E(this,e,null,Tt,U,{})}}Xe.__docgen={version:3,name:"Pictures.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Mt(r){let e,s,t,l;return{c(){e=G("svg"),s=G("title"),t=H("Videos"),l=G("path"),a(l,"d","M15.6665,1.5665 C15.4665,1.433 15.2,1.5 15,1.633 L11.3335,4.233 L11.3335,2.1665 C11.3335,1.033 10.467,0.1665 9.3335,0.1665 L2,0.1665 C0.8665,0.1665 0,1.033 0,2.1665 L0,8.833 C0,9.9665 0.8665,10.833 2,10.833 L9.3335,10.833 C10.467,10.833 11.3335,9.9665 11.3335,8.833 L11.3335,6.7665 L14.9335,9.3665 C15.067,9.433 15.2,9.5 15.3335,9.5 C15.467,9.5 15.5335,9.5 15.667,9.4335 C15.867,9.3 16.0005,9.1 16.0005,8.8335 L16.0005,2.167 C16.0005,1.9005 15.867,1.7005 15.667,1.567 L15.6665,1.5665 Z M10,8.8335 C10,9.2335 9.7335,9.5 9.3335,9.5 L2,9.5 C1.6,9.5 1.3335,9.2335 1.3335,8.8335 L1.3335,2.167 C1.3335,1.767 1.6,1.5005 2,1.5005 L9.3335,1.5005 C9.7335,1.5005 10,1.767 10,2.167 L10,8.8335 Z M14.6665,7.5665 L11.8,5.5 L14.6665,3.4335 L14.6665,7.567 L14.6665,7.5665 Z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 16 11"),a(e,"role","img"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"class","svelte-5rkp8q")},m(n,i){L(n,e,i),u(e,s),u(s,t),u(e,l)},p:F,i:F,o:F,d(n){n&&R(e)}}}class et extends W{constructor(e){super(),E(this,e,null,Mt,U,{})}}et.__docgen={version:3,name:"Videos.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function ye(r,e,s){const t=r.slice();return t[4]=e[s],t}function be(r,e,s){const t=r.slice();return t[4]=e[s],t}function $e(r,e,s){const t=r.slice();return t[4]=e[s],t}function Ce(r,e,s){const t=r.slice();return t[4]=e[s],t}function xe(r,e,s){const t=r.slice();return t[4]=e[s],t}function Le(r,e,s){const t=r.slice();return t[4]=e[s],t}function Re(r,e,s){const t=r.slice();return t[4]=e[s],t}function Te(r){let e,s,t,l,n,i,o,c,f,_,p,C,m,w,v,D,d,x,g,A,V,re,ie,le;const N=[Vt,St],Q=[];function O(b,J){return b[1]<he?0:1}n=O(r),i=Q[n]=N[n](r);let M=I(r[0].browse_links),Z=[];for(let b=0;b<M.length;b+=1)Z[b]=Ae(Ce(r,M,b));let k=r[1]>=he&&De(r),te=I(r[0].about_links),Y=[];for(let b=0;b<te.length;b+=1)Y[b]=qe(be(r,te,b));let ce=I(r[0].stay_informed_links),K=[];for(let b=0;b<ce.length;b+=1)K[b]=Fe(ye(r,ce,b));return{c(){e=h("section"),s=h("h2"),s.textContent="Site Index",t=T(),l=h("div"),i.c(),o=T(),c=h("section"),f=h("h3"),f.textContent="Browse",_=T(),p=h("ul");for(let b=0;b<Z.length;b+=1)Z[b].c();C=T(),k&&k.c(),m=T(),w=h("div"),v=h("section"),D=h("h3"),D.textContent="About Reuters",d=T(),x=h("ul");for(let b=0;b<Y.length;b+=1)Y[b].c();g=T(),A=h("section"),V=h("h3"),V.textContent="Stay Informed",re=T(),ie=h("ul");for(let b=0;b<K.length;b+=1)K[b].c();a(s,"class","visually-hidden svelte-17nws4"),a(f,"class","svelte-17nws4"),a(p,"class","svelte-17nws4"),a(c,"class","link-group svelte-17nws4"),a(D,"class","svelte-17nws4"),a(x,"class","svelte-17nws4"),a(v,"class","about"),a(V,"class","svelte-17nws4"),a(ie,"class","svelte-17nws4"),a(A,"class","stay-informed svelte-17nws4"),a(w,"class","about-and-stay-informed svelte-17nws4"),a(l,"class","content-container svelte-17nws4"),a(e,"class","quick-links svelte-17nws4")},m(b,J){L(b,e,J),u(e,s),u(e,t),u(e,l),Q[n].m(l,null),u(l,o),u(l,c),u(c,f),u(c,_),u(c,p);for(let P=0;P<Z.length;P+=1)Z[P]&&Z[P].m(p,null);u(l,C),k&&k.m(l,null),u(l,m),u(l,w),u(w,v),u(v,D),u(v,d),u(v,x);for(let P=0;P<Y.length;P+=1)Y[P]&&Y[P].m(x,null);u(w,g),u(w,A),u(A,V),u(A,re),u(A,ie);for(let P=0;P<K.length;P+=1)K[P]&&K[P].m(ie,null);le=!0},p(b,J){let P=n;if(n=O(b),n===P?Q[n].p(b,J):(X(),$(Q[P],1,1,()=>{Q[P]=null}),ee(),i=Q[n],i?i.p(b,J):(i=Q[n]=N[n](b),i.c()),y(i,1),i.m(l,o)),J&1){M=I(b[0].browse_links);let S;for(S=0;S<M.length;S+=1){const ae=Ce(b,M,S);Z[S]?Z[S].p(ae,J):(Z[S]=Ae(ae),Z[S].c(),Z[S].m(p,null))}for(;S<Z.length;S+=1)Z[S].d(1);Z.length=M.length}if(b[1]>=he?k?(k.p(b,J),J&2&&y(k,1)):(k=De(b),k.c(),y(k,1),k.m(l,m)):k&&(X(),$(k,1,1,()=>{k=null}),ee()),J&1){te=I(b[0].about_links);let S;for(S=0;S<te.length;S+=1){const ae=be(b,te,S);Y[S]?Y[S].p(ae,J):(Y[S]=qe(ae),Y[S].c(),Y[S].m(x,null))}for(;S<Y.length;S+=1)Y[S].d(1);Y.length=te.length}if(J&1){ce=I(b[0].stay_informed_links);let S;for(S=0;S<ce.length;S+=1){const ae=ye(b,ce,S);K[S]?K[S].p(ae,J):(K[S]=Fe(ae),K[S].c(),K[S].m(ie,null))}for(;S<K.length;S+=1)K[S].d(1);K.length=ce.length}},i(b){le||(y(i),y(k),le=!0)},o(b){$(i),$(k),le=!1},d(b){b&&R(e),Q[n].d(),ne(Z,b),k&&k.d(),ne(Y,b),ne(K,b)}}}function St(r){let e,s,t,l,n=I(r[0].latest_links),i=[];for(let o=0;o<n.length;o+=1)i[o]=Me(xe(r,n,o));return{c(){e=h("section"),s=h("h3"),s.textContent="Latest",t=T(),l=h("ul");for(let o=0;o<i.length;o+=1)i[o].c();a(s,"class","svelte-17nws4"),a(l,"class","svelte-17nws4"),a(e,"class","link-group svelte-17nws4")},m(o,c){L(o,e,c),u(e,s),u(e,t),u(e,l);for(let f=0;f<i.length;f+=1)i[f]&&i[f].m(l,null)},p(o,c){if(c&1){n=I(o[0].latest_links);let f;for(f=0;f<n.length;f+=1){const _=xe(o,n,f);i[f]?i[f].p(_,c):(i[f]=Me(_),i[f].c(),i[f].m(l,null))}for(;f<i.length;f+=1)i[f].d(1);i.length=n.length}},i:F,o:F,d(o){o&&R(e),ne(i,o)}}}function Vt(r){let e,s,t,l,n,i,o,c,f,_,p,C=I(r[0].latest_links),m=[];for(let d=0;d<C.length;d+=1)m[d]=Se(Re(r,C,d));let w=I(r[0].media_links),v=[];for(let d=0;d<w.length;d+=1)v[d]=Ve(Le(r,w,d));const D=d=>$(v[d],1,1,()=>{v[d]=null});return{c(){e=h("div"),s=h("section"),t=h("h3"),t.textContent="Latest",l=T(),n=h("ul");for(let d=0;d<m.length;d+=1)m[d].c();i=T(),o=h("section"),c=h("h3"),c.textContent="Media",f=T(),_=h("ul");for(let d=0;d<v.length;d+=1)v[d].c();a(t,"class","svelte-17nws4"),a(n,"class","svelte-17nws4"),a(s,"class","link-group svelte-17nws4"),a(c,"class","svelte-17nws4"),a(_,"class","svelte-17nws4"),a(o,"class","link-group media svelte-17nws4"),a(e,"class","latest-and-media svelte-17nws4")},m(d,x){L(d,e,x),u(e,s),u(s,t),u(s,l),u(s,n);for(let g=0;g<m.length;g+=1)m[g]&&m[g].m(n,null);u(e,i),u(e,o),u(o,c),u(o,f),u(o,_);for(let g=0;g<v.length;g+=1)v[g]&&v[g].m(_,null);p=!0},p(d,x){if(x&1){C=I(d[0].latest_links);let g;for(g=0;g<C.length;g+=1){const A=Re(d,C,g);m[g]?m[g].p(A,x):(m[g]=Se(A),m[g].c(),m[g].m(n,null))}for(;g<m.length;g+=1)m[g].d(1);m.length=C.length}if(x&5){w=I(d[0].media_links);let g;for(g=0;g<w.length;g+=1){const A=Le(d,w,g);v[g]?(v[g].p(A,x),y(v[g],1)):(v[g]=Ve(A),v[g].c(),y(v[g],1),v[g].m(_,null))}for(X(),g=w.length;g<v.length;g+=1)D(g);ee()}},i(d){if(!p){for(let x=0;x<w.length;x+=1)y(v[x]);p=!0}},o(d){v=v.filter(Boolean);for(let x=0;x<v.length;x+=1)$(v[x]);p=!1},d(d){d&&R(e),ne(m,d),ne(v,d)}}}function Me(r){let e,s,t=r[4].text+"",l,n,i;return{c(){e=h("li"),s=h("a"),l=H(t),i=T(),a(s,"href",n=q(r[4].url)),a(s,"class","svelte-17nws4"),a(e,"class","svelte-17nws4")},m(o,c){L(o,e,c),u(e,s),u(s,l),u(e,i)},p(o,c){c&1&&t!==(t=o[4].text+"")&&se(l,t),c&1&&n!==(n=q(o[4].url))&&a(s,"href",n)},d(o){o&&R(e)}}}function Se(r){let e,s,t=r[4].text+"",l,n,i;return{c(){e=h("li"),s=h("a"),l=H(t),i=T(),a(s,"href",n=q(r[4].url)),a(s,"class","svelte-17nws4"),a(e,"class","svelte-17nws4")},m(o,c){L(o,e,c),u(e,s),u(s,l),u(e,i)},p(o,c){c&1&&t!==(t=o[4].text+"")&&se(l,t),c&1&&n!==(n=q(o[4].url))&&a(s,"href",n)},d(o){o&&R(e)}}}function Ve(r){let e,s,t,l,n,i=r[4].text+"",o,c,f,_;var p=r[2][r[4].symbol];function C(m,w){return{}}return p&&(t=ue(p,C())),{c(){e=h("li"),s=h("div"),t&&z(t.$$.fragment),l=T(),n=h("a"),o=H(i),f=T(),a(s,"class","symbol svelte-17nws4"),a(n,"href",c=q(r[4].url)),a(n,"class","svelte-17nws4"),a(e,"class","svelte-17nws4")},m(m,w){L(m,e,w),u(e,s),t&&B(t,s,null),u(e,l),u(e,n),u(n,o),u(e,f),_=!0},p(m,w){if(w&1&&p!==(p=m[2][m[4].symbol])){if(t){X();const v=t;$(v.$$.fragment,1,0,()=>{j(v,1)}),ee()}p?(t=ue(p,C()),z(t.$$.fragment),y(t.$$.fragment,1),B(t,s,null)):t=null}(!_||w&1)&&i!==(i=m[4].text+"")&&se(o,i),(!_||w&1&&c!==(c=q(m[4].url)))&&a(n,"href",c)},i(m){_||(t&&y(t.$$.fragment,m),_=!0)},o(m){t&&$(t.$$.fragment,m),_=!1},d(m){m&&R(e),t&&j(t)}}}function Ae(r){let e,s,t=r[4].text+"",l,n,i;return{c(){e=h("li"),s=h("a"),l=H(t),i=T(),a(s,"href",n=q(r[4].url)),a(s,"class","svelte-17nws4"),a(e,"class","svelte-17nws4")},m(o,c){L(o,e,c),u(e,s),u(s,l),u(e,i)},p(o,c){c&1&&t!==(t=o[4].text+"")&&se(l,t),c&1&&n!==(n=q(o[4].url))&&a(s,"href",n)},d(o){o&&R(e)}}}function De(r){let e,s,t,l,n,i=I(r[0].media_links),o=[];for(let f=0;f<i.length;f+=1)o[f]=Ze($e(r,i,f));const c=f=>$(o[f],1,1,()=>{o[f]=null});return{c(){e=h("section"),s=h("h3"),s.textContent="Media",t=T(),l=h("ul");for(let f=0;f<o.length;f+=1)o[f].c();a(s,"class","svelte-17nws4"),a(l,"class","svelte-17nws4"),a(e,"class","link-group media svelte-17nws4")},m(f,_){L(f,e,_),u(e,s),u(e,t),u(e,l);for(let p=0;p<o.length;p+=1)o[p]&&o[p].m(l,null);n=!0},p(f,_){if(_&5){i=I(f[0].media_links);let p;for(p=0;p<i.length;p+=1){const C=$e(f,i,p);o[p]?(o[p].p(C,_),y(o[p],1)):(o[p]=Ze(C),o[p].c(),y(o[p],1),o[p].m(l,null))}for(X(),p=i.length;p<o.length;p+=1)c(p);ee()}},i(f){if(!n){for(let _=0;_<i.length;_+=1)y(o[_]);n=!0}},o(f){o=o.filter(Boolean);for(let _=0;_<o.length;_+=1)$(o[_]);n=!1},d(f){f&&R(e),ne(o,f)}}}function Ze(r){let e,s,t,l,n,i=r[4].text+"",o,c,f,_;var p=r[2][r[4].symbol];function C(m,w){return{}}return p&&(t=ue(p,C())),{c(){e=h("li"),s=h("div"),t&&z(t.$$.fragment),l=T(),n=h("a"),o=H(i),f=T(),a(s,"class","symbol svelte-17nws4"),a(n,"href",c=q(r[4].url)),a(n,"class","svelte-17nws4"),a(e,"class","svelte-17nws4")},m(m,w){L(m,e,w),u(e,s),t&&B(t,s,null),u(e,l),u(e,n),u(n,o),u(e,f),_=!0},p(m,w){if(w&1&&p!==(p=m[2][m[4].symbol])){if(t){X();const v=t;$(v.$$.fragment,1,0,()=>{j(v,1)}),ee()}p?(t=ue(p,C()),z(t.$$.fragment),y(t.$$.fragment,1),B(t,s,null)):t=null}(!_||w&1)&&i!==(i=m[4].text+"")&&se(o,i),(!_||w&1&&c!==(c=q(m[4].url)))&&a(n,"href",c)},i(m){_||(t&&y(t.$$.fragment,m),_=!0)},o(m){t&&$(t.$$.fragment,m),_=!1},d(m){m&&R(e),t&&j(t)}}}function qe(r){let e,s,t=r[4].text+"",l,n,i;return{c(){e=h("li"),s=h("a"),l=H(t),i=T(),a(s,"href",n=q(r[4].url)),a(s,"class","svelte-17nws4"),a(e,"class","svelte-17nws4")},m(o,c){L(o,e,c),u(e,s),u(s,l),u(e,i)},p(o,c){c&1&&t!==(t=o[4].text+"")&&se(l,t),c&1&&n!==(n=q(o[4].url))&&a(s,"href",n)},d(o){o&&R(e)}}}function Fe(r){let e,s,t=r[4].text+"",l,n,i;return{c(){e=h("li"),s=h("a"),l=H(t),i=T(),a(s,"href",n=q(r[4].url)),a(s,"class","svelte-17nws4"),a(e,"class","svelte-17nws4")},m(o,c){L(o,e,c),u(e,s),u(s,l),u(e,i)},p(o,c){c&1&&t!==(t=o[4].text+"")&&se(l,t),c&1&&n!==(n=q(o[4].url))&&a(s,"href",n)},d(o){o&&R(e)}}}function At(r){let e,s,t,l;dt(r[3]);let n=r[0].latest_links&&Te(r);return{c(){n&&n.c(),e=fe()},m(i,o){n&&n.m(i,o),L(i,e,o),s=!0,t||(l=pt(window,"resize",r[3]),t=!0)},p(i,[o]){i[0].latest_links?n?(n.p(i,o),o&1&&y(n,1)):(n=Te(i),n.c(),y(n,1),n.m(e.parentNode,e)):n&&(X(),$(n,1,1,()=>{n=null}),ee())},i(i){s||(y(n),s=!0)},o(i){$(n),s=!1},d(i){i&&R(e),n&&n.d(i),t=!1,l()}}}const he=745;function Dt(r,e,s){const t={graphics:Je,pictures:Xe,videos:et};let{links:l={}}=e,n=1200;function i(){s(1,n=window.innerWidth)}return r.$$set=o=>{"links"in o&&s(0,l=o.links)},[l,n,t,i]}class tt extends W{constructor(e){super(),E(this,e,Dt,At,U,{links:0})}}tt.__docgen={version:3,name:"QuickLinks.svelte",data:[{visibility:"public",description:null,keywords:[],name:"links",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Zt(r){let e,s;return{c(){e=G("svg"),s=G("path"),a(s,"d","M16 1.537a6.469 6.469 0 0 1-1.884.516A3.3 3.3 0 0 0 15.559.237a6.603 6.603 0 0 1-2.084.797A3.282 3.282 0 0 0 11.078 0a3.28 3.28 0 0 0-3.196 4.028A9.315 9.315 0 0 1 1.118.598a3.28 3.28 0 0 0-.444 1.65c0 1.137.578 2.143 1.46 2.73A3.281 3.281 0 0 1 .646 4.57v.04A3.282 3.282 0 0 0 3.28 7.83a3.286 3.286 0 0 1-1.483.055 3.294 3.294 0 0 0 3.065 2.282A6.583 6.583 0 0 1 0 11.526 9.281 9.281 0 0 0 5.034 13c6.036 0 9.338-5.003 9.338-9.34 0-.144-.003-.285-.01-.425A6.607 6.607 0 0 0 16 1.538Z"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 16 13"),oe(e,"width",r[0]+"px"),a(e,"class","svelte-5rkp8q")},m(t,l){L(t,e,l),u(e,s)},p(t,[l]){l&1&&oe(e,"width",t[0]+"px")},i:F,o:F,d(t){t&&R(e)}}}function qt(r,e,s){let{width:t=20}=e;return r.$$set=l=>{"width"in l&&s(0,t=l.width)},[t]}class st extends W{constructor(e){super(),E(this,e,qt,Zt,U,{width:0})}}st.__docgen={version:3,name:"Twitter.svelte",data:[{visibility:"public",description:null,keywords:[],name:"width",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:20}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Ft(r){let e,s;return{c(){e=G("svg"),s=G("path"),a(s,"d","M18.375 0H2.625A2.617 2.617 0 0 0 0 2.609V14.39A2.617 2.617 0 0 0 2.625 17h15.75A2.617 2.617 0 0 0 21 14.391V2.61A2.617 2.617 0 0 0 18.375 0Zm-10.5 13.044V4.348l7 4.348-7 4.348Z"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"viewBox","0 0 21 17"),a(e,"xmlns","http://www.w3.org/2000/svg"),oe(e,"width",r[0]+"px"),a(e,"class","svelte-5rkp8q")},m(t,l){L(t,e,l),u(e,s)},p(t,[l]){l&1&&oe(e,"width",t[0]+"px")},i:F,o:F,d(t){t&&R(e)}}}function It(r,e,s){let{width:t=20}=e;return r.$$set=l=>{"width"in l&&s(0,t=l.width)},[t]}class lt extends W{constructor(e){super(),E(this,e,It,Ft,U,{width:0})}}lt.__docgen={version:3,name:"YouTube.svelte",data:[{visibility:"public",description:null,keywords:[],name:"width",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:20}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function zt(r){let e,s;return{c(){e=G("svg"),s=G("path"),a(s,"d","M14.5 0h-13C.675 0 0 .675 0 1.5v13c0 .825.675 1.5 1.5 1.5H8V9H6V7h2V6c0-1.653 1.347-3 3-3h2v2h-2c-.55 0-1 .45-1 1v1h3l-.5 2H10v7h4.5c.825 0 1.5-.675 1.5-1.5v-13c0-.825-.675-1.5-1.5-1.5Z"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 16 16"),oe(e,"width",r[0]+"px"),a(e,"class","svelte-5rkp8q")},m(t,l){L(t,e,l),u(e,s)},p(t,[l]){l&1&&oe(e,"width",t[0]+"px")},i:F,o:F,d(t){t&&R(e)}}}function Bt(r,e,s){let{width:t=20}=e;return r.$$set=l=>{"width"in l&&s(0,t=l.width)},[t]}class nt extends W{constructor(e){super(),E(this,e,Bt,zt,U,{width:0})}}nt.__docgen={version:3,name:"Facebook.svelte",data:[{visibility:"public",description:null,keywords:[],name:"width",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:20}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function jt(r){let e,s,t;return{c(){e=G("svg"),s=G("path"),t=G("path"),a(s,"d","M8 1.44c2.137 0 2.39.01 3.231.048.781.034 1.203.165 1.485.274.372.145.64.32.918.598.281.281.453.546.6.919.11.281.24.706.275 1.484.037.844.047 1.097.047 3.232 0 2.134-.01 2.39-.047 3.231-.034.781-.165 1.203-.275 1.484a2.47 2.47 0 0 1-.597.919 2.51 2.51 0 0 1-.918.6c-.282.11-.707.24-1.485.275-.844.037-1.097.047-3.232.047-2.134 0-2.39-.01-3.231-.047-.781-.034-1.203-.165-1.484-.275a2.476 2.476 0 0 1-.92-.597 2.51 2.51 0 0 1-.6-.918c-.109-.282-.24-.707-.274-1.485-.038-.844-.048-1.097-.048-3.231 0-2.135.01-2.391.047-3.232.035-.781.166-1.203.276-1.485.143-.372.319-.64.597-.919.281-.281.546-.453.918-.6.282-.109.707-.24 1.485-.274C5.608 1.45 5.862 1.44 8 1.44ZM8 0C5.828 0 5.556.01 4.703.047c-.85.038-1.435.175-1.94.372a3.898 3.898 0 0 0-1.419.925c-.447.444-.719.89-.925 1.415C.222 3.27.085 3.85.047 4.7.01 5.556 0 5.828 0 8c0 2.172.01 2.444.047 3.297.038.85.175 1.434.372 1.94.206.528.478.976.925 1.419.444.444.89.719 1.415.922.51.197 1.091.335 1.941.372.853.038 1.125.047 3.297.047s2.444-.01 3.297-.047c.85-.037 1.434-.175 1.94-.372a3.903 3.903 0 0 0 1.416-.922c.444-.444.719-.89.922-1.415.197-.51.335-1.091.372-1.941.037-.853.047-1.125.047-3.297s-.01-2.444-.047-3.297c-.038-.85-.175-1.435-.372-1.94a3.753 3.753 0 0 0-.915-1.423A3.91 3.91 0 0 0 13.24.422c-.51-.197-1.09-.335-1.94-.372C10.444.008 10.171 0 8 0H8Z"),a(t,"d","M8 3.89a4.11 4.11 0 0 0 0 8.22 4.11 4.11 0 0 0 0-8.22Zm0 6.776a2.666 2.666 0 1 1 0-5.332 2.666 2.666 0 0 1 0 5.332Zm5.231-6.938a.96.96 0 1 1-1.919 0 .96.96 0 0 1 1.919 0Z"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 16 16"),oe(e,"width",r[0]+"px"),a(e,"class","svelte-5rkp8q")},m(l,n){L(l,e,n),u(e,s),u(e,t)},p(l,[n]){n&1&&oe(e,"width",l[0]+"px")},i:F,o:F,d(l){l&&R(e)}}}function Ht(r,e,s){let{width:t=20}=e;return r.$$set=l=>{"width"in l&&s(0,t=l.width)},[t]}class rt extends W{constructor(e){super(),E(this,e,Ht,jt,U,{width:0})}}rt.__docgen={version:3,name:"Instagram.svelte",data:[{visibility:"public",description:null,keywords:[],name:"width",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:20}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Gt(r){let e,s;return{c(){e=G("svg"),s=G("path"),a(s,"d","M19.031 0c1.034 0 1.888.807 1.964 1.822L21 1.97V19.03a1.975 1.975 0 0 1-1.822 1.964L19.03 21H1.97a1.975 1.975 0 0 1-1.964-1.822L0 19.03V1.97C0 .935.807.08 1.822.005L1.97 0H19.03ZM6.3 7.875H3.15v10.063H6.3V7.874Zm7.875-.175c-1.575 0-2.538.788-2.975 1.575v-1.4H8.225v10.063h3.15V12.95c0-1.313.175-2.537 1.838-2.537 1.575 0 1.575 1.487 1.575 2.624v4.9h3.15v-5.425c0-2.712-.613-4.812-3.763-4.812ZM4.637 2.8c-1.05 0-1.837.875-1.837 1.838 0 1.05.875 1.837 1.838 1.837 1.05 0 1.837-.787 1.837-1.837 0-1.05-.875-1.838-1.837-1.838Z"),a(e,"aria-hidden","true"),a(e,"focusable","false"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"viewBox","0 0 21 21"),oe(e,"width",r[0]+"px"),a(e,"class","svelte-5rkp8q")},m(t,l){L(t,e,l),u(e,s)},p(t,[l]){l&1&&oe(e,"width",t[0]+"px")},i:F,o:F,d(t){t&&R(e)}}}function Nt(r,e,s){let{width:t=20}=e;return r.$$set=l=>{"width"in l&&s(0,t=l.width)},[t]}class it extends W{constructor(e){super(),E(this,e,Nt,Gt,U,{width:0})}}it.__docgen={version:3,name:"LinkedIn.svelte",data:[{visibility:"public",description:null,keywords:[],name:"width",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:20}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Ie(r,e,s){const t=r.slice();return t[2]=e[s],t}function ze(r){let e,s,t,l,n,i,o=r[0].company_description+"",c,f,_,p,C,m,w,v,D=I(r[0].social_links),d=[];for(let g=0;g<D.length;g+=1)d[g]=Be(Ie(r,D,g));const x=g=>$(d[g],1,1,()=>{d[g]=null});return{c(){e=h("section"),s=h("div"),t=h("article"),l=h("h2"),l.textContent="Information you can trust",n=T(),i=h("p"),c=H(o),f=T(),_=h("div"),p=h("h2"),p.textContent="Follow Us",C=T(),m=h("div"),w=h("ul");for(let g=0;g<d.length;g+=1)d[g].c();a(l,"class","svelte-e60x6i"),a(i,"class","svelte-e60x6i"),a(t,"class","company-info svelte-e60x6i"),a(p,"class","svelte-e60x6i"),a(w,"class","links svelte-e60x6i"),a(_,"class","social svelte-e60x6i"),a(s,"class","content-container svelte-e60x6i"),a(e,"class","company svelte-e60x6i")},m(g,A){L(g,e,A),u(e,s),u(s,t),u(t,l),u(t,n),u(t,i),u(i,c),u(s,f),u(s,_),u(_,p),u(_,C),u(_,m),u(m,w);for(let V=0;V<d.length;V+=1)d[V]&&d[V].m(w,null);v=!0},p(g,A){if((!v||A&1)&&o!==(o=g[0].company_description+"")&&se(c,o),A&3){D=I(g[0].social_links);let V;for(V=0;V<D.length;V+=1){const re=Ie(g,D,V);d[V]?(d[V].p(re,A),y(d[V],1)):(d[V]=Be(re),d[V].c(),y(d[V],1),d[V].m(w,null))}for(X(),V=D.length;V<d.length;V+=1)x(V);ee()}},i(g){if(!v){for(let A=0;A<D.length;A+=1)y(d[A]);v=!0}},o(g){d=d.filter(Boolean);for(let A=0;A<d.length;A+=1)$(d[A]);v=!1},d(g){g&&R(e),ne(d,g)}}}function Be(r){let e,s,t,l,n,i,o,c;var f=r[1][r[2].type];function _(p,C){return{}}return f&&(n=ue(f,_())),{c(){e=h("li"),s=h("a"),t=h("div"),l=h("div"),n&&z(n.$$.fragment),o=T(),a(l,"class","social svelte-e60x6i"),a(t,"class","button svelte-e60x6i"),a(s,"href",i=q(r[2].url)),a(e,"class","social-links symbol svelte-e60x6i")},m(p,C){L(p,e,C),u(e,s),u(s,t),u(t,l),n&&B(n,l,null),u(e,o),c=!0},p(p,C){if(C&1&&f!==(f=p[1][p[2].type])){if(n){X();const m=n;$(m.$$.fragment,1,0,()=>{j(m,1)}),ee()}f?(n=ue(f,_()),z(n.$$.fragment),y(n.$$.fragment,1),B(n,l,null)):n=null}(!c||C&1&&i!==(i=q(p[2].url)))&&a(s,"href",i)},i(p){c||(n&&y(n.$$.fragment,p),c=!0)},o(p){n&&$(n.$$.fragment,p),c=!1},d(p){p&&R(e),n&&j(n)}}}function Ot(r){let e,s,t=r[0].social_links&&ze(r);return{c(){t&&t.c(),e=fe()},m(l,n){t&&t.m(l,n),L(l,e,n),s=!0},p(l,[n]){l[0].social_links?t?(t.p(l,n),n&1&&y(t,1)):(t=ze(l),t.c(),y(t,1),t.m(e.parentNode,e)):t&&(X(),$(t,1,1,()=>{t=null}),ee())},i(l){s||(y(t),s=!0)},o(l){$(t),s=!1},d(l){l&&R(e),t&&t.d(l)}}}function Pt(r,e,s){const t={twitter:st,facebook:nt,instagram:rt,youtube:lt,linkedin:it};let{links:l={}}=e;return r.$$set=n=>{"links"in n&&s(0,l=n.links)},[l,t]}class ot extends W{constructor(e){super(),E(this,e,Pt,Ot,U,{links:0})}}ot.__docgen={version:3,name:"CompanyLinks.svelte",data:[{visibility:"public",description:null,keywords:[],name:"links",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function je(r,e,s){const t=r.slice();return t[1]=e[s],t}function He(r,e,s){const t=r.slice();return t[1]=e[s],t}function Ge(r){let e,s,t,l,n,i,o,c,f,_,p,C,m,w,v,D,d,x=r[0].copyright_year+"",g,A,V,re,ie,le=I(r[0].ad_links),N=[];for(let M=0;M<le.length;M+=1)N[M]=Ne(He(r,le,M));let Q=I(r[0].misc_links.filter(Pe)),O=[];for(let M=0;M<Q.length;M+=1)O[M]=Oe(je(r,Q,M));return{c(){e=h("section"),s=h("div"),t=h("section"),l=h("ul");for(let M=0;M<N.length;M+=1)N[M].c();n=T(),i=h("p"),o=H("All quotes delayed a minimum of 15 minutes. "),c=h("a"),f=H("See here for a complete list of exchanges and delays"),p=H("."),C=T(),m=h("section"),w=h("ul");for(let M=0;M<O.length;M+=1)O[M].c();v=T(),D=h("p"),d=H("© "),g=H(x),A=H(` Reuters.
`),V=h("a"),re=H("All rights reserved"),a(l,"class","link-group svelte-az3wp8"),a(t,"class","ad-links svelte-az3wp8"),a(c,"href",_=q(r[0].disclaimer_link)),a(c,"class","svelte-az3wp8"),a(i,"class","disclaimer svelte-az3wp8"),a(w,"class","link-group svelte-az3wp8"),a(m,"class","misc-links svelte-az3wp8"),a(V,"href",ie=q(r[0].copyright_link)),a(V,"class","svelte-az3wp8"),a(D,"class","copyright svelte-az3wp8"),a(s,"class","content-container svelte-az3wp8"),a(e,"class","legal svelte-az3wp8")},m(M,Z){L(M,e,Z),u(e,s),u(s,t),u(t,l);for(let k=0;k<N.length;k+=1)N[k]&&N[k].m(l,null);u(s,n),u(s,i),u(i,o),u(i,c),u(c,f),u(i,p),u(s,C),u(s,m),u(m,w);for(let k=0;k<O.length;k+=1)O[k]&&O[k].m(w,null);u(s,v),u(s,D),u(D,d),u(D,g),u(D,A),u(D,V),u(V,re)},p(M,Z){if(Z&1){le=I(M[0].ad_links);let k;for(k=0;k<le.length;k+=1){const te=He(M,le,k);N[k]?N[k].p(te,Z):(N[k]=Ne(te),N[k].c(),N[k].m(l,null))}for(;k<N.length;k+=1)N[k].d(1);N.length=le.length}if(Z&1&&_!==(_=q(M[0].disclaimer_link))&&a(c,"href",_),Z&1){Q=I(M[0].misc_links.filter(Pe));let k;for(k=0;k<Q.length;k+=1){const te=je(M,Q,k);O[k]?O[k].p(te,Z):(O[k]=Oe(te),O[k].c(),O[k].m(w,null))}for(;k<O.length;k+=1)O[k].d(1);O.length=Q.length}Z&1&&x!==(x=M[0].copyright_year+"")&&se(g,x),Z&1&&ie!==(ie=q(M[0].copyright_link))&&a(V,"href",ie)},d(M){M&&R(e),ne(N,M),ne(O,M)}}}function Ne(r){let e,s,t=r[1].text+"",l,n,i;return{c(){e=h("li"),s=h("a"),l=H(t),i=T(),a(s,"href",n=q(r[1].url)),a(s,"class","svelte-az3wp8"),a(e,"class","svelte-az3wp8")},m(o,c){L(o,e,c),u(e,s),u(s,l),u(e,i)},p(o,c){c&1&&t!==(t=o[1].text+"")&&se(l,t),c&1&&n!==(n=q(o[1].url))&&a(s,"href",n)},d(o){o&&R(e)}}}function Oe(r){let e,s,t=r[1].text+"",l,n,i;return{c(){e=h("li"),s=h("a"),l=H(t),i=T(),a(s,"href",n=q(r[1].url)),a(s,"class","svelte-az3wp8"),a(e,"class","svelte-az3wp8")},m(o,c){L(o,e,c),u(e,s),u(s,l),u(e,i)},p(o,c){c&1&&t!==(t=o[1].text+"")&&se(l,t),c&1&&n!==(n=q(o[1].url))&&a(s,"href",n)},d(o){o&&R(e)}}}function Wt(r){let e,s=r[0].ad_links&&Ge(r);return{c(){s&&s.c(),e=fe()},m(t,l){s&&s.m(t,l),L(t,e,l)},p(t,[l]){t[0].ad_links?s?s.p(t,l):(s=Ge(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:F,o:F,d(t){t&&R(e),s&&s.d(t)}}}const Pe=r=>!r.self;function Et(r,e,s){let{links:t={}}=e;return r.$$set=l=>{"links"in l&&s(0,t=l.links)},[t]}class at extends W{constructor(e){super(),E(this,e,Et,Wt,U,{links:0})}}at.__docgen={version:3,name:"LegalLinks.svelte",data:[{visibility:"public",description:null,keywords:[],name:"links",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const Ut=r=>({intersecting:r&1}),We=r=>({intersecting:r[0]});function Qt(r){let e,s;const t=r[8].default,l=mt(t,r,r[7],We);return{c(){e=h("div"),l&&l.c()},m(n,i){L(n,e,i),l&&l.m(e,null),r[9](e),s=!0},p(n,[i]){l&&l.p&&(!s||i&129)&&ht(l,t,n,n[7],s?gt(t,n[7],i,Ut):_t(n[7]),We)},i(n){s||(y(l,n),s=!0)},o(n){$(l,n),s=!1},d(n){n&&R(e),l&&l.d(n),r[9](null)}}}function Yt(r,e,s){let{$$slots:t={},$$scope:l}=e,{once:n=!1}=e,{top:i=0}=e,{bottom:o=0}=e,{left:c=0}=e,{right:f=0}=e,_=!1,p;_e(()=>{if(typeof IntersectionObserver<"u"){const w=`${o}px ${c}px ${i}px ${f}px`,v=new IntersectionObserver(D=>{s(0,_=D[0].isIntersecting),_&&n&&v.unobserve(p)},{rootMargin:w});return v.observe(p),()=>v.unobserve(p)}function m(){const w=p.getBoundingClientRect();s(0,_=w.bottom+o>0&&w.right+f>0&&w.top-i<window.innerHeight&&w.left-c<window.innerWidth),_&&n&&window.removeEventListener("scroll",m)}return window.addEventListener("scroll",m),()=>window.removeEventListener("scroll",m)});function C(m){vt[m?"unshift":"push"](()=>{p=m,s(1,p)})}return r.$$set=m=>{"once"in m&&s(2,n=m.once),"top"in m&&s(3,i=m.top),"bottom"in m&&s(4,o=m.bottom),"left"in m&&s(5,c=m.left),"right"in m&&s(6,f=m.right),"$$scope"in m&&s(7,l=m.$$scope)},[_,p,n,i,o,c,f,l,t,C]}class ct extends W{constructor(e){super(),E(this,e,Yt,Qt,U,{once:2,top:3,bottom:4,left:5,right:6})}}IntersectionObserver.__docgen={version:3,name:"IntersectionObserver.svelte",data:[{visibility:"public",description:null,keywords:[],name:"once",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"boolean",type:"boolean"},defaultValue:!1},{visibility:"public",description:null,keywords:[],name:"top",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:0},{visibility:"public",description:null,keywords:[],name:"bottom",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:0},{visibility:"public",description:null,keywords:[],name:"left",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:0},{visibility:"public",description:null,keywords:[],name:"right",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:0}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[{keywords:[],visibility:"public",description:"",name:"default",params:[{name:"intersecting",type:{kind:"type",text:"*",type:"any"}}],parameters:[{name:"intersecting",type:{kind:"type",text:"*",type:"any"}}]}],refs:[]};function Kt(r){let e;return{c(){e=h("div"),a(e,"class","image svelte-1vyqmo3")},m(s,t){L(s,e,t)},p:F,d(s){s&&R(e)}}}function Jt(r){let e,s;return{c(){e=h("div"),a(e,"data-chromatic","ignore"),a(e,"class","image svelte-1vyqmo3"),a(e,"style",s=`background-image: url(${r[1]});`)},m(t,l){L(t,e,l)},p(t,l){l&2&&s!==(s=`background-image: url(${t[1]});`)&&a(e,"style",s)},d(t){t&&R(e)}}}function Xt(r){let e;function s(n,i){return n[4]?Jt:Kt}let t=s(r),l=t(r);return{c(){l.c(),e=fe()},m(n,i){l.m(n,i),L(n,e,i)},p(n,i){t===(t=s(n))&&l?l.p(n,i):(l.d(1),l=t(n),l&&(l.c(),l.m(e.parentNode,e)))},d(n){n&&R(e),l.d(n)}}}function es(r){let e,s,t,l,n,i,o,c;return t=new ct({props:{top:600,once:!0,$$slots:{default:[Xt,({intersecting:f})=>({4:f}),({intersecting:f})=>f?16:0]},$$scope:{ctx:r}}}),{c(){e=h("div"),s=h("a"),z(t.$$.fragment),l=T(),n=h("p"),i=H(r[2]),a(n,"class","body-caption font-bold leading-tighter svelte-1vyqmo3"),a(n,"data-chromatic","ignore"),a(s,"href",o=r[0].replace("index.html","")),a(s,"class","svelte-1vyqmo3"),a(e,"class","referral py-0 px-3 svelte-1vyqmo3"),a(e,"title",r[3])},m(f,_){L(f,e,_),u(e,s),B(t,s,null),u(s,l),u(s,n),u(n,i),c=!0},p(f,[_]){const p={};_&50&&(p.$$scope={dirty:_,ctx:f}),t.$set(p),(!c||_&4)&&se(i,f[2]),(!c||_&1&&o!==(o=f[0].replace("index.html","")))&&a(s,"href",o),(!c||_&8)&&a(e,"title",f[3])},i(f){c||(y(t.$$.fragment,f),c=!0)},o(f){$(t.$$.fragment,f),c=!1},d(f){f&&R(e),j(t)}}}function ts(r,e,s){let{url:t}=e,{image:l}=e,{title:n}=e,{description:i}=e;return r.$$set=o=>{"url"in o&&s(0,t=o.url),"image"in o&&s(1,l=o.image),"title"in o&&s(2,n=o.title),"description"in o&&s(3,i=o.description)},[t,l,n,i]}class ut extends W{constructor(e){super(),E(this,e,ts,es,U,{url:0,image:1,title:2,description:3})}}ut.__docgen={version:3,name:"Link.svelte",data:[{visibility:"public",description:null,keywords:[],name:"url",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"image",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"title",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"description",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Ee(r,e,s){const t=r.slice();return t[3]=e[s],t}function Ue(r){let e,s,t=I(r[0]),l=[];for(let i=0;i<t.length;i+=1)l[i]=Qe(Ee(r,t,i));const n=i=>$(l[i],1,1,()=>{l[i]=null});return{c(){e=h("nav");for(let i=0;i<l.length;i+=1)l[i].c();a(e,"class","referral-rail row svelte-ipd4ij")},m(i,o){L(i,e,o);for(let c=0;c<l.length;c+=1)l[c]&&l[c].m(e,null);s=!0},p(i,o){if(o&1){t=I(i[0]);let c;for(c=0;c<t.length;c+=1){const f=Ee(i,t,c);l[c]?(l[c].p(f,o),y(l[c],1)):(l[c]=Qe(f),l[c].c(),y(l[c],1),l[c].m(e,null))}for(X(),c=t.length;c<l.length;c+=1)n(c);ee()}},i(i){if(!s){for(let o=0;o<t.length;o+=1)y(l[o]);s=!0}},o(i){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)$(l[o]);s=!1},d(i){i&&R(e),ne(l,i)}}}function Qe(r){let e,s;const t=[r[3]];let l={};for(let n=0;n<t.length;n+=1)l=de(l,t[n]);return e=new ut({props:l}),{c(){z(e.$$.fragment)},m(n,i){B(e,n,i),s=!0},p(n,i){const o=i&1?ge(t,[Ke(n[3])]):{};e.$set(o)},i(n){s||(y(e.$$.fragment,n),s=!0)},o(n){$(e.$$.fragment,n),s=!1},d(n){j(e,n)}}}function ss(r){let e,s,t=r[0]&&Ue(r);return{c(){t&&t.c(),e=fe()},m(l,n){t&&t.m(l,n),L(l,e,n),s=!0},p(l,[n]){l[0]?t?(t.p(l,n),n&1&&y(t,1)):(t=Ue(l),t.c(),y(t,1),t.m(e.parentNode,e)):t&&(X(),$(t,1,1,()=>{t=null}),ee())},i(l){s||(y(t),s=!0)},o(l){$(t),s=!1},d(l){l&&R(e),t&&t.d(l)}}}function ls(r,e,s){let t,{referrals:l=[]}=e,n;return _e(()=>{if(t.length===4){s(0,n=t);return}fetch("https://graphics.thomsonreuters.com/data/reuters-graphics/homepage/graphics.json").then(i=>i.json()).then(i=>{const o=i.filter(({canonical:c})=>{const f=window.location.pathname.replace(/\/index\.html$/,"").replace(/\/$/,"");return f?!c.includes(f):!0}).slice(0,4).map(({url:c,image:f,title:_,description:p})=>({url:c,image:f,title:_,description:p}));s(0,n=[...t,...o].slice(0,4))})}),r.$$set=i=>{"referrals"in i&&s(1,l=i.referrals)},r.$$.update=()=>{r.$$.dirty&2&&(t=l.filter(i=>i.url&&i.title&&i.image).slice(0,4))},[n,l]}class ve extends W{constructor(e){super(),E(this,e,ls,ss,U,{referrals:1})}}ve.__docgen={version:3,name:"Referrals.svelte",data:[{visibility:"public",description:null,keywords:[],name:"referrals",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"array",type:"array"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Ye(r){let e,s,t,l,n=typeof window<"u"&&ns(r);return{c(){e=h("section"),s=h("h2"),s.innerHTML='<a href="https://graphics.reuters.com/" class="svelte-1nsilfr">More from Reuters Graphics</a>',t=T(),n&&n.c(),a(s,"class","fmt-0 text-base font-medium svelte-1nsilfr"),a(e,"class","referrals px-0 py-5 svelte-1nsilfr")},m(i,o){L(i,e,o),u(e,s),u(e,t),n&&n.m(e,null),l=!0},p(i,o){typeof window<"u"&&n.p(i,o)},i(i){l||(y(n),l=!0)},o(i){$(n),l=!1},d(i){i&&R(e),n&&n.d()}}}function ns(r){let e,s;return e=new ve({props:{referrals:r[0]}}),{c(){z(e.$$.fragment)},m(t,l){B(e,t,l),s=!0},p(t,l){const n={};l&1&&(n.referrals=t[0]),e.$set(n)},i(t){s||(y(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){j(e,t)}}}function rs(r){let e,s,t=r[1]&&Ye(r);return{c(){t&&t.c(),e=fe()},m(l,n){t&&t.m(l,n),L(l,e,n),s=!0},p(l,n){l[1]?t?(t.p(l,n),n&2&&y(t,1)):(t=Ye(l),t.c(),y(t,1),t.m(e.parentNode,e)):t&&(X(),$(t,1,1,()=>{t=null}),ee())},i(l){s||(y(t),s=!0)},o(l){$(t),s=!1},d(l){l&&R(e),t&&t.d(l)}}}function is(r){let e,s;return e=new ct({props:{top:2400,once:!0,$$slots:{default:[rs,({intersecting:t})=>({1:t}),({intersecting:t})=>t?2:0]},$$scope:{ctx:r}}}),{c(){z(e.$$.fragment)},m(t,l){B(e,t,l),s=!0},p(t,[l]){const n={};l&7&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){s||(y(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){j(e,t)}}}function os(r,e,s){let{referrals:t=[]}=e;return r.$$set=l=>{"referrals"in l&&s(0,t=l.referrals)},[t]}class as extends W{constructor(e){super(),E(this,e,os,is,U,{referrals:0})}}ve.__docgen={version:3,name:"index.svelte",data:[{visibility:"public",description:null,keywords:[],name:"referrals",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"array",type:"array"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const cs=[{company_description:"Reuters, the news and media division of Thomson Reuters, is the worlds largest multimedia news provider, reaching billions of people worldwide every day. Reuters provides business, financial, national and international news to professionals via desktop terminals, the world's media organizations, industry events and directly to consumers.",disclaimer_link:"https://www.reuters.com/info-pages/disclaimer/",copyright_link:"https://www.thomsonreuters.com/en/policies/copyright.html",copyright_year:"2022",latest_links:[{text:"Home",url:"/",self:!0}],browse_links:[{text:"World",url:"/world/",self:!0},{text:"Business",url:"/business/",self:!0},{text:"Legal",url:"/legal/",self:!0},{text:"Markets",url:"/markets/",self:!0},{text:"Breakingviews",url:"/breakingviews/",self:!0},{text:"Technology",url:"/technology/",self:!0},{text:"Investigations",url:"/investigates/"},{text:"Lifestyle",url:"/lifestyle/",self:!0}],media_links:[{text:"Videos",url:"https://www.reuters.com/video/",symbol:"videos"},{text:"Pictures",url:"https://www.reuters.com/news/pictures",symbol:"pictures"},{text:"Graphics",url:"https://graphics.reuters.com/",symbol:"graphics"}],about_links:[{text:"About Reuters",url:"https://www.reutersagency.com/en/about/about-us/"},{text:"Careers",url:"https://www.thomsonreuters.com/en/careers.html"},{text:"Reuters News Agency",url:"https://www.reutersagency.com/en/?utm_source=website&utm_medium=reuters&utm_campaign=site-referral&utm_content=us&utm_term=0"},{text:"Brand Attribution Guidelines",url:"https://www.reutersagency.com/en/about/about-us/brand-attribution-guidelines/"},{text:"Reuters Leadership",url:"https://www.reutersagency.com/en/about/leadership-team/"},{text:"Reuters Fact Check",url:"https://www.reuters.com/fact-check/"},{text:"Reuters Diversity Report",url:"https://www.reuters.com/DiversityReportApril2022"}],stay_informed_links:[{text:"Download the App",url:"https://www.reuters.com/tools/mobile/us"},{text:"Newsletters",url:"https://newslink.reuters.com/join/subscribe"}],social_links:[{type:"twitter",url:"https://www.twitter.com/Reuters"},{type:"facebook",url:"https://www.facebook.com/Reuters"},{type:"instagram",url:"https://www.instagram.com/Reuters"},{type:"youtube",url:"https://www.youtube.com/user/ReutersVideo"},{type:"linkedin",url:"https://www.linkedin.com/company/10256858/"}],tr_products:[{name:"Westlaw",description:"Build the strongest argument relying on authoritative content, attorney-editor expertise, and industry defining technology.",url:"https://legal.thomsonreuters.com/en/products/westlaw"},{name:"Onesource",description:"The most comprehensive solution to manage all your complex and ever-expanding tax and compliance needs.",url:"https://tax.thomsonreuters.com/en/onesource"},{name:"Checkpoint",description:"The industry leader for online information for tax, accounting and finance professionals.",url:"https://tax.thomsonreuters.com/en/checkpoint"}],refinitiv_products:[{name:"Refinitiv Workspace",description:" Access unmatched financial data, news and content in a highly-customised workflow experience on desktop, web and mobile.",url:" https://www.refinitiv.com/en/products/refinitiv-workspace"},{name:"Refinitiv Data Catalogue",description:" Browse an unrivalled portfolio of real-time and historical market data and insights from worldwide sources and experts.",url:" https://www.refinitiv.com/en/financial-data"},{name:"Refinitiv World-Check",description:"Screen for heightened risk individual and entities globally to help uncover hidden risks in business relationships and human networks.",url:"https://www.refinitiv.com/en/products/world-check-kyc-screening"}],ad_links:[{text:"Advertise With Us",url:"https://www.reutersagency.com/en/services/advertising-solutions/"},{text:"Advertising Guidelines",url:"/info-pages/advertising-guidelines/"}],misc_links:[{text:"Cookies",url:"https://www.thomsonreuters.com/en/privacy-statement.html#cookies"},{text:"Terms of Use",url:"/info-pages/terms-of-use/"},{text:"Privacy",url:"https://www.thomsonreuters.com/en/privacy-statement.html"},{text:"Digital Accessibility",url:"https://www.thomsonreuters.com/en/policies/digital-accessibility-policy.html"},{text:"Corrections",url:"/info-pages/contact-us/"},{text:"Site Feedback",url:"https://trdigital.iad1.qualtrics.com/jfe/form/SV_8kte8gArGyCGVhz"},{text:"Do Not Sell My Personal Information",url:"javascript:window.OneTrust.ToggleInfoDisplay();",self:"true"}]}];function us(r){let e,s,t,l,n,i,o,c,f,_;return t=new as({props:{referrals:r[0]}}),n=new tt({props:{links:r[1][0]}}),o=new ot({props:{links:r[1][0]}}),f=new at({props:{links:r[1][0]}}),{c(){e=h("footer"),s=h("div"),z(t.$$.fragment),l=T(),z(n.$$.fragment),i=T(),z(o.$$.fragment),c=T(),z(f.$$.fragment),a(s,"class","svelte-1xs9q5o"),a(e,"class","my-0 svelte-1xs9q5o"),a(e,"style",`
--nav-background: var(--theme-colour-background, #fff);
--nav-primary: var(--theme-colour-text-primary, #404040);
--nav-rules: var(--theme-colour-brand-rules, #d0d0d0);
--theme-font-family-sans-serif: Knowledge, sans-serif;
`)},m(p,C){L(p,e,C),u(e,s),B(t,s,null),u(s,l),B(n,s,null),u(s,i),B(o,s,null),u(s,c),B(f,s,null),_=!0},p(p,[C]){const m={};C&1&&(m.referrals=p[0]),t.$set(m);const w={};C&2&&(w.links=p[1][0]),n.$set(w);const v={};C&2&&(v.links=p[1][0]),o.$set(v);const D={};C&2&&(D.links=p[1][0]),f.$set(D)},i(p){_||(y(t.$$.fragment,p),y(n.$$.fragment,p),y(o.$$.fragment,p),y(f.$$.fragment,p),_=!0)},o(p){$(t.$$.fragment,p),$(n.$$.fragment,p),$(o.$$.fragment,p),$(f.$$.fragment,p),_=!1},d(p){p&&R(e),j(t),j(n),j(o),j(f)}}}function fs(r,e,s){let{referrals:t=[]}=e,l=cs;return _e(async()=>{try{const i=await(await fetch("https://www.reuters.com/site-api/footer/?"+new URLSearchParams({_website:"reuters",outputType:"json"}))).json();if(!i[0].company_description)return;s(1,l=i)}catch{console.warn("Unable to fetch site footer data")}}),r.$$set=n=>{"referrals"in n&&s(0,t=n.referrals)},[t,l]}class we extends W{constructor(e){super(),E(this,e,fs,us,U,{referrals:0})}}function ds(r){let e,s,t;const l=[r[1]];let n={};for(let i=0;i<l.length;i+=1)n=de(n,l[i]);return s=new we({props:n}),{c(){e=h("div"),z(s.$$.fragment),a(e,"class","svelte-kaguqp")},m(i,o){L(i,e,o),B(s,e,null),t=!0},p(i,o){const c=o&2?ge(l,[Ke(i[1])]):{};s.$set(c)},i(i){t||(y(s.$$.fragment,i),t=!0)},o(i){$(s.$$.fragment,i),t=!1},d(i){i&&R(e),j(s)}}}function ps(r){let e,s;return e=new we({}),{c(){z(e.$$.fragment)},m(t,l){B(e,t,l),s=!0},i(t){s||(y(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){j(e,t)}}}function ms(r){let e,s,t;return s=new bt({props:{base:"dark",$$slots:{default:[ps]},$$scope:{ctx:r}}}),{c(){e=h("div"),z(s.$$.fragment),a(e,"class","svelte-kaguqp")},m(l,n){L(l,e,n),B(s,e,null),t=!0},p(l,n){const i={};n&4&&(i.$$scope={dirty:n,ctx:l}),s.$set(i)},i(l){t||(y(s.$$.fragment,l),t=!0)},o(l){$(s.$$.fragment,l),t=!1},d(l){l&&R(e),j(s)}}}function hs(r){let e,s,t,l,n,i,o,c,f,_;const p=[{title:"Components/SiteFooter"},{component:we},$t(Ct)];let C={};for(let d=0;d<p.length;d+=1)C=de(C,p[d]);e=new kt({props:C}),t=new yt({props:{$$slots:{default:[ds,({args:d})=>({1:d}),({args:d})=>d?2:0]},$$scope:{ctx:r}}}),n=new me({props:{name:"Default"}});const m=[{name:"Customised theme"},ke(xt)];let w={$$slots:{default:[ms]},$$scope:{ctx:r}};for(let d=0;d<m.length;d+=1)w=de(w,m[d]);o=new me({props:w});const v=[{name:"Customised referrals"},{args:{referrals:r[0]}},ke(Lt)];let D={};for(let d=0;d<v.length;d+=1)D=de(D,v[d]);return f=new me({props:D}),{c(){z(e.$$.fragment),s=T(),z(t.$$.fragment),l=T(),z(n.$$.fragment),i=T(),z(o.$$.fragment),c=T(),z(f.$$.fragment)},m(d,x){B(e,d,x),L(d,s,x),B(t,d,x),L(d,l,x),B(n,d,x),L(d,i,x),B(o,d,x),L(d,c,x),B(f,d,x),_=!0},p(d,[x]){const g={};e.$set(g);const A={};x&6&&(A.$$scope={dirty:x,ctx:d}),t.$set(A);const V={};x&4&&(V.$$scope={dirty:x,ctx:d}),o.$set(V);const re=x&1?ge(v,[v[0],{args:{referrals:d[0]}},v[2]]):{};f.$set(re)},i(d){_||(y(e.$$.fragment,d),y(t.$$.fragment,d),y(n.$$.fragment,d),y(o.$$.fragment,d),y(f.$$.fragment,d),_=!0)},o(d){$(e.$$.fragment,d),$(t.$$.fragment,d),$(n.$$.fragment,d),$(o.$$.fragment,d),$(f.$$.fragment,d),_=!1},d(d){d&&(R(s),R(l),R(i),R(c)),j(e,d),j(t,d),j(n,d),j(o,d),j(f,d)}}}function _s(r){return[[{url:"https://graphics.reuters.com/world-coronavirus-tracker-and-maps/",title:"COVID-19: the latest global statistics, charts and maps",description:"Tracking the global coronavirus outbreak, updated daily",image:"https://graphics.thomsonreuters.com/cdn/2020/covid-global-tracker/share-cards/global/en/share.png"},{url:"https://graphics.reuters.com/world-coronavirus-tracker-and-maps/regions/europe",title:"Coronavirus in Europe: the latest counts, charts and maps",description:"Tracking the global coronavirus outbreak, updated daily",image:"https://graphics.thomsonreuters.com/cdn/2020/covid-global-tracker/share-cards/regions/en/europe.png"}]]}class ft extends W{constructor(e){super(),E(this,e,_s,hs,U,{})}}ft.__docgen={version:3,name:"SiteFooter.stories.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const pe=wt(ft,{meta:{title:"Components/SiteFooter"},stories:{"tpl:default":{name:"default",template:!0,source:`<div>
<SiteFooter {...args} />
</div>`,hasArgs:!0},Default:{name:"Default",template:!1,source:"",hasArgs:!1},CustomisedTheme:{name:"Customised theme",template:!1,source:`<div>
<Theme base="dark">
<SiteFooter />
</Theme>
</div>`,hasArgs:!1},CustomisedReferrals:{name:"Customised referrals",template:!1,source:"",hasArgs:!1}},allocatedIds:["default","Meta","Template","Story","componentDocs","darkThemeDocs","customReferralsDocs","SiteFooter","Theme","withComponentDocs","withStoryDocs"]}),xs=pe.meta,Ls=["Default","CustomisedTheme","CustomisedReferrals"],Rs=pe.stories.Default,Ts=pe.stories.CustomisedTheme,Ms=pe.stories.CustomisedReferrals;export{Ms as CustomisedReferrals,Ts as CustomisedTheme,Rs as Default,Ls as __namedExportsOrder,xs as default};
//# sourceMappingURL=SiteFooter.stories-bd24c044.js.map